2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.560.2.32 2007/01/02 21:43:40 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2007 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_AUDITLOG 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 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 [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-aci enable per-object ACIs (experimental) [no]
1019 --enable-cleartext enable cleartext passwords [yes]
1020 --enable-crypt enable crypt(3) passwords [no]
1021 --enable-lmpasswd enable LAN Manager passwords [no]
1022 --enable-spasswd enable (Cyrus) SASL password verification [no]
1023 --enable-modules enable dynamic module support [no]
1024 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1025 --enable-rlookups enable reverse lookups of client hostnames [no]
1026 --enable-slapi enable SLAPI support (experimental) [no]
1027 --enable-slp enable SLPv2 support [no]
1028 --enable-wrappers enable tcp wrapper support [no]
1030 SLAPD Backend Options:
1031 --enable-backends enable all available backends no|yes|mod
1032 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1033 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1034 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1035 --enable-ldap enable ldap backend no|yes|mod [no]
1036 --enable-ldbm enable ldbm backend no|yes|mod [no]
1037 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1039 --enable-meta enable metadirectory backend no|yes|mod [no]
1040 --enable-monitor enable monitor backend no|yes|mod [yes]
1041 --enable-null enable null backend no|yes|mod [no]
1042 --enable-passwd enable passwd backend no|yes|mod [no]
1043 --enable-perl enable perl backend no|yes|mod [no]
1044 --enable-relay enable relay backend no|yes|mod [yes]
1045 --enable-shell enable shell backend no|yes|mod [no]
1046 --enable-sql enable sql backend no|yes|mod [no]
1048 SLAPD Overlay Options:
1049 --enable-overlays enable all available overlays no|yes|mod
1050 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1051 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1052 --enable-denyop Deny Operation overlay no|yes|mod [no]
1053 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1054 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1055 --enable-lastmod Last Modification overlay no|yes|mod [no]
1056 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1057 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1058 --enable-refint Referential Integrity overlay no|yes|mod [no]
1059 --enable-retcode Return Code testing overlay no|yes|mod [no]
1060 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1061 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1062 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1063 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1064 --enable-valsort Value Sorting overlay no|yes|mod [no]
1066 SLURPD (Replication Daemon) Options:
1067 --enable-slurpd enable building slurpd [auto]
1069 Library Generation & Linking Options
1070 --enable-static[=PKGS]
1071 build static libraries [default=yes]
1072 --enable-shared[=PKGS]
1073 build shared libraries [default=yes]
1074 --enable-fast-install[=PKGS]
1075 optimize for fast installation [default=yes]
1076 --disable-dependency-tracking speeds up one-time build
1077 --enable-dependency-tracking do not reject slow dependency extractors
1078 --disable-libtool-lock avoid locking (might break parallel builds)
1081 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1082 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1083 --with-subdir=DIR change default subdirectory used for installs
1084 --with-cyrus-sasl with Cyrus SASL support [auto]
1085 --with-fetch with fetch(3) URL support [auto]
1086 --with-threads with threads [auto]
1087 --with-tls with TLS/SSL support [auto]
1088 --with-yielding-select with implicitly yielding select [auto]
1089 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1090 --with-odbc with specific ODBC support iodbc|unixodbc|auto [auto]
1092 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1093 --with-pic try to use only PIC/non-PIC objects [default=use
1096 include additional configurations [automatic]
1098 See INSTALL file for further details.
1100 Some influential environment variables:
1101 CC C compiler command
1102 CFLAGS C compiler flags
1103 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1104 nonstandard directory <lib dir>
1105 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106 headers in a nonstandard directory <include dir>
1109 Use these variables to override the choices made by `configure' or to help
1110 it to find libraries and programs with nonstandard names/locations.
1115 if test "$ac_init_help" = "recursive"; then
1116 # If there are subdirs, report their specific --help.
1118 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119 test -d $ac_dir || continue
1122 if test "$ac_dir" != .; then
1123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124 # A "../" for each directory in $ac_dir_suffix.
1125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127 ac_dir_suffix= ac_top_builddir=
1131 .) # No --srcdir option. We are building in place.
1133 if test -z "$ac_top_builddir"; then
1136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138 [\\/]* | ?:[\\/]* ) # Absolute path.
1139 ac_srcdir=$srcdir$ac_dir_suffix;
1140 ac_top_srcdir=$srcdir ;;
1142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1149 .) ac_abs_builddir="$ac_dir";;
1152 .) ac_abs_builddir=`pwd`;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 case ${ac_top_builddir}. in
1161 .) ac_abs_top_builddir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1170 .) ac_abs_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 case $ac_top_srcdir in
1179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1186 # Check for guested configure; otherwise get Cygnus style configure.
1187 if test -f $ac_srcdir/configure.gnu; then
1189 $SHELL $ac_srcdir/configure.gnu --help=recursive
1190 elif test -f $ac_srcdir/configure; then
1192 $SHELL $ac_srcdir/configure --help=recursive
1193 elif test -f $ac_srcdir/configure.ac ||
1194 test -f $ac_srcdir/configure.in; then
1196 $ac_configure --help
1198 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1212 Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
1213 Restrictions apply, see COPYRIGHT and LICENSE files.
1219 This file contains any messages produced by compilers while
1220 running configure, to aid debugging if configure makes a mistake.
1222 It was created by $as_me, which was
1223 generated by GNU Autoconf 2.59. Invocation command line was
1234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1243 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1244 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1247 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1248 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1249 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257 test -z "$as_dir" && as_dir=.
1258 echo "PATH: $as_dir"
1273 # Keep a trace of the command line.
1274 # Strip out --no-create and --no-recursion so they do not pile up.
1275 # Strip out --silent because we don't want to record it for future runs.
1276 # Also quote any args containing shell meta-characters.
1277 # Make two passes to allow for proper duplicate-argument suppression.
1282 ac_must_keep_next=false
1288 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290 | -silent | --silent | --silen | --sile | --sil)
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1298 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299 if test $ac_must_keep_next = true; then
1300 ac_must_keep_next=false # Got value, back to normal.
1303 *=* | --config-cache | -C | -disable-* | --disable-* \
1304 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306 | -with-* | --with-* | -without-* | --without-* | --x)
1307 case "$ac_configure_args0 " in
1308 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1311 -* ) ac_must_keep_next=true ;;
1314 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315 # Get rid of the leading space.
1321 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1324 # When interrupted or exit'd, cleanup temporary files, and complete
1325 # config.log. We remove comments because anyway the quotes in there
1326 # would cause problems or look ugly.
1327 # WARNING: Be sure not to use single quotes in there, as some shells,
1328 # such as our DU 5.0 friend, will then `close' the trap.
1329 trap 'exit_status=$?
1330 # Save into config.log some information that might help in debugging.
1335 ## ---------------- ##
1336 ## Cache variables. ##
1337 ## ---------------- ##
1340 # The following way of writing the cache mishandles newlines in values,
1343 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1346 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1351 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1358 ## ----------------- ##
1359 ## Output variables. ##
1360 ## ----------------- ##
1363 for ac_var in $ac_subst_vars
1365 eval ac_val=$`echo $ac_var`
1366 echo "$ac_var='"'"'$ac_val'"'"'"
1370 if test -n "$ac_subst_files"; then
1377 for ac_var in $ac_subst_files
1379 eval ac_val=$`echo $ac_var`
1380 echo "$ac_var='"'"'$ac_val'"'"'"
1385 if test -s confdefs.h; then
1392 sed "/^$/d" confdefs.h | sort
1395 test "$ac_signal" != 0 &&
1396 echo "$as_me: caught signal $ac_signal"
1397 echo "$as_me: exit $exit_status"
1399 rm -f core *.core &&
1400 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1403 for ac_signal in 1 2 13 15; do
1404 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1408 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1409 rm -rf conftest* confdefs.h
1410 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1413 # Predefined preprocessor variables.
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_NAME "$PACKAGE_NAME"
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_STRING "$PACKAGE_STRING"
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1440 # Let the site file select an alternate cache file if it wants to.
1441 # Prefer explicitly selected file to automatically selected ones.
1442 if test -z "$CONFIG_SITE"; then
1443 if test "x$prefix" != xNONE; then
1444 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1446 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1449 for ac_site_file in $CONFIG_SITE; do
1450 if test -r "$ac_site_file"; then
1451 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452 echo "$as_me: loading site script $ac_site_file" >&6;}
1453 sed 's/^/| /' "$ac_site_file" >&5
1459 # Check that the precious variables saved in the cache have kept the same
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465 eval ac_new_set=\$ac_env_${ac_var}_set
1466 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467 eval ac_new_val="\$ac_env_${ac_var}_value"
1468 case $ac_old_set,$ac_new_set in
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1479 if test "x$ac_old_val" != "x$ac_new_val"; then
1480 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1483 echo "$as_me: former value: $ac_old_val" >&2;}
1484 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1485 echo "$as_me: current value: $ac_new_val" >&2;}
1486 ac_cache_corrupted=:
1489 # Pass precious variables to config.status.
1490 if test "$ac_new_set" = set; then
1492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494 *) ac_arg=$ac_var=$ac_new_val ;;
1496 case " $ac_configure_args " in
1497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1498 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502 if $ac_cache_corrupted; then
1503 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507 { (exit 1); exit 1; }; }
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1559 for ac_dir in build $srcdir/build; do
1560 if test -f $ac_dir/install-sh; then
1562 ac_install_sh="$ac_aux_dir/install-sh -c"
1564 elif test -f $ac_dir/install.sh; then
1566 ac_install_sh="$ac_aux_dir/install.sh -c"
1568 elif test -f $ac_dir/shtool; then
1570 ac_install_sh="$ac_aux_dir/shtool install -c"
1574 if test -z "$ac_aux_dir"; then
1575 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1576 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1577 { (exit 1); exit 1; }; }
1579 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1580 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1581 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1583 eval `$ac_aux_dir/version.sh`
1584 if test -z "$OL_STRING"; then
1585 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1586 echo "$as_me: error: could not determine version" >&2;}
1587 { (exit 1); exit 1; }; }
1590 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1591 ac_cv_shtool="$ac_aux_dir/shtool"
1593 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1594 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1595 { (exit 1); exit 1; }; }
1598 SHTOOL="$ac_cv_shtool"
1600 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1601 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1604 if test -d $ac_aux_dir/CVS; then
1605 OPENLDAP_CVS="(from CVS sources) "
1608 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1610 # Make sure we can run config.sub.
1611 $ac_config_sub sun4 >/dev/null 2>&1 ||
1612 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1613 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1614 { (exit 1); exit 1; }; }
1616 echo "$as_me:$LINENO: checking build system type" >&5
1617 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1618 if test "${ac_cv_build+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 ac_cv_build_alias=$build_alias
1622 test -z "$ac_cv_build_alias" &&
1623 ac_cv_build_alias=`$ac_config_guess`
1624 test -z "$ac_cv_build_alias" &&
1625 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1626 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1627 { (exit 1); exit 1; }; }
1628 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1629 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1630 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1631 { (exit 1); exit 1; }; }
1634 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1635 echo "${ECHO_T}$ac_cv_build" >&6
1637 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1642 echo "$as_me:$LINENO: checking host system type" >&5
1643 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1644 if test "${ac_cv_host+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 ac_cv_host_alias=$host_alias
1648 test -z "$ac_cv_host_alias" &&
1649 ac_cv_host_alias=$ac_cv_build_alias
1650 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1651 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1652 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1653 { (exit 1); exit 1; }; }
1656 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1657 echo "${ECHO_T}$ac_cv_host" >&6
1659 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1660 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1661 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1664 echo "$as_me:$LINENO: checking target system type" >&5
1665 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1666 if test "${ac_cv_target+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 ac_cv_target_alias=$target_alias
1670 test "x$ac_cv_target_alias" = "x" &&
1671 ac_cv_target_alias=$ac_cv_host_alias
1672 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1673 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1674 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1675 { (exit 1); exit 1; }; }
1678 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1679 echo "${ECHO_T}$ac_cv_target" >&6
1680 target=$ac_cv_target
1681 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1682 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1683 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1686 # The aliases save the names the user supplied, while $host etc.
1687 # will get canonicalized.
1688 test -n "$target_alias" &&
1689 test "$program_prefix$program_suffix$program_transform_name" = \
1691 program_prefix=${target_alias}-
1693 am__api_version="1.9"
1694 # Find a good install program. We prefer a C program (faster),
1695 # so one script is as good as another. But avoid the broken or
1696 # incompatible versions:
1697 # SysV /etc/install, /usr/sbin/install
1698 # SunOS /usr/etc/install
1699 # IRIX /sbin/install
1701 # AmigaOS /C/install, which installs bootblocks on floppy discs
1702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1705 # OS/2's system install, which has a completely different semantic
1706 # ./install, which can be erroneously created by make from ./install.sh.
1707 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1708 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1709 if test -z "$INSTALL"; then
1710 if test "${ac_cv_path_install+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 test -z "$as_dir" && as_dir=.
1718 # Account for people who put trailing slashes in PATH elements.
1720 ./ | .// | /cC/* | \
1721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1722 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1725 # OSF1 and SCO ODT 3.0 have their own names for install.
1726 # Don't use installbsd from OSF since it installs stuff as root
1728 for ac_prog in ginstall scoinst install; do
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1731 if test $ac_prog = install &&
1732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1733 # AIX install. It has an incompatible calling convention.
1735 elif test $ac_prog = install &&
1736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1737 # program-specific install script used by HP pwplus--don't use.
1740 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1752 if test "${ac_cv_path_install+set}" = set; then
1753 INSTALL=$ac_cv_path_install
1755 # As a last resort, use the slow shell script. We don't cache a
1756 # path for INSTALL within a source directory, because that will
1757 # break other packages using the cache if that directory is
1758 # removed, or if the path is relative.
1759 INSTALL=$ac_install_sh
1762 echo "$as_me:$LINENO: result: $INSTALL" >&5
1763 echo "${ECHO_T}$INSTALL" >&6
1765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1766 # It thinks the first close brace ends the variable substitution.
1767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1773 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1774 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1777 echo timestamp > conftest.file
1778 # Do `set' in a subshell so we don't clobber the current shell's
1779 # arguments. Must try -L first in case configure is actually a
1780 # symlink; some systems play weird games with the mod time of symlinks
1781 # (eg FreeBSD returns the mod time of the symlink's containing
1784 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1785 if test "$*" = "X"; then
1787 set X `ls -t $srcdir/configure conftest.file`
1790 if test "$*" != "X $srcdir/configure conftest.file" \
1791 && test "$*" != "X conftest.file $srcdir/configure"; then
1793 # If neither matched, then we have a broken ls. This can happen
1794 # if, for instance, CONFIG_SHELL is bash and it inherits a
1795 # broken ls alias from the environment. This has actually
1796 # happened. Such a system could not be considered "sane".
1797 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1798 alias in your environment" >&5
1799 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1800 alias in your environment" >&2;}
1801 { (exit 1); exit 1; }; }
1804 test "$2" = conftest.file
1810 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1811 Check your system clock" >&5
1812 echo "$as_me: error: newly created file is older than distributed files!
1813 Check your system clock" >&2;}
1814 { (exit 1); exit 1; }; }
1816 echo "$as_me:$LINENO: result: yes" >&5
1817 echo "${ECHO_T}yes" >&6
1818 test "$program_prefix" != NONE &&
1819 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1820 # Use a double $ so make ignores it.
1821 test "$program_suffix" != NONE &&
1822 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1823 # Double any \ or $. echo might interpret backslashes.
1824 # By default was `s,x,x', remove it if useless.
1825 cat <<\_ACEOF >conftest.sed
1826 s/[\\$]/&&/g;s/;s,x,x,$//
1828 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1831 # expand $ac_aux_dir to an absolute path
1832 am_aux_dir=`cd $ac_aux_dir && pwd`
1834 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1835 # Use eval to expand $SHELL
1836 if eval "$MISSING --run true"; then
1837 am_missing_run="$MISSING --run "
1840 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1841 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1844 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1845 # We used to keeping the `.' as first argument, in order to
1846 # allow $(mkdir_p) to be used without argument. As in
1847 # $(mkdir_p) $(somedir)
1848 # where $(somedir) is conditionally defined. However this is wrong
1850 # 1. if the package is installed by a user who cannot write `.'
1851 # make install will fail,
1852 # 2. the above comment should most certainly read
1853 # $(mkdir_p) $(DESTDIR)$(somedir)
1854 # so it does not work when $(somedir) is undefined and
1855 # $(DESTDIR) is not.
1856 # To support the latter case, we have to write
1857 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1858 # so the `.' trick is pointless.
1859 mkdir_p='mkdir -p --'
1861 # On NextStep and OpenStep, the `mkdir' command does not
1862 # recognize any option. It will interpret all options as
1863 # directories to create, and then abort because `.' already
1865 for d in ./-p ./--version;
1867 test -d $d && rmdir $d
1869 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1870 if test -f "$ac_aux_dir/mkinstalldirs"; then
1871 mkdir_p='$(mkinstalldirs)'
1873 mkdir_p='$(install_sh) -d'
1877 for ac_prog in gawk mawk nawk awk
1879 # Extract the first word of "$ac_prog", so it can be a program name with args.
1880 set dummy $ac_prog; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_AWK+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$AWK"; then
1887 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_AWK="$ac_prog"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 if test -n "$AWK"; then
1907 echo "$as_me:$LINENO: result: $AWK" >&5
1908 echo "${ECHO_T}$AWK" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1914 test -n "$AWK" && break
1917 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1918 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1919 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1920 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 cat >conftest.make <<\_ACEOF
1925 @echo 'ac_maketemp="$(MAKE)"'
1927 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1928 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1929 if test -n "$ac_maketemp"; then
1930 eval ac_cv_prog_make_${ac_make}_set=yes
1932 eval ac_cv_prog_make_${ac_make}_set=no
1936 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1937 echo "$as_me:$LINENO: result: yes" >&5
1938 echo "${ECHO_T}yes" >&6
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943 SET_MAKE="MAKE=${MAKE-make}"
1946 rm -rf .tst 2>/dev/null
1947 mkdir .tst 2>/dev/null
1948 if test -d .tst; then
1953 rmdir .tst 2>/dev/null
1955 # test to see if srcdir already configured
1956 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1957 test -f $srcdir/config.status; then
1958 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1959 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1960 { (exit 1); exit 1; }; }
1963 # test whether we have cygpath
1964 if test -z "$CYGPATH_W"; then
1965 if (cygpath --version) >/dev/null 2>/dev/null; then
1966 CYGPATH_W='cygpath -w'
1973 # Define the identity of the package.
1978 # Some tools Automake needs.
1980 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1983 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1986 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1989 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1992 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1994 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1996 # Installed binaries are usually stripped using `strip' when the user
1997 # run `make install-strip'. However `strip' might not be the right
1998 # tool to use in cross-compilation environments, therefore Automake
1999 # will honor the `STRIP' environment variable to overrule this program.
2000 if test "$cross_compiling" != no; then
2001 if test -n "$ac_tool_prefix"; then
2002 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2003 set dummy ${ac_tool_prefix}strip; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_STRIP+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$STRIP"; then
2010 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 STRIP=$ac_cv_prog_STRIP
2029 if test -n "$STRIP"; then
2030 echo "$as_me:$LINENO: result: $STRIP" >&5
2031 echo "${ECHO_T}$STRIP" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2038 if test -z "$ac_cv_prog_STRIP"; then
2040 # Extract the first word of "strip", so it can be a program name with args.
2041 set dummy strip; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 if test -n "$ac_ct_STRIP"; then
2048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_ac_ct_STRIP="strip"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2068 if test -n "$ac_ct_STRIP"; then
2069 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2070 echo "${ECHO_T}$ac_ct_STRIP" >&6
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2078 STRIP="$ac_cv_prog_STRIP"
2082 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2084 # We need awk for the "check" target. The system "awk" is bad on
2086 # Always define AMTAR for backward compatibility.
2088 AMTAR=${AMTAR-"${am_missing_run}tar"}
2090 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2096 cat >>confdefs.h <<_ACEOF
2097 #define OPENLDAP_PACKAGE "$PACKAGE"
2101 cat >>confdefs.h <<_ACEOF
2102 #define OPENLDAP_VERSION "$VERSION"
2107 cat >>confdefs.h <<_ACEOF
2108 #define LDAP_VENDOR_VERSION $OL_API_INC
2112 cat >>confdefs.h <<_ACEOF
2113 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2117 cat >>confdefs.h <<_ACEOF
2118 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2122 cat >>confdefs.h <<_ACEOF
2123 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2127 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2129 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2131 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2139 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2141 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2143 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2146 echo "$as_me:$LINENO: checking configure arguments" >&5
2147 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2152 ldap_subdir="/openldap"
2155 # Check whether --with-subdir or --without-subdir was given.
2156 if test "${with_subdir+set}" = set; then
2157 withval="$with_subdir"
2164 ldap_subdir="$withval"
2167 ldap_subdir="/$withval"
2173 # OpenLDAP --enable-debug
2175 # Check whether --enable-debug or --disable-debug was given.
2176 if test "${enable_debug+set}" = set; then
2177 enableval="$enable_debug"
2180 for ol_val in auto yes no ; do
2181 if test "$enableval" = "$ol_val" ; then
2185 if test "$ol_arg" = "invalid" ; then
2186 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2187 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2188 { (exit 1); exit 1; }; }
2190 ol_enable_debug="$ol_arg"
2195 # end --enable-debug
2196 # OpenLDAP --enable-dynamic
2198 # Check whether --enable-dynamic or --disable-dynamic was given.
2199 if test "${enable_dynamic+set}" = set; then
2200 enableval="$enable_dynamic"
2203 for ol_val in auto yes no ; do
2204 if test "$enableval" = "$ol_val" ; then
2208 if test "$ol_arg" = "invalid" ; then
2209 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2210 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2211 { (exit 1); exit 1; }; }
2213 ol_enable_dynamic="$ol_arg"
2216 ol_enable_dynamic=no
2218 # end --enable-dynamic
2219 # OpenLDAP --enable-syslog
2221 # Check whether --enable-syslog or --disable-syslog was given.
2222 if test "${enable_syslog+set}" = set; then
2223 enableval="$enable_syslog"
2226 for ol_val in auto yes no ; do
2227 if test "$enableval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2233 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2234 { (exit 1); exit 1; }; }
2236 ol_enable_syslog="$ol_arg"
2239 ol_enable_syslog=auto
2241 # end --enable-syslog
2242 # OpenLDAP --enable-proctitle
2244 # Check whether --enable-proctitle or --disable-proctitle was given.
2245 if test "${enable_proctitle+set}" = set; then
2246 enableval="$enable_proctitle"
2249 for ol_val in auto yes no ; do
2250 if test "$enableval" = "$ol_val" ; then
2254 if test "$ol_arg" = "invalid" ; then
2255 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2256 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2257 { (exit 1); exit 1; }; }
2259 ol_enable_proctitle="$ol_arg"
2262 ol_enable_proctitle=yes
2264 # end --enable-proctitle
2265 ol_enable_referrals=${ol_enable_referrals-no}
2266 ol_enable_kbind=${ol_enable_kbind-no}
2267 # OpenLDAP --enable-ipv6
2269 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2270 if test "${enable_ipv6+set}" = set; then
2271 enableval="$enable_ipv6"
2274 for ol_val in auto yes no ; do
2275 if test "$enableval" = "$ol_val" ; then
2279 if test "$ol_arg" = "invalid" ; then
2280 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2281 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2282 { (exit 1); exit 1; }; }
2284 ol_enable_ipv6="$ol_arg"
2290 # OpenLDAP --enable-local
2292 # Check whether --enable-local or --disable-local was given.
2293 if test "${enable_local+set}" = set; then
2294 enableval="$enable_local"
2297 for ol_val in auto yes no ; do
2298 if test "$enableval" = "$ol_val" ; then
2302 if test "$ol_arg" = "invalid" ; then
2303 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2304 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2305 { (exit 1); exit 1; }; }
2307 ol_enable_local="$ol_arg"
2310 ol_enable_local=auto
2312 # end --enable-local
2314 # OpenLDAP --with-cyrus_sasl
2316 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2317 if test "${with_cyrus_sasl+set}" = set; then
2318 withval="$with_cyrus_sasl"
2321 for ol_val in auto yes no ; do
2322 if test "$withval" = "$ol_val" ; then
2326 if test "$ol_arg" = "invalid" ; then
2327 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2328 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2329 { (exit 1); exit 1; }; }
2331 ol_with_cyrus_sasl="$ol_arg"
2334 ol_with_cyrus_sasl="auto"
2335 fi; # end --with-cyrus_sasl
2337 # OpenLDAP --with-fetch
2339 # Check whether --with-fetch or --without-fetch was given.
2340 if test "${with_fetch+set}" = set; then
2341 withval="$with_fetch"
2344 for ol_val in auto yes no ; do
2345 if test "$withval" = "$ol_val" ; then
2349 if test "$ol_arg" = "invalid" ; then
2350 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2351 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2352 { (exit 1); exit 1; }; }
2354 ol_with_fetch="$ol_arg"
2357 ol_with_fetch="auto"
2358 fi; # end --with-fetch
2360 ol_with_kerberos=${ol_with_kerberos-auto}
2361 # OpenLDAP --with-threads
2363 # Check whether --with-threads or --without-threads was given.
2364 if test "${with_threads+set}" = set; then
2365 withval="$with_threads"
2368 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2369 if test "$withval" = "$ol_val" ; then
2373 if test "$ol_arg" = "invalid" ; then
2374 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2375 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2376 { (exit 1); exit 1; }; }
2378 ol_with_threads="$ol_arg"
2381 ol_with_threads="auto"
2382 fi; # end --with-threads
2384 # OpenLDAP --with-tls
2386 # Check whether --with-tls or --without-tls was given.
2387 if test "${with_tls+set}" = set; then
2391 for ol_val in auto openssl yes no ; do
2392 if test "$withval" = "$ol_val" ; then
2396 if test "$ol_arg" = "invalid" ; then
2397 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2398 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2399 { (exit 1); exit 1; }; }
2401 ol_with_tls="$ol_arg"
2405 fi; # end --with-tls
2407 # OpenLDAP --with-yielding_select
2409 # Check whether --with-yielding_select or --without-yielding_select was given.
2410 if test "${with_yielding_select+set}" = set; then
2411 withval="$with_yielding_select"
2414 for ol_val in auto yes no manual ; do
2415 if test "$withval" = "$ol_val" ; then
2419 if test "$ol_arg" = "invalid" ; then
2420 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2421 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2422 { (exit 1); exit 1; }; }
2424 ol_with_yielding_select="$ol_arg"
2427 ol_with_yielding_select="auto"
2428 fi; # end --with-yielding_select
2430 # OpenLDAP --with-mp
2432 # Check whether --with-mp or --without-mp was given.
2433 if test "${with_mp+set}" = set; then
2437 for ol_val in auto longlong long bignum gmp yes no ; do
2438 if test "$withval" = "$ol_val" ; then
2442 if test "$ol_arg" = "invalid" ; then
2443 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2444 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2445 { (exit 1); exit 1; }; }
2447 ol_with_mp="$ol_arg"
2453 # OpenLDAP --with-odbc
2455 # Check whether --with-odbc or --without-odbc was given.
2456 if test "${with_odbc+set}" = set; then
2457 withval="$with_odbc"
2460 for ol_val in auto iodbc unixodbc ; do
2461 if test "$withval" = "$ol_val" ; then
2465 if test "$ol_arg" = "invalid" ; then
2466 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2467 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2468 { (exit 1); exit 1; }; }
2470 ol_with_odbc="$ol_arg"
2474 fi; # end --with-odbc
2478 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2479 if test "${enable_xxslapdoptions+set}" = set; then
2480 enableval="$enable_xxslapdoptions"
2483 # OpenLDAP --enable-slapd
2485 # Check whether --enable-slapd or --disable-slapd was given.
2486 if test "${enable_slapd+set}" = set; then
2487 enableval="$enable_slapd"
2490 for ol_val in auto yes no ; do
2491 if test "$enableval" = "$ol_val" ; then
2495 if test "$ol_arg" = "invalid" ; then
2496 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2497 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2498 { (exit 1); exit 1; }; }
2500 ol_enable_slapd="$ol_arg"
2505 # end --enable-slapd
2506 # OpenLDAP --enable-aci
2508 # Check whether --enable-aci or --disable-aci was given.
2509 if test "${enable_aci+set}" = set; then
2510 enableval="$enable_aci"
2513 for ol_val in auto yes no ; do
2514 if test "$enableval" = "$ol_val" ; then
2518 if test "$ol_arg" = "invalid" ; then
2519 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2520 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2521 { (exit 1); exit 1; }; }
2523 ol_enable_aci="$ol_arg"
2529 # OpenLDAP --enable-cleartext
2531 # Check whether --enable-cleartext or --disable-cleartext was given.
2532 if test "${enable_cleartext+set}" = set; then
2533 enableval="$enable_cleartext"
2536 for ol_val in auto yes no ; do
2537 if test "$enableval" = "$ol_val" ; then
2541 if test "$ol_arg" = "invalid" ; then
2542 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2543 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2544 { (exit 1); exit 1; }; }
2546 ol_enable_cleartext="$ol_arg"
2549 ol_enable_cleartext=yes
2551 # end --enable-cleartext
2552 # OpenLDAP --enable-crypt
2554 # Check whether --enable-crypt or --disable-crypt was given.
2555 if test "${enable_crypt+set}" = set; then
2556 enableval="$enable_crypt"
2559 for ol_val in auto yes no ; do
2560 if test "$enableval" = "$ol_val" ; then
2564 if test "$ol_arg" = "invalid" ; then
2565 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2566 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2567 { (exit 1); exit 1; }; }
2569 ol_enable_crypt="$ol_arg"
2574 # end --enable-crypt
2575 # OpenLDAP --enable-lmpasswd
2577 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2578 if test "${enable_lmpasswd+set}" = set; then
2579 enableval="$enable_lmpasswd"
2582 for ol_val in auto yes no ; do
2583 if test "$enableval" = "$ol_val" ; then
2587 if test "$ol_arg" = "invalid" ; then
2588 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2589 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2590 { (exit 1); exit 1; }; }
2592 ol_enable_lmpasswd="$ol_arg"
2595 ol_enable_lmpasswd=no
2597 # end --enable-lmpasswd
2598 # OpenLDAP --enable-spasswd
2600 # Check whether --enable-spasswd or --disable-spasswd was given.
2601 if test "${enable_spasswd+set}" = set; then
2602 enableval="$enable_spasswd"
2605 for ol_val in auto yes no ; do
2606 if test "$enableval" = "$ol_val" ; then
2610 if test "$ol_arg" = "invalid" ; then
2611 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2612 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2613 { (exit 1); exit 1; }; }
2615 ol_enable_spasswd="$ol_arg"
2618 ol_enable_spasswd=no
2620 # end --enable-spasswd
2621 # OpenLDAP --enable-modules
2623 # Check whether --enable-modules or --disable-modules was given.
2624 if test "${enable_modules+set}" = set; then
2625 enableval="$enable_modules"
2628 for ol_val in auto yes no ; do
2629 if test "$enableval" = "$ol_val" ; then
2633 if test "$ol_arg" = "invalid" ; then
2634 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2635 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2636 { (exit 1); exit 1; }; }
2638 ol_enable_modules="$ol_arg"
2641 ol_enable_modules=no
2643 # end --enable-modules
2644 ol_enable_multimaster=${ol_enable_multimaster-no}
2645 # OpenLDAP --enable-rewrite
2647 # Check whether --enable-rewrite or --disable-rewrite was given.
2648 if test "${enable_rewrite+set}" = set; then
2649 enableval="$enable_rewrite"
2652 for ol_val in auto yes no ; do
2653 if test "$enableval" = "$ol_val" ; then
2657 if test "$ol_arg" = "invalid" ; then
2658 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2659 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2660 { (exit 1); exit 1; }; }
2662 ol_enable_rewrite="$ol_arg"
2665 ol_enable_rewrite=auto
2667 # end --enable-rewrite
2668 # OpenLDAP --enable-rlookups
2670 # Check whether --enable-rlookups or --disable-rlookups was given.
2671 if test "${enable_rlookups+set}" = set; then
2672 enableval="$enable_rlookups"
2675 for ol_val in auto yes no ; do
2676 if test "$enableval" = "$ol_val" ; then
2680 if test "$ol_arg" = "invalid" ; then
2681 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2682 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2683 { (exit 1); exit 1; }; }
2685 ol_enable_rlookups="$ol_arg"
2688 ol_enable_rlookups=no
2690 # end --enable-rlookups
2691 # OpenLDAP --enable-slapi
2693 # Check whether --enable-slapi or --disable-slapi was given.
2694 if test "${enable_slapi+set}" = set; then
2695 enableval="$enable_slapi"
2698 for ol_val in auto yes no ; do
2699 if test "$enableval" = "$ol_val" ; then
2703 if test "$ol_arg" = "invalid" ; then
2704 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2705 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2706 { (exit 1); exit 1; }; }
2708 ol_enable_slapi="$ol_arg"
2713 # end --enable-slapi
2714 # OpenLDAP --enable-slp
2716 # Check whether --enable-slp or --disable-slp was given.
2717 if test "${enable_slp+set}" = set; then
2718 enableval="$enable_slp"
2721 for ol_val in auto yes no ; do
2722 if test "$enableval" = "$ol_val" ; then
2726 if test "$ol_arg" = "invalid" ; then
2727 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2728 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2729 { (exit 1); exit 1; }; }
2731 ol_enable_slp="$ol_arg"
2737 # OpenLDAP --enable-wrappers
2739 # Check whether --enable-wrappers or --disable-wrappers was given.
2740 if test "${enable_wrappers+set}" = set; then
2741 enableval="$enable_wrappers"
2744 for ol_val in auto yes no ; do
2745 if test "$enableval" = "$ol_val" ; then
2749 if test "$ol_arg" = "invalid" ; then
2750 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2751 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2752 { (exit 1); exit 1; }; }
2754 ol_enable_wrappers="$ol_arg"
2757 ol_enable_wrappers=no
2759 # end --enable-wrappers
2775 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2776 if test "${enable_xxslapbackends+set}" = set; then
2777 enableval="$enable_xxslapbackends"
2781 # OpenLDAP --enable-backends
2783 # Check whether --enable-backends or --disable-backends was given.
2784 if test "${enable_backends+set}" = set; then
2785 enableval="$enable_backends"
2788 for ol_val in no yes mod ; do
2789 if test "$enableval" = "$ol_val" ; then
2793 if test "$ol_arg" = "invalid" ; then
2794 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2795 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2796 { (exit 1); exit 1; }; }
2798 ol_enable_backends="$ol_arg"
2801 # end --enable-backends
2802 # OpenLDAP --enable-bdb
2804 # Check whether --enable-bdb or --disable-bdb was given.
2805 if test "${enable_bdb+set}" = set; then
2806 enableval="$enable_bdb"
2809 for ol_val in no yes mod ; do
2810 if test "$enableval" = "$ol_val" ; then
2814 if test "$ol_arg" = "invalid" ; then
2815 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2816 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2817 { (exit 1); exit 1; }; }
2819 ol_enable_bdb="$ol_arg"
2822 ol_enable_bdb=${ol_enable_backends:-yes}
2825 # OpenLDAP --enable-dnssrv
2827 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2828 if test "${enable_dnssrv+set}" = set; then
2829 enableval="$enable_dnssrv"
2832 for ol_val in no yes mod ; do
2833 if test "$enableval" = "$ol_val" ; then
2837 if test "$ol_arg" = "invalid" ; then
2838 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2839 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2840 { (exit 1); exit 1; }; }
2842 ol_enable_dnssrv="$ol_arg"
2845 ol_enable_dnssrv=${ol_enable_backends:-no}
2847 # end --enable-dnssrv
2848 # OpenLDAP --enable-hdb
2850 # Check whether --enable-hdb or --disable-hdb was given.
2851 if test "${enable_hdb+set}" = set; then
2852 enableval="$enable_hdb"
2855 for ol_val in no yes mod ; do
2856 if test "$enableval" = "$ol_val" ; then
2860 if test "$ol_arg" = "invalid" ; then
2861 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2862 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2863 { (exit 1); exit 1; }; }
2865 ol_enable_hdb="$ol_arg"
2868 ol_enable_hdb=${ol_enable_backends:-yes}
2871 # OpenLDAP --enable-ldap
2873 # Check whether --enable-ldap or --disable-ldap was given.
2874 if test "${enable_ldap+set}" = set; then
2875 enableval="$enable_ldap"
2878 for ol_val in no yes mod ; do
2879 if test "$enableval" = "$ol_val" ; then
2883 if test "$ol_arg" = "invalid" ; then
2884 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2885 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2886 { (exit 1); exit 1; }; }
2888 ol_enable_ldap="$ol_arg"
2891 ol_enable_ldap=${ol_enable_backends:-no}
2894 # OpenLDAP --enable-ldbm
2896 # Check whether --enable-ldbm or --disable-ldbm was given.
2897 if test "${enable_ldbm+set}" = set; then
2898 enableval="$enable_ldbm"
2901 for ol_val in no yes mod ; do
2902 if test "$enableval" = "$ol_val" ; then
2906 if test "$ol_arg" = "invalid" ; then
2907 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2908 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2909 { (exit 1); exit 1; }; }
2911 ol_enable_ldbm="$ol_arg"
2914 ol_enable_ldbm=${ol_enable_backends:-no}
2918 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2919 if test "${with_ldbm_api+set}" = set; then
2920 withval="$with_ldbm_api"
2922 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2923 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2924 enable_ldbm_api="$with_ldbm_api"
2926 # OpenLDAP --enable-ldbm_api
2928 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2929 if test "${enable_ldbm_api+set}" = set; then
2930 enableval="$enable_ldbm_api"
2933 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2934 if test "$enableval" = "$ol_val" ; then
2938 if test "$ol_arg" = "invalid" ; then
2939 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2940 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2941 { (exit 1); exit 1; }; }
2943 ol_enable_ldbm_api="$ol_arg"
2946 ol_enable_ldbm_api=auto
2948 # end --enable-ldbm_api
2951 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2952 if test "${with_ldbm_type+set}" = set; then
2953 withval="$with_ldbm_type"
2955 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2956 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2957 enable_ldbm_type="$with_ldbm_type"
2959 # OpenLDAP --enable-ldbm_type
2961 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2962 if test "${enable_ldbm_type+set}" = set; then
2963 enableval="$enable_ldbm_type"
2966 for ol_val in auto btree hash ; do
2967 if test "$enableval" = "$ol_val" ; then
2971 if test "$ol_arg" = "invalid" ; then
2972 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2973 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2974 { (exit 1); exit 1; }; }
2976 ol_enable_ldbm_type="$ol_arg"
2979 ol_enable_ldbm_type=auto
2981 # end --enable-ldbm_type
2983 # OpenLDAP --enable-meta
2985 # Check whether --enable-meta or --disable-meta was given.
2986 if test "${enable_meta+set}" = set; then
2987 enableval="$enable_meta"
2990 for ol_val in no yes mod ; do
2991 if test "$enableval" = "$ol_val" ; then
2995 if test "$ol_arg" = "invalid" ; then
2996 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2997 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2998 { (exit 1); exit 1; }; }
3000 ol_enable_meta="$ol_arg"
3003 ol_enable_meta=${ol_enable_backends:-no}
3006 # OpenLDAP --enable-monitor
3008 # Check whether --enable-monitor or --disable-monitor was given.
3009 if test "${enable_monitor+set}" = set; then
3010 enableval="$enable_monitor"
3013 for ol_val in no yes mod ; do
3014 if test "$enableval" = "$ol_val" ; then
3018 if test "$ol_arg" = "invalid" ; then
3019 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3020 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3021 { (exit 1); exit 1; }; }
3023 ol_enable_monitor="$ol_arg"
3026 ol_enable_monitor=${ol_enable_backends:-yes}
3028 # end --enable-monitor
3029 # OpenLDAP --enable-null
3031 # Check whether --enable-null or --disable-null was given.
3032 if test "${enable_null+set}" = set; then
3033 enableval="$enable_null"
3036 for ol_val in no yes mod ; do
3037 if test "$enableval" = "$ol_val" ; then
3041 if test "$ol_arg" = "invalid" ; then
3042 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3043 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3044 { (exit 1); exit 1; }; }
3046 ol_enable_null="$ol_arg"
3049 ol_enable_null=${ol_enable_backends:-no}
3052 # OpenLDAP --enable-passwd
3054 # Check whether --enable-passwd or --disable-passwd was given.
3055 if test "${enable_passwd+set}" = set; then
3056 enableval="$enable_passwd"
3059 for ol_val in no yes mod ; do
3060 if test "$enableval" = "$ol_val" ; then
3064 if test "$ol_arg" = "invalid" ; then
3065 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3066 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3067 { (exit 1); exit 1; }; }
3069 ol_enable_passwd="$ol_arg"
3072 ol_enable_passwd=${ol_enable_backends:-no}
3074 # end --enable-passwd
3075 # OpenLDAP --enable-perl
3077 # Check whether --enable-perl or --disable-perl was given.
3078 if test "${enable_perl+set}" = set; then
3079 enableval="$enable_perl"
3082 for ol_val in no yes mod ; do
3083 if test "$enableval" = "$ol_val" ; then
3087 if test "$ol_arg" = "invalid" ; then
3088 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3089 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3090 { (exit 1); exit 1; }; }
3092 ol_enable_perl="$ol_arg"
3095 ol_enable_perl=${ol_enable_backends:-no}
3098 # OpenLDAP --enable-relay
3100 # Check whether --enable-relay or --disable-relay was given.
3101 if test "${enable_relay+set}" = set; then
3102 enableval="$enable_relay"
3105 for ol_val in no yes mod ; do
3106 if test "$enableval" = "$ol_val" ; then
3110 if test "$ol_arg" = "invalid" ; then
3111 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3112 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3113 { (exit 1); exit 1; }; }
3115 ol_enable_relay="$ol_arg"
3118 ol_enable_relay=${ol_enable_backends:-yes}
3120 # end --enable-relay
3121 # OpenLDAP --enable-shell
3123 # Check whether --enable-shell or --disable-shell was given.
3124 if test "${enable_shell+set}" = set; then
3125 enableval="$enable_shell"
3128 for ol_val in no yes mod ; do
3129 if test "$enableval" = "$ol_val" ; then
3133 if test "$ol_arg" = "invalid" ; then
3134 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3135 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3136 { (exit 1); exit 1; }; }
3138 ol_enable_shell="$ol_arg"
3141 ol_enable_shell=${ol_enable_backends:-no}
3143 # end --enable-shell
3144 # OpenLDAP --enable-sql
3146 # Check whether --enable-sql or --disable-sql was given.
3147 if test "${enable_sql+set}" = set; then
3148 enableval="$enable_sql"
3151 for ol_val in no yes mod ; do
3152 if test "$enableval" = "$ol_val" ; then
3156 if test "$ol_arg" = "invalid" ; then
3157 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3158 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3159 { (exit 1); exit 1; }; }
3161 ol_enable_sql="$ol_arg"
3164 ol_enable_sql=${ol_enable_backends:-no}
3168 Overlays="accesslog \
3184 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3185 if test "${enable_xxslapoverlays+set}" = set; then
3186 enableval="$enable_xxslapoverlays"
3190 # OpenLDAP --enable-overlays
3192 # Check whether --enable-overlays or --disable-overlays was given.
3193 if test "${enable_overlays+set}" = set; then
3194 enableval="$enable_overlays"
3197 for ol_val in no yes mod ; do
3198 if test "$enableval" = "$ol_val" ; then
3202 if test "$ol_arg" = "invalid" ; then
3203 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3204 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3205 { (exit 1); exit 1; }; }
3207 ol_enable_overlays="$ol_arg"
3210 # end --enable-overlays
3211 # OpenLDAP --enable-accesslog
3213 # Check whether --enable-accesslog or --disable-accesslog was given.
3214 if test "${enable_accesslog+set}" = set; then
3215 enableval="$enable_accesslog"
3218 for ol_val in no yes mod ; do
3219 if test "$enableval" = "$ol_val" ; then
3223 if test "$ol_arg" = "invalid" ; then
3224 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3225 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3226 { (exit 1); exit 1; }; }
3228 ol_enable_accesslog="$ol_arg"
3231 ol_enable_accesslog=${ol_enable_overlays:-no}
3233 # end --enable-accesslog
3235 # OpenLDAP --enable-auditlog
3237 # Check whether --enable-auditlog or --disable-auditlog was given.
3238 if test "${enable_auditlog+set}" = set; then
3239 enableval="$enable_auditlog"
3242 for ol_val in no yes mod ; do
3243 if test "$enableval" = "$ol_val" ; then
3247 if test "$ol_arg" = "invalid" ; then
3248 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3249 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3250 { (exit 1); exit 1; }; }
3252 ol_enable_auditlog="$ol_arg"
3255 ol_enable_auditlog=${ol_enable_overlays:-no}
3257 # end --enable-auditlog
3259 # OpenLDAP --enable-denyop
3261 # Check whether --enable-denyop or --disable-denyop was given.
3262 if test "${enable_denyop+set}" = set; then
3263 enableval="$enable_denyop"
3266 for ol_val in no yes mod ; do
3267 if test "$enableval" = "$ol_val" ; then
3271 if test "$ol_arg" = "invalid" ; then
3272 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3273 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3274 { (exit 1); exit 1; }; }
3276 ol_enable_denyop="$ol_arg"
3279 ol_enable_denyop=${ol_enable_overlays:-no}
3281 # end --enable-denyop
3283 # OpenLDAP --enable-dyngroup
3285 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3286 if test "${enable_dyngroup+set}" = set; then
3287 enableval="$enable_dyngroup"
3290 for ol_val in no yes mod ; do
3291 if test "$enableval" = "$ol_val" ; then
3295 if test "$ol_arg" = "invalid" ; then
3296 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3297 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3298 { (exit 1); exit 1; }; }
3300 ol_enable_dyngroup="$ol_arg"
3303 ol_enable_dyngroup=${ol_enable_overlays:-no}
3305 # end --enable-dyngroup
3307 # OpenLDAP --enable-dynlist
3309 # Check whether --enable-dynlist or --disable-dynlist was given.
3310 if test "${enable_dynlist+set}" = set; then
3311 enableval="$enable_dynlist"
3314 for ol_val in no yes mod ; do
3315 if test "$enableval" = "$ol_val" ; then
3319 if test "$ol_arg" = "invalid" ; then
3320 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3322 { (exit 1); exit 1; }; }
3324 ol_enable_dynlist="$ol_arg"
3327 ol_enable_dynlist=${ol_enable_overlays:-no}
3329 # end --enable-dynlist
3331 # OpenLDAP --enable-lastmod
3333 # Check whether --enable-lastmod or --disable-lastmod was given.
3334 if test "${enable_lastmod+set}" = set; then
3335 enableval="$enable_lastmod"
3338 for ol_val in no yes mod ; do
3339 if test "$enableval" = "$ol_val" ; then
3343 if test "$ol_arg" = "invalid" ; then
3344 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3346 { (exit 1); exit 1; }; }
3348 ol_enable_lastmod="$ol_arg"
3351 ol_enable_lastmod=${ol_enable_overlays:-no}
3353 # end --enable-lastmod
3355 # OpenLDAP --enable-ppolicy
3357 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3358 if test "${enable_ppolicy+set}" = set; then
3359 enableval="$enable_ppolicy"
3362 for ol_val in no yes mod ; do
3363 if test "$enableval" = "$ol_val" ; then
3367 if test "$ol_arg" = "invalid" ; then
3368 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3369 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3370 { (exit 1); exit 1; }; }
3372 ol_enable_ppolicy="$ol_arg"
3375 ol_enable_ppolicy=${ol_enable_overlays:-no}
3377 # end --enable-ppolicy
3379 # OpenLDAP --enable-proxycache
3381 # Check whether --enable-proxycache or --disable-proxycache was given.
3382 if test "${enable_proxycache+set}" = set; then
3383 enableval="$enable_proxycache"
3386 for ol_val in no yes mod ; do
3387 if test "$enableval" = "$ol_val" ; then
3391 if test "$ol_arg" = "invalid" ; then
3392 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3393 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3394 { (exit 1); exit 1; }; }
3396 ol_enable_proxycache="$ol_arg"
3399 ol_enable_proxycache=${ol_enable_overlays:-no}
3401 # end --enable-proxycache
3403 # OpenLDAP --enable-refint
3405 # Check whether --enable-refint or --disable-refint was given.
3406 if test "${enable_refint+set}" = set; then
3407 enableval="$enable_refint"
3410 for ol_val in no yes mod ; do
3411 if test "$enableval" = "$ol_val" ; then
3415 if test "$ol_arg" = "invalid" ; then
3416 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3417 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3418 { (exit 1); exit 1; }; }
3420 ol_enable_refint="$ol_arg"
3423 ol_enable_refint=${ol_enable_overlays:-no}
3425 # end --enable-refint
3427 # OpenLDAP --enable-retcode
3429 # Check whether --enable-retcode or --disable-retcode was given.
3430 if test "${enable_retcode+set}" = set; then
3431 enableval="$enable_retcode"
3434 for ol_val in no yes mod ; do
3435 if test "$enableval" = "$ol_val" ; then
3439 if test "$ol_arg" = "invalid" ; then
3440 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3441 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3442 { (exit 1); exit 1; }; }
3444 ol_enable_retcode="$ol_arg"
3447 ol_enable_retcode=${ol_enable_overlays:-no}
3449 # end --enable-retcode
3451 # OpenLDAP --enable-rwm
3453 # Check whether --enable-rwm or --disable-rwm was given.
3454 if test "${enable_rwm+set}" = set; then
3455 enableval="$enable_rwm"
3458 for ol_val in no yes mod ; do
3459 if test "$enableval" = "$ol_val" ; then
3463 if test "$ol_arg" = "invalid" ; then
3464 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3465 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3466 { (exit 1); exit 1; }; }
3468 ol_enable_rwm="$ol_arg"
3471 ol_enable_rwm=${ol_enable_overlays:-no}
3475 # OpenLDAP --enable-syncprov
3477 # Check whether --enable-syncprov or --disable-syncprov was given.
3478 if test "${enable_syncprov+set}" = set; then
3479 enableval="$enable_syncprov"
3482 for ol_val in no yes mod ; do
3483 if test "$enableval" = "$ol_val" ; then
3487 if test "$ol_arg" = "invalid" ; then
3488 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3489 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3490 { (exit 1); exit 1; }; }
3492 ol_enable_syncprov="$ol_arg"
3495 ol_enable_syncprov=${ol_enable_overlays:-yes}
3497 # end --enable-syncprov
3499 # OpenLDAP --enable-translucent
3501 # Check whether --enable-translucent or --disable-translucent was given.
3502 if test "${enable_translucent+set}" = set; then
3503 enableval="$enable_translucent"
3506 for ol_val in no yes mod ; do
3507 if test "$enableval" = "$ol_val" ; then
3511 if test "$ol_arg" = "invalid" ; then
3512 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3513 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3514 { (exit 1); exit 1; }; }
3516 ol_enable_translucent="$ol_arg"
3519 ol_enable_translucent=${ol_enable_overlays:-no}
3521 # end --enable-translucent
3523 # OpenLDAP --enable-unique
3525 # Check whether --enable-unique or --disable-unique was given.
3526 if test "${enable_unique+set}" = set; then
3527 enableval="$enable_unique"
3530 for ol_val in no yes mod ; do
3531 if test "$enableval" = "$ol_val" ; then
3535 if test "$ol_arg" = "invalid" ; then
3536 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3537 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3538 { (exit 1); exit 1; }; }
3540 ol_enable_unique="$ol_arg"
3543 ol_enable_unique=${ol_enable_overlays:-no}
3545 # end --enable-unique
3547 # OpenLDAP --enable-valsort
3549 # Check whether --enable-valsort or --disable-valsort was given.
3550 if test "${enable_valsort+set}" = set; then
3551 enableval="$enable_valsort"
3554 for ol_val in no yes mod ; do
3555 if test "$enableval" = "$ol_val" ; then
3559 if test "$ol_arg" = "invalid" ; then
3560 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3561 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3562 { (exit 1); exit 1; }; }
3564 ol_enable_valsort="$ol_arg"
3567 ol_enable_valsort=${ol_enable_overlays:-no}
3569 # end --enable-valsort
3572 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3573 if test "${enable_xxslurpdoptions+set}" = set; then
3574 enableval="$enable_xxslurpdoptions"
3577 # OpenLDAP --enable-slurpd
3579 # Check whether --enable-slurpd or --disable-slurpd was given.
3580 if test "${enable_slurpd+set}" = set; then
3581 enableval="$enable_slurpd"
3584 for ol_val in auto yes no ; do
3585 if test "$enableval" = "$ol_val" ; then
3589 if test "$ol_arg" = "invalid" ; then
3590 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3591 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3592 { (exit 1); exit 1; }; }
3594 ol_enable_slurpd="$ol_arg"
3597 ol_enable_slurpd=auto
3599 # end --enable-slurpd
3601 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3602 if test "${enable_xxliboptions+set}" = set; then
3603 enableval="$enable_xxliboptions"
3606 # Check whether --enable-static or --disable-static was given.
3607 if test "${enable_static+set}" = set; then
3608 enableval="$enable_static"
3609 p=${PACKAGE-default}
3611 yes) enable_static=yes ;;
3612 no) enable_static=no ;;
3615 # Look at the argument we got. We use all the common list separators.
3616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617 for pkg in $enableval; do
3619 if test "X$pkg" = "X$p"; then
3630 # Check whether --enable-shared or --disable-shared was given.
3631 if test "${enable_shared+set}" = set; then
3632 enableval="$enable_shared"
3633 p=${PACKAGE-default}
3635 yes) enable_shared=yes ;;
3636 no) enable_shared=no ;;
3639 # Look at the argument we got. We use all the common list separators.
3640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3641 for pkg in $enableval; do
3643 if test "X$pkg" = "X$p"; then
3657 if test $ol_enable_slapd = no ; then
3658 if test $ol_enable_slapi = yes ; then
3659 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3662 case "$ol_enable_backends" in yes | mod)
3663 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3666 for i in $Backends; do
3667 eval "ol_tmp=\$ol_enable_$i"
3668 if test $ol_tmp != no ; then
3669 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3670 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3671 eval "ol_enable_$i=no"
3674 if test $ol_enable_modules = yes ; then
3675 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3676 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3678 if test $ol_enable_multimaster = yes ; then
3679 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3680 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3682 if test $ol_enable_wrappers = yes ; then
3683 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3684 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3686 if test $ol_enable_rlookups = yes ; then
3687 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3688 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3690 if test $ol_enable_aci = yes ; then
3691 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3692 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3694 if test $ol_enable_ldbm_api != auto ; then
3695 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3696 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3698 if test $ol_enable_ldbm_type != auto ; then
3699 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3700 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3702 if test $ol_enable_slurpd = yes ; then
3703 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3704 echo "$as_me: error: slurpd requires slapd" >&2;}
3705 { (exit 1); exit 1; }; }
3707 if test $ol_enable_rewrite = yes ; then
3708 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3709 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3711 case "$ol_enable_overlays" in yes | mod)
3712 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3713 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3715 for i in $Overlays; do
3716 eval "ol_tmp=\$ol_enable_$i"
3717 if test $ol_tmp != no ; then
3718 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3719 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3720 eval "ol_enable_$i=no"
3724 # force settings to no
3729 ol_enable_modules=no
3730 ol_enable_multimaster=no
3731 ol_enable_rlookups=no
3733 ol_enable_wrappers=no
3735 ol_enable_ldbm_api=no
3736 ol_enable_ldbm_type=no
3740 ol_enable_rewrite=no
3742 elif test $ol_enable_ldbm = no ; then
3744 if test $ol_enable_ldbm_api != auto ; then
3745 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3746 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3749 if test $ol_enable_ldbm_type != auto ; then
3750 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3751 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3754 if test $ol_enable_modules != yes &&
3755 test $ol_enable_bdb = no &&
3756 test $ol_enable_dnssrv = no &&
3757 test $ol_enable_hdb = no &&
3758 test $ol_enable_ldap = no &&
3759 test $ol_enable_meta = no &&
3760 test $ol_enable_monitor = no &&
3761 test $ol_enable_null = no &&
3762 test $ol_enable_passwd = no &&
3763 test $ol_enable_perl = no &&
3764 test $ol_enable_relay = no &&
3765 test $ol_enable_shell = no &&
3766 test $ol_enable_sql = no ; then
3768 if test $ol_enable_slapd = yes ; then
3769 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3770 echo "$as_me: error: slapd requires a backend" >&2;}
3771 { (exit 1); exit 1; }; }
3773 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3774 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3779 ol_enable_ldbm_api=no
3780 ol_enable_ldbm_type=no
3782 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3783 ol_enable_ldbm_api=berkeley
3787 if test $ol_enable_ldbm_api = gdbm &&
3788 test $ol_enable_ldbm_type = btree ; then
3789 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3790 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3791 { (exit 1); exit 1; }; }
3793 if test $ol_enable_ldbm_api = mdbm &&
3794 test $ol_enable_ldbm_type = btree ; then
3795 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3796 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3797 { (exit 1); exit 1; }; }
3799 if test $ol_enable_ldbm_api = ndbm &&
3800 test $ol_enable_ldbm_type = btree ; then
3801 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3802 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3803 { (exit 1); exit 1; }; }
3806 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3807 if test $ol_enable_ldbm_api = auto ; then
3808 ol_enable_ldbm_api=berkeley
3809 elif test $ol_enable_ldbm_api != berkeley ; then
3810 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3811 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3812 { (exit 1); exit 1; }; }
3817 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3818 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3819 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3820 { (exit 1); exit 1; }; }
3823 if test $ol_enable_slurpd = yes ; then
3824 if test $ol_with_threads = no ; then
3825 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3826 echo "$as_me: error: slurpd requires threads" >&2;}
3827 { (exit 1); exit 1; }; }
3831 if test $ol_enable_lmpasswd = yes ; then
3832 if test $ol_with_tls = no ; then
3833 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3834 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3835 { (exit 1); exit 1; }; }
3839 if test $ol_enable_kbind = yes ; then
3840 if test $ol_with_kerberos = no ; then
3841 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3842 echo "$as_me: error: options require --with-kerberos" >&2;}
3843 { (exit 1); exit 1; }; }
3844 elif test $ol_with_kerberos = auto ; then
3845 ol_with_kerberos=yes
3848 elif test $ol_enable_kbind = no ; then
3849 if test $ol_with_kerberos = auto ; then
3851 elif test $ol_with_kerberos != no ; then
3852 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3853 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3858 if test $ol_enable_spasswd = yes ; then
3859 if test $ol_with_cyrus_sasl = no ; then
3860 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3861 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3862 { (exit 1); exit 1; }; }
3864 ol_with_cyrus_sasl=yes
3867 echo "$as_me:$LINENO: result: done" >&5
3868 echo "${ECHO_T}done" >&6
3912 BUILD_TRANSLUCENT=no
3916 SLAPD_STATIC_OVERLAYS=
3917 SLAPD_DYNAMIC_OVERLAYS=
3919 SLAPD_MODULES_LDFLAGS=
3920 SLAPD_MODULES_CPPFLAGS=
3922 SLAPD_STATIC_BACKENDS=back-ldif
3923 SLAPD_DYNAMIC_BACKENDS=
3948 cat >>confdefs.h <<\_ACEOF
3949 #define HAVE_MKVERSION 1
3957 *-*-aix*) if test -z "$CC" ; then
3958 case "$ol_with_threads" in
3959 auto | yes | posix) ol_aix_threads=yes ;;
3965 if test $ol_aix_threads = yes ; then
3966 if test -z "${CC}" ; then
3967 for ac_prog in cc_r xlc_r cc
3969 # Extract the first word of "$ac_prog", so it can be a program name with args.
3970 set dummy $ac_prog; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_prog_CC+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 if test -n "$CC"; then
3977 ac_cv_prog_CC="$CC" # Let the user override the test.
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986 ac_cv_prog_CC="$ac_prog"
3987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 if test -n "$CC"; then
3997 echo "$as_me:$LINENO: result: $CC" >&5
3998 echo "${ECHO_T}$CC" >&6
4000 echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4004 test -n "$CC" && break
4008 if test "$CC" = cc ; then
4009 if test $ol_with_threads != auto ; then
4010 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4011 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4012 { (exit 1); exit 1; }; }
4014 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4015 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4021 case ${CC} in cc_r | xlc_r)
4022 ol_with_threads=posix
4023 ol_cv_pthread_create=yes
4028 if test -z "${CC}"; then
4029 for ac_prog in cc gcc
4031 # Extract the first word of "$ac_prog", so it can be a program name with args.
4032 set dummy $ac_prog; ac_word=$2
4033 echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4035 if test "${ac_cv_prog_CC+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 if test -n "$CC"; then
4039 ac_cv_prog_CC="$CC" # Let the user override the test.
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048 ac_cv_prog_CC="$ac_prog"
4049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 if test -n "$CC"; then
4059 echo "$as_me:$LINENO: result: $CC" >&5
4060 echo "${ECHO_T}$CC" >&6
4062 echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4066 test -n "$CC" && break
4068 test -n "$CC" || CC="missing"
4071 if test "${CC}" = "missing" ; then
4072 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4073 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4074 { (exit 1); exit 1; }; }
4078 if test -z "${AR}"; then
4079 for ac_prog in ar gar
4081 # Extract the first word of "$ac_prog", so it can be a program name with args.
4082 set dummy $ac_prog; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_prog_AR+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 if test -n "$AR"; then
4089 ac_cv_prog_AR="$AR" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_AR="$ac_prog"
4099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 if test -n "$AR"; then
4109 echo "$as_me:$LINENO: result: $AR" >&5
4110 echo "${ECHO_T}$AR" >&6
4112 echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4116 test -n "$AR" && break
4118 test -n "$AR" || AR="missing"
4121 if test "${AR}" = "missing" ; then
4122 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4123 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4124 { (exit 1); exit 1; }; }
4132 # Check whether --enable-fast-install or --disable-fast-install was given.
4133 if test "${enable_fast_install+set}" = set; then
4134 enableval="$enable_fast_install"
4135 p=${PACKAGE-default}
4137 yes) enable_fast_install=yes ;;
4138 no) enable_fast_install=no ;;
4140 enable_fast_install=no
4141 # Look at the argument we got. We use all the common list separators.
4142 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4143 for pkg in $enableval; do
4145 if test "X$pkg" = "X$p"; then
4146 enable_fast_install=yes
4153 enable_fast_install=yes
4156 DEPDIR="${am__leading_dot}deps"
4158 ac_config_commands="$ac_config_commands depfiles"
4161 am_make=${MAKE-make}
4162 cat > confinc << 'END'
4167 # If we don't find an include directive, just comment out the code.
4168 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4169 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4173 # First try GNU make style include.
4174 echo "include confinc" > confmf
4175 # We grep out `Entering directory' and `Leaving directory'
4176 # messages which can occur if `w' ends up in MAKEFLAGS.
4177 # In particular we don't look at `^make:' because GNU make might
4178 # be invoked under some other name (usually "gmake"), in which
4179 # case it prints its new name instead of `make'.
4180 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4185 # Now try BSD make style include.
4186 if test "$am__include" = "#"; then
4187 echo '.include "confinc"' > confmf
4188 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4189 am__include=.include
4196 echo "$as_me:$LINENO: result: $_am_result" >&5
4197 echo "${ECHO_T}$_am_result" >&6
4198 rm -f confinc confmf
4200 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4201 if test "${enable_dependency_tracking+set}" = set; then
4202 enableval="$enable_dependency_tracking"
4205 if test "x$enable_dependency_tracking" != xno; then
4206 am_depcomp="$ac_aux_dir/depcomp"
4211 if test "x$enable_dependency_tracking" != xno; then
4222 ac_cpp='$CPP $CPPFLAGS'
4223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226 if test -n "$ac_tool_prefix"; then
4227 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4228 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4229 echo "$as_me:$LINENO: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4231 if test "${ac_cv_prog_CC+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 if test -n "$CC"; then
4235 ac_cv_prog_CC="$CC" # Let the user override the test.
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 if test -n "$CC"; then
4255 echo "$as_me:$LINENO: result: $CC" >&5
4256 echo "${ECHO_T}$CC" >&6
4258 echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6
4263 if test -z "$ac_cv_prog_CC"; then
4265 # Extract the first word of "gcc", so it can be a program name with args.
4266 set dummy gcc; ac_word=$2
4267 echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 if test -n "$ac_ct_CC"; then
4273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_ac_ct_CC="gcc"
4283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4292 if test -n "$ac_ct_CC"; then
4293 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4294 echo "${ECHO_T}$ac_ct_CC" >&6
4296 echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6
4305 if test -z "$CC"; then
4306 if test -n "$ac_tool_prefix"; then
4307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4308 set dummy ${ac_tool_prefix}cc; ac_word=$2
4309 echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4311 if test "${ac_cv_prog_CC+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 if test -n "$CC"; then
4315 ac_cv_prog_CC="$CC" # Let the user override the test.
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_CC="${ac_tool_prefix}cc"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 if test -n "$CC"; then
4335 echo "$as_me:$LINENO: result: $CC" >&5
4336 echo "${ECHO_T}$CC" >&6
4338 echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6
4343 if test -z "$ac_cv_prog_CC"; then
4345 # Extract the first word of "cc", so it can be a program name with args.
4346 set dummy cc; ac_word=$2
4347 echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4349 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 if test -n "$ac_ct_CC"; then
4353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362 ac_cv_prog_ac_ct_CC="cc"
4363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4372 if test -n "$ac_ct_CC"; then
4373 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4374 echo "${ECHO_T}$ac_ct_CC" >&6
4376 echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6
4386 if test -z "$CC"; then
4387 # Extract the first word of "cc", so it can be a program name with args.
4388 set dummy cc; ac_word=$2
4389 echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4391 if test "${ac_cv_prog_CC+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 if test -n "$CC"; then
4395 ac_cv_prog_CC="$CC" # Let the user override the test.
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4406 ac_prog_rejected=yes
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 if test $ac_prog_rejected = yes; then
4417 # We found a bogon in the path, so make sure we never use it.
4418 set dummy $ac_cv_prog_CC
4420 if test $# != 0; then
4421 # We chose a different compiler from the bogus one.
4422 # However, it has the same basename, so the bogon will be chosen
4423 # first if we set CC to just the basename; use the full file name.
4425 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4431 if test -n "$CC"; then
4432 echo "$as_me:$LINENO: result: $CC" >&5
4433 echo "${ECHO_T}$CC" >&6
4435 echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6
4440 if test -z "$CC"; then
4441 if test -n "$ac_tool_prefix"; then
4444 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4445 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4446 echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4448 if test "${ac_cv_prog_CC+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 if test -n "$CC"; then
4452 ac_cv_prog_CC="$CC" # Let the user override the test.
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 if test -n "$CC"; then
4472 echo "$as_me:$LINENO: result: $CC" >&5
4473 echo "${ECHO_T}$CC" >&6
4475 echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6
4479 test -n "$CC" && break
4482 if test -z "$CC"; then
4486 # Extract the first word of "$ac_prog", so it can be a program name with args.
4487 set dummy $ac_prog; ac_word=$2
4488 echo "$as_me:$LINENO: checking for $ac_word" >&5
4489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4490 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 if test -n "$ac_ct_CC"; then
4494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4503 ac_cv_prog_ac_ct_CC="$ac_prog"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4513 if test -n "$ac_ct_CC"; then
4514 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4515 echo "${ECHO_T}$ac_ct_CC" >&6
4517 echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6
4521 test -n "$ac_ct_CC" && break
4530 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4531 See \`config.log' for more details." >&5
4532 echo "$as_me: error: no acceptable C compiler found in \$PATH
4533 See \`config.log' for more details." >&2;}
4534 { (exit 1); exit 1; }; }
4536 # Provide some information about the compiler.
4537 echo "$as_me:$LINENO:" \
4538 "checking for C compiler version" >&5
4539 ac_compiler=`set X $ac_compile; echo $2`
4540 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4541 (eval $ac_compiler --version </dev/null >&5) 2>&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }
4545 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4546 (eval $ac_compiler -v </dev/null >&5) 2>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }
4550 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4551 (eval $ac_compiler -V </dev/null >&5) 2>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }
4556 cat >conftest.$ac_ext <<_ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4571 ac_clean_files_save=$ac_clean_files
4572 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4573 # Try to create an executable without -o first, disregard a.out.
4574 # It will help us diagnose broken compilers, and finding out an intuition
4576 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4577 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4578 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4579 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4580 (eval $ac_link_default) 2>&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; then
4584 # Find the output, starting from the most likely. This scheme is
4585 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4588 # Be careful to initialize this variable, since it used to be cached.
4589 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4591 # b.out is created by i960 compilers.
4592 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4594 test -f "$ac_file" || continue
4596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4599 # This is the source file.
4602 # We found the default executable, but exeext='' is most
4606 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4607 # FIXME: I believe we export ac_cv_exeext for Libtool,
4608 # but it would be cool to find out if it's true. Does anybody
4609 # maintain Libtool? --akim.
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4621 See \`config.log' for more details." >&5
4622 echo "$as_me: error: C compiler cannot create executables
4623 See \`config.log' for more details." >&2;}
4624 { (exit 77); exit 77; }; }
4627 ac_exeext=$ac_cv_exeext
4628 echo "$as_me:$LINENO: result: $ac_file" >&5
4629 echo "${ECHO_T}$ac_file" >&6
4631 # Check the compiler produces executables we can run. If not, either
4632 # the compiler is broken, or we cross compile.
4633 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4634 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4635 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4636 # If not cross compiling, check that we can run a simple program.
4637 if test "$cross_compiling" != yes; then
4638 if { ac_try='./$ac_file'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4646 if test "$cross_compiling" = maybe; then
4649 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4650 If you meant to cross compile, use \`--host'.
4651 See \`config.log' for more details." >&5
4652 echo "$as_me: error: cannot run C compiled programs.
4653 If you meant to cross compile, use \`--host'.
4654 See \`config.log' for more details." >&2;}
4655 { (exit 1); exit 1; }; }
4659 echo "$as_me:$LINENO: result: yes" >&5
4660 echo "${ECHO_T}yes" >&6
4662 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4663 ac_clean_files=$ac_clean_files_save
4664 # Check the compiler produces executables we can run. If not, either
4665 # the compiler is broken, or we cross compile.
4666 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4667 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4668 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4669 echo "${ECHO_T}$cross_compiling" >&6
4671 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4672 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4674 (eval $ac_link) 2>&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; then
4678 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4679 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4680 # work properly (i.e., refer to `conftest.exe'), while it won't with
4682 for ac_file in conftest.exe conftest conftest.*; do
4683 test -f "$ac_file" || continue
4685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4686 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4693 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4694 See \`config.log' for more details." >&5
4695 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4696 See \`config.log' for more details." >&2;}
4697 { (exit 1); exit 1; }; }
4700 rm -f conftest$ac_cv_exeext
4701 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4702 echo "${ECHO_T}$ac_cv_exeext" >&6
4704 rm -f conftest.$ac_ext
4705 EXEEXT=$ac_cv_exeext
4707 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4708 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4709 if test "${ac_cv_objext+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 cat >conftest.$ac_ext <<_ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4727 rm -f conftest.o conftest.obj
4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729 (eval $ac_compile) 2>&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; then
4733 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4736 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4745 See \`config.log' for more details." >&5
4746 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4747 See \`config.log' for more details." >&2;}
4748 { (exit 1); exit 1; }; }
4751 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4753 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4754 echo "${ECHO_T}$ac_cv_objext" >&6
4755 OBJEXT=$ac_cv_objext
4757 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4758 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4759 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 cat >conftest.$ac_ext <<_ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4780 rm -f conftest.$ac_objext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>conftest.er1
4784 grep -v '^ *+' conftest.er1 >conftest.err
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -z "$ac_c_werror_flag"
4790 || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4813 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4814 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4815 GCC=`test $ac_compiler_gnu = yes && echo yes`
4816 ac_test_CFLAGS=${CFLAGS+set}
4817 ac_save_CFLAGS=$CFLAGS
4819 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4820 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4821 if test "${ac_cv_prog_cc_g+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 cat >conftest.$ac_ext <<_ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4839 rm -f conftest.$ac_objext
4840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4841 (eval $ac_compile) 2>conftest.er1
4843 grep -v '^ *+' conftest.er1 >conftest.err
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
4848 { ac_try='test -z "$ac_c_werror_flag"
4849 || test ! -s conftest.err'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; } &&
4855 { ac_try='test -s conftest.$ac_objext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4870 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4871 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4872 if test "$ac_test_CFLAGS" = set; then
4873 CFLAGS=$ac_save_CFLAGS
4874 elif test $ac_cv_prog_cc_g = yes; then
4875 if test "$GCC" = yes; then
4881 if test "$GCC" = yes; then
4887 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4888 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4889 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 ac_cv_prog_cc_stdc=no
4894 cat >conftest.$ac_ext <<_ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4902 #include <sys/types.h>
4903 #include <sys/stat.h>
4904 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4905 struct buf { int x; };
4906 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4907 static char *e (p, i)
4913 static char *f (char * (*g) (char **, int), char **p, ...)
4918 s = g (p, va_arg (v,int));
4923 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4924 function prototypes and stuff, but not '\xHH' hex character constants.
4925 These don't provoke an error unfortunately, instead are silently treated
4926 as 'x'. The following induces an error, until -std1 is added to get
4927 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4928 array size at least. It's necessary to write '\x00'==0 to get something
4929 that's true only with -std1. */
4930 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4932 int test (int i, double x);
4933 struct s1 {int (*f) (int a);};
4934 struct s2 {int (*f) (double a);};
4935 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4941 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4946 # Don't try gcc -ansi; that turns off useful extensions and
4947 # breaks some systems' header files.
4948 # AIX -qlanglvl=ansi
4949 # Ultrix and OSF/1 -std1
4950 # HP-UX 10.20 and later -Ae
4951 # HP-UX older versions -Aa -D_HPUX_SOURCE
4952 # SVR4 -Xc -D__EXTENSIONS__
4953 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4955 CC="$ac_save_CC $ac_arg"
4956 rm -f conftest.$ac_objext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958 (eval $ac_compile) 2>conftest.er1
4960 grep -v '^ *+' conftest.er1 >conftest.err
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -z "$ac_c_werror_flag"
4966 || test ! -s conftest.err'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest.$ac_objext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_cv_prog_cc_stdc=$ac_arg
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4985 rm -f conftest.err conftest.$ac_objext
4987 rm -f conftest.$ac_ext conftest.$ac_objext
4992 case "x$ac_cv_prog_cc_stdc" in
4994 echo "$as_me:$LINENO: result: none needed" >&5
4995 echo "${ECHO_T}none needed" >&6 ;;
4997 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4998 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4999 CC="$CC $ac_cv_prog_cc_stdc" ;;
5002 # Some people use a C++ compiler to compile C. Since we use `exit',
5003 # in C++ we need to declare it. In case someone uses the same compiler
5004 # for both compiling C and C++ we need to have the C++ compiler decide
5005 # the declaration of exit, since it's the most demanding environment.
5006 cat >conftest.$ac_ext <<_ACEOF
5011 rm -f conftest.$ac_objext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>conftest.er1
5015 grep -v '^ *+' conftest.er1 >conftest.err
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } &&
5020 { ac_try='test -z "$ac_c_werror_flag"
5021 || test ! -s conftest.err'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; } &&
5027 { ac_try='test -s conftest.$ac_objext'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; }; then
5033 for ac_declaration in \
5035 'extern "C" void std::exit (int) throw (); using std::exit;' \
5036 'extern "C" void std::exit (int); using std::exit;' \
5037 'extern "C" void exit (int) throw ();' \
5038 'extern "C" void exit (int);' \
5041 cat >conftest.$ac_ext <<_ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5057 rm -f conftest.$ac_objext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5059 (eval $ac_compile) 2>conftest.er1
5061 grep -v '^ *+' conftest.er1 >conftest.err
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -z "$ac_c_werror_flag"
5067 || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try='test -s conftest.$ac_objext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5087 cat >conftest.$ac_ext <<_ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5102 rm -f conftest.$ac_objext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104 (eval $ac_compile) 2>conftest.er1
5106 grep -v '^ *+' conftest.er1 >conftest.err
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try='test -z "$ac_c_werror_flag"
5112 || test ! -s conftest.err'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try='test -s conftest.$ac_objext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5133 if test -n "$ac_declaration"; then
5134 echo '#ifdef __cplusplus' >>confdefs.h
5135 echo $ac_declaration >>confdefs.h
5136 echo '#endif' >>confdefs.h
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5146 ac_cpp='$CPP $CPPFLAGS'
5147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5151 depcc="$CC" am_compiler_list=
5153 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5154 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5155 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5159 # We make a subdir and do the tests there. Otherwise we can end up
5160 # making bogus files that we don't know about and never remove. For
5161 # instance it was reported that on HP-UX the gcc test will end up
5162 # making a dummy file named `D' -- because `-MD' means `put the output
5165 # Copy depcomp to subdir because otherwise we won't find it if we're
5166 # using a relative directory.
5167 cp "$am_depcomp" conftest.dir
5169 # We will build objects and dependencies in a subdirectory because
5170 # it helps to detect inapplicable dependency modes. For instance
5171 # both Tru64's cc and ICC support -MD to output dependencies as a
5172 # side effect of compilation, but ICC will put the dependencies in
5173 # the current directory while Tru64 will put them in the object
5177 am_cv_CC_dependencies_compiler_type=none
5178 if test "$am_compiler_list" = ""; then
5179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5181 for depmode in $am_compiler_list; do
5182 # Setup a source with many dependencies, because some compilers
5183 # like to wrap large dependency lists on column 80 (with \), and
5184 # we should not choose a depcomp mode which is confused by this.
5186 # We need to recreate these files for each test, as the compiler may
5187 # overwrite some of them when testing with obscure command lines.
5188 # This happens at least with the AIX C compiler.
5190 for i in 1 2 3 4 5 6; do
5191 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5192 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5193 # Solaris 8's {/usr,}/bin/sh.
5194 touch sub/conftst$i.h
5196 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5200 # after this tag, mechanisms are not by side-effect, so they'll
5201 # only be used when explicitly requested
5202 if test "x$enable_dependency_tracking" = xyes; then
5210 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5211 # mode. It turns out that the SunPro C++ compiler does not properly
5212 # handle `-M -o', and we need to detect this.
5213 if depmode=$depmode \
5214 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5216 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5217 >/dev/null 2>conftest.err &&
5218 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5219 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5220 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5221 # icc doesn't choke on unknown options, it will just issue warnings
5222 # or remarks (even with -Werror). So we grep stderr for any message
5223 # that says an option was ignored or not supported.
5224 # When given -MP, icc 7.0 and 7.1 complain thusly:
5225 # icc: Command line warning: ignoring option '-M'; no argument required
5226 # The diagnosis changed in icc 8.0:
5227 # icc: Command line remark: option '-MP' not supported
5228 if (grep 'ignoring option' conftest.err ||
5229 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5230 am_cv_CC_dependencies_compiler_type=$depmode
5239 am_cv_CC_dependencies_compiler_type=none
5243 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5244 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5245 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5250 test "x$enable_dependency_tracking" != xno \
5251 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5253 am__fastdepCC_FALSE='#'
5255 am__fastdepCC_TRUE='#'
5256 am__fastdepCC_FALSE=
5260 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5261 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5262 if test "${lt_cv_path_SED+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 # Loop through the user's path and test for sed and gsed.
5266 # Then use that list of sed's as ones to test for truncation.
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 test -z "$as_dir" && as_dir=.
5272 for lt_ac_prog in sed gsed; do
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5275 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5282 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5283 # along with /bin/sed that truncates output.
5284 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5285 test ! -f $lt_ac_sed && continue
5286 cat /dev/null > conftest.in
5288 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5289 # Check for GNU sed and select it if it is found.
5290 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5291 lt_cv_path_SED=$lt_ac_sed
5295 cat conftest.in conftest.in >conftest.tmp
5296 mv conftest.tmp conftest.in
5297 cp conftest.in conftest.nl
5299 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5300 cmp -s conftest.out conftest.nl || break
5301 # 10000 chars as input seems more than enough
5302 test $lt_ac_count -gt 10 && break
5303 lt_ac_count=`expr $lt_ac_count + 1`
5304 if test $lt_ac_count -gt $lt_ac_max; then
5305 lt_ac_max=$lt_ac_count
5306 lt_cv_path_SED=$lt_ac_sed
5314 echo "$as_me:$LINENO: result: $SED" >&5
5315 echo "${ECHO_T}$SED" >&6
5317 echo "$as_me:$LINENO: checking for egrep" >&5
5318 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5319 if test "${ac_cv_prog_egrep+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5323 then ac_cv_prog_egrep='grep -E'
5324 else ac_cv_prog_egrep='egrep'
5327 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5328 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5329 EGREP=$ac_cv_prog_egrep
5333 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5334 if test "${with_gnu_ld+set}" = set; then
5335 withval="$with_gnu_ld"
5336 test "$withval" = no || with_gnu_ld=yes
5341 if test "$GCC" = yes; then
5342 # Check if gcc -print-prog-name=ld gives a path.
5343 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5344 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5347 # gcc leaves a trailing carriage return which upsets mingw
5348 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5350 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5353 # Accept absolute paths.
5355 re_direlt='/[^/][^/]*/\.\./'
5356 # Canonicalize the pathname of ld
5357 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5358 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5359 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5361 test -z "$LD" && LD="$ac_prog"
5364 # If it fails, then pretend we aren't using GCC.
5368 # If it is relative, then search for the first ld in PATH.
5372 elif test "$with_gnu_ld" = yes; then
5373 echo "$as_me:$LINENO: checking for GNU ld" >&5
5374 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5376 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5377 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5379 if test "${lt_cv_path_LD+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 if test -z "$LD"; then
5383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5384 for ac_dir in $PATH; do
5386 test -z "$ac_dir" && ac_dir=.
5387 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5388 lt_cv_path_LD="$ac_dir/$ac_prog"
5389 # Check to see if the program is GNU ld. I'd rather use --version,
5390 # but apparently some variants of GNU ld only accept -v.
5391 # Break only if it was the GNU/non-GNU ld that we prefer.
5392 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5393 *GNU* | *'with BFD'*)
5394 test "$with_gnu_ld" != no && break
5397 test "$with_gnu_ld" != yes && break
5404 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5409 if test -n "$LD"; then
5410 echo "$as_me:$LINENO: result: $LD" >&5
5411 echo "${ECHO_T}$LD" >&6
5413 echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6
5416 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5417 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5418 { (exit 1); exit 1; }; }
5419 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5420 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5421 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5425 case `$LD -v 2>&1 </dev/null` in
5426 *GNU* | *'with BFD'*)
5427 lt_cv_prog_gnu_ld=yes
5430 lt_cv_prog_gnu_ld=no
5434 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5435 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5436 with_gnu_ld=$lt_cv_prog_gnu_ld
5439 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5440 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5441 if test "${lt_cv_ld_reload_flag+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 lt_cv_ld_reload_flag='-r'
5446 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5447 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5448 reload_flag=$lt_cv_ld_reload_flag
5449 case $reload_flag in
5451 *) reload_flag=" $reload_flag" ;;
5453 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5456 if test "$GCC" = yes; then
5457 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5459 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5464 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5465 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5466 if test "${lt_cv_path_NM+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 if test -n "$NM"; then
5470 # Let the user override the test.
5473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5474 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5476 test -z "$ac_dir" && ac_dir=.
5477 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5478 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5479 # Check to see if the nm accepts a BSD-compat flag.
5480 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5481 # nm: unknown option "B" ignored
5482 # Tru64's nm complains that /dev/null is an invalid object file
5483 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5484 */dev/null* | *'Invalid file or object type'*)
5485 lt_cv_path_NM="$tmp_nm -B"
5489 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5491 lt_cv_path_NM="$tmp_nm -p"
5495 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5496 continue # so that we can try to find one that supports BSD flags
5503 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5506 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5507 echo "${ECHO_T}$lt_cv_path_NM" >&6
5510 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5511 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5513 if test "$LN_S" = "ln -s"; then
5514 echo "$as_me:$LINENO: result: yes" >&5
5515 echo "${ECHO_T}yes" >&6
5517 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5518 echo "${ECHO_T}no, using $LN_S" >&6
5521 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5522 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5523 if test "${lt_cv_deplibs_check_method+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 lt_cv_file_magic_cmd='$MAGIC_CMD'
5527 lt_cv_file_magic_test_file=
5528 lt_cv_deplibs_check_method='unknown'
5529 # Need to set the preceding variable on all platforms that support
5530 # interlibrary dependencies.
5531 # 'none' -- dependencies not supported.
5532 # `unknown' -- same as none, but documents that we really don't know.
5533 # 'pass_all' -- all dependencies passed with no checks.
5534 # 'test_compile' -- check by making test program.
5535 # 'file_magic [[regex]]' -- check by looking for files in library path
5536 # which responds to the $file_magic_cmd with a given extended regex.
5537 # If you have `file' or equivalent on your system and you're not sure
5538 # whether `pass_all' will *always* work, you probably want this one.
5542 lt_cv_deplibs_check_method=pass_all
5546 lt_cv_deplibs_check_method=pass_all
5550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5551 lt_cv_file_magic_cmd='/usr/bin/file -L'
5552 lt_cv_file_magic_test_file=/shlib/libc.so
5556 # func_win32_libid is a shell function defined in ltmain.sh
5557 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5558 lt_cv_file_magic_cmd='func_win32_libid'
5562 # Base MSYS/MinGW do not provide the 'file' command needed by
5563 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5564 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5565 lt_cv_file_magic_cmd='$OBJDUMP -f'
5568 darwin* | rhapsody*)
5569 lt_cv_deplibs_check_method=pass_all
5572 freebsd* | kfreebsd*-gnu | dragonfly*)
5573 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5576 # Not sure whether the presence of OpenBSD here was a mistake.
5577 # Let's accept both of them until this is cleared up.
5578 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5579 lt_cv_file_magic_cmd=/usr/bin/file
5580 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5584 lt_cv_deplibs_check_method=pass_all
5589 lt_cv_deplibs_check_method=pass_all
5592 hpux10.20* | hpux11*)
5593 lt_cv_file_magic_cmd=/usr/bin/file
5596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5597 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5600 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]'
5601 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5604 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5605 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5610 irix5* | irix6* | nonstopux*)
5612 *-32|*"-32 ") libmagic=32-bit;;
5613 *-n32|*"-n32 ") libmagic=N32;;
5614 *-64|*"-64 ") libmagic=64-bit;;
5615 *) libmagic=never-match;;
5617 lt_cv_deplibs_check_method=pass_all
5620 # This must be Linux ELF.
5622 lt_cv_deplibs_check_method=pass_all
5626 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5634 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5635 lt_cv_file_magic_cmd=/usr/bin/file
5636 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5640 lt_cv_deplibs_check_method=unknown
5644 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5651 osf3* | osf4* | osf5*)
5652 lt_cv_deplibs_check_method=pass_all
5656 lt_cv_deplibs_check_method=pass_all
5660 lt_cv_deplibs_check_method=pass_all
5663 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5664 case $host_vendor in
5666 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]'
5667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5670 lt_cv_deplibs_check_method=pass_all
5673 lt_cv_file_magic_cmd='/bin/file'
5674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5677 lt_cv_file_magic_cmd='/bin/file'
5678 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5679 lt_cv_file_magic_test_file=/lib/libc.so
5682 lt_cv_deplibs_check_method=pass_all
5687 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5688 lt_cv_deplibs_check_method=pass_all
5693 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5694 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5695 file_magic_cmd=$lt_cv_file_magic_cmd
5696 deplibs_check_method=$lt_cv_deplibs_check_method
5697 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5702 # If no C compiler was specified, use CC.
5705 # Allow CC to be a program name with arguments.
5709 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5710 if test "${enable_libtool_lock+set}" = set; then
5711 enableval="$enable_libtool_lock"
5714 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5716 # Some flags need to be propagated to the compiler or linker for good
5720 # Find out which ABI we are using.
5721 echo 'int i;' > conftest.$ac_ext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; then
5727 case `/usr/bin/file conftest.$ac_objext` in
5739 # Find out which ABI we are using.
5740 echo '#line 5740 "configure"' > conftest.$ac_ext
5741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742 (eval $ac_compile) 2>&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; then
5746 if test "$lt_cv_prog_gnu_ld" = yes; then
5747 case `/usr/bin/file conftest.$ac_objext` in
5749 LD="${LD-ld} -melf32bsmip"
5752 LD="${LD-ld} -melf32bmipn32"
5755 LD="${LD-ld} -melf64bmip"
5759 case `/usr/bin/file conftest.$ac_objext` in
5775 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5776 # Find out which ABI we are using.
5777 echo 'int i;' > conftest.$ac_ext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; then
5783 case `/usr/bin/file conftest.o` in
5787 LD="${LD-ld} -m elf_i386"
5789 ppc64-*linux*|powerpc64-*linux*)
5790 LD="${LD-ld} -m elf32ppclinux"
5793 LD="${LD-ld} -m elf_s390"
5796 LD="${LD-ld} -m elf32_sparc"
5803 LD="${LD-ld} -m elf_x86_64"
5805 ppc*-*linux*|powerpc*-*linux*)
5806 LD="${LD-ld} -m elf64ppc"
5809 LD="${LD-ld} -m elf64_s390"
5812 LD="${LD-ld} -m elf64_sparc"
5822 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5823 SAVE_CFLAGS="$CFLAGS"
5824 CFLAGS="$CFLAGS -belf"
5825 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5826 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5827 if test "${lt_cv_cc_needs_belf+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 ac_cpp='$CPP $CPPFLAGS'
5832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836 cat >conftest.$ac_ext <<_ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853 (eval $ac_link) 2>conftest.er1
5855 grep -v '^ *+' conftest.er1 >conftest.err
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try='test -z "$ac_c_werror_flag"
5861 || test ! -s conftest.err'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; } &&
5867 { ac_try='test -s conftest$ac_exeext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 lt_cv_cc_needs_belf=yes
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 lt_cv_cc_needs_belf=no
5880 rm -f conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5883 ac_cpp='$CPP $CPPFLAGS'
5884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5889 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5890 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5891 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5892 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5893 CFLAGS="$SAVE_CFLAGS"
5896 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5897 if test -n "$ac_tool_prefix"; then
5898 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5899 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5900 echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5902 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 if test -n "$DLLTOOL"; then
5906 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 DLLTOOL=$ac_cv_prog_DLLTOOL
5925 if test -n "$DLLTOOL"; then
5926 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5927 echo "${ECHO_T}$DLLTOOL" >&6
5929 echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6
5934 if test -z "$ac_cv_prog_DLLTOOL"; then
5935 ac_ct_DLLTOOL=$DLLTOOL
5936 # Extract the first word of "dlltool", so it can be a program name with args.
5937 set dummy dlltool; ac_word=$2
5938 echo "$as_me:$LINENO: checking for $ac_word" >&5
5939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5940 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 if test -n "$ac_ct_DLLTOOL"; then
5944 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5953 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5963 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5964 if test -n "$ac_ct_DLLTOOL"; then
5965 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5966 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5968 echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5972 DLLTOOL=$ac_ct_DLLTOOL
5974 DLLTOOL="$ac_cv_prog_DLLTOOL"
5977 if test -n "$ac_tool_prefix"; then
5978 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5979 set dummy ${ac_tool_prefix}as; ac_word=$2
5980 echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5982 if test "${ac_cv_prog_AS+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 if test -n "$AS"; then
5986 ac_cv_prog_AS="$AS" # Let the user override the test.
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995 ac_cv_prog_AS="${ac_tool_prefix}as"
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 if test -n "$AS"; then
6006 echo "$as_me:$LINENO: result: $AS" >&5
6007 echo "${ECHO_T}$AS" >&6
6009 echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6
6014 if test -z "$ac_cv_prog_AS"; then
6016 # Extract the first word of "as", so it can be a program name with args.
6017 set dummy as; ac_word=$2
6018 echo "$as_me:$LINENO: checking for $ac_word" >&5
6019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6020 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 if test -n "$ac_ct_AS"; then
6024 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033 ac_cv_prog_ac_ct_AS="as"
6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6043 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6044 if test -n "$ac_ct_AS"; then
6045 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6046 echo "${ECHO_T}$ac_ct_AS" >&6
6048 echo "$as_me:$LINENO: result: no" >&5
6049 echo "${ECHO_T}no" >&6
6057 if test -n "$ac_tool_prefix"; then
6058 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6059 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6060 echo "$as_me:$LINENO: checking for $ac_word" >&5
6061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6062 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 if test -n "$OBJDUMP"; then
6066 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 OBJDUMP=$ac_cv_prog_OBJDUMP
6085 if test -n "$OBJDUMP"; then
6086 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6087 echo "${ECHO_T}$OBJDUMP" >&6
6089 echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6
6094 if test -z "$ac_cv_prog_OBJDUMP"; then
6095 ac_ct_OBJDUMP=$OBJDUMP
6096 # Extract the first word of "objdump", so it can be a program name with args.
6097 set dummy objdump; ac_word=$2
6098 echo "$as_me:$LINENO: checking for $ac_word" >&5
6099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6100 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 if test -n "$ac_ct_OBJDUMP"; then
6104 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6113 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6123 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6124 if test -n "$ac_ct_OBJDUMP"; then
6125 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6126 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6128 echo "$as_me:$LINENO: result: no" >&5
6129 echo "${ECHO_T}no" >&6
6132 OBJDUMP=$ac_ct_OBJDUMP
6134 OBJDUMP="$ac_cv_prog_OBJDUMP"
6141 need_locks="$enable_libtool_lock"
6145 ac_cpp='$CPP $CPPFLAGS'
6146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6149 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6150 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6151 # On Suns, sometimes $CPP names a directory.
6152 if test -n "$CPP" && test -d "$CPP"; then
6155 if test -z "$CPP"; then
6156 if test "${ac_cv_prog_CPP+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 # Double quotes because CPP needs to be expanded
6160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6163 for ac_c_preproc_warn_flag in '' yes
6165 # Use a header file that comes with gcc, so configuring glibc
6166 # with a fresh cross-compiler works.
6167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6168 # <limits.h> exists even on freestanding compilers.
6169 # On the NeXT, cc -E runs the code through the compiler's parser,
6170 # not just through cpp. "Syntax error" is here to catch this case.
6171 cat >conftest.$ac_ext <<_ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6178 # include <limits.h>
6180 # include <assert.h>
6184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6187 grep -v '^ *+' conftest.er1 >conftest.err
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } >/dev/null; then
6192 if test -s conftest.err; then
6193 ac_cpp_err=$ac_c_preproc_warn_flag
6194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6201 if test -z "$ac_cpp_err"; then
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 # Broken: fails on valid input.
6210 rm -f conftest.err conftest.$ac_ext
6212 # OK, works on sane cases. Now check whether non-existent headers
6213 # can be detected and how.
6214 cat >conftest.$ac_ext <<_ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220 #include <ac_nonexistent.h>
6222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6225 grep -v '^ *+' conftest.er1 >conftest.err
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } >/dev/null; then
6230 if test -s conftest.err; then
6231 ac_cpp_err=$ac_c_preproc_warn_flag
6232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6239 if test -z "$ac_cpp_err"; then
6240 # Broken: success on invalid input.
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 # Passes both tests.
6250 rm -f conftest.err conftest.$ac_ext
6253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6254 rm -f conftest.err conftest.$ac_ext
6255 if $ac_preproc_ok; then
6267 echo "$as_me:$LINENO: result: $CPP" >&5
6268 echo "${ECHO_T}$CPP" >&6
6270 for ac_c_preproc_warn_flag in '' yes
6272 # Use a header file that comes with gcc, so configuring glibc
6273 # with a fresh cross-compiler works.
6274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6275 # <limits.h> exists even on freestanding compilers.
6276 # On the NeXT, cc -E runs the code through the compiler's parser,
6277 # not just through cpp. "Syntax error" is here to catch this case.
6278 cat >conftest.$ac_ext <<_ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6285 # include <limits.h>
6287 # include <assert.h>
6291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6294 grep -v '^ *+' conftest.er1 >conftest.err
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } >/dev/null; then
6299 if test -s conftest.err; then
6300 ac_cpp_err=$ac_c_preproc_warn_flag
6301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6308 if test -z "$ac_cpp_err"; then
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6314 # Broken: fails on valid input.
6317 rm -f conftest.err conftest.$ac_ext
6319 # OK, works on sane cases. Now check whether non-existent headers
6320 # can be detected and how.
6321 cat >conftest.$ac_ext <<_ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 #include <ac_nonexistent.h>
6329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6332 grep -v '^ *+' conftest.er1 >conftest.err
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } >/dev/null; then
6337 if test -s conftest.err; then
6338 ac_cpp_err=$ac_c_preproc_warn_flag
6339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6346 if test -z "$ac_cpp_err"; then
6347 # Broken: success on invalid input.
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6353 # Passes both tests.
6357 rm -f conftest.err conftest.$ac_ext
6360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6361 rm -f conftest.err conftest.$ac_ext
6362 if $ac_preproc_ok; then
6365 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6366 See \`config.log' for more details." >&5
6367 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6368 See \`config.log' for more details." >&2;}
6369 { (exit 1); exit 1; }; }
6373 ac_cpp='$CPP $CPPFLAGS'
6374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6379 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6380 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6381 if test "${ac_cv_header_stdc+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 cat >conftest.$ac_ext <<_ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6407 grep -v '^ *+' conftest.er1 >conftest.err
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag"
6413 || test ! -s conftest.err'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest.$ac_objext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 ac_cv_header_stdc=yes
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6430 ac_cv_header_stdc=no
6432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434 if test $ac_cv_header_stdc = yes; then
6435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6436 cat >conftest.$ac_ext <<_ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6446 $EGREP "memchr" >/dev/null 2>&1; then
6449 ac_cv_header_stdc=no
6455 if test $ac_cv_header_stdc = yes; then
6456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6457 cat >conftest.$ac_ext <<_ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6467 $EGREP "free" >/dev/null 2>&1; then
6470 ac_cv_header_stdc=no
6476 if test $ac_cv_header_stdc = yes; then
6477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6478 if test "$cross_compiling" = yes; then
6481 cat >conftest.$ac_ext <<_ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6488 #if ((' ' & 0x0FF) == 0x020)
6489 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6490 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6492 # define ISLOWER(c) \
6493 (('a' <= (c) && (c) <= 'i') \
6494 || ('j' <= (c) && (c) <= 'r') \
6495 || ('s' <= (c) && (c) <= 'z'))
6496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6504 for (i = 0; i < 256; i++)
6505 if (XOR (islower (i), ISLOWER (i))
6506 || toupper (i) != TOUPPER (i))
6511 rm -f conftest$ac_exeext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6513 (eval $ac_link) 2>&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; }; then
6524 echo "$as_me: program exited with status $ac_status" >&5
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6529 ac_cv_header_stdc=no
6531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6535 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6536 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6537 if test $ac_cv_header_stdc = yes; then
6539 cat >>confdefs.h <<\_ACEOF
6540 #define STDC_HEADERS 1
6545 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6555 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6556 inttypes.h stdint.h unistd.h
6558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6559 echo "$as_me:$LINENO: checking for $ac_header" >&5
6560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 cat >conftest.$ac_ext <<_ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 $ac_includes_default
6572 #include <$ac_header>
6574 rm -f conftest.$ac_objext
6575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6576 (eval $ac_compile) 2>conftest.er1
6578 grep -v '^ *+' conftest.er1 >conftest.err
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try='test -z "$ac_c_werror_flag"
6584 || test ! -s conftest.err'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try='test -s conftest.$ac_objext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 eval "$as_ac_Header=yes"
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 eval "$as_ac_Header=no"
6603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6608 cat >>confdefs.h <<_ACEOF
6609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6618 for ac_header in dlfcn.h
6620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6622 echo "$as_me:$LINENO: checking for $ac_header" >&5
6623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6630 # Is the header compilable?
6631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6633 cat >conftest.$ac_ext <<_ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6640 #include <$ac_header>
6642 rm -f conftest.$ac_objext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6644 (eval $ac_compile) 2>conftest.er1
6646 grep -v '^ *+' conftest.er1 >conftest.err
6648 cat conftest.err >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } &&
6651 { ac_try='test -z "$ac_c_werror_flag"
6652 || test ! -s conftest.err'
6653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; } &&
6658 { ac_try='test -s conftest.$ac_objext'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
6664 ac_header_compiler=yes
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6669 ac_header_compiler=no
6671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6673 echo "${ECHO_T}$ac_header_compiler" >&6
6675 # Is the header present?
6676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6678 cat >conftest.$ac_ext <<_ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 #include <$ac_header>
6686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6689 grep -v '^ *+' conftest.er1 >conftest.err
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } >/dev/null; then
6694 if test -s conftest.err; then
6695 ac_cpp_err=$ac_c_preproc_warn_flag
6696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6703 if test -z "$ac_cpp_err"; then
6704 ac_header_preproc=yes
6706 echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6709 ac_header_preproc=no
6711 rm -f conftest.err conftest.$ac_ext
6712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6713 echo "${ECHO_T}$ac_header_preproc" >&6
6715 # So? What about this header?
6716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6722 ac_header_preproc=yes
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6739 ## --------------------------------------------- ##
6740 ## Report this to <http://www.openldap.org/its/> ##
6741 ## --------------------------------------------- ##
6744 sed "s/^/$as_me: WARNING: /" >&2
6747 echo "$as_me:$LINENO: checking for $ac_header" >&5
6748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 eval "$as_ac_Header=\$ac_header_preproc"
6754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6759 cat >>confdefs.h <<_ACEOF
6760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6768 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6770 # find the maximum length of command line arguments
6771 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6772 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6773 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 # On DJGPP, this test can blow up pretty badly due to problems in libc
6782 # (any single argument exceeding 2000 bytes causes a buffer overrun
6783 # during glob expansion). Even if it were fixed, the result of this
6784 # check would be larger than it should be.
6785 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6789 # Under GNU Hurd, this test is not required because there is
6790 # no limit to the length of command line arguments.
6791 # Libtool will interpret -1 as no limit whatsoever
6792 lt_cv_sys_max_cmd_len=-1;
6796 # On Win9x/ME, this test blows up -- it succeeds, but takes
6797 # about 5 minutes as the teststring grows exponentially.
6798 # Worse, since 9x/ME are not pre-emptively multitasking,
6799 # you end up with a "frozen" computer, even though with patience
6800 # the test eventually succeeds (with a max line length of 256k).
6801 # Instead, let's just punt: use the minimum linelength reported by
6802 # all of the supported platforms: 8192 (on NT/2K/XP).
6803 lt_cv_sys_max_cmd_len=8192;
6807 # On AmigaOS with pdksh, this test takes hours, literally.
6808 # So we just punt and use a minimum line length of 8192.
6809 lt_cv_sys_max_cmd_len=8192;
6812 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6813 # This has been around since 386BSD, at least. Likely further.
6814 if test -x /sbin/sysctl; then
6815 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6816 elif test -x /usr/sbin/sysctl; then
6817 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6819 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6821 # And add a safety zone
6822 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6826 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6827 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6828 # nice to cause kernel panics so lets avoid the loop below.
6829 # First set a reasonable default.
6830 lt_cv_sys_max_cmd_len=16384
6832 if test -x /sbin/sysconfig; then
6833 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6834 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6839 # If test is not a shell built-in, we'll probably end up computing a
6840 # maximum length that is only half of the actual maximum length, but
6842 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6843 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6844 = "XX$teststring") >/dev/null 2>&1 &&
6845 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6846 lt_cv_sys_max_cmd_len=$new_result &&
6847 test $i != 17 # 1/2 MB should be enough
6850 teststring=$teststring$teststring
6853 # Add a significant safety factor because C++ compilers can tack on massive
6854 # amounts of additional arguments before passing them to the linker.
6855 # It appears as though 1/2 is a usable value.
6856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6862 if test -n $lt_cv_sys_max_cmd_len ; then
6863 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6864 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6866 echo "$as_me:$LINENO: result: none" >&5
6867 echo "${ECHO_T}none" >&6
6873 # Check for command to grab the raw symbol name followed by C symbol from nm.
6874 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6875 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6876 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 # These are sane defaults that work on at least a few old systems.
6881 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6883 # Character class describing NM global symbol codes.
6884 symcode='[BCDEGRST]'
6886 # Regexp to match symbols that can be accessed directly from C.
6887 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6889 # Transform an extracted symbol line into a proper C declaration
6890 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6892 # Transform an extracted symbol line into symbol name and symbol address
6893 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'"
6895 # Define system-specific variables.
6900 cygwin* | mingw* | pw32*)
6901 symcode='[ABCDGISTW]'
6903 hpux*) # Its linker distinguishes data from code symbols
6904 if test "$host_cpu" = ia64; then
6905 symcode='[ABCDEGRST]'
6907 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6908 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'"
6911 if test "$host_cpu" = ia64; then
6912 symcode='[ABCDGIRSTW]'
6913 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6914 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'"
6918 symcode='[BCDEGRST]'
6921 symcode='[BCDEGQRST]'
6931 # Handle CRLF in mingw tool chain
6935 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6939 # If we're using GNU nm, then use its standard symbol codes.
6940 case `$NM -V 2>&1` in
6941 *GNU* | *'with BFD'*)
6942 symcode='[ABCDGIRSTW]' ;;
6945 # Try without a prefix undercore, then with it.
6946 for ac_symprfx in "" "_"; do
6948 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6949 symxfrm="\\1 $ac_symprfx\\2 \\2"
6951 # Write the raw and C identifiers.
6952 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6954 # Check to see that the pipe works correctly.
6958 cat > conftest.$ac_ext <<EOF
6963 void nm_test_func(){}
6967 int main(){nm_test_var='a';nm_test_func();return(0);}
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971 (eval $ac_compile) 2>&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; then
6975 # Now try to grab the symbols.
6977 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6978 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && test -s "$nlist"; then
6982 # Try sorting and uniquifying the output.
6983 if sort "$nlist" | uniq > "$nlist"T; then
6984 mv -f "$nlist"T "$nlist"
6989 # Make sure that we snagged all the symbols we need.
6990 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6991 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6992 cat <<EOF > conftest.$ac_ext
6998 # Now generate the symbol file.
6999 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7001 cat <<EOF >> conftest.$ac_ext
7002 #if defined (__STDC__) && __STDC__
7003 # define lt_ptr_t void *
7005 # define lt_ptr_t char *
7009 /* The mapping between symbol names and symbols. */
7014 lt_preloaded_symbols[] =
7017 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7018 cat <<\EOF >> conftest.$ac_ext
7026 # Now try linking the two files.
7027 mv conftest.$ac_objext conftstm.$ac_objext
7028 lt_save_LIBS="$LIBS"
7029 lt_save_CFLAGS="$CFLAGS"
7030 LIBS="conftstm.$ac_objext"
7031 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7033 (eval $ac_link) 2>&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7039 LIBS="$lt_save_LIBS"
7040 CFLAGS="$lt_save_CFLAGS"
7042 echo "cannot find nm_test_func in $nlist" >&5
7045 echo "cannot find nm_test_var in $nlist" >&5
7048 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7051 echo "$progname: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7054 rm -f conftest* conftst*
7056 # Do not use the global_symbol_pipe unless it works.
7057 if test "$pipe_works" = yes; then
7060 lt_cv_sys_global_symbol_pipe=
7066 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7067 lt_cv_sys_global_symbol_to_cdecl=
7069 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7070 echo "$as_me:$LINENO: result: failed" >&5
7071 echo "${ECHO_T}failed" >&6
7073 echo "$as_me:$LINENO: result: ok" >&5
7074 echo "${ECHO_T}ok" >&6
7077 echo "$as_me:$LINENO: checking for objdir" >&5
7078 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7079 if test "${lt_cv_objdir+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 rm -f .libs 2>/dev/null
7083 mkdir .libs 2>/dev/null
7084 if test -d .libs; then
7087 # MS-DOS does not allow filenames that begin with a dot.
7090 rmdir .libs 2>/dev/null
7092 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7093 echo "${ECHO_T}$lt_cv_objdir" >&6
7094 objdir=$lt_cv_objdir
7102 # AIX sometimes has problems with the GCC collect2 program. For some
7103 # reason, if we set the COLLECT_NAMES environment variable, the problems
7104 # vanish in a puff of smoke.
7105 if test "X${COLLECT_NAMES+set}" != Xset; then
7107 export COLLECT_NAMES
7112 # Sed substitution that helps us do robust quoting. It backslashifies
7113 # metacharacters that are still active within double-quoted strings.
7114 Xsed='sed -e 1s/^X//'
7115 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7117 # Same as above, but do not quote variable references.
7118 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7120 # Sed substitution to delay expansion of an escaped shell variable in a
7121 # double_quote_subst'ed string.
7122 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7124 # Sed substitution to avoid accidental globbing in evaled expressions
7125 no_glob_subst='s/\*/\\\*/g'
7131 default_ofile=libtool
7132 can_build_shared=yes
7134 # All known linkers require a `.a' archive for static linking (except MSVC,
7135 # which needs '.lib').
7137 ltmain="$ac_aux_dir/ltmain.sh"
7138 ofile="$default_ofile"
7139 with_gnu_ld="$lt_cv_prog_gnu_ld"
7141 if test -n "$ac_tool_prefix"; then
7142 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7143 set dummy ${ac_tool_prefix}ar; ac_word=$2
7144 echo "$as_me:$LINENO: checking for $ac_word" >&5
7145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7146 if test "${ac_cv_prog_AR+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 if test -n "$AR"; then
7150 ac_cv_prog_AR="$AR" # Let the user override the test.
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_AR="${ac_tool_prefix}ar"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 if test -n "$AR"; then
7170 echo "$as_me:$LINENO: result: $AR" >&5
7171 echo "${ECHO_T}$AR" >&6
7173 echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7178 if test -z "$ac_cv_prog_AR"; then
7180 # Extract the first word of "ar", so it can be a program name with args.
7181 set dummy ar; ac_word=$2
7182 echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7184 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 if test -n "$ac_ct_AR"; then
7188 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_ac_ct_AR="ar"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7207 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7208 if test -n "$ac_ct_AR"; then
7209 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7210 echo "${ECHO_T}$ac_ct_AR" >&6
7212 echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7224 echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226 if test "${ac_cv_prog_RANLIB+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 if test -n "$RANLIB"; then
7230 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 RANLIB=$ac_cv_prog_RANLIB
7249 if test -n "$RANLIB"; then
7250 echo "$as_me:$LINENO: result: $RANLIB" >&5
7251 echo "${ECHO_T}$RANLIB" >&6
7253 echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6
7258 if test -z "$ac_cv_prog_RANLIB"; then
7259 ac_ct_RANLIB=$RANLIB
7260 # Extract the first word of "ranlib", so it can be a program name with args.
7261 set dummy ranlib; ac_word=$2
7262 echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7264 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 if test -n "$ac_ct_RANLIB"; then
7268 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_ac_ct_RANLIB="ranlib"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7287 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7288 if test -n "$ac_ct_RANLIB"; then
7289 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7290 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7292 echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6
7296 RANLIB=$ac_ct_RANLIB
7298 RANLIB="$ac_cv_prog_RANLIB"
7301 if test -n "$ac_tool_prefix"; then
7302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}strip; ac_word=$2
7304 echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7306 if test "${ac_cv_prog_STRIP+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 if test -n "$STRIP"; then
7310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 STRIP=$ac_cv_prog_STRIP
7329 if test -n "$STRIP"; then
7330 echo "$as_me:$LINENO: result: $STRIP" >&5
7331 echo "${ECHO_T}$STRIP" >&6
7333 echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6
7338 if test -z "$ac_cv_prog_STRIP"; then
7340 # Extract the first word of "strip", so it can be a program name with args.
7341 set dummy strip; ac_word=$2
7342 echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7344 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 if test -n "$ac_ct_STRIP"; then
7348 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_ac_ct_STRIP="strip"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7367 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7368 if test -n "$ac_ct_STRIP"; then
7369 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7370 echo "${ECHO_T}$ac_ct_STRIP" >&6
7372 echo "$as_me:$LINENO: result: no" >&5
7373 echo "${ECHO_T}no" >&6
7378 STRIP="$ac_cv_prog_STRIP"
7383 old_CFLAGS="$CFLAGS"
7385 # Set sane defaults for various variables
7386 test -z "$AR" && AR=ar
7387 test -z "$AR_FLAGS" && AR_FLAGS=cru
7388 test -z "$AS" && AS=as
7389 test -z "$CC" && CC=cc
7390 test -z "$LTCC" && LTCC=$CC
7391 test -z "$DLLTOOL" && DLLTOOL=dlltool
7392 test -z "$LD" && LD=ld
7393 test -z "$LN_S" && LN_S="ln -s"
7394 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7395 test -z "$NM" && NM=nm
7396 test -z "$SED" && SED=sed
7397 test -z "$OBJDUMP" && OBJDUMP=objdump
7398 test -z "$RANLIB" && RANLIB=:
7399 test -z "$STRIP" && STRIP=:
7400 test -z "$ac_objext" && ac_objext=o
7402 # Determine commands to create old-style static archives.
7403 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7404 old_postinstall_cmds='chmod 644 $oldlib'
7405 old_postuninstall_cmds=
7407 if test -n "$RANLIB"; then
7410 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7413 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7416 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7419 for cc_temp in $compiler""; do
7421 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7422 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7427 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7430 # Only perform the check for file, if the check method requires it
7431 case $deplibs_check_method in
7433 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7434 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7435 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7436 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7444 lt_save_MAGIC_CMD="$MAGIC_CMD"
7445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7447 for ac_dir in $ac_dummy; do
7449 test -z "$ac_dir" && ac_dir=.
7450 if test -f $ac_dir/${ac_tool_prefix}file; then
7451 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7452 if test -n "$file_magic_test_file"; then
7453 case $deplibs_check_method in
7455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7458 $EGREP "$file_magic_regex" > /dev/null; then
7463 *** Warning: the command libtool uses to detect shared libraries,
7464 *** $file_magic_cmd, produces output that libtool cannot recognize.
7465 *** The result is that libtool may fail to recognize shared libraries
7466 *** as such. This will affect the creation of libtool libraries that
7467 *** depend on shared libraries, but programs linked with such libtool
7468 *** libraries will work regardless of this problem. Nevertheless, you
7469 *** may want to report the problem to your system manager and/or to
7470 *** bug-libtool@gnu.org
7480 MAGIC_CMD="$lt_save_MAGIC_CMD"
7485 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7486 if test -n "$MAGIC_CMD"; then
7487 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7488 echo "${ECHO_T}$MAGIC_CMD" >&6
7490 echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7494 if test -z "$lt_cv_path_MAGIC_CMD"; then
7495 if test -n "$ac_tool_prefix"; then
7496 echo "$as_me:$LINENO: checking for file" >&5
7497 echo $ECHO_N "checking for file... $ECHO_C" >&6
7498 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7506 lt_save_MAGIC_CMD="$MAGIC_CMD"
7507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7508 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7509 for ac_dir in $ac_dummy; do
7511 test -z "$ac_dir" && ac_dir=.
7512 if test -f $ac_dir/file; then
7513 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7514 if test -n "$file_magic_test_file"; then
7515 case $deplibs_check_method in
7517 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7519 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7520 $EGREP "$file_magic_regex" > /dev/null; then
7525 *** Warning: the command libtool uses to detect shared libraries,
7526 *** $file_magic_cmd, produces output that libtool cannot recognize.
7527 *** The result is that libtool may fail to recognize shared libraries
7528 *** as such. This will affect the creation of libtool libraries that
7529 *** depend on shared libraries, but programs linked with such libtool
7530 *** libraries will work regardless of this problem. Nevertheless, you
7531 *** may want to report the problem to your system manager and/or to
7532 *** bug-libtool@gnu.org
7542 MAGIC_CMD="$lt_save_MAGIC_CMD"
7547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7548 if test -n "$MAGIC_CMD"; then
7549 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7550 echo "${ECHO_T}$MAGIC_CMD" >&6
7552 echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6
7566 enable_win32_dll=yes
7568 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7569 if test "${enable_libtool_lock+set}" = set; then
7570 enableval="$enable_libtool_lock"
7573 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7576 # Check whether --with-pic or --without-pic was given.
7577 if test "${with_pic+set}" = set; then
7583 test -z "$pic_mode" && pic_mode=default
7585 # Use C for the default configuration in the libtool script
7589 ac_cpp='$CPP $CPPFLAGS'
7590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7595 # Source file extension for C test sources.
7598 # Object file extension for compiled C test sources.
7602 # Code to be used in simple compile tests
7603 lt_simple_compile_test_code="int some_variable = 0;\n"
7605 # Code to be used in simple link tests
7606 lt_simple_link_test_code='int main(){return(0);}\n'
7609 # If no C compiler was specified, use CC.
7612 # Allow CC to be a program name with arguments.
7616 # save warnings/boilerplate of simple test code
7617 ac_outfile=conftest.$ac_objext
7618 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7619 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7620 _lt_compiler_boilerplate=`cat conftest.err`
7623 ac_outfile=conftest.$ac_objext
7624 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7625 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7626 _lt_linker_boilerplate=`cat conftest.err`
7631 # Check for any special shared library compilation flags.
7634 if test "$GCC" = no; then
7637 lt_prog_cc_shlib='-belf'
7641 if test -n "$lt_prog_cc_shlib"; then
7642 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7643 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7644 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7646 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7647 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7648 lt_cv_prog_cc_can_build_shared=no
7654 # Check to make sure the static flag actually works.
7656 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7657 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7658 if test "${lt_prog_compiler_static_works+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 lt_prog_compiler_static_works=no
7662 save_LDFLAGS="$LDFLAGS"
7663 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7664 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7665 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7666 # The linker can only warn and ignore the option if not recognized
7667 # So say no if there are warnings
7668 if test -s conftest.err; then
7669 # Append any errors to the config.log.
7670 cat conftest.err 1>&5
7671 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7672 $SED '/^$/d' conftest.err >conftest.er2
7673 if diff conftest.exp conftest.er2 >/dev/null; then
7674 lt_prog_compiler_static_works=yes
7677 lt_prog_compiler_static_works=yes
7681 LDFLAGS="$save_LDFLAGS"
7684 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7685 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7687 if test x"$lt_prog_compiler_static_works" = xyes; then
7690 lt_prog_compiler_static=
7696 lt_prog_compiler_no_builtin_flag=
7698 if test "$GCC" = yes; then
7699 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7702 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7703 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7704 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 lt_cv_prog_compiler_rtti_exceptions=no
7708 ac_outfile=conftest.$ac_objext
7709 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7710 lt_compiler_flag="-fno-rtti -fno-exceptions"
7711 # Insert the option either (1) after the last *FLAGS variable, or
7712 # (2) before a word containing "conftest.", or (3) at the end.
7713 # Note that $ac_compile itself does not contain backslashes and begins
7714 # with a dollar sign (not a hyphen), so the echo should work correctly.
7715 # The option is referenced via a variable to avoid confusing sed.
7716 lt_compile=`echo "$ac_compile" | $SED \
7717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7719 -e 's:$: $lt_compiler_flag:'`
7720 (eval echo "\"\$as_me:7720: $lt_compile\"" >&5)
7721 (eval "$lt_compile" 2>conftest.err)
7723 cat conftest.err >&5
7724 echo "$as_me:7724: \$? = $ac_status" >&5
7725 if (exit $ac_status) && test -s "$ac_outfile"; then
7726 # The compiler can only warn and ignore the option if not recognized
7727 # So say no if there are warnings other than the usual output.
7728 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7729 $SED '/^$/d' conftest.err >conftest.er2
7730 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7731 lt_cv_prog_compiler_rtti_exceptions=yes
7737 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7738 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7740 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7741 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7748 lt_prog_compiler_wl=
7749 lt_prog_compiler_pic=
7750 lt_prog_compiler_static=
7752 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7753 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7755 if test "$GCC" = yes; then
7756 lt_prog_compiler_wl='-Wl,'
7757 lt_prog_compiler_static='-static'
7761 # All AIX code is PIC.
7762 if test "$host_cpu" = ia64; then
7763 # AIX 5 now supports IA64 processor
7764 lt_prog_compiler_static='-Bstatic'
7769 # FIXME: we need at least 68020 code to build shared libraries, but
7770 # adding the `-m68020' flag to GCC prevents building anything better,
7772 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7775 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7776 # PIC is the default for these OSes.
7779 mingw* | pw32* | os2*)
7780 # This hack is so that the source file can tell whether it is being
7781 # built for inclusion in a dll (and should export symbols for example).
7782 lt_prog_compiler_pic='-DDLL_EXPORT'
7785 darwin* | rhapsody*)
7786 # PIC is the default on this platform
7787 # Common symbols not allowed in MH_DYLIB files
7788 lt_prog_compiler_pic='-fno-common'
7792 # Just because we use GCC doesn't mean we suddenly get shared libraries
7793 # on systems that don't support them.
7794 lt_prog_compiler_can_build_shared=no
7799 if test -d /usr/nec; then
7800 lt_prog_compiler_pic=-Kconform_pic
7805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7812 lt_prog_compiler_pic='-fPIC'
7818 lt_prog_compiler_pic='-fPIC'
7822 # PORTME Check for flag to pass linker flags through the system compiler.
7825 lt_prog_compiler_wl='-Wl,'
7826 if test "$host_cpu" = ia64; then
7827 # AIX 5 now supports IA64 processor
7828 lt_prog_compiler_static='-Bstatic'
7830 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7834 # PIC is the default on this platform
7835 # Common symbols not allowed in MH_DYLIB files
7836 case $cc_basename in
7838 lt_prog_compiler_pic='-qnocommon'
7839 lt_prog_compiler_wl='-Wl,'
7844 mingw* | pw32* | os2*)
7845 # This hack is so that the source file can tell whether it is being
7846 # built for inclusion in a dll (and should export symbols for example).
7847 lt_prog_compiler_pic='-DDLL_EXPORT'
7850 hpux9* | hpux10* | hpux11*)
7851 lt_prog_compiler_wl='-Wl,'
7852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7859 lt_prog_compiler_pic='+Z'
7862 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7863 lt_prog_compiler_static='${wl}-a ${wl}archive'
7866 irix5* | irix6* | nonstopux*)
7867 lt_prog_compiler_wl='-Wl,'
7868 # PIC (with -KPIC) is the default.
7869 lt_prog_compiler_static='-non_shared'
7873 lt_prog_compiler_pic='-KPIC'
7874 lt_prog_compiler_static='-Bstatic'
7878 case $cc_basename in
7880 lt_prog_compiler_wl='-Wl,'
7881 lt_prog_compiler_pic='-KPIC'
7882 lt_prog_compiler_static='-static'
7884 pgcc* | pgf77* | pgf90* | pgf95*)
7885 # Portland Group compilers (*not* the Pentium gcc compiler,
7886 # which looks to be a dead project)
7887 lt_prog_compiler_wl='-Wl,'
7888 lt_prog_compiler_pic='-fpic'
7889 lt_prog_compiler_static='-Bstatic'
7892 lt_prog_compiler_wl='-Wl,'
7893 # All Alpha code is PIC.
7894 lt_prog_compiler_static='-non_shared'
7899 osf3* | osf4* | osf5*)
7900 lt_prog_compiler_wl='-Wl,'
7901 # All OSF/1 code is PIC.
7902 lt_prog_compiler_static='-non_shared'
7906 lt_prog_compiler_pic='-Kpic'
7907 lt_prog_compiler_static='-dn'
7911 lt_prog_compiler_pic='-KPIC'
7912 lt_prog_compiler_static='-Bstatic'
7913 case $cc_basename in
7915 lt_prog_compiler_wl='-Qoption ld ';;
7917 lt_prog_compiler_wl='-Wl,';;
7922 lt_prog_compiler_wl='-Qoption ld '
7923 lt_prog_compiler_pic='-PIC'
7924 lt_prog_compiler_static='-Bstatic'
7927 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7928 lt_prog_compiler_wl='-Wl,'
7929 lt_prog_compiler_pic='-KPIC'
7930 lt_prog_compiler_static='-Bstatic'
7934 if test -d /usr/nec ;then
7935 lt_prog_compiler_pic='-Kconform_pic'
7936 lt_prog_compiler_static='-Bstatic'
7941 lt_prog_compiler_wl='-Wl,'
7942 lt_prog_compiler_can_build_shared=no
7946 lt_prog_compiler_pic='-pic'
7947 lt_prog_compiler_static='-Bstatic'
7951 lt_prog_compiler_can_build_shared=no
7956 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7957 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7960 # Check to make sure the PIC flag actually works.
7962 if test -n "$lt_prog_compiler_pic"; then
7964 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7965 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7966 if test "${lt_prog_compiler_pic_works+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 lt_prog_compiler_pic_works=no
7970 ac_outfile=conftest.$ac_objext
7971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7972 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7973 # Insert the option either (1) after the last *FLAGS variable, or
7974 # (2) before a word containing "conftest.", or (3) at the end.
7975 # Note that $ac_compile itself does not contain backslashes and begins
7976 # with a dollar sign (not a hyphen), so the echo should work correctly.
7977 # The option is referenced via a variable to avoid confusing sed.
7978 lt_compile=`echo "$ac_compile" | $SED \
7979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7981 -e 's:$: $lt_compiler_flag:'`
7982 (eval echo "\"\$as_me:7982: $lt_compile\"" >&5)
7983 (eval "$lt_compile" 2>conftest.err)
7985 cat conftest.err >&5
7986 echo "$as_me:7986: \$? = $ac_status" >&5
7987 if (exit $ac_status) && test -s "$ac_outfile"; then
7988 # The compiler can only warn and ignore the option if not recognized
7989 # So say no if there are warnings other than the usual output.
7990 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7991 $SED '/^$/d' conftest.err >conftest.er2
7992 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7993 lt_prog_compiler_pic_works=yes
7999 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8000 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8002 if test x"$lt_prog_compiler_pic_works" = xyes; then
8003 case $lt_prog_compiler_pic in
8005 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8008 lt_prog_compiler_pic=
8009 lt_prog_compiler_can_build_shared=no
8014 # For platforms which do not support PIC, -DPIC is meaningless:
8016 lt_prog_compiler_pic=
8019 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8023 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8024 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8025 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 lt_cv_prog_compiler_c_o=no
8029 $rm -r conftest 2>/dev/null
8033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8035 lt_compiler_flag="-o out/conftest2.$ac_objext"
8036 # Insert the option either (1) after the last *FLAGS variable, or
8037 # (2) before a word containing "conftest.", or (3) at the end.
8038 # Note that $ac_compile itself does not contain backslashes and begins
8039 # with a dollar sign (not a hyphen), so the echo should work correctly.
8040 lt_compile=`echo "$ac_compile" | $SED \
8041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8043 -e 's:$: $lt_compiler_flag:'`
8044 (eval echo "\"\$as_me:8044: $lt_compile\"" >&5)
8045 (eval "$lt_compile" 2>out/conftest.err)
8047 cat out/conftest.err >&5
8048 echo "$as_me:8048: \$? = $ac_status" >&5
8049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8051 # The compiler can only warn and ignore the option if not recognized
8052 # So say no if there are warnings
8053 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8054 $SED '/^$/d' out/conftest.err >out/conftest.er2
8055 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8056 lt_cv_prog_compiler_c_o=yes
8061 # SGI C++ compiler will create directory out/ii_files/ for
8062 # template instantiation
8063 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8064 $rm out/* && rmdir out
8070 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8071 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8074 hard_links="nottested"
8075 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8076 # do not overwrite the value of need_locks provided by the user
8077 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8078 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8083 ln conftest.a conftest.b 2>&5 || hard_links=no
8084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8085 echo "$as_me:$LINENO: result: $hard_links" >&5
8086 echo "${ECHO_T}$hard_links" >&6
8087 if test "$hard_links" = no; then
8088 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8089 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8096 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8097 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8100 allow_undefined_flag=
8101 enable_shared_with_static_runtimes=no
8103 archive_expsym_cmds=
8104 old_archive_From_new_cmds=
8105 old_archive_from_expsyms_cmds=
8106 export_dynamic_flag_spec=
8107 whole_archive_flag_spec=
8108 thread_safe_flag_spec=
8109 hardcode_libdir_flag_spec=
8110 hardcode_libdir_flag_spec_ld=
8111 hardcode_libdir_separator=
8114 hardcode_shlibpath_var=unsupported
8115 link_all_deplibs=unknown
8116 hardcode_automatic=no
8119 always_export_symbols=no
8120 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8121 # include_expsyms should be a list of space-separated symbols to be *always*
8122 # included in the symbol list
8124 # exclude_expsyms can be an extended regexp of symbols to exclude
8125 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8126 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8127 # as well as any symbol that contains `d'.
8128 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8129 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8130 # platforms (ab)use it in PIC code, but their linkers get confused if
8131 # the symbol is explicitly referenced. Since portable code cannot
8132 # rely on this symbol name, it's probably fine to never include it in
8133 # preloaded symbol tables.
8134 extract_expsyms_cmds=
8135 # Just being paranoid about ensuring that cc_basename is set.
8136 for cc_temp in $compiler""; do
8138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8144 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8147 cygwin* | mingw* | pw32*)
8148 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8149 # When not using gcc, we currently assume that we are using
8150 # Microsoft Visual C++.
8151 if test "$GCC" != yes; then
8161 if test "$with_gnu_ld" = yes; then
8162 # If archive_cmds runs LD, not CC, wlarc should be empty
8165 # Set some defaults for GNU ld with shared library support. These
8166 # are reset later if shared libraries are not supported. Putting them
8167 # here allows them to be overridden if necessary.
8168 runpath_var=LD_RUN_PATH
8169 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8170 export_dynamic_flag_spec='${wl}--export-dynamic'
8171 # ancient GNU ld didn't support --whole-archive et. al.
8172 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8173 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8175 whole_archive_flag_spec=
8177 supports_anon_versioning=no
8178 case `$LD -v 2>/dev/null` in
8179 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8180 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8181 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8182 *\ 2.11.*) ;; # other 2.11 versions
8183 *) supports_anon_versioning=yes ;;
8186 # See if GNU ld supports shared libraries.
8188 aix3* | aix4* | aix5*)
8189 # On AIX/PPC, the GNU linker is very broken
8190 if test "$host_cpu" != ia64; then
8194 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8195 *** to be unable to reliably create shared libraries on AIX.
8196 *** Therefore, libtool is disabling shared libraries support. If you
8197 *** really care for shared libraries, you may want to modify your PATH
8198 *** so that a non-GNU linker is found, and then restart.
8205 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)'
8206 hardcode_libdir_flag_spec='-L$libdir'
8207 hardcode_minus_L=yes
8209 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8210 # that the semantics of dynamic libraries on AmigaOS, at least up
8211 # to version 4, is to share data among multiple programs linked
8212 # with the same dynamic library. Since this doesn't match the
8213 # behavior of shared libraries on other platforms, we can't use
8219 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8220 allow_undefined_flag=unsupported
8221 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8222 # support --undefined. This deserves some investigation. FIXME
8223 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8229 cygwin* | mingw* | pw32*)
8230 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8231 # as there is no search path for DLLs.
8232 hardcode_libdir_flag_spec='-L$libdir'
8233 allow_undefined_flag=unsupported
8234 always_export_symbols=no
8235 enable_shared_with_static_runtimes=yes
8236 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8238 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8240 # If the export-symbols file already is a .def file (1st line
8241 # is EXPORTS), use it as is; otherwise, prepend...
8242 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8243 cp $export_symbols $output_objdir/$soname.def;
8245 echo EXPORTS > $output_objdir/$soname.def;
8246 cat $export_symbols >> $output_objdir/$soname.def;
8248 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8257 case $cc_basename,$host_cpu in
8258 pgcc*) # Portland Group C compiler
8259 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'
8260 tmp_addflag=' $pic_flag'
8262 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8263 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'
8264 tmp_addflag=' $pic_flag -Mnomain' ;;
8265 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8266 tmp_addflag=' -i_dynamic' ;;
8267 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8268 tmp_addflag=' -i_dynamic -nofor_main' ;;
8269 ifc* | ifort*) # Intel Fortran compiler
8270 tmp_addflag=' -nofor_main' ;;
8272 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274 if test $supports_anon_versioning = yes; then
8275 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8277 $echo "local: *; };" >> $output_objdir/$libname.ver~
8278 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8286 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8287 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8296 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8300 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8301 *** create shared libraries on Solaris systems. Therefore, libtool
8302 *** is disabling shared libraries support. We urge you to upgrade GNU
8303 *** binutils to release 2.9.1 or newer. Another option is to modify
8304 *** your PATH or compiler configuration so that the native linker is
8305 *** used, and then restart.
8308 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8317 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8320 hardcode_shlibpath_var=no
8324 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8326 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8333 if test "$ld_shlibs" = no; then
8335 hardcode_libdir_flag_spec=
8336 export_dynamic_flag_spec=
8337 whole_archive_flag_spec=
8340 # PORTME fill in a description of your system's linker (not GNU ld)
8343 allow_undefined_flag=unsupported
8344 always_export_symbols=yes
8345 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'
8346 # Note: this linker hardcodes the directories in LIBPATH if there
8347 # are no directories specified by -L.
8348 hardcode_minus_L=yes
8349 if test "$GCC" = yes && test -z "$link_static_flag"; then
8350 # Neither direct hardcoding nor static linking is supported with a
8352 hardcode_direct=unsupported
8357 if test "$host_cpu" = ia64; then
8358 # On IA64, the linker does run time linking by default, so we don't
8359 # have to do anything special.
8360 aix_use_runtimelinking=no
8361 exp_sym_flag='-Bexport'
8364 # If we're using GNU nm, then we don't want the "-C" option.
8365 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8366 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8367 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'
8369 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'
8371 aix_use_runtimelinking=no
8373 # Test if we are trying to use run time linking or normal
8374 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8375 # need to do runtime linking.
8376 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8377 for ld_flag in $LDFLAGS; do
8378 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8379 aix_use_runtimelinking=yes
8385 exp_sym_flag='-bexport'
8386 no_entry_flag='-bnoentry'
8389 # When large executables or shared objects are built, AIX ld can
8390 # have problems creating the table of contents. If linking a library
8391 # or program results in "error TOC overflow" add -mminimal-toc to
8392 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8393 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8397 hardcode_libdir_separator=':'
8398 link_all_deplibs=yes
8400 if test "$GCC" = yes; then
8401 case $host_os in aix4.[012]|aix4.[012].*)
8402 # We only want to do this on AIX 4.2 and lower, the check
8403 # below for broken collect2 doesn't work under 4.3+
8404 collect2name=`${CC} -print-prog-name=collect2`
8405 if test -f "$collect2name" && \
8406 strings "$collect2name" | grep resolve_lib_name >/dev/null
8408 # We have reworked collect2
8411 # We have old collect2
8412 hardcode_direct=unsupported
8413 # It fails to find uninstalled libraries when the uninstalled
8414 # path is not listed in the libpath. Setting hardcode_minus_L
8415 # to unsupported forces relinking
8416 hardcode_minus_L=yes
8417 hardcode_libdir_flag_spec='-L$libdir'
8418 hardcode_libdir_separator=
8421 shared_flag='-shared'
8422 if test "$aix_use_runtimelinking" = yes; then
8423 shared_flag="$shared_flag "'${wl}-G'
8427 if test "$host_cpu" = ia64; then
8428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8429 # chokes on -Wl,-G. The following line is correct:
8432 if test "$aix_use_runtimelinking" = yes; then
8433 shared_flag='${wl}-G'
8435 shared_flag='${wl}-bM:SRE'
8440 # It seems that -bexpall does not export symbols beginning with
8441 # underscore (_), so it is better to generate a list of symbols to export.
8442 always_export_symbols=yes
8443 if test "$aix_use_runtimelinking" = yes; then
8444 # Warning - without using the other runtime loading flags (-brtl),
8445 # -berok will link without error, but may produce a broken library.
8446 allow_undefined_flag='-berok'
8447 # Determine the default libpath from the value encoded in an empty executable.
8448 cat >conftest.$ac_ext <<_ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8463 rm -f conftest.$ac_objext conftest$ac_exeext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465 (eval $ac_link) 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
8472 { ac_try='test -z "$ac_c_werror_flag"
8473 || test ! -s conftest.err'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; } &&
8479 { ac_try='test -s conftest$ac_exeext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8488 # Check for a 64-bit object if we didn't find anything.
8489 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; }
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8496 rm -f conftest.err conftest.$ac_objext \
8497 conftest$ac_exeext conftest.$ac_ext
8498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8501 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"
8503 if test "$host_cpu" = ia64; then
8504 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8505 allow_undefined_flag="-z nodefs"
8506 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"
8508 # Determine the default libpath from the value encoded in an empty executable.
8509 cat >conftest.$ac_ext <<_ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526 (eval $ac_link) 2>conftest.er1
8528 grep -v '^ *+' conftest.er1 >conftest.err
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag"
8534 || test ! -s conftest.err'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; } &&
8540 { ac_try='test -s conftest$ac_exeext'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8549 # Check for a 64-bit object if we didn't find anything.
8550 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; }
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8557 rm -f conftest.err conftest.$ac_objext \
8558 conftest$ac_exeext conftest.$ac_ext
8559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8561 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8562 # Warning - without using the other run time loading flags,
8563 # -berok will link without error, but may produce a broken library.
8564 no_undefined_flag=' ${wl}-bernotok'
8565 allow_undefined_flag=' ${wl}-berok'
8566 # -bexpall does not export symbols beginning with underscore (_)
8567 always_export_symbols=yes
8568 # Exported symbols can be pulled into shared objects from archives
8569 whole_archive_flag_spec=' '
8570 archive_cmds_need_lc=yes
8571 # This is similar to how AIX traditionally builds its shared libraries.
8572 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'
8578 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)'
8579 hardcode_libdir_flag_spec='-L$libdir'
8580 hardcode_minus_L=yes
8581 # see comment about different semantics on the GNU ld section
8586 export_dynamic_flag_spec=-rdynamic
8589 cygwin* | mingw* | pw32*)
8590 # When not using gcc, we currently assume that we are using
8591 # Microsoft Visual C++.
8592 # hardcode_libdir_flag_spec is actually meaningless, as there is
8593 # no search path for DLLs.
8594 hardcode_libdir_flag_spec=' '
8595 allow_undefined_flag=unsupported
8596 # Tell ltmain to make .lib files, not .a files.
8598 # Tell ltmain to make .dll files, not .so files.
8600 # FIXME: Setting linknames here is a bad hack.
8601 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8602 # The linker will automatically build a .lib file if we build a DLL.
8603 old_archive_From_new_cmds='true'
8604 # FIXME: Should let the user specify the lib program.
8605 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8606 fix_srcfile_path='`cygpath -w "$srcfile"`'
8607 enable_shared_with_static_runtimes=yes
8610 darwin* | rhapsody*)
8612 rhapsody* | darwin1.[012])
8613 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8616 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8617 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8619 case ${MACOSX_DEPLOYMENT_TARGET} in
8621 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8624 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8630 archive_cmds_need_lc=no
8632 hardcode_automatic=yes
8633 hardcode_shlibpath_var=unsupported
8634 whole_archive_flag_spec=''
8635 link_all_deplibs=yes
8636 if test "$GCC" = yes ; then
8637 output_verbose_link_cmd='echo'
8638 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8639 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8640 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8641 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}'
8642 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}'
8644 case $cc_basename in
8646 output_verbose_link_cmd='echo'
8647 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8648 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8649 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8650 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}'
8651 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}'
8661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8662 hardcode_libdir_flag_spec='-L$libdir'
8663 hardcode_shlibpath_var=no
8670 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8671 # support. Future versions do this automatically, but an explicit c++rt0.o
8672 # does not break anything, and helps significantly (at the cost of a little
8675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8676 hardcode_libdir_flag_spec='-R$libdir'
8678 hardcode_shlibpath_var=no
8681 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8685 hardcode_minus_L=yes
8686 hardcode_shlibpath_var=no
8689 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8690 freebsd* | kfreebsd*-gnu | dragonfly*)
8691 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8692 hardcode_libdir_flag_spec='-R$libdir'
8694 hardcode_shlibpath_var=no
8698 if test "$GCC" = yes; then
8699 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'
8701 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'
8703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8704 hardcode_libdir_separator=:
8707 # hardcode_minus_L: Not really in the search PATH,
8708 # but as the default location of the library.
8709 hardcode_minus_L=yes
8710 export_dynamic_flag_spec='${wl}-E'
8714 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8717 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8726 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8733 if test "$with_gnu_ld" = no; then
8736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8737 hardcode_libdir_flag_spec_ld='+b $libdir'
8738 hardcode_libdir_separator=:
8740 hardcode_shlibpath_var=no
8743 hardcode_libdir_flag_spec='-L$libdir'
8745 hardcode_shlibpath_var=no
8747 # hardcode_minus_L: Not really in the search PATH,
8748 # but as the default location of the library.
8749 hardcode_minus_L=yes
8752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8753 hardcode_libdir_separator=:
8755 export_dynamic_flag_spec='${wl}-E'
8757 # hardcode_minus_L: Not really in the search PATH,
8758 # but as the default location of the library.
8759 hardcode_minus_L=yes
8765 irix5* | irix6* | nonstopux*)
8766 if test "$GCC" = yes; then
8767 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'
8769 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'
8770 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8773 hardcode_libdir_separator=:
8774 link_all_deplibs=yes
8778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8781 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8783 hardcode_libdir_flag_spec='-R$libdir'
8785 hardcode_shlibpath_var=no
8789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792 hardcode_libdir_separator=:
8793 hardcode_shlibpath_var=no
8798 hardcode_shlibpath_var=no
8799 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8801 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8803 export_dynamic_flag_spec='${wl}-E'
8806 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8807 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_libdir_flag_spec='-R$libdir'
8811 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8812 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8819 hardcode_libdir_flag_spec='-L$libdir'
8820 hardcode_minus_L=yes
8821 allow_undefined_flag=unsupported
8822 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'
8823 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8827 if test "$GCC" = yes; then
8828 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8829 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'
8831 allow_undefined_flag=' -expect_unresolved \*'
8832 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'
8834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835 hardcode_libdir_separator=:
8838 osf4* | osf5*) # as osf3* with the addition of -msym flag
8839 if test "$GCC" = yes; then
8840 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8841 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'
8842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8844 allow_undefined_flag=' -expect_unresolved \*'
8845 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'
8846 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8847 $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'
8849 # Both c and cxx compiler support -rpath directly
8850 hardcode_libdir_flag_spec='-rpath $libdir'
8852 hardcode_libdir_separator=:
8856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8857 hardcode_shlibpath_var=no
8858 export_dynamic_flag_spec='${wl}-Bexport'
8859 runpath_var=LD_RUN_PATH
8860 hardcode_runpath_var=yes
8864 no_undefined_flag=' -z text'
8865 if test "$GCC" = yes; then
8867 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8868 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8869 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8872 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8874 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8876 hardcode_libdir_flag_spec='-R$libdir'
8877 hardcode_shlibpath_var=no
8879 solaris2.[0-5] | solaris2.[0-5].*) ;;
8881 # The compiler driver will combine linker options so we
8882 # cannot just pass the convience library names through
8883 # without $wl, iff we do not link with $LD.
8884 # Luckily, gcc supports the same syntax we need for Sun Studio.
8885 # Supported since Solaris 2.6 (maybe 2.5.1?)
8888 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8890 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' ;;
8893 link_all_deplibs=yes
8897 if test "x$host_vendor" = xsequent; then
8898 # Use $CC to link under sequent, because it throws in some extra .o
8899 # files that make .init and .fini sections work.
8900 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8902 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8904 hardcode_libdir_flag_spec='-L$libdir'
8906 hardcode_minus_L=yes
8907 hardcode_shlibpath_var=no
8911 case $host_vendor in
8913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914 hardcode_direct=yes # is this really true???
8917 ## LD is ld it makes a PLAMLIB
8918 ## CC just makes a GrossModule.
8919 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8920 reload_cmds='$CC -r -o $output$reload_objs'
8924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8925 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8928 runpath_var='LD_RUN_PATH'
8929 hardcode_shlibpath_var=no
8933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934 hardcode_shlibpath_var=no
8935 export_dynamic_flag_spec='-Bexport'
8939 if test -d /usr/nec; then
8940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941 hardcode_shlibpath_var=no
8942 runpath_var=LD_RUN_PATH
8943 hardcode_runpath_var=yes
8949 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8952 hardcode_shlibpath_var=no
8953 hardcode_runpath_var=yes
8954 runpath_var=LD_RUN_PATH
8957 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8958 no_undefined_flag='${wl}-z ${wl}text'
8959 if test "$GCC" = yes; then
8960 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8962 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8964 runpath_var='LD_RUN_PATH'
8965 hardcode_shlibpath_var=no
8969 no_undefined_flag=' -z text'
8970 # $CC -shared without GNU ld will not create a library from C++
8971 # object files and a static libstdc++, better avoid it by now
8972 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8973 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8974 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8975 hardcode_libdir_flag_spec=
8976 hardcode_shlibpath_var=no
8977 runpath_var='LD_RUN_PATH'
8981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982 hardcode_libdir_flag_spec='-L$libdir'
8983 hardcode_shlibpath_var=no
8992 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8993 echo "${ECHO_T}$ld_shlibs" >&6
8994 test "$ld_shlibs" = no && can_build_shared=no
8996 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8997 if test "$GCC" = yes; then
8998 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9002 # Do we need to explicitly link libc?
9004 case "x$archive_cmds_need_lc" in
9006 # Assume -lc should be added
9007 archive_cmds_need_lc=yes
9009 if test "$enable_shared" = yes && test "$GCC" = yes; then
9010 case $archive_cmds in
9012 # FIXME: we may have to deal with multi-command sequences.
9015 # Test whether the compiler implicitly links with -lc since on some
9016 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9017 # to ld, don't add -lc before -lgcc.
9018 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9019 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9024 (eval $ac_compile) 2>&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } 2>conftest.err; then
9030 libobjs=conftest.$ac_objext
9032 wl=$lt_prog_compiler_wl
9038 lt_save_allow_undefined_flag=$allow_undefined_flag
9039 allow_undefined_flag=
9040 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9041 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }
9046 archive_cmds_need_lc=no
9048 archive_cmds_need_lc=yes
9050 allow_undefined_flag=$lt_save_allow_undefined_flag
9052 cat conftest.err 1>&5
9055 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9056 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9063 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9064 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9066 libname_spec='lib$name'
9074 shlibpath_overrides_runpath=unknown
9076 dynamic_linker="$host_os ld.so"
9077 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9078 if test "$GCC" = yes; then
9079 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9080 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9081 # if the path contains ";" then we assume it to be the separator
9082 # otherwise default to the standard path separator (i.e. ":") - it is
9083 # assumed that no part of a normal pathname contains ";" but that should
9084 # okay in the real world where ";" in dirpaths is itself problematic.
9085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9090 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9092 need_lib_prefix=unknown
9093 hardcode_into_libs=no
9095 # when you set need_version to no, make sure it does not cause -set_version
9096 # flags to be left without arguments
9097 need_version=unknown
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9103 shlibpath_var=LIBPATH
9105 # AIX 3 has no versioning support, so we append a major version to the name.
9106 soname_spec='${libname}${release}${shared_ext}$major'
9113 hardcode_into_libs=yes
9114 if test "$host_cpu" = ia64; then
9115 # AIX 5 supports IA64
9116 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9117 shlibpath_var=LD_LIBRARY_PATH
9119 # With GCC up to 2.95.x, collect2 would create an import file
9120 # for dependence libraries. The import file would start with
9121 # the line `#! .'. This would cause the generated library to
9122 # depend on `.', always an invalid library. This was fixed in
9123 # development snapshots of GCC prior to 3.0.
9125 aix4 | aix4.[01] | aix4.[01].*)
9126 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9128 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9135 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9136 # soname into executable. Probably we can add versioning support to
9137 # collect2, so additional links can be useful in future.
9138 if test "$aix_use_runtimelinking" = yes; then
9139 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9140 # instead of lib<name>.a to let people know that these are not
9141 # typical AIX shared libraries.
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144 # We preserve .a as extension for shared libraries through AIX4.2
9145 # and later when we are not doing run time linking.
9146 library_names_spec='${libname}${release}.a $libname.a'
9147 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LIBPATH
9154 library_names_spec='$libname.ixlibrary $libname.a'
9155 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9156 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'
9160 library_names_spec='${libname}${shared_ext}'
9161 dynamic_linker="$host_os ld.so"
9162 shlibpath_var=LIBRARY_PATH
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9173 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9174 # the default ld.so.conf also contains /usr/contrib/lib and
9175 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9176 # libtool to hard-code these into programs
9179 cygwin* | mingw* | pw32*)
9180 version_type=windows
9185 case $GCC,$host_os in
9186 yes,cygwin* | yes,mingw* | yes,pw32*)
9187 library_names_spec='$libname.dll.a'
9188 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9189 postinstall_cmds='base_file=`basename \${file}`~
9190 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9191 dldir=$destdir/`dirname \$dlpath`~
9192 test -d \$dldir || mkdir -p \$dldir~
9193 $install_prog $dir/$dlname \$dldir/$dlname~
9194 chmod a+x \$dldir/$dlname'
9195 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9196 dlpath=$dir/\$dldll~
9198 shlibpath_overrides_runpath=yes
9202 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9203 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9204 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9207 # MinGW DLLs use traditional 'lib' prefix
9208 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9209 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9210 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9211 # It is most probably a Windows format PATH printed by
9212 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9213 # path with ; separators, and with drive letters. We can handle the
9214 # drive letters (cygwin fileutils understands them), so leave them,
9215 # especially as we might pass files found there to a mingw objdump,
9216 # which wouldn't understand a cygwinified path. Ahh.
9217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9223 # pw32 DLLs use 'pw' prefix rather than 'lib'
9224 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9230 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9233 dynamic_linker='Win32 ld.exe'
9234 # FIXME: first we should search . and the directory the executable is in
9238 darwin* | rhapsody*)
9239 dynamic_linker="$host_os dyld"
9243 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9244 soname_spec='${libname}${release}${major}$shared_ext'
9245 shlibpath_overrides_runpath=yes
9246 shlibpath_var=DYLD_LIBRARY_PATH
9247 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9248 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9249 if test "$GCC" = yes; then
9250 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"`
9252 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9254 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 shlibpath_var=LD_LIBRARY_PATH
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 shlibpath_overrides_runpath=no
9278 hardcode_into_libs=yes
9279 dynamic_linker='GNU ld.so'
9282 freebsd* | dragonfly*)
9283 # DragonFly does not have aout. When/if they implement a new
9284 # versioning mechanism, adjust this.
9285 if test -x /usr/bin/objformat; then
9286 objformat=`/usr/bin/objformat`
9289 freebsd[123]*) objformat=aout ;;
9293 version_type=freebsd-$objformat
9294 case $version_type in
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9305 shlibpath_var=LD_LIBRARY_PATH
9308 shlibpath_overrides_runpath=yes
9310 freebsd3.[01]* | freebsdelf3.[01]*)
9311 shlibpath_overrides_runpath=yes
9312 hardcode_into_libs=yes
9315 shlibpath_overrides_runpath=no
9316 hardcode_into_libs=yes
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 hardcode_into_libs=yes
9331 hpux9* | hpux10* | hpux11*)
9332 # Give a soname corresponding to the major version so that dld.sl refuses to
9333 # link against other versions.
9340 hardcode_into_libs=yes
9341 dynamic_linker="$host_os dld.so"
9342 shlibpath_var=LD_LIBRARY_PATH
9343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 if test "X$HPUX_IA64_MODE" = X32; then
9347 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9355 hardcode_into_libs=yes
9356 dynamic_linker="$host_os dld.sl"
9357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360 soname_spec='${libname}${release}${shared_ext}$major'
9361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9366 dynamic_linker="$host_os dld.sl"
9367 shlibpath_var=SHLIB_PATH
9368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9373 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9374 postinstall_cmds='chmod 555 $lib'
9377 irix5* | irix6* | nonstopux*)
9379 nonstopux*) version_type=nonstopux ;;
9381 if test "$lt_cv_prog_gnu_ld" = yes; then
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9392 irix5* | nonstopux*)
9396 case $LD in # libtool.m4 will add one of these switches to LD
9397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9398 libsuff= shlibsuff= libmagic=32-bit;;
9399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9400 libsuff=32 shlibsuff=N32 libmagic=N32;;
9401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9403 *) libsuff= shlibsuff= libmagic=never-match;;
9407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9408 shlibpath_overrides_runpath=no
9409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9411 hardcode_into_libs=yes
9414 # No shared lib support for Linux oldld, aout, or coff.
9415 linux*oldld* | linux*aout* | linux*coff*)
9419 # This must be Linux ELF.
9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9425 soname_spec='${libname}${release}${shared_ext}$major'
9426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 shlibpath_overrides_runpath=no
9429 # This implies no fast_install, which is unacceptable.
9430 # Some rework will be needed to allow for fast_install
9431 # before this can be enabled.
9432 hardcode_into_libs=yes
9434 # Append ld.so.conf contents to the search path
9435 if test -f /etc/ld.so.conf; then
9436 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' ' '`
9437 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9440 # We used to test for /lib/ld.so.1 and disable shared libraries on
9441 # powerpc, because MkLinux only supported shared libraries with the
9442 # GNU dynamic linker. Since this was broken with cross compilers,
9443 # most powerpc-linux boxes support dynamic linking these days and
9444 # people can always --disable-shared, the test was removed, and we
9445 # assume the GNU/Linux dynamic linker is in use.
9446 dynamic_linker='GNU/Linux ld.so'
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9454 soname_spec='${libname}${release}${shared_ext}$major'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 shlibpath_overrides_runpath=no
9457 hardcode_into_libs=yes
9458 dynamic_linker='GNU ld.so'
9465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9468 dynamic_linker='NetBSD (a.out) ld.so'
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 dynamic_linker='NetBSD ld.elf_so'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=yes
9476 hardcode_into_libs=yes
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482 shlibpath_var=LD_LIBRARY_PATH
9483 shlibpath_overrides_runpath=yes
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 shlibpath_var=LD_LIBRARY_PATH
9493 shlibpath_overrides_runpath=yes
9499 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9501 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9502 *) need_version=no ;;
9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9506 shlibpath_var=LD_LIBRARY_PATH
9507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9509 openbsd2.[89] | openbsd2.[89].*)
9510 shlibpath_overrides_runpath=no
9513 shlibpath_overrides_runpath=yes
9517 shlibpath_overrides_runpath=yes
9522 libname_spec='$name'
9525 library_names_spec='$libname${shared_ext} $libname.a'
9526 dynamic_linker='OS/2 ld.exe'
9527 shlibpath_var=LIBPATH
9530 osf3* | osf4* | osf5*)
9534 soname_spec='${libname}${release}${shared_ext}$major'
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9536 shlibpath_var=LD_LIBRARY_PATH
9537 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9538 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9543 soname_spec='${libname}${release}${shared_ext}$major'
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545 shlibpath_var=LD_LIBRARY_PATH
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 soname_spec='${libname}${release}${shared_ext}$major'
9554 shlibpath_var=LD_LIBRARY_PATH
9555 shlibpath_overrides_runpath=yes
9556 hardcode_into_libs=yes
9557 # ldd complains unless libraries are executable
9558 postinstall_cmds='chmod +x $lib'
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=yes
9567 if test "$with_gnu_ld" = yes; then
9573 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 shlibpath_var=LD_LIBRARY_PATH
9578 case $host_vendor in
9580 shlibpath_overrides_runpath=no
9582 export_dynamic_flag_spec='${wl}-Blargedynsym'
9583 runpath_var=LD_RUN_PATH
9591 shlibpath_overrides_runpath=no
9592 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9598 if test -d /usr/nec ;then
9600 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9601 soname_spec='$libname${shared_ext}.$major'
9602 shlibpath_var=LD_LIBRARY_PATH
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609 soname_spec='${libname}${release}${shared_ext}$major'
9610 shlibpath_var=LD_LIBRARY_PATH
9617 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9618 echo "${ECHO_T}$dynamic_linker" >&6
9619 test "$dynamic_linker" = no && can_build_shared=no
9621 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9622 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9624 if test -n "$hardcode_libdir_flag_spec" || \
9625 test -n "$runpath_var" || \
9626 test "X$hardcode_automatic" = "Xyes" ; then
9628 # We can hardcode non-existant directories.
9629 if test "$hardcode_direct" != no &&
9630 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9631 # have to relink, otherwise we might link with an installed library
9632 # when we should be linking with a yet-to-be-installed one
9633 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9634 test "$hardcode_minus_L" != no; then
9635 # Linking always hardcodes the temporary library directory.
9636 hardcode_action=relink
9638 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9639 hardcode_action=immediate
9642 # We cannot hardcode anything, or else we can only hardcode existing
9644 hardcode_action=unsupported
9646 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9647 echo "${ECHO_T}$hardcode_action" >&6
9649 if test "$hardcode_action" = relink; then
9650 # Fast installation is not supported
9651 enable_fast_install=no
9652 elif test "$shlibpath_overrides_runpath" = yes ||
9653 test "$enable_shared" = no; then
9654 # Fast installation is not necessary
9655 enable_fast_install=needless
9660 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9661 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9662 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9663 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9664 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9665 echo "$as_me:$LINENO: result: yes" >&5
9666 echo "${ECHO_T}yes" >&6
9668 # FIXME - insert some real tests, host_os isn't really good enough
9671 if test -n "$STRIP" ; then
9672 striplib="$STRIP -x"
9673 echo "$as_me:$LINENO: result: yes" >&5
9674 echo "${ECHO_T}yes" >&6
9676 echo "$as_me:$LINENO: result: no" >&5
9677 echo "${ECHO_T}no" >&6
9681 echo "$as_me:$LINENO: result: no" >&5
9682 echo "${ECHO_T}no" >&6
9687 if test "x$enable_dlopen" != xyes; then
9688 enable_dlopen=unknown
9689 enable_dlopen_self=unknown
9690 enable_dlopen_self_static=unknown
9697 lt_cv_dlopen="load_add_on"
9699 lt_cv_dlopen_self=yes
9703 lt_cv_dlopen="LoadLibrary"
9708 lt_cv_dlopen="dlopen"
9713 # if libdl is installed we need to link against it
9714 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9715 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 ac_check_lib_save_LIBS=$LIBS
9721 cat >conftest.$ac_ext <<_ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9728 /* Override any gcc2 internal prototype to avoid an error. */
9732 /* We use char because int might match the return type of a gcc2
9733 builtin and then its argument prototype would still apply. */
9743 rm -f conftest.$ac_objext conftest$ac_exeext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745 (eval $ac_link) 2>conftest.er1
9747 grep -v '^ *+' conftest.er1 >conftest.err
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -z "$ac_c_werror_flag"
9753 || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_cv_lib_dl_dlopen=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_cv_lib_dl_dlopen=no
9772 rm -f conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
9774 LIBS=$ac_check_lib_save_LIBS
9776 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9777 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9778 if test $ac_cv_lib_dl_dlopen = yes; then
9779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9784 lt_cv_dlopen_self=yes
9791 echo "$as_me:$LINENO: checking for shl_load" >&5
9792 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9793 if test "${ac_cv_func_shl_load+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 cat >conftest.$ac_ext <<_ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9804 #define shl_load innocuous_shl_load
9806 /* System header to define __stub macros and hopefully few prototypes,
9807 which can conflict with char shl_load (); below.
9808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9809 <limits.h> exists even on freestanding compilers. */
9812 # include <limits.h>
9814 # include <assert.h>
9819 /* Override any gcc2 internal prototype to avoid an error. */
9824 /* We use char because int might match the return type of a gcc2
9825 builtin and then its argument prototype would still apply. */
9827 /* The GNU C library defines this for functions which it implements
9828 to always fail with ENOSYS. Some functions are actually named
9829 something starting with __ and the normal name is an alias. */
9830 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9833 char (*f) () = shl_load;
9842 return f != shl_load;
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9849 (eval $ac_link) 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -z "$ac_c_werror_flag"
9857 || test ! -s conftest.err'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest$ac_exeext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 ac_cv_func_shl_load=yes
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 ac_cv_func_shl_load=no
9876 rm -f conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9879 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9880 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9881 if test $ac_cv_func_shl_load = yes; then
9882 lt_cv_dlopen="shl_load"
9884 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9885 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9886 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 ac_check_lib_save_LIBS=$LIBS
9891 cat >conftest.$ac_ext <<_ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9898 /* Override any gcc2 internal prototype to avoid an error. */
9902 /* We use char because int might match the return type of a gcc2
9903 builtin and then its argument prototype would still apply. */
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>conftest.er1
9917 grep -v '^ *+' conftest.er1 >conftest.err
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try='test -z "$ac_c_werror_flag"
9923 || test ! -s conftest.err'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; } &&
9929 { ac_try='test -s conftest$ac_exeext'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_cv_lib_dld_shl_load=yes
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 ac_cv_lib_dld_shl_load=no
9942 rm -f conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9944 LIBS=$ac_check_lib_save_LIBS
9946 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9947 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9948 if test $ac_cv_lib_dld_shl_load = yes; then
9949 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9951 echo "$as_me:$LINENO: checking for dlopen" >&5
9952 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9953 if test "${ac_cv_func_dlopen+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 cat >conftest.$ac_ext <<_ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9962 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9964 #define dlopen innocuous_dlopen
9966 /* System header to define __stub macros and hopefully few prototypes,
9967 which can conflict with char dlopen (); below.
9968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9969 <limits.h> exists even on freestanding compilers. */
9972 # include <limits.h>
9974 # include <assert.h>
9979 /* Override any gcc2 internal prototype to avoid an error. */
9984 /* We use char because int might match the return type of a gcc2
9985 builtin and then its argument prototype would still apply. */
9987 /* The GNU C library defines this for functions which it implements
9988 to always fail with ENOSYS. Some functions are actually named
9989 something starting with __ and the normal name is an alias. */
9990 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9993 char (*f) () = dlopen;
10002 return f != dlopen;
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>conftest.er1
10011 grep -v '^ *+' conftest.er1 >conftest.err
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -z "$ac_c_werror_flag"
10017 || test ! -s conftest.err'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10029 ac_cv_func_dlopen=yes
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10034 ac_cv_func_dlopen=no
10036 rm -f conftest.err conftest.$ac_objext \
10037 conftest$ac_exeext conftest.$ac_ext
10039 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10040 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10041 if test $ac_cv_func_dlopen = yes; then
10042 lt_cv_dlopen="dlopen"
10044 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10045 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10046 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10047 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 ac_check_lib_save_LIBS=$LIBS
10051 cat >conftest.$ac_ext <<_ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10058 /* Override any gcc2 internal prototype to avoid an error. */
10062 /* We use char because int might match the return type of a gcc2
10063 builtin and then its argument prototype would still apply. */
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>conftest.er1
10077 grep -v '^ *+' conftest.er1 >conftest.err
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try='test -z "$ac_c_werror_flag"
10083 || test ! -s conftest.err'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; } &&
10089 { ac_try='test -s conftest$ac_exeext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_cv_lib_dl_dlopen=yes
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10100 ac_cv_lib_dl_dlopen=no
10102 rm -f conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10104 LIBS=$ac_check_lib_save_LIBS
10106 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10107 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10108 if test $ac_cv_lib_dl_dlopen = yes; then
10109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10111 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10112 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10113 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 ac_check_lib_save_LIBS=$LIBS
10117 LIBS="-lsvld $LIBS"
10118 cat >conftest.$ac_ext <<_ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10125 /* Override any gcc2 internal prototype to avoid an error. */
10129 /* We use char because int might match the return type of a gcc2
10130 builtin and then its argument prototype would still apply. */
10140 rm -f conftest.$ac_objext conftest$ac_exeext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>conftest.er1
10144 grep -v '^ *+' conftest.er1 >conftest.err
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag"
10150 || test ! -s conftest.err'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; } &&
10156 { ac_try='test -s conftest$ac_exeext'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162 ac_cv_lib_svld_dlopen=yes
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ac_cv_lib_svld_dlopen=no
10169 rm -f conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LIBS=$ac_check_lib_save_LIBS
10173 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10174 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10175 if test $ac_cv_lib_svld_dlopen = yes; then
10176 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10178 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10179 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10180 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 ac_check_lib_save_LIBS=$LIBS
10185 cat >conftest.$ac_ext <<_ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10192 /* Override any gcc2 internal prototype to avoid an error. */
10196 /* We use char because int might match the return type of a gcc2
10197 builtin and then its argument prototype would still apply. */
10207 rm -f conftest.$ac_objext conftest$ac_exeext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10209 (eval $ac_link) 2>conftest.er1
10211 grep -v '^ *+' conftest.er1 >conftest.err
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } &&
10216 { ac_try='test -z "$ac_c_werror_flag"
10217 || test ! -s conftest.err'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; } &&
10223 { ac_try='test -s conftest$ac_exeext'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 ac_cv_lib_dld_dld_link=yes
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 ac_cv_lib_dld_dld_link=no
10236 rm -f conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238 LIBS=$ac_check_lib_save_LIBS
10240 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10241 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10242 if test $ac_cv_lib_dld_dld_link = yes; then
10243 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10264 if test "x$lt_cv_dlopen" != xno; then
10270 case $lt_cv_dlopen in
10272 save_CPPFLAGS="$CPPFLAGS"
10273 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10275 save_LDFLAGS="$LDFLAGS"
10276 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10279 LIBS="$lt_cv_dlopen_libs $LIBS"
10281 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10282 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10283 if test "${lt_cv_dlopen_self+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 if test "$cross_compiling" = yes; then :
10287 lt_cv_dlopen_self=cross
10289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10290 lt_status=$lt_dlunknown
10291 cat > conftest.$ac_ext <<EOF
10292 #line 10292 "configure"
10293 #include "confdefs.h"
10302 # define LT_DLGLOBAL RTLD_GLOBAL
10305 # define LT_DLGLOBAL DL_GLOBAL
10307 # define LT_DLGLOBAL 0
10311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10312 find out it does not work in some platform. */
10313 #ifndef LT_DLLAZY_OR_NOW
10315 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10318 # define LT_DLLAZY_OR_NOW DL_LAZY
10321 # define LT_DLLAZY_OR_NOW RTLD_NOW
10324 # define LT_DLLAZY_OR_NOW DL_NOW
10326 # define LT_DLLAZY_OR_NOW 0
10334 extern "C" void exit (int);
10337 void fnord() { int i=42;}
10340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10341 int status = $lt_dlunknown;
10345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10346 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10347 /* dlclose (self); */
10353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10354 (eval $ac_link) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10358 (./conftest; exit; ) >&5 2>/dev/null
10360 case x$lt_status in
10361 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10362 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10363 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10366 # compilation failed
10367 lt_cv_dlopen_self=no
10374 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10375 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10377 if test "x$lt_cv_dlopen_self" = xyes; then
10378 LDFLAGS="$LDFLAGS $link_static_flag"
10379 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10380 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10381 if test "${lt_cv_dlopen_self_static+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 if test "$cross_compiling" = yes; then :
10385 lt_cv_dlopen_self_static=cross
10387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10388 lt_status=$lt_dlunknown
10389 cat > conftest.$ac_ext <<EOF
10390 #line 10390 "configure"
10391 #include "confdefs.h"
10400 # define LT_DLGLOBAL RTLD_GLOBAL
10403 # define LT_DLGLOBAL DL_GLOBAL
10405 # define LT_DLGLOBAL 0
10409 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10410 find out it does not work in some platform. */
10411 #ifndef LT_DLLAZY_OR_NOW
10413 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10416 # define LT_DLLAZY_OR_NOW DL_LAZY
10419 # define LT_DLLAZY_OR_NOW RTLD_NOW
10422 # define LT_DLLAZY_OR_NOW DL_NOW
10424 # define LT_DLLAZY_OR_NOW 0
10432 extern "C" void exit (int);
10435 void fnord() { int i=42;}
10438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10439 int status = $lt_dlunknown;
10443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10444 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10445 /* dlclose (self); */
10451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10452 (eval $ac_link) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10456 (./conftest; exit; ) >&5 2>/dev/null
10458 case x$lt_status in
10459 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10460 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10461 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10464 # compilation failed
10465 lt_cv_dlopen_self_static=no
10472 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10473 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10476 CPPFLAGS="$save_CPPFLAGS"
10477 LDFLAGS="$save_LDFLAGS"
10482 case $lt_cv_dlopen_self in
10483 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10484 *) enable_dlopen_self=unknown ;;
10487 case $lt_cv_dlopen_self_static in
10488 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10489 *) enable_dlopen_self_static=unknown ;;
10494 # Report which librarie types wil actually be built
10495 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10496 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10497 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10498 echo "${ECHO_T}$can_build_shared" >&6
10500 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10501 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10502 test "$can_build_shared" = "no" && enable_shared=no
10504 # On AIX, shared libraries and static libraries use the same namespace, and
10505 # are all built from PIC.
10508 test "$enable_shared" = yes && enable_static=no
10509 if test -n "$RANLIB"; then
10510 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10511 postinstall_cmds='$RANLIB $lib'
10516 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10517 test "$enable_shared" = yes && enable_static=no
10521 echo "$as_me:$LINENO: result: $enable_shared" >&5
10522 echo "${ECHO_T}$enable_shared" >&6
10524 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10525 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10526 # Make sure either enable_shared or enable_static is yes.
10527 test "$enable_shared" = yes || enable_static=yes
10528 echo "$as_me:$LINENO: result: $enable_static" >&5
10529 echo "${ECHO_T}$enable_static" >&6
10531 # The else clause should only fire when bootstrapping the
10532 # libtool distribution, otherwise you forgot to ship ltmain.sh
10533 # with your package, and you will get complaints that there are
10534 # no rules to generate ltmain.sh.
10535 if test -f "$ltmain"; then
10536 # See if we are running on zsh, and set the options which allow our commands through
10537 # without removal of \ escapes.
10538 if test -n "${ZSH_VERSION+set}" ; then
10539 setopt NO_GLOB_SUBST
10541 # Now quote all the things that may contain metacharacters while being
10542 # careful not to overquote the AC_SUBSTed values. We take copies of the
10543 # variables and quote the copies for generation of the libtool script.
10544 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10546 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10547 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10548 deplibs_check_method reload_flag reload_cmds need_locks \
10549 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10550 lt_cv_sys_global_symbol_to_c_name_address \
10551 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10552 old_postinstall_cmds old_postuninstall_cmds \
10556 lt_prog_compiler_wl \
10557 lt_prog_compiler_pic \
10558 lt_prog_compiler_static \
10559 lt_prog_compiler_no_builtin_flag \
10560 export_dynamic_flag_spec \
10561 thread_safe_flag_spec \
10562 whole_archive_flag_spec \
10563 enable_shared_with_static_runtimes \
10565 old_archive_from_new_cmds \
10570 compiler_lib_search_path \
10572 archive_expsym_cmds \
10574 postuninstall_cmds \
10575 old_archive_from_expsyms_cmds \
10576 allow_undefined_flag \
10577 no_undefined_flag \
10578 export_symbols_cmds \
10579 hardcode_libdir_flag_spec \
10580 hardcode_libdir_flag_spec_ld \
10581 hardcode_libdir_separator \
10582 hardcode_automatic \
10584 module_expsym_cmds \
10585 lt_cv_prog_compiler_c_o \
10587 include_expsyms; do
10590 old_archive_cmds | \
10591 old_archive_from_new_cmds | \
10593 archive_expsym_cmds | \
10595 module_expsym_cmds | \
10596 old_archive_from_expsyms_cmds | \
10597 export_symbols_cmds | \
10598 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10599 postinstall_cmds | postuninstall_cmds | \
10600 old_postinstall_cmds | old_postuninstall_cmds | \
10601 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10602 # Double-quote double-evaled strings.
10603 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10606 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10612 *'\$0 --fallback-echo"')
10613 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10617 cfgfile="${ofile}T"
10618 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10620 { echo "$as_me:$LINENO: creating $ofile" >&5
10621 echo "$as_me: creating $ofile" >&6;}
10623 cat <<__EOF__ >> "$cfgfile"
10626 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10627 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10628 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10630 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10631 # Free Software Foundation, Inc.
10633 # This file is part of GNU Libtool:
10634 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10636 # This program is free software; you can redistribute it and/or modify
10637 # it under the terms of the GNU General Public License as published by
10638 # the Free Software Foundation; either version 2 of the License, or
10639 # (at your option) any later version.
10641 # This program is distributed in the hope that it will be useful, but
10642 # WITHOUT ANY WARRANTY; without even the implied warranty of
10643 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10644 # General Public License for more details.
10646 # You should have received a copy of the GNU General Public License
10647 # along with this program; if not, write to the Free Software
10648 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10650 # As a special exception to the GNU General Public License, if you
10651 # distribute this file as part of a program that contains a
10652 # configuration script generated by Autoconf, you may include it under
10653 # the same distribution terms that you use for the rest of that program.
10655 # A sed program that does not truncate output.
10658 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10659 Xsed="$SED -e 1s/^X//"
10661 # The HP-UX ksh and POSIX shell print the target directory to stdout
10662 # if CDPATH is set.
10663 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10665 # The names of the tagged configurations supported by this script.
10668 # ### BEGIN LIBTOOL CONFIG
10670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10672 # Shell to use when invoking shell scripts.
10675 # Whether or not to build shared libraries.
10676 build_libtool_libs=$enable_shared
10678 # Whether or not to build static libraries.
10679 build_old_libs=$enable_static
10681 # Whether or not to add -lc for building shared libraries.
10682 build_libtool_need_lc=$archive_cmds_need_lc
10684 # Whether or not to disallow shared libs when runtime libs are static
10685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10687 # Whether or not to optimize for fast installation.
10688 fast_install=$enable_fast_install
10691 host_alias=$host_alias
10695 # The build system.
10696 build_alias=$build_alias
10700 # An echo program that does not interpret backslashes.
10705 AR_FLAGS=$lt_AR_FLAGS
10710 # A language-specific compiler.
10713 # Is the compiler the GNU C compiler?
10719 # The linker used to build libraries.
10722 # Whether we need hard or soft links.
10725 # A BSD-compatible nm program.
10728 # A symbol stripping program
10731 # Used to examine libraries when file_magic_cmd begins "file"
10732 MAGIC_CMD=$MAGIC_CMD
10734 # Used on cygwin: DLL creation program.
10737 # Used on cygwin: object dumper.
10740 # Used on cygwin: assembler.
10743 # The name of the directory that contains temporary libtool files.
10746 # How to create reloadable object files.
10747 reload_flag=$lt_reload_flag
10748 reload_cmds=$lt_reload_cmds
10750 # How to pass a linker flag through the compiler.
10751 wl=$lt_lt_prog_compiler_wl
10753 # Object file suffix (normally "o").
10754 objext="$ac_objext"
10756 # Old archive suffix (normally "a").
10759 # Shared library suffix (normally ".so").
10760 shrext_cmds='$shrext_cmds'
10762 # Executable file suffix (normally "").
10765 # Additional compiler flags for building library objects.
10766 pic_flag=$lt_lt_prog_compiler_pic
10769 # What is the maximum length of a command?
10770 max_cmd_len=$lt_cv_sys_max_cmd_len
10772 # Does compiler simultaneously support -c and -o options?
10773 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10775 # Must we lock files when doing compilation?
10776 need_locks=$lt_need_locks
10778 # Do we need the lib prefix for modules?
10779 need_lib_prefix=$need_lib_prefix
10781 # Do we need a version for libraries?
10782 need_version=$need_version
10784 # Whether dlopen is supported.
10785 dlopen_support=$enable_dlopen
10787 # Whether dlopen of programs is supported.
10788 dlopen_self=$enable_dlopen_self
10790 # Whether dlopen of statically linked programs is supported.
10791 dlopen_self_static=$enable_dlopen_self_static
10793 # Compiler flag to prevent dynamic linking.
10794 link_static_flag=$lt_lt_prog_compiler_static
10796 # Compiler flag to turn off builtin functions.
10797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10799 # Compiler flag to allow reflexive dlopens.
10800 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10802 # Compiler flag to generate shared objects directly from archives.
10803 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10805 # Compiler flag to generate thread-safe objects.
10806 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10808 # Library versioning type.
10809 version_type=$version_type
10811 # Format of library name prefix.
10812 libname_spec=$lt_libname_spec
10814 # List of archive names. First name is the real one, the rest are links.
10815 # The last name is the one that the linker finds with -lNAME.
10816 library_names_spec=$lt_library_names_spec
10818 # The coded name of the library, if different from the real name.
10819 soname_spec=$lt_soname_spec
10821 # Commands used to build and install an old-style archive.
10823 old_archive_cmds=$lt_old_archive_cmds
10824 old_postinstall_cmds=$lt_old_postinstall_cmds
10825 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10827 # Create an old-style archive from a shared archive.
10828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10830 # Create a temporary old-style archive to link instead of a shared archive.
10831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10833 # Commands used to build and install a shared archive.
10834 archive_cmds=$lt_archive_cmds
10835 archive_expsym_cmds=$lt_archive_expsym_cmds
10836 postinstall_cmds=$lt_postinstall_cmds
10837 postuninstall_cmds=$lt_postuninstall_cmds
10839 # Commands used to build a loadable module (assumed same as above if empty)
10840 module_cmds=$lt_module_cmds
10841 module_expsym_cmds=$lt_module_expsym_cmds
10843 # Commands to strip libraries.
10844 old_striplib=$lt_old_striplib
10845 striplib=$lt_striplib
10847 # Dependencies to place before the objects being linked to create a
10849 predep_objects=$lt_predep_objects
10851 # Dependencies to place after the objects being linked to create a
10853 postdep_objects=$lt_postdep_objects
10855 # Dependencies to place before the objects being linked to create a
10857 predeps=$lt_predeps
10859 # Dependencies to place after the objects being linked to create a
10861 postdeps=$lt_postdeps
10863 # The library search path used internally by the compiler when linking
10864 # a shared library.
10865 compiler_lib_search_path=$lt_compiler_lib_search_path
10867 # Method to check whether dependent libraries are shared objects.
10868 deplibs_check_method=$lt_deplibs_check_method
10870 # Command to use when deplibs_check_method == file_magic.
10871 file_magic_cmd=$lt_file_magic_cmd
10873 # Flag that allows shared libraries with undefined symbols to be built.
10874 allow_undefined_flag=$lt_allow_undefined_flag
10876 # Flag that forces no undefined symbols.
10877 no_undefined_flag=$lt_no_undefined_flag
10879 # Commands used to finish a libtool library installation in a directory.
10880 finish_cmds=$lt_finish_cmds
10882 # Same as above, but a single script fragment to be evaled but not shown.
10883 finish_eval=$lt_finish_eval
10885 # Take the output of nm and produce a listing of raw symbols and C names.
10886 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10888 # Transform the output of nm in a proper C declaration
10889 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10891 # Transform the output of nm in a C name address pair
10892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10894 # This is the shared library runtime path variable.
10895 runpath_var=$runpath_var
10897 # This is the shared library path variable.
10898 shlibpath_var=$shlibpath_var
10900 # Is shlibpath searched before the hard-coded library search path?
10901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10903 # How to hardcode a shared library path into an executable.
10904 hardcode_action=$hardcode_action
10906 # Whether we should hardcode library paths into libraries.
10907 hardcode_into_libs=$hardcode_into_libs
10909 # Flag to hardcode \$libdir into a binary during linking.
10910 # This must work even if \$libdir does not exist.
10911 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10913 # If ld is used when linking, flag to hardcode \$libdir into
10914 # a binary during linking. This must work even if \$libdir does
10916 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10918 # Whether we need a single -rpath flag with a separated argument.
10919 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10921 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10922 # resulting binary.
10923 hardcode_direct=$hardcode_direct
10925 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10926 # resulting binary.
10927 hardcode_minus_L=$hardcode_minus_L
10929 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10930 # the resulting binary.
10931 hardcode_shlibpath_var=$hardcode_shlibpath_var
10933 # Set to yes if building a shared library automatically hardcodes DIR into the library
10934 # and all subsequent libraries and executables linked against it.
10935 hardcode_automatic=$hardcode_automatic
10937 # Variables whose values should be saved in libtool wrapper scripts and
10938 # restored at relink time.
10939 variables_saved_for_relink="$variables_saved_for_relink"
10941 # Whether libtool must link a program against all its dependency libraries.
10942 link_all_deplibs=$link_all_deplibs
10944 # Compile-time system search path for libraries
10945 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10947 # Run-time system search path for libraries
10948 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10950 # Fix the shell variable \$srcfile for the compiler.
10951 fix_srcfile_path="$fix_srcfile_path"
10953 # Set to yes if exported symbols are required.
10954 always_export_symbols=$always_export_symbols
10956 # The commands to list exported symbols.
10957 export_symbols_cmds=$lt_export_symbols_cmds
10959 # The commands to extract the exported symbol list from a shared archive.
10960 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10962 # Symbols that should not be listed in the preloaded symbols.
10963 exclude_expsyms=$lt_exclude_expsyms
10965 # Symbols that must always be exported.
10966 include_expsyms=$lt_include_expsyms
10968 # ### END LIBTOOL CONFIG
10975 cat <<\EOF >> "$cfgfile"
10977 # AIX sometimes has problems with the GCC collect2 program. For some
10978 # reason, if we set the COLLECT_NAMES environment variable, the problems
10979 # vanish in a puff of smoke.
10980 if test "X${COLLECT_NAMES+set}" != Xset; then
10982 export COLLECT_NAMES
10988 # We use sed instead of cat because bash on DJGPP gets confused if
10989 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10990 # text mode, it properly converts lines to CR/LF. This bash problem
10991 # is reportedly fixed, but why not run on old versions too?
10992 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10994 mv -f "$cfgfile" "$ofile" || \
10995 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10999 # If there is no Makefile yet, we rely on a make rule to execute
11000 # `config.status --recheck' to rerun these tests and create the
11001 # libtool script then.
11002 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11003 if test -f "$ltmain_in"; then
11004 test -f Makefile && make "$ltmain"
11010 ac_cpp='$CPP $CPPFLAGS'
11011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11018 # Check whether --with-tags or --without-tags was given.
11019 if test "${with_tags+set}" = set; then
11020 withval="$with_tags"
11021 tagnames="$withval"
11024 if test -f "$ltmain" && test -n "$tagnames"; then
11025 if test ! -f "${ofile}"; then
11026 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11027 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11030 if test -z "$LTCC"; then
11031 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11032 if test -z "$LTCC"; then
11033 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11034 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11036 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11037 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11041 # Extract list of available tagged configurations in $ofile.
11042 # Note that this assumes the entire list is on one line.
11043 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11046 for tagname in $tagnames; do
11048 # Check whether tagname contains only valid characters
11049 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11051 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11052 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11053 { (exit 1); exit 1; }; }
11057 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11059 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11060 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11061 { (exit 1); exit 1; }; }
11064 # Update the list of available tags.
11065 if test -n "$tagname"; then
11066 echo appending configuration tag \"$tagname\" to $ofile
11070 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11071 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11072 (test "X$CXX" != "Xg++"))) ; then
11080 if test -n "$F77" && test "X$F77" != "Xno"; then
11088 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11099 # Source file extension for RC test sources.
11102 # Object file extension for compiled RC test sources.
11106 # Code to be used in simple compile tests
11107 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11109 # Code to be used in simple link tests
11110 lt_simple_link_test_code="$lt_simple_compile_test_code"
11112 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11114 # If no C compiler was specified, use CC.
11117 # Allow CC to be a program name with arguments.
11121 # save warnings/boilerplate of simple test code
11122 ac_outfile=conftest.$ac_objext
11123 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11124 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11125 _lt_compiler_boilerplate=`cat conftest.err`
11128 ac_outfile=conftest.$ac_objext
11129 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11130 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11131 _lt_linker_boilerplate=`cat conftest.err`
11135 # Allow CC to be a program name with arguments.
11140 for cc_temp in $compiler""; do
11142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11148 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11150 lt_cv_prog_compiler_c_o_RC=yes
11152 # The else clause should only fire when bootstrapping the
11153 # libtool distribution, otherwise you forgot to ship ltmain.sh
11154 # with your package, and you will get complaints that there are
11155 # no rules to generate ltmain.sh.
11156 if test -f "$ltmain"; then
11157 # See if we are running on zsh, and set the options which allow our commands through
11158 # without removal of \ escapes.
11159 if test -n "${ZSH_VERSION+set}" ; then
11160 setopt NO_GLOB_SUBST
11162 # Now quote all the things that may contain metacharacters while being
11163 # careful not to overquote the AC_SUBSTed values. We take copies of the
11164 # variables and quote the copies for generation of the libtool script.
11165 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11167 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11168 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11169 deplibs_check_method reload_flag reload_cmds need_locks \
11170 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11171 lt_cv_sys_global_symbol_to_c_name_address \
11172 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11173 old_postinstall_cmds old_postuninstall_cmds \
11177 lt_prog_compiler_wl_RC \
11178 lt_prog_compiler_pic_RC \
11179 lt_prog_compiler_static_RC \
11180 lt_prog_compiler_no_builtin_flag_RC \
11181 export_dynamic_flag_spec_RC \
11182 thread_safe_flag_spec_RC \
11183 whole_archive_flag_spec_RC \
11184 enable_shared_with_static_runtimes_RC \
11185 old_archive_cmds_RC \
11186 old_archive_from_new_cmds_RC \
11187 predep_objects_RC \
11188 postdep_objects_RC \
11191 compiler_lib_search_path_RC \
11193 archive_expsym_cmds_RC \
11194 postinstall_cmds_RC \
11195 postuninstall_cmds_RC \
11196 old_archive_from_expsyms_cmds_RC \
11197 allow_undefined_flag_RC \
11198 no_undefined_flag_RC \
11199 export_symbols_cmds_RC \
11200 hardcode_libdir_flag_spec_RC \
11201 hardcode_libdir_flag_spec_ld_RC \
11202 hardcode_libdir_separator_RC \
11203 hardcode_automatic_RC \
11205 module_expsym_cmds_RC \
11206 lt_cv_prog_compiler_c_o_RC \
11207 exclude_expsyms_RC \
11208 include_expsyms_RC; do
11211 old_archive_cmds_RC | \
11212 old_archive_from_new_cmds_RC | \
11213 archive_cmds_RC | \
11214 archive_expsym_cmds_RC | \
11216 module_expsym_cmds_RC | \
11217 old_archive_from_expsyms_cmds_RC | \
11218 export_symbols_cmds_RC | \
11219 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11220 postinstall_cmds | postuninstall_cmds | \
11221 old_postinstall_cmds | old_postuninstall_cmds | \
11222 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11223 # Double-quote double-evaled strings.
11224 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11227 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11233 *'\$0 --fallback-echo"')
11234 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11240 cat <<__EOF__ >> "$cfgfile"
11241 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11243 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11245 # Shell to use when invoking shell scripts.
11248 # Whether or not to build shared libraries.
11249 build_libtool_libs=$enable_shared
11251 # Whether or not to build static libraries.
11252 build_old_libs=$enable_static
11254 # Whether or not to add -lc for building shared libraries.
11255 build_libtool_need_lc=$archive_cmds_need_lc_RC
11257 # Whether or not to disallow shared libs when runtime libs are static
11258 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11260 # Whether or not to optimize for fast installation.
11261 fast_install=$enable_fast_install
11264 host_alias=$host_alias
11268 # The build system.
11269 build_alias=$build_alias
11273 # An echo program that does not interpret backslashes.
11278 AR_FLAGS=$lt_AR_FLAGS
11283 # A language-specific compiler.
11286 # Is the compiler the GNU C compiler?
11292 # The linker used to build libraries.
11295 # Whether we need hard or soft links.
11298 # A BSD-compatible nm program.
11301 # A symbol stripping program
11304 # Used to examine libraries when file_magic_cmd begins "file"
11305 MAGIC_CMD=$MAGIC_CMD
11307 # Used on cygwin: DLL creation program.
11310 # Used on cygwin: object dumper.
11313 # Used on cygwin: assembler.
11316 # The name of the directory that contains temporary libtool files.
11319 # How to create reloadable object files.
11320 reload_flag=$lt_reload_flag
11321 reload_cmds=$lt_reload_cmds
11323 # How to pass a linker flag through the compiler.
11324 wl=$lt_lt_prog_compiler_wl_RC
11326 # Object file suffix (normally "o").
11327 objext="$ac_objext"
11329 # Old archive suffix (normally "a").
11332 # Shared library suffix (normally ".so").
11333 shrext_cmds='$shrext_cmds'
11335 # Executable file suffix (normally "").
11338 # Additional compiler flags for building library objects.
11339 pic_flag=$lt_lt_prog_compiler_pic_RC
11342 # What is the maximum length of a command?
11343 max_cmd_len=$lt_cv_sys_max_cmd_len
11345 # Does compiler simultaneously support -c and -o options?
11346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11348 # Must we lock files when doing compilation?
11349 need_locks=$lt_need_locks
11351 # Do we need the lib prefix for modules?
11352 need_lib_prefix=$need_lib_prefix
11354 # Do we need a version for libraries?
11355 need_version=$need_version
11357 # Whether dlopen is supported.
11358 dlopen_support=$enable_dlopen
11360 # Whether dlopen of programs is supported.
11361 dlopen_self=$enable_dlopen_self
11363 # Whether dlopen of statically linked programs is supported.
11364 dlopen_self_static=$enable_dlopen_self_static
11366 # Compiler flag to prevent dynamic linking.
11367 link_static_flag=$lt_lt_prog_compiler_static_RC
11369 # Compiler flag to turn off builtin functions.
11370 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11372 # Compiler flag to allow reflexive dlopens.
11373 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11375 # Compiler flag to generate shared objects directly from archives.
11376 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11378 # Compiler flag to generate thread-safe objects.
11379 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11381 # Library versioning type.
11382 version_type=$version_type
11384 # Format of library name prefix.
11385 libname_spec=$lt_libname_spec
11387 # List of archive names. First name is the real one, the rest are links.
11388 # The last name is the one that the linker finds with -lNAME.
11389 library_names_spec=$lt_library_names_spec
11391 # The coded name of the library, if different from the real name.
11392 soname_spec=$lt_soname_spec
11394 # Commands used to build and install an old-style archive.
11396 old_archive_cmds=$lt_old_archive_cmds_RC
11397 old_postinstall_cmds=$lt_old_postinstall_cmds
11398 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11400 # Create an old-style archive from a shared archive.
11401 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11403 # Create a temporary old-style archive to link instead of a shared archive.
11404 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11406 # Commands used to build and install a shared archive.
11407 archive_cmds=$lt_archive_cmds_RC
11408 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11409 postinstall_cmds=$lt_postinstall_cmds
11410 postuninstall_cmds=$lt_postuninstall_cmds
11412 # Commands used to build a loadable module (assumed same as above if empty)
11413 module_cmds=$lt_module_cmds_RC
11414 module_expsym_cmds=$lt_module_expsym_cmds_RC
11416 # Commands to strip libraries.
11417 old_striplib=$lt_old_striplib
11418 striplib=$lt_striplib
11420 # Dependencies to place before the objects being linked to create a
11422 predep_objects=$lt_predep_objects_RC
11424 # Dependencies to place after the objects being linked to create a
11426 postdep_objects=$lt_postdep_objects_RC
11428 # Dependencies to place before the objects being linked to create a
11430 predeps=$lt_predeps_RC
11432 # Dependencies to place after the objects being linked to create a
11434 postdeps=$lt_postdeps_RC
11436 # The library search path used internally by the compiler when linking
11437 # a shared library.
11438 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11440 # Method to check whether dependent libraries are shared objects.
11441 deplibs_check_method=$lt_deplibs_check_method
11443 # Command to use when deplibs_check_method == file_magic.
11444 file_magic_cmd=$lt_file_magic_cmd
11446 # Flag that allows shared libraries with undefined symbols to be built.
11447 allow_undefined_flag=$lt_allow_undefined_flag_RC
11449 # Flag that forces no undefined symbols.
11450 no_undefined_flag=$lt_no_undefined_flag_RC
11452 # Commands used to finish a libtool library installation in a directory.
11453 finish_cmds=$lt_finish_cmds
11455 # Same as above, but a single script fragment to be evaled but not shown.
11456 finish_eval=$lt_finish_eval
11458 # Take the output of nm and produce a listing of raw symbols and C names.
11459 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11461 # Transform the output of nm in a proper C declaration
11462 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11464 # Transform the output of nm in a C name address pair
11465 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11467 # This is the shared library runtime path variable.
11468 runpath_var=$runpath_var
11470 # This is the shared library path variable.
11471 shlibpath_var=$shlibpath_var
11473 # Is shlibpath searched before the hard-coded library search path?
11474 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11476 # How to hardcode a shared library path into an executable.
11477 hardcode_action=$hardcode_action_RC
11479 # Whether we should hardcode library paths into libraries.
11480 hardcode_into_libs=$hardcode_into_libs
11482 # Flag to hardcode \$libdir into a binary during linking.
11483 # This must work even if \$libdir does not exist.
11484 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11486 # If ld is used when linking, flag to hardcode \$libdir into
11487 # a binary during linking. This must work even if \$libdir does
11489 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11491 # Whether we need a single -rpath flag with a separated argument.
11492 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11494 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11495 # resulting binary.
11496 hardcode_direct=$hardcode_direct_RC
11498 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11499 # resulting binary.
11500 hardcode_minus_L=$hardcode_minus_L_RC
11502 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11503 # the resulting binary.
11504 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11506 # Set to yes if building a shared library automatically hardcodes DIR into the library
11507 # and all subsequent libraries and executables linked against it.
11508 hardcode_automatic=$hardcode_automatic_RC
11510 # Variables whose values should be saved in libtool wrapper scripts and
11511 # restored at relink time.
11512 variables_saved_for_relink="$variables_saved_for_relink"
11514 # Whether libtool must link a program against all its dependency libraries.
11515 link_all_deplibs=$link_all_deplibs_RC
11517 # Compile-time system search path for libraries
11518 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11520 # Run-time system search path for libraries
11521 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11523 # Fix the shell variable \$srcfile for the compiler.
11524 fix_srcfile_path="$fix_srcfile_path_RC"
11526 # Set to yes if exported symbols are required.
11527 always_export_symbols=$always_export_symbols_RC
11529 # The commands to list exported symbols.
11530 export_symbols_cmds=$lt_export_symbols_cmds_RC
11532 # The commands to extract the exported symbol list from a shared archive.
11533 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11535 # Symbols that should not be listed in the preloaded symbols.
11536 exclude_expsyms=$lt_exclude_expsyms_RC
11538 # Symbols that must always be exported.
11539 include_expsyms=$lt_include_expsyms_RC
11541 # ### END LIBTOOL TAG CONFIG: $tagname
11547 # If there is no Makefile yet, we rely on a make rule to execute
11548 # `config.status --recheck' to rerun these tests and create the
11549 # libtool script then.
11550 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11551 if test -f "$ltmain_in"; then
11552 test -f Makefile && make "$ltmain"
11558 ac_cpp='$CPP $CPPFLAGS'
11559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11568 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11569 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11570 { (exit 1); exit 1; }; }
11574 # Append the new tag name to the list of available tags.
11575 if test -n "$tagname" ; then
11576 available_tags="$available_tags $tagname"
11582 # Now substitute the updated list of available tags.
11583 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11584 mv "${ofile}T" "$ofile"
11588 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11589 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11590 { (exit 1); exit 1; }; }
11596 # This can be used to rebuild libtool when needed
11597 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11599 # Always use our own libtool.
11600 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11602 # Prevent multiple expansion
11614 if test $ol_enable_perl != no ; then
11615 # Extract the first word of "perl", so it can be a program name with args.
11616 set dummy perl; ac_word=$2
11617 echo "$as_me:$LINENO: checking for $ac_word" >&5
11618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11619 if test "${ac_cv_path_PERLBIN+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH
11631 test -z "$as_dir" && as_dir=.
11632 for ac_exec_ext in '' $ac_executable_extensions; do
11633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11634 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11645 PERLBIN=$ac_cv_path_PERLBIN
11647 if test -n "$PERLBIN"; then
11648 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11649 echo "${ECHO_T}$PERLBIN" >&6
11651 echo "$as_me:$LINENO: result: no" >&5
11652 echo "${ECHO_T}no" >&6
11656 if test "no$PERLBIN" = "no" ; then
11657 if test $ol_enable_perl = yes ; then
11658 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11659 echo "$as_me: error: could not locate perl" >&2;}
11660 { (exit 1); exit 1; }; }
11664 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11665 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11667 if test x"$ol_enable_perl" = "xyes" ; then
11668 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11670 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11677 ac_cpp='$CPP $CPPFLAGS'
11678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11681 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11682 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11683 # On Suns, sometimes $CPP names a directory.
11684 if test -n "$CPP" && test -d "$CPP"; then
11687 if test -z "$CPP"; then
11688 if test "${ac_cv_prog_CPP+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 # Double quotes because CPP needs to be expanded
11692 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11694 ac_preproc_ok=false
11695 for ac_c_preproc_warn_flag in '' yes
11697 # Use a header file that comes with gcc, so configuring glibc
11698 # with a fresh cross-compiler works.
11699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11700 # <limits.h> exists even on freestanding compilers.
11701 # On the NeXT, cc -E runs the code through the compiler's parser,
11702 # not just through cpp. "Syntax error" is here to catch this case.
11703 cat >conftest.$ac_ext <<_ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11710 # include <limits.h>
11712 # include <assert.h>
11716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11719 grep -v '^ *+' conftest.er1 >conftest.err
11721 cat conftest.err >&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } >/dev/null; then
11724 if test -s conftest.err; then
11725 ac_cpp_err=$ac_c_preproc_warn_flag
11726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11733 if test -z "$ac_cpp_err"; then
11736 echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.$ac_ext >&5
11739 # Broken: fails on valid input.
11742 rm -f conftest.err conftest.$ac_ext
11744 # OK, works on sane cases. Now check whether non-existent headers
11745 # can be detected and how.
11746 cat >conftest.$ac_ext <<_ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 #include <ac_nonexistent.h>
11754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11757 grep -v '^ *+' conftest.er1 >conftest.err
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } >/dev/null; then
11762 if test -s conftest.err; then
11763 ac_cpp_err=$ac_c_preproc_warn_flag
11764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11771 if test -z "$ac_cpp_err"; then
11772 # Broken: success on invalid input.
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11778 # Passes both tests.
11782 rm -f conftest.err conftest.$ac_ext
11785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11786 rm -f conftest.err conftest.$ac_ext
11787 if $ac_preproc_ok; then
11792 ac_cv_prog_CPP=$CPP
11795 CPP=$ac_cv_prog_CPP
11797 ac_cv_prog_CPP=$CPP
11799 echo "$as_me:$LINENO: result: $CPP" >&5
11800 echo "${ECHO_T}$CPP" >&6
11801 ac_preproc_ok=false
11802 for ac_c_preproc_warn_flag in '' yes
11804 # Use a header file that comes with gcc, so configuring glibc
11805 # with a fresh cross-compiler works.
11806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11807 # <limits.h> exists even on freestanding compilers.
11808 # On the NeXT, cc -E runs the code through the compiler's parser,
11809 # not just through cpp. "Syntax error" is here to catch this case.
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11817 # include <limits.h>
11819 # include <assert.h>
11823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11826 grep -v '^ *+' conftest.er1 >conftest.err
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } >/dev/null; then
11831 if test -s conftest.err; then
11832 ac_cpp_err=$ac_c_preproc_warn_flag
11833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11840 if test -z "$ac_cpp_err"; then
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 # Broken: fails on valid input.
11849 rm -f conftest.err conftest.$ac_ext
11851 # OK, works on sane cases. Now check whether non-existent headers
11852 # can be detected and how.
11853 cat >conftest.$ac_ext <<_ACEOF
11856 cat confdefs.h >>conftest.$ac_ext
11857 cat >>conftest.$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11859 #include <ac_nonexistent.h>
11861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11864 grep -v '^ *+' conftest.er1 >conftest.err
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } >/dev/null; then
11869 if test -s conftest.err; then
11870 ac_cpp_err=$ac_c_preproc_warn_flag
11871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11878 if test -z "$ac_cpp_err"; then
11879 # Broken: success on invalid input.
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 # Passes both tests.
11889 rm -f conftest.err conftest.$ac_ext
11892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11893 rm -f conftest.err conftest.$ac_ext
11894 if $ac_preproc_ok; then
11897 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11898 See \`config.log' for more details." >&5
11899 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11900 See \`config.log' for more details." >&2;}
11901 { (exit 1); exit 1; }; }
11905 ac_cpp='$CPP $CPPFLAGS'
11906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11912 *mingw32* ) ac_cv_mingw32=yes ;;
11913 *cygwin* ) ac_cv_cygwin=yes ;;
11919 cat >>confdefs.h <<_ACEOF
11920 #define EXEEXT "${EXEEXT}"
11924 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11925 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11926 if test "${ac_cv_lib_be_be_app+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 ac_check_lib_save_LIBS=$LIBS
11930 LIBS="-lbe -lroot -lnet $LIBS"
11931 cat >conftest.$ac_ext <<_ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11938 /* Override any gcc2 internal prototype to avoid an error. */
11942 /* We use char because int might match the return type of a gcc2
11943 builtin and then its argument prototype would still apply. */
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11955 (eval $ac_link) 2>conftest.er1
11957 grep -v '^ *+' conftest.er1 >conftest.err
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag"
11963 || test ! -s conftest.err'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest$ac_exeext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 ac_cv_lib_be_be_app=yes
11977 echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11980 ac_cv_lib_be_be_app=no
11982 rm -f conftest.err conftest.$ac_objext \
11983 conftest$ac_exeext conftest.$ac_ext
11984 LIBS=$ac_check_lib_save_LIBS
11986 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11987 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11988 if test $ac_cv_lib_be_be_app = yes; then
11989 LIBS="$LIBS -lbe -lroot -lnet"
11996 ac_cpp='$CPP $CPPFLAGS'
11997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12000 if test -n "$ac_tool_prefix"; then
12001 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12002 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12003 echo "$as_me:$LINENO: checking for $ac_word" >&5
12004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12005 if test "${ac_cv_prog_CC+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 if test -n "$CC"; then
12009 ac_cv_prog_CC="$CC" # Let the user override the test.
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12028 if test -n "$CC"; then
12029 echo "$as_me:$LINENO: result: $CC" >&5
12030 echo "${ECHO_T}$CC" >&6
12032 echo "$as_me:$LINENO: result: no" >&5
12033 echo "${ECHO_T}no" >&6
12037 if test -z "$ac_cv_prog_CC"; then
12039 # Extract the first word of "gcc", so it can be a program name with args.
12040 set dummy gcc; ac_word=$2
12041 echo "$as_me:$LINENO: checking for $ac_word" >&5
12042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12043 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 if test -n "$ac_ct_CC"; then
12047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12050 for as_dir in $PATH
12053 test -z "$as_dir" && as_dir=.
12054 for ac_exec_ext in '' $ac_executable_extensions; do
12055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12056 ac_cv_prog_ac_ct_CC="gcc"
12057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12066 if test -n "$ac_ct_CC"; then
12067 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12068 echo "${ECHO_T}$ac_ct_CC" >&6
12070 echo "$as_me:$LINENO: result: no" >&5
12071 echo "${ECHO_T}no" >&6
12076 CC="$ac_cv_prog_CC"
12079 if test -z "$CC"; then
12080 if test -n "$ac_tool_prefix"; then
12081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12082 set dummy ${ac_tool_prefix}cc; ac_word=$2
12083 echo "$as_me:$LINENO: checking for $ac_word" >&5
12084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12085 if test "${ac_cv_prog_CC+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 if test -n "$CC"; then
12089 ac_cv_prog_CC="$CC" # Let the user override the test.
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12095 test -z "$as_dir" && as_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12098 ac_cv_prog_CC="${ac_tool_prefix}cc"
12099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12108 if test -n "$CC"; then
12109 echo "$as_me:$LINENO: result: $CC" >&5
12110 echo "${ECHO_T}$CC" >&6
12112 echo "$as_me:$LINENO: result: no" >&5
12113 echo "${ECHO_T}no" >&6
12117 if test -z "$ac_cv_prog_CC"; then
12119 # Extract the first word of "cc", so it can be a program name with args.
12120 set dummy cc; ac_word=$2
12121 echo "$as_me:$LINENO: checking for $ac_word" >&5
12122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12123 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12124 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 if test -n "$ac_ct_CC"; then
12127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12130 for as_dir in $PATH
12133 test -z "$as_dir" && as_dir=.
12134 for ac_exec_ext in '' $ac_executable_extensions; do
12135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12136 ac_cv_prog_ac_ct_CC="cc"
12137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12146 if test -n "$ac_ct_CC"; then
12147 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12148 echo "${ECHO_T}$ac_ct_CC" >&6
12150 echo "$as_me:$LINENO: result: no" >&5
12151 echo "${ECHO_T}no" >&6
12156 CC="$ac_cv_prog_CC"
12160 if test -z "$CC"; then
12161 # Extract the first word of "cc", so it can be a program name with args.
12162 set dummy cc; ac_word=$2
12163 echo "$as_me:$LINENO: checking for $ac_word" >&5
12164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12165 if test "${ac_cv_prog_CC+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 if test -n "$CC"; then
12169 ac_cv_prog_CC="$CC" # Let the user override the test.
12171 ac_prog_rejected=no
12172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173 for as_dir in $PATH
12176 test -z "$as_dir" && as_dir=.
12177 for ac_exec_ext in '' $ac_executable_extensions; do
12178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12180 ac_prog_rejected=yes
12184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12190 if test $ac_prog_rejected = yes; then
12191 # We found a bogon in the path, so make sure we never use it.
12192 set dummy $ac_cv_prog_CC
12194 if test $# != 0; then
12195 # We chose a different compiler from the bogus one.
12196 # However, it has the same basename, so the bogon will be chosen
12197 # first if we set CC to just the basename; use the full file name.
12199 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12205 if test -n "$CC"; then
12206 echo "$as_me:$LINENO: result: $CC" >&5
12207 echo "${ECHO_T}$CC" >&6
12209 echo "$as_me:$LINENO: result: no" >&5
12210 echo "${ECHO_T}no" >&6
12214 if test -z "$CC"; then
12215 if test -n "$ac_tool_prefix"; then
12218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12220 echo "$as_me:$LINENO: checking for $ac_word" >&5
12221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12222 if test "${ac_cv_prog_CC+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 if test -n "$CC"; then
12226 ac_cv_prog_CC="$CC" # Let the user override the test.
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12245 if test -n "$CC"; then
12246 echo "$as_me:$LINENO: result: $CC" >&5
12247 echo "${ECHO_T}$CC" >&6
12249 echo "$as_me:$LINENO: result: no" >&5
12250 echo "${ECHO_T}no" >&6
12253 test -n "$CC" && break
12256 if test -z "$CC"; then
12260 # Extract the first word of "$ac_prog", so it can be a program name with args.
12261 set dummy $ac_prog; ac_word=$2
12262 echo "$as_me:$LINENO: checking for $ac_word" >&5
12263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12264 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 if test -n "$ac_ct_CC"; then
12268 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271 for as_dir in $PATH
12274 test -z "$as_dir" && as_dir=.
12275 for ac_exec_ext in '' $ac_executable_extensions; do
12276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12277 ac_cv_prog_ac_ct_CC="$ac_prog"
12278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12287 if test -n "$ac_ct_CC"; then
12288 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12289 echo "${ECHO_T}$ac_ct_CC" >&6
12291 echo "$as_me:$LINENO: result: no" >&5
12292 echo "${ECHO_T}no" >&6
12295 test -n "$ac_ct_CC" && break
12304 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12305 See \`config.log' for more details." >&5
12306 echo "$as_me: error: no acceptable C compiler found in \$PATH
12307 See \`config.log' for more details." >&2;}
12308 { (exit 1); exit 1; }; }
12310 # Provide some information about the compiler.
12311 echo "$as_me:$LINENO:" \
12312 "checking for C compiler version" >&5
12313 ac_compiler=`set X $ac_compile; echo $2`
12314 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12315 (eval $ac_compiler --version </dev/null >&5) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }
12319 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12320 (eval $ac_compiler -v </dev/null >&5) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }
12324 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12325 (eval $ac_compiler -V </dev/null >&5) 2>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }
12330 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12331 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12332 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12335 cat >conftest.$ac_ext <<_ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>conftest.er1
12357 grep -v '^ *+' conftest.er1 >conftest.err
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 ac_compiler_gnu=yes
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12383 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12386 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12387 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12388 GCC=`test $ac_compiler_gnu = yes && echo yes`
12389 ac_test_CFLAGS=${CFLAGS+set}
12390 ac_save_CFLAGS=$CFLAGS
12392 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12393 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12394 if test "${ac_cv_prog_cc_g+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 cat >conftest.$ac_ext <<_ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h. */
12412 rm -f conftest.$ac_objext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12414 (eval $ac_compile) 2>conftest.er1
12416 grep -v '^ *+' conftest.er1 >conftest.err
12418 cat conftest.err >&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -z "$ac_c_werror_flag"
12422 || test ! -s conftest.err'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest.$ac_objext'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 ac_cv_prog_cc_g=yes
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12443 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12444 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12445 if test "$ac_test_CFLAGS" = set; then
12446 CFLAGS=$ac_save_CFLAGS
12447 elif test $ac_cv_prog_cc_g = yes; then
12448 if test "$GCC" = yes; then
12454 if test "$GCC" = yes; then
12460 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12461 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12462 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 ac_cv_prog_cc_stdc=no
12467 cat >conftest.$ac_ext <<_ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12473 #include <stdarg.h>
12475 #include <sys/types.h>
12476 #include <sys/stat.h>
12477 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12478 struct buf { int x; };
12479 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12480 static char *e (p, i)
12486 static char *f (char * (*g) (char **, int), char **p, ...)
12491 s = g (p, va_arg (v,int));
12496 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12497 function prototypes and stuff, but not '\xHH' hex character constants.
12498 These don't provoke an error unfortunately, instead are silently treated
12499 as 'x'. The following induces an error, until -std1 is added to get
12500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12501 array size at least. It's necessary to write '\x00'==0 to get something
12502 that's true only with -std1. */
12503 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12505 int test (int i, double x);
12506 struct s1 {int (*f) (int a);};
12507 struct s2 {int (*f) (double a);};
12508 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12514 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12519 # Don't try gcc -ansi; that turns off useful extensions and
12520 # breaks some systems' header files.
12521 # AIX -qlanglvl=ansi
12522 # Ultrix and OSF/1 -std1
12523 # HP-UX 10.20 and later -Ae
12524 # HP-UX older versions -Aa -D_HPUX_SOURCE
12525 # SVR4 -Xc -D__EXTENSIONS__
12526 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12528 CC="$ac_save_CC $ac_arg"
12529 rm -f conftest.$ac_objext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12531 (eval $ac_compile) 2>conftest.er1
12533 grep -v '^ *+' conftest.er1 >conftest.err
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -z "$ac_c_werror_flag"
12539 || test ! -s conftest.err'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; } &&
12545 { ac_try='test -s conftest.$ac_objext'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; }; then
12551 ac_cv_prog_cc_stdc=$ac_arg
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12558 rm -f conftest.err conftest.$ac_objext
12560 rm -f conftest.$ac_ext conftest.$ac_objext
12565 case "x$ac_cv_prog_cc_stdc" in
12567 echo "$as_me:$LINENO: result: none needed" >&5
12568 echo "${ECHO_T}none needed" >&6 ;;
12570 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12571 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12572 CC="$CC $ac_cv_prog_cc_stdc" ;;
12575 # Some people use a C++ compiler to compile C. Since we use `exit',
12576 # in C++ we need to declare it. In case someone uses the same compiler
12577 # for both compiling C and C++ we need to have the C++ compiler decide
12578 # the declaration of exit, since it's the most demanding environment.
12579 cat >conftest.$ac_ext <<_ACEOF
12580 #ifndef __cplusplus
12584 rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586 (eval $ac_compile) 2>conftest.er1
12588 grep -v '^ *+' conftest.er1 >conftest.err
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag"
12594 || test ! -s conftest.err'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest.$ac_objext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 for ac_declaration in \
12608 'extern "C" void std::exit (int) throw (); using std::exit;' \
12609 'extern "C" void std::exit (int); using std::exit;' \
12610 'extern "C" void exit (int) throw ();' \
12611 'extern "C" void exit (int);' \
12614 cat >conftest.$ac_ext <<_ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12621 #include <stdlib.h>
12630 rm -f conftest.$ac_objext
12631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632 (eval $ac_compile) 2>conftest.er1
12634 grep -v '^ *+' conftest.er1 >conftest.err
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag"
12640 || test ! -s conftest.err'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12660 cat >conftest.$ac_ext <<_ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12675 rm -f conftest.$ac_objext
12676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12677 (eval $ac_compile) 2>conftest.er1
12679 grep -v '^ *+' conftest.er1 >conftest.err
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } &&
12684 { ac_try='test -z "$ac_c_werror_flag"
12685 || test ! -s conftest.err'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; } &&
12691 { ac_try='test -s conftest.$ac_objext'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; }; then
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12706 if test -n "$ac_declaration"; then
12707 echo '#ifdef __cplusplus' >>confdefs.h
12708 echo $ac_declaration >>confdefs.h
12709 echo '#endif' >>confdefs.h
12713 echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12719 ac_cpp='$CPP $CPPFLAGS'
12720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12724 depcc="$CC" am_compiler_list=
12726 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12727 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12728 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12732 # We make a subdir and do the tests there. Otherwise we can end up
12733 # making bogus files that we don't know about and never remove. For
12734 # instance it was reported that on HP-UX the gcc test will end up
12735 # making a dummy file named `D' -- because `-MD' means `put the output
12738 # Copy depcomp to subdir because otherwise we won't find it if we're
12739 # using a relative directory.
12740 cp "$am_depcomp" conftest.dir
12742 # We will build objects and dependencies in a subdirectory because
12743 # it helps to detect inapplicable dependency modes. For instance
12744 # both Tru64's cc and ICC support -MD to output dependencies as a
12745 # side effect of compilation, but ICC will put the dependencies in
12746 # the current directory while Tru64 will put them in the object
12750 am_cv_CC_dependencies_compiler_type=none
12751 if test "$am_compiler_list" = ""; then
12752 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12754 for depmode in $am_compiler_list; do
12755 # Setup a source with many dependencies, because some compilers
12756 # like to wrap large dependency lists on column 80 (with \), and
12757 # we should not choose a depcomp mode which is confused by this.
12759 # We need to recreate these files for each test, as the compiler may
12760 # overwrite some of them when testing with obscure command lines.
12761 # This happens at least with the AIX C compiler.
12763 for i in 1 2 3 4 5 6; do
12764 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12765 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12766 # Solaris 8's {/usr,}/bin/sh.
12767 touch sub/conftst$i.h
12769 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12773 # after this tag, mechanisms are not by side-effect, so they'll
12774 # only be used when explicitly requested
12775 if test "x$enable_dependency_tracking" = xyes; then
12783 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12784 # mode. It turns out that the SunPro C++ compiler does not properly
12785 # handle `-M -o', and we need to detect this.
12786 if depmode=$depmode \
12787 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12788 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12789 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12790 >/dev/null 2>conftest.err &&
12791 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12792 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12793 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12794 # icc doesn't choke on unknown options, it will just issue warnings
12795 # or remarks (even with -Werror). So we grep stderr for any message
12796 # that says an option was ignored or not supported.
12797 # When given -MP, icc 7.0 and 7.1 complain thusly:
12798 # icc: Command line warning: ignoring option '-M'; no argument required
12799 # The diagnosis changed in icc 8.0:
12800 # icc: Command line remark: option '-MP' not supported
12801 if (grep 'ignoring option' conftest.err ||
12802 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12803 am_cv_CC_dependencies_compiler_type=$depmode
12810 rm -rf conftest.dir
12812 am_cv_CC_dependencies_compiler_type=none
12816 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12817 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12818 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12823 test "x$enable_dependency_tracking" != xno \
12824 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12825 am__fastdepCC_TRUE=
12826 am__fastdepCC_FALSE='#'
12828 am__fastdepCC_TRUE='#'
12829 am__fastdepCC_FALSE=
12833 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12834 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12835 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12836 { (exit 1); exit 1; }; }
12839 # test for make depend flag
12842 if test -z "${MKDEP}"; then
12843 OL_MKDEP="${CC-cc}"
12844 if test -z "${MKDEP_FLAGS}"; then
12845 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12846 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12847 if test "${ol_cv_mkdep+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 for flag in "-M" "-xM"; do
12853 cat > conftest.c <<EOF
12856 if { ac_try='$OL_MKDEP $flag conftest.c'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } \
12862 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12864 if test ! -f conftest."${ac_object}" ; then
12866 OL_MKDEP_FLAGS="$flag"
12874 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12875 echo "${ECHO_T}$ol_cv_mkdep" >&6
12878 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12882 OL_MKDEP="${MKDEP}"
12883 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12888 if test "${ol_cv_mkdep}" = no ; then
12889 # this will soon become an error
12890 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12891 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12894 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12895 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12896 if test "${ac_cv_lib_s_afopen+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 ac_check_lib_save_LIBS=$LIBS
12901 cat >conftest.$ac_ext <<_ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12908 /* Override any gcc2 internal prototype to avoid an error. */
12912 /* We use char because int might match the return type of a gcc2
12913 builtin and then its argument prototype would still apply. */
12923 rm -f conftest.$ac_objext conftest$ac_exeext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12925 (eval $ac_link) 2>conftest.er1
12927 grep -v '^ *+' conftest.er1 >conftest.err
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try='test -z "$ac_c_werror_flag"
12933 || test ! -s conftest.err'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest$ac_exeext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_cv_lib_s_afopen=yes
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_cv_lib_s_afopen=no
12952 rm -f conftest.err conftest.$ac_objext \
12953 conftest$ac_exeext conftest.$ac_ext
12954 LIBS=$ac_check_lib_save_LIBS
12956 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12957 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12958 if test $ac_cv_lib_s_afopen = yes; then
12962 cat >>confdefs.h <<\_ACEOF
12963 #define HAVE_AIX_SECURITY 1
12972 ac_cv_func_getopt=no
12974 cat >>confdefs.h <<\_ACEOF
12975 #define BOTH_STRINGS_H 1
12982 WITH_MODULES_ENABLED=no
12983 if test $ol_enable_modules != no ; then
12985 for ac_header in ltdl.h
12987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12989 echo "$as_me:$LINENO: checking for $ac_header" >&5
12990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12997 # Is the header compilable?
12998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13000 cat >conftest.$ac_ext <<_ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 $ac_includes_default
13007 #include <$ac_header>
13009 rm -f conftest.$ac_objext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13011 (eval $ac_compile) 2>conftest.er1
13013 grep -v '^ *+' conftest.er1 >conftest.err
13015 cat conftest.err >&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } &&
13018 { ac_try='test -z "$ac_c_werror_flag"
13019 || test ! -s conftest.err'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; } &&
13025 { ac_try='test -s conftest.$ac_objext'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 ac_header_compiler=yes
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13036 ac_header_compiler=no
13038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13040 echo "${ECHO_T}$ac_header_compiler" >&6
13042 # Is the header present?
13043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13045 cat >conftest.$ac_ext <<_ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051 #include <$ac_header>
13053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13056 grep -v '^ *+' conftest.er1 >conftest.err
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } >/dev/null; then
13061 if test -s conftest.err; then
13062 ac_cpp_err=$ac_c_preproc_warn_flag
13063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13070 if test -z "$ac_cpp_err"; then
13071 ac_header_preproc=yes
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ac_header_preproc=no
13078 rm -f conftest.err conftest.$ac_ext
13079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13080 echo "${ECHO_T}$ac_header_preproc" >&6
13082 # So? What about this header?
13083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13089 ac_header_preproc=yes
13092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13106 ## --------------------------------------------- ##
13107 ## Report this to <http://www.openldap.org/its/> ##
13108 ## --------------------------------------------- ##
13111 sed "s/^/$as_me: WARNING: /" >&2
13114 echo "$as_me:$LINENO: checking for $ac_header" >&5
13115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 eval "$as_ac_Header=\$ac_header_preproc"
13121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13126 cat >>confdefs.h <<_ACEOF
13127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13135 if test $ac_cv_header_ltdl_h = no ; then
13136 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13137 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13138 { (exit 1); exit 1; }; }
13141 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13142 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13143 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 ac_check_lib_save_LIBS=$LIBS
13147 LIBS="-lltdl $LIBS"
13148 cat >conftest.$ac_ext <<_ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13155 /* Override any gcc2 internal prototype to avoid an error. */
13159 /* We use char because int might match the return type of a gcc2
13160 builtin and then its argument prototype would still apply. */
13170 rm -f conftest.$ac_objext conftest$ac_exeext
13171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13172 (eval $ac_link) 2>conftest.er1
13174 grep -v '^ *+' conftest.er1 >conftest.err
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } &&
13179 { ac_try='test -z "$ac_c_werror_flag"
13180 || test ! -s conftest.err'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; } &&
13186 { ac_try='test -s conftest$ac_exeext'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; }; then
13192 ac_cv_lib_ltdl_lt_dlinit=yes
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13197 ac_cv_lib_ltdl_lt_dlinit=no
13199 rm -f conftest.err conftest.$ac_objext \
13200 conftest$ac_exeext conftest.$ac_ext
13201 LIBS=$ac_check_lib_save_LIBS
13203 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13204 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13205 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13207 MODULES_LIBS=-lltdl
13209 cat >>confdefs.h <<\_ACEOF
13210 #define HAVE_LIBLTDL 1
13217 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13218 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13219 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13220 { (exit 1); exit 1; }; }
13222 ol_link_modules=yes
13223 WITH_MODULES_ENABLED=yes
13226 for i in $Backends; do
13227 eval "ol_tmp=\$ol_enable_$i"
13228 if test $ol_tmp = mod ; then
13229 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13230 echo "$as_me: WARNING: building static $i backend" >&2;}
13231 eval "ol_enable_$i=yes"
13234 for i in $Overlays; do
13235 eval "ol_tmp=\$ol_enable_$i"
13236 if test $ol_tmp = mod ; then
13237 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13238 echo "$as_me: WARNING: building static $i overlay" >&2;}
13239 eval "ol_enable_$i=yes"
13245 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13246 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13247 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 cat >conftest.$ac_ext <<_ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13259 #include <__ASCII__/generate_error.h>
13263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13266 grep -v '^ *+' conftest.er1 >conftest.err
13268 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } >/dev/null; then
13271 if test -s conftest.err; then
13272 ac_cpp_err=$ac_c_preproc_warn_flag
13273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13280 if test -z "$ac_cpp_err"; then
13281 ol_cv_cpp_ebcdic=yes
13283 echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13286 ol_cv_cpp_ebcdic=no
13288 rm -f conftest.err conftest.$ac_ext
13290 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13291 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13292 if test $ol_cv_cpp_ebcdic = yes ; then
13294 cat >>confdefs.h <<\_ACEOF
13295 #define HAVE_EBCDIC 1
13300 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13301 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13302 if test "${ol_cv_header_stdc+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 cat >conftest.$ac_ext <<_ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 #include <stdlib.h>
13312 #include <stdarg.h>
13313 #include <string.h>
13316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13319 grep -v '^ *+' conftest.er1 >conftest.err
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } >/dev/null; then
13324 if test -s conftest.err; then
13325 ac_cpp_err=$ac_c_preproc_warn_flag
13326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13333 if test -z "$ac_cpp_err"; then
13334 ol_cv_header_stdc=yes
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13339 ol_cv_header_stdc=no
13341 rm -f conftest.err conftest.$ac_ext
13343 if test $ol_cv_header_stdc = yes; then
13344 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13345 cat >conftest.$ac_ext <<_ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13351 #include <string.h>
13354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13355 $EGREP "memchr" >/dev/null 2>&1; then
13358 ol_cv_header_stdc=no
13364 if test $ol_cv_header_stdc = yes; then
13365 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13366 cat >conftest.$ac_ext <<_ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13372 #include <stdlib.h>
13375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13376 $EGREP "free" >/dev/null 2>&1; then
13379 ol_cv_header_stdc=no
13385 if test $ol_cv_header_stdc = yes; then
13386 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13387 if test "$cross_compiling" = yes; then
13390 cat >conftest.$ac_ext <<_ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13397 #ifndef HAVE_EBCDIC
13398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13401 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13402 || ('j' <= (c) && (c) <= 'r') \
13403 || ('s' <= (c) && (c) <= 'z'))
13404 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13406 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13407 int main () { int i; for (i = 0; i < 256; i++)
13408 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13412 rm -f conftest$ac_exeext
13413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13414 (eval $ac_link) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; }; then
13425 echo "$as_me: program exited with status $ac_status" >&5
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 ( exit $ac_status )
13430 ol_cv_header_stdc=no
13432 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13436 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13437 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13438 if test $ol_cv_header_stdc = yes; then
13439 cat >>confdefs.h <<\_ACEOF
13440 #define STDC_HEADERS 1
13444 ac_cv_header_stdc=disable
13447 if test $ol_cv_header_stdc != yes; then
13448 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13449 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13457 ac_header_dirent=no
13458 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13459 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13460 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13461 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 cat >conftest.$ac_ext <<_ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471 #include <sys/types.h>
13483 rm -f conftest.$ac_objext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485 (eval $ac_compile) 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_c_werror_flag"
13493 || test ! -s conftest.err'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; } &&
13499 { ac_try='test -s conftest.$ac_objext'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13505 eval "$as_ac_Header=yes"
13507 echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.$ac_ext >&5
13510 eval "$as_ac_Header=no"
13512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13517 cat >>confdefs.h <<_ACEOF
13518 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13521 ac_header_dirent=$ac_hdr; break
13525 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13526 if test $ac_header_dirent = dirent.h; then
13527 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13528 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13529 if test "${ac_cv_search_opendir+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 ac_func_search_save_LIBS=$LIBS
13533 ac_cv_search_opendir=no
13534 cat >conftest.$ac_ext <<_ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13541 /* Override any gcc2 internal prototype to avoid an error. */
13545 /* We use char because int might match the return type of a gcc2
13546 builtin and then its argument prototype would still apply. */
13556 rm -f conftest.$ac_objext conftest$ac_exeext
13557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13558 (eval $ac_link) 2>conftest.er1
13560 grep -v '^ *+' conftest.er1 >conftest.err
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } &&
13565 { ac_try='test -z "$ac_c_werror_flag"
13566 || test ! -s conftest.err'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try='test -s conftest$ac_exeext'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
13578 ac_cv_search_opendir="none required"
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13584 rm -f conftest.err conftest.$ac_objext \
13585 conftest$ac_exeext conftest.$ac_ext
13586 if test "$ac_cv_search_opendir" = no; then
13587 for ac_lib in dir; do
13588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13589 cat >conftest.$ac_ext <<_ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13596 /* Override any gcc2 internal prototype to avoid an error. */
13600 /* We use char because int might match the return type of a gcc2
13601 builtin and then its argument prototype would still apply. */
13611 rm -f conftest.$ac_objext conftest$ac_exeext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13613 (eval $ac_link) 2>conftest.er1
13615 grep -v '^ *+' conftest.er1 >conftest.err
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -z "$ac_c_werror_flag"
13621 || test ! -s conftest.err'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } &&
13627 { ac_try='test -s conftest$ac_exeext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 ac_cv_search_opendir="-l$ac_lib"
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13640 rm -f conftest.err conftest.$ac_objext \
13641 conftest$ac_exeext conftest.$ac_ext
13644 LIBS=$ac_func_search_save_LIBS
13646 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13647 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13648 if test "$ac_cv_search_opendir" != no; then
13649 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13654 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13655 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13656 if test "${ac_cv_search_opendir+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 ac_func_search_save_LIBS=$LIBS
13660 ac_cv_search_opendir=no
13661 cat >conftest.$ac_ext <<_ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13668 /* Override any gcc2 internal prototype to avoid an error. */
13672 /* We use char because int might match the return type of a gcc2
13673 builtin and then its argument prototype would still apply. */
13683 rm -f conftest.$ac_objext conftest$ac_exeext
13684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13685 (eval $ac_link) 2>conftest.er1
13687 grep -v '^ *+' conftest.er1 >conftest.err
13689 cat conftest.err >&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } &&
13692 { ac_try='test -z "$ac_c_werror_flag"
13693 || test ! -s conftest.err'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; } &&
13699 { ac_try='test -s conftest$ac_exeext'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }; then
13705 ac_cv_search_opendir="none required"
13707 echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13711 rm -f conftest.err conftest.$ac_objext \
13712 conftest$ac_exeext conftest.$ac_ext
13713 if test "$ac_cv_search_opendir" = no; then
13714 for ac_lib in x; do
13715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13716 cat >conftest.$ac_ext <<_ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13723 /* Override any gcc2 internal prototype to avoid an error. */
13727 /* We use char because int might match the return type of a gcc2
13728 builtin and then its argument prototype would still apply. */
13738 rm -f conftest.$ac_objext conftest$ac_exeext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13740 (eval $ac_link) 2>conftest.er1
13742 grep -v '^ *+' conftest.er1 >conftest.err
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -z "$ac_c_werror_flag"
13748 || test ! -s conftest.err'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest$ac_exeext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13760 ac_cv_search_opendir="-l$ac_lib"
13763 echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13767 rm -f conftest.err conftest.$ac_objext \
13768 conftest$ac_exeext conftest.$ac_ext
13771 LIBS=$ac_func_search_save_LIBS
13773 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13774 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13775 if test "$ac_cv_search_opendir" != no; then
13776 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13782 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13783 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13784 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 cat >conftest.$ac_ext <<_ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793 #include <sys/types.h>
13794 #include <sys/wait.h>
13795 #ifndef WEXITSTATUS
13796 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13799 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13807 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13812 rm -f conftest.$ac_objext
13813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13814 (eval $ac_compile) 2>conftest.er1
13816 grep -v '^ *+' conftest.er1 >conftest.err
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -z "$ac_c_werror_flag"
13822 || test ! -s conftest.err'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; } &&
13828 { ac_try='test -s conftest.$ac_objext'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 ac_cv_header_sys_wait_h=yes
13836 echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ac_cv_header_sys_wait_h=no
13841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13843 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13844 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13845 if test $ac_cv_header_sys_wait_h = yes; then
13847 cat >>confdefs.h <<\_ACEOF
13848 #define HAVE_SYS_WAIT_H 1
13853 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13854 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13855 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 cat >conftest.$ac_ext <<_ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13864 #include <sys/types.h>
13865 #include <termios.h>
13871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13872 $EGREP "yes" >/dev/null 2>&1; then
13873 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13875 ac_cv_sys_tiocgwinsz_in_termios_h=no
13880 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13881 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13883 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13884 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13885 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13886 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
13889 cat >conftest.$ac_ext <<_ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 #include <sys/types.h>
13896 #include <sys/ioctl.h>
13902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13903 $EGREP "yes" >/dev/null 2>&1; then
13904 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13906 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13911 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13912 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13914 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13916 cat >>confdefs.h <<\_ACEOF
13917 #define GWINSZ_IN_SYS_IOCTL 1
14015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14017 echo "$as_me:$LINENO: checking for $ac_header" >&5
14018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14025 # Is the header compilable?
14026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14028 cat >conftest.$ac_ext <<_ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14034 $ac_includes_default
14035 #include <$ac_header>
14037 rm -f conftest.$ac_objext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14039 (eval $ac_compile) 2>conftest.er1
14041 grep -v '^ *+' conftest.er1 >conftest.err
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -z "$ac_c_werror_flag"
14047 || test ! -s conftest.err'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; } &&
14053 { ac_try='test -s conftest.$ac_objext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14059 ac_header_compiler=yes
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14064 ac_header_compiler=no
14066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14068 echo "${ECHO_T}$ac_header_compiler" >&6
14070 # Is the header present?
14071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14073 cat >conftest.$ac_ext <<_ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079 #include <$ac_header>
14081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14084 grep -v '^ *+' conftest.er1 >conftest.err
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } >/dev/null; then
14089 if test -s conftest.err; then
14090 ac_cpp_err=$ac_c_preproc_warn_flag
14091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14098 if test -z "$ac_cpp_err"; then
14099 ac_header_preproc=yes
14101 echo "$as_me: failed program was:" >&5
14102 sed 's/^/| /' conftest.$ac_ext >&5
14104 ac_header_preproc=no
14106 rm -f conftest.err conftest.$ac_ext
14107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14108 echo "${ECHO_T}$ac_header_preproc" >&6
14110 # So? What about this header?
14111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14117 ac_header_preproc=yes
14120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14134 ## --------------------------------------------- ##
14135 ## Report this to <http://www.openldap.org/its/> ##
14136 ## --------------------------------------------- ##
14139 sed "s/^/$as_me: WARNING: /" >&2
14142 echo "$as_me:$LINENO: checking for $ac_header" >&5
14143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 eval "$as_ac_Header=\$ac_header_preproc"
14149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14154 cat >>confdefs.h <<_ACEOF
14155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14163 if test "$ac_cv_mingw32" = yes ; then
14166 for ac_header in winsock.h winsock2.h
14168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14170 echo "$as_me:$LINENO: checking for $ac_header" >&5
14171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14178 # Is the header compilable?
14179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14181 cat >conftest.$ac_ext <<_ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h. */
14187 $ac_includes_default
14188 #include <$ac_header>
14190 rm -f conftest.$ac_objext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192 (eval $ac_compile) 2>conftest.er1
14194 grep -v '^ *+' conftest.er1 >conftest.err
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -z "$ac_c_werror_flag"
14200 || test ! -s conftest.err'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14212 ac_header_compiler=yes
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14217 ac_header_compiler=no
14219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14221 echo "${ECHO_T}$ac_header_compiler" >&6
14223 # Is the header present?
14224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14226 cat >conftest.$ac_ext <<_ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 #include <$ac_header>
14234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14237 grep -v '^ *+' conftest.er1 >conftest.err
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } >/dev/null; then
14242 if test -s conftest.err; then
14243 ac_cpp_err=$ac_c_preproc_warn_flag
14244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14251 if test -z "$ac_cpp_err"; then
14252 ac_header_preproc=yes
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14257 ac_header_preproc=no
14259 rm -f conftest.err conftest.$ac_ext
14260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14261 echo "${ECHO_T}$ac_header_preproc" >&6
14263 # So? What about this header?
14264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14270 ac_header_preproc=yes
14273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14287 ## --------------------------------------------- ##
14288 ## Report this to <http://www.openldap.org/its/> ##
14289 ## --------------------------------------------- ##
14292 sed "s/^/$as_me: WARNING: /" >&2
14295 echo "$as_me:$LINENO: checking for $ac_header" >&5
14296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 eval "$as_ac_Header=\$ac_header_preproc"
14302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14307 cat >>confdefs.h <<_ACEOF
14308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14318 for ac_header in resolv.h
14320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14321 echo "$as_me:$LINENO: checking for $ac_header" >&5
14322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 cat >conftest.$ac_ext <<_ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14332 $ac_includes_default
14333 #include <netinet/in.h>
14336 #include <$ac_header>
14338 rm -f conftest.$ac_objext
14339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14340 (eval $ac_compile) 2>conftest.er1
14342 grep -v '^ *+' conftest.er1 >conftest.err
14344 cat conftest.err >&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try='test -z "$ac_c_werror_flag"
14348 || test ! -s conftest.err'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest.$ac_objext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 eval "$as_ac_Header=yes"
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14365 eval "$as_ac_Header=no"
14367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14372 cat >>confdefs.h <<_ACEOF
14373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14382 for ac_header in netinet/tcp.h
14384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14385 echo "$as_me:$LINENO: checking for $ac_header" >&5
14386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 cat >conftest.$ac_ext <<_ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14396 $ac_includes_default
14397 #include <netinet/in.h>
14400 #include <$ac_header>
14402 rm -f conftest.$ac_objext
14403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14404 (eval $ac_compile) 2>conftest.er1
14406 grep -v '^ *+' conftest.er1 >conftest.err
14408 cat conftest.err >&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
14411 { ac_try='test -z "$ac_c_werror_flag"
14412 || test ! -s conftest.err'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; } &&
14418 { ac_try='test -s conftest.$ac_objext'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }; then
14424 eval "$as_ac_Header=yes"
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14429 eval "$as_ac_Header=no"
14431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14436 cat >>confdefs.h <<_ACEOF
14437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14446 for ac_header in sys/ucred.h
14448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14449 echo "$as_me:$LINENO: checking for $ac_header" >&5
14450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 cat >conftest.$ac_ext <<_ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h. */
14460 $ac_includes_default
14461 #ifdef HAVE_SYS_PARAM_H
14462 #include <sys/param.h>
14466 #include <$ac_header>
14468 rm -f conftest.$ac_objext
14469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14470 (eval $ac_compile) 2>conftest.er1
14472 grep -v '^ *+' conftest.er1 >conftest.err
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } &&
14477 { ac_try='test -z "$ac_c_werror_flag"
14478 || test ! -s conftest.err'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; } &&
14484 { ac_try='test -s conftest.$ac_objext'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; }; then
14490 eval "$as_ac_Header=yes"
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14495 eval "$as_ac_Header=no"
14497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14502 cat >>confdefs.h <<_ACEOF
14503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14514 for ac_func in sigaction sigset
14516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14517 echo "$as_me:$LINENO: checking for $ac_func" >&5
14518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14519 if eval "test \"\${$as_ac_var+set}\" = set"; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 cat >conftest.$ac_ext <<_ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14530 #define $ac_func innocuous_$ac_func
14532 /* System header to define __stub macros and hopefully few prototypes,
14533 which can conflict with char $ac_func (); below.
14534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14535 <limits.h> exists even on freestanding compilers. */
14538 # include <limits.h>
14540 # include <assert.h>
14545 /* Override any gcc2 internal prototype to avoid an error. */
14550 /* We use char because int might match the return type of a gcc2
14551 builtin and then its argument prototype would still apply. */
14553 /* The GNU C library defines this for functions which it implements
14554 to always fail with ENOSYS. Some functions are actually named
14555 something starting with __ and the normal name is an alias. */
14556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14559 char (*f) () = $ac_func;
14568 return f != $ac_func;
14573 rm -f conftest.$ac_objext conftest$ac_exeext
14574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14575 (eval $ac_link) 2>conftest.er1
14577 grep -v '^ *+' conftest.er1 >conftest.err
14579 cat conftest.err >&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } &&
14582 { ac_try='test -z "$ac_c_werror_flag"
14583 || test ! -s conftest.err'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; } &&
14589 { ac_try='test -s conftest$ac_exeext'
14590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591 (eval $ac_try) 2>&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; }; then
14595 eval "$as_ac_var=yes"
14597 echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14600 eval "$as_ac_var=no"
14602 rm -f conftest.err conftest.$ac_objext \
14603 conftest$ac_exeext conftest.$ac_ext
14605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14607 if test `eval echo '${'$as_ac_var'}'` = yes; then
14608 cat >>confdefs.h <<_ACEOF
14609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14616 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14618 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14619 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14620 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14621 echo $ECHO_N "(cached) $ECHO_C" >&6
14623 ac_check_lib_save_LIBS=$LIBS
14625 cat >conftest.$ac_ext <<_ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14632 /* Override any gcc2 internal prototype to avoid an error. */
14636 /* We use char because int might match the return type of a gcc2
14637 builtin and then its argument prototype would still apply. */
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>conftest.er1
14651 grep -v '^ *+' conftest.er1 >conftest.err
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag"
14657 || test ! -s conftest.err'
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; } &&
14663 { ac_try='test -s conftest$ac_exeext'
14664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665 (eval $ac_try) 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; }; then
14669 ac_cv_lib_V3_sigset=yes
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 ac_cv_lib_V3_sigset=no
14676 rm -f conftest.err conftest.$ac_objext \
14677 conftest$ac_exeext conftest.$ac_ext
14678 LIBS=$ac_check_lib_save_LIBS
14680 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14681 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14682 if test $ac_cv_lib_V3_sigset = yes; then
14683 cat >>confdefs.h <<_ACEOF
14684 #define HAVE_LIBV3 1
14693 if test "$ac_cv_header_winsock_h" = yes; then
14694 echo "$as_me:$LINENO: checking for winsock" >&5
14695 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14696 if test "${ol_cv_winsock+set}" = set; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 for curlib in ws2_32 wsock32; do
14701 LIBS="$LIBS -l$curlib"
14702 cat >conftest.$ac_ext <<_ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 #include <winsock.h>
14715 select(0,NULL,NULL,NULL,NULL);
14717 gethostname(NULL,0);
14723 rm -f conftest.$ac_objext conftest$ac_exeext
14724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14725 (eval $ac_link) 2>conftest.er1
14727 grep -v '^ *+' conftest.er1 >conftest.err
14729 cat conftest.err >&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try='test -z "$ac_c_werror_flag"
14733 || test ! -s conftest.err'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; } &&
14739 { ac_try='test -s conftest$ac_exeext'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14752 rm -f conftest.err conftest.$ac_objext \
14753 conftest$ac_exeext conftest.$ac_ext
14755 if test $ol_cv_winsock = yes; then
14757 cat >>confdefs.h <<\_ACEOF
14758 #define HAVE_WINSOCK 1
14761 ac_cv_func_socket=yes
14762 ac_cv_func_select=yes
14763 ac_cv_func_closesocket=yes
14764 ac_cv_func_gethostname=yes
14765 if test $curlib = ws2_32; then
14766 ol_cv_winsock=winsock2
14768 cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_WINSOCK2 1
14778 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14779 echo "${ECHO_T}$ol_cv_winsock" >&6
14783 echo "$as_me:$LINENO: checking for socket" >&5
14784 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14785 if test "${ac_cv_func_socket+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 cat >conftest.$ac_ext <<_ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14796 #define socket innocuous_socket
14798 /* System header to define __stub macros and hopefully few prototypes,
14799 which can conflict with char socket (); below.
14800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14801 <limits.h> exists even on freestanding compilers. */
14804 # include <limits.h>
14806 # include <assert.h>
14811 /* Override any gcc2 internal prototype to avoid an error. */
14816 /* We use char because int might match the return type of a gcc2
14817 builtin and then its argument prototype would still apply. */
14819 /* The GNU C library defines this for functions which it implements
14820 to always fail with ENOSYS. Some functions are actually named
14821 something starting with __ and the normal name is an alias. */
14822 #if defined (__stub_socket) || defined (__stub___socket)
14825 char (*f) () = socket;
14834 return f != socket;
14839 rm -f conftest.$ac_objext conftest$ac_exeext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14841 (eval $ac_link) 2>conftest.er1
14843 grep -v '^ *+' conftest.er1 >conftest.err
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try='test -z "$ac_c_werror_flag"
14849 || test ! -s conftest.err'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; } &&
14855 { ac_try='test -s conftest$ac_exeext'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }; then
14861 ac_cv_func_socket=yes
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 ac_cv_func_socket=no
14868 rm -f conftest.err conftest.$ac_objext \
14869 conftest$ac_exeext conftest.$ac_ext
14871 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14872 echo "${ECHO_T}$ac_cv_func_socket" >&6
14873 if test $ac_cv_func_socket = yes; then
14878 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14879 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14880 if test "${ac_cv_lib_socket_main+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14883 ac_check_lib_save_LIBS=$LIBS
14884 LIBS="-lsocket $LIBS"
14885 cat >conftest.$ac_ext <<_ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14901 rm -f conftest.$ac_objext conftest$ac_exeext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14903 (eval $ac_link) 2>conftest.er1
14905 grep -v '^ *+' conftest.er1 >conftest.err
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_c_werror_flag"
14911 || test ! -s conftest.err'
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); }; } &&
14917 { ac_try='test -s conftest$ac_exeext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_cv_lib_socket_main=yes
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 ac_cv_lib_socket_main=no
14930 rm -f conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext conftest.$ac_ext
14932 LIBS=$ac_check_lib_save_LIBS
14934 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14935 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14936 if test $ac_cv_lib_socket_main = yes; then
14937 cat >>confdefs.h <<_ACEOF
14938 #define HAVE_LIBSOCKET 1
14941 LIBS="-lsocket $LIBS"
14946 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14947 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14948 if test "${ac_cv_lib_net_main+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 ac_check_lib_save_LIBS=$LIBS
14953 cat >conftest.$ac_ext <<_ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14969 rm -f conftest.$ac_objext conftest$ac_exeext
14970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14971 (eval $ac_link) 2>conftest.er1
14973 grep -v '^ *+' conftest.er1 >conftest.err
14975 cat conftest.err >&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); } &&
14978 { ac_try='test -z "$ac_c_werror_flag"
14979 || test ! -s conftest.err'
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); }; } &&
14985 { ac_try='test -s conftest$ac_exeext'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
14991 ac_cv_lib_net_main=yes
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_cv_lib_net_main=no
14998 rm -f conftest.err conftest.$ac_objext \
14999 conftest$ac_exeext conftest.$ac_ext
15000 LIBS=$ac_check_lib_save_LIBS
15002 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15003 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
15004 if test $ac_cv_lib_net_main = yes; then
15005 cat >>confdefs.h <<_ACEOF
15006 #define HAVE_LIBNET 1
15014 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15015 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
15016 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15017 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 ac_check_lib_save_LIBS=$LIBS
15020 LIBS="-lnsl_s $LIBS"
15021 cat >conftest.$ac_ext <<_ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
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_nsl_s_main=yes
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15064 ac_cv_lib_nsl_s_main=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_nsl_s_main" >&5
15071 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
15072 if test $ac_cv_lib_nsl_s_main = yes; then
15073 cat >>confdefs.h <<_ACEOF
15074 #define HAVE_LIBNSL_S 1
15077 LIBS="-lnsl_s $LIBS"
15082 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15083 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15084 if test "${ac_cv_lib_nsl_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_nsl_main=yes
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_cv_lib_nsl_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_nsl_main" >&5
15139 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15140 if test $ac_cv_lib_nsl_main = yes; then
15141 cat >>confdefs.h <<_ACEOF
15142 #define HAVE_LIBNSL 1
15150 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15151 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15152 if test "${ac_cv_lib_inet_socket+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 ac_check_lib_save_LIBS=$LIBS
15156 LIBS="-linet $LIBS"
15157 cat >conftest.$ac_ext <<_ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15164 /* Override any gcc2 internal prototype to avoid an error. */
15168 /* We use char because int might match the return type of a gcc2
15169 builtin and then its argument prototype would still apply. */
15179 rm -f conftest.$ac_objext conftest$ac_exeext
15180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15181 (eval $ac_link) 2>conftest.er1
15183 grep -v '^ *+' conftest.er1 >conftest.err
15185 cat conftest.err >&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); } &&
15188 { ac_try='test -z "$ac_c_werror_flag"
15189 || test ! -s conftest.err'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; } &&
15195 { ac_try='test -s conftest$ac_exeext'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15201 ac_cv_lib_inet_socket=yes
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15206 ac_cv_lib_inet_socket=no
15208 rm -f conftest.err conftest.$ac_objext \
15209 conftest$ac_exeext conftest.$ac_ext
15210 LIBS=$ac_check_lib_save_LIBS
15212 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15213 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15214 if test $ac_cv_lib_inet_socket = yes; then
15215 cat >>confdefs.h <<_ACEOF
15216 #define HAVE_LIBINET 1
15219 LIBS="-linet $LIBS"
15224 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15225 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15226 if test "${ac_cv_lib_gen_main+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15229 ac_check_lib_save_LIBS=$LIBS
15231 cat >conftest.$ac_ext <<_ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15247 rm -f conftest.$ac_objext conftest$ac_exeext
15248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15249 (eval $ac_link) 2>conftest.er1
15251 grep -v '^ *+' conftest.er1 >conftest.err
15253 cat conftest.err >&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
15256 { ac_try='test -z "$ac_c_werror_flag"
15257 || test ! -s conftest.err'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; } &&
15263 { ac_try='test -s conftest$ac_exeext'
15264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265 (eval $ac_try) 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_cv_lib_gen_main=yes
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ac_cv_lib_gen_main=no
15276 rm -f conftest.err conftest.$ac_objext \
15277 conftest$ac_exeext conftest.$ac_ext
15278 LIBS=$ac_check_lib_save_LIBS
15280 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15281 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15282 if test $ac_cv_lib_gen_main = yes; then
15283 cat >>confdefs.h <<_ACEOF
15284 #define HAVE_LIBGEN 1
15295 echo "$as_me:$LINENO: checking for select" >&5
15296 echo $ECHO_N "checking for select... $ECHO_C" >&6
15297 if test "${ac_cv_func_select+set}" = set; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 cat >conftest.$ac_ext <<_ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15306 /* Define select to an innocuous variant, in case <limits.h> declares select.
15307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15308 #define select innocuous_select
15310 /* System header to define __stub macros and hopefully few prototypes,
15311 which can conflict with char select (); below.
15312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15313 <limits.h> exists even on freestanding compilers. */
15316 # include <limits.h>
15318 # include <assert.h>
15323 /* Override any gcc2 internal prototype to avoid an error. */
15328 /* We use char because int might match the return type of a gcc2
15329 builtin and then its argument prototype would still apply. */
15331 /* The GNU C library defines this for functions which it implements
15332 to always fail with ENOSYS. Some functions are actually named
15333 something starting with __ and the normal name is an alias. */
15334 #if defined (__stub_select) || defined (__stub___select)
15337 char (*f) () = select;
15346 return f != select;
15351 rm -f conftest.$ac_objext conftest$ac_exeext
15352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15353 (eval $ac_link) 2>conftest.er1
15355 grep -v '^ *+' conftest.er1 >conftest.err
15357 cat conftest.err >&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } &&
15360 { ac_try='test -z "$ac_c_werror_flag"
15361 || test ! -s conftest.err'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; } &&
15367 { ac_try='test -s conftest$ac_exeext'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; }; then
15373 ac_cv_func_select=yes
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15378 ac_cv_func_select=no
15380 rm -f conftest.err conftest.$ac_objext \
15381 conftest$ac_exeext conftest.$ac_ext
15383 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15384 echo "${ECHO_T}$ac_cv_func_select" >&6
15385 if test $ac_cv_func_select = yes; then
15388 { { echo "$as_me:$LINENO: error: select() required." >&5
15389 echo "$as_me: error: select() required." >&2;}
15390 { (exit 1); exit 1; }; }
15394 if test "${ac_cv_header_winsock_h}" != yes; then
15397 for ac_header in sys/select.h sys/socket.h
15399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15401 echo "$as_me:$LINENO: checking for $ac_header" >&5
15402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15404 echo $ECHO_N "(cached) $ECHO_C" >&6
15406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15409 # Is the header compilable?
15410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 #include <$ac_header>
15421 rm -f conftest.$ac_objext
15422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15423 (eval $ac_compile) 2>conftest.er1
15425 grep -v '^ *+' conftest.er1 >conftest.err
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } &&
15430 { ac_try='test -z "$ac_c_werror_flag"
15431 || test ! -s conftest.err'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; } &&
15437 { ac_try='test -s conftest.$ac_objext'
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15443 ac_header_compiler=yes
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15448 ac_header_compiler=no
15450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15452 echo "${ECHO_T}$ac_header_compiler" >&6
15454 # Is the header present?
15455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15457 cat >conftest.$ac_ext <<_ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h. */
15463 #include <$ac_header>
15465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15468 grep -v '^ *+' conftest.er1 >conftest.err
15470 cat conftest.err >&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } >/dev/null; then
15473 if test -s conftest.err; then
15474 ac_cpp_err=$ac_c_preproc_warn_flag
15475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15482 if test -z "$ac_cpp_err"; then
15483 ac_header_preproc=yes
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15488 ac_header_preproc=no
15490 rm -f conftest.err conftest.$ac_ext
15491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15492 echo "${ECHO_T}$ac_header_preproc" >&6
15494 # So? What about this header?
15495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15501 ac_header_preproc=yes
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15518 ## --------------------------------------------- ##
15519 ## Report this to <http://www.openldap.org/its/> ##
15520 ## --------------------------------------------- ##
15523 sed "s/^/$as_me: WARNING: /" >&2
15526 echo "$as_me:$LINENO: checking for $ac_header" >&5
15527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 eval "$as_ac_Header=\$ac_header_preproc"
15533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15538 cat >>confdefs.h <<_ACEOF
15539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15546 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15547 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15548 if test "${ac_cv_func_select_args+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15552 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15553 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15554 cat >conftest.$ac_ext <<_ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15560 $ac_includes_default
15561 #if HAVE_SYS_SELECT_H
15562 # include <sys/select.h>
15564 #if HAVE_SYS_SOCKET_H
15565 # include <sys/socket.h>
15571 extern int select ($ac_arg1,
15572 $ac_arg234, $ac_arg234, $ac_arg234,
15578 rm -f conftest.$ac_objext
15579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15580 (eval $ac_compile) 2>conftest.er1
15582 grep -v '^ *+' conftest.er1 >conftest.err
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } &&
15587 { ac_try='test -z "$ac_c_werror_flag"
15588 || test ! -s conftest.err'
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; } &&
15594 { ac_try='test -s conftest.$ac_objext'
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; }; then
15600 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15602 echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15610 # Provide a safe default value.
15611 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15614 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15615 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15616 ac_save_IFS=$IFS; IFS=','
15617 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15621 cat >>confdefs.h <<_ACEOF
15622 #define SELECT_TYPE_ARG1 $1
15626 cat >>confdefs.h <<_ACEOF
15627 #define SELECT_TYPE_ARG234 ($2)
15631 cat >>confdefs.h <<_ACEOF
15632 #define SELECT_TYPE_ARG5 ($3)
15641 for ac_func in poll
15643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15644 echo "$as_me:$LINENO: checking for $ac_func" >&5
15645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15646 if eval "test \"\${$as_ac_var+set}\" = set"; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 cat >conftest.$ac_ext <<_ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15657 #define $ac_func innocuous_$ac_func
15659 /* System header to define __stub macros and hopefully few prototypes,
15660 which can conflict with char $ac_func (); below.
15661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15662 <limits.h> exists even on freestanding compilers. */
15665 # include <limits.h>
15667 # include <assert.h>
15672 /* Override any gcc2 internal prototype to avoid an error. */
15677 /* We use char because int might match the return type of a gcc2
15678 builtin and then its argument prototype would still apply. */
15680 /* The GNU C library defines this for functions which it implements
15681 to always fail with ENOSYS. Some functions are actually named
15682 something starting with __ and the normal name is an alias. */
15683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15686 char (*f) () = $ac_func;
15695 return f != $ac_func;
15700 rm -f conftest.$ac_objext conftest$ac_exeext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15702 (eval $ac_link) 2>conftest.er1
15704 grep -v '^ *+' conftest.er1 >conftest.err
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -z "$ac_c_werror_flag"
15710 || test ! -s conftest.err'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest$ac_exeext'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 eval "$as_ac_var=yes"
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15727 eval "$as_ac_var=no"
15729 rm -f conftest.err conftest.$ac_objext \
15730 conftest$ac_exeext conftest.$ac_ext
15732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15734 if test `eval echo '${'$as_ac_var'}'` = yes; then
15735 cat >>confdefs.h <<_ACEOF
15736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15743 for ac_header in poll.h
15745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15747 echo "$as_me:$LINENO: checking for $ac_header" >&5
15748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15755 # Is the header compilable?
15756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15758 cat >conftest.$ac_ext <<_ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15764 $ac_includes_default
15765 #include <$ac_header>
15767 rm -f conftest.$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769 (eval $ac_compile) 2>conftest.er1
15771 grep -v '^ *+' conftest.er1 >conftest.err
15773 cat conftest.err >&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } &&
15776 { ac_try='test -z "$ac_c_werror_flag"
15777 || test ! -s conftest.err'
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try='test -s conftest.$ac_objext'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15789 ac_header_compiler=yes
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15794 ac_header_compiler=no
15796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15798 echo "${ECHO_T}$ac_header_compiler" >&6
15800 # Is the header present?
15801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15803 cat >conftest.$ac_ext <<_ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809 #include <$ac_header>
15811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15814 grep -v '^ *+' conftest.er1 >conftest.err
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } >/dev/null; then
15819 if test -s conftest.err; then
15820 ac_cpp_err=$ac_c_preproc_warn_flag
15821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15828 if test -z "$ac_cpp_err"; then
15829 ac_header_preproc=yes
15831 echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15834 ac_header_preproc=no
15836 rm -f conftest.err conftest.$ac_ext
15837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15838 echo "${ECHO_T}$ac_header_preproc" >&6
15840 # So? What about this header?
15841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15847 ac_header_preproc=yes
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15864 ## --------------------------------------------- ##
15865 ## Report this to <http://www.openldap.org/its/> ##
15866 ## --------------------------------------------- ##
15869 sed "s/^/$as_me: WARNING: /" >&2
15872 echo "$as_me:$LINENO: checking for $ac_header" >&5
15873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15877 eval "$as_ac_Header=\$ac_header_preproc"
15879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15884 cat >>confdefs.h <<_ACEOF
15885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15894 for ac_header in sys/epoll.h
15896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15898 echo "$as_me:$LINENO: checking for $ac_header" >&5
15899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15906 # Is the header compilable?
15907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15909 cat >conftest.$ac_ext <<_ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 $ac_includes_default
15916 #include <$ac_header>
15918 rm -f conftest.$ac_objext
15919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15920 (eval $ac_compile) 2>conftest.er1
15922 grep -v '^ *+' conftest.er1 >conftest.err
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
15927 { ac_try='test -z "$ac_c_werror_flag"
15928 || test ! -s conftest.err'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; } &&
15934 { ac_try='test -s conftest.$ac_objext'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_header_compiler=yes
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 ac_header_compiler=no
15947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15949 echo "${ECHO_T}$ac_header_compiler" >&6
15951 # Is the header present?
15952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15954 cat >conftest.$ac_ext <<_ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15960 #include <$ac_header>
15962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15965 grep -v '^ *+' conftest.er1 >conftest.err
15967 cat conftest.err >&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } >/dev/null; then
15970 if test -s conftest.err; then
15971 ac_cpp_err=$ac_c_preproc_warn_flag
15972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15979 if test -z "$ac_cpp_err"; then
15980 ac_header_preproc=yes
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15985 ac_header_preproc=no
15987 rm -f conftest.err conftest.$ac_ext
15988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15989 echo "${ECHO_T}$ac_header_preproc" >&6
15991 # So? What about this header?
15992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15998 ac_header_preproc=yes
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16015 ## --------------------------------------------- ##
16016 ## Report this to <http://www.openldap.org/its/> ##
16017 ## --------------------------------------------- ##
16020 sed "s/^/$as_me: WARNING: /" >&2
16023 echo "$as_me:$LINENO: checking for $ac_header" >&5
16024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 eval "$as_ac_Header=\$ac_header_preproc"
16030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16035 cat >>confdefs.h <<_ACEOF
16036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16043 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16044 echo "$as_me:$LINENO: checking for epoll system call" >&5
16045 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
16046 if test "$cross_compiling" = yes; then
16047 echo "$as_me:$LINENO: result: no" >&5
16048 echo "${ECHO_T}no" >&6
16050 cat >conftest.$ac_ext <<_ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16056 int main(int argc, char *argv)
16058 int epfd = epoll_create(256);
16059 exit (epfd == -1 ? 1 : 0);
16062 rm -f conftest$ac_exeext
16063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16064 (eval $ac_link) 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 echo "$as_me:$LINENO: result: yes" >&5
16074 echo "${ECHO_T}yes" >&6
16076 cat >>confdefs.h <<\_ACEOF
16077 #define HAVE_EPOLL 1
16081 echo "$as_me: program exited with status $ac_status" >&5
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 ( exit $ac_status )
16086 echo "$as_me:$LINENO: result: no" >&5
16087 echo "${ECHO_T}no" >&6
16089 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16094 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16095 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16096 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 cat >conftest.$ac_ext <<_ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h. */
16108 #include <sys/types.h>
16111 #include <stdlib.h>
16116 char *c = (char *) *sys_errlist
16121 rm -f conftest.$ac_objext
16122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16123 (eval $ac_compile) 2>conftest.er1
16125 grep -v '^ *+' conftest.er1 >conftest.err
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } &&
16130 { ac_try='test -z "$ac_c_werror_flag"
16131 || test ! -s conftest.err'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; } &&
16137 { ac_try='test -s conftest.$ac_objext'
16138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139 (eval $ac_try) 2>&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); }; }; then
16143 ol_cv_dcl_sys_errlist=yes
16144 ol_cv_have_sys_errlist=yes
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16149 ol_cv_dcl_sys_errlist=no
16151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16153 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16154 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16156 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16157 if test $ol_cv_dcl_sys_errlist = no ; then
16159 cat >>confdefs.h <<\_ACEOF
16160 #define DECL_SYS_ERRLIST 1
16164 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16165 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16166 if test "${ol_cv_have_sys_errlist+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 cat >conftest.$ac_ext <<_ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16180 char *c = (char *) *sys_errlist
16185 rm -f conftest.$ac_objext conftest$ac_exeext
16186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16187 (eval $ac_link) 2>conftest.er1
16189 grep -v '^ *+' conftest.er1 >conftest.err
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } &&
16194 { ac_try='test -z "$ac_c_werror_flag"
16195 || test ! -s conftest.err'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; } &&
16201 { ac_try='test -s conftest$ac_exeext'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16207 ol_cv_have_sys_errlist=yes
16209 echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16212 ol_cv_have_sys_errlist=no
16214 rm -f conftest.err conftest.$ac_objext \
16215 conftest$ac_exeext conftest.$ac_ext
16217 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16218 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16220 if test $ol_cv_have_sys_errlist = yes ; then
16222 cat >>confdefs.h <<\_ACEOF
16223 #define HAVE_SYS_ERRLIST 1
16229 for ac_func in strerror strerror_r
16231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16232 echo "$as_me:$LINENO: checking for $ac_func" >&5
16233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16234 if eval "test \"\${$as_ac_var+set}\" = set"; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 cat >conftest.$ac_ext <<_ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16245 #define $ac_func innocuous_$ac_func
16247 /* System header to define __stub macros and hopefully few prototypes,
16248 which can conflict with char $ac_func (); below.
16249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16250 <limits.h> exists even on freestanding compilers. */
16253 # include <limits.h>
16255 # include <assert.h>
16260 /* Override any gcc2 internal prototype to avoid an error. */
16265 /* We use char because int might match the return type of a gcc2
16266 builtin and then its argument prototype would still apply. */
16268 /* The GNU C library defines this for functions which it implements
16269 to always fail with ENOSYS. Some functions are actually named
16270 something starting with __ and the normal name is an alias. */
16271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16274 char (*f) () = $ac_func;
16283 return f != $ac_func;
16288 rm -f conftest.$ac_objext conftest$ac_exeext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16290 (eval $ac_link) 2>conftest.er1
16292 grep -v '^ *+' conftest.er1 >conftest.err
16294 cat conftest.err >&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } &&
16297 { ac_try='test -z "$ac_c_werror_flag"
16298 || test ! -s conftest.err'
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; } &&
16304 { ac_try='test -s conftest$ac_exeext'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; }; then
16310 eval "$as_ac_var=yes"
16312 echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16315 eval "$as_ac_var=no"
16317 rm -f conftest.err conftest.$ac_objext \
16318 conftest$ac_exeext conftest.$ac_ext
16320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16322 if test `eval echo '${'$as_ac_var'}'` = yes; then
16323 cat >>confdefs.h <<_ACEOF
16324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16330 ol_cv_func_strerror_r=no
16331 if test "${ac_cv_func_strerror_r}" = yes ; then
16332 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16333 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16334 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16335 echo $ECHO_N "(cached) $ECHO_C" >&6
16338 cat >conftest.$ac_ext <<_ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16344 #include <string.h>
16346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16347 $EGREP "strerror_r" >/dev/null 2>&1; then
16348 ol_decl_strerror_r=yes
16350 ol_decl_strerror_r=no
16354 if test $ol_decl_strerror_r = yes ; then
16355 cat >conftest.$ac_ext <<_ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16361 #include <string.h>
16365 /* from autoconf 2.59 */
16367 char x = *strerror_r (0, buf, sizeof buf);
16368 char *p = strerror_r (0, buf, sizeof buf);
16374 rm -f conftest.$ac_objext
16375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16376 (eval $ac_compile) 2>conftest.er1
16378 grep -v '^ *+' conftest.er1 >conftest.err
16380 cat conftest.err >&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } &&
16383 { ac_try='test -z "$ac_c_werror_flag"
16384 || test ! -s conftest.err'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; } &&
16390 { ac_try='test -s conftest.$ac_objext'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; }; then
16396 ol_cv_nonposix_strerror_r=yes
16398 echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401 ol_cv_nonposix_strerror_r=no
16403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16405 if test "$cross_compiling" = yes; then
16406 ol_cv_nonposix_strerror=no
16408 cat >conftest.$ac_ext <<_ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h. */
16418 strerror_r( 1, buf, sizeof buf );
16419 exit( buf[0] == 0 );
16423 rm -f conftest$ac_exeext
16424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16425 (eval $ac_link) 2>&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 ol_cv_nonposix_strerror_r=yes
16436 echo "$as_me: program exited with status $ac_status" >&5
16437 echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 ( exit $ac_status )
16441 ol_cv_nonposix_strerror=no
16443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16448 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16449 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16450 if test $ol_cv_nonposix_strerror_r = yes ; then
16452 cat >>confdefs.h <<\_ACEOF
16453 #define HAVE_NONPOSIX_STRERROR_R 1
16458 elif test "${ac_cv_func_strerror}" = no ; then
16459 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16460 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16461 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 cat >conftest.$ac_ext <<_ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16473 #include <sys/types.h>
16476 #include <stdlib.h>
16481 char *c = (char *) *sys_errlist
16486 rm -f conftest.$ac_objext
16487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16488 (eval $ac_compile) 2>conftest.er1
16490 grep -v '^ *+' conftest.er1 >conftest.err
16492 cat conftest.err >&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
16495 { ac_try='test -z "$ac_c_werror_flag"
16496 || test ! -s conftest.err'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ol_cv_dcl_sys_errlist=yes
16509 ol_cv_have_sys_errlist=yes
16511 echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16514 ol_cv_dcl_sys_errlist=no
16516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16518 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16519 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16521 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16522 if test $ol_cv_dcl_sys_errlist = no ; then
16524 cat >>confdefs.h <<\_ACEOF
16525 #define DECL_SYS_ERRLIST 1
16529 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16530 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16531 if test "${ol_cv_have_sys_errlist+set}" = set; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16535 cat >conftest.$ac_ext <<_ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h. */
16545 char *c = (char *) *sys_errlist
16550 rm -f conftest.$ac_objext conftest$ac_exeext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16552 (eval $ac_link) 2>conftest.er1
16554 grep -v '^ *+' conftest.er1 >conftest.err
16556 cat conftest.err >&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
16559 { ac_try='test -z "$ac_c_werror_flag"
16560 || test ! -s conftest.err'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } &&
16566 { ac_try='test -s conftest$ac_exeext'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 ol_cv_have_sys_errlist=yes
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 ol_cv_have_sys_errlist=no
16579 rm -f conftest.err conftest.$ac_objext \
16580 conftest$ac_exeext conftest.$ac_ext
16582 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16583 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16585 if test $ol_cv_have_sys_errlist = yes ; then
16587 cat >>confdefs.h <<\_ACEOF
16588 #define HAVE_SYS_ERRLIST 1
16597 for ac_header in regex.h
16599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16601 echo "$as_me:$LINENO: checking for $ac_header" >&5
16602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16609 # Is the header compilable?
16610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16612 cat >conftest.$ac_ext <<_ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16618 $ac_includes_default
16619 #include <$ac_header>
16621 rm -f conftest.$ac_objext
16622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16623 (eval $ac_compile) 2>conftest.er1
16625 grep -v '^ *+' conftest.er1 >conftest.err
16627 cat conftest.err >&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); } &&
16630 { ac_try='test -z "$ac_c_werror_flag"
16631 || test ! -s conftest.err'
16632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633 (eval $ac_try) 2>&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }; } &&
16637 { ac_try='test -s conftest.$ac_objext'
16638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; }; then
16643 ac_header_compiler=yes
16645 echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16648 ac_header_compiler=no
16650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16652 echo "${ECHO_T}$ac_header_compiler" >&6
16654 # Is the header present?
16655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16657 cat >conftest.$ac_ext <<_ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16663 #include <$ac_header>
16665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16668 grep -v '^ *+' conftest.er1 >conftest.err
16670 cat conftest.err >&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } >/dev/null; then
16673 if test -s conftest.err; then
16674 ac_cpp_err=$ac_c_preproc_warn_flag
16675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16682 if test -z "$ac_cpp_err"; then
16683 ac_header_preproc=yes
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 ac_header_preproc=no
16690 rm -f conftest.err conftest.$ac_ext
16691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16692 echo "${ECHO_T}$ac_header_preproc" >&6
16694 # So? What about this header?
16695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16701 ac_header_preproc=yes
16704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16718 ## --------------------------------------------- ##
16719 ## Report this to <http://www.openldap.org/its/> ##
16720 ## --------------------------------------------- ##
16723 sed "s/^/$as_me: WARNING: /" >&2
16726 echo "$as_me:$LINENO: checking for $ac_header" >&5
16727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 eval "$as_ac_Header=\$ac_header_preproc"
16733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16738 cat >>confdefs.h <<_ACEOF
16739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16746 if test "$ac_cv_header_regex_h" != yes ; then
16747 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16748 echo "$as_me: error: POSIX regex.h required." >&2;}
16749 { (exit 1); exit 1; }; }
16751 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16752 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16753 if test "${ac_cv_search_regfree+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 ac_func_search_save_LIBS=$LIBS
16757 ac_cv_search_regfree=no
16758 cat >conftest.$ac_ext <<_ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16765 /* Override any gcc2 internal prototype to avoid an error. */
16769 /* We use char because int might match the return type of a gcc2
16770 builtin and then its argument prototype would still apply. */
16780 rm -f conftest.$ac_objext conftest$ac_exeext
16781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16782 (eval $ac_link) 2>conftest.er1
16784 grep -v '^ *+' conftest.er1 >conftest.err
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } &&
16789 { ac_try='test -z "$ac_c_werror_flag"
16790 || test ! -s conftest.err'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; } &&
16796 { ac_try='test -s conftest$ac_exeext'
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; }; then
16802 ac_cv_search_regfree="none required"
16804 echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16808 rm -f conftest.err conftest.$ac_objext \
16809 conftest$ac_exeext conftest.$ac_ext
16810 if test "$ac_cv_search_regfree" = no; then
16811 for ac_lib in regex gnuregex; do
16812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16813 cat >conftest.$ac_ext <<_ACEOF
16816 cat confdefs.h >>conftest.$ac_ext
16817 cat >>conftest.$ac_ext <<_ACEOF
16818 /* end confdefs.h. */
16820 /* Override any gcc2 internal prototype to avoid an error. */
16824 /* We use char because int might match the return type of a gcc2
16825 builtin and then its argument prototype would still apply. */
16835 rm -f conftest.$ac_objext conftest$ac_exeext
16836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16837 (eval $ac_link) 2>conftest.er1
16839 grep -v '^ *+' conftest.er1 >conftest.err
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try='test -z "$ac_c_werror_flag"
16845 || test ! -s conftest.err'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest$ac_exeext'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 ac_cv_search_regfree="-l$ac_lib"
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16864 rm -f conftest.err conftest.$ac_objext \
16865 conftest$ac_exeext conftest.$ac_ext
16868 LIBS=$ac_func_search_save_LIBS
16870 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16871 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16872 if test "$ac_cv_search_regfree" != no; then
16873 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16876 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16877 echo "$as_me: error: POSIX regex required." >&2;}
16878 { (exit 1); exit 1; }; }
16883 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16884 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16885 if test "${ol_cv_c_posix_regex+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16889 if test "$cross_compiling" = yes; then
16890 ol_cv_c_posix_regex=cross
16892 cat >conftest.$ac_ext <<_ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16899 #include <sys/types.h>
16901 static char *pattern, *string;
16909 if(regcomp(&re, pattern, 0)) {
16913 string = "ALL MATCH";
16915 rc = regexec(&re, string, 0, (void*)0, 0);
16922 rm -f conftest$ac_exeext
16923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16924 (eval $ac_link) 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929 (eval $ac_try) 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; }; then
16933 ol_cv_c_posix_regex=yes
16935 echo "$as_me: program exited with status $ac_status" >&5
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16939 ( exit $ac_status )
16940 ol_cv_c_posix_regex=no
16942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16945 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16946 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16948 if test "$ol_cv_c_posix_regex" = no ; then
16949 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16950 echo "$as_me: error: broken POSIX regex!" >&2;}
16951 { (exit 1); exit 1; }; }
16957 for ac_header in sys/uuid.h
16959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961 echo "$as_me:$LINENO: checking for $ac_header" >&5
16962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16969 # Is the header compilable?
16970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16972 cat >conftest.$ac_ext <<_ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978 $ac_includes_default
16979 #include <$ac_header>
16981 rm -f conftest.$ac_objext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16983 (eval $ac_compile) 2>conftest.er1
16985 grep -v '^ *+' conftest.er1 >conftest.err
16987 cat conftest.err >&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -z "$ac_c_werror_flag"
16991 || test ! -s conftest.err'
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; } &&
16997 { ac_try='test -s conftest.$ac_objext'
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 ac_header_compiler=yes
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17008 ac_header_compiler=no
17010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17012 echo "${ECHO_T}$ac_header_compiler" >&6
17014 # Is the header present?
17015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17017 cat >conftest.$ac_ext <<_ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17023 #include <$ac_header>
17025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17028 grep -v '^ *+' conftest.er1 >conftest.err
17030 cat conftest.err >&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } >/dev/null; then
17033 if test -s conftest.err; then
17034 ac_cpp_err=$ac_c_preproc_warn_flag
17035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17042 if test -z "$ac_cpp_err"; then
17043 ac_header_preproc=yes
17045 echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17048 ac_header_preproc=no
17050 rm -f conftest.err conftest.$ac_ext
17051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17052 echo "${ECHO_T}$ac_header_preproc" >&6
17054 # So? What about this header?
17055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17061 ac_header_preproc=yes
17064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17078 ## --------------------------------------------- ##
17079 ## Report this to <http://www.openldap.org/its/> ##
17080 ## --------------------------------------------- ##
17083 sed "s/^/$as_me: WARNING: /" >&2
17086 echo "$as_me:$LINENO: checking for $ac_header" >&5
17087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17091 eval "$as_ac_Header=\$ac_header_preproc"
17093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17098 cat >>confdefs.h <<_ACEOF
17099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17106 if test $ac_cv_header_sys_uuid_h = yes ; then
17108 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17109 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17110 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 ac_func_search_save_LIBS=$LIBS
17114 ac_cv_search_uuid_to_str=no
17115 cat >conftest.$ac_ext <<_ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17122 /* Override any gcc2 internal prototype to avoid an error. */
17126 /* We use char because int might match the return type of a gcc2
17127 builtin and then its argument prototype would still apply. */
17128 char uuid_to_str ();
17137 rm -f conftest.$ac_objext conftest$ac_exeext
17138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139 (eval $ac_link) 2>conftest.er1
17141 grep -v '^ *+' conftest.er1 >conftest.err
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } &&
17146 { ac_try='test -z "$ac_c_werror_flag"
17147 || test ! -s conftest.err'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; } &&
17153 { ac_try='test -s conftest$ac_exeext'
17154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; }; then
17159 ac_cv_search_uuid_to_str="none required"
17161 echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17165 rm -f conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17167 if test "$ac_cv_search_uuid_to_str" = no; then
17168 for ac_lib in uuid; do
17169 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17170 cat >conftest.$ac_ext <<_ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17177 /* Override any gcc2 internal prototype to avoid an error. */
17181 /* We use char because int might match the return type of a gcc2
17182 builtin and then its argument prototype would still apply. */
17183 char uuid_to_str ();
17192 rm -f conftest.$ac_objext conftest$ac_exeext
17193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17194 (eval $ac_link) 2>conftest.er1
17196 grep -v '^ *+' conftest.er1 >conftest.err
17198 cat conftest.err >&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); } &&
17201 { ac_try='test -z "$ac_c_werror_flag"
17202 || test ! -s conftest.err'
17203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; } &&
17208 { ac_try='test -s conftest$ac_exeext'
17209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17210 (eval $ac_try) 2>&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; }; then
17214 ac_cv_search_uuid_to_str="-l$ac_lib"
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17221 rm -f conftest.err conftest.$ac_objext \
17222 conftest$ac_exeext conftest.$ac_ext
17225 LIBS=$ac_func_search_save_LIBS
17227 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17228 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17229 if test "$ac_cv_search_uuid_to_str" != no; then
17230 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17238 if test have_uuid = yes ; then
17240 cat >>confdefs.h <<\_ACEOF
17241 #define HAVE_UUID_TO_STR 1
17245 test "$ac_cv_search_uuid_to_str" = "none required" || \
17246 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17250 if test $have_uuid = no ; then
17251 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17252 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17254 LIBS="$LIBS -lrpcrt4"
17255 cat >conftest.$ac_ext <<_ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17262 int __stdcall UuidCreate(void *);
17263 int __stdcall UuidToStringA(void *,void **);
17270 UuidToStringA(0,0);
17276 rm -f conftest.$ac_objext conftest$ac_exeext
17277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17278 (eval $ac_link) 2>conftest.er1
17280 grep -v '^ *+' conftest.er1 >conftest.err
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
17285 { ac_try='test -z "$ac_c_werror_flag"
17286 || test ! -s conftest.err'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; } &&
17292 { ac_try='test -s conftest$ac_exeext'
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; }; then
17300 echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17305 rm -f conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17307 if test $need_rpcrt = yes; then
17308 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17311 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17312 echo "${ECHO_T}$need_rpcrt" >&6
17315 ol_cv_lib_resolver=no
17316 if test $ol_cv_lib_resolver = no ; then
17317 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17318 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17319 if test "${ol_cv_resolver_none+set}" = set; then
17320 echo $ECHO_N "(cached) $ECHO_C" >&6
17325 LIBS="$ol_RESOLVER_LIB $LIBS"
17327 cat >conftest.$ac_ext <<_ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17334 #ifdef HAVE_SYS_TYPES_H
17335 # include <sys/types.h>
17337 #include <netinet/in.h>
17338 #ifdef HAVE_ARPA_NAMESER_H
17339 # include <arpa/nameser.h>
17341 #ifdef HAVE_RESOLV_H
17342 # include <resolv.h>
17350 char *request = NULL;
17351 unsigned char reply[64*1024];
17352 unsigned char host[64*1024];
17356 /* Bind 8/9 interface */
17357 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17359 /* Bind 4 interface */
17363 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17367 /* Bind 8/9 interface */
17369 #elif defined(HFIXEDSZ)
17370 /* Bind 4 interface w/ HFIXEDSZ */
17373 /* Bind 4 interface w/o HFIXEDSZ */
17374 p += sizeof(HEADER);
17376 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17382 rm -f conftest.$ac_objext conftest$ac_exeext
17383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17384 (eval $ac_link) 2>conftest.er1
17386 grep -v '^ *+' conftest.er1 >conftest.err
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } &&
17391 { ac_try='test -z "$ac_c_werror_flag"
17392 || test ! -s conftest.err'
17393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; } &&
17398 { ac_try='test -s conftest$ac_exeext'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ol_cv_resolver_none=yes
17406 echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17409 ol_cv_resolver_none=no
17411 rm -f conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17417 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17418 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17420 if test $ol_cv_resolver_none = yes ; then
17421 ol_cv_lib_resolver=yes
17425 if test $ol_cv_lib_resolver = no ; then
17426 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17427 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17428 if test "${ol_cv_resolver_resolv+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17432 ol_RESOLVER_LIB=-lresolv
17434 LIBS="$ol_RESOLVER_LIB $LIBS"
17436 cat >conftest.$ac_ext <<_ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17443 #ifdef HAVE_SYS_TYPES_H
17444 # include <sys/types.h>
17446 #include <netinet/in.h>
17447 #ifdef HAVE_ARPA_NAMESER_H
17448 # include <arpa/nameser.h>
17450 #ifdef HAVE_RESOLV_H
17451 # include <resolv.h>
17459 char *request = NULL;
17460 unsigned char reply[64*1024];
17461 unsigned char host[64*1024];
17465 /* Bind 8/9 interface */
17466 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17468 /* Bind 4 interface */
17472 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17476 /* Bind 8/9 interface */
17478 #elif defined(HFIXEDSZ)
17479 /* Bind 4 interface w/ HFIXEDSZ */
17482 /* Bind 4 interface w/o HFIXEDSZ */
17483 p += sizeof(HEADER);
17485 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17491 rm -f conftest.$ac_objext conftest$ac_exeext
17492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17493 (eval $ac_link) 2>conftest.er1
17495 grep -v '^ *+' conftest.er1 >conftest.err
17497 cat conftest.err >&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
17500 { ac_try='test -z "$ac_c_werror_flag"
17501 || test ! -s conftest.err'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest$ac_exeext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 ol_cv_resolver_resolv=yes
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 ol_cv_resolver_resolv=no
17520 rm -f conftest.err conftest.$ac_objext \
17521 conftest$ac_exeext conftest.$ac_ext
17526 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17527 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17529 if test $ol_cv_resolver_resolv = yes ; then
17530 ol_cv_lib_resolver=-lresolv
17534 if test $ol_cv_lib_resolver = no ; then
17535 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17536 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17537 if test "${ol_cv_resolver_bind+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 ol_RESOLVER_LIB=-lbind
17543 LIBS="$ol_RESOLVER_LIB $LIBS"
17545 cat >conftest.$ac_ext <<_ACEOF
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h. */
17552 #ifdef HAVE_SYS_TYPES_H
17553 # include <sys/types.h>
17555 #include <netinet/in.h>
17556 #ifdef HAVE_ARPA_NAMESER_H
17557 # include <arpa/nameser.h>
17559 #ifdef HAVE_RESOLV_H
17560 # include <resolv.h>
17568 char *request = NULL;
17569 unsigned char reply[64*1024];
17570 unsigned char host[64*1024];
17574 /* Bind 8/9 interface */
17575 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17577 /* Bind 4 interface */
17581 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17585 /* Bind 8/9 interface */
17587 #elif defined(HFIXEDSZ)
17588 /* Bind 4 interface w/ HFIXEDSZ */
17591 /* Bind 4 interface w/o HFIXEDSZ */
17592 p += sizeof(HEADER);
17594 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17602 (eval $ac_link) 2>conftest.er1
17604 grep -v '^ *+' conftest.er1 >conftest.err
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
17609 { ac_try='test -z "$ac_c_werror_flag"
17610 || test ! -s conftest.err'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest$ac_exeext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ol_cv_resolver_bind=yes
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 ol_cv_resolver_bind=no
17629 rm -f conftest.err conftest.$ac_objext \
17630 conftest$ac_exeext conftest.$ac_ext
17635 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17636 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17638 if test $ol_cv_resolver_bind = yes ; then
17639 ol_cv_lib_resolver=-lbind
17646 if test "$ol_cv_lib_resolver" != no ; then
17648 cat >>confdefs.h <<\_ACEOF
17649 #define HAVE_RES_QUERY 1
17653 if test "$ol_enable_dnssrv" != no ; then
17657 if test "$ol_cv_lib_resolver" != yes ; then
17658 LIBS="$ol_cv_lib_resolver $LIBS"
17662 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17663 if test "$ol_link_dnssrv" = no ; then
17664 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17665 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17666 { (exit 1); exit 1; }; }
17669 ol_enable_dnssrv=no
17673 for ac_func in hstrerror
17675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17676 echo "$as_me:$LINENO: checking for $ac_func" >&5
17677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17678 if eval "test \"\${$as_ac_var+set}\" = set"; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 cat >conftest.$ac_ext <<_ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17689 #define $ac_func innocuous_$ac_func
17691 /* System header to define __stub macros and hopefully few prototypes,
17692 which can conflict with char $ac_func (); below.
17693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17694 <limits.h> exists even on freestanding compilers. */
17697 # include <limits.h>
17699 # include <assert.h>
17704 /* Override any gcc2 internal prototype to avoid an error. */
17709 /* We use char because int might match the return type of a gcc2
17710 builtin and then its argument prototype would still apply. */
17712 /* The GNU C library defines this for functions which it implements
17713 to always fail with ENOSYS. Some functions are actually named
17714 something starting with __ and the normal name is an alias. */
17715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17718 char (*f) () = $ac_func;
17727 return f != $ac_func;
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17734 (eval $ac_link) 2>conftest.er1
17736 grep -v '^ *+' conftest.er1 >conftest.err
17738 cat conftest.err >&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try='test -z "$ac_c_werror_flag"
17742 || test ! -s conftest.err'
17743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest$ac_exeext'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 eval "$as_ac_var=yes"
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17759 eval "$as_ac_var=no"
17761 rm -f conftest.err conftest.$ac_objext \
17762 conftest$ac_exeext conftest.$ac_ext
17764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17766 if test `eval echo '${'$as_ac_var'}'` = yes; then
17767 cat >>confdefs.h <<_ACEOF
17768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17779 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17782 echo "$as_me:$LINENO: checking for $ac_func" >&5
17783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17784 if eval "test \"\${$as_ac_var+set}\" = set"; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17787 cat >conftest.$ac_ext <<_ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17795 #define $ac_func innocuous_$ac_func
17797 /* System header to define __stub macros and hopefully few prototypes,
17798 which can conflict with char $ac_func (); below.
17799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17800 <limits.h> exists even on freestanding compilers. */
17803 # include <limits.h>
17805 # include <assert.h>
17810 /* Override any gcc2 internal prototype to avoid an error. */
17815 /* We use char because int might match the return type of a gcc2
17816 builtin and then its argument prototype would still apply. */
17818 /* The GNU C library defines this for functions which it implements
17819 to always fail with ENOSYS. Some functions are actually named
17820 something starting with __ and the normal name is an alias. */
17821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17824 char (*f) () = $ac_func;
17833 return f != $ac_func;
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17840 (eval $ac_link) 2>conftest.er1
17842 grep -v '^ *+' conftest.er1 >conftest.err
17844 cat conftest.err >&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
17847 { ac_try='test -z "$ac_c_werror_flag"
17848 || test ! -s conftest.err'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest$ac_exeext'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 eval "$as_ac_var=yes"
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 eval "$as_ac_var=no"
17867 rm -f conftest.err conftest.$ac_objext \
17868 conftest$ac_exeext conftest.$ac_ext
17870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17872 if test `eval echo '${'$as_ac_var'}'` = yes; then
17873 cat >>confdefs.h <<_ACEOF
17874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17882 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17883 if test $ol_enable_ipv6 = yes ; then
17884 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17885 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17886 { (exit 1); exit 1; }; }
17888 elif test $ol_enable_ipv6 != no ; then
17889 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17890 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17891 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17895 cat >conftest.$ac_ext <<_ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17902 # include <netinet/in.h>
17903 # ifdef INET6_ADDRSTRLEN
17904 __has_inet6_addrstrlen__;
17908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17909 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17910 ol_cv_inet6_addrstrlen=yes
17912 ol_cv_inet6_addrstrlen=no
17917 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17918 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17921 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17922 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17923 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 cat >conftest.$ac_ext <<_ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17934 #include <sys/types.h>
17935 #include <sys/socket.h>
17941 struct sockaddr_storage ss;
17947 rm -f conftest.$ac_objext
17948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17949 (eval $ac_compile) 2>conftest.er1
17951 grep -v '^ *+' conftest.er1 >conftest.err
17953 cat conftest.err >&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } &&
17956 { ac_try='test -z "$ac_c_werror_flag"
17957 || test ! -s conftest.err'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; } &&
17963 { ac_try='test -s conftest.$ac_objext'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
17969 ol_cv_struct_sockaddr_storage=yes
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17974 ol_cv_struct_sockaddr_storage=no
17976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17978 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17979 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17981 if test $ol_cv_inet6_addrstrlen = yes &&
17982 test $ol_cv_struct_sockaddr_storage = yes ; then
17984 elif test $ol_enable_ipv6 = yes &&
17985 test $ol_cv_inet6_addrstrlen = no ; then
17986 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17987 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17988 { (exit 1); exit 1; }; }
17989 elif test $ol_enable_ipv6 = yes &&
17990 test $ol_cv_struct_sockaddr_storage = no ; then
17991 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17992 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17993 { (exit 1); exit 1; }; }
17997 if test $ol_enable_local != no ; then
17999 for ac_header in sys/un.h
18001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18003 echo "$as_me:$LINENO: checking for $ac_header" >&5
18004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18006 echo $ECHO_N "(cached) $ECHO_C" >&6
18008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18011 # Is the header compilable?
18012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18014 cat >conftest.$ac_ext <<_ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h. */
18020 $ac_includes_default
18021 #include <$ac_header>
18023 rm -f conftest.$ac_objext
18024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18025 (eval $ac_compile) 2>conftest.er1
18027 grep -v '^ *+' conftest.er1 >conftest.err
18029 cat conftest.err >&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } &&
18032 { ac_try='test -z "$ac_c_werror_flag"
18033 || test ! -s conftest.err'
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; } &&
18039 { ac_try='test -s conftest.$ac_objext'
18040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041 (eval $ac_try) 2>&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; }; then
18045 ac_header_compiler=yes
18047 echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18050 ac_header_compiler=no
18052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18054 echo "${ECHO_T}$ac_header_compiler" >&6
18056 # Is the header present?
18057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18059 cat >conftest.$ac_ext <<_ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h. */
18065 #include <$ac_header>
18067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18070 grep -v '^ *+' conftest.er1 >conftest.err
18072 cat conftest.err >&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } >/dev/null; then
18075 if test -s conftest.err; then
18076 ac_cpp_err=$ac_c_preproc_warn_flag
18077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18084 if test -z "$ac_cpp_err"; then
18085 ac_header_preproc=yes
18087 echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 ac_header_preproc=no
18092 rm -f conftest.err conftest.$ac_ext
18093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18094 echo "${ECHO_T}$ac_header_preproc" >&6
18096 # So? What about this header?
18097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18103 ac_header_preproc=yes
18106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18120 ## --------------------------------------------- ##
18121 ## Report this to <http://www.openldap.org/its/> ##
18122 ## --------------------------------------------- ##
18125 sed "s/^/$as_me: WARNING: /" >&2
18128 echo "$as_me:$LINENO: checking for $ac_header" >&5
18129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18133 eval "$as_ac_Header=\$ac_header_preproc"
18135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18140 cat >>confdefs.h <<_ACEOF
18141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18149 if test $ol_enable_local = auto ; then
18150 ol_enable_local=$ac_cv_header_sys_un_h
18151 elif test $ac_cv_header_sys_un_h = no ; then
18152 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18153 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18154 { (exit 1); exit 1; }; }
18162 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18165 for ac_header in krb5.h
18167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18169 echo "$as_me:$LINENO: checking for $ac_header" >&5
18170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18177 # Is the header compilable?
18178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18180 cat >conftest.$ac_ext <<_ACEOF
18183 cat confdefs.h >>conftest.$ac_ext
18184 cat >>conftest.$ac_ext <<_ACEOF
18185 /* end confdefs.h. */
18186 $ac_includes_default
18187 #include <$ac_header>
18189 rm -f conftest.$ac_objext
18190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18191 (eval $ac_compile) 2>conftest.er1
18193 grep -v '^ *+' conftest.er1 >conftest.err
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_c_werror_flag"
18199 || test ! -s conftest.err'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; } &&
18205 { ac_try='test -s conftest.$ac_objext'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18211 ac_header_compiler=yes
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18216 ac_header_compiler=no
18218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18220 echo "${ECHO_T}$ac_header_compiler" >&6
18222 # Is the header present?
18223 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18225 cat >conftest.$ac_ext <<_ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 #include <$ac_header>
18233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18236 grep -v '^ *+' conftest.er1 >conftest.err
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } >/dev/null; then
18241 if test -s conftest.err; then
18242 ac_cpp_err=$ac_c_preproc_warn_flag
18243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18250 if test -z "$ac_cpp_err"; then
18251 ac_header_preproc=yes
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 ac_header_preproc=no
18258 rm -f conftest.err conftest.$ac_ext
18259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18260 echo "${ECHO_T}$ac_header_preproc" >&6
18262 # So? What about this header?
18263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18269 ac_header_preproc=yes
18272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18279 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18286 ## --------------------------------------------- ##
18287 ## Report this to <http://www.openldap.org/its/> ##
18288 ## --------------------------------------------- ##
18291 sed "s/^/$as_me: WARNING: /" >&2
18294 echo "$as_me:$LINENO: checking for $ac_header" >&5
18295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18299 eval "$as_ac_Header=\$ac_header_preproc"
18301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18306 cat >>confdefs.h <<_ACEOF
18307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18315 if test $ac_cv_header_krb5_h = yes ; then
18317 for ac_header in heim_err.h
18319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18321 echo "$as_me:$LINENO: checking for $ac_header" >&5
18322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18324 echo $ECHO_N "(cached) $ECHO_C" >&6
18326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18329 # Is the header compilable?
18330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18332 cat >conftest.$ac_ext <<_ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18338 $ac_includes_default
18339 #include <$ac_header>
18341 rm -f conftest.$ac_objext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343 (eval $ac_compile) 2>conftest.er1
18345 grep -v '^ *+' conftest.er1 >conftest.err
18347 cat conftest.err >&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); } &&
18350 { ac_try='test -z "$ac_c_werror_flag"
18351 || test ! -s conftest.err'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest.$ac_objext'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 ac_header_compiler=yes
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 ac_header_compiler=no
18370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18372 echo "${ECHO_T}$ac_header_compiler" >&6
18374 # Is the header present?
18375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18377 cat >conftest.$ac_ext <<_ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 #include <$ac_header>
18385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18388 grep -v '^ *+' conftest.er1 >conftest.err
18390 cat conftest.err >&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } >/dev/null; then
18393 if test -s conftest.err; then
18394 ac_cpp_err=$ac_c_preproc_warn_flag
18395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18402 if test -z "$ac_cpp_err"; then
18403 ac_header_preproc=yes
18405 echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18408 ac_header_preproc=no
18410 rm -f conftest.err conftest.$ac_ext
18411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18412 echo "${ECHO_T}$ac_header_preproc" >&6
18414 # So? What about this header?
18415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18421 ac_header_preproc=yes
18424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18438 ## --------------------------------------------- ##
18439 ## Report this to <http://www.openldap.org/its/> ##
18440 ## --------------------------------------------- ##
18443 sed "s/^/$as_me: WARNING: /" >&2
18446 echo "$as_me:$LINENO: checking for $ac_header" >&5
18447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 eval "$as_ac_Header=\$ac_header_preproc"
18453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18458 cat >>confdefs.h <<_ACEOF
18459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18466 if test $ac_cv_header_heim_err_h = yes ; then
18472 if test $krb5_impl = mit; then
18473 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18474 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18475 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18478 ac_check_lib_save_LIBS=$LIBS
18479 LIBS="-lk5crypto $LIBS"
18480 cat >conftest.$ac_ext <<_ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18496 rm -f conftest.$ac_objext conftest$ac_exeext
18497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18498 (eval $ac_link) 2>conftest.er1
18500 grep -v '^ *+' conftest.er1 >conftest.err
18502 cat conftest.err >&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } &&
18505 { ac_try='test -z "$ac_c_werror_flag"
18506 || test ! -s conftest.err'
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; } &&
18512 { ac_try='test -s conftest$ac_exeext'
18513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514 (eval $ac_try) 2>&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; }; then
18518 ac_cv_lib_k5crypto_main=yes
18520 echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18523 ac_cv_lib_k5crypto_main=no
18525 rm -f conftest.err conftest.$ac_objext \
18526 conftest$ac_exeext conftest.$ac_ext
18527 LIBS=$ac_check_lib_save_LIBS
18529 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18530 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18531 if test $ac_cv_lib_k5crypto_main = yes; then
18532 krb5crypto=k5crypto
18538 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18539 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18540 if test "${ac_cv_lib_krb5_main+set}" = set; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18543 ac_check_lib_save_LIBS=$LIBS
18544 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18545 cat >conftest.$ac_ext <<_ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18561 rm -f conftest.$ac_objext conftest$ac_exeext
18562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18563 (eval $ac_link) 2>conftest.er1
18565 grep -v '^ *+' conftest.er1 >conftest.err
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } &&
18570 { ac_try='test -z "$ac_c_werror_flag"
18571 || test ! -s conftest.err'
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest$ac_exeext'
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 ac_cv_lib_krb5_main=yes
18585 echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18588 ac_cv_lib_krb5_main=no
18590 rm -f conftest.err conftest.$ac_objext \
18591 conftest$ac_exeext conftest.$ac_ext
18592 LIBS=$ac_check_lib_save_LIBS
18594 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18595 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18596 if test $ac_cv_lib_krb5_main = yes; then
18598 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18604 elif test $krb5_impl = heimdal; then
18605 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18606 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18607 if test "${ac_cv_lib_des_main+set}" = set; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18610 ac_check_lib_save_LIBS=$LIBS
18612 cat >conftest.$ac_ext <<_ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h. */
18628 rm -f conftest.$ac_objext conftest$ac_exeext
18629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18630 (eval $ac_link) 2>conftest.er1
18632 grep -v '^ *+' conftest.er1 >conftest.err
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
18637 { ac_try='test -z "$ac_c_werror_flag"
18638 || test ! -s conftest.err'
18639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640 (eval $ac_try) 2>&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; } &&
18644 { ac_try='test -s conftest$ac_exeext'
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_cv_lib_des_main=yes
18652 echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18655 ac_cv_lib_des_main=no
18657 rm -f conftest.err conftest.$ac_objext \
18658 conftest$ac_exeext conftest.$ac_ext
18659 LIBS=$ac_check_lib_save_LIBS
18661 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18662 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18663 if test $ac_cv_lib_des_main = yes; then
18670 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18671 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18672 if test "${ac_cv_lib_krb5_main+set}" = set; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18675 ac_check_lib_save_LIBS=$LIBS
18676 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18677 cat >conftest.$ac_ext <<_ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18695 (eval $ac_link) 2>conftest.er1
18697 grep -v '^ *+' conftest.er1 >conftest.err
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } &&
18702 { ac_try='test -z "$ac_c_werror_flag"
18703 || test ! -s conftest.err'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; } &&
18709 { ac_try='test -s conftest$ac_exeext'
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; }; then
18715 ac_cv_lib_krb5_main=yes
18717 echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18720 ac_cv_lib_krb5_main=no
18722 rm -f conftest.err conftest.$ac_objext \
18723 conftest$ac_exeext conftest.$ac_ext
18724 LIBS=$ac_check_lib_save_LIBS
18726 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18727 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18728 if test $ac_cv_lib_krb5_main = yes; then
18730 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18737 cat >>confdefs.h <<\_ACEOF
18738 #define HAVE_HEIMDAL_KERBEROS 1
18744 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18745 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18748 if test $have_krb5 = yes ; then
18752 cat >>confdefs.h <<\_ACEOF
18753 #define HAVE_KRB5 1
18757 if test $ol_with_kerberos = k5only ; then
18758 ol_with_kerberos=found
18761 elif test $ol_with_kerberos != auto ; then
18762 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18763 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18764 { (exit 1); exit 1; }; }
18771 if test $ol_link_krb5 = yes &&
18772 { test $ol_with_kerberos = yes ||
18773 test $ol_with_kerberos = auto ||
18774 test $ol_with_kerberos = k425; }; then
18778 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18782 echo "$as_me:$LINENO: checking for $ac_header" >&5
18783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18790 # Is the header compilable?
18791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18793 cat >conftest.$ac_ext <<_ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 $ac_includes_default
18800 #include <$ac_header>
18802 rm -f conftest.$ac_objext
18803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18804 (eval $ac_compile) 2>conftest.er1
18806 grep -v '^ *+' conftest.er1 >conftest.err
18808 cat conftest.err >&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } &&
18811 { ac_try='test -z "$ac_c_werror_flag"
18812 || test ! -s conftest.err'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; } &&
18818 { ac_try='test -s conftest.$ac_objext'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; }; then
18824 ac_header_compiler=yes
18826 echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18829 ac_header_compiler=no
18831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18833 echo "${ECHO_T}$ac_header_compiler" >&6
18835 # Is the header present?
18836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18838 cat >conftest.$ac_ext <<_ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h. */
18844 #include <$ac_header>
18846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18849 grep -v '^ *+' conftest.er1 >conftest.err
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } >/dev/null; then
18854 if test -s conftest.err; then
18855 ac_cpp_err=$ac_c_preproc_warn_flag
18856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18863 if test -z "$ac_cpp_err"; then
18864 ac_header_preproc=yes
18866 echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18869 ac_header_preproc=no
18871 rm -f conftest.err conftest.$ac_ext
18872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18873 echo "${ECHO_T}$ac_header_preproc" >&6
18875 # So? What about this header?
18876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18882 ac_header_preproc=yes
18885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18899 ## --------------------------------------------- ##
18900 ## Report this to <http://www.openldap.org/its/> ##
18901 ## --------------------------------------------- ##
18904 sed "s/^/$as_me: WARNING: /" >&2
18907 echo "$as_me:$LINENO: checking for $ac_header" >&5
18908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18910 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 eval "$as_ac_Header=\$ac_header_preproc"
18914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18919 cat >>confdefs.h <<_ACEOF
18920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18928 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18929 if test $krb5_impl = mit; then
18930 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18931 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18932 if test "${ac_cv_lib_krb4_main+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 ac_check_lib_save_LIBS=$LIBS
18936 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18937 cat >conftest.$ac_ext <<_ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18953 rm -f conftest.$ac_objext conftest$ac_exeext
18954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18955 (eval $ac_link) 2>conftest.er1
18957 grep -v '^ *+' conftest.er1 >conftest.err
18959 cat conftest.err >&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); } &&
18962 { ac_try='test -z "$ac_c_werror_flag"
18963 || test ! -s conftest.err'
18964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; } &&
18969 { ac_try='test -s conftest$ac_exeext'
18970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971 (eval $ac_try) 2>&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
18975 ac_cv_lib_krb4_main=yes
18977 echo "$as_me: failed program was:" >&5
18978 sed 's/^/| /' conftest.$ac_ext >&5
18980 ac_cv_lib_krb4_main=no
18982 rm -f conftest.err conftest.$ac_objext \
18983 conftest$ac_exeext conftest.$ac_ext
18984 LIBS=$ac_check_lib_save_LIBS
18986 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18987 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18988 if test $ac_cv_lib_krb4_main = yes; then
18990 KRB4_LIBS="-lkrb4 -ldes425"
18996 elif test $krb5_impl = heimdal; then
18997 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18998 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18999 if test "${ac_cv_lib_krb4_main+set}" = set; then
19000 echo $ECHO_N "(cached) $ECHO_C" >&6
19002 ac_check_lib_save_LIBS=$LIBS
19003 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
19004 cat >conftest.$ac_ext <<_ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h. */
19020 rm -f conftest.$ac_objext conftest$ac_exeext
19021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19022 (eval $ac_link) 2>conftest.er1
19024 grep -v '^ *+' conftest.er1 >conftest.err
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
19029 { ac_try='test -z "$ac_c_werror_flag"
19030 || test ! -s conftest.err'
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; } &&
19036 { ac_try='test -s conftest$ac_exeext'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 ac_cv_lib_krb4_main=yes
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_cv_lib_krb4_main=no
19049 rm -f conftest.err conftest.$ac_objext \
19050 conftest$ac_exeext conftest.$ac_ext
19051 LIBS=$ac_check_lib_save_LIBS
19053 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
19054 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
19055 if test $ac_cv_lib_krb4_main = yes; then
19065 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
19066 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
19069 if test $have_k425 = yes ; then
19070 ol_with_kerberos=found
19074 cat >>confdefs.h <<\_ACEOF
19075 #define HAVE_KRB425 1
19079 cat >>confdefs.h <<\_ACEOF
19080 #define HAVE_KRB4 1
19084 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
19085 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
19086 if test "${ol_cv_var_des_debug+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19091 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
19092 cat >conftest.$ac_ext <<_ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h. */
19099 #include <kerberosIV/krb.h>
19100 #include <kerberosIV/des.h>
19101 extern int des_debug;
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19115 (eval $ac_link) 2>conftest.er1
19117 grep -v '^ *+' conftest.er1 >conftest.err
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
19122 { ac_try='test -z "$ac_c_werror_flag"
19123 || test ! -s conftest.err'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; } &&
19129 { ac_try='test -s conftest$ac_exeext'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; }; then
19135 ol_cv_var_des_debug=yes
19137 echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19140 ol_cv_var_des_debug=no
19142 rm -f conftest.err conftest.$ac_objext \
19143 conftest$ac_exeext conftest.$ac_ext
19147 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19148 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19150 if test $ol_cv_var_des_debug = yes ; then
19152 cat >>confdefs.h <<\_ACEOF
19153 #define HAVE_DES_DEBUG 1
19163 if test $ol_link_krb5 = yes ; then
19164 ol_with_kerberos=found
19167 case $ol_with_kerberos in yes | auto | k4 | kth)
19172 for ac_header in krb.h des.h krb-archaeology.h
19174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19176 echo "$as_me:$LINENO: checking for $ac_header" >&5
19177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19179 echo $ECHO_N "(cached) $ECHO_C" >&6
19181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19184 # Is the header compilable?
19185 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19187 cat >conftest.$ac_ext <<_ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19193 $ac_includes_default
19194 #include <$ac_header>
19196 rm -f conftest.$ac_objext
19197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19198 (eval $ac_compile) 2>conftest.er1
19200 grep -v '^ *+' conftest.er1 >conftest.err
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
19205 { ac_try='test -z "$ac_c_werror_flag"
19206 || test ! -s conftest.err'
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; } &&
19212 { ac_try='test -s conftest.$ac_objext'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; }; then
19218 ac_header_compiler=yes
19220 echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19223 ac_header_compiler=no
19225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19227 echo "${ECHO_T}$ac_header_compiler" >&6
19229 # Is the header present?
19230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19232 cat >conftest.$ac_ext <<_ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 #include <$ac_header>
19240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19243 grep -v '^ *+' conftest.er1 >conftest.err
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } >/dev/null; then
19248 if test -s conftest.err; then
19249 ac_cpp_err=$ac_c_preproc_warn_flag
19250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19257 if test -z "$ac_cpp_err"; then
19258 ac_header_preproc=yes
19260 echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19263 ac_header_preproc=no
19265 rm -f conftest.err conftest.$ac_ext
19266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19267 echo "${ECHO_T}$ac_header_preproc" >&6
19269 # So? What about this header?
19270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19276 ac_header_preproc=yes
19279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19293 ## --------------------------------------------- ##
19294 ## Report this to <http://www.openldap.org/its/> ##
19295 ## --------------------------------------------- ##
19298 sed "s/^/$as_me: WARNING: /" >&2
19301 echo "$as_me:$LINENO: checking for $ac_header" >&5
19302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19306 eval "$as_ac_Header=\$ac_header_preproc"
19308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19313 cat >>confdefs.h <<_ACEOF
19314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19322 if test $ac_cv_header_krb_h = yes ; then
19323 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19324 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19325 if test "${ac_cv_lib_krb_main+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 ac_check_lib_save_LIBS=$LIBS
19329 LIBS="-lkrb -ldes $LIBS"
19330 cat >conftest.$ac_ext <<_ACEOF
19333 cat confdefs.h >>conftest.$ac_ext
19334 cat >>conftest.$ac_ext <<_ACEOF
19335 /* end confdefs.h. */
19346 rm -f conftest.$ac_objext conftest$ac_exeext
19347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19348 (eval $ac_link) 2>conftest.er1
19350 grep -v '^ *+' conftest.er1 >conftest.err
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_c_werror_flag"
19356 || test ! -s conftest.err'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest$ac_exeext'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19368 ac_cv_lib_krb_main=yes
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19373 ac_cv_lib_krb_main=no
19375 rm -f conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19379 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19380 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19381 if test $ac_cv_lib_krb_main = yes; then
19388 if test $have_k4 = yes ; then
19389 ol_with_kerberos=found
19393 cat >>confdefs.h <<\_ACEOF
19394 #define HAVE_KRB4 1
19398 KRB4_LIBS="-lkrb -ldes"
19400 if test $ac_cv_header_krb_archaeology_h = yes ; then
19402 cat >>confdefs.h <<\_ACEOF
19403 #define HAVE_KTH_KERBEROS 1
19412 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19415 elif test $ol_enable_kbind = yes ; then
19416 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19417 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19418 { (exit 1); exit 1; }; }
19421 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19423 cat >>confdefs.h <<\_ACEOF
19424 #define HAVE_KERBEROS 1
19428 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19429 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19430 echo "$as_me: error: Kerberos detection failed" >&2;}
19431 { (exit 1); exit 1; }; }
19436 if test $ol_with_tls != no ; then
19438 for ac_header in openssl/ssl.h
19440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19442 echo "$as_me:$LINENO: checking for $ac_header" >&5
19443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19450 # Is the header compilable?
19451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19453 cat >conftest.$ac_ext <<_ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19459 $ac_includes_default
19460 #include <$ac_header>
19462 rm -f conftest.$ac_objext
19463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19464 (eval $ac_compile) 2>conftest.er1
19466 grep -v '^ *+' conftest.er1 >conftest.err
19468 cat conftest.err >&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } &&
19471 { ac_try='test -z "$ac_c_werror_flag"
19472 || test ! -s conftest.err'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; } &&
19478 { ac_try='test -s conftest.$ac_objext'
19479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480 (eval $ac_try) 2>&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
19484 ac_header_compiler=yes
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19489 ac_header_compiler=no
19491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19493 echo "${ECHO_T}$ac_header_compiler" >&6
19495 # Is the header present?
19496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19498 cat >conftest.$ac_ext <<_ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h. */
19504 #include <$ac_header>
19506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19509 grep -v '^ *+' conftest.er1 >conftest.err
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } >/dev/null; then
19514 if test -s conftest.err; then
19515 ac_cpp_err=$ac_c_preproc_warn_flag
19516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19523 if test -z "$ac_cpp_err"; then
19524 ac_header_preproc=yes
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19529 ac_header_preproc=no
19531 rm -f conftest.err conftest.$ac_ext
19532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19533 echo "${ECHO_T}$ac_header_preproc" >&6
19535 # So? What about this header?
19536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19542 ac_header_preproc=yes
19545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19559 ## --------------------------------------------- ##
19560 ## Report this to <http://www.openldap.org/its/> ##
19561 ## --------------------------------------------- ##
19564 sed "s/^/$as_me: WARNING: /" >&2
19567 echo "$as_me:$LINENO: checking for $ac_header" >&5
19568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19570 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 eval "$as_ac_Header=\$ac_header_preproc"
19574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19579 cat >>confdefs.h <<_ACEOF
19580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19588 if test $ac_cv_header_openssl_ssl_h = yes ; then
19589 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19590 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19591 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 ac_check_lib_save_LIBS=$LIBS
19595 LIBS="-lssl -lcrypto $LIBS"
19596 cat >conftest.$ac_ext <<_ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19603 /* Override any gcc2 internal prototype to avoid an error. */
19607 /* We use char because int might match the return type of a gcc2
19608 builtin and then its argument prototype would still apply. */
19609 char SSL_library_init ();
19613 SSL_library_init ();
19618 rm -f conftest.$ac_objext conftest$ac_exeext
19619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19620 (eval $ac_link) 2>conftest.er1
19622 grep -v '^ *+' conftest.er1 >conftest.err
19624 cat conftest.err >&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } &&
19627 { ac_try='test -z "$ac_c_werror_flag"
19628 || test ! -s conftest.err'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try='test -s conftest$ac_exeext'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 ac_cv_lib_ssl_SSL_library_init=yes
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19645 ac_cv_lib_ssl_SSL_library_init=no
19647 rm -f conftest.err conftest.$ac_objext \
19648 conftest$ac_exeext conftest.$ac_ext
19649 LIBS=$ac_check_lib_save_LIBS
19651 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19652 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19653 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19661 if test $have_openssl = no ; then
19662 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19663 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19664 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19667 ac_check_lib_save_LIBS=$LIBS
19668 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19669 cat >conftest.$ac_ext <<_ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h. */
19676 /* Override any gcc2 internal prototype to avoid an error. */
19680 /* We use char because int might match the return type of a gcc2
19681 builtin and then its argument prototype would still apply. */
19682 char ssl3_accept ();
19691 rm -f conftest.$ac_objext conftest$ac_exeext
19692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19693 (eval $ac_link) 2>conftest.er1
19695 grep -v '^ *+' conftest.er1 >conftest.err
19697 cat conftest.err >&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } &&
19700 { ac_try='test -z "$ac_c_werror_flag"
19701 || test ! -s conftest.err'
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; } &&
19707 { ac_try='test -s conftest$ac_exeext'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19713 ac_cv_lib_ssl_ssl3_accept=yes
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_cv_lib_ssl_ssl3_accept=no
19720 rm -f conftest.err conftest.$ac_objext \
19721 conftest$ac_exeext conftest.$ac_ext
19722 LIBS=$ac_check_lib_save_LIBS
19724 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19725 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19726 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19735 if test $have_openssl = yes ; then
19740 cat >>confdefs.h <<\_ACEOF
19741 #define HAVE_OPENSSL 1
19745 if test $need_rsaref = yes; then
19747 cat >>confdefs.h <<\_ACEOF
19748 #define HAVE_RSAREF 1
19752 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19754 TLS_LIBS="-lssl -lcrypto"
19757 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19758 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19759 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19770 #ifdef HAVE_OPENSSL_SSL_H
19771 #include <openssl/ssl.h>
19776 /* Require 0.9.7d+ */
19777 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19778 char *__ssl_compat = "0.9.7d";
19782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19783 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19784 ol_cv_ssl_crl_compat=yes
19786 ol_cv_ssl_crl_compat=no
19791 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19792 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19794 if test $ol_cv_ssl_crl_compat = no ; then
19798 cat >>confdefs.h <<\_ACEOF
19799 #define HAVE_OPENSSL_CRL 1
19806 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19807 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19811 if test $ol_link_tls = yes ; then
19813 cat >>confdefs.h <<\_ACEOF
19819 elif test $ol_with_tls = auto ; then
19820 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19821 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19822 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19823 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19825 elif test $ol_with_tls != no ; then
19826 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19827 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19828 { (exit 1); exit 1; }; }
19831 if test $ol_enable_lmpasswd != no; then
19832 if test $ol_link_tls != yes ; then
19833 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19834 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19835 { (exit 1); exit 1; }; }
19839 cat >>confdefs.h <<\_ACEOF
19840 #define SLAPD_LMHASH 1
19847 case $ol_with_threads in auto | yes | nt)
19850 echo "$as_me:$LINENO: checking for _beginthread" >&5
19851 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19852 if test "${ac_cv_func__beginthread+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 cat >conftest.$ac_ext <<_ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19863 #define _beginthread innocuous__beginthread
19865 /* System header to define __stub macros and hopefully few prototypes,
19866 which can conflict with char _beginthread (); below.
19867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19868 <limits.h> exists even on freestanding compilers. */
19871 # include <limits.h>
19873 # include <assert.h>
19876 #undef _beginthread
19878 /* Override any gcc2 internal prototype to avoid an error. */
19883 /* We use char because int might match the return type of a gcc2
19884 builtin and then its argument prototype would still apply. */
19885 char _beginthread ();
19886 /* The GNU C library defines this for functions which it implements
19887 to always fail with ENOSYS. Some functions are actually named
19888 something starting with __ and the normal name is an alias. */
19889 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19892 char (*f) () = _beginthread;
19901 return f != _beginthread;
19906 rm -f conftest.$ac_objext conftest$ac_exeext
19907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19908 (eval $ac_link) 2>conftest.er1
19910 grep -v '^ *+' conftest.er1 >conftest.err
19912 cat conftest.err >&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } &&
19915 { ac_try='test -z "$ac_c_werror_flag"
19916 || test ! -s conftest.err'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; } &&
19922 { ac_try='test -s conftest$ac_exeext'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928 ac_cv_func__beginthread=yes
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19933 ac_cv_func__beginthread=no
19935 rm -f conftest.err conftest.$ac_objext \
19936 conftest$ac_exeext conftest.$ac_ext
19938 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19939 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19942 if test $ac_cv_func__beginthread = yes ; then
19944 cat >>confdefs.h <<\_ACEOF
19945 #define HAVE_NT_THREADS 1
19948 ol_cv_nt_threads=yes
19952 if test "$ol_cv_nt_threads" = yes ; then
19954 ol_with_threads=found
19955 ol_with_yielding_select=yes
19958 cat >>confdefs.h <<\_ACEOF
19959 #define HAVE_NT_SERVICE_MANAGER 1
19963 cat >>confdefs.h <<\_ACEOF
19964 #define HAVE_NT_EVENT_LOG 1
19969 if test $ol_with_threads = nt ; then
19970 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19971 echo "$as_me: error: could not locate NT Threads" >&2;}
19972 { (exit 1); exit 1; }; }
19977 case $ol_with_threads in auto | yes | posix)
19980 for ac_header in pthread.h
19982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19984 echo "$as_me:$LINENO: checking for $ac_header" >&5
19985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
19989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19992 # Is the header compilable?
19993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19994 echo $ECHO_N "checking $ac_header usability... $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. */
20001 $ac_includes_default
20002 #include <$ac_header>
20004 rm -f conftest.$ac_objext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20006 (eval $ac_compile) 2>conftest.er1
20008 grep -v '^ *+' conftest.er1 >conftest.err
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } &&
20013 { ac_try='test -z "$ac_c_werror_flag"
20014 || test ! -s conftest.err'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; } &&
20020 { ac_try='test -s conftest.$ac_objext'
20021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022 (eval $ac_try) 2>&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); }; }; then
20026 ac_header_compiler=yes
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_header_compiler=no
20033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20035 echo "${ECHO_T}$ac_header_compiler" >&6
20037 # Is the header present?
20038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20040 cat >conftest.$ac_ext <<_ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20046 #include <$ac_header>
20048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20051 grep -v '^ *+' conftest.er1 >conftest.err
20053 cat conftest.err >&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); } >/dev/null; then
20056 if test -s conftest.err; then
20057 ac_cpp_err=$ac_c_preproc_warn_flag
20058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20065 if test -z "$ac_cpp_err"; then
20066 ac_header_preproc=yes
20068 echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20071 ac_header_preproc=no
20073 rm -f conftest.err conftest.$ac_ext
20074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20075 echo "${ECHO_T}$ac_header_preproc" >&6
20077 # So? What about this header?
20078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20084 ac_header_preproc=yes
20087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20101 ## --------------------------------------------- ##
20102 ## Report this to <http://www.openldap.org/its/> ##
20103 ## --------------------------------------------- ##
20106 sed "s/^/$as_me: WARNING: /" >&2
20109 echo "$as_me:$LINENO: checking for $ac_header" >&5
20110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20114 eval "$as_ac_Header=\$ac_header_preproc"
20116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20121 cat >>confdefs.h <<_ACEOF
20122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20130 if test $ac_cv_header_pthread_h = yes ; then
20131 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20132 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20133 if test "${ol_cv_pthread_version+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 cat >conftest.$ac_ext <<_ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h. */
20144 # include <pthread.h>
20150 int i = PTHREAD_CREATE_JOINABLE;
20156 rm -f conftest.$ac_objext
20157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20158 (eval $ac_compile) 2>conftest.er1
20160 grep -v '^ *+' conftest.er1 >conftest.err
20162 cat conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } &&
20165 { ac_try='test -z "$ac_c_werror_flag"
20166 || test ! -s conftest.err'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; } &&
20172 { ac_try='test -s conftest.$ac_objext'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20179 cat >conftest.$ac_ext <<_ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20185 #include <pthread.h>
20188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20189 $EGREP "pthread_detach" >/dev/null 2>&1; then
20190 ol_cv_pthread_version=10
20192 ol_cv_pthread_version=8
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20201 cat >conftest.$ac_ext <<_ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h. */
20208 # include <pthread.h>
20209 # ifdef PTHREAD_CREATE_UNDETACHED
20214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20215 $EGREP "draft7" >/dev/null 2>&1; then
20216 ol_cv_pthread_version=7
20219 cat >conftest.$ac_ext <<_ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20225 #include <pthread.h>
20228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20229 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20230 ol_cv_pthread_version=6
20233 cat >conftest.$ac_ext <<_ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20240 # include <pthread.h>
20241 #ifdef PTHREAD_MUTEX_INITIALIZER
20246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20247 $EGREP "draft5" >/dev/null 2>&1; then
20248 ol_cv_pthread_version=5
20250 ol_cv_pthread_version=4
20261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20264 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20265 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20268 if test $ol_cv_pthread_version != 0 ; then
20270 cat >>confdefs.h <<_ACEOF
20271 #define HAVE_PTHREADS $ol_cv_pthread_version
20275 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20276 echo "$as_me: error: unknown pthread version" >&2;}
20277 { (exit 1); exit 1; }; }
20280 # consider threads found
20281 ol_with_threads=found
20284 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20285 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20286 if test "${ol_cv_header_linux_threads+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 cat >conftest.$ac_ext <<_ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20295 #include <pthread.h>
20297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20298 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20299 ol_cv_header_linux_threads=yes
20301 ol_cv_header_linux_threads=no
20307 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20308 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20309 if test $ol_cv_header_linux_threads = yes; then
20311 cat >>confdefs.h <<\_ACEOF
20312 #define HAVE_LINUX_THREADS 1
20318 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20319 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20320 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 cat >conftest.$ac_ext <<_ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 #include <pthread.h>
20330 #ifdef _POSIX_THREAD_IS_GNU_PTH
20335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20336 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20337 ol_cv_header_gnu_pth_pthread_h=yes
20339 ol_cv_header_gnu_pth_pthread_h=no
20345 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20346 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20349 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20351 for ac_header in sched.h
20353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20355 echo "$as_me:$LINENO: checking for $ac_header" >&5
20356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20358 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20363 # Is the header compilable?
20364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20366 cat >conftest.$ac_ext <<_ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20372 $ac_includes_default
20373 #include <$ac_header>
20375 rm -f conftest.$ac_objext
20376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20377 (eval $ac_compile) 2>conftest.er1
20379 grep -v '^ *+' conftest.er1 >conftest.err
20381 cat conftest.err >&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } &&
20384 { ac_try='test -z "$ac_c_werror_flag"
20385 || test ! -s conftest.err'
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; } &&
20391 { ac_try='test -s conftest.$ac_objext'
20392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393 (eval $ac_try) 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; }; then
20397 ac_header_compiler=yes
20399 echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20402 ac_header_compiler=no
20404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20406 echo "${ECHO_T}$ac_header_compiler" >&6
20408 # Is the header present?
20409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 #include <$ac_header>
20419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20422 grep -v '^ *+' conftest.er1 >conftest.err
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } >/dev/null; then
20427 if test -s conftest.err; then
20428 ac_cpp_err=$ac_c_preproc_warn_flag
20429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20436 if test -z "$ac_cpp_err"; then
20437 ac_header_preproc=yes
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20442 ac_header_preproc=no
20444 rm -f conftest.err conftest.$ac_ext
20445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20446 echo "${ECHO_T}$ac_header_preproc" >&6
20448 # So? What about this header?
20449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20455 ac_header_preproc=yes
20458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20472 ## --------------------------------------------- ##
20473 ## Report this to <http://www.openldap.org/its/> ##
20474 ## --------------------------------------------- ##
20477 sed "s/^/$as_me: WARNING: /" >&2
20480 echo "$as_me:$LINENO: checking for $ac_header" >&5
20481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20485 eval "$as_ac_Header=\$ac_header_preproc"
20487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20492 cat >>confdefs.h <<_ACEOF
20493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20503 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20504 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20505 if test "${ol_cv_pthread_create+set}" = set; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20509 if test "$cross_compiling" = yes; then
20510 cat >conftest.$ac_ext <<_ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h. */
20517 /* pthread test headers */
20518 #include <pthread.h>
20519 #if HAVE_PTHREADS < 7
20523 #define NULL (void*)0
20526 static void *task(p)
20529 return (void *) (p == NULL);
20536 /* pthread test function */
20537 #ifndef PTHREAD_CREATE_DETACHED
20538 #define PTHREAD_CREATE_DETACHED 1
20542 int detach = PTHREAD_CREATE_DETACHED;
20544 #if HAVE_PTHREADS > 4
20545 /* Final pthreads */
20546 pthread_attr_t attr;
20548 status = pthread_attr_init(&attr);
20549 if( status ) return status;
20551 #if HAVE_PTHREADS < 7
20552 status = pthread_attr_setdetachstate(&attr, &detach);
20553 if( status < 0 ) status = errno;
20555 status = pthread_attr_setdetachstate(&attr, detach);
20557 if( status ) return status;
20558 status = pthread_create( &t, &attr, task, NULL );
20559 #if HAVE_PTHREADS < 7
20560 if( status < 0 ) status = errno;
20562 if( status ) return status;
20564 /* Draft 4 pthreads */
20565 status = pthread_create( &t, pthread_attr_default, task, NULL );
20566 if( status ) return errno;
20568 /* give thread a chance to complete */
20569 /* it should remain joinable and hence detachable */
20572 status = pthread_detach( &t );
20573 if( status ) return errno;
20576 #ifdef HAVE_LINUX_THREADS
20577 pthread_kill_other_threads_np();
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20588 (eval $ac_link) 2>conftest.er1
20590 grep -v '^ *+' conftest.er1 >conftest.err
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } &&
20595 { ac_try='test -z "$ac_c_werror_flag"
20596 || test ! -s conftest.err'
20597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598 (eval $ac_try) 2>&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; } &&
20602 { ac_try='test -s conftest$ac_exeext'
20603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20604 (eval $ac_try) 2>&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); }; }; then
20608 ol_cv_pthread_create=yes
20610 echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20613 ol_cv_pthread_create=no
20615 rm -f conftest.err conftest.$ac_objext \
20616 conftest$ac_exeext conftest.$ac_ext
20618 cat >conftest.$ac_ext <<_ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20625 /* pthread test headers */
20626 #include <pthread.h>
20627 #if HAVE_PTHREADS < 7
20631 #define NULL (void*)0
20634 static void *task(p)
20637 return (void *) (p == NULL);
20641 int main(argc, argv)
20646 /* pthread test function */
20647 #ifndef PTHREAD_CREATE_DETACHED
20648 #define PTHREAD_CREATE_DETACHED 1
20652 int detach = PTHREAD_CREATE_DETACHED;
20654 #if HAVE_PTHREADS > 4
20655 /* Final pthreads */
20656 pthread_attr_t attr;
20658 status = pthread_attr_init(&attr);
20659 if( status ) return status;
20661 #if HAVE_PTHREADS < 7
20662 status = pthread_attr_setdetachstate(&attr, &detach);
20663 if( status < 0 ) status = errno;
20665 status = pthread_attr_setdetachstate(&attr, detach);
20667 if( status ) return status;
20668 status = pthread_create( &t, &attr, task, NULL );
20669 #if HAVE_PTHREADS < 7
20670 if( status < 0 ) status = errno;
20672 if( status ) return status;
20674 /* Draft 4 pthreads */
20675 status = pthread_create( &t, pthread_attr_default, task, NULL );
20676 if( status ) return errno;
20678 /* give thread a chance to complete */
20679 /* it should remain joinable and hence detachable */
20682 status = pthread_detach( &t );
20683 if( status ) return errno;
20686 #ifdef HAVE_LINUX_THREADS
20687 pthread_kill_other_threads_np();
20695 rm -f conftest$ac_exeext
20696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20697 (eval $ac_link) 2>&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20706 ol_cv_pthread_create=yes
20708 echo "$as_me: program exited with status $ac_status" >&5
20709 echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20712 ( exit $ac_status )
20713 ol_cv_pthread_create=no
20715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20718 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20719 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20721 if test $ol_cv_pthread_create != no ; then
20722 ol_link_threads=posix
20723 ol_link_pthreads=""
20726 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20727 if test "$ol_link_threads" = no ; then
20729 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20730 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20731 if test "${ol_cv_pthread_kthread+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20737 LIBS="-kthread $LIBS"
20739 if test "$cross_compiling" = yes; then
20740 cat >conftest.$ac_ext <<_ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20747 /* pthread test headers */
20748 #include <pthread.h>
20749 #if HAVE_PTHREADS < 7
20753 #define NULL (void*)0
20756 static void *task(p)
20759 return (void *) (p == NULL);
20766 /* pthread test function */
20767 #ifndef PTHREAD_CREATE_DETACHED
20768 #define PTHREAD_CREATE_DETACHED 1
20772 int detach = PTHREAD_CREATE_DETACHED;
20774 #if HAVE_PTHREADS > 4
20775 /* Final pthreads */
20776 pthread_attr_t attr;
20778 status = pthread_attr_init(&attr);
20779 if( status ) return status;
20781 #if HAVE_PTHREADS < 7
20782 status = pthread_attr_setdetachstate(&attr, &detach);
20783 if( status < 0 ) status = errno;
20785 status = pthread_attr_setdetachstate(&attr, detach);
20787 if( status ) return status;
20788 status = pthread_create( &t, &attr, task, NULL );
20789 #if HAVE_PTHREADS < 7
20790 if( status < 0 ) status = errno;
20792 if( status ) return status;
20794 /* Draft 4 pthreads */
20795 status = pthread_create( &t, pthread_attr_default, task, NULL );
20796 if( status ) return errno;
20798 /* give thread a chance to complete */
20799 /* it should remain joinable and hence detachable */
20802 status = pthread_detach( &t );
20803 if( status ) return errno;
20806 #ifdef HAVE_LINUX_THREADS
20807 pthread_kill_other_threads_np();
20816 rm -f conftest.$ac_objext conftest$ac_exeext
20817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20818 (eval $ac_link) 2>conftest.er1
20820 grep -v '^ *+' conftest.er1 >conftest.err
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } &&
20825 { ac_try='test -z "$ac_c_werror_flag"
20826 || test ! -s conftest.err'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; } &&
20832 { ac_try='test -s conftest$ac_exeext'
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; }; then
20838 ol_cv_pthread_kthread=yes
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20843 ol_cv_pthread_kthread=no
20845 rm -f conftest.err conftest.$ac_objext \
20846 conftest$ac_exeext conftest.$ac_ext
20848 cat >conftest.$ac_ext <<_ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20855 /* pthread test headers */
20856 #include <pthread.h>
20857 #if HAVE_PTHREADS < 7
20861 #define NULL (void*)0
20864 static void *task(p)
20867 return (void *) (p == NULL);
20871 int main(argc, argv)
20876 /* pthread test function */
20877 #ifndef PTHREAD_CREATE_DETACHED
20878 #define PTHREAD_CREATE_DETACHED 1
20882 int detach = PTHREAD_CREATE_DETACHED;
20884 #if HAVE_PTHREADS > 4
20885 /* Final pthreads */
20886 pthread_attr_t attr;
20888 status = pthread_attr_init(&attr);
20889 if( status ) return status;
20891 #if HAVE_PTHREADS < 7
20892 status = pthread_attr_setdetachstate(&attr, &detach);
20893 if( status < 0 ) status = errno;
20895 status = pthread_attr_setdetachstate(&attr, detach);
20897 if( status ) return status;
20898 status = pthread_create( &t, &attr, task, NULL );
20899 #if HAVE_PTHREADS < 7
20900 if( status < 0 ) status = errno;
20902 if( status ) return status;
20904 /* Draft 4 pthreads */
20905 status = pthread_create( &t, pthread_attr_default, task, NULL );
20906 if( status ) return errno;
20908 /* give thread a chance to complete */
20909 /* it should remain joinable and hence detachable */
20912 status = pthread_detach( &t );
20913 if( status ) return errno;
20916 #ifdef HAVE_LINUX_THREADS
20917 pthread_kill_other_threads_np();
20925 rm -f conftest$ac_exeext
20926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20927 (eval $ac_link) 2>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20932 (eval $ac_try) 2>&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); }; }; then
20936 ol_cv_pthread_kthread=yes
20938 echo "$as_me: program exited with status $ac_status" >&5
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20942 ( exit $ac_status )
20943 ol_cv_pthread_kthread=no
20945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20952 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20953 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20955 if test $ol_cv_pthread_kthread = yes ; then
20956 ol_link_pthreads="-kthread"
20957 ol_link_threads=posix
20961 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20962 if test "$ol_link_threads" = no ; then
20964 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20965 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20966 if test "${ol_cv_pthread_pthread+set}" = set; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20972 LIBS="-pthread $LIBS"
20974 if test "$cross_compiling" = yes; then
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20982 /* pthread test headers */
20983 #include <pthread.h>
20984 #if HAVE_PTHREADS < 7
20988 #define NULL (void*)0
20991 static void *task(p)
20994 return (void *) (p == NULL);
21001 /* pthread test function */
21002 #ifndef PTHREAD_CREATE_DETACHED
21003 #define PTHREAD_CREATE_DETACHED 1
21007 int detach = PTHREAD_CREATE_DETACHED;
21009 #if HAVE_PTHREADS > 4
21010 /* Final pthreads */
21011 pthread_attr_t attr;
21013 status = pthread_attr_init(&attr);
21014 if( status ) return status;
21016 #if HAVE_PTHREADS < 7
21017 status = pthread_attr_setdetachstate(&attr, &detach);
21018 if( status < 0 ) status = errno;
21020 status = pthread_attr_setdetachstate(&attr, detach);
21022 if( status ) return status;
21023 status = pthread_create( &t, &attr, task, NULL );
21024 #if HAVE_PTHREADS < 7
21025 if( status < 0 ) status = errno;
21027 if( status ) return status;
21029 /* Draft 4 pthreads */
21030 status = pthread_create( &t, pthread_attr_default, task, NULL );
21031 if( status ) return errno;
21033 /* give thread a chance to complete */
21034 /* it should remain joinable and hence detachable */
21037 status = pthread_detach( &t );
21038 if( status ) return errno;
21041 #ifdef HAVE_LINUX_THREADS
21042 pthread_kill_other_threads_np();
21051 rm -f conftest.$ac_objext conftest$ac_exeext
21052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21053 (eval $ac_link) 2>conftest.er1
21055 grep -v '^ *+' conftest.er1 >conftest.err
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } &&
21060 { ac_try='test -z "$ac_c_werror_flag"
21061 || test ! -s conftest.err'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; } &&
21067 { ac_try='test -s conftest$ac_exeext'
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073 ol_cv_pthread_pthread=yes
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21078 ol_cv_pthread_pthread=no
21080 rm -f conftest.err conftest.$ac_objext \
21081 conftest$ac_exeext conftest.$ac_ext
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21090 /* pthread test headers */
21091 #include <pthread.h>
21092 #if HAVE_PTHREADS < 7
21096 #define NULL (void*)0
21099 static void *task(p)
21102 return (void *) (p == NULL);
21106 int main(argc, argv)
21111 /* pthread test function */
21112 #ifndef PTHREAD_CREATE_DETACHED
21113 #define PTHREAD_CREATE_DETACHED 1
21117 int detach = PTHREAD_CREATE_DETACHED;
21119 #if HAVE_PTHREADS > 4
21120 /* Final pthreads */
21121 pthread_attr_t attr;
21123 status = pthread_attr_init(&attr);
21124 if( status ) return status;
21126 #if HAVE_PTHREADS < 7
21127 status = pthread_attr_setdetachstate(&attr, &detach);
21128 if( status < 0 ) status = errno;
21130 status = pthread_attr_setdetachstate(&attr, detach);
21132 if( status ) return status;
21133 status = pthread_create( &t, &attr, task, NULL );
21134 #if HAVE_PTHREADS < 7
21135 if( status < 0 ) status = errno;
21137 if( status ) return status;
21139 /* Draft 4 pthreads */
21140 status = pthread_create( &t, pthread_attr_default, task, NULL );
21141 if( status ) return errno;
21143 /* give thread a chance to complete */
21144 /* it should remain joinable and hence detachable */
21147 status = pthread_detach( &t );
21148 if( status ) return errno;
21151 #ifdef HAVE_LINUX_THREADS
21152 pthread_kill_other_threads_np();
21160 rm -f conftest$ac_exeext
21161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21162 (eval $ac_link) 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; }; then
21171 ol_cv_pthread_pthread=yes
21173 echo "$as_me: program exited with status $ac_status" >&5
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 ( exit $ac_status )
21178 ol_cv_pthread_pthread=no
21180 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21187 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21188 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21190 if test $ol_cv_pthread_pthread = yes ; then
21191 ol_link_pthreads="-pthread"
21192 ol_link_threads=posix
21196 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21197 if test "$ol_link_threads" = no ; then
21199 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21200 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21201 if test "${ol_cv_pthread_pthreads+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21207 LIBS="-pthreads $LIBS"
21209 if test "$cross_compiling" = yes; then
21210 cat >conftest.$ac_ext <<_ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h. */
21217 /* pthread test headers */
21218 #include <pthread.h>
21219 #if HAVE_PTHREADS < 7
21223 #define NULL (void*)0
21226 static void *task(p)
21229 return (void *) (p == NULL);
21236 /* pthread test function */
21237 #ifndef PTHREAD_CREATE_DETACHED
21238 #define PTHREAD_CREATE_DETACHED 1
21242 int detach = PTHREAD_CREATE_DETACHED;
21244 #if HAVE_PTHREADS > 4
21245 /* Final pthreads */
21246 pthread_attr_t attr;
21248 status = pthread_attr_init(&attr);
21249 if( status ) return status;
21251 #if HAVE_PTHREADS < 7
21252 status = pthread_attr_setdetachstate(&attr, &detach);
21253 if( status < 0 ) status = errno;
21255 status = pthread_attr_setdetachstate(&attr, detach);
21257 if( status ) return status;
21258 status = pthread_create( &t, &attr, task, NULL );
21259 #if HAVE_PTHREADS < 7
21260 if( status < 0 ) status = errno;
21262 if( status ) return status;
21264 /* Draft 4 pthreads */
21265 status = pthread_create( &t, pthread_attr_default, task, NULL );
21266 if( status ) return errno;
21268 /* give thread a chance to complete */
21269 /* it should remain joinable and hence detachable */
21272 status = pthread_detach( &t );
21273 if( status ) return errno;
21276 #ifdef HAVE_LINUX_THREADS
21277 pthread_kill_other_threads_np();
21286 rm -f conftest.$ac_objext conftest$ac_exeext
21287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21288 (eval $ac_link) 2>conftest.er1
21290 grep -v '^ *+' conftest.er1 >conftest.err
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } &&
21295 { ac_try='test -z "$ac_c_werror_flag"
21296 || test ! -s conftest.err'
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; } &&
21302 { ac_try='test -s conftest$ac_exeext'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then
21308 ol_cv_pthread_pthreads=yes
21310 echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21313 ol_cv_pthread_pthreads=no
21315 rm -f conftest.err conftest.$ac_objext \
21316 conftest$ac_exeext conftest.$ac_ext
21318 cat >conftest.$ac_ext <<_ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21325 /* pthread test headers */
21326 #include <pthread.h>
21327 #if HAVE_PTHREADS < 7
21331 #define NULL (void*)0
21334 static void *task(p)
21337 return (void *) (p == NULL);
21341 int main(argc, argv)
21346 /* pthread test function */
21347 #ifndef PTHREAD_CREATE_DETACHED
21348 #define PTHREAD_CREATE_DETACHED 1
21352 int detach = PTHREAD_CREATE_DETACHED;
21354 #if HAVE_PTHREADS > 4
21355 /* Final pthreads */
21356 pthread_attr_t attr;
21358 status = pthread_attr_init(&attr);
21359 if( status ) return status;
21361 #if HAVE_PTHREADS < 7
21362 status = pthread_attr_setdetachstate(&attr, &detach);
21363 if( status < 0 ) status = errno;
21365 status = pthread_attr_setdetachstate(&attr, detach);
21367 if( status ) return status;
21368 status = pthread_create( &t, &attr, task, NULL );
21369 #if HAVE_PTHREADS < 7
21370 if( status < 0 ) status = errno;
21372 if( status ) return status;
21374 /* Draft 4 pthreads */
21375 status = pthread_create( &t, pthread_attr_default, task, NULL );
21376 if( status ) return errno;
21378 /* give thread a chance to complete */
21379 /* it should remain joinable and hence detachable */
21382 status = pthread_detach( &t );
21383 if( status ) return errno;
21386 #ifdef HAVE_LINUX_THREADS
21387 pthread_kill_other_threads_np();
21395 rm -f conftest$ac_exeext
21396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21397 (eval $ac_link) 2>&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 ol_cv_pthread_pthreads=yes
21408 echo "$as_me: program exited with status $ac_status" >&5
21409 echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21412 ( exit $ac_status )
21413 ol_cv_pthread_pthreads=no
21415 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21422 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21423 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21425 if test $ol_cv_pthread_pthreads = yes ; then
21426 ol_link_pthreads="-pthreads"
21427 ol_link_threads=posix
21431 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21432 if test "$ol_link_threads" = no ; then
21434 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21435 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21436 if test "${ol_cv_pthread_mthreads+set}" = set; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21442 LIBS="-mthreads $LIBS"
21444 if test "$cross_compiling" = yes; then
21445 cat >conftest.$ac_ext <<_ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h. */
21452 /* pthread test headers */
21453 #include <pthread.h>
21454 #if HAVE_PTHREADS < 7
21458 #define NULL (void*)0
21461 static void *task(p)
21464 return (void *) (p == NULL);
21471 /* pthread test function */
21472 #ifndef PTHREAD_CREATE_DETACHED
21473 #define PTHREAD_CREATE_DETACHED 1
21477 int detach = PTHREAD_CREATE_DETACHED;
21479 #if HAVE_PTHREADS > 4
21480 /* Final pthreads */
21481 pthread_attr_t attr;
21483 status = pthread_attr_init(&attr);
21484 if( status ) return status;
21486 #if HAVE_PTHREADS < 7
21487 status = pthread_attr_setdetachstate(&attr, &detach);
21488 if( status < 0 ) status = errno;
21490 status = pthread_attr_setdetachstate(&attr, detach);
21492 if( status ) return status;
21493 status = pthread_create( &t, &attr, task, NULL );
21494 #if HAVE_PTHREADS < 7
21495 if( status < 0 ) status = errno;
21497 if( status ) return status;
21499 /* Draft 4 pthreads */
21500 status = pthread_create( &t, pthread_attr_default, task, NULL );
21501 if( status ) return errno;
21503 /* give thread a chance to complete */
21504 /* it should remain joinable and hence detachable */
21507 status = pthread_detach( &t );
21508 if( status ) return errno;
21511 #ifdef HAVE_LINUX_THREADS
21512 pthread_kill_other_threads_np();
21521 rm -f conftest.$ac_objext conftest$ac_exeext
21522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21523 (eval $ac_link) 2>conftest.er1
21525 grep -v '^ *+' conftest.er1 >conftest.err
21527 cat conftest.err >&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } &&
21530 { ac_try='test -z "$ac_c_werror_flag"
21531 || test ! -s conftest.err'
21532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533 (eval $ac_try) 2>&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); }; } &&
21537 { ac_try='test -s conftest$ac_exeext'
21538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539 (eval $ac_try) 2>&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); }; }; then
21543 ol_cv_pthread_mthreads=yes
21545 echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.$ac_ext >&5
21548 ol_cv_pthread_mthreads=no
21550 rm -f conftest.err conftest.$ac_objext \
21551 conftest$ac_exeext conftest.$ac_ext
21553 cat >conftest.$ac_ext <<_ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21560 /* pthread test headers */
21561 #include <pthread.h>
21562 #if HAVE_PTHREADS < 7
21566 #define NULL (void*)0
21569 static void *task(p)
21572 return (void *) (p == NULL);
21576 int main(argc, argv)
21581 /* pthread test function */
21582 #ifndef PTHREAD_CREATE_DETACHED
21583 #define PTHREAD_CREATE_DETACHED 1
21587 int detach = PTHREAD_CREATE_DETACHED;
21589 #if HAVE_PTHREADS > 4
21590 /* Final pthreads */
21591 pthread_attr_t attr;
21593 status = pthread_attr_init(&attr);
21594 if( status ) return status;
21596 #if HAVE_PTHREADS < 7
21597 status = pthread_attr_setdetachstate(&attr, &detach);
21598 if( status < 0 ) status = errno;
21600 status = pthread_attr_setdetachstate(&attr, detach);
21602 if( status ) return status;
21603 status = pthread_create( &t, &attr, task, NULL );
21604 #if HAVE_PTHREADS < 7
21605 if( status < 0 ) status = errno;
21607 if( status ) return status;
21609 /* Draft 4 pthreads */
21610 status = pthread_create( &t, pthread_attr_default, task, NULL );
21611 if( status ) return errno;
21613 /* give thread a chance to complete */
21614 /* it should remain joinable and hence detachable */
21617 status = pthread_detach( &t );
21618 if( status ) return errno;
21621 #ifdef HAVE_LINUX_THREADS
21622 pthread_kill_other_threads_np();
21630 rm -f conftest$ac_exeext
21631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21632 (eval $ac_link) 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637 (eval $ac_try) 2>&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); }; }; then
21641 ol_cv_pthread_mthreads=yes
21643 echo "$as_me: program exited with status $ac_status" >&5
21644 echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21647 ( exit $ac_status )
21648 ol_cv_pthread_mthreads=no
21650 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21657 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21658 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21660 if test $ol_cv_pthread_mthreads = yes ; then
21661 ol_link_pthreads="-mthreads"
21662 ol_link_threads=posix
21666 # Pthread try link: -thread (ol_cv_pthread_thread)
21667 if test "$ol_link_threads" = no ; then
21669 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21670 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21671 if test "${ol_cv_pthread_thread+set}" = set; then
21672 echo $ECHO_N "(cached) $ECHO_C" >&6
21677 LIBS="-thread $LIBS"
21679 if test "$cross_compiling" = yes; then
21680 cat >conftest.$ac_ext <<_ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h. */
21687 /* pthread test headers */
21688 #include <pthread.h>
21689 #if HAVE_PTHREADS < 7
21693 #define NULL (void*)0
21696 static void *task(p)
21699 return (void *) (p == NULL);
21706 /* pthread test function */
21707 #ifndef PTHREAD_CREATE_DETACHED
21708 #define PTHREAD_CREATE_DETACHED 1
21712 int detach = PTHREAD_CREATE_DETACHED;
21714 #if HAVE_PTHREADS > 4
21715 /* Final pthreads */
21716 pthread_attr_t attr;
21718 status = pthread_attr_init(&attr);
21719 if( status ) return status;
21721 #if HAVE_PTHREADS < 7
21722 status = pthread_attr_setdetachstate(&attr, &detach);
21723 if( status < 0 ) status = errno;
21725 status = pthread_attr_setdetachstate(&attr, detach);
21727 if( status ) return status;
21728 status = pthread_create( &t, &attr, task, NULL );
21729 #if HAVE_PTHREADS < 7
21730 if( status < 0 ) status = errno;
21732 if( status ) return status;
21734 /* Draft 4 pthreads */
21735 status = pthread_create( &t, pthread_attr_default, task, NULL );
21736 if( status ) return errno;
21738 /* give thread a chance to complete */
21739 /* it should remain joinable and hence detachable */
21742 status = pthread_detach( &t );
21743 if( status ) return errno;
21746 #ifdef HAVE_LINUX_THREADS
21747 pthread_kill_other_threads_np();
21756 rm -f conftest.$ac_objext conftest$ac_exeext
21757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21758 (eval $ac_link) 2>conftest.er1
21760 grep -v '^ *+' conftest.er1 >conftest.err
21762 cat conftest.err >&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } &&
21765 { ac_try='test -z "$ac_c_werror_flag"
21766 || test ! -s conftest.err'
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; } &&
21772 { ac_try='test -s conftest$ac_exeext'
21773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774 (eval $ac_try) 2>&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; }; then
21778 ol_cv_pthread_thread=yes
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21783 ol_cv_pthread_thread=no
21785 rm -f conftest.err conftest.$ac_objext \
21786 conftest$ac_exeext conftest.$ac_ext
21788 cat >conftest.$ac_ext <<_ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h. */
21795 /* pthread test headers */
21796 #include <pthread.h>
21797 #if HAVE_PTHREADS < 7
21801 #define NULL (void*)0
21804 static void *task(p)
21807 return (void *) (p == NULL);
21811 int main(argc, argv)
21816 /* pthread test function */
21817 #ifndef PTHREAD_CREATE_DETACHED
21818 #define PTHREAD_CREATE_DETACHED 1
21822 int detach = PTHREAD_CREATE_DETACHED;
21824 #if HAVE_PTHREADS > 4
21825 /* Final pthreads */
21826 pthread_attr_t attr;
21828 status = pthread_attr_init(&attr);
21829 if( status ) return status;
21831 #if HAVE_PTHREADS < 7
21832 status = pthread_attr_setdetachstate(&attr, &detach);
21833 if( status < 0 ) status = errno;
21835 status = pthread_attr_setdetachstate(&attr, detach);
21837 if( status ) return status;
21838 status = pthread_create( &t, &attr, task, NULL );
21839 #if HAVE_PTHREADS < 7
21840 if( status < 0 ) status = errno;
21842 if( status ) return status;
21844 /* Draft 4 pthreads */
21845 status = pthread_create( &t, pthread_attr_default, task, NULL );
21846 if( status ) return errno;
21848 /* give thread a chance to complete */
21849 /* it should remain joinable and hence detachable */
21852 status = pthread_detach( &t );
21853 if( status ) return errno;
21856 #ifdef HAVE_LINUX_THREADS
21857 pthread_kill_other_threads_np();
21865 rm -f conftest$ac_exeext
21866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21867 (eval $ac_link) 2>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872 (eval $ac_try) 2>&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); }; }; then
21876 ol_cv_pthread_thread=yes
21878 echo "$as_me: program exited with status $ac_status" >&5
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21882 ( exit $ac_status )
21883 ol_cv_pthread_thread=no
21885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21892 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21893 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21895 if test $ol_cv_pthread_thread = yes ; then
21896 ol_link_pthreads="-thread"
21897 ol_link_threads=posix
21902 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21903 if test "$ol_link_threads" = no ; then
21904 # try -lpthread -lmach -lexc -lc_r
21905 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21906 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21907 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21908 echo $ECHO_N "(cached) $ECHO_C" >&6
21913 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21915 if test "$cross_compiling" = yes; then
21916 cat >conftest.$ac_ext <<_ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h. */
21923 /* pthread test headers */
21924 #include <pthread.h>
21925 #if HAVE_PTHREADS < 7
21929 #define NULL (void*)0
21932 static void *task(p)
21935 return (void *) (p == NULL);
21942 /* pthread test function */
21943 #ifndef PTHREAD_CREATE_DETACHED
21944 #define PTHREAD_CREATE_DETACHED 1
21948 int detach = PTHREAD_CREATE_DETACHED;
21950 #if HAVE_PTHREADS > 4
21951 /* Final pthreads */
21952 pthread_attr_t attr;
21954 status = pthread_attr_init(&attr);
21955 if( status ) return status;
21957 #if HAVE_PTHREADS < 7
21958 status = pthread_attr_setdetachstate(&attr, &detach);
21959 if( status < 0 ) status = errno;
21961 status = pthread_attr_setdetachstate(&attr, detach);
21963 if( status ) return status;
21964 status = pthread_create( &t, &attr, task, NULL );
21965 #if HAVE_PTHREADS < 7
21966 if( status < 0 ) status = errno;
21968 if( status ) return status;
21970 /* Draft 4 pthreads */
21971 status = pthread_create( &t, pthread_attr_default, task, NULL );
21972 if( status ) return errno;
21974 /* give thread a chance to complete */
21975 /* it should remain joinable and hence detachable */
21978 status = pthread_detach( &t );
21979 if( status ) return errno;
21982 #ifdef HAVE_LINUX_THREADS
21983 pthread_kill_other_threads_np();
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21994 (eval $ac_link) 2>conftest.er1
21996 grep -v '^ *+' conftest.er1 >conftest.err
21998 cat conftest.err >&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } &&
22001 { ac_try='test -z "$ac_c_werror_flag"
22002 || test ! -s conftest.err'
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; } &&
22008 { ac_try='test -s conftest$ac_exeext'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22016 echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22019 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22021 rm -f conftest.err conftest.$ac_objext \
22022 conftest$ac_exeext conftest.$ac_ext
22024 cat >conftest.$ac_ext <<_ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h. */
22031 /* pthread test headers */
22032 #include <pthread.h>
22033 #if HAVE_PTHREADS < 7
22037 #define NULL (void*)0
22040 static void *task(p)
22043 return (void *) (p == NULL);
22047 int main(argc, argv)
22052 /* pthread test function */
22053 #ifndef PTHREAD_CREATE_DETACHED
22054 #define PTHREAD_CREATE_DETACHED 1
22058 int detach = PTHREAD_CREATE_DETACHED;
22060 #if HAVE_PTHREADS > 4
22061 /* Final pthreads */
22062 pthread_attr_t attr;
22064 status = pthread_attr_init(&attr);
22065 if( status ) return status;
22067 #if HAVE_PTHREADS < 7
22068 status = pthread_attr_setdetachstate(&attr, &detach);
22069 if( status < 0 ) status = errno;
22071 status = pthread_attr_setdetachstate(&attr, detach);
22073 if( status ) return status;
22074 status = pthread_create( &t, &attr, task, NULL );
22075 #if HAVE_PTHREADS < 7
22076 if( status < 0 ) status = errno;
22078 if( status ) return status;
22080 /* Draft 4 pthreads */
22081 status = pthread_create( &t, pthread_attr_default, task, NULL );
22082 if( status ) return errno;
22084 /* give thread a chance to complete */
22085 /* it should remain joinable and hence detachable */
22088 status = pthread_detach( &t );
22089 if( status ) return errno;
22092 #ifdef HAVE_LINUX_THREADS
22093 pthread_kill_other_threads_np();
22101 rm -f conftest$ac_exeext
22102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22103 (eval $ac_link) 2>&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; }; then
22112 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22114 echo "$as_me: program exited with status $ac_status" >&5
22115 echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22118 ( exit $ac_status )
22119 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22128 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22129 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22131 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22132 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22133 ol_link_threads=posix
22137 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22138 if test "$ol_link_threads" = no ; then
22139 # try -lpthread -lmach -lexc
22140 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22141 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22142 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22143 echo $ECHO_N "(cached) $ECHO_C" >&6
22148 LIBS="-lpthread -lmach -lexc $LIBS"
22150 if test "$cross_compiling" = yes; then
22151 cat >conftest.$ac_ext <<_ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h. */
22158 /* pthread test headers */
22159 #include <pthread.h>
22160 #if HAVE_PTHREADS < 7
22164 #define NULL (void*)0
22167 static void *task(p)
22170 return (void *) (p == NULL);
22177 /* pthread test function */
22178 #ifndef PTHREAD_CREATE_DETACHED
22179 #define PTHREAD_CREATE_DETACHED 1
22183 int detach = PTHREAD_CREATE_DETACHED;
22185 #if HAVE_PTHREADS > 4
22186 /* Final pthreads */
22187 pthread_attr_t attr;
22189 status = pthread_attr_init(&attr);
22190 if( status ) return status;
22192 #if HAVE_PTHREADS < 7
22193 status = pthread_attr_setdetachstate(&attr, &detach);
22194 if( status < 0 ) status = errno;
22196 status = pthread_attr_setdetachstate(&attr, detach);
22198 if( status ) return status;
22199 status = pthread_create( &t, &attr, task, NULL );
22200 #if HAVE_PTHREADS < 7
22201 if( status < 0 ) status = errno;
22203 if( status ) return status;
22205 /* Draft 4 pthreads */
22206 status = pthread_create( &t, pthread_attr_default, task, NULL );
22207 if( status ) return errno;
22209 /* give thread a chance to complete */
22210 /* it should remain joinable and hence detachable */
22213 status = pthread_detach( &t );
22214 if( status ) return errno;
22217 #ifdef HAVE_LINUX_THREADS
22218 pthread_kill_other_threads_np();
22227 rm -f conftest.$ac_objext conftest$ac_exeext
22228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22229 (eval $ac_link) 2>conftest.er1
22231 grep -v '^ *+' conftest.er1 >conftest.err
22233 cat conftest.err >&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); } &&
22236 { ac_try='test -z "$ac_c_werror_flag"
22237 || test ! -s conftest.err'
22238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; } &&
22243 { ac_try='test -s conftest$ac_exeext'
22244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245 (eval $ac_try) 2>&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; }; then
22249 ol_cv_pthread_lpthread_lmach_lexc=yes
22251 echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 ol_cv_pthread_lpthread_lmach_lexc=no
22256 rm -f conftest.err conftest.$ac_objext \
22257 conftest$ac_exeext conftest.$ac_ext
22259 cat >conftest.$ac_ext <<_ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h. */
22266 /* pthread test headers */
22267 #include <pthread.h>
22268 #if HAVE_PTHREADS < 7
22272 #define NULL (void*)0
22275 static void *task(p)
22278 return (void *) (p == NULL);
22282 int main(argc, argv)
22287 /* pthread test function */
22288 #ifndef PTHREAD_CREATE_DETACHED
22289 #define PTHREAD_CREATE_DETACHED 1
22293 int detach = PTHREAD_CREATE_DETACHED;
22295 #if HAVE_PTHREADS > 4
22296 /* Final pthreads */
22297 pthread_attr_t attr;
22299 status = pthread_attr_init(&attr);
22300 if( status ) return status;
22302 #if HAVE_PTHREADS < 7
22303 status = pthread_attr_setdetachstate(&attr, &detach);
22304 if( status < 0 ) status = errno;
22306 status = pthread_attr_setdetachstate(&attr, detach);
22308 if( status ) return status;
22309 status = pthread_create( &t, &attr, task, NULL );
22310 #if HAVE_PTHREADS < 7
22311 if( status < 0 ) status = errno;
22313 if( status ) return status;
22315 /* Draft 4 pthreads */
22316 status = pthread_create( &t, pthread_attr_default, task, NULL );
22317 if( status ) return errno;
22319 /* give thread a chance to complete */
22320 /* it should remain joinable and hence detachable */
22323 status = pthread_detach( &t );
22324 if( status ) return errno;
22327 #ifdef HAVE_LINUX_THREADS
22328 pthread_kill_other_threads_np();
22336 rm -f conftest$ac_exeext
22337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22338 (eval $ac_link) 2>&5
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; }; then
22347 ol_cv_pthread_lpthread_lmach_lexc=yes
22349 echo "$as_me: program exited with status $ac_status" >&5
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ( exit $ac_status )
22354 ol_cv_pthread_lpthread_lmach_lexc=no
22356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22363 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22364 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22366 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22367 ol_link_pthreads="-lpthread -lmach -lexc"
22368 ol_link_threads=posix
22373 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22374 if test "$ol_link_threads" = no ; then
22375 # try -lpthread -Wl,-woff,85
22376 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22377 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22378 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22379 echo $ECHO_N "(cached) $ECHO_C" >&6
22384 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22386 if test "$cross_compiling" = yes; then
22387 cat >conftest.$ac_ext <<_ACEOF
22390 cat confdefs.h >>conftest.$ac_ext
22391 cat >>conftest.$ac_ext <<_ACEOF
22392 /* end confdefs.h. */
22394 /* pthread test headers */
22395 #include <pthread.h>
22396 #if HAVE_PTHREADS < 7
22400 #define NULL (void*)0
22403 static void *task(p)
22406 return (void *) (p == NULL);
22413 /* pthread test function */
22414 #ifndef PTHREAD_CREATE_DETACHED
22415 #define PTHREAD_CREATE_DETACHED 1
22419 int detach = PTHREAD_CREATE_DETACHED;
22421 #if HAVE_PTHREADS > 4
22422 /* Final pthreads */
22423 pthread_attr_t attr;
22425 status = pthread_attr_init(&attr);
22426 if( status ) return status;
22428 #if HAVE_PTHREADS < 7
22429 status = pthread_attr_setdetachstate(&attr, &detach);
22430 if( status < 0 ) status = errno;
22432 status = pthread_attr_setdetachstate(&attr, detach);
22434 if( status ) return status;
22435 status = pthread_create( &t, &attr, task, NULL );
22436 #if HAVE_PTHREADS < 7
22437 if( status < 0 ) status = errno;
22439 if( status ) return status;
22441 /* Draft 4 pthreads */
22442 status = pthread_create( &t, pthread_attr_default, task, NULL );
22443 if( status ) return errno;
22445 /* give thread a chance to complete */
22446 /* it should remain joinable and hence detachable */
22449 status = pthread_detach( &t );
22450 if( status ) return errno;
22453 #ifdef HAVE_LINUX_THREADS
22454 pthread_kill_other_threads_np();
22463 rm -f conftest.$ac_objext conftest$ac_exeext
22464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22465 (eval $ac_link) 2>conftest.er1
22467 grep -v '^ *+' conftest.er1 >conftest.err
22469 cat conftest.err >&5
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } &&
22472 { ac_try='test -z "$ac_c_werror_flag"
22473 || test ! -s conftest.err'
22474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475 (eval $ac_try) 2>&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest$ac_exeext'
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
22485 ol_cv_pthread_lib_lpthread_woff=yes
22487 echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22490 ol_cv_pthread_lib_lpthread_woff=no
22492 rm -f conftest.err conftest.$ac_objext \
22493 conftest$ac_exeext conftest.$ac_ext
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22502 /* pthread test headers */
22503 #include <pthread.h>
22504 #if HAVE_PTHREADS < 7
22508 #define NULL (void*)0
22511 static void *task(p)
22514 return (void *) (p == NULL);
22518 int main(argc, argv)
22523 /* pthread test function */
22524 #ifndef PTHREAD_CREATE_DETACHED
22525 #define PTHREAD_CREATE_DETACHED 1
22529 int detach = PTHREAD_CREATE_DETACHED;
22531 #if HAVE_PTHREADS > 4
22532 /* Final pthreads */
22533 pthread_attr_t attr;
22535 status = pthread_attr_init(&attr);
22536 if( status ) return status;
22538 #if HAVE_PTHREADS < 7
22539 status = pthread_attr_setdetachstate(&attr, &detach);
22540 if( status < 0 ) status = errno;
22542 status = pthread_attr_setdetachstate(&attr, detach);
22544 if( status ) return status;
22545 status = pthread_create( &t, &attr, task, NULL );
22546 #if HAVE_PTHREADS < 7
22547 if( status < 0 ) status = errno;
22549 if( status ) return status;
22551 /* Draft 4 pthreads */
22552 status = pthread_create( &t, pthread_attr_default, task, NULL );
22553 if( status ) return errno;
22555 /* give thread a chance to complete */
22556 /* it should remain joinable and hence detachable */
22559 status = pthread_detach( &t );
22560 if( status ) return errno;
22563 #ifdef HAVE_LINUX_THREADS
22564 pthread_kill_other_threads_np();
22572 rm -f conftest$ac_exeext
22573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22574 (eval $ac_link) 2>&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579 (eval $ac_try) 2>&5
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); }; }; then
22583 ol_cv_pthread_lib_lpthread_woff=yes
22585 echo "$as_me: program exited with status $ac_status" >&5
22586 echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22589 ( exit $ac_status )
22590 ol_cv_pthread_lib_lpthread_woff=no
22592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22599 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22600 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22602 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22603 ol_link_pthreads="-lpthread -Wl,-woff,85"
22604 ol_link_threads=posix
22609 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22610 if test "$ol_link_threads" = no ; then
22612 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22613 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22614 if test "${ol_cv_pthread_lpthread+set}" = set; then
22615 echo $ECHO_N "(cached) $ECHO_C" >&6
22620 LIBS="-lpthread $LIBS"
22622 if test "$cross_compiling" = yes; then
22623 cat >conftest.$ac_ext <<_ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h. */
22630 /* pthread test headers */
22631 #include <pthread.h>
22632 #if HAVE_PTHREADS < 7
22636 #define NULL (void*)0
22639 static void *task(p)
22642 return (void *) (p == NULL);
22649 /* pthread test function */
22650 #ifndef PTHREAD_CREATE_DETACHED
22651 #define PTHREAD_CREATE_DETACHED 1
22655 int detach = PTHREAD_CREATE_DETACHED;
22657 #if HAVE_PTHREADS > 4
22658 /* Final pthreads */
22659 pthread_attr_t attr;
22661 status = pthread_attr_init(&attr);
22662 if( status ) return status;
22664 #if HAVE_PTHREADS < 7
22665 status = pthread_attr_setdetachstate(&attr, &detach);
22666 if( status < 0 ) status = errno;
22668 status = pthread_attr_setdetachstate(&attr, detach);
22670 if( status ) return status;
22671 status = pthread_create( &t, &attr, task, NULL );
22672 #if HAVE_PTHREADS < 7
22673 if( status < 0 ) status = errno;
22675 if( status ) return status;
22677 /* Draft 4 pthreads */
22678 status = pthread_create( &t, pthread_attr_default, task, NULL );
22679 if( status ) return errno;
22681 /* give thread a chance to complete */
22682 /* it should remain joinable and hence detachable */
22685 status = pthread_detach( &t );
22686 if( status ) return errno;
22689 #ifdef HAVE_LINUX_THREADS
22690 pthread_kill_other_threads_np();
22699 rm -f conftest.$ac_objext conftest$ac_exeext
22700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22701 (eval $ac_link) 2>conftest.er1
22703 grep -v '^ *+' conftest.er1 >conftest.err
22705 cat conftest.err >&5
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); } &&
22708 { ac_try='test -z "$ac_c_werror_flag"
22709 || test ! -s conftest.err'
22710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711 (eval $ac_try) 2>&5
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); }; } &&
22715 { ac_try='test -s conftest$ac_exeext'
22716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717 (eval $ac_try) 2>&5
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); }; }; then
22721 ol_cv_pthread_lpthread=yes
22723 echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.$ac_ext >&5
22726 ol_cv_pthread_lpthread=no
22728 rm -f conftest.err conftest.$ac_objext \
22729 conftest$ac_exeext conftest.$ac_ext
22731 cat >conftest.$ac_ext <<_ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h. */
22738 /* pthread test headers */
22739 #include <pthread.h>
22740 #if HAVE_PTHREADS < 7
22744 #define NULL (void*)0
22747 static void *task(p)
22750 return (void *) (p == NULL);
22754 int main(argc, argv)
22759 /* pthread test function */
22760 #ifndef PTHREAD_CREATE_DETACHED
22761 #define PTHREAD_CREATE_DETACHED 1
22765 int detach = PTHREAD_CREATE_DETACHED;
22767 #if HAVE_PTHREADS > 4
22768 /* Final pthreads */
22769 pthread_attr_t attr;
22771 status = pthread_attr_init(&attr);
22772 if( status ) return status;
22774 #if HAVE_PTHREADS < 7
22775 status = pthread_attr_setdetachstate(&attr, &detach);
22776 if( status < 0 ) status = errno;
22778 status = pthread_attr_setdetachstate(&attr, detach);
22780 if( status ) return status;
22781 status = pthread_create( &t, &attr, task, NULL );
22782 #if HAVE_PTHREADS < 7
22783 if( status < 0 ) status = errno;
22785 if( status ) return status;
22787 /* Draft 4 pthreads */
22788 status = pthread_create( &t, pthread_attr_default, task, NULL );
22789 if( status ) return errno;
22791 /* give thread a chance to complete */
22792 /* it should remain joinable and hence detachable */
22795 status = pthread_detach( &t );
22796 if( status ) return errno;
22799 #ifdef HAVE_LINUX_THREADS
22800 pthread_kill_other_threads_np();
22808 rm -f conftest$ac_exeext
22809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22810 (eval $ac_link) 2>&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22815 (eval $ac_try) 2>&5
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); }; }; then
22819 ol_cv_pthread_lpthread=yes
22821 echo "$as_me: program exited with status $ac_status" >&5
22822 echo "$as_me: failed program was:" >&5
22823 sed 's/^/| /' conftest.$ac_ext >&5
22825 ( exit $ac_status )
22826 ol_cv_pthread_lpthread=no
22828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22835 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22836 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22838 if test $ol_cv_pthread_lpthread = yes ; then
22839 ol_link_pthreads="-lpthread"
22840 ol_link_threads=posix
22844 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22845 if test "$ol_link_threads" = no ; then
22847 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22848 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22849 if test "${ol_cv_pthread_lc_r+set}" = set; then
22850 echo $ECHO_N "(cached) $ECHO_C" >&6
22857 if test "$cross_compiling" = yes; then
22858 cat >conftest.$ac_ext <<_ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h. */
22865 /* pthread test headers */
22866 #include <pthread.h>
22867 #if HAVE_PTHREADS < 7
22871 #define NULL (void*)0
22874 static void *task(p)
22877 return (void *) (p == NULL);
22884 /* pthread test function */
22885 #ifndef PTHREAD_CREATE_DETACHED
22886 #define PTHREAD_CREATE_DETACHED 1
22890 int detach = PTHREAD_CREATE_DETACHED;
22892 #if HAVE_PTHREADS > 4
22893 /* Final pthreads */
22894 pthread_attr_t attr;
22896 status = pthread_attr_init(&attr);
22897 if( status ) return status;
22899 #if HAVE_PTHREADS < 7
22900 status = pthread_attr_setdetachstate(&attr, &detach);
22901 if( status < 0 ) status = errno;
22903 status = pthread_attr_setdetachstate(&attr, detach);
22905 if( status ) return status;
22906 status = pthread_create( &t, &attr, task, NULL );
22907 #if HAVE_PTHREADS < 7
22908 if( status < 0 ) status = errno;
22910 if( status ) return status;
22912 /* Draft 4 pthreads */
22913 status = pthread_create( &t, pthread_attr_default, task, NULL );
22914 if( status ) return errno;
22916 /* give thread a chance to complete */
22917 /* it should remain joinable and hence detachable */
22920 status = pthread_detach( &t );
22921 if( status ) return errno;
22924 #ifdef HAVE_LINUX_THREADS
22925 pthread_kill_other_threads_np();
22934 rm -f conftest.$ac_objext conftest$ac_exeext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22936 (eval $ac_link) 2>conftest.er1
22938 grep -v '^ *+' conftest.er1 >conftest.err
22940 cat conftest.err >&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } &&
22943 { ac_try='test -z "$ac_c_werror_flag"
22944 || test ! -s conftest.err'
22945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22946 (eval $ac_try) 2>&5
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); }; } &&
22950 { ac_try='test -s conftest$ac_exeext'
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; }; then
22956 ol_cv_pthread_lc_r=yes
22958 echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22961 ol_cv_pthread_lc_r=no
22963 rm -f conftest.err conftest.$ac_objext \
22964 conftest$ac_exeext conftest.$ac_ext
22966 cat >conftest.$ac_ext <<_ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h. */
22973 /* pthread test headers */
22974 #include <pthread.h>
22975 #if HAVE_PTHREADS < 7
22979 #define NULL (void*)0
22982 static void *task(p)
22985 return (void *) (p == NULL);
22989 int main(argc, argv)
22994 /* pthread test function */
22995 #ifndef PTHREAD_CREATE_DETACHED
22996 #define PTHREAD_CREATE_DETACHED 1
23000 int detach = PTHREAD_CREATE_DETACHED;
23002 #if HAVE_PTHREADS > 4
23003 /* Final pthreads */
23004 pthread_attr_t attr;
23006 status = pthread_attr_init(&attr);
23007 if( status ) return status;
23009 #if HAVE_PTHREADS < 7
23010 status = pthread_attr_setdetachstate(&attr, &detach);
23011 if( status < 0 ) status = errno;
23013 status = pthread_attr_setdetachstate(&attr, detach);
23015 if( status ) return status;
23016 status = pthread_create( &t, &attr, task, NULL );
23017 #if HAVE_PTHREADS < 7
23018 if( status < 0 ) status = errno;
23020 if( status ) return status;
23022 /* Draft 4 pthreads */
23023 status = pthread_create( &t, pthread_attr_default, task, NULL );
23024 if( status ) return errno;
23026 /* give thread a chance to complete */
23027 /* it should remain joinable and hence detachable */
23030 status = pthread_detach( &t );
23031 if( status ) return errno;
23034 #ifdef HAVE_LINUX_THREADS
23035 pthread_kill_other_threads_np();
23043 rm -f conftest$ac_exeext
23044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23045 (eval $ac_link) 2>&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050 (eval $ac_try) 2>&5
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }; }; then
23054 ol_cv_pthread_lc_r=yes
23056 echo "$as_me: program exited with status $ac_status" >&5
23057 echo "$as_me: failed program was:" >&5
23058 sed 's/^/| /' conftest.$ac_ext >&5
23060 ( exit $ac_status )
23061 ol_cv_pthread_lc_r=no
23063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23070 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23071 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23073 if test $ol_cv_pthread_lc_r = yes ; then
23074 ol_link_pthreads="-lc_r"
23075 ol_link_threads=posix
23080 # Pthread try link: -threads (ol_cv_pthread_threads)
23081 if test "$ol_link_threads" = no ; then
23083 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23084 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23085 if test "${ol_cv_pthread_threads+set}" = set; then
23086 echo $ECHO_N "(cached) $ECHO_C" >&6
23091 LIBS="-threads $LIBS"
23093 if test "$cross_compiling" = yes; then
23094 cat >conftest.$ac_ext <<_ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h. */
23101 /* pthread test headers */
23102 #include <pthread.h>
23103 #if HAVE_PTHREADS < 7
23107 #define NULL (void*)0
23110 static void *task(p)
23113 return (void *) (p == NULL);
23120 /* pthread test function */
23121 #ifndef PTHREAD_CREATE_DETACHED
23122 #define PTHREAD_CREATE_DETACHED 1
23126 int detach = PTHREAD_CREATE_DETACHED;
23128 #if HAVE_PTHREADS > 4
23129 /* Final pthreads */
23130 pthread_attr_t attr;
23132 status = pthread_attr_init(&attr);
23133 if( status ) return status;
23135 #if HAVE_PTHREADS < 7
23136 status = pthread_attr_setdetachstate(&attr, &detach);
23137 if( status < 0 ) status = errno;
23139 status = pthread_attr_setdetachstate(&attr, detach);
23141 if( status ) return status;
23142 status = pthread_create( &t, &attr, task, NULL );
23143 #if HAVE_PTHREADS < 7
23144 if( status < 0 ) status = errno;
23146 if( status ) return status;
23148 /* Draft 4 pthreads */
23149 status = pthread_create( &t, pthread_attr_default, task, NULL );
23150 if( status ) return errno;
23152 /* give thread a chance to complete */
23153 /* it should remain joinable and hence detachable */
23156 status = pthread_detach( &t );
23157 if( status ) return errno;
23160 #ifdef HAVE_LINUX_THREADS
23161 pthread_kill_other_threads_np();
23170 rm -f conftest.$ac_objext conftest$ac_exeext
23171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23172 (eval $ac_link) 2>conftest.er1
23174 grep -v '^ *+' conftest.er1 >conftest.err
23176 cat conftest.err >&5
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } &&
23179 { ac_try='test -z "$ac_c_werror_flag"
23180 || test ! -s conftest.err'
23181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23182 (eval $ac_try) 2>&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); }; } &&
23186 { ac_try='test -s conftest$ac_exeext'
23187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188 (eval $ac_try) 2>&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); }; }; then
23192 ol_cv_pthread_threads=yes
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23197 ol_cv_pthread_threads=no
23199 rm -f conftest.err conftest.$ac_objext \
23200 conftest$ac_exeext conftest.$ac_ext
23202 cat >conftest.$ac_ext <<_ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h. */
23209 /* pthread test headers */
23210 #include <pthread.h>
23211 #if HAVE_PTHREADS < 7
23215 #define NULL (void*)0
23218 static void *task(p)
23221 return (void *) (p == NULL);
23225 int main(argc, argv)
23230 /* pthread test function */
23231 #ifndef PTHREAD_CREATE_DETACHED
23232 #define PTHREAD_CREATE_DETACHED 1
23236 int detach = PTHREAD_CREATE_DETACHED;
23238 #if HAVE_PTHREADS > 4
23239 /* Final pthreads */
23240 pthread_attr_t attr;
23242 status = pthread_attr_init(&attr);
23243 if( status ) return status;
23245 #if HAVE_PTHREADS < 7
23246 status = pthread_attr_setdetachstate(&attr, &detach);
23247 if( status < 0 ) status = errno;
23249 status = pthread_attr_setdetachstate(&attr, detach);
23251 if( status ) return status;
23252 status = pthread_create( &t, &attr, task, NULL );
23253 #if HAVE_PTHREADS < 7
23254 if( status < 0 ) status = errno;
23256 if( status ) return status;
23258 /* Draft 4 pthreads */
23259 status = pthread_create( &t, pthread_attr_default, task, NULL );
23260 if( status ) return errno;
23262 /* give thread a chance to complete */
23263 /* it should remain joinable and hence detachable */
23266 status = pthread_detach( &t );
23267 if( status ) return errno;
23270 #ifdef HAVE_LINUX_THREADS
23271 pthread_kill_other_threads_np();
23279 rm -f conftest$ac_exeext
23280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23281 (eval $ac_link) 2>&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; }; then
23290 ol_cv_pthread_threads=yes
23292 echo "$as_me: program exited with status $ac_status" >&5
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 ( exit $ac_status )
23297 ol_cv_pthread_threads=no
23299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23306 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23307 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23309 if test $ol_cv_pthread_threads = yes ; then
23310 ol_link_pthreads="-threads"
23311 ol_link_threads=posix
23316 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23317 if test "$ol_link_threads" = no ; then
23318 # try -lpthreads -lmach -lexc -lc_r
23319 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23320 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23321 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23322 echo $ECHO_N "(cached) $ECHO_C" >&6
23327 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23329 if test "$cross_compiling" = yes; then
23330 cat >conftest.$ac_ext <<_ACEOF
23333 cat confdefs.h >>conftest.$ac_ext
23334 cat >>conftest.$ac_ext <<_ACEOF
23335 /* end confdefs.h. */
23337 /* pthread test headers */
23338 #include <pthread.h>
23339 #if HAVE_PTHREADS < 7
23343 #define NULL (void*)0
23346 static void *task(p)
23349 return (void *) (p == NULL);
23356 /* pthread test function */
23357 #ifndef PTHREAD_CREATE_DETACHED
23358 #define PTHREAD_CREATE_DETACHED 1
23362 int detach = PTHREAD_CREATE_DETACHED;
23364 #if HAVE_PTHREADS > 4
23365 /* Final pthreads */
23366 pthread_attr_t attr;
23368 status = pthread_attr_init(&attr);
23369 if( status ) return status;
23371 #if HAVE_PTHREADS < 7
23372 status = pthread_attr_setdetachstate(&attr, &detach);
23373 if( status < 0 ) status = errno;
23375 status = pthread_attr_setdetachstate(&attr, detach);
23377 if( status ) return status;
23378 status = pthread_create( &t, &attr, task, NULL );
23379 #if HAVE_PTHREADS < 7
23380 if( status < 0 ) status = errno;
23382 if( status ) return status;
23384 /* Draft 4 pthreads */
23385 status = pthread_create( &t, pthread_attr_default, task, NULL );
23386 if( status ) return errno;
23388 /* give thread a chance to complete */
23389 /* it should remain joinable and hence detachable */
23392 status = pthread_detach( &t );
23393 if( status ) return errno;
23396 #ifdef HAVE_LINUX_THREADS
23397 pthread_kill_other_threads_np();
23406 rm -f conftest.$ac_objext conftest$ac_exeext
23407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23408 (eval $ac_link) 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } &&
23415 { ac_try='test -z "$ac_c_werror_flag"
23416 || test ! -s conftest.err'
23417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418 (eval $ac_try) 2>&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); }; } &&
23422 { ac_try='test -s conftest$ac_exeext'
23423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424 (eval $ac_try) 2>&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); }; }; then
23428 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23433 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23435 rm -f conftest.err conftest.$ac_objext \
23436 conftest$ac_exeext conftest.$ac_ext
23438 cat >conftest.$ac_ext <<_ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23445 /* pthread test headers */
23446 #include <pthread.h>
23447 #if HAVE_PTHREADS < 7
23451 #define NULL (void*)0
23454 static void *task(p)
23457 return (void *) (p == NULL);
23461 int main(argc, argv)
23466 /* pthread test function */
23467 #ifndef PTHREAD_CREATE_DETACHED
23468 #define PTHREAD_CREATE_DETACHED 1
23472 int detach = PTHREAD_CREATE_DETACHED;
23474 #if HAVE_PTHREADS > 4
23475 /* Final pthreads */
23476 pthread_attr_t attr;
23478 status = pthread_attr_init(&attr);
23479 if( status ) return status;
23481 #if HAVE_PTHREADS < 7
23482 status = pthread_attr_setdetachstate(&attr, &detach);
23483 if( status < 0 ) status = errno;
23485 status = pthread_attr_setdetachstate(&attr, detach);
23487 if( status ) return status;
23488 status = pthread_create( &t, &attr, task, NULL );
23489 #if HAVE_PTHREADS < 7
23490 if( status < 0 ) status = errno;
23492 if( status ) return status;
23494 /* Draft 4 pthreads */
23495 status = pthread_create( &t, pthread_attr_default, task, NULL );
23496 if( status ) return errno;
23498 /* give thread a chance to complete */
23499 /* it should remain joinable and hence detachable */
23502 status = pthread_detach( &t );
23503 if( status ) return errno;
23506 #ifdef HAVE_LINUX_THREADS
23507 pthread_kill_other_threads_np();
23515 rm -f conftest$ac_exeext
23516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23517 (eval $ac_link) 2>&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522 (eval $ac_try) 2>&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); }; }; then
23526 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23528 echo "$as_me: program exited with status $ac_status" >&5
23529 echo "$as_me: failed program was:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23532 ( exit $ac_status )
23533 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23542 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23543 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23545 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23546 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23547 ol_link_threads=posix
23551 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23552 if test "$ol_link_threads" = no ; then
23553 # try -lpthreads -lmach -lexc
23554 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23555 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23556 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23562 LIBS="-lpthreads -lmach -lexc $LIBS"
23564 if test "$cross_compiling" = yes; then
23565 cat >conftest.$ac_ext <<_ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23572 /* pthread test headers */
23573 #include <pthread.h>
23574 #if HAVE_PTHREADS < 7
23578 #define NULL (void*)0
23581 static void *task(p)
23584 return (void *) (p == NULL);
23591 /* pthread test function */
23592 #ifndef PTHREAD_CREATE_DETACHED
23593 #define PTHREAD_CREATE_DETACHED 1
23597 int detach = PTHREAD_CREATE_DETACHED;
23599 #if HAVE_PTHREADS > 4
23600 /* Final pthreads */
23601 pthread_attr_t attr;
23603 status = pthread_attr_init(&attr);
23604 if( status ) return status;
23606 #if HAVE_PTHREADS < 7
23607 status = pthread_attr_setdetachstate(&attr, &detach);
23608 if( status < 0 ) status = errno;
23610 status = pthread_attr_setdetachstate(&attr, detach);
23612 if( status ) return status;
23613 status = pthread_create( &t, &attr, task, NULL );
23614 #if HAVE_PTHREADS < 7
23615 if( status < 0 ) status = errno;
23617 if( status ) return status;
23619 /* Draft 4 pthreads */
23620 status = pthread_create( &t, pthread_attr_default, task, NULL );
23621 if( status ) return errno;
23623 /* give thread a chance to complete */
23624 /* it should remain joinable and hence detachable */
23627 status = pthread_detach( &t );
23628 if( status ) return errno;
23631 #ifdef HAVE_LINUX_THREADS
23632 pthread_kill_other_threads_np();
23641 rm -f conftest.$ac_objext conftest$ac_exeext
23642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23643 (eval $ac_link) 2>conftest.er1
23645 grep -v '^ *+' conftest.er1 >conftest.err
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } &&
23650 { ac_try='test -z "$ac_c_werror_flag"
23651 || test ! -s conftest.err'
23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; } &&
23657 { ac_try='test -s conftest$ac_exeext'
23658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); }; }; then
23663 ol_cv_pthread_lpthreads_lmach_lexc=yes
23665 echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23668 ol_cv_pthread_lpthreads_lmach_lexc=no
23670 rm -f conftest.err conftest.$ac_objext \
23671 conftest$ac_exeext conftest.$ac_ext
23673 cat >conftest.$ac_ext <<_ACEOF
23676 cat confdefs.h >>conftest.$ac_ext
23677 cat >>conftest.$ac_ext <<_ACEOF
23678 /* end confdefs.h. */
23680 /* pthread test headers */
23681 #include <pthread.h>
23682 #if HAVE_PTHREADS < 7
23686 #define NULL (void*)0
23689 static void *task(p)
23692 return (void *) (p == NULL);
23696 int main(argc, argv)
23701 /* pthread test function */
23702 #ifndef PTHREAD_CREATE_DETACHED
23703 #define PTHREAD_CREATE_DETACHED 1
23707 int detach = PTHREAD_CREATE_DETACHED;
23709 #if HAVE_PTHREADS > 4
23710 /* Final pthreads */
23711 pthread_attr_t attr;
23713 status = pthread_attr_init(&attr);
23714 if( status ) return status;
23716 #if HAVE_PTHREADS < 7
23717 status = pthread_attr_setdetachstate(&attr, &detach);
23718 if( status < 0 ) status = errno;
23720 status = pthread_attr_setdetachstate(&attr, detach);
23722 if( status ) return status;
23723 status = pthread_create( &t, &attr, task, NULL );
23724 #if HAVE_PTHREADS < 7
23725 if( status < 0 ) status = errno;
23727 if( status ) return status;
23729 /* Draft 4 pthreads */
23730 status = pthread_create( &t, pthread_attr_default, task, NULL );
23731 if( status ) return errno;
23733 /* give thread a chance to complete */
23734 /* it should remain joinable and hence detachable */
23737 status = pthread_detach( &t );
23738 if( status ) return errno;
23741 #ifdef HAVE_LINUX_THREADS
23742 pthread_kill_other_threads_np();
23750 rm -f conftest$ac_exeext
23751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23752 (eval $ac_link) 2>&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757 (eval $ac_try) 2>&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; }; then
23761 ol_cv_pthread_lpthreads_lmach_lexc=yes
23763 echo "$as_me: program exited with status $ac_status" >&5
23764 echo "$as_me: failed program was:" >&5
23765 sed 's/^/| /' conftest.$ac_ext >&5
23767 ( exit $ac_status )
23768 ol_cv_pthread_lpthreads_lmach_lexc=no
23770 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23777 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23778 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23780 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23781 ol_link_pthreads="-lpthreads -lmach -lexc"
23782 ol_link_threads=posix
23786 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23787 if test "$ol_link_threads" = no ; then
23788 # try -lpthreads -lexc
23789 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23790 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23791 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23797 LIBS="-lpthreads -lexc $LIBS"
23799 if test "$cross_compiling" = yes; then
23800 cat >conftest.$ac_ext <<_ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h. */
23807 /* pthread test headers */
23808 #include <pthread.h>
23809 #if HAVE_PTHREADS < 7
23813 #define NULL (void*)0
23816 static void *task(p)
23819 return (void *) (p == NULL);
23826 /* pthread test function */
23827 #ifndef PTHREAD_CREATE_DETACHED
23828 #define PTHREAD_CREATE_DETACHED 1
23832 int detach = PTHREAD_CREATE_DETACHED;
23834 #if HAVE_PTHREADS > 4
23835 /* Final pthreads */
23836 pthread_attr_t attr;
23838 status = pthread_attr_init(&attr);
23839 if( status ) return status;
23841 #if HAVE_PTHREADS < 7
23842 status = pthread_attr_setdetachstate(&attr, &detach);
23843 if( status < 0 ) status = errno;
23845 status = pthread_attr_setdetachstate(&attr, detach);
23847 if( status ) return status;
23848 status = pthread_create( &t, &attr, task, NULL );
23849 #if HAVE_PTHREADS < 7
23850 if( status < 0 ) status = errno;
23852 if( status ) return status;
23854 /* Draft 4 pthreads */
23855 status = pthread_create( &t, pthread_attr_default, task, NULL );
23856 if( status ) return errno;
23858 /* give thread a chance to complete */
23859 /* it should remain joinable and hence detachable */
23862 status = pthread_detach( &t );
23863 if( status ) return errno;
23866 #ifdef HAVE_LINUX_THREADS
23867 pthread_kill_other_threads_np();
23876 rm -f conftest.$ac_objext conftest$ac_exeext
23877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23878 (eval $ac_link) 2>conftest.er1
23880 grep -v '^ *+' conftest.er1 >conftest.err
23882 cat conftest.err >&5
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } &&
23885 { ac_try='test -z "$ac_c_werror_flag"
23886 || test ! -s conftest.err'
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; } &&
23892 { ac_try='test -s conftest$ac_exeext'
23893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894 (eval $ac_try) 2>&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); }; }; then
23898 ol_cv_pthread_lpthreads_lexc=yes
23900 echo "$as_me: failed program was:" >&5
23901 sed 's/^/| /' conftest.$ac_ext >&5
23903 ol_cv_pthread_lpthreads_lexc=no
23905 rm -f conftest.err conftest.$ac_objext \
23906 conftest$ac_exeext conftest.$ac_ext
23908 cat >conftest.$ac_ext <<_ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23915 /* pthread test headers */
23916 #include <pthread.h>
23917 #if HAVE_PTHREADS < 7
23921 #define NULL (void*)0
23924 static void *task(p)
23927 return (void *) (p == NULL);
23931 int main(argc, argv)
23936 /* pthread test function */
23937 #ifndef PTHREAD_CREATE_DETACHED
23938 #define PTHREAD_CREATE_DETACHED 1
23942 int detach = PTHREAD_CREATE_DETACHED;
23944 #if HAVE_PTHREADS > 4
23945 /* Final pthreads */
23946 pthread_attr_t attr;
23948 status = pthread_attr_init(&attr);
23949 if( status ) return status;
23951 #if HAVE_PTHREADS < 7
23952 status = pthread_attr_setdetachstate(&attr, &detach);
23953 if( status < 0 ) status = errno;
23955 status = pthread_attr_setdetachstate(&attr, detach);
23957 if( status ) return status;
23958 status = pthread_create( &t, &attr, task, NULL );
23959 #if HAVE_PTHREADS < 7
23960 if( status < 0 ) status = errno;
23962 if( status ) return status;
23964 /* Draft 4 pthreads */
23965 status = pthread_create( &t, pthread_attr_default, task, NULL );
23966 if( status ) return errno;
23968 /* give thread a chance to complete */
23969 /* it should remain joinable and hence detachable */
23972 status = pthread_detach( &t );
23973 if( status ) return errno;
23976 #ifdef HAVE_LINUX_THREADS
23977 pthread_kill_other_threads_np();
23985 rm -f conftest$ac_exeext
23986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23987 (eval $ac_link) 2>&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992 (eval $ac_try) 2>&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); }; }; then
23996 ol_cv_pthread_lpthreads_lexc=yes
23998 echo "$as_me: program exited with status $ac_status" >&5
23999 echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24002 ( exit $ac_status )
24003 ol_cv_pthread_lpthreads_lexc=no
24005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24012 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24013 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
24015 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24016 ol_link_pthreads="-lpthreads -lexc"
24017 ol_link_threads=posix
24022 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24023 if test "$ol_link_threads" = no ; then
24025 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24026 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
24027 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24028 echo $ECHO_N "(cached) $ECHO_C" >&6
24033 LIBS="-lpthreads $LIBS"
24035 if test "$cross_compiling" = yes; then
24036 cat >conftest.$ac_ext <<_ACEOF
24039 cat confdefs.h >>conftest.$ac_ext
24040 cat >>conftest.$ac_ext <<_ACEOF
24041 /* end confdefs.h. */
24043 /* pthread test headers */
24044 #include <pthread.h>
24045 #if HAVE_PTHREADS < 7
24049 #define NULL (void*)0
24052 static void *task(p)
24055 return (void *) (p == NULL);
24062 /* pthread test function */
24063 #ifndef PTHREAD_CREATE_DETACHED
24064 #define PTHREAD_CREATE_DETACHED 1
24068 int detach = PTHREAD_CREATE_DETACHED;
24070 #if HAVE_PTHREADS > 4
24071 /* Final pthreads */
24072 pthread_attr_t attr;
24074 status = pthread_attr_init(&attr);
24075 if( status ) return status;
24077 #if HAVE_PTHREADS < 7
24078 status = pthread_attr_setdetachstate(&attr, &detach);
24079 if( status < 0 ) status = errno;
24081 status = pthread_attr_setdetachstate(&attr, detach);
24083 if( status ) return status;
24084 status = pthread_create( &t, &attr, task, NULL );
24085 #if HAVE_PTHREADS < 7
24086 if( status < 0 ) status = errno;
24088 if( status ) return status;
24090 /* Draft 4 pthreads */
24091 status = pthread_create( &t, pthread_attr_default, task, NULL );
24092 if( status ) return errno;
24094 /* give thread a chance to complete */
24095 /* it should remain joinable and hence detachable */
24098 status = pthread_detach( &t );
24099 if( status ) return errno;
24102 #ifdef HAVE_LINUX_THREADS
24103 pthread_kill_other_threads_np();
24112 rm -f conftest.$ac_objext conftest$ac_exeext
24113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24114 (eval $ac_link) 2>conftest.er1
24116 grep -v '^ *+' conftest.er1 >conftest.err
24118 cat conftest.err >&5
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); } &&
24121 { ac_try='test -z "$ac_c_werror_flag"
24122 || test ! -s conftest.err'
24123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124 (eval $ac_try) 2>&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); }; } &&
24128 { ac_try='test -s conftest$ac_exeext'
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; }; then
24134 ol_cv_pthread_lib_lpthreads=yes
24136 echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24139 ol_cv_pthread_lib_lpthreads=no
24141 rm -f conftest.err conftest.$ac_objext \
24142 conftest$ac_exeext conftest.$ac_ext
24144 cat >conftest.$ac_ext <<_ACEOF
24147 cat confdefs.h >>conftest.$ac_ext
24148 cat >>conftest.$ac_ext <<_ACEOF
24149 /* end confdefs.h. */
24151 /* pthread test headers */
24152 #include <pthread.h>
24153 #if HAVE_PTHREADS < 7
24157 #define NULL (void*)0
24160 static void *task(p)
24163 return (void *) (p == NULL);
24167 int main(argc, argv)
24172 /* pthread test function */
24173 #ifndef PTHREAD_CREATE_DETACHED
24174 #define PTHREAD_CREATE_DETACHED 1
24178 int detach = PTHREAD_CREATE_DETACHED;
24180 #if HAVE_PTHREADS > 4
24181 /* Final pthreads */
24182 pthread_attr_t attr;
24184 status = pthread_attr_init(&attr);
24185 if( status ) return status;
24187 #if HAVE_PTHREADS < 7
24188 status = pthread_attr_setdetachstate(&attr, &detach);
24189 if( status < 0 ) status = errno;
24191 status = pthread_attr_setdetachstate(&attr, detach);
24193 if( status ) return status;
24194 status = pthread_create( &t, &attr, task, NULL );
24195 #if HAVE_PTHREADS < 7
24196 if( status < 0 ) status = errno;
24198 if( status ) return status;
24200 /* Draft 4 pthreads */
24201 status = pthread_create( &t, pthread_attr_default, task, NULL );
24202 if( status ) return errno;
24204 /* give thread a chance to complete */
24205 /* it should remain joinable and hence detachable */
24208 status = pthread_detach( &t );
24209 if( status ) return errno;
24212 #ifdef HAVE_LINUX_THREADS
24213 pthread_kill_other_threads_np();
24221 rm -f conftest$ac_exeext
24222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24223 (eval $ac_link) 2>&5
24225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24228 (eval $ac_try) 2>&5
24230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231 (exit $ac_status); }; }; then
24232 ol_cv_pthread_lib_lpthreads=yes
24234 echo "$as_me: program exited with status $ac_status" >&5
24235 echo "$as_me: failed program was:" >&5
24236 sed 's/^/| /' conftest.$ac_ext >&5
24238 ( exit $ac_status )
24239 ol_cv_pthread_lib_lpthreads=no
24241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24248 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24249 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24251 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24252 ol_link_pthreads="-lpthreads"
24253 ol_link_threads=posix
24258 if test $ol_link_threads != no ; then
24259 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24261 save_CPPFLAGS="$CPPFLAGS"
24263 LIBS="$LTHREAD_LIBS $LIBS"
24268 for ac_func in sched_yield pthread_yield thr_yield
24270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24271 echo "$as_me:$LINENO: checking for $ac_func" >&5
24272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24273 if eval "test \"\${$as_ac_var+set}\" = set"; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24276 cat >conftest.$ac_ext <<_ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h. */
24282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24284 #define $ac_func innocuous_$ac_func
24286 /* System header to define __stub macros and hopefully few prototypes,
24287 which can conflict with char $ac_func (); below.
24288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24289 <limits.h> exists even on freestanding compilers. */
24292 # include <limits.h>
24294 # include <assert.h>
24299 /* Override any gcc2 internal prototype to avoid an error. */
24304 /* We use char because int might match the return type of a gcc2
24305 builtin and then its argument prototype would still apply. */
24307 /* The GNU C library defines this for functions which it implements
24308 to always fail with ENOSYS. Some functions are actually named
24309 something starting with __ and the normal name is an alias. */
24310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24313 char (*f) () = $ac_func;
24322 return f != $ac_func;
24327 rm -f conftest.$ac_objext conftest$ac_exeext
24328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24329 (eval $ac_link) 2>conftest.er1
24331 grep -v '^ *+' conftest.er1 >conftest.err
24333 cat conftest.err >&5
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } &&
24336 { ac_try='test -z "$ac_c_werror_flag"
24337 || test ! -s conftest.err'
24338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24339 (eval $ac_try) 2>&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); }; } &&
24343 { ac_try='test -s conftest$ac_exeext'
24344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345 (eval $ac_try) 2>&5
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); }; }; then
24349 eval "$as_ac_var=yes"
24351 echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.$ac_ext >&5
24354 eval "$as_ac_var=no"
24356 rm -f conftest.err conftest.$ac_objext \
24357 conftest$ac_exeext conftest.$ac_ext
24359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24361 if test `eval echo '${'$as_ac_var'}'` = yes; then
24362 cat >>confdefs.h <<_ACEOF
24363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24370 if test $ac_cv_func_sched_yield = no &&
24371 test $ac_cv_func_pthread_yield = no &&
24372 test $ac_cv_func_thr_yield = no ; then
24373 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24374 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24375 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24376 echo $ECHO_N "(cached) $ECHO_C" >&6
24378 ac_check_lib_save_LIBS=$LIBS
24380 cat >conftest.$ac_ext <<_ACEOF
24383 cat confdefs.h >>conftest.$ac_ext
24384 cat >>conftest.$ac_ext <<_ACEOF
24385 /* end confdefs.h. */
24387 /* Override any gcc2 internal prototype to avoid an error. */
24391 /* We use char because int might match the return type of a gcc2
24392 builtin and then its argument prototype would still apply. */
24393 char sched_yield ();
24402 rm -f conftest.$ac_objext conftest$ac_exeext
24403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24404 (eval $ac_link) 2>conftest.er1
24406 grep -v '^ *+' conftest.er1 >conftest.err
24408 cat conftest.err >&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); } &&
24411 { ac_try='test -z "$ac_c_werror_flag"
24412 || test ! -s conftest.err'
24413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24414 (eval $ac_try) 2>&5
24416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417 (exit $ac_status); }; } &&
24418 { ac_try='test -s conftest$ac_exeext'
24419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24420 (eval $ac_try) 2>&5
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); }; }; then
24424 ac_cv_lib_rt_sched_yield=yes
24426 echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24429 ac_cv_lib_rt_sched_yield=no
24431 rm -f conftest.err conftest.$ac_objext \
24432 conftest$ac_exeext conftest.$ac_ext
24433 LIBS=$ac_check_lib_save_LIBS
24435 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24436 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24437 if test $ac_cv_lib_rt_sched_yield = yes; then
24438 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24440 cat >>confdefs.h <<\_ACEOF
24441 #define HAVE_SCHED_YIELD 1
24444 ac_cv_func_sched_yield=yes
24446 ac_cv_func_sched_yield=no
24450 if test $ac_cv_func_sched_yield = no &&
24451 test $ac_cv_func_pthread_yield = no &&
24452 test "$ac_cv_func_thr_yield" = no ; then
24453 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24454 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24459 for ac_func in pthread_kill pthread_rwlock_destroy
24461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24462 echo "$as_me:$LINENO: checking for $ac_func" >&5
24463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24464 if eval "test \"\${$as_ac_var+set}\" = set"; then
24465 echo $ECHO_N "(cached) $ECHO_C" >&6
24467 cat >conftest.$ac_ext <<_ACEOF
24470 cat confdefs.h >>conftest.$ac_ext
24471 cat >>conftest.$ac_ext <<_ACEOF
24472 /* end confdefs.h. */
24473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24475 #define $ac_func innocuous_$ac_func
24477 /* System header to define __stub macros and hopefully few prototypes,
24478 which can conflict with char $ac_func (); below.
24479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24480 <limits.h> exists even on freestanding compilers. */
24483 # include <limits.h>
24485 # include <assert.h>
24490 /* Override any gcc2 internal prototype to avoid an error. */
24495 /* We use char because int might match the return type of a gcc2
24496 builtin and then its argument prototype would still apply. */
24498 /* The GNU C library defines this for functions which it implements
24499 to always fail with ENOSYS. Some functions are actually named
24500 something starting with __ and the normal name is an alias. */
24501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24504 char (*f) () = $ac_func;
24513 return f != $ac_func;
24518 rm -f conftest.$ac_objext conftest$ac_exeext
24519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24520 (eval $ac_link) 2>conftest.er1
24522 grep -v '^ *+' conftest.er1 >conftest.err
24524 cat conftest.err >&5
24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); } &&
24527 { ac_try='test -z "$ac_c_werror_flag"
24528 || test ! -s conftest.err'
24529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24530 (eval $ac_try) 2>&5
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); }; } &&
24534 { ac_try='test -s conftest$ac_exeext'
24535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24536 (eval $ac_try) 2>&5
24538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); }; }; then
24540 eval "$as_ac_var=yes"
24542 echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24545 eval "$as_ac_var=no"
24547 rm -f conftest.err conftest.$ac_objext \
24548 conftest$ac_exeext conftest.$ac_ext
24550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24552 if test `eval echo '${'$as_ac_var'}'` = yes; then
24553 cat >>confdefs.h <<_ACEOF
24554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24561 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24562 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24563 if test "${ol_cv_func_pthread_detach+set}" = set; then
24564 echo $ECHO_N "(cached) $ECHO_C" >&6
24567 cat >conftest.$ac_ext <<_ACEOF
24570 cat confdefs.h >>conftest.$ac_ext
24571 cat >>conftest.$ac_ext <<_ACEOF
24572 /* end confdefs.h. */
24574 #include <pthread.h>
24576 #define NULL (void*)0
24582 pthread_detach(NULL);
24587 rm -f conftest.$ac_objext conftest$ac_exeext
24588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24589 (eval $ac_link) 2>conftest.er1
24591 grep -v '^ *+' conftest.er1 >conftest.err
24593 cat conftest.err >&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } &&
24596 { ac_try='test -z "$ac_c_werror_flag"
24597 || test ! -s conftest.err'
24598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24599 (eval $ac_try) 2>&5
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; } &&
24603 { ac_try='test -s conftest$ac_exeext'
24604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24605 (eval $ac_try) 2>&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); }; }; then
24609 ol_cv_func_pthread_detach=yes
24611 echo "$as_me: failed program was:" >&5
24612 sed 's/^/| /' conftest.$ac_ext >&5
24614 ol_cv_func_pthread_detach=no
24616 rm -f conftest.err conftest.$ac_objext \
24617 conftest$ac_exeext conftest.$ac_ext
24620 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24621 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24623 if test $ol_cv_func_pthread_detach = no ; then
24624 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24625 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24626 { (exit 1); exit 1; }; }
24630 cat >>confdefs.h <<\_ACEOF
24631 #define HAVE_PTHREAD_DETACH 1
24640 pthread_setconcurrency \
24641 pthread_getconcurrency \
24642 thr_setconcurrency \
24643 thr_getconcurrency \
24646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24647 echo "$as_me:$LINENO: checking for $ac_func" >&5
24648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24649 if eval "test \"\${$as_ac_var+set}\" = set"; then
24650 echo $ECHO_N "(cached) $ECHO_C" >&6
24652 cat >conftest.$ac_ext <<_ACEOF
24655 cat confdefs.h >>conftest.$ac_ext
24656 cat >>conftest.$ac_ext <<_ACEOF
24657 /* end confdefs.h. */
24658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24660 #define $ac_func innocuous_$ac_func
24662 /* System header to define __stub macros and hopefully few prototypes,
24663 which can conflict with char $ac_func (); below.
24664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24665 <limits.h> exists even on freestanding compilers. */
24668 # include <limits.h>
24670 # include <assert.h>
24675 /* Override any gcc2 internal prototype to avoid an error. */
24680 /* We use char because int might match the return type of a gcc2
24681 builtin and then its argument prototype would still apply. */
24683 /* The GNU C library defines this for functions which it implements
24684 to always fail with ENOSYS. Some functions are actually named
24685 something starting with __ and the normal name is an alias. */
24686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24689 char (*f) () = $ac_func;
24698 return f != $ac_func;
24703 rm -f conftest.$ac_objext conftest$ac_exeext
24704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24705 (eval $ac_link) 2>conftest.er1
24707 grep -v '^ *+' conftest.er1 >conftest.err
24709 cat conftest.err >&5
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } &&
24712 { ac_try='test -z "$ac_c_werror_flag"
24713 || test ! -s conftest.err'
24714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24715 (eval $ac_try) 2>&5
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); }; } &&
24719 { ac_try='test -s conftest$ac_exeext'
24720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721 (eval $ac_try) 2>&5
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); }; }; then
24725 eval "$as_ac_var=yes"
24727 echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24730 eval "$as_ac_var=no"
24732 rm -f conftest.err conftest.$ac_objext \
24733 conftest$ac_exeext conftest.$ac_ext
24735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24737 if test `eval echo '${'$as_ac_var'}'` = yes; then
24738 cat >>confdefs.h <<_ACEOF
24739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24748 for ac_func in pthread_kill_other_threads_np
24750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24751 echo "$as_me:$LINENO: checking for $ac_func" >&5
24752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24753 if eval "test \"\${$as_ac_var+set}\" = set"; then
24754 echo $ECHO_N "(cached) $ECHO_C" >&6
24756 cat >conftest.$ac_ext <<_ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h. */
24762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24764 #define $ac_func innocuous_$ac_func
24766 /* System header to define __stub macros and hopefully few prototypes,
24767 which can conflict with char $ac_func (); below.
24768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24769 <limits.h> exists even on freestanding compilers. */
24772 # include <limits.h>
24774 # include <assert.h>
24779 /* Override any gcc2 internal prototype to avoid an error. */
24784 /* We use char because int might match the return type of a gcc2
24785 builtin and then its argument prototype would still apply. */
24787 /* The GNU C library defines this for functions which it implements
24788 to always fail with ENOSYS. Some functions are actually named
24789 something starting with __ and the normal name is an alias. */
24790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24793 char (*f) () = $ac_func;
24802 return f != $ac_func;
24807 rm -f conftest.$ac_objext conftest$ac_exeext
24808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24809 (eval $ac_link) 2>conftest.er1
24811 grep -v '^ *+' conftest.er1 >conftest.err
24813 cat conftest.err >&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } &&
24816 { ac_try='test -z "$ac_c_werror_flag"
24817 || test ! -s conftest.err'
24818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24819 (eval $ac_try) 2>&5
24821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822 (exit $ac_status); }; } &&
24823 { ac_try='test -s conftest$ac_exeext'
24824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24825 (eval $ac_try) 2>&5
24827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828 (exit $ac_status); }; }; then
24829 eval "$as_ac_var=yes"
24831 echo "$as_me: failed program was:" >&5
24832 sed 's/^/| /' conftest.$ac_ext >&5
24834 eval "$as_ac_var=no"
24836 rm -f conftest.err conftest.$ac_objext \
24837 conftest$ac_exeext conftest.$ac_ext
24839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24841 if test `eval echo '${'$as_ac_var'}'` = yes; then
24842 cat >>confdefs.h <<_ACEOF
24843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24849 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24850 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24851 if test "${ol_cv_sys_linux_threads+set}" = set; then
24852 echo $ECHO_N "(cached) $ECHO_C" >&6
24854 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24856 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24857 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24862 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24863 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24864 if test "${ol_cv_linux_threads+set}" = set; then
24865 echo $ECHO_N "(cached) $ECHO_C" >&6
24868 if test $ol_cv_header_linux_threads = yes &&
24869 test $ol_cv_sys_linux_threads = yes; then
24870 ol_cv_linux_threads=yes
24871 elif test $ol_cv_header_linux_threads = no &&
24872 test $ol_cv_sys_linux_threads = no; then
24873 ol_cv_linux_threads=no
24875 ol_cv_linux_threads=error
24879 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24880 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24883 if test $ol_cv_linux_threads = error; then
24884 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24885 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24886 { (exit 1); exit 1; }; };
24889 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24890 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24891 if test "${ol_cv_pthread_create_works+set}" = set; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
24895 if test "$cross_compiling" = yes; then
24896 ol_cv_pthread_create_works=yes
24898 cat >conftest.$ac_ext <<_ACEOF
24901 cat confdefs.h >>conftest.$ac_ext
24902 cat >>conftest.$ac_ext <<_ACEOF
24903 /* end confdefs.h. */
24905 /* pthread test headers */
24906 #include <pthread.h>
24907 #if HAVE_PTHREADS < 7
24911 #define NULL (void*)0
24914 static void *task(p)
24917 return (void *) (p == NULL);
24921 int main(argc, argv)
24926 /* pthread test function */
24927 #ifndef PTHREAD_CREATE_DETACHED
24928 #define PTHREAD_CREATE_DETACHED 1
24932 int detach = PTHREAD_CREATE_DETACHED;
24934 #if HAVE_PTHREADS > 4
24935 /* Final pthreads */
24936 pthread_attr_t attr;
24938 status = pthread_attr_init(&attr);
24939 if( status ) return status;
24941 #if HAVE_PTHREADS < 7
24942 status = pthread_attr_setdetachstate(&attr, &detach);
24943 if( status < 0 ) status = errno;
24945 status = pthread_attr_setdetachstate(&attr, detach);
24947 if( status ) return status;
24948 status = pthread_create( &t, &attr, task, NULL );
24949 #if HAVE_PTHREADS < 7
24950 if( status < 0 ) status = errno;
24952 if( status ) return status;
24954 /* Draft 4 pthreads */
24955 status = pthread_create( &t, pthread_attr_default, task, NULL );
24956 if( status ) return errno;
24958 /* give thread a chance to complete */
24959 /* it should remain joinable and hence detachable */
24962 status = pthread_detach( &t );
24963 if( status ) return errno;
24966 #ifdef HAVE_LINUX_THREADS
24967 pthread_kill_other_threads_np();
24975 rm -f conftest$ac_exeext
24976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24977 (eval $ac_link) 2>&5
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24982 (eval $ac_try) 2>&5
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); }; }; then
24986 ol_cv_pthread_create_works=yes
24988 echo "$as_me: program exited with status $ac_status" >&5
24989 echo "$as_me: failed program was:" >&5
24990 sed 's/^/| /' conftest.$ac_ext >&5
24992 ( exit $ac_status )
24993 ol_cv_pthread_create_works=no
24995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24998 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24999 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25001 if test $ol_cv_pthread_create_works = no ; then
25002 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25003 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25004 { (exit 1); exit 1; }; }
25007 ol_replace_broken_yield=no
25009 if test $ol_replace_broken_yield = yes ; then
25011 cat >>confdefs.h <<\_ACEOF
25012 #define REPLACE_BROKEN_YIELD 1
25017 if test $ol_with_yielding_select = auto ; then
25018 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25019 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25020 if test "${ol_cv_pthread_select_yields+set}" = set; then
25021 echo $ECHO_N "(cached) $ECHO_C" >&6
25024 if test "$cross_compiling" = yes; then
25025 ol_cv_pthread_select_yields=cross
25027 cat >conftest.$ac_ext <<_ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h. */
25034 #include <sys/types.h>
25035 #include <sys/time.h>
25036 #include <unistd.h>
25037 #include <pthread.h>
25039 #define NULL (void*) 0
25042 static int fildes[2];
25044 static void *task(p)
25056 FD_SET(fildes[0], &rfds);
25058 /* we're not interested in any fds */
25059 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25066 exit(0); /* if we exit here, the select blocked the whole process */
25069 int main(argc, argv)
25075 /* create a pipe to select */
25076 if(pipe(&fildes[0])) {
25081 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25082 (void) pthread_setconcurrency(2);
25084 #ifdef HAVE_THR_SETCONCURRENCY
25085 /* Set Solaris LWP concurrency to 2 */
25086 thr_setconcurrency(2);
25090 #if HAVE_PTHREADS < 6
25091 pthread_create(&t, pthread_attr_default, task, NULL);
25093 pthread_create(&t, NULL, task, NULL);
25096 /* make sure task runs first */
25099 #elif defined( HAVE_SCHED_YIELD )
25101 #elif defined( HAVE_PTHREAD_YIELD )
25108 rm -f conftest$ac_exeext
25109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25110 (eval $ac_link) 2>&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25115 (eval $ac_try) 2>&5
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); }; }; then
25119 ol_cv_pthread_select_yields=no
25121 echo "$as_me: program exited with status $ac_status" >&5
25122 echo "$as_me: failed program was:" >&5
25123 sed 's/^/| /' conftest.$ac_ext >&5
25125 ( exit $ac_status )
25126 ol_cv_pthread_select_yields=yes
25128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25131 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25132 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25134 if test $ol_cv_pthread_select_yields = cross ; then
25135 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25136 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25137 { (exit 1); exit 1; }; }
25140 if test $ol_cv_pthread_select_yields = yes ; then
25141 ol_with_yielding_select=yes
25145 CPPFLAGS="$save_CPPFLAGS"
25148 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25149 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25150 { (exit 1); exit 1; }; }
25154 if test $ol_with_threads = posix ; then
25155 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25156 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25157 { (exit 1); exit 1; }; }
25162 case $ol_with_threads in auto | yes | mach)
25166 for ac_header in mach/cthreads.h cthreads.h
25168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25170 echo "$as_me:$LINENO: checking for $ac_header" >&5
25171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25173 echo $ECHO_N "(cached) $ECHO_C" >&6
25175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25178 # Is the header compilable?
25179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25181 cat >conftest.$ac_ext <<_ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h. */
25187 $ac_includes_default
25188 #include <$ac_header>
25190 rm -f conftest.$ac_objext
25191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25192 (eval $ac_compile) 2>conftest.er1
25194 grep -v '^ *+' conftest.er1 >conftest.err
25196 cat conftest.err >&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); } &&
25199 { ac_try='test -z "$ac_c_werror_flag"
25200 || test ! -s conftest.err'
25201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202 (eval $ac_try) 2>&5
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); }; } &&
25206 { ac_try='test -s conftest.$ac_objext'
25207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25208 (eval $ac_try) 2>&5
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); }; }; then
25212 ac_header_compiler=yes
25214 echo "$as_me: failed program was:" >&5
25215 sed 's/^/| /' conftest.$ac_ext >&5
25217 ac_header_compiler=no
25219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25221 echo "${ECHO_T}$ac_header_compiler" >&6
25223 # Is the header present?
25224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25226 cat >conftest.$ac_ext <<_ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h. */
25232 #include <$ac_header>
25234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25237 grep -v '^ *+' conftest.er1 >conftest.err
25239 cat conftest.err >&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } >/dev/null; then
25242 if test -s conftest.err; then
25243 ac_cpp_err=$ac_c_preproc_warn_flag
25244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25251 if test -z "$ac_cpp_err"; then
25252 ac_header_preproc=yes
25254 echo "$as_me: failed program was:" >&5
25255 sed 's/^/| /' conftest.$ac_ext >&5
25257 ac_header_preproc=no
25259 rm -f conftest.err conftest.$ac_ext
25260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25261 echo "${ECHO_T}$ac_header_preproc" >&6
25263 # So? What about this header?
25264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25270 ac_header_preproc=yes
25273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25287 ## --------------------------------------------- ##
25288 ## Report this to <http://www.openldap.org/its/> ##
25289 ## --------------------------------------------- ##
25292 sed "s/^/$as_me: WARNING: /" >&2
25295 echo "$as_me:$LINENO: checking for $ac_header" >&5
25296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25298 echo $ECHO_N "(cached) $ECHO_C" >&6
25300 eval "$as_ac_Header=\$ac_header_preproc"
25302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25307 cat >>confdefs.h <<_ACEOF
25308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25315 if test $ac_cv_header_mach_cthreads_h = yes ; then
25316 ol_with_threads=found
25318 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25319 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25320 if test "${ac_cv_func_cthread_fork+set}" = set; then
25321 echo $ECHO_N "(cached) $ECHO_C" >&6
25323 cat >conftest.$ac_ext <<_ACEOF
25326 cat confdefs.h >>conftest.$ac_ext
25327 cat >>conftest.$ac_ext <<_ACEOF
25328 /* end confdefs.h. */
25329 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25331 #define cthread_fork innocuous_cthread_fork
25333 /* System header to define __stub macros and hopefully few prototypes,
25334 which can conflict with char cthread_fork (); below.
25335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25336 <limits.h> exists even on freestanding compilers. */
25339 # include <limits.h>
25341 # include <assert.h>
25344 #undef cthread_fork
25346 /* Override any gcc2 internal prototype to avoid an error. */
25351 /* We use char because int might match the return type of a gcc2
25352 builtin and then its argument prototype would still apply. */
25353 char cthread_fork ();
25354 /* The GNU C library defines this for functions which it implements
25355 to always fail with ENOSYS. Some functions are actually named
25356 something starting with __ and the normal name is an alias. */
25357 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25360 char (*f) () = cthread_fork;
25369 return f != cthread_fork;
25374 rm -f conftest.$ac_objext conftest$ac_exeext
25375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25376 (eval $ac_link) 2>conftest.er1
25378 grep -v '^ *+' conftest.er1 >conftest.err
25380 cat conftest.err >&5
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } &&
25383 { ac_try='test -z "$ac_c_werror_flag"
25384 || test ! -s conftest.err'
25385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25386 (eval $ac_try) 2>&5
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); }; } &&
25390 { ac_try='test -s conftest$ac_exeext'
25391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25392 (eval $ac_try) 2>&5
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); }; }; then
25396 ac_cv_func_cthread_fork=yes
25398 echo "$as_me: failed program was:" >&5
25399 sed 's/^/| /' conftest.$ac_ext >&5
25401 ac_cv_func_cthread_fork=no
25403 rm -f conftest.err conftest.$ac_objext \
25404 conftest$ac_exeext conftest.$ac_ext
25406 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25407 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25408 if test $ac_cv_func_cthread_fork = yes; then
25409 ol_link_threads=yes
25413 if test $ol_link_threads = no ; then
25414 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25415 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25416 if test "${ol_cv_cthread_all_load+set}" = set; then
25417 echo $ECHO_N "(cached) $ECHO_C" >&6
25421 LIBS="-all_load $LIBS"
25422 cat >conftest.$ac_ext <<_ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h. */
25428 #include <mach/cthreads.h>
25433 cthread_fork((void *)0, (void *)0);
25439 rm -f conftest.$ac_objext conftest$ac_exeext
25440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25441 (eval $ac_link) 2>conftest.er1
25443 grep -v '^ *+' conftest.er1 >conftest.err
25445 cat conftest.err >&5
25446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25447 (exit $ac_status); } &&
25448 { ac_try='test -z "$ac_c_werror_flag"
25449 || test ! -s conftest.err'
25450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25451 (eval $ac_try) 2>&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); }; } &&
25455 { ac_try='test -s conftest$ac_exeext'
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; }; then
25461 ol_cv_cthread_all_load=yes
25463 echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25466 ol_cv_cthread_all_load=no
25468 rm -f conftest.err conftest.$ac_objext \
25469 conftest$ac_exeext conftest.$ac_ext
25473 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25474 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25476 if test $ol_cv_cthread_all_load = yes ; then
25477 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25478 ol_link_threads=mach
25479 ol_with_threads=found
25483 elif test $ac_cv_header_cthreads_h = yes ; then
25485 ol_with_threads=found
25488 LIBS="$LIBS -lthreads"
25489 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25490 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25491 if test "${ac_cv_func_cthread_fork+set}" = set; then
25492 echo $ECHO_N "(cached) $ECHO_C" >&6
25494 cat >conftest.$ac_ext <<_ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h. */
25500 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25502 #define cthread_fork innocuous_cthread_fork
25504 /* System header to define __stub macros and hopefully few prototypes,
25505 which can conflict with char cthread_fork (); below.
25506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25507 <limits.h> exists even on freestanding compilers. */
25510 # include <limits.h>
25512 # include <assert.h>
25515 #undef cthread_fork
25517 /* Override any gcc2 internal prototype to avoid an error. */
25522 /* We use char because int might match the return type of a gcc2
25523 builtin and then its argument prototype would still apply. */
25524 char cthread_fork ();
25525 /* The GNU C library defines this for functions which it implements
25526 to always fail with ENOSYS. Some functions are actually named
25527 something starting with __ and the normal name is an alias. */
25528 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25531 char (*f) () = cthread_fork;
25540 return f != cthread_fork;
25545 rm -f conftest.$ac_objext conftest$ac_exeext
25546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25547 (eval $ac_link) 2>conftest.er1
25549 grep -v '^ *+' conftest.er1 >conftest.err
25551 cat conftest.err >&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); } &&
25554 { ac_try='test -z "$ac_c_werror_flag"
25555 || test ! -s conftest.err'
25556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25557 (eval $ac_try) 2>&5
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); }; } &&
25561 { ac_try='test -s conftest$ac_exeext'
25562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563 (eval $ac_try) 2>&5
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); }; }; then
25567 ac_cv_func_cthread_fork=yes
25569 echo "$as_me: failed program was:" >&5
25570 sed 's/^/| /' conftest.$ac_ext >&5
25572 ac_cv_func_cthread_fork=no
25574 rm -f conftest.err conftest.$ac_objext \
25575 conftest$ac_exeext conftest.$ac_ext
25577 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25578 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25579 if test $ac_cv_func_cthread_fork = yes; then
25580 ol_link_threads=yes
25585 if test $ol_link_threads = yes ; then
25586 LTHREAD_LIBS="-lthreads"
25587 ol_link_threads=mach
25588 ol_with_threads=found
25590 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25591 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25592 { (exit 1); exit 1; }; }
25595 elif test $ol_with_threads = mach ; then
25596 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25597 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25598 { (exit 1); exit 1; }; }
25601 if test $ol_link_threads = mach ; then
25603 cat >>confdefs.h <<\_ACEOF
25604 #define HAVE_MACH_CTHREADS 1
25607 elif test $ol_with_threads = found ; then
25608 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25609 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25610 { (exit 1); exit 1; }; }
25615 case $ol_with_threads in auto | yes | pth)
25618 for ac_header in pth.h
25620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25622 echo "$as_me:$LINENO: checking for $ac_header" >&5
25623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25625 echo $ECHO_N "(cached) $ECHO_C" >&6
25627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25630 # Is the header compilable?
25631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25633 cat >conftest.$ac_ext <<_ACEOF
25636 cat confdefs.h >>conftest.$ac_ext
25637 cat >>conftest.$ac_ext <<_ACEOF
25638 /* end confdefs.h. */
25639 $ac_includes_default
25640 #include <$ac_header>
25642 rm -f conftest.$ac_objext
25643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25644 (eval $ac_compile) 2>conftest.er1
25646 grep -v '^ *+' conftest.er1 >conftest.err
25648 cat conftest.err >&5
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } &&
25651 { ac_try='test -z "$ac_c_werror_flag"
25652 || test ! -s conftest.err'
25653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25654 (eval $ac_try) 2>&5
25656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 (exit $ac_status); }; } &&
25658 { ac_try='test -s conftest.$ac_objext'
25659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25660 (eval $ac_try) 2>&5
25662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663 (exit $ac_status); }; }; then
25664 ac_header_compiler=yes
25666 echo "$as_me: failed program was:" >&5
25667 sed 's/^/| /' conftest.$ac_ext >&5
25669 ac_header_compiler=no
25671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25673 echo "${ECHO_T}$ac_header_compiler" >&6
25675 # Is the header present?
25676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25678 cat >conftest.$ac_ext <<_ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h. */
25684 #include <$ac_header>
25686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25689 grep -v '^ *+' conftest.er1 >conftest.err
25691 cat conftest.err >&5
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); } >/dev/null; then
25694 if test -s conftest.err; then
25695 ac_cpp_err=$ac_c_preproc_warn_flag
25696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25703 if test -z "$ac_cpp_err"; then
25704 ac_header_preproc=yes
25706 echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25709 ac_header_preproc=no
25711 rm -f conftest.err conftest.$ac_ext
25712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25713 echo "${ECHO_T}$ac_header_preproc" >&6
25715 # So? What about this header?
25716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25722 ac_header_preproc=yes
25725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25739 ## --------------------------------------------- ##
25740 ## Report this to <http://www.openldap.org/its/> ##
25741 ## --------------------------------------------- ##
25744 sed "s/^/$as_me: WARNING: /" >&2
25747 echo "$as_me:$LINENO: checking for $ac_header" >&5
25748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25750 echo $ECHO_N "(cached) $ECHO_C" >&6
25752 eval "$as_ac_Header=\$ac_header_preproc"
25754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25759 cat >>confdefs.h <<_ACEOF
25760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25768 if test $ac_cv_header_pth_h = yes ; then
25769 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25770 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25771 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25772 echo $ECHO_N "(cached) $ECHO_C" >&6
25774 ac_check_lib_save_LIBS=$LIBS
25776 cat >conftest.$ac_ext <<_ACEOF
25779 cat confdefs.h >>conftest.$ac_ext
25780 cat >>conftest.$ac_ext <<_ACEOF
25781 /* end confdefs.h. */
25783 /* Override any gcc2 internal prototype to avoid an error. */
25787 /* We use char because int might match the return type of a gcc2
25788 builtin and then its argument prototype would still apply. */
25789 char pth_version ();
25798 rm -f conftest.$ac_objext conftest$ac_exeext
25799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25800 (eval $ac_link) 2>conftest.er1
25802 grep -v '^ *+' conftest.er1 >conftest.err
25804 cat conftest.err >&5
25805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); } &&
25807 { ac_try='test -z "$ac_c_werror_flag"
25808 || test ! -s conftest.err'
25809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25810 (eval $ac_try) 2>&5
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); }; } &&
25814 { ac_try='test -s conftest$ac_exeext'
25815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25816 (eval $ac_try) 2>&5
25818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819 (exit $ac_status); }; }; then
25820 ac_cv_lib_pth_pth_version=yes
25822 echo "$as_me: failed program was:" >&5
25823 sed 's/^/| /' conftest.$ac_ext >&5
25825 ac_cv_lib_pth_pth_version=no
25827 rm -f conftest.err conftest.$ac_objext \
25828 conftest$ac_exeext conftest.$ac_ext
25829 LIBS=$ac_check_lib_save_LIBS
25831 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25832 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25833 if test $ac_cv_lib_pth_pth_version = yes; then
25840 if test $have_pth = yes ; then
25842 cat >>confdefs.h <<\_ACEOF
25843 #define HAVE_GNU_PTH 1
25846 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25847 ol_link_threads=pth
25848 ol_with_threads=found
25850 if test $ol_with_yielding_select = auto ; then
25851 ol_with_yielding_select=yes
25858 case $ol_with_threads in auto | yes | lwp)
25862 for ac_header in thread.h synch.h
25864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25866 echo "$as_me:$LINENO: checking for $ac_header" >&5
25867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25869 echo $ECHO_N "(cached) $ECHO_C" >&6
25871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25874 # Is the header compilable?
25875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25877 cat >conftest.$ac_ext <<_ACEOF
25880 cat confdefs.h >>conftest.$ac_ext
25881 cat >>conftest.$ac_ext <<_ACEOF
25882 /* end confdefs.h. */
25883 $ac_includes_default
25884 #include <$ac_header>
25886 rm -f conftest.$ac_objext
25887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25888 (eval $ac_compile) 2>conftest.er1
25890 grep -v '^ *+' conftest.er1 >conftest.err
25892 cat conftest.err >&5
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); } &&
25895 { ac_try='test -z "$ac_c_werror_flag"
25896 || test ! -s conftest.err'
25897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898 (eval $ac_try) 2>&5
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); }; } &&
25902 { ac_try='test -s conftest.$ac_objext'
25903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25904 (eval $ac_try) 2>&5
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); }; }; then
25908 ac_header_compiler=yes
25910 echo "$as_me: failed program was:" >&5
25911 sed 's/^/| /' conftest.$ac_ext >&5
25913 ac_header_compiler=no
25915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25917 echo "${ECHO_T}$ac_header_compiler" >&6
25919 # Is the header present?
25920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25922 cat >conftest.$ac_ext <<_ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h. */
25928 #include <$ac_header>
25930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25933 grep -v '^ *+' conftest.er1 >conftest.err
25935 cat conftest.err >&5
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); } >/dev/null; then
25938 if test -s conftest.err; then
25939 ac_cpp_err=$ac_c_preproc_warn_flag
25940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25947 if test -z "$ac_cpp_err"; then
25948 ac_header_preproc=yes
25950 echo "$as_me: failed program was:" >&5
25951 sed 's/^/| /' conftest.$ac_ext >&5
25953 ac_header_preproc=no
25955 rm -f conftest.err conftest.$ac_ext
25956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25957 echo "${ECHO_T}$ac_header_preproc" >&6
25959 # So? What about this header?
25960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25966 ac_header_preproc=yes
25969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25983 ## --------------------------------------------- ##
25984 ## Report this to <http://www.openldap.org/its/> ##
25985 ## --------------------------------------------- ##
25988 sed "s/^/$as_me: WARNING: /" >&2
25991 echo "$as_me:$LINENO: checking for $ac_header" >&5
25992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25994 echo $ECHO_N "(cached) $ECHO_C" >&6
25996 eval "$as_ac_Header=\$ac_header_preproc"
25998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26003 cat >>confdefs.h <<_ACEOF
26004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26011 if test $ac_cv_header_thread_h = yes &&
26012 test $ac_cv_header_synch_h = yes ; then
26013 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26014 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26015 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26016 echo $ECHO_N "(cached) $ECHO_C" >&6
26018 ac_check_lib_save_LIBS=$LIBS
26019 LIBS="-lthread $LIBS"
26020 cat >conftest.$ac_ext <<_ACEOF
26023 cat confdefs.h >>conftest.$ac_ext
26024 cat >>conftest.$ac_ext <<_ACEOF
26025 /* end confdefs.h. */
26027 /* Override any gcc2 internal prototype to avoid an error. */
26031 /* We use char because int might match the return type of a gcc2
26032 builtin and then its argument prototype would still apply. */
26033 char thr_create ();
26042 rm -f conftest.$ac_objext conftest$ac_exeext
26043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26044 (eval $ac_link) 2>conftest.er1
26046 grep -v '^ *+' conftest.er1 >conftest.err
26048 cat conftest.err >&5
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); } &&
26051 { ac_try='test -z "$ac_c_werror_flag"
26052 || test ! -s conftest.err'
26053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054 (eval $ac_try) 2>&5
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); }; } &&
26058 { ac_try='test -s conftest$ac_exeext'
26059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26060 (eval $ac_try) 2>&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); }; }; then
26064 ac_cv_lib_thread_thr_create=yes
26066 echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26069 ac_cv_lib_thread_thr_create=no
26071 rm -f conftest.err conftest.$ac_objext \
26072 conftest$ac_exeext conftest.$ac_ext
26073 LIBS=$ac_check_lib_save_LIBS
26075 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26076 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26077 if test $ac_cv_lib_thread_thr_create = yes; then
26084 if test $have_thr = yes ; then
26086 cat >>confdefs.h <<\_ACEOF
26090 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26091 ol_link_threads=thr
26093 if test $ol_with_yielding_select = auto ; then
26094 ol_with_yielding_select=yes
26100 thr_setconcurrency \
26101 thr_getconcurrency \
26104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26105 echo "$as_me:$LINENO: checking for $ac_func" >&5
26106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26107 if eval "test \"\${$as_ac_var+set}\" = set"; then
26108 echo $ECHO_N "(cached) $ECHO_C" >&6
26110 cat >conftest.$ac_ext <<_ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h. */
26116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26118 #define $ac_func innocuous_$ac_func
26120 /* System header to define __stub macros and hopefully few prototypes,
26121 which can conflict with char $ac_func (); below.
26122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26123 <limits.h> exists even on freestanding compilers. */
26126 # include <limits.h>
26128 # include <assert.h>
26133 /* Override any gcc2 internal prototype to avoid an error. */
26138 /* We use char because int might match the return type of a gcc2
26139 builtin and then its argument prototype would still apply. */
26141 /* The GNU C library defines this for functions which it implements
26142 to always fail with ENOSYS. Some functions are actually named
26143 something starting with __ and the normal name is an alias. */
26144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26147 char (*f) () = $ac_func;
26156 return f != $ac_func;
26161 rm -f conftest.$ac_objext conftest$ac_exeext
26162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26163 (eval $ac_link) 2>conftest.er1
26165 grep -v '^ *+' conftest.er1 >conftest.err
26167 cat conftest.err >&5
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); } &&
26170 { ac_try='test -z "$ac_c_werror_flag"
26171 || test ! -s conftest.err'
26172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26173 (eval $ac_try) 2>&5
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); }; } &&
26177 { ac_try='test -s conftest$ac_exeext'
26178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179 (eval $ac_try) 2>&5
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); }; }; then
26183 eval "$as_ac_var=yes"
26185 echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26188 eval "$as_ac_var=no"
26190 rm -f conftest.err conftest.$ac_objext \
26191 conftest$ac_exeext conftest.$ac_ext
26193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26195 if test `eval echo '${'$as_ac_var'}'` = yes; then
26196 cat >>confdefs.h <<_ACEOF
26197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26207 for ac_header in lwp/lwp.h
26209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26211 echo "$as_me:$LINENO: checking for $ac_header" >&5
26212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26214 echo $ECHO_N "(cached) $ECHO_C" >&6
26216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26219 # Is the header compilable?
26220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26222 cat >conftest.$ac_ext <<_ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h. */
26228 $ac_includes_default
26229 #include <$ac_header>
26231 rm -f conftest.$ac_objext
26232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26233 (eval $ac_compile) 2>conftest.er1
26235 grep -v '^ *+' conftest.er1 >conftest.err
26237 cat conftest.err >&5
26238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239 (exit $ac_status); } &&
26240 { ac_try='test -z "$ac_c_werror_flag"
26241 || test ! -s conftest.err'
26242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26243 (eval $ac_try) 2>&5
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); }; } &&
26247 { ac_try='test -s conftest.$ac_objext'
26248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26249 (eval $ac_try) 2>&5
26251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); }; }; then
26253 ac_header_compiler=yes
26255 echo "$as_me: failed program was:" >&5
26256 sed 's/^/| /' conftest.$ac_ext >&5
26258 ac_header_compiler=no
26260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26262 echo "${ECHO_T}$ac_header_compiler" >&6
26264 # Is the header present?
26265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26267 cat >conftest.$ac_ext <<_ACEOF
26270 cat confdefs.h >>conftest.$ac_ext
26271 cat >>conftest.$ac_ext <<_ACEOF
26272 /* end confdefs.h. */
26273 #include <$ac_header>
26275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26278 grep -v '^ *+' conftest.er1 >conftest.err
26280 cat conftest.err >&5
26281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282 (exit $ac_status); } >/dev/null; then
26283 if test -s conftest.err; then
26284 ac_cpp_err=$ac_c_preproc_warn_flag
26285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26292 if test -z "$ac_cpp_err"; then
26293 ac_header_preproc=yes
26295 echo "$as_me: failed program was:" >&5
26296 sed 's/^/| /' conftest.$ac_ext >&5
26298 ac_header_preproc=no
26300 rm -f conftest.err conftest.$ac_ext
26301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26302 echo "${ECHO_T}$ac_header_preproc" >&6
26304 # So? What about this header?
26305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26311 ac_header_preproc=yes
26314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26328 ## --------------------------------------------- ##
26329 ## Report this to <http://www.openldap.org/its/> ##
26330 ## --------------------------------------------- ##
26333 sed "s/^/$as_me: WARNING: /" >&2
26336 echo "$as_me:$LINENO: checking for $ac_header" >&5
26337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26339 echo $ECHO_N "(cached) $ECHO_C" >&6
26341 eval "$as_ac_Header=\$ac_header_preproc"
26343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26348 cat >>confdefs.h <<_ACEOF
26349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26356 if test $ac_cv_header_lwp_lwp_h = yes ; then
26357 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26358 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26359 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26360 echo $ECHO_N "(cached) $ECHO_C" >&6
26362 ac_check_lib_save_LIBS=$LIBS
26364 cat >conftest.$ac_ext <<_ACEOF
26367 cat confdefs.h >>conftest.$ac_ext
26368 cat >>conftest.$ac_ext <<_ACEOF
26369 /* end confdefs.h. */
26371 /* Override any gcc2 internal prototype to avoid an error. */
26375 /* We use char because int might match the return type of a gcc2
26376 builtin and then its argument prototype would still apply. */
26377 char lwp_create ();
26386 rm -f conftest.$ac_objext conftest$ac_exeext
26387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26388 (eval $ac_link) 2>conftest.er1
26390 grep -v '^ *+' conftest.er1 >conftest.err
26392 cat conftest.err >&5
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); } &&
26395 { ac_try='test -z "$ac_c_werror_flag"
26396 || test ! -s conftest.err'
26397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26398 (eval $ac_try) 2>&5
26400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401 (exit $ac_status); }; } &&
26402 { ac_try='test -s conftest$ac_exeext'
26403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404 (eval $ac_try) 2>&5
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); }; }; then
26408 ac_cv_lib_lwp_lwp_create=yes
26410 echo "$as_me: failed program was:" >&5
26411 sed 's/^/| /' conftest.$ac_ext >&5
26413 ac_cv_lib_lwp_lwp_create=no
26415 rm -f conftest.err conftest.$ac_objext \
26416 conftest$ac_exeext conftest.$ac_ext
26417 LIBS=$ac_check_lib_save_LIBS
26419 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26420 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26421 if test $ac_cv_lib_lwp_lwp_create = yes; then
26428 if test $have_lwp = yes ; then
26430 cat >>confdefs.h <<\_ACEOF
26434 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26435 ol_link_threads=lwp
26437 if test $ol_with_yielding_select = auto ; then
26438 ol_with_yielding_select=no
26445 if test $ol_with_yielding_select = yes ; then
26447 cat >>confdefs.h <<\_ACEOF
26448 #define HAVE_YIELDING_SELECT 1
26453 if test $ol_with_threads = manual ; then
26454 ol_link_threads=yes
26456 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26457 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26461 for ac_header in pthread.h sched.h
26463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26465 echo "$as_me:$LINENO: checking for $ac_header" >&5
26466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26468 echo $ECHO_N "(cached) $ECHO_C" >&6
26470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26473 # Is the header compilable?
26474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26476 cat >conftest.$ac_ext <<_ACEOF
26479 cat confdefs.h >>conftest.$ac_ext
26480 cat >>conftest.$ac_ext <<_ACEOF
26481 /* end confdefs.h. */
26482 $ac_includes_default
26483 #include <$ac_header>
26485 rm -f conftest.$ac_objext
26486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26487 (eval $ac_compile) 2>conftest.er1
26489 grep -v '^ *+' conftest.er1 >conftest.err
26491 cat conftest.err >&5
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); } &&
26494 { ac_try='test -z "$ac_c_werror_flag"
26495 || test ! -s conftest.err'
26496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26497 (eval $ac_try) 2>&5
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); }; } &&
26501 { ac_try='test -s conftest.$ac_objext'
26502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26503 (eval $ac_try) 2>&5
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); }; }; then
26507 ac_header_compiler=yes
26509 echo "$as_me: failed program was:" >&5
26510 sed 's/^/| /' conftest.$ac_ext >&5
26512 ac_header_compiler=no
26514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26516 echo "${ECHO_T}$ac_header_compiler" >&6
26518 # Is the header present?
26519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26521 cat >conftest.$ac_ext <<_ACEOF
26524 cat confdefs.h >>conftest.$ac_ext
26525 cat >>conftest.$ac_ext <<_ACEOF
26526 /* end confdefs.h. */
26527 #include <$ac_header>
26529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26532 grep -v '^ *+' conftest.er1 >conftest.err
26534 cat conftest.err >&5
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); } >/dev/null; then
26537 if test -s conftest.err; then
26538 ac_cpp_err=$ac_c_preproc_warn_flag
26539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26546 if test -z "$ac_cpp_err"; then
26547 ac_header_preproc=yes
26549 echo "$as_me: failed program was:" >&5
26550 sed 's/^/| /' conftest.$ac_ext >&5
26552 ac_header_preproc=no
26554 rm -f conftest.err conftest.$ac_ext
26555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26556 echo "${ECHO_T}$ac_header_preproc" >&6
26558 # So? What about this header?
26559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26565 ac_header_preproc=yes
26568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26582 ## --------------------------------------------- ##
26583 ## Report this to <http://www.openldap.org/its/> ##
26584 ## --------------------------------------------- ##
26587 sed "s/^/$as_me: WARNING: /" >&2
26590 echo "$as_me:$LINENO: checking for $ac_header" >&5
26591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26593 echo $ECHO_N "(cached) $ECHO_C" >&6
26595 eval "$as_ac_Header=\$ac_header_preproc"
26597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26602 cat >>confdefs.h <<_ACEOF
26603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26612 for ac_func in sched_yield pthread_yield
26614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26615 echo "$as_me:$LINENO: checking for $ac_func" >&5
26616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26617 if eval "test \"\${$as_ac_var+set}\" = set"; then
26618 echo $ECHO_N "(cached) $ECHO_C" >&6
26620 cat >conftest.$ac_ext <<_ACEOF
26623 cat confdefs.h >>conftest.$ac_ext
26624 cat >>conftest.$ac_ext <<_ACEOF
26625 /* end confdefs.h. */
26626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26628 #define $ac_func innocuous_$ac_func
26630 /* System header to define __stub macros and hopefully few prototypes,
26631 which can conflict with char $ac_func (); below.
26632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26633 <limits.h> exists even on freestanding compilers. */
26636 # include <limits.h>
26638 # include <assert.h>
26643 /* Override any gcc2 internal prototype to avoid an error. */
26648 /* We use char because int might match the return type of a gcc2
26649 builtin and then its argument prototype would still apply. */
26651 /* The GNU C library defines this for functions which it implements
26652 to always fail with ENOSYS. Some functions are actually named
26653 something starting with __ and the normal name is an alias. */
26654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26657 char (*f) () = $ac_func;
26666 return f != $ac_func;
26671 rm -f conftest.$ac_objext conftest$ac_exeext
26672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26673 (eval $ac_link) 2>conftest.er1
26675 grep -v '^ *+' conftest.er1 >conftest.err
26677 cat conftest.err >&5
26678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); } &&
26680 { ac_try='test -z "$ac_c_werror_flag"
26681 || test ! -s conftest.err'
26682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683 (eval $ac_try) 2>&5
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); }; } &&
26687 { ac_try='test -s conftest$ac_exeext'
26688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26689 (eval $ac_try) 2>&5
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); }; }; then
26693 eval "$as_ac_var=yes"
26695 echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26698 eval "$as_ac_var=no"
26700 rm -f conftest.err conftest.$ac_objext \
26701 conftest$ac_exeext conftest.$ac_ext
26703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26705 if test `eval echo '${'$as_ac_var'}'` = yes; then
26706 cat >>confdefs.h <<_ACEOF
26707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26714 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26715 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26716 if test "${ol_cv_header_linux_threads+set}" = set; then
26717 echo $ECHO_N "(cached) $ECHO_C" >&6
26719 cat >conftest.$ac_ext <<_ACEOF
26722 cat confdefs.h >>conftest.$ac_ext
26723 cat >>conftest.$ac_ext <<_ACEOF
26724 /* end confdefs.h. */
26725 #include <pthread.h>
26727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26728 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26729 ol_cv_header_linux_threads=yes
26731 ol_cv_header_linux_threads=no
26737 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26738 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26739 if test $ol_cv_header_linux_threads = yes; then
26741 cat >>confdefs.h <<\_ACEOF
26742 #define HAVE_LINUX_THREADS 1
26749 for ac_header in mach/cthreads.h
26751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26753 echo "$as_me:$LINENO: checking for $ac_header" >&5
26754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26756 echo $ECHO_N "(cached) $ECHO_C" >&6
26758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26761 # Is the header compilable?
26762 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26764 cat >conftest.$ac_ext <<_ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h. */
26770 $ac_includes_default
26771 #include <$ac_header>
26773 rm -f conftest.$ac_objext
26774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26775 (eval $ac_compile) 2>conftest.er1
26777 grep -v '^ *+' conftest.er1 >conftest.err
26779 cat conftest.err >&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); } &&
26782 { ac_try='test -z "$ac_c_werror_flag"
26783 || test ! -s conftest.err'
26784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785 (eval $ac_try) 2>&5
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); }; } &&
26789 { ac_try='test -s conftest.$ac_objext'
26790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791 (eval $ac_try) 2>&5
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); }; }; then
26795 ac_header_compiler=yes
26797 echo "$as_me: failed program was:" >&5
26798 sed 's/^/| /' conftest.$ac_ext >&5
26800 ac_header_compiler=no
26802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26804 echo "${ECHO_T}$ac_header_compiler" >&6
26806 # Is the header present?
26807 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26809 cat >conftest.$ac_ext <<_ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h. */
26815 #include <$ac_header>
26817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26820 grep -v '^ *+' conftest.er1 >conftest.err
26822 cat conftest.err >&5
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); } >/dev/null; then
26825 if test -s conftest.err; then
26826 ac_cpp_err=$ac_c_preproc_warn_flag
26827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26834 if test -z "$ac_cpp_err"; then
26835 ac_header_preproc=yes
26837 echo "$as_me: failed program was:" >&5
26838 sed 's/^/| /' conftest.$ac_ext >&5
26840 ac_header_preproc=no
26842 rm -f conftest.err conftest.$ac_ext
26843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26844 echo "${ECHO_T}$ac_header_preproc" >&6
26846 # So? What about this header?
26847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26853 ac_header_preproc=yes
26856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26870 ## --------------------------------------------- ##
26871 ## Report this to <http://www.openldap.org/its/> ##
26872 ## --------------------------------------------- ##
26875 sed "s/^/$as_me: WARNING: /" >&2
26878 echo "$as_me:$LINENO: checking for $ac_header" >&5
26879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26881 echo $ECHO_N "(cached) $ECHO_C" >&6
26883 eval "$as_ac_Header=\$ac_header_preproc"
26885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26890 cat >>confdefs.h <<_ACEOF
26891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26899 for ac_header in lwp/lwp.h
26901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26903 echo "$as_me:$LINENO: checking for $ac_header" >&5
26904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26906 echo $ECHO_N "(cached) $ECHO_C" >&6
26908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26911 # Is the header compilable?
26912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26914 cat >conftest.$ac_ext <<_ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h. */
26920 $ac_includes_default
26921 #include <$ac_header>
26923 rm -f conftest.$ac_objext
26924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26925 (eval $ac_compile) 2>conftest.er1
26927 grep -v '^ *+' conftest.er1 >conftest.err
26929 cat conftest.err >&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); } &&
26932 { ac_try='test -z "$ac_c_werror_flag"
26933 || test ! -s conftest.err'
26934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935 (eval $ac_try) 2>&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); }; } &&
26939 { ac_try='test -s conftest.$ac_objext'
26940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26941 (eval $ac_try) 2>&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); }; }; then
26945 ac_header_compiler=yes
26947 echo "$as_me: failed program was:" >&5
26948 sed 's/^/| /' conftest.$ac_ext >&5
26950 ac_header_compiler=no
26952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26954 echo "${ECHO_T}$ac_header_compiler" >&6
26956 # Is the header present?
26957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26959 cat >conftest.$ac_ext <<_ACEOF
26962 cat confdefs.h >>conftest.$ac_ext
26963 cat >>conftest.$ac_ext <<_ACEOF
26964 /* end confdefs.h. */
26965 #include <$ac_header>
26967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26970 grep -v '^ *+' conftest.er1 >conftest.err
26972 cat conftest.err >&5
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); } >/dev/null; then
26975 if test -s conftest.err; then
26976 ac_cpp_err=$ac_c_preproc_warn_flag
26977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26984 if test -z "$ac_cpp_err"; then
26985 ac_header_preproc=yes
26987 echo "$as_me: failed program was:" >&5
26988 sed 's/^/| /' conftest.$ac_ext >&5
26990 ac_header_preproc=no
26992 rm -f conftest.err conftest.$ac_ext
26993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26994 echo "${ECHO_T}$ac_header_preproc" >&6
26996 # So? What about this header?
26997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27003 ac_header_preproc=yes
27006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27020 ## --------------------------------------------- ##
27021 ## Report this to <http://www.openldap.org/its/> ##
27022 ## --------------------------------------------- ##
27025 sed "s/^/$as_me: WARNING: /" >&2
27028 echo "$as_me:$LINENO: checking for $ac_header" >&5
27029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27031 echo $ECHO_N "(cached) $ECHO_C" >&6
27033 eval "$as_ac_Header=\$ac_header_preproc"
27035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27040 cat >>confdefs.h <<_ACEOF
27041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27050 for ac_header in thread.h synch.h
27052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27054 echo "$as_me:$LINENO: checking for $ac_header" >&5
27055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27057 echo $ECHO_N "(cached) $ECHO_C" >&6
27059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27062 # Is the header compilable?
27063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27065 cat >conftest.$ac_ext <<_ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h. */
27071 $ac_includes_default
27072 #include <$ac_header>
27074 rm -f conftest.$ac_objext
27075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27076 (eval $ac_compile) 2>conftest.er1
27078 grep -v '^ *+' conftest.er1 >conftest.err
27080 cat conftest.err >&5
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); } &&
27083 { ac_try='test -z "$ac_c_werror_flag"
27084 || test ! -s conftest.err'
27085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086 (eval $ac_try) 2>&5
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); }; } &&
27090 { ac_try='test -s conftest.$ac_objext'
27091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092 (eval $ac_try) 2>&5
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); }; }; then
27096 ac_header_compiler=yes
27098 echo "$as_me: failed program was:" >&5
27099 sed 's/^/| /' conftest.$ac_ext >&5
27101 ac_header_compiler=no
27103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27105 echo "${ECHO_T}$ac_header_compiler" >&6
27107 # Is the header present?
27108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27110 cat >conftest.$ac_ext <<_ACEOF
27113 cat confdefs.h >>conftest.$ac_ext
27114 cat >>conftest.$ac_ext <<_ACEOF
27115 /* end confdefs.h. */
27116 #include <$ac_header>
27118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27121 grep -v '^ *+' conftest.er1 >conftest.err
27123 cat conftest.err >&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); } >/dev/null; then
27126 if test -s conftest.err; then
27127 ac_cpp_err=$ac_c_preproc_warn_flag
27128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27135 if test -z "$ac_cpp_err"; then
27136 ac_header_preproc=yes
27138 echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27141 ac_header_preproc=no
27143 rm -f conftest.err conftest.$ac_ext
27144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27145 echo "${ECHO_T}$ac_header_preproc" >&6
27147 # So? What about this header?
27148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27154 ac_header_preproc=yes
27157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27171 ## --------------------------------------------- ##
27172 ## Report this to <http://www.openldap.org/its/> ##
27173 ## --------------------------------------------- ##
27176 sed "s/^/$as_me: WARNING: /" >&2
27179 echo "$as_me:$LINENO: checking for $ac_header" >&5
27180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27182 echo $ECHO_N "(cached) $ECHO_C" >&6
27184 eval "$as_ac_Header=\$ac_header_preproc"
27186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27191 cat >>confdefs.h <<_ACEOF
27192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27201 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27202 cat >>confdefs.h <<\_ACEOF
27203 #define REENTRANT 1
27206 cat >>confdefs.h <<\_ACEOF
27207 #define _REENTRANT 1
27210 cat >>confdefs.h <<\_ACEOF
27211 #define THREAD_SAFE 1
27214 cat >>confdefs.h <<\_ACEOF
27215 #define _THREAD_SAFE 1
27218 cat >>confdefs.h <<\_ACEOF
27219 #define THREADSAFE 1
27222 cat >>confdefs.h <<\_ACEOF
27223 #define _THREADSAFE 1
27226 cat >>confdefs.h <<\_ACEOF
27227 #define _SGI_MP_SOURCE 1
27231 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27232 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27233 if test "${ol_cv_errno_thread_specific+set}" = set; then
27234 echo $ECHO_N "(cached) $ECHO_C" >&6
27237 cat >conftest.$ac_ext <<_ACEOF
27240 cat confdefs.h >>conftest.$ac_ext
27241 cat >>conftest.$ac_ext <<_ACEOF
27242 /* end confdefs.h. */
27252 rm -f conftest.$ac_objext conftest$ac_exeext
27253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27254 (eval $ac_link) 2>conftest.er1
27256 grep -v '^ *+' conftest.er1 >conftest.err
27258 cat conftest.err >&5
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); } &&
27261 { ac_try='test -z "$ac_c_werror_flag"
27262 || test ! -s conftest.err'
27263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264 (eval $ac_try) 2>&5
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); }; } &&
27268 { ac_try='test -s conftest$ac_exeext'
27269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27270 (eval $ac_try) 2>&5
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); }; }; then
27274 ol_cv_errno_thread_specific=yes
27276 echo "$as_me: failed program was:" >&5
27277 sed 's/^/| /' conftest.$ac_ext >&5
27279 ol_cv_errno_thread_specific=no
27281 rm -f conftest.err conftest.$ac_objext \
27282 conftest$ac_exeext conftest.$ac_ext
27285 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27286 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27288 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27289 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27290 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27291 echo $ECHO_N "(cached) $ECHO_C" >&6
27294 cat >conftest.$ac_ext <<_ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h. */
27309 rm -f conftest.$ac_objext conftest$ac_exeext
27310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27311 (eval $ac_link) 2>conftest.er1
27313 grep -v '^ *+' conftest.er1 >conftest.err
27315 cat conftest.err >&5
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 (exit $ac_status); } &&
27318 { ac_try='test -z "$ac_c_werror_flag"
27319 || test ! -s conftest.err'
27320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27321 (eval $ac_try) 2>&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); }; } &&
27325 { ac_try='test -s conftest$ac_exeext'
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; }; then
27331 ol_cv_h_errno_thread_specific=yes
27333 echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27336 ol_cv_h_errno_thread_specific=no
27338 rm -f conftest.err conftest.$ac_objext \
27339 conftest$ac_exeext conftest.$ac_ext
27342 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27343 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27345 if test $ol_cv_errno_thread_specific != yes ||
27346 test $ol_cv_h_errno_thread_specific != yes ; then
27347 LIBS="$LTHREAD_LIBS $LIBS"
27353 if test $ol_link_threads = no ; then
27354 if test $ol_with_threads = yes ; then
27355 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27356 echo "$as_me: error: no suitable thread support" >&2;}
27357 { (exit 1); exit 1; }; }
27360 if test $ol_with_threads = auto ; then
27361 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27362 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27367 cat >>confdefs.h <<\_ACEOF
27368 #define NO_THREADS 1
27377 if test $ol_link_threads != no ; then
27379 cat >>confdefs.h <<\_ACEOF
27380 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27390 gethostbyname_r gethostbyaddr_r \
27393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27394 echo "$as_me:$LINENO: checking for $ac_func" >&5
27395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27396 if eval "test \"\${$as_ac_var+set}\" = set"; then
27397 echo $ECHO_N "(cached) $ECHO_C" >&6
27399 cat >conftest.$ac_ext <<_ACEOF
27402 cat confdefs.h >>conftest.$ac_ext
27403 cat >>conftest.$ac_ext <<_ACEOF
27404 /* end confdefs.h. */
27405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27407 #define $ac_func innocuous_$ac_func
27409 /* System header to define __stub macros and hopefully few prototypes,
27410 which can conflict with char $ac_func (); below.
27411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27412 <limits.h> exists even on freestanding compilers. */
27415 # include <limits.h>
27417 # include <assert.h>
27422 /* Override any gcc2 internal prototype to avoid an error. */
27427 /* We use char because int might match the return type of a gcc2
27428 builtin and then its argument prototype would still apply. */
27430 /* The GNU C library defines this for functions which it implements
27431 to always fail with ENOSYS. Some functions are actually named
27432 something starting with __ and the normal name is an alias. */
27433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27436 char (*f) () = $ac_func;
27445 return f != $ac_func;
27450 rm -f conftest.$ac_objext conftest$ac_exeext
27451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27452 (eval $ac_link) 2>conftest.er1
27454 grep -v '^ *+' conftest.er1 >conftest.err
27456 cat conftest.err >&5
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } &&
27459 { ac_try='test -z "$ac_c_werror_flag"
27460 || test ! -s conftest.err'
27461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27462 (eval $ac_try) 2>&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); }; } &&
27466 { ac_try='test -s conftest$ac_exeext'
27467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27468 (eval $ac_try) 2>&5
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); }; }; then
27472 eval "$as_ac_var=yes"
27474 echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27477 eval "$as_ac_var=no"
27479 rm -f conftest.err conftest.$ac_objext \
27480 conftest$ac_exeext conftest.$ac_ext
27482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27484 if test `eval echo '${'$as_ac_var'}'` = yes; then
27485 cat >>confdefs.h <<_ACEOF
27486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27493 if test "$ac_cv_func_ctime_r" = no ; then
27494 ol_cv_func_ctime_r_nargs=0
27496 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27497 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27498 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27499 echo $ECHO_N "(cached) $ECHO_C" >&6
27501 cat >conftest.$ac_ext <<_ACEOF
27504 cat confdefs.h >>conftest.$ac_ext
27505 cat >>conftest.$ac_ext <<_ACEOF
27506 /* end confdefs.h. */
27511 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27516 rm -f conftest.$ac_objext
27517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27518 (eval $ac_compile) 2>conftest.er1
27520 grep -v '^ *+' conftest.er1 >conftest.err
27522 cat conftest.err >&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); } &&
27525 { ac_try='test -z "$ac_c_werror_flag"
27526 || test ! -s conftest.err'
27527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27528 (eval $ac_try) 2>&5
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); }; } &&
27532 { ac_try='test -s conftest.$ac_objext'
27533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27534 (eval $ac_try) 2>&5
27536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 (exit $ac_status); }; }; then
27538 ol_cv_func_ctime_r_nargs3=yes
27540 echo "$as_me: failed program was:" >&5
27541 sed 's/^/| /' conftest.$ac_ext >&5
27543 ol_cv_func_ctime_r_nargs3=no
27545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27547 cat >conftest.$ac_ext <<_ACEOF
27550 cat confdefs.h >>conftest.$ac_ext
27551 cat >>conftest.$ac_ext <<_ACEOF
27552 /* end confdefs.h. */
27557 time_t ti; char *buffer; ctime_r(&ti,buffer);
27562 rm -f conftest.$ac_objext
27563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27564 (eval $ac_compile) 2>conftest.er1
27566 grep -v '^ *+' conftest.er1 >conftest.err
27568 cat conftest.err >&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); } &&
27571 { ac_try='test -z "$ac_c_werror_flag"
27572 || test ! -s conftest.err'
27573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27574 (eval $ac_try) 2>&5
27576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577 (exit $ac_status); }; } &&
27578 { ac_try='test -s conftest.$ac_objext'
27579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27580 (eval $ac_try) 2>&5
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); }; }; then
27584 ol_cv_func_ctime_r_nargs2=yes
27586 echo "$as_me: failed program was:" >&5
27587 sed 's/^/| /' conftest.$ac_ext >&5
27589 ol_cv_func_ctime_r_nargs2=no
27591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27593 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27594 test $ol_cv_func_ctime_r_nargs2 = no ; then
27596 ol_cv_func_ctime_r_nargs=3
27598 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27599 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27601 ol_cv_func_ctime_r_nargs=2
27604 ol_cv_func_ctime_r_nargs=0
27608 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27609 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27611 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27613 cat >>confdefs.h <<_ACEOF
27614 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27621 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27622 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27623 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27624 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27625 echo $ECHO_N "(cached) $ECHO_C" >&6
27627 cat >conftest.$ac_ext <<_ACEOF
27630 cat confdefs.h >>conftest.$ac_ext
27631 cat >>conftest.$ac_ext <<_ACEOF
27632 /* end confdefs.h. */
27633 #include <sys/types.h>
27634 #include <sys/socket.h>
27635 #include <netinet/in.h>
27637 #define BUFSIZE (sizeof(struct hostent)+10)
27641 struct hostent hent; char buffer[BUFSIZE];
27642 int bufsize=BUFSIZE;int h_errno;
27643 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27644 buffer, bufsize, &h_errno);
27649 rm -f conftest.$ac_objext
27650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27651 (eval $ac_compile) 2>conftest.er1
27653 grep -v '^ *+' conftest.er1 >conftest.err
27655 cat conftest.err >&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); } &&
27658 { ac_try='test -z "$ac_c_werror_flag"
27659 || test ! -s conftest.err'
27660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27661 (eval $ac_try) 2>&5
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); }; } &&
27665 { ac_try='test -s conftest.$ac_objext'
27666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27667 (eval $ac_try) 2>&5
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); }; }; then
27671 ol_cv_func_gethostbyname_r_nargs5=yes
27673 echo "$as_me: failed program was:" >&5
27674 sed 's/^/| /' conftest.$ac_ext >&5
27676 ol_cv_func_gethostbyname_r_nargs5=no
27678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27680 cat >conftest.$ac_ext <<_ACEOF
27683 cat confdefs.h >>conftest.$ac_ext
27684 cat >>conftest.$ac_ext <<_ACEOF
27685 /* end confdefs.h. */
27686 #include <sys/types.h>
27687 #include <sys/socket.h>
27688 #include <netinet/in.h>
27690 #define BUFSIZE (sizeof(struct hostent)+10)
27694 struct hostent hent;struct hostent *rhent;
27695 char buffer[BUFSIZE];
27696 int bufsize=BUFSIZE;int h_errno;
27697 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27703 rm -f conftest.$ac_objext
27704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27705 (eval $ac_compile) 2>conftest.er1
27707 grep -v '^ *+' conftest.er1 >conftest.err
27709 cat conftest.err >&5
27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); } &&
27712 { ac_try='test -z "$ac_c_werror_flag"
27713 || test ! -s conftest.err'
27714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; } &&
27719 { ac_try='test -s conftest.$ac_objext'
27720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27721 (eval $ac_try) 2>&5
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); }; }; then
27725 ol_cv_func_gethostbyname_r_nargs6=yes
27727 echo "$as_me: failed program was:" >&5
27728 sed 's/^/| /' conftest.$ac_ext >&5
27730 ol_cv_func_gethostbyname_r_nargs6=no
27732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27734 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27735 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27737 ol_cv_func_gethostbyname_r_nargs=5
27739 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27740 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27742 ol_cv_func_gethostbyname_r_nargs=6
27745 ol_cv_func_gethostbyname_r_nargs=0
27749 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27750 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27751 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27753 cat >>confdefs.h <<_ACEOF
27754 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27760 ol_cv_func_gethostbyname_r_nargs=0
27763 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27764 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27765 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27766 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27767 echo $ECHO_N "(cached) $ECHO_C" >&6
27769 cat >conftest.$ac_ext <<_ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27775 #include <sys/types.h>
27776 #include <sys/socket.h>
27777 #include <netinet/in.h>
27779 #define BUFSIZE (sizeof(struct hostent)+10)
27783 struct hostent hent; char buffer[BUFSIZE];
27784 struct in_addr add;
27785 size_t alen=sizeof(struct in_addr);
27786 int bufsize=BUFSIZE;int h_errno;
27787 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27788 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27793 rm -f conftest.$ac_objext
27794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27795 (eval $ac_compile) 2>conftest.er1
27797 grep -v '^ *+' conftest.er1 >conftest.err
27799 cat conftest.err >&5
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); } &&
27802 { ac_try='test -z "$ac_c_werror_flag"
27803 || test ! -s conftest.err'
27804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27805 (eval $ac_try) 2>&5
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); }; } &&
27809 { ac_try='test -s conftest.$ac_objext'
27810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27811 (eval $ac_try) 2>&5
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); }; }; then
27815 ol_cv_func_gethostbyaddr_r_nargs7=yes
27817 echo "$as_me: failed program was:" >&5
27818 sed 's/^/| /' conftest.$ac_ext >&5
27820 ol_cv_func_gethostbyaddr_r_nargs7=no
27822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27824 cat >conftest.$ac_ext <<_ACEOF
27827 cat confdefs.h >>conftest.$ac_ext
27828 cat >>conftest.$ac_ext <<_ACEOF
27829 /* end confdefs.h. */
27830 #include <sys/types.h>
27831 #include <sys/socket.h>
27832 #include <netinet/in.h>
27834 #define BUFSIZE (sizeof(struct hostent)+10)
27838 struct hostent hent;
27839 struct hostent *rhent; char buffer[BUFSIZE];
27840 struct in_addr add;
27841 size_t alen=sizeof(struct in_addr);
27842 int bufsize=BUFSIZE;int h_errno;
27843 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27844 alen, AF_INET, &hent, buffer, bufsize,
27850 rm -f conftest.$ac_objext
27851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27852 (eval $ac_compile) 2>conftest.er1
27854 grep -v '^ *+' conftest.er1 >conftest.err
27856 cat conftest.err >&5
27857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858 (exit $ac_status); } &&
27859 { ac_try='test -z "$ac_c_werror_flag"
27860 || test ! -s conftest.err'
27861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27862 (eval $ac_try) 2>&5
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); }; } &&
27866 { ac_try='test -s conftest.$ac_objext'
27867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27868 (eval $ac_try) 2>&5
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); }; }; then
27872 ol_cv_func_gethostbyaddr_r_nargs8=yes
27874 echo "$as_me: failed program was:" >&5
27875 sed 's/^/| /' conftest.$ac_ext >&5
27877 ol_cv_func_gethostbyaddr_r_nargs8=no
27879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27881 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27882 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27884 ol_cv_func_gethostbyaddr_r_nargs=7
27886 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27887 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27889 ol_cv_func_gethostbyaddr_r_nargs=8
27892 ol_cv_func_gethostbyaddr_r_nargs=0
27896 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27897 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27898 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27900 cat >>confdefs.h <<_ACEOF
27901 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27907 ol_cv_func_gethostbyaddr_r_nargs=0
27912 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27914 if test $ol_enable_ldbm_api = bcompat; then \
27917 for ac_header in db_185.h db.h
27919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27921 echo "$as_me:$LINENO: checking for $ac_header" >&5
27922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27924 echo $ECHO_N "(cached) $ECHO_C" >&6
27926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27929 # Is the header compilable?
27930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27932 cat >conftest.$ac_ext <<_ACEOF
27935 cat confdefs.h >>conftest.$ac_ext
27936 cat >>conftest.$ac_ext <<_ACEOF
27937 /* end confdefs.h. */
27938 $ac_includes_default
27939 #include <$ac_header>
27941 rm -f conftest.$ac_objext
27942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27943 (eval $ac_compile) 2>conftest.er1
27945 grep -v '^ *+' conftest.er1 >conftest.err
27947 cat conftest.err >&5
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); } &&
27950 { ac_try='test -z "$ac_c_werror_flag"
27951 || test ! -s conftest.err'
27952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27953 (eval $ac_try) 2>&5
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); }; } &&
27957 { ac_try='test -s conftest.$ac_objext'
27958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27959 (eval $ac_try) 2>&5
27961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); }; }; then
27963 ac_header_compiler=yes
27965 echo "$as_me: failed program was:" >&5
27966 sed 's/^/| /' conftest.$ac_ext >&5
27968 ac_header_compiler=no
27970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27972 echo "${ECHO_T}$ac_header_compiler" >&6
27974 # Is the header present?
27975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27977 cat >conftest.$ac_ext <<_ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h. */
27983 #include <$ac_header>
27985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27988 grep -v '^ *+' conftest.er1 >conftest.err
27990 cat conftest.err >&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); } >/dev/null; then
27993 if test -s conftest.err; then
27994 ac_cpp_err=$ac_c_preproc_warn_flag
27995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28002 if test -z "$ac_cpp_err"; then
28003 ac_header_preproc=yes
28005 echo "$as_me: failed program was:" >&5
28006 sed 's/^/| /' conftest.$ac_ext >&5
28008 ac_header_preproc=no
28010 rm -f conftest.err conftest.$ac_ext
28011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28012 echo "${ECHO_T}$ac_header_preproc" >&6
28014 # So? What about this header?
28015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28021 ac_header_preproc=yes
28024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28038 ## --------------------------------------------- ##
28039 ## Report this to <http://www.openldap.org/its/> ##
28040 ## --------------------------------------------- ##
28043 sed "s/^/$as_me: WARNING: /" >&2
28046 echo "$as_me:$LINENO: checking for $ac_header" >&5
28047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28049 echo $ECHO_N "(cached) $ECHO_C" >&6
28051 eval "$as_ac_Header=\$ac_header_preproc"
28053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28058 cat >>confdefs.h <<_ACEOF
28059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28066 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
28067 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
28068 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
28069 if test "${ol_cv_header_db1+set}" = set; then
28070 echo $ECHO_N "(cached) $ECHO_C" >&6
28073 cat >conftest.$ac_ext <<_ACEOF
28076 cat confdefs.h >>conftest.$ac_ext
28077 cat >>conftest.$ac_ext <<_ACEOF
28078 /* end confdefs.h. */
28081 # include <db_185.h>
28086 /* this check could be improved */
28087 #ifndef DB_VERSION_MAJOR
28088 # define DB_VERSION_MAJOR 1
28091 #if DB_VERSION_MAJOR == 1
28096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28097 $EGREP "__db_version_1" >/dev/null 2>&1; then
28098 ol_cv_header_db1=yes
28100 ol_cv_header_db1=no
28105 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
28106 echo "${ECHO_T}$ol_cv_header_db1" >&6
28108 if test $ol_cv_header_db1 = yes ; then
28111 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
28112 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
28113 if test "${ol_cv_bdb_major+set}" = set; then
28114 echo $ECHO_N "(cached) $ECHO_C" >&6
28118 if test $ol_cv_bdb_major = 0 ; then
28119 cat >conftest.$ac_ext <<_ACEOF
28122 cat confdefs.h >>conftest.$ac_ext
28123 cat >>conftest.$ac_ext <<_ACEOF
28124 /* end confdefs.h. */
28127 #ifndef DB_VERSION_MAJOR
28128 # define DB_VERSION_MAJOR 1
28130 #if DB_VERSION_MAJOR == 4
28135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28136 $EGREP "__db_version" >/dev/null 2>&1; then
28144 if test $ol_cv_bdb_major = 0 ; then
28145 cat >conftest.$ac_ext <<_ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h. */
28153 #ifndef DB_VERSION_MAJOR
28154 # define DB_VERSION_MAJOR 1
28156 #if DB_VERSION_MAJOR == 3
28161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28162 $EGREP "__db_version" >/dev/null 2>&1; then
28170 if test $ol_cv_bdb_major = 0 ; then
28171 cat >conftest.$ac_ext <<_ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h. */
28179 #ifndef DB_VERSION_MAJOR
28180 # define DB_VERSION_MAJOR 1
28182 #if DB_VERSION_MAJOR == 2
28187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28188 $EGREP "__db_version" >/dev/null 2>&1; then
28196 if test $ol_cv_bdb_major = 0 ; then
28197 cat >conftest.$ac_ext <<_ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h. */
28205 #ifndef DB_VERSION_MAJOR
28206 # define DB_VERSION_MAJOR 1
28208 #if DB_VERSION_MAJOR == 1
28213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28214 $EGREP "__db_version" >/dev/null 2>&1; then
28223 if test $ol_cv_bdb_major = 0 ; then
28224 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28225 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28226 { (exit 1); exit 1; }; }
28230 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28231 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28233 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28234 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28235 if test "${ol_cv_bdb_minor+set}" = set; then
28236 echo $ECHO_N "(cached) $ECHO_C" >&6
28240 if test $ol_cv_bdb_minor = 0 ; then
28241 cat >conftest.$ac_ext <<_ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h. */
28249 #ifndef DB_VERSION_MINOR
28250 # define DB_VERSION_MINOR 0
28252 #if DB_VERSION_MINOR == 9
28257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28258 $EGREP "__db_version" >/dev/null 2>&1; then
28266 if test $ol_cv_bdb_minor = 0 ; then
28267 cat >conftest.$ac_ext <<_ACEOF
28270 cat confdefs.h >>conftest.$ac_ext
28271 cat >>conftest.$ac_ext <<_ACEOF
28272 /* end confdefs.h. */
28275 #ifndef DB_VERSION_MINOR
28276 # define DB_VERSION_MINOR 0
28278 #if DB_VERSION_MINOR == 8
28283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28284 $EGREP "__db_version" >/dev/null 2>&1; then
28292 if test $ol_cv_bdb_minor = 0 ; then
28293 cat >conftest.$ac_ext <<_ACEOF
28296 cat confdefs.h >>conftest.$ac_ext
28297 cat >>conftest.$ac_ext <<_ACEOF
28298 /* end confdefs.h. */
28301 #ifndef DB_VERSION_MINOR
28302 # define DB_VERSION_MINOR 0
28304 #if DB_VERSION_MINOR == 7
28309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28310 $EGREP "__db_version" >/dev/null 2>&1; then
28318 if test $ol_cv_bdb_minor = 0 ; then
28319 cat >conftest.$ac_ext <<_ACEOF
28322 cat confdefs.h >>conftest.$ac_ext
28323 cat >>conftest.$ac_ext <<_ACEOF
28324 /* end confdefs.h. */
28327 #ifndef DB_VERSION_MINOR
28328 # define DB_VERSION_MINOR 0
28330 #if DB_VERSION_MINOR == 6
28335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28336 $EGREP "__db_version" >/dev/null 2>&1; then
28344 if test $ol_cv_bdb_minor = 0 ; then
28345 cat >conftest.$ac_ext <<_ACEOF
28348 cat confdefs.h >>conftest.$ac_ext
28349 cat >>conftest.$ac_ext <<_ACEOF
28350 /* end confdefs.h. */
28353 #ifndef DB_VERSION_MINOR
28354 # define DB_VERSION_MINOR 0
28356 #if DB_VERSION_MINOR == 5
28361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28362 $EGREP "__db_version" >/dev/null 2>&1; then
28370 if test $ol_cv_bdb_minor = 0 ; then
28371 cat >conftest.$ac_ext <<_ACEOF
28374 cat confdefs.h >>conftest.$ac_ext
28375 cat >>conftest.$ac_ext <<_ACEOF
28376 /* end confdefs.h. */
28379 #ifndef DB_VERSION_MINOR
28380 # define DB_VERSION_MINOR 0
28382 #if DB_VERSION_MINOR == 4
28387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28388 $EGREP "__db_version" >/dev/null 2>&1; then
28396 if test $ol_cv_bdb_minor = 0 ; then
28397 cat >conftest.$ac_ext <<_ACEOF
28400 cat confdefs.h >>conftest.$ac_ext
28401 cat >>conftest.$ac_ext <<_ACEOF
28402 /* end confdefs.h. */
28405 #ifndef DB_VERSION_MINOR
28406 # define DB_VERSION_MINOR 0
28408 #if DB_VERSION_MINOR == 3
28413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28414 $EGREP "__db_version" >/dev/null 2>&1; then
28422 if test $ol_cv_bdb_minor = 0 ; then
28423 cat >conftest.$ac_ext <<_ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h. */
28431 #ifndef DB_VERSION_MINOR
28432 # define DB_VERSION_MINOR 0
28434 #if DB_VERSION_MINOR == 2
28439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28440 $EGREP "__db_version" >/dev/null 2>&1; then
28448 if test $ol_cv_bdb_minor = 0 ; then
28449 cat >conftest.$ac_ext <<_ACEOF
28452 cat confdefs.h >>conftest.$ac_ext
28453 cat >>conftest.$ac_ext <<_ACEOF
28454 /* end confdefs.h. */
28457 #ifndef DB_VERSION_MINOR
28458 # define DB_VERSION_MINOR 0
28460 #if DB_VERSION_MINOR == 1
28465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28466 $EGREP "__db_version" >/dev/null 2>&1; then
28476 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28477 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28479 if test $ol_cv_bdb_major = 4 ; then
28480 if test $ol_cv_bdb_minor = 5 ; then
28481 if test $ol_cv_lib_db = no ; then
28482 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
28483 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6
28484 if test "${ol_cv_db_db45+set}" = set; then
28485 echo $ECHO_N "(cached) $ECHO_C" >&6
28490 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28492 cat >conftest.$ac_ext <<_ACEOF
28495 cat confdefs.h >>conftest.$ac_ext
28496 cat >>conftest.$ac_ext <<_ACEOF
28497 /* end confdefs.h. */
28499 #ifdef HAVE_DB_185_H
28500 # include <db_185.h>
28505 #ifndef DB_VERSION_MAJOR
28506 # define DB_VERSION_MAJOR 1
28510 #define NULL ((void*)0)
28517 #if DB_VERSION_MAJOR > 1
28520 int major, minor, patch;
28522 version = db_version( &major, &minor, &patch );
28524 if( major != DB_VERSION_MAJOR ||
28525 minor < DB_VERSION_MINOR )
28527 printf("Berkeley DB version mismatch\n"
28528 "\theader: %s\n\tlibrary: %s\n",
28529 DB_VERSION_STRING, version);
28535 #if DB_VERSION_MAJOR > 2
28536 db_env_create( NULL, 0 );
28537 #elif DB_VERSION_MAJOR > 1
28538 db_appexit( NULL );
28540 (void) dbopen( NULL, 0, 0, 0, NULL);
28547 rm -f conftest.$ac_objext conftest$ac_exeext
28548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28549 (eval $ac_link) 2>conftest.er1
28551 grep -v '^ *+' conftest.er1 >conftest.err
28553 cat conftest.err >&5
28554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555 (exit $ac_status); } &&
28556 { ac_try='test -z "$ac_c_werror_flag"
28557 || test ! -s conftest.err'
28558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28559 (eval $ac_try) 2>&5
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); }; } &&
28563 { ac_try='test -s conftest$ac_exeext'
28564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28565 (eval $ac_try) 2>&5
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); }; }; then
28571 echo "$as_me: failed program was:" >&5
28572 sed 's/^/| /' conftest.$ac_ext >&5
28576 rm -f conftest.err conftest.$ac_objext \
28577 conftest$ac_exeext conftest.$ac_ext
28582 echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
28583 echo "${ECHO_T}$ol_cv_db_db45" >&6
28585 if test $ol_cv_db_db45 = yes ; then
28586 ol_cv_lib_db=-ldb45
28590 if test $ol_cv_lib_db = no ; then
28591 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
28592 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6
28593 if test "${ol_cv_db_db_45+set}" = set; then
28594 echo $ECHO_N "(cached) $ECHO_C" >&6
28599 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28601 cat >conftest.$ac_ext <<_ACEOF
28604 cat confdefs.h >>conftest.$ac_ext
28605 cat >>conftest.$ac_ext <<_ACEOF
28606 /* end confdefs.h. */
28608 #ifdef HAVE_DB_185_H
28609 # include <db_185.h>
28614 #ifndef DB_VERSION_MAJOR
28615 # define DB_VERSION_MAJOR 1
28619 #define NULL ((void*)0)
28626 #if DB_VERSION_MAJOR > 1
28629 int major, minor, patch;
28631 version = db_version( &major, &minor, &patch );
28633 if( major != DB_VERSION_MAJOR ||
28634 minor < DB_VERSION_MINOR )
28636 printf("Berkeley DB version mismatch\n"
28637 "\theader: %s\n\tlibrary: %s\n",
28638 DB_VERSION_STRING, version);
28644 #if DB_VERSION_MAJOR > 2
28645 db_env_create( NULL, 0 );
28646 #elif DB_VERSION_MAJOR > 1
28647 db_appexit( NULL );
28649 (void) dbopen( NULL, 0, 0, 0, NULL);
28656 rm -f conftest.$ac_objext conftest$ac_exeext
28657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28658 (eval $ac_link) 2>conftest.er1
28660 grep -v '^ *+' conftest.er1 >conftest.err
28662 cat conftest.err >&5
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); } &&
28665 { ac_try='test -z "$ac_c_werror_flag"
28666 || test ! -s conftest.err'
28667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28668 (eval $ac_try) 2>&5
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); }; } &&
28672 { ac_try='test -s conftest$ac_exeext'
28673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28674 (eval $ac_try) 2>&5
28676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677 (exit $ac_status); }; }; then
28680 echo "$as_me: failed program was:" >&5
28681 sed 's/^/| /' conftest.$ac_ext >&5
28685 rm -f conftest.err conftest.$ac_objext \
28686 conftest$ac_exeext conftest.$ac_ext
28691 echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
28692 echo "${ECHO_T}$ol_cv_db_db_45" >&6
28694 if test $ol_cv_db_db_45 = yes ; then
28695 ol_cv_lib_db=-ldb-45
28699 if test $ol_cv_lib_db = no ; then
28700 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
28701 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6
28702 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28708 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28710 cat >conftest.$ac_ext <<_ACEOF
28713 cat confdefs.h >>conftest.$ac_ext
28714 cat >>conftest.$ac_ext <<_ACEOF
28715 /* end confdefs.h. */
28717 #ifdef HAVE_DB_185_H
28718 # include <db_185.h>
28723 #ifndef DB_VERSION_MAJOR
28724 # define DB_VERSION_MAJOR 1
28728 #define NULL ((void*)0)
28735 #if DB_VERSION_MAJOR > 1
28738 int major, minor, patch;
28740 version = db_version( &major, &minor, &patch );
28742 if( major != DB_VERSION_MAJOR ||
28743 minor < DB_VERSION_MINOR )
28745 printf("Berkeley DB version mismatch\n"
28746 "\theader: %s\n\tlibrary: %s\n",
28747 DB_VERSION_STRING, version);
28753 #if DB_VERSION_MAJOR > 2
28754 db_env_create( NULL, 0 );
28755 #elif DB_VERSION_MAJOR > 1
28756 db_appexit( NULL );
28758 (void) dbopen( NULL, 0, 0, 0, NULL);
28765 rm -f conftest.$ac_objext conftest$ac_exeext
28766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28767 (eval $ac_link) 2>conftest.er1
28769 grep -v '^ *+' conftest.er1 >conftest.err
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } &&
28774 { ac_try='test -z "$ac_c_werror_flag"
28775 || test ! -s conftest.err'
28776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28777 (eval $ac_try) 2>&5
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); }; } &&
28781 { ac_try='test -s conftest$ac_exeext'
28782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28783 (eval $ac_try) 2>&5
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); }; }; then
28787 ol_cv_db_db_4_dot_5=yes
28789 echo "$as_me: failed program was:" >&5
28790 sed 's/^/| /' conftest.$ac_ext >&5
28792 ol_cv_db_db_4_dot_5=no
28794 rm -f conftest.err conftest.$ac_objext \
28795 conftest$ac_exeext conftest.$ac_ext
28800 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
28801 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6
28803 if test $ol_cv_db_db_4_dot_5 = yes ; then
28804 ol_cv_lib_db=-ldb-4.5
28808 if test $ol_cv_lib_db = no ; then
28809 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
28810 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6
28811 if test "${ol_cv_db_db_4_5+set}" = set; then
28812 echo $ECHO_N "(cached) $ECHO_C" >&6
28817 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28819 cat >conftest.$ac_ext <<_ACEOF
28822 cat confdefs.h >>conftest.$ac_ext
28823 cat >>conftest.$ac_ext <<_ACEOF
28824 /* end confdefs.h. */
28826 #ifdef HAVE_DB_185_H
28827 # include <db_185.h>
28832 #ifndef DB_VERSION_MAJOR
28833 # define DB_VERSION_MAJOR 1
28837 #define NULL ((void*)0)
28844 #if DB_VERSION_MAJOR > 1
28847 int major, minor, patch;
28849 version = db_version( &major, &minor, &patch );
28851 if( major != DB_VERSION_MAJOR ||
28852 minor < DB_VERSION_MINOR )
28854 printf("Berkeley DB version mismatch\n"
28855 "\theader: %s\n\tlibrary: %s\n",
28856 DB_VERSION_STRING, version);
28862 #if DB_VERSION_MAJOR > 2
28863 db_env_create( NULL, 0 );
28864 #elif DB_VERSION_MAJOR > 1
28865 db_appexit( NULL );
28867 (void) dbopen( NULL, 0, 0, 0, NULL);
28874 rm -f conftest.$ac_objext conftest$ac_exeext
28875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28876 (eval $ac_link) 2>conftest.er1
28878 grep -v '^ *+' conftest.er1 >conftest.err
28880 cat conftest.err >&5
28881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882 (exit $ac_status); } &&
28883 { ac_try='test -z "$ac_c_werror_flag"
28884 || test ! -s conftest.err'
28885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28886 (eval $ac_try) 2>&5
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); }; } &&
28890 { ac_try='test -s conftest$ac_exeext'
28891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28892 (eval $ac_try) 2>&5
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); }; }; then
28896 ol_cv_db_db_4_5=yes
28898 echo "$as_me: failed program was:" >&5
28899 sed 's/^/| /' conftest.$ac_ext >&5
28903 rm -f conftest.err conftest.$ac_objext \
28904 conftest$ac_exeext conftest.$ac_ext
28909 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
28910 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6
28912 if test $ol_cv_db_db_4_5 = yes ; then
28913 ol_cv_lib_db=-ldb-4-5
28917 elif test $ol_cv_bdb_minor = 4 ; then
28918 if test $ol_cv_lib_db = no ; then
28919 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28920 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28921 if test "${ol_cv_db_db44+set}" = set; then
28922 echo $ECHO_N "(cached) $ECHO_C" >&6
28927 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28929 cat >conftest.$ac_ext <<_ACEOF
28932 cat confdefs.h >>conftest.$ac_ext
28933 cat >>conftest.$ac_ext <<_ACEOF
28934 /* end confdefs.h. */
28936 #ifdef HAVE_DB_185_H
28937 # include <db_185.h>
28942 #ifndef DB_VERSION_MAJOR
28943 # define DB_VERSION_MAJOR 1
28947 #define NULL ((void*)0)
28954 #if DB_VERSION_MAJOR > 1
28957 int major, minor, patch;
28959 version = db_version( &major, &minor, &patch );
28961 if( major != DB_VERSION_MAJOR ||
28962 minor < DB_VERSION_MINOR )
28964 printf("Berkeley DB version mismatch\n"
28965 "\theader: %s\n\tlibrary: %s\n",
28966 DB_VERSION_STRING, version);
28972 #if DB_VERSION_MAJOR > 2
28973 db_env_create( NULL, 0 );
28974 #elif DB_VERSION_MAJOR > 1
28975 db_appexit( NULL );
28977 (void) dbopen( NULL, 0, 0, 0, NULL);
28984 rm -f conftest.$ac_objext conftest$ac_exeext
28985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28986 (eval $ac_link) 2>conftest.er1
28988 grep -v '^ *+' conftest.er1 >conftest.err
28990 cat conftest.err >&5
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); } &&
28993 { ac_try='test -z "$ac_c_werror_flag"
28994 || test ! -s conftest.err'
28995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996 (eval $ac_try) 2>&5
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); }; } &&
29000 { ac_try='test -s conftest$ac_exeext'
29001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002 (eval $ac_try) 2>&5
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); }; }; then
29008 echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29013 rm -f conftest.err conftest.$ac_objext \
29014 conftest$ac_exeext conftest.$ac_ext
29019 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
29020 echo "${ECHO_T}$ol_cv_db_db44" >&6
29022 if test $ol_cv_db_db44 = yes ; then
29023 ol_cv_lib_db=-ldb44
29027 if test $ol_cv_lib_db = no ; then
29028 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
29029 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
29030 if test "${ol_cv_db_db_44+set}" = set; then
29031 echo $ECHO_N "(cached) $ECHO_C" >&6
29036 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29038 cat >conftest.$ac_ext <<_ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h. */
29045 #ifdef HAVE_DB_185_H
29046 # include <db_185.h>
29051 #ifndef DB_VERSION_MAJOR
29052 # define DB_VERSION_MAJOR 1
29056 #define NULL ((void*)0)
29063 #if DB_VERSION_MAJOR > 1
29066 int major, minor, patch;
29068 version = db_version( &major, &minor, &patch );
29070 if( major != DB_VERSION_MAJOR ||
29071 minor < DB_VERSION_MINOR )
29073 printf("Berkeley DB version mismatch\n"
29074 "\theader: %s\n\tlibrary: %s\n",
29075 DB_VERSION_STRING, version);
29081 #if DB_VERSION_MAJOR > 2
29082 db_env_create( NULL, 0 );
29083 #elif DB_VERSION_MAJOR > 1
29084 db_appexit( NULL );
29086 (void) dbopen( NULL, 0, 0, 0, NULL);
29093 rm -f conftest.$ac_objext conftest$ac_exeext
29094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29095 (eval $ac_link) 2>conftest.er1
29097 grep -v '^ *+' conftest.er1 >conftest.err
29099 cat conftest.err >&5
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); } &&
29102 { ac_try='test -z "$ac_c_werror_flag"
29103 || test ! -s conftest.err'
29104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29105 (eval $ac_try) 2>&5
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; } &&
29109 { ac_try='test -s conftest$ac_exeext'
29110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29111 (eval $ac_try) 2>&5
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); }; }; then
29117 echo "$as_me: failed program was:" >&5
29118 sed 's/^/| /' conftest.$ac_ext >&5
29122 rm -f conftest.err conftest.$ac_objext \
29123 conftest$ac_exeext conftest.$ac_ext
29128 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
29129 echo "${ECHO_T}$ol_cv_db_db_44" >&6
29131 if test $ol_cv_db_db_44 = yes ; then
29132 ol_cv_lib_db=-ldb-44
29136 if test $ol_cv_lib_db = no ; then
29137 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
29138 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
29139 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29145 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29147 cat >conftest.$ac_ext <<_ACEOF
29150 cat confdefs.h >>conftest.$ac_ext
29151 cat >>conftest.$ac_ext <<_ACEOF
29152 /* end confdefs.h. */
29154 #ifdef HAVE_DB_185_H
29155 # include <db_185.h>
29160 #ifndef DB_VERSION_MAJOR
29161 # define DB_VERSION_MAJOR 1
29165 #define NULL ((void*)0)
29172 #if DB_VERSION_MAJOR > 1
29175 int major, minor, patch;
29177 version = db_version( &major, &minor, &patch );
29179 if( major != DB_VERSION_MAJOR ||
29180 minor < DB_VERSION_MINOR )
29182 printf("Berkeley DB version mismatch\n"
29183 "\theader: %s\n\tlibrary: %s\n",
29184 DB_VERSION_STRING, version);
29190 #if DB_VERSION_MAJOR > 2
29191 db_env_create( NULL, 0 );
29192 #elif DB_VERSION_MAJOR > 1
29193 db_appexit( NULL );
29195 (void) dbopen( NULL, 0, 0, 0, NULL);
29202 rm -f conftest.$ac_objext conftest$ac_exeext
29203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29204 (eval $ac_link) 2>conftest.er1
29206 grep -v '^ *+' conftest.er1 >conftest.err
29208 cat conftest.err >&5
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); } &&
29211 { ac_try='test -z "$ac_c_werror_flag"
29212 || test ! -s conftest.err'
29213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29214 (eval $ac_try) 2>&5
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); }; } &&
29218 { ac_try='test -s conftest$ac_exeext'
29219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29220 (eval $ac_try) 2>&5
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); }; }; then
29224 ol_cv_db_db_4_dot_4=yes
29226 echo "$as_me: failed program was:" >&5
29227 sed 's/^/| /' conftest.$ac_ext >&5
29229 ol_cv_db_db_4_dot_4=no
29231 rm -f conftest.err conftest.$ac_objext \
29232 conftest$ac_exeext conftest.$ac_ext
29237 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
29238 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
29240 if test $ol_cv_db_db_4_dot_4 = yes ; then
29241 ol_cv_lib_db=-ldb-4.4
29245 if test $ol_cv_lib_db = no ; then
29246 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
29247 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
29248 if test "${ol_cv_db_db_4_4+set}" = set; then
29249 echo $ECHO_N "(cached) $ECHO_C" >&6
29254 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29256 cat >conftest.$ac_ext <<_ACEOF
29259 cat confdefs.h >>conftest.$ac_ext
29260 cat >>conftest.$ac_ext <<_ACEOF
29261 /* end confdefs.h. */
29263 #ifdef HAVE_DB_185_H
29264 # include <db_185.h>
29269 #ifndef DB_VERSION_MAJOR
29270 # define DB_VERSION_MAJOR 1
29274 #define NULL ((void*)0)
29281 #if DB_VERSION_MAJOR > 1
29284 int major, minor, patch;
29286 version = db_version( &major, &minor, &patch );
29288 if( major != DB_VERSION_MAJOR ||
29289 minor < DB_VERSION_MINOR )
29291 printf("Berkeley DB version mismatch\n"
29292 "\theader: %s\n\tlibrary: %s\n",
29293 DB_VERSION_STRING, version);
29299 #if DB_VERSION_MAJOR > 2
29300 db_env_create( NULL, 0 );
29301 #elif DB_VERSION_MAJOR > 1
29302 db_appexit( NULL );
29304 (void) dbopen( NULL, 0, 0, 0, NULL);
29311 rm -f conftest.$ac_objext conftest$ac_exeext
29312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29313 (eval $ac_link) 2>conftest.er1
29315 grep -v '^ *+' conftest.er1 >conftest.err
29317 cat conftest.err >&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } &&
29320 { ac_try='test -z "$ac_c_werror_flag"
29321 || test ! -s conftest.err'
29322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323 (eval $ac_try) 2>&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); }; } &&
29327 { ac_try='test -s conftest$ac_exeext'
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; }; then
29333 ol_cv_db_db_4_4=yes
29335 echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29340 rm -f conftest.err conftest.$ac_objext \
29341 conftest$ac_exeext conftest.$ac_ext
29346 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
29347 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
29349 if test $ol_cv_db_db_4_4 = yes ; then
29350 ol_cv_lib_db=-ldb-4-4
29354 elif test $ol_cv_bdb_minor = 3 ; then
29355 if test $ol_cv_lib_db = no ; then
29356 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
29357 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
29358 if test "${ol_cv_db_db43+set}" = set; then
29359 echo $ECHO_N "(cached) $ECHO_C" >&6
29364 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29366 cat >conftest.$ac_ext <<_ACEOF
29369 cat confdefs.h >>conftest.$ac_ext
29370 cat >>conftest.$ac_ext <<_ACEOF
29371 /* end confdefs.h. */
29373 #ifdef HAVE_DB_185_H
29374 # include <db_185.h>
29379 #ifndef DB_VERSION_MAJOR
29380 # define DB_VERSION_MAJOR 1
29384 #define NULL ((void*)0)
29391 #if DB_VERSION_MAJOR > 1
29394 int major, minor, patch;
29396 version = db_version( &major, &minor, &patch );
29398 if( major != DB_VERSION_MAJOR ||
29399 minor < DB_VERSION_MINOR )
29401 printf("Berkeley DB version mismatch\n"
29402 "\theader: %s\n\tlibrary: %s\n",
29403 DB_VERSION_STRING, version);
29409 #if DB_VERSION_MAJOR > 2
29410 db_env_create( NULL, 0 );
29411 #elif DB_VERSION_MAJOR > 1
29412 db_appexit( NULL );
29414 (void) dbopen( NULL, 0, 0, 0, NULL);
29421 rm -f conftest.$ac_objext conftest$ac_exeext
29422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29423 (eval $ac_link) 2>conftest.er1
29425 grep -v '^ *+' conftest.er1 >conftest.err
29427 cat conftest.err >&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } &&
29430 { ac_try='test -z "$ac_c_werror_flag"
29431 || test ! -s conftest.err'
29432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433 (eval $ac_try) 2>&5
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; } &&
29437 { ac_try='test -s conftest$ac_exeext'
29438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29439 (eval $ac_try) 2>&5
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); }; }; then
29445 echo "$as_me: failed program was:" >&5
29446 sed 's/^/| /' conftest.$ac_ext >&5
29450 rm -f conftest.err conftest.$ac_objext \
29451 conftest$ac_exeext conftest.$ac_ext
29456 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
29457 echo "${ECHO_T}$ol_cv_db_db43" >&6
29459 if test $ol_cv_db_db43 = yes ; then
29460 ol_cv_lib_db=-ldb43
29464 if test $ol_cv_lib_db = no ; then
29465 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
29466 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
29467 if test "${ol_cv_db_db_43+set}" = set; then
29468 echo $ECHO_N "(cached) $ECHO_C" >&6
29473 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29475 cat >conftest.$ac_ext <<_ACEOF
29478 cat confdefs.h >>conftest.$ac_ext
29479 cat >>conftest.$ac_ext <<_ACEOF
29480 /* end confdefs.h. */
29482 #ifdef HAVE_DB_185_H
29483 # include <db_185.h>
29488 #ifndef DB_VERSION_MAJOR
29489 # define DB_VERSION_MAJOR 1
29493 #define NULL ((void*)0)
29500 #if DB_VERSION_MAJOR > 1
29503 int major, minor, patch;
29505 version = db_version( &major, &minor, &patch );
29507 if( major != DB_VERSION_MAJOR ||
29508 minor < DB_VERSION_MINOR )
29510 printf("Berkeley DB version mismatch\n"
29511 "\theader: %s\n\tlibrary: %s\n",
29512 DB_VERSION_STRING, version);
29518 #if DB_VERSION_MAJOR > 2
29519 db_env_create( NULL, 0 );
29520 #elif DB_VERSION_MAJOR > 1
29521 db_appexit( NULL );
29523 (void) dbopen( NULL, 0, 0, 0, NULL);
29530 rm -f conftest.$ac_objext conftest$ac_exeext
29531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29532 (eval $ac_link) 2>conftest.er1
29534 grep -v '^ *+' conftest.er1 >conftest.err
29536 cat conftest.err >&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); } &&
29539 { ac_try='test -z "$ac_c_werror_flag"
29540 || test ! -s conftest.err'
29541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29542 (eval $ac_try) 2>&5
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); }; } &&
29546 { ac_try='test -s conftest$ac_exeext'
29547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29548 (eval $ac_try) 2>&5
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); }; }; then
29554 echo "$as_me: failed program was:" >&5
29555 sed 's/^/| /' conftest.$ac_ext >&5
29559 rm -f conftest.err conftest.$ac_objext \
29560 conftest$ac_exeext conftest.$ac_ext
29565 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
29566 echo "${ECHO_T}$ol_cv_db_db_43" >&6
29568 if test $ol_cv_db_db_43 = yes ; then
29569 ol_cv_lib_db=-ldb-43
29573 if test $ol_cv_lib_db = no ; then
29574 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29575 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29576 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29577 echo $ECHO_N "(cached) $ECHO_C" >&6
29582 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29584 cat >conftest.$ac_ext <<_ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h. */
29591 #ifdef HAVE_DB_185_H
29592 # include <db_185.h>
29597 #ifndef DB_VERSION_MAJOR
29598 # define DB_VERSION_MAJOR 1
29602 #define NULL ((void*)0)
29609 #if DB_VERSION_MAJOR > 1
29612 int major, minor, patch;
29614 version = db_version( &major, &minor, &patch );
29616 if( major != DB_VERSION_MAJOR ||
29617 minor < DB_VERSION_MINOR )
29619 printf("Berkeley DB version mismatch\n"
29620 "\theader: %s\n\tlibrary: %s\n",
29621 DB_VERSION_STRING, version);
29627 #if DB_VERSION_MAJOR > 2
29628 db_env_create( NULL, 0 );
29629 #elif DB_VERSION_MAJOR > 1
29630 db_appexit( NULL );
29632 (void) dbopen( NULL, 0, 0, 0, NULL);
29639 rm -f conftest.$ac_objext conftest$ac_exeext
29640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29641 (eval $ac_link) 2>conftest.er1
29643 grep -v '^ *+' conftest.er1 >conftest.err
29645 cat conftest.err >&5
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); } &&
29648 { ac_try='test -z "$ac_c_werror_flag"
29649 || test ! -s conftest.err'
29650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29651 (eval $ac_try) 2>&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); }; } &&
29655 { ac_try='test -s conftest$ac_exeext'
29656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29657 (eval $ac_try) 2>&5
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); }; }; then
29661 ol_cv_db_db_4_dot_3=yes
29663 echo "$as_me: failed program was:" >&5
29664 sed 's/^/| /' conftest.$ac_ext >&5
29666 ol_cv_db_db_4_dot_3=no
29668 rm -f conftest.err conftest.$ac_objext \
29669 conftest$ac_exeext conftest.$ac_ext
29674 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29675 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29677 if test $ol_cv_db_db_4_dot_3 = yes ; then
29678 ol_cv_lib_db=-ldb-4.3
29682 if test $ol_cv_lib_db = no ; then
29683 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29684 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29685 if test "${ol_cv_db_db_4_3+set}" = set; then
29686 echo $ECHO_N "(cached) $ECHO_C" >&6
29691 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29693 cat >conftest.$ac_ext <<_ACEOF
29696 cat confdefs.h >>conftest.$ac_ext
29697 cat >>conftest.$ac_ext <<_ACEOF
29698 /* end confdefs.h. */
29700 #ifdef HAVE_DB_185_H
29701 # include <db_185.h>
29706 #ifndef DB_VERSION_MAJOR
29707 # define DB_VERSION_MAJOR 1
29711 #define NULL ((void*)0)
29718 #if DB_VERSION_MAJOR > 1
29721 int major, minor, patch;
29723 version = db_version( &major, &minor, &patch );
29725 if( major != DB_VERSION_MAJOR ||
29726 minor < DB_VERSION_MINOR )
29728 printf("Berkeley DB version mismatch\n"
29729 "\theader: %s\n\tlibrary: %s\n",
29730 DB_VERSION_STRING, version);
29736 #if DB_VERSION_MAJOR > 2
29737 db_env_create( NULL, 0 );
29738 #elif DB_VERSION_MAJOR > 1
29739 db_appexit( NULL );
29741 (void) dbopen( NULL, 0, 0, 0, NULL);
29748 rm -f conftest.$ac_objext conftest$ac_exeext
29749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29750 (eval $ac_link) 2>conftest.er1
29752 grep -v '^ *+' conftest.er1 >conftest.err
29754 cat conftest.err >&5
29755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756 (exit $ac_status); } &&
29757 { ac_try='test -z "$ac_c_werror_flag"
29758 || test ! -s conftest.err'
29759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29760 (eval $ac_try) 2>&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); }; } &&
29764 { ac_try='test -s conftest$ac_exeext'
29765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766 (eval $ac_try) 2>&5
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; }; then
29770 ol_cv_db_db_4_3=yes
29772 echo "$as_me: failed program was:" >&5
29773 sed 's/^/| /' conftest.$ac_ext >&5
29777 rm -f conftest.err conftest.$ac_objext \
29778 conftest$ac_exeext conftest.$ac_ext
29783 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29784 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29786 if test $ol_cv_db_db_4_3 = yes ; then
29787 ol_cv_lib_db=-ldb-4-3
29791 elif test $ol_cv_bdb_minor = 2 ; then
29792 if test $ol_cv_lib_db = no ; then
29793 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29794 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29795 if test "${ol_cv_db_db42+set}" = set; then
29796 echo $ECHO_N "(cached) $ECHO_C" >&6
29801 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29803 cat >conftest.$ac_ext <<_ACEOF
29806 cat confdefs.h >>conftest.$ac_ext
29807 cat >>conftest.$ac_ext <<_ACEOF
29808 /* end confdefs.h. */
29810 #ifdef HAVE_DB_185_H
29811 # include <db_185.h>
29816 #ifndef DB_VERSION_MAJOR
29817 # define DB_VERSION_MAJOR 1
29821 #define NULL ((void*)0)
29828 #if DB_VERSION_MAJOR > 1
29831 int major, minor, patch;
29833 version = db_version( &major, &minor, &patch );
29835 if( major != DB_VERSION_MAJOR ||
29836 minor < DB_VERSION_MINOR )
29838 printf("Berkeley DB version mismatch\n"
29839 "\theader: %s\n\tlibrary: %s\n",
29840 DB_VERSION_STRING, version);
29846 #if DB_VERSION_MAJOR > 2
29847 db_env_create( NULL, 0 );
29848 #elif DB_VERSION_MAJOR > 1
29849 db_appexit( NULL );
29851 (void) dbopen( NULL, 0, 0, 0, NULL);
29858 rm -f conftest.$ac_objext conftest$ac_exeext
29859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29860 (eval $ac_link) 2>conftest.er1
29862 grep -v '^ *+' conftest.er1 >conftest.err
29864 cat conftest.err >&5
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); } &&
29867 { ac_try='test -z "$ac_c_werror_flag"
29868 || test ! -s conftest.err'
29869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870 (eval $ac_try) 2>&5
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; } &&
29874 { ac_try='test -s conftest$ac_exeext'
29875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29876 (eval $ac_try) 2>&5
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); }; }; then
29882 echo "$as_me: failed program was:" >&5
29883 sed 's/^/| /' conftest.$ac_ext >&5
29887 rm -f conftest.err conftest.$ac_objext \
29888 conftest$ac_exeext conftest.$ac_ext
29893 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29894 echo "${ECHO_T}$ol_cv_db_db42" >&6
29896 if test $ol_cv_db_db42 = yes ; then
29897 ol_cv_lib_db=-ldb42
29901 if test $ol_cv_lib_db = no ; then
29902 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29903 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29904 if test "${ol_cv_db_db_42+set}" = set; then
29905 echo $ECHO_N "(cached) $ECHO_C" >&6
29910 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29912 cat >conftest.$ac_ext <<_ACEOF
29915 cat confdefs.h >>conftest.$ac_ext
29916 cat >>conftest.$ac_ext <<_ACEOF
29917 /* end confdefs.h. */
29919 #ifdef HAVE_DB_185_H
29920 # include <db_185.h>
29925 #ifndef DB_VERSION_MAJOR
29926 # define DB_VERSION_MAJOR 1
29930 #define NULL ((void*)0)
29937 #if DB_VERSION_MAJOR > 1
29940 int major, minor, patch;
29942 version = db_version( &major, &minor, &patch );
29944 if( major != DB_VERSION_MAJOR ||
29945 minor < DB_VERSION_MINOR )
29947 printf("Berkeley DB version mismatch\n"
29948 "\theader: %s\n\tlibrary: %s\n",
29949 DB_VERSION_STRING, version);
29955 #if DB_VERSION_MAJOR > 2
29956 db_env_create( NULL, 0 );
29957 #elif DB_VERSION_MAJOR > 1
29958 db_appexit( NULL );
29960 (void) dbopen( NULL, 0, 0, 0, NULL);
29967 rm -f conftest.$ac_objext conftest$ac_exeext
29968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29969 (eval $ac_link) 2>conftest.er1
29971 grep -v '^ *+' conftest.er1 >conftest.err
29973 cat conftest.err >&5
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); } &&
29976 { ac_try='test -z "$ac_c_werror_flag"
29977 || test ! -s conftest.err'
29978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29979 (eval $ac_try) 2>&5
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; } &&
29983 { ac_try='test -s conftest$ac_exeext'
29984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29985 (eval $ac_try) 2>&5
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); }; }; then
29991 echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.$ac_ext >&5
29996 rm -f conftest.err conftest.$ac_objext \
29997 conftest$ac_exeext conftest.$ac_ext
30002 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
30003 echo "${ECHO_T}$ol_cv_db_db_42" >&6
30005 if test $ol_cv_db_db_42 = yes ; then
30006 ol_cv_lib_db=-ldb-42
30010 if test $ol_cv_lib_db = no ; then
30011 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
30012 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
30013 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
30014 echo $ECHO_N "(cached) $ECHO_C" >&6
30019 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30021 cat >conftest.$ac_ext <<_ACEOF
30024 cat confdefs.h >>conftest.$ac_ext
30025 cat >>conftest.$ac_ext <<_ACEOF
30026 /* end confdefs.h. */
30028 #ifdef HAVE_DB_185_H
30029 # include <db_185.h>
30034 #ifndef DB_VERSION_MAJOR
30035 # define DB_VERSION_MAJOR 1
30039 #define NULL ((void*)0)
30046 #if DB_VERSION_MAJOR > 1
30049 int major, minor, patch;
30051 version = db_version( &major, &minor, &patch );
30053 if( major != DB_VERSION_MAJOR ||
30054 minor < DB_VERSION_MINOR )
30056 printf("Berkeley DB version mismatch\n"
30057 "\theader: %s\n\tlibrary: %s\n",
30058 DB_VERSION_STRING, version);
30064 #if DB_VERSION_MAJOR > 2
30065 db_env_create( NULL, 0 );
30066 #elif DB_VERSION_MAJOR > 1
30067 db_appexit( NULL );
30069 (void) dbopen( NULL, 0, 0, 0, NULL);
30076 rm -f conftest.$ac_objext conftest$ac_exeext
30077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30078 (eval $ac_link) 2>conftest.er1
30080 grep -v '^ *+' conftest.er1 >conftest.err
30082 cat conftest.err >&5
30083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084 (exit $ac_status); } &&
30085 { ac_try='test -z "$ac_c_werror_flag"
30086 || test ! -s conftest.err'
30087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30088 (eval $ac_try) 2>&5
30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091 (exit $ac_status); }; } &&
30092 { ac_try='test -s conftest$ac_exeext'
30093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30094 (eval $ac_try) 2>&5
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); }; }; then
30098 ol_cv_db_db_4_dot_2=yes
30100 echo "$as_me: failed program was:" >&5
30101 sed 's/^/| /' conftest.$ac_ext >&5
30103 ol_cv_db_db_4_dot_2=no
30105 rm -f conftest.err conftest.$ac_objext \
30106 conftest$ac_exeext conftest.$ac_ext
30111 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
30112 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
30114 if test $ol_cv_db_db_4_dot_2 = yes ; then
30115 ol_cv_lib_db=-ldb-4.2
30119 if test $ol_cv_lib_db = no ; then
30120 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
30121 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
30122 if test "${ol_cv_db_db_4_2+set}" = set; then
30123 echo $ECHO_N "(cached) $ECHO_C" >&6
30128 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30130 cat >conftest.$ac_ext <<_ACEOF
30133 cat confdefs.h >>conftest.$ac_ext
30134 cat >>conftest.$ac_ext <<_ACEOF
30135 /* end confdefs.h. */
30137 #ifdef HAVE_DB_185_H
30138 # include <db_185.h>
30143 #ifndef DB_VERSION_MAJOR
30144 # define DB_VERSION_MAJOR 1
30148 #define NULL ((void*)0)
30155 #if DB_VERSION_MAJOR > 1
30158 int major, minor, patch;
30160 version = db_version( &major, &minor, &patch );
30162 if( major != DB_VERSION_MAJOR ||
30163 minor < DB_VERSION_MINOR )
30165 printf("Berkeley DB version mismatch\n"
30166 "\theader: %s\n\tlibrary: %s\n",
30167 DB_VERSION_STRING, version);
30173 #if DB_VERSION_MAJOR > 2
30174 db_env_create( NULL, 0 );
30175 #elif DB_VERSION_MAJOR > 1
30176 db_appexit( NULL );
30178 (void) dbopen( NULL, 0, 0, 0, NULL);
30185 rm -f conftest.$ac_objext conftest$ac_exeext
30186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30187 (eval $ac_link) 2>conftest.er1
30189 grep -v '^ *+' conftest.er1 >conftest.err
30191 cat conftest.err >&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); } &&
30194 { ac_try='test -z "$ac_c_werror_flag"
30195 || test ! -s conftest.err'
30196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30197 (eval $ac_try) 2>&5
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); }; } &&
30201 { ac_try='test -s conftest$ac_exeext'
30202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30203 (eval $ac_try) 2>&5
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; }; then
30207 ol_cv_db_db_4_2=yes
30209 echo "$as_me: failed program was:" >&5
30210 sed 's/^/| /' conftest.$ac_ext >&5
30214 rm -f conftest.err conftest.$ac_objext \
30215 conftest$ac_exeext conftest.$ac_ext
30220 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
30221 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
30223 if test $ol_cv_db_db_4_2 = yes ; then
30224 ol_cv_lib_db=-ldb-4-2
30228 elif test $ol_cv_bdb_minor = 1 ; then
30229 if test $ol_cv_lib_db = no ; then
30230 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
30231 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
30232 if test "${ol_cv_db_db41+set}" = set; then
30233 echo $ECHO_N "(cached) $ECHO_C" >&6
30238 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30240 cat >conftest.$ac_ext <<_ACEOF
30243 cat confdefs.h >>conftest.$ac_ext
30244 cat >>conftest.$ac_ext <<_ACEOF
30245 /* end confdefs.h. */
30247 #ifdef HAVE_DB_185_H
30248 # include <db_185.h>
30253 #ifndef DB_VERSION_MAJOR
30254 # define DB_VERSION_MAJOR 1
30258 #define NULL ((void*)0)
30265 #if DB_VERSION_MAJOR > 1
30268 int major, minor, patch;
30270 version = db_version( &major, &minor, &patch );
30272 if( major != DB_VERSION_MAJOR ||
30273 minor < DB_VERSION_MINOR )
30275 printf("Berkeley DB version mismatch\n"
30276 "\theader: %s\n\tlibrary: %s\n",
30277 DB_VERSION_STRING, version);
30283 #if DB_VERSION_MAJOR > 2
30284 db_env_create( NULL, 0 );
30285 #elif DB_VERSION_MAJOR > 1
30286 db_appexit( NULL );
30288 (void) dbopen( NULL, 0, 0, 0, NULL);
30295 rm -f conftest.$ac_objext conftest$ac_exeext
30296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30297 (eval $ac_link) 2>conftest.er1
30299 grep -v '^ *+' conftest.er1 >conftest.err
30301 cat conftest.err >&5
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); } &&
30304 { ac_try='test -z "$ac_c_werror_flag"
30305 || test ! -s conftest.err'
30306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30307 (eval $ac_try) 2>&5
30309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310 (exit $ac_status); }; } &&
30311 { ac_try='test -s conftest$ac_exeext'
30312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30313 (eval $ac_try) 2>&5
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); }; }; then
30319 echo "$as_me: failed program was:" >&5
30320 sed 's/^/| /' conftest.$ac_ext >&5
30324 rm -f conftest.err conftest.$ac_objext \
30325 conftest$ac_exeext conftest.$ac_ext
30330 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
30331 echo "${ECHO_T}$ol_cv_db_db41" >&6
30333 if test $ol_cv_db_db41 = yes ; then
30334 ol_cv_lib_db=-ldb41
30338 if test $ol_cv_lib_db = no ; then
30339 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
30340 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
30341 if test "${ol_cv_db_db_41+set}" = set; then
30342 echo $ECHO_N "(cached) $ECHO_C" >&6
30347 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30349 cat >conftest.$ac_ext <<_ACEOF
30352 cat confdefs.h >>conftest.$ac_ext
30353 cat >>conftest.$ac_ext <<_ACEOF
30354 /* end confdefs.h. */
30356 #ifdef HAVE_DB_185_H
30357 # include <db_185.h>
30362 #ifndef DB_VERSION_MAJOR
30363 # define DB_VERSION_MAJOR 1
30367 #define NULL ((void*)0)
30374 #if DB_VERSION_MAJOR > 1
30377 int major, minor, patch;
30379 version = db_version( &major, &minor, &patch );
30381 if( major != DB_VERSION_MAJOR ||
30382 minor < DB_VERSION_MINOR )
30384 printf("Berkeley DB version mismatch\n"
30385 "\theader: %s\n\tlibrary: %s\n",
30386 DB_VERSION_STRING, version);
30392 #if DB_VERSION_MAJOR > 2
30393 db_env_create( NULL, 0 );
30394 #elif DB_VERSION_MAJOR > 1
30395 db_appexit( NULL );
30397 (void) dbopen( NULL, 0, 0, 0, NULL);
30404 rm -f conftest.$ac_objext conftest$ac_exeext
30405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30406 (eval $ac_link) 2>conftest.er1
30408 grep -v '^ *+' conftest.er1 >conftest.err
30410 cat conftest.err >&5
30411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); } &&
30413 { ac_try='test -z "$ac_c_werror_flag"
30414 || test ! -s conftest.err'
30415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30416 (eval $ac_try) 2>&5
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); }; } &&
30420 { ac_try='test -s conftest$ac_exeext'
30421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30422 (eval $ac_try) 2>&5
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); }; }; then
30428 echo "$as_me: failed program was:" >&5
30429 sed 's/^/| /' conftest.$ac_ext >&5
30433 rm -f conftest.err conftest.$ac_objext \
30434 conftest$ac_exeext conftest.$ac_ext
30439 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
30440 echo "${ECHO_T}$ol_cv_db_db_41" >&6
30442 if test $ol_cv_db_db_41 = yes ; then
30443 ol_cv_lib_db=-ldb-41
30447 if test $ol_cv_lib_db = no ; then
30448 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
30449 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
30450 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
30451 echo $ECHO_N "(cached) $ECHO_C" >&6
30456 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30458 cat >conftest.$ac_ext <<_ACEOF
30461 cat confdefs.h >>conftest.$ac_ext
30462 cat >>conftest.$ac_ext <<_ACEOF
30463 /* end confdefs.h. */
30465 #ifdef HAVE_DB_185_H
30466 # include <db_185.h>
30471 #ifndef DB_VERSION_MAJOR
30472 # define DB_VERSION_MAJOR 1
30476 #define NULL ((void*)0)
30483 #if DB_VERSION_MAJOR > 1
30486 int major, minor, patch;
30488 version = db_version( &major, &minor, &patch );
30490 if( major != DB_VERSION_MAJOR ||
30491 minor < DB_VERSION_MINOR )
30493 printf("Berkeley DB version mismatch\n"
30494 "\theader: %s\n\tlibrary: %s\n",
30495 DB_VERSION_STRING, version);
30501 #if DB_VERSION_MAJOR > 2
30502 db_env_create( NULL, 0 );
30503 #elif DB_VERSION_MAJOR > 1
30504 db_appexit( NULL );
30506 (void) dbopen( NULL, 0, 0, 0, NULL);
30513 rm -f conftest.$ac_objext conftest$ac_exeext
30514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30515 (eval $ac_link) 2>conftest.er1
30517 grep -v '^ *+' conftest.er1 >conftest.err
30519 cat conftest.err >&5
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); } &&
30522 { ac_try='test -z "$ac_c_werror_flag"
30523 || test ! -s conftest.err'
30524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30525 (eval $ac_try) 2>&5
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); }; } &&
30529 { ac_try='test -s conftest$ac_exeext'
30530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30531 (eval $ac_try) 2>&5
30533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534 (exit $ac_status); }; }; then
30535 ol_cv_db_db_4_dot_1=yes
30537 echo "$as_me: failed program was:" >&5
30538 sed 's/^/| /' conftest.$ac_ext >&5
30540 ol_cv_db_db_4_dot_1=no
30542 rm -f conftest.err conftest.$ac_objext \
30543 conftest$ac_exeext conftest.$ac_ext
30548 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
30549 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
30551 if test $ol_cv_db_db_4_dot_1 = yes ; then
30552 ol_cv_lib_db=-ldb-4.1
30556 if test $ol_cv_lib_db = no ; then
30557 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
30558 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
30559 if test "${ol_cv_db_db_4_1+set}" = set; then
30560 echo $ECHO_N "(cached) $ECHO_C" >&6
30565 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30567 cat >conftest.$ac_ext <<_ACEOF
30570 cat confdefs.h >>conftest.$ac_ext
30571 cat >>conftest.$ac_ext <<_ACEOF
30572 /* end confdefs.h. */
30574 #ifdef HAVE_DB_185_H
30575 # include <db_185.h>
30580 #ifndef DB_VERSION_MAJOR
30581 # define DB_VERSION_MAJOR 1
30585 #define NULL ((void*)0)
30592 #if DB_VERSION_MAJOR > 1
30595 int major, minor, patch;
30597 version = db_version( &major, &minor, &patch );
30599 if( major != DB_VERSION_MAJOR ||
30600 minor < DB_VERSION_MINOR )
30602 printf("Berkeley DB version mismatch\n"
30603 "\theader: %s\n\tlibrary: %s\n",
30604 DB_VERSION_STRING, version);
30610 #if DB_VERSION_MAJOR > 2
30611 db_env_create( NULL, 0 );
30612 #elif DB_VERSION_MAJOR > 1
30613 db_appexit( NULL );
30615 (void) dbopen( NULL, 0, 0, 0, NULL);
30622 rm -f conftest.$ac_objext conftest$ac_exeext
30623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30624 (eval $ac_link) 2>conftest.er1
30626 grep -v '^ *+' conftest.er1 >conftest.err
30628 cat conftest.err >&5
30629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30630 (exit $ac_status); } &&
30631 { ac_try='test -z "$ac_c_werror_flag"
30632 || test ! -s conftest.err'
30633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30634 (eval $ac_try) 2>&5
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); }; } &&
30638 { ac_try='test -s conftest$ac_exeext'
30639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30640 (eval $ac_try) 2>&5
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); }; }; then
30644 ol_cv_db_db_4_1=yes
30646 echo "$as_me: failed program was:" >&5
30647 sed 's/^/| /' conftest.$ac_ext >&5
30651 rm -f conftest.err conftest.$ac_objext \
30652 conftest$ac_exeext conftest.$ac_ext
30657 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30658 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30660 if test $ol_cv_db_db_4_1 = yes ; then
30661 ol_cv_lib_db=-ldb-4-1
30666 if test $ol_cv_lib_db = no ; then
30667 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30668 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30669 if test "${ol_cv_db_db_4+set}" = set; then
30670 echo $ECHO_N "(cached) $ECHO_C" >&6
30675 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30677 cat >conftest.$ac_ext <<_ACEOF
30680 cat confdefs.h >>conftest.$ac_ext
30681 cat >>conftest.$ac_ext <<_ACEOF
30682 /* end confdefs.h. */
30684 #ifdef HAVE_DB_185_H
30685 # include <db_185.h>
30690 #ifndef DB_VERSION_MAJOR
30691 # define DB_VERSION_MAJOR 1
30695 #define NULL ((void*)0)
30702 #if DB_VERSION_MAJOR > 1
30705 int major, minor, patch;
30707 version = db_version( &major, &minor, &patch );
30709 if( major != DB_VERSION_MAJOR ||
30710 minor < DB_VERSION_MINOR )
30712 printf("Berkeley DB version mismatch\n"
30713 "\theader: %s\n\tlibrary: %s\n",
30714 DB_VERSION_STRING, version);
30720 #if DB_VERSION_MAJOR > 2
30721 db_env_create( NULL, 0 );
30722 #elif DB_VERSION_MAJOR > 1
30723 db_appexit( NULL );
30725 (void) dbopen( NULL, 0, 0, 0, NULL);
30732 rm -f conftest.$ac_objext conftest$ac_exeext
30733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30734 (eval $ac_link) 2>conftest.er1
30736 grep -v '^ *+' conftest.er1 >conftest.err
30738 cat conftest.err >&5
30739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 (exit $ac_status); } &&
30741 { ac_try='test -z "$ac_c_werror_flag"
30742 || test ! -s conftest.err'
30743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30744 (eval $ac_try) 2>&5
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); }; } &&
30748 { ac_try='test -s conftest$ac_exeext'
30749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30750 (eval $ac_try) 2>&5
30752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753 (exit $ac_status); }; }; then
30756 echo "$as_me: failed program was:" >&5
30757 sed 's/^/| /' conftest.$ac_ext >&5
30761 rm -f conftest.err conftest.$ac_objext \
30762 conftest$ac_exeext conftest.$ac_ext
30767 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30768 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30770 if test $ol_cv_db_db_4 = yes ; then
30771 ol_cv_lib_db=-ldb-4
30775 if test $ol_cv_lib_db = no ; then
30776 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30777 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30778 if test "${ol_cv_db_db4+set}" = set; then
30779 echo $ECHO_N "(cached) $ECHO_C" >&6
30784 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30786 cat >conftest.$ac_ext <<_ACEOF
30789 cat confdefs.h >>conftest.$ac_ext
30790 cat >>conftest.$ac_ext <<_ACEOF
30791 /* end confdefs.h. */
30793 #ifdef HAVE_DB_185_H
30794 # include <db_185.h>
30799 #ifndef DB_VERSION_MAJOR
30800 # define DB_VERSION_MAJOR 1
30804 #define NULL ((void*)0)
30811 #if DB_VERSION_MAJOR > 1
30814 int major, minor, patch;
30816 version = db_version( &major, &minor, &patch );
30818 if( major != DB_VERSION_MAJOR ||
30819 minor < DB_VERSION_MINOR )
30821 printf("Berkeley DB version mismatch\n"
30822 "\theader: %s\n\tlibrary: %s\n",
30823 DB_VERSION_STRING, version);
30829 #if DB_VERSION_MAJOR > 2
30830 db_env_create( NULL, 0 );
30831 #elif DB_VERSION_MAJOR > 1
30832 db_appexit( NULL );
30834 (void) dbopen( NULL, 0, 0, 0, NULL);
30841 rm -f conftest.$ac_objext conftest$ac_exeext
30842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30843 (eval $ac_link) 2>conftest.er1
30845 grep -v '^ *+' conftest.er1 >conftest.err
30847 cat conftest.err >&5
30848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849 (exit $ac_status); } &&
30850 { ac_try='test -z "$ac_c_werror_flag"
30851 || test ! -s conftest.err'
30852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30853 (eval $ac_try) 2>&5
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); }; } &&
30857 { ac_try='test -s conftest$ac_exeext'
30858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30859 (eval $ac_try) 2>&5
30861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30862 (exit $ac_status); }; }; then
30865 echo "$as_me: failed program was:" >&5
30866 sed 's/^/| /' conftest.$ac_ext >&5
30870 rm -f conftest.err conftest.$ac_objext \
30871 conftest$ac_exeext conftest.$ac_ext
30876 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30877 echo "${ECHO_T}$ol_cv_db_db4" >&6
30879 if test $ol_cv_db_db4 = yes ; then
30884 if test $ol_cv_lib_db = no ; then
30885 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30886 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30887 if test "${ol_cv_db_db+set}" = set; then
30888 echo $ECHO_N "(cached) $ECHO_C" >&6
30893 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30895 cat >conftest.$ac_ext <<_ACEOF
30898 cat confdefs.h >>conftest.$ac_ext
30899 cat >>conftest.$ac_ext <<_ACEOF
30900 /* end confdefs.h. */
30902 #ifdef HAVE_DB_185_H
30903 # include <db_185.h>
30908 #ifndef DB_VERSION_MAJOR
30909 # define DB_VERSION_MAJOR 1
30913 #define NULL ((void*)0)
30920 #if DB_VERSION_MAJOR > 1
30923 int major, minor, patch;
30925 version = db_version( &major, &minor, &patch );
30927 if( major != DB_VERSION_MAJOR ||
30928 minor < DB_VERSION_MINOR )
30930 printf("Berkeley DB version mismatch\n"
30931 "\theader: %s\n\tlibrary: %s\n",
30932 DB_VERSION_STRING, version);
30938 #if DB_VERSION_MAJOR > 2
30939 db_env_create( NULL, 0 );
30940 #elif DB_VERSION_MAJOR > 1
30941 db_appexit( NULL );
30943 (void) dbopen( NULL, 0, 0, 0, NULL);
30950 rm -f conftest.$ac_objext conftest$ac_exeext
30951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30952 (eval $ac_link) 2>conftest.er1
30954 grep -v '^ *+' conftest.er1 >conftest.err
30956 cat conftest.err >&5
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); } &&
30959 { ac_try='test -z "$ac_c_werror_flag"
30960 || test ! -s conftest.err'
30961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30962 (eval $ac_try) 2>&5
30964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965 (exit $ac_status); }; } &&
30966 { ac_try='test -s conftest$ac_exeext'
30967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30968 (eval $ac_try) 2>&5
30970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971 (exit $ac_status); }; }; then
30974 echo "$as_me: failed program was:" >&5
30975 sed 's/^/| /' conftest.$ac_ext >&5
30979 rm -f conftest.err conftest.$ac_objext \
30980 conftest$ac_exeext conftest.$ac_ext
30985 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30986 echo "${ECHO_T}$ol_cv_db_db" >&6
30988 if test $ol_cv_db_db = yes ; then
30994 elif test $ol_cv_bdb_major = 3 ; then
30995 if test $ol_cv_lib_db = no ; then
30996 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30997 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30998 if test "${ol_cv_db_db3+set}" = set; then
30999 echo $ECHO_N "(cached) $ECHO_C" >&6
31004 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31006 cat >conftest.$ac_ext <<_ACEOF
31009 cat confdefs.h >>conftest.$ac_ext
31010 cat >>conftest.$ac_ext <<_ACEOF
31011 /* end confdefs.h. */
31013 #ifdef HAVE_DB_185_H
31014 # include <db_185.h>
31019 #ifndef DB_VERSION_MAJOR
31020 # define DB_VERSION_MAJOR 1
31024 #define NULL ((void*)0)
31031 #if DB_VERSION_MAJOR > 1
31034 int major, minor, patch;
31036 version = db_version( &major, &minor, &patch );
31038 if( major != DB_VERSION_MAJOR ||
31039 minor < DB_VERSION_MINOR )
31041 printf("Berkeley DB version mismatch\n"
31042 "\theader: %s\n\tlibrary: %s\n",
31043 DB_VERSION_STRING, version);
31049 #if DB_VERSION_MAJOR > 2
31050 db_env_create( NULL, 0 );
31051 #elif DB_VERSION_MAJOR > 1
31052 db_appexit( NULL );
31054 (void) dbopen( NULL, 0, 0, 0, NULL);
31061 rm -f conftest.$ac_objext conftest$ac_exeext
31062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31063 (eval $ac_link) 2>conftest.er1
31065 grep -v '^ *+' conftest.er1 >conftest.err
31067 cat conftest.err >&5
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); } &&
31070 { ac_try='test -z "$ac_c_werror_flag"
31071 || test ! -s conftest.err'
31072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31073 (eval $ac_try) 2>&5
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); }; } &&
31077 { ac_try='test -s conftest$ac_exeext'
31078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31079 (eval $ac_try) 2>&5
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); }; }; then
31085 echo "$as_me: failed program was:" >&5
31086 sed 's/^/| /' conftest.$ac_ext >&5
31090 rm -f conftest.err conftest.$ac_objext \
31091 conftest$ac_exeext conftest.$ac_ext
31096 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
31097 echo "${ECHO_T}$ol_cv_db_db3" >&6
31099 if test $ol_cv_db_db3 = yes ; then
31104 if test $ol_cv_lib_db = no ; then
31105 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
31106 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
31107 if test "${ol_cv_db_db_3+set}" = set; then
31108 echo $ECHO_N "(cached) $ECHO_C" >&6
31113 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31115 cat >conftest.$ac_ext <<_ACEOF
31118 cat confdefs.h >>conftest.$ac_ext
31119 cat >>conftest.$ac_ext <<_ACEOF
31120 /* end confdefs.h. */
31122 #ifdef HAVE_DB_185_H
31123 # include <db_185.h>
31128 #ifndef DB_VERSION_MAJOR
31129 # define DB_VERSION_MAJOR 1
31133 #define NULL ((void*)0)
31140 #if DB_VERSION_MAJOR > 1
31143 int major, minor, patch;
31145 version = db_version( &major, &minor, &patch );
31147 if( major != DB_VERSION_MAJOR ||
31148 minor < DB_VERSION_MINOR )
31150 printf("Berkeley DB version mismatch\n"
31151 "\theader: %s\n\tlibrary: %s\n",
31152 DB_VERSION_STRING, version);
31158 #if DB_VERSION_MAJOR > 2
31159 db_env_create( NULL, 0 );
31160 #elif DB_VERSION_MAJOR > 1
31161 db_appexit( NULL );
31163 (void) dbopen( NULL, 0, 0, 0, NULL);
31170 rm -f conftest.$ac_objext conftest$ac_exeext
31171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31172 (eval $ac_link) 2>conftest.er1
31174 grep -v '^ *+' conftest.er1 >conftest.err
31176 cat conftest.err >&5
31177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178 (exit $ac_status); } &&
31179 { ac_try='test -z "$ac_c_werror_flag"
31180 || test ! -s conftest.err'
31181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31182 (eval $ac_try) 2>&5
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); }; } &&
31186 { ac_try='test -s conftest$ac_exeext'
31187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31188 (eval $ac_try) 2>&5
31190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191 (exit $ac_status); }; }; then
31194 echo "$as_me: failed program was:" >&5
31195 sed 's/^/| /' conftest.$ac_ext >&5
31199 rm -f conftest.err conftest.$ac_objext \
31200 conftest$ac_exeext conftest.$ac_ext
31205 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
31206 echo "${ECHO_T}$ol_cv_db_db_3" >&6
31208 if test $ol_cv_db_db_3 = yes ; then
31209 ol_cv_lib_db=-ldb-3
31214 elif test $ol_cv_bdb_major = 2 ; then
31215 if test $ol_cv_lib_db = no ; then
31216 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
31217 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
31218 if test "${ol_cv_db_db2+set}" = set; then
31219 echo $ECHO_N "(cached) $ECHO_C" >&6
31224 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31226 cat >conftest.$ac_ext <<_ACEOF
31229 cat confdefs.h >>conftest.$ac_ext
31230 cat >>conftest.$ac_ext <<_ACEOF
31231 /* end confdefs.h. */
31233 #ifdef HAVE_DB_185_H
31234 # include <db_185.h>
31239 #ifndef DB_VERSION_MAJOR
31240 # define DB_VERSION_MAJOR 1
31244 #define NULL ((void*)0)
31251 #if DB_VERSION_MAJOR > 1
31254 int major, minor, patch;
31256 version = db_version( &major, &minor, &patch );
31258 if( major != DB_VERSION_MAJOR ||
31259 minor < DB_VERSION_MINOR )
31261 printf("Berkeley DB version mismatch\n"
31262 "\theader: %s\n\tlibrary: %s\n",
31263 DB_VERSION_STRING, version);
31269 #if DB_VERSION_MAJOR > 2
31270 db_env_create( NULL, 0 );
31271 #elif DB_VERSION_MAJOR > 1
31272 db_appexit( NULL );
31274 (void) dbopen( NULL, 0, 0, 0, NULL);
31281 rm -f conftest.$ac_objext conftest$ac_exeext
31282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31283 (eval $ac_link) 2>conftest.er1
31285 grep -v '^ *+' conftest.er1 >conftest.err
31287 cat conftest.err >&5
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); } &&
31290 { ac_try='test -z "$ac_c_werror_flag"
31291 || test ! -s conftest.err'
31292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31293 (eval $ac_try) 2>&5
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); }; } &&
31297 { ac_try='test -s conftest$ac_exeext'
31298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31299 (eval $ac_try) 2>&5
31301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31302 (exit $ac_status); }; }; then
31305 echo "$as_me: failed program was:" >&5
31306 sed 's/^/| /' conftest.$ac_ext >&5
31310 rm -f conftest.err conftest.$ac_objext \
31311 conftest$ac_exeext conftest.$ac_ext
31316 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
31317 echo "${ECHO_T}$ol_cv_db_db2" >&6
31319 if test $ol_cv_db_db2 = yes ; then
31324 if test $ol_cv_lib_db = no ; then
31325 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
31326 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
31327 if test "${ol_cv_db_db_2+set}" = set; then
31328 echo $ECHO_N "(cached) $ECHO_C" >&6
31333 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31335 cat >conftest.$ac_ext <<_ACEOF
31338 cat confdefs.h >>conftest.$ac_ext
31339 cat >>conftest.$ac_ext <<_ACEOF
31340 /* end confdefs.h. */
31342 #ifdef HAVE_DB_185_H
31343 # include <db_185.h>
31348 #ifndef DB_VERSION_MAJOR
31349 # define DB_VERSION_MAJOR 1
31353 #define NULL ((void*)0)
31360 #if DB_VERSION_MAJOR > 1
31363 int major, minor, patch;
31365 version = db_version( &major, &minor, &patch );
31367 if( major != DB_VERSION_MAJOR ||
31368 minor < DB_VERSION_MINOR )
31370 printf("Berkeley DB version mismatch\n"
31371 "\theader: %s\n\tlibrary: %s\n",
31372 DB_VERSION_STRING, version);
31378 #if DB_VERSION_MAJOR > 2
31379 db_env_create( NULL, 0 );
31380 #elif DB_VERSION_MAJOR > 1
31381 db_appexit( NULL );
31383 (void) dbopen( NULL, 0, 0, 0, NULL);
31390 rm -f conftest.$ac_objext conftest$ac_exeext
31391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31392 (eval $ac_link) 2>conftest.er1
31394 grep -v '^ *+' conftest.er1 >conftest.err
31396 cat conftest.err >&5
31397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398 (exit $ac_status); } &&
31399 { ac_try='test -z "$ac_c_werror_flag"
31400 || test ! -s conftest.err'
31401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31402 (eval $ac_try) 2>&5
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405 (exit $ac_status); }; } &&
31406 { ac_try='test -s conftest$ac_exeext'
31407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31408 (eval $ac_try) 2>&5
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); }; }; then
31414 echo "$as_me: failed program was:" >&5
31415 sed 's/^/| /' conftest.$ac_ext >&5
31419 rm -f conftest.err conftest.$ac_objext \
31420 conftest$ac_exeext conftest.$ac_ext
31425 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
31426 echo "${ECHO_T}$ol_cv_db_db_2" >&6
31428 if test $ol_cv_db_db_2 = yes ; then
31429 ol_cv_lib_db=-ldb-2
31434 elif test $ol_cv_bdb_major = 1 ; then
31435 if test $ol_cv_lib_db = no ; then
31436 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
31437 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
31438 if test "${ol_cv_db_db1+set}" = set; then
31439 echo $ECHO_N "(cached) $ECHO_C" >&6
31444 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31446 cat >conftest.$ac_ext <<_ACEOF
31449 cat confdefs.h >>conftest.$ac_ext
31450 cat >>conftest.$ac_ext <<_ACEOF
31451 /* end confdefs.h. */
31453 #ifdef HAVE_DB_185_H
31454 # include <db_185.h>
31459 #ifndef DB_VERSION_MAJOR
31460 # define DB_VERSION_MAJOR 1
31464 #define NULL ((void*)0)
31471 #if DB_VERSION_MAJOR > 1
31474 int major, minor, patch;
31476 version = db_version( &major, &minor, &patch );
31478 if( major != DB_VERSION_MAJOR ||
31479 minor < DB_VERSION_MINOR )
31481 printf("Berkeley DB version mismatch\n"
31482 "\theader: %s\n\tlibrary: %s\n",
31483 DB_VERSION_STRING, version);
31489 #if DB_VERSION_MAJOR > 2
31490 db_env_create( NULL, 0 );
31491 #elif DB_VERSION_MAJOR > 1
31492 db_appexit( NULL );
31494 (void) dbopen( NULL, 0, 0, 0, NULL);
31501 rm -f conftest.$ac_objext conftest$ac_exeext
31502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31503 (eval $ac_link) 2>conftest.er1
31505 grep -v '^ *+' conftest.er1 >conftest.err
31507 cat conftest.err >&5
31508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509 (exit $ac_status); } &&
31510 { ac_try='test -z "$ac_c_werror_flag"
31511 || test ! -s conftest.err'
31512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31513 (eval $ac_try) 2>&5
31515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516 (exit $ac_status); }; } &&
31517 { ac_try='test -s conftest$ac_exeext'
31518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31519 (eval $ac_try) 2>&5
31521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31522 (exit $ac_status); }; }; then
31525 echo "$as_me: failed program was:" >&5
31526 sed 's/^/| /' conftest.$ac_ext >&5
31530 rm -f conftest.err conftest.$ac_objext \
31531 conftest$ac_exeext conftest.$ac_ext
31536 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
31537 echo "${ECHO_T}$ol_cv_db_db1" >&6
31539 if test $ol_cv_db_db1 = yes ; then
31544 if test $ol_cv_lib_db = no ; then
31545 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
31546 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
31547 if test "${ol_cv_db_db_1+set}" = set; then
31548 echo $ECHO_N "(cached) $ECHO_C" >&6
31553 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31555 cat >conftest.$ac_ext <<_ACEOF
31558 cat confdefs.h >>conftest.$ac_ext
31559 cat >>conftest.$ac_ext <<_ACEOF
31560 /* end confdefs.h. */
31562 #ifdef HAVE_DB_185_H
31563 # include <db_185.h>
31568 #ifndef DB_VERSION_MAJOR
31569 # define DB_VERSION_MAJOR 1
31573 #define NULL ((void*)0)
31580 #if DB_VERSION_MAJOR > 1
31583 int major, minor, patch;
31585 version = db_version( &major, &minor, &patch );
31587 if( major != DB_VERSION_MAJOR ||
31588 minor < DB_VERSION_MINOR )
31590 printf("Berkeley DB version mismatch\n"
31591 "\theader: %s\n\tlibrary: %s\n",
31592 DB_VERSION_STRING, version);
31598 #if DB_VERSION_MAJOR > 2
31599 db_env_create( NULL, 0 );
31600 #elif DB_VERSION_MAJOR > 1
31601 db_appexit( NULL );
31603 (void) dbopen( NULL, 0, 0, 0, NULL);
31610 rm -f conftest.$ac_objext conftest$ac_exeext
31611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31612 (eval $ac_link) 2>conftest.er1
31614 grep -v '^ *+' conftest.er1 >conftest.err
31616 cat conftest.err >&5
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); } &&
31619 { ac_try='test -z "$ac_c_werror_flag"
31620 || test ! -s conftest.err'
31621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31622 (eval $ac_try) 2>&5
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); }; } &&
31626 { ac_try='test -s conftest$ac_exeext'
31627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31628 (eval $ac_try) 2>&5
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); }; }; then
31634 echo "$as_me: failed program was:" >&5
31635 sed 's/^/| /' conftest.$ac_ext >&5
31639 rm -f conftest.err conftest.$ac_objext \
31640 conftest$ac_exeext conftest.$ac_ext
31645 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31646 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31648 if test $ol_cv_db_db_1 = yes ; then
31649 ol_cv_lib_db=-ldb-1
31654 if test $ol_cv_lib_db = no ; then
31655 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31656 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31657 if test "${ol_cv_db_none+set}" = set; then
31658 echo $ECHO_N "(cached) $ECHO_C" >&6
31663 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31665 cat >conftest.$ac_ext <<_ACEOF
31668 cat confdefs.h >>conftest.$ac_ext
31669 cat >>conftest.$ac_ext <<_ACEOF
31670 /* end confdefs.h. */
31672 #ifdef HAVE_DB_185_H
31673 # include <db_185.h>
31678 #ifndef DB_VERSION_MAJOR
31679 # define DB_VERSION_MAJOR 1
31683 #define NULL ((void*)0)
31690 #if DB_VERSION_MAJOR > 1
31693 int major, minor, patch;
31695 version = db_version( &major, &minor, &patch );
31697 if( major != DB_VERSION_MAJOR ||
31698 minor < DB_VERSION_MINOR )
31700 printf("Berkeley DB version mismatch\n"
31701 "\theader: %s\n\tlibrary: %s\n",
31702 DB_VERSION_STRING, version);
31708 #if DB_VERSION_MAJOR > 2
31709 db_env_create( NULL, 0 );
31710 #elif DB_VERSION_MAJOR > 1
31711 db_appexit( NULL );
31713 (void) dbopen( NULL, 0, 0, 0, NULL);
31720 rm -f conftest.$ac_objext conftest$ac_exeext
31721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31722 (eval $ac_link) 2>conftest.er1
31724 grep -v '^ *+' conftest.er1 >conftest.err
31726 cat conftest.err >&5
31727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728 (exit $ac_status); } &&
31729 { ac_try='test -z "$ac_c_werror_flag"
31730 || test ! -s conftest.err'
31731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31732 (eval $ac_try) 2>&5
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); }; } &&
31736 { ac_try='test -s conftest$ac_exeext'
31737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31738 (eval $ac_try) 2>&5
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); }; }; then
31744 echo "$as_me: failed program was:" >&5
31745 sed 's/^/| /' conftest.$ac_ext >&5
31749 rm -f conftest.err conftest.$ac_objext \
31750 conftest$ac_exeext conftest.$ac_ext
31755 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31756 echo "${ECHO_T}$ol_cv_db_none" >&6
31758 if test $ol_cv_db_none = yes ; then
31764 if test "$ol_cv_lib_db" != no ; then
31765 ol_cv_berkeley_db=yes
31771 ol_cv_berkeley_db=no
31773 for ac_header in db.h
31775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31777 echo "$as_me:$LINENO: checking for $ac_header" >&5
31778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31780 echo $ECHO_N "(cached) $ECHO_C" >&6
31782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31785 # Is the header compilable?
31786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31788 cat >conftest.$ac_ext <<_ACEOF
31791 cat confdefs.h >>conftest.$ac_ext
31792 cat >>conftest.$ac_ext <<_ACEOF
31793 /* end confdefs.h. */
31794 $ac_includes_default
31795 #include <$ac_header>
31797 rm -f conftest.$ac_objext
31798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31799 (eval $ac_compile) 2>conftest.er1
31801 grep -v '^ *+' conftest.er1 >conftest.err
31803 cat conftest.err >&5
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); } &&
31806 { ac_try='test -z "$ac_c_werror_flag"
31807 || test ! -s conftest.err'
31808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31809 (eval $ac_try) 2>&5
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); }; } &&
31813 { ac_try='test -s conftest.$ac_objext'
31814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31815 (eval $ac_try) 2>&5
31817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818 (exit $ac_status); }; }; then
31819 ac_header_compiler=yes
31821 echo "$as_me: failed program was:" >&5
31822 sed 's/^/| /' conftest.$ac_ext >&5
31824 ac_header_compiler=no
31826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31828 echo "${ECHO_T}$ac_header_compiler" >&6
31830 # Is the header present?
31831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31833 cat >conftest.$ac_ext <<_ACEOF
31836 cat confdefs.h >>conftest.$ac_ext
31837 cat >>conftest.$ac_ext <<_ACEOF
31838 /* end confdefs.h. */
31839 #include <$ac_header>
31841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31844 grep -v '^ *+' conftest.er1 >conftest.err
31846 cat conftest.err >&5
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); } >/dev/null; then
31849 if test -s conftest.err; then
31850 ac_cpp_err=$ac_c_preproc_warn_flag
31851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31858 if test -z "$ac_cpp_err"; then
31859 ac_header_preproc=yes
31861 echo "$as_me: failed program was:" >&5
31862 sed 's/^/| /' conftest.$ac_ext >&5
31864 ac_header_preproc=no
31866 rm -f conftest.err conftest.$ac_ext
31867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31868 echo "${ECHO_T}$ac_header_preproc" >&6
31870 # So? What about this header?
31871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31877 ac_header_preproc=yes
31880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31894 ## --------------------------------------------- ##
31895 ## Report this to <http://www.openldap.org/its/> ##
31896 ## --------------------------------------------- ##
31899 sed "s/^/$as_me: WARNING: /" >&2
31902 echo "$as_me:$LINENO: checking for $ac_header" >&5
31903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31905 echo $ECHO_N "(cached) $ECHO_C" >&6
31907 eval "$as_ac_Header=\$ac_header_preproc"
31909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31914 cat >>confdefs.h <<_ACEOF
31915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31922 if test $ac_cv_header_db_h = yes; then
31925 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31926 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31927 if test "${ol_cv_bdb_major+set}" = set; then
31928 echo $ECHO_N "(cached) $ECHO_C" >&6
31932 if test $ol_cv_bdb_major = 0 ; then
31933 cat >conftest.$ac_ext <<_ACEOF
31936 cat confdefs.h >>conftest.$ac_ext
31937 cat >>conftest.$ac_ext <<_ACEOF
31938 /* end confdefs.h. */
31941 #ifndef DB_VERSION_MAJOR
31942 # define DB_VERSION_MAJOR 1
31944 #if DB_VERSION_MAJOR == 4
31949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31950 $EGREP "__db_version" >/dev/null 2>&1; then
31958 if test $ol_cv_bdb_major = 0 ; then
31959 cat >conftest.$ac_ext <<_ACEOF
31962 cat confdefs.h >>conftest.$ac_ext
31963 cat >>conftest.$ac_ext <<_ACEOF
31964 /* end confdefs.h. */
31967 #ifndef DB_VERSION_MAJOR
31968 # define DB_VERSION_MAJOR 1
31970 #if DB_VERSION_MAJOR == 3
31975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31976 $EGREP "__db_version" >/dev/null 2>&1; then
31984 if test $ol_cv_bdb_major = 0 ; then
31985 cat >conftest.$ac_ext <<_ACEOF
31988 cat confdefs.h >>conftest.$ac_ext
31989 cat >>conftest.$ac_ext <<_ACEOF
31990 /* end confdefs.h. */
31993 #ifndef DB_VERSION_MAJOR
31994 # define DB_VERSION_MAJOR 1
31996 #if DB_VERSION_MAJOR == 2
32001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32002 $EGREP "__db_version" >/dev/null 2>&1; then
32010 if test $ol_cv_bdb_major = 0 ; then
32011 cat >conftest.$ac_ext <<_ACEOF
32014 cat confdefs.h >>conftest.$ac_ext
32015 cat >>conftest.$ac_ext <<_ACEOF
32016 /* end confdefs.h. */
32019 #ifndef DB_VERSION_MAJOR
32020 # define DB_VERSION_MAJOR 1
32022 #if DB_VERSION_MAJOR == 1
32027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32028 $EGREP "__db_version" >/dev/null 2>&1; then
32037 if test $ol_cv_bdb_major = 0 ; then
32038 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
32039 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
32040 { (exit 1); exit 1; }; }
32044 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
32045 echo "${ECHO_T}$ol_cv_bdb_major" >&6
32047 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
32048 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
32049 if test "${ol_cv_bdb_minor+set}" = set; then
32050 echo $ECHO_N "(cached) $ECHO_C" >&6
32054 if test $ol_cv_bdb_minor = 0 ; then
32055 cat >conftest.$ac_ext <<_ACEOF
32058 cat confdefs.h >>conftest.$ac_ext
32059 cat >>conftest.$ac_ext <<_ACEOF
32060 /* end confdefs.h. */
32063 #ifndef DB_VERSION_MINOR
32064 # define DB_VERSION_MINOR 0
32066 #if DB_VERSION_MINOR == 9
32071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32072 $EGREP "__db_version" >/dev/null 2>&1; then
32080 if test $ol_cv_bdb_minor = 0 ; then
32081 cat >conftest.$ac_ext <<_ACEOF
32084 cat confdefs.h >>conftest.$ac_ext
32085 cat >>conftest.$ac_ext <<_ACEOF
32086 /* end confdefs.h. */
32089 #ifndef DB_VERSION_MINOR
32090 # define DB_VERSION_MINOR 0
32092 #if DB_VERSION_MINOR == 8
32097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32098 $EGREP "__db_version" >/dev/null 2>&1; then
32106 if test $ol_cv_bdb_minor = 0 ; then
32107 cat >conftest.$ac_ext <<_ACEOF
32110 cat confdefs.h >>conftest.$ac_ext
32111 cat >>conftest.$ac_ext <<_ACEOF
32112 /* end confdefs.h. */
32115 #ifndef DB_VERSION_MINOR
32116 # define DB_VERSION_MINOR 0
32118 #if DB_VERSION_MINOR == 7
32123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32124 $EGREP "__db_version" >/dev/null 2>&1; then
32132 if test $ol_cv_bdb_minor = 0 ; then
32133 cat >conftest.$ac_ext <<_ACEOF
32136 cat confdefs.h >>conftest.$ac_ext
32137 cat >>conftest.$ac_ext <<_ACEOF
32138 /* end confdefs.h. */
32141 #ifndef DB_VERSION_MINOR
32142 # define DB_VERSION_MINOR 0
32144 #if DB_VERSION_MINOR == 6
32149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32150 $EGREP "__db_version" >/dev/null 2>&1; then
32158 if test $ol_cv_bdb_minor = 0 ; then
32159 cat >conftest.$ac_ext <<_ACEOF
32162 cat confdefs.h >>conftest.$ac_ext
32163 cat >>conftest.$ac_ext <<_ACEOF
32164 /* end confdefs.h. */
32167 #ifndef DB_VERSION_MINOR
32168 # define DB_VERSION_MINOR 0
32170 #if DB_VERSION_MINOR == 5
32175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32176 $EGREP "__db_version" >/dev/null 2>&1; then
32184 if test $ol_cv_bdb_minor = 0 ; then
32185 cat >conftest.$ac_ext <<_ACEOF
32188 cat confdefs.h >>conftest.$ac_ext
32189 cat >>conftest.$ac_ext <<_ACEOF
32190 /* end confdefs.h. */
32193 #ifndef DB_VERSION_MINOR
32194 # define DB_VERSION_MINOR 0
32196 #if DB_VERSION_MINOR == 4
32201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32202 $EGREP "__db_version" >/dev/null 2>&1; then
32210 if test $ol_cv_bdb_minor = 0 ; then
32211 cat >conftest.$ac_ext <<_ACEOF
32214 cat confdefs.h >>conftest.$ac_ext
32215 cat >>conftest.$ac_ext <<_ACEOF
32216 /* end confdefs.h. */
32219 #ifndef DB_VERSION_MINOR
32220 # define DB_VERSION_MINOR 0
32222 #if DB_VERSION_MINOR == 3
32227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32228 $EGREP "__db_version" >/dev/null 2>&1; then
32236 if test $ol_cv_bdb_minor = 0 ; then
32237 cat >conftest.$ac_ext <<_ACEOF
32240 cat confdefs.h >>conftest.$ac_ext
32241 cat >>conftest.$ac_ext <<_ACEOF
32242 /* end confdefs.h. */
32245 #ifndef DB_VERSION_MINOR
32246 # define DB_VERSION_MINOR 0
32248 #if DB_VERSION_MINOR == 2
32253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32254 $EGREP "__db_version" >/dev/null 2>&1; then
32262 if test $ol_cv_bdb_minor = 0 ; then
32263 cat >conftest.$ac_ext <<_ACEOF
32266 cat confdefs.h >>conftest.$ac_ext
32267 cat >>conftest.$ac_ext <<_ACEOF
32268 /* end confdefs.h. */
32271 #ifndef DB_VERSION_MINOR
32272 # define DB_VERSION_MINOR 0
32274 #if DB_VERSION_MINOR == 1
32279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32280 $EGREP "__db_version" >/dev/null 2>&1; then
32290 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
32291 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
32293 if test $ol_cv_bdb_major = 4 ; then
32294 if test $ol_cv_bdb_minor = 5 ; then
32295 if test $ol_cv_lib_db = no ; then
32296 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
32297 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6
32298 if test "${ol_cv_db_db45+set}" = set; then
32299 echo $ECHO_N "(cached) $ECHO_C" >&6
32304 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32306 cat >conftest.$ac_ext <<_ACEOF
32309 cat confdefs.h >>conftest.$ac_ext
32310 cat >>conftest.$ac_ext <<_ACEOF
32311 /* end confdefs.h. */
32313 #ifdef HAVE_DB_185_H
32314 # include <db_185.h>
32319 #ifndef DB_VERSION_MAJOR
32320 # define DB_VERSION_MAJOR 1
32324 #define NULL ((void*)0)
32331 #if DB_VERSION_MAJOR > 1
32334 int major, minor, patch;
32336 version = db_version( &major, &minor, &patch );
32338 if( major != DB_VERSION_MAJOR ||
32339 minor < DB_VERSION_MINOR )
32341 printf("Berkeley DB version mismatch\n"
32342 "\theader: %s\n\tlibrary: %s\n",
32343 DB_VERSION_STRING, version);
32349 #if DB_VERSION_MAJOR > 2
32350 db_env_create( NULL, 0 );
32351 #elif DB_VERSION_MAJOR > 1
32352 db_appexit( NULL );
32354 (void) dbopen( NULL, 0, 0, 0, NULL);
32361 rm -f conftest.$ac_objext conftest$ac_exeext
32362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32363 (eval $ac_link) 2>conftest.er1
32365 grep -v '^ *+' conftest.er1 >conftest.err
32367 cat conftest.err >&5
32368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369 (exit $ac_status); } &&
32370 { ac_try='test -z "$ac_c_werror_flag"
32371 || test ! -s conftest.err'
32372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32373 (eval $ac_try) 2>&5
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); }; } &&
32377 { ac_try='test -s conftest$ac_exeext'
32378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32379 (eval $ac_try) 2>&5
32381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); }; }; then
32385 echo "$as_me: failed program was:" >&5
32386 sed 's/^/| /' conftest.$ac_ext >&5
32390 rm -f conftest.err conftest.$ac_objext \
32391 conftest$ac_exeext conftest.$ac_ext
32396 echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
32397 echo "${ECHO_T}$ol_cv_db_db45" >&6
32399 if test $ol_cv_db_db45 = yes ; then
32400 ol_cv_lib_db=-ldb45
32404 if test $ol_cv_lib_db = no ; then
32405 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
32406 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6
32407 if test "${ol_cv_db_db_45+set}" = set; then
32408 echo $ECHO_N "(cached) $ECHO_C" >&6
32413 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32415 cat >conftest.$ac_ext <<_ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h. */
32422 #ifdef HAVE_DB_185_H
32423 # include <db_185.h>
32428 #ifndef DB_VERSION_MAJOR
32429 # define DB_VERSION_MAJOR 1
32433 #define NULL ((void*)0)
32440 #if DB_VERSION_MAJOR > 1
32443 int major, minor, patch;
32445 version = db_version( &major, &minor, &patch );
32447 if( major != DB_VERSION_MAJOR ||
32448 minor < DB_VERSION_MINOR )
32450 printf("Berkeley DB version mismatch\n"
32451 "\theader: %s\n\tlibrary: %s\n",
32452 DB_VERSION_STRING, version);
32458 #if DB_VERSION_MAJOR > 2
32459 db_env_create( NULL, 0 );
32460 #elif DB_VERSION_MAJOR > 1
32461 db_appexit( NULL );
32463 (void) dbopen( NULL, 0, 0, 0, NULL);
32470 rm -f conftest.$ac_objext conftest$ac_exeext
32471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32472 (eval $ac_link) 2>conftest.er1
32474 grep -v '^ *+' conftest.er1 >conftest.err
32476 cat conftest.err >&5
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); } &&
32479 { ac_try='test -z "$ac_c_werror_flag"
32480 || test ! -s conftest.err'
32481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32482 (eval $ac_try) 2>&5
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); }; } &&
32486 { ac_try='test -s conftest$ac_exeext'
32487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32488 (eval $ac_try) 2>&5
32490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491 (exit $ac_status); }; }; then
32494 echo "$as_me: failed program was:" >&5
32495 sed 's/^/| /' conftest.$ac_ext >&5
32499 rm -f conftest.err conftest.$ac_objext \
32500 conftest$ac_exeext conftest.$ac_ext
32505 echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
32506 echo "${ECHO_T}$ol_cv_db_db_45" >&6
32508 if test $ol_cv_db_db_45 = yes ; then
32509 ol_cv_lib_db=-ldb-45
32513 if test $ol_cv_lib_db = no ; then
32514 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
32515 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6
32516 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
32517 echo $ECHO_N "(cached) $ECHO_C" >&6
32522 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32524 cat >conftest.$ac_ext <<_ACEOF
32527 cat confdefs.h >>conftest.$ac_ext
32528 cat >>conftest.$ac_ext <<_ACEOF
32529 /* end confdefs.h. */
32531 #ifdef HAVE_DB_185_H
32532 # include <db_185.h>
32537 #ifndef DB_VERSION_MAJOR
32538 # define DB_VERSION_MAJOR 1
32542 #define NULL ((void*)0)
32549 #if DB_VERSION_MAJOR > 1
32552 int major, minor, patch;
32554 version = db_version( &major, &minor, &patch );
32556 if( major != DB_VERSION_MAJOR ||
32557 minor < DB_VERSION_MINOR )
32559 printf("Berkeley DB version mismatch\n"
32560 "\theader: %s\n\tlibrary: %s\n",
32561 DB_VERSION_STRING, version);
32567 #if DB_VERSION_MAJOR > 2
32568 db_env_create( NULL, 0 );
32569 #elif DB_VERSION_MAJOR > 1
32570 db_appexit( NULL );
32572 (void) dbopen( NULL, 0, 0, 0, NULL);
32579 rm -f conftest.$ac_objext conftest$ac_exeext
32580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32581 (eval $ac_link) 2>conftest.er1
32583 grep -v '^ *+' conftest.er1 >conftest.err
32585 cat conftest.err >&5
32586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587 (exit $ac_status); } &&
32588 { ac_try='test -z "$ac_c_werror_flag"
32589 || test ! -s conftest.err'
32590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32591 (eval $ac_try) 2>&5
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); }; } &&
32595 { ac_try='test -s conftest$ac_exeext'
32596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32597 (eval $ac_try) 2>&5
32599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600 (exit $ac_status); }; }; then
32601 ol_cv_db_db_4_dot_5=yes
32603 echo "$as_me: failed program was:" >&5
32604 sed 's/^/| /' conftest.$ac_ext >&5
32606 ol_cv_db_db_4_dot_5=no
32608 rm -f conftest.err conftest.$ac_objext \
32609 conftest$ac_exeext conftest.$ac_ext
32614 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
32615 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6
32617 if test $ol_cv_db_db_4_dot_5 = yes ; then
32618 ol_cv_lib_db=-ldb-4.5
32622 if test $ol_cv_lib_db = no ; then
32623 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
32624 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6
32625 if test "${ol_cv_db_db_4_5+set}" = set; then
32626 echo $ECHO_N "(cached) $ECHO_C" >&6
32631 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32633 cat >conftest.$ac_ext <<_ACEOF
32636 cat confdefs.h >>conftest.$ac_ext
32637 cat >>conftest.$ac_ext <<_ACEOF
32638 /* end confdefs.h. */
32640 #ifdef HAVE_DB_185_H
32641 # include <db_185.h>
32646 #ifndef DB_VERSION_MAJOR
32647 # define DB_VERSION_MAJOR 1
32651 #define NULL ((void*)0)
32658 #if DB_VERSION_MAJOR > 1
32661 int major, minor, patch;
32663 version = db_version( &major, &minor, &patch );
32665 if( major != DB_VERSION_MAJOR ||
32666 minor < DB_VERSION_MINOR )
32668 printf("Berkeley DB version mismatch\n"
32669 "\theader: %s\n\tlibrary: %s\n",
32670 DB_VERSION_STRING, version);
32676 #if DB_VERSION_MAJOR > 2
32677 db_env_create( NULL, 0 );
32678 #elif DB_VERSION_MAJOR > 1
32679 db_appexit( NULL );
32681 (void) dbopen( NULL, 0, 0, 0, NULL);
32688 rm -f conftest.$ac_objext conftest$ac_exeext
32689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32690 (eval $ac_link) 2>conftest.er1
32692 grep -v '^ *+' conftest.er1 >conftest.err
32694 cat conftest.err >&5
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); } &&
32697 { ac_try='test -z "$ac_c_werror_flag"
32698 || test ! -s conftest.err'
32699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32700 (eval $ac_try) 2>&5
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); }; } &&
32704 { ac_try='test -s conftest$ac_exeext'
32705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32706 (eval $ac_try) 2>&5
32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709 (exit $ac_status); }; }; then
32710 ol_cv_db_db_4_5=yes
32712 echo "$as_me: failed program was:" >&5
32713 sed 's/^/| /' conftest.$ac_ext >&5
32717 rm -f conftest.err conftest.$ac_objext \
32718 conftest$ac_exeext conftest.$ac_ext
32723 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
32724 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6
32726 if test $ol_cv_db_db_4_5 = yes ; then
32727 ol_cv_lib_db=-ldb-4-5
32731 elif test $ol_cv_bdb_minor = 4 ; then
32732 if test $ol_cv_lib_db = no ; then
32733 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
32734 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
32735 if test "${ol_cv_db_db44+set}" = set; then
32736 echo $ECHO_N "(cached) $ECHO_C" >&6
32741 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32743 cat >conftest.$ac_ext <<_ACEOF
32746 cat confdefs.h >>conftest.$ac_ext
32747 cat >>conftest.$ac_ext <<_ACEOF
32748 /* end confdefs.h. */
32750 #ifdef HAVE_DB_185_H
32751 # include <db_185.h>
32756 #ifndef DB_VERSION_MAJOR
32757 # define DB_VERSION_MAJOR 1
32761 #define NULL ((void*)0)
32768 #if DB_VERSION_MAJOR > 1
32771 int major, minor, patch;
32773 version = db_version( &major, &minor, &patch );
32775 if( major != DB_VERSION_MAJOR ||
32776 minor < DB_VERSION_MINOR )
32778 printf("Berkeley DB version mismatch\n"
32779 "\theader: %s\n\tlibrary: %s\n",
32780 DB_VERSION_STRING, version);
32786 #if DB_VERSION_MAJOR > 2
32787 db_env_create( NULL, 0 );
32788 #elif DB_VERSION_MAJOR > 1
32789 db_appexit( NULL );
32791 (void) dbopen( NULL, 0, 0, 0, NULL);
32798 rm -f conftest.$ac_objext conftest$ac_exeext
32799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32800 (eval $ac_link) 2>conftest.er1
32802 grep -v '^ *+' conftest.er1 >conftest.err
32804 cat conftest.err >&5
32805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806 (exit $ac_status); } &&
32807 { ac_try='test -z "$ac_c_werror_flag"
32808 || test ! -s conftest.err'
32809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32810 (eval $ac_try) 2>&5
32812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813 (exit $ac_status); }; } &&
32814 { ac_try='test -s conftest$ac_exeext'
32815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32816 (eval $ac_try) 2>&5
32818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819 (exit $ac_status); }; }; then
32822 echo "$as_me: failed program was:" >&5
32823 sed 's/^/| /' conftest.$ac_ext >&5
32827 rm -f conftest.err conftest.$ac_objext \
32828 conftest$ac_exeext conftest.$ac_ext
32833 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
32834 echo "${ECHO_T}$ol_cv_db_db44" >&6
32836 if test $ol_cv_db_db44 = yes ; then
32837 ol_cv_lib_db=-ldb44
32841 if test $ol_cv_lib_db = no ; then
32842 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
32843 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
32844 if test "${ol_cv_db_db_44+set}" = set; then
32845 echo $ECHO_N "(cached) $ECHO_C" >&6
32850 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32852 cat >conftest.$ac_ext <<_ACEOF
32855 cat confdefs.h >>conftest.$ac_ext
32856 cat >>conftest.$ac_ext <<_ACEOF
32857 /* end confdefs.h. */
32859 #ifdef HAVE_DB_185_H
32860 # include <db_185.h>
32865 #ifndef DB_VERSION_MAJOR
32866 # define DB_VERSION_MAJOR 1
32870 #define NULL ((void*)0)
32877 #if DB_VERSION_MAJOR > 1
32880 int major, minor, patch;
32882 version = db_version( &major, &minor, &patch );
32884 if( major != DB_VERSION_MAJOR ||
32885 minor < DB_VERSION_MINOR )
32887 printf("Berkeley DB version mismatch\n"
32888 "\theader: %s\n\tlibrary: %s\n",
32889 DB_VERSION_STRING, version);
32895 #if DB_VERSION_MAJOR > 2
32896 db_env_create( NULL, 0 );
32897 #elif DB_VERSION_MAJOR > 1
32898 db_appexit( NULL );
32900 (void) dbopen( NULL, 0, 0, 0, NULL);
32907 rm -f conftest.$ac_objext conftest$ac_exeext
32908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32909 (eval $ac_link) 2>conftest.er1
32911 grep -v '^ *+' conftest.er1 >conftest.err
32913 cat conftest.err >&5
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); } &&
32916 { ac_try='test -z "$ac_c_werror_flag"
32917 || test ! -s conftest.err'
32918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32919 (eval $ac_try) 2>&5
32921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); }; } &&
32923 { ac_try='test -s conftest$ac_exeext'
32924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32925 (eval $ac_try) 2>&5
32927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928 (exit $ac_status); }; }; then
32931 echo "$as_me: failed program was:" >&5
32932 sed 's/^/| /' conftest.$ac_ext >&5
32936 rm -f conftest.err conftest.$ac_objext \
32937 conftest$ac_exeext conftest.$ac_ext
32942 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
32943 echo "${ECHO_T}$ol_cv_db_db_44" >&6
32945 if test $ol_cv_db_db_44 = yes ; then
32946 ol_cv_lib_db=-ldb-44
32950 if test $ol_cv_lib_db = no ; then
32951 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
32952 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
32953 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
32954 echo $ECHO_N "(cached) $ECHO_C" >&6
32959 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32961 cat >conftest.$ac_ext <<_ACEOF
32964 cat confdefs.h >>conftest.$ac_ext
32965 cat >>conftest.$ac_ext <<_ACEOF
32966 /* end confdefs.h. */
32968 #ifdef HAVE_DB_185_H
32969 # include <db_185.h>
32974 #ifndef DB_VERSION_MAJOR
32975 # define DB_VERSION_MAJOR 1
32979 #define NULL ((void*)0)
32986 #if DB_VERSION_MAJOR > 1
32989 int major, minor, patch;
32991 version = db_version( &major, &minor, &patch );
32993 if( major != DB_VERSION_MAJOR ||
32994 minor < DB_VERSION_MINOR )
32996 printf("Berkeley DB version mismatch\n"
32997 "\theader: %s\n\tlibrary: %s\n",
32998 DB_VERSION_STRING, version);
33004 #if DB_VERSION_MAJOR > 2
33005 db_env_create( NULL, 0 );
33006 #elif DB_VERSION_MAJOR > 1
33007 db_appexit( NULL );
33009 (void) dbopen( NULL, 0, 0, 0, NULL);
33016 rm -f conftest.$ac_objext conftest$ac_exeext
33017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33018 (eval $ac_link) 2>conftest.er1
33020 grep -v '^ *+' conftest.er1 >conftest.err
33022 cat conftest.err >&5
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); } &&
33025 { ac_try='test -z "$ac_c_werror_flag"
33026 || test ! -s conftest.err'
33027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33028 (eval $ac_try) 2>&5
33030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33031 (exit $ac_status); }; } &&
33032 { ac_try='test -s conftest$ac_exeext'
33033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33034 (eval $ac_try) 2>&5
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); }; }; then
33038 ol_cv_db_db_4_dot_4=yes
33040 echo "$as_me: failed program was:" >&5
33041 sed 's/^/| /' conftest.$ac_ext >&5
33043 ol_cv_db_db_4_dot_4=no
33045 rm -f conftest.err conftest.$ac_objext \
33046 conftest$ac_exeext conftest.$ac_ext
33051 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
33052 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
33054 if test $ol_cv_db_db_4_dot_4 = yes ; then
33055 ol_cv_lib_db=-ldb-4.4
33059 if test $ol_cv_lib_db = no ; then
33060 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
33061 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
33062 if test "${ol_cv_db_db_4_4+set}" = set; then
33063 echo $ECHO_N "(cached) $ECHO_C" >&6
33068 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33070 cat >conftest.$ac_ext <<_ACEOF
33073 cat confdefs.h >>conftest.$ac_ext
33074 cat >>conftest.$ac_ext <<_ACEOF
33075 /* end confdefs.h. */
33077 #ifdef HAVE_DB_185_H
33078 # include <db_185.h>
33083 #ifndef DB_VERSION_MAJOR
33084 # define DB_VERSION_MAJOR 1
33088 #define NULL ((void*)0)
33095 #if DB_VERSION_MAJOR > 1
33098 int major, minor, patch;
33100 version = db_version( &major, &minor, &patch );
33102 if( major != DB_VERSION_MAJOR ||
33103 minor < DB_VERSION_MINOR )
33105 printf("Berkeley DB version mismatch\n"
33106 "\theader: %s\n\tlibrary: %s\n",
33107 DB_VERSION_STRING, version);
33113 #if DB_VERSION_MAJOR > 2
33114 db_env_create( NULL, 0 );
33115 #elif DB_VERSION_MAJOR > 1
33116 db_appexit( NULL );
33118 (void) dbopen( NULL, 0, 0, 0, NULL);
33125 rm -f conftest.$ac_objext conftest$ac_exeext
33126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33127 (eval $ac_link) 2>conftest.er1
33129 grep -v '^ *+' conftest.er1 >conftest.err
33131 cat conftest.err >&5
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); } &&
33134 { ac_try='test -z "$ac_c_werror_flag"
33135 || test ! -s conftest.err'
33136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33137 (eval $ac_try) 2>&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); }; } &&
33141 { ac_try='test -s conftest$ac_exeext'
33142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33143 (eval $ac_try) 2>&5
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); }; }; then
33147 ol_cv_db_db_4_4=yes
33149 echo "$as_me: failed program was:" >&5
33150 sed 's/^/| /' conftest.$ac_ext >&5
33154 rm -f conftest.err conftest.$ac_objext \
33155 conftest$ac_exeext conftest.$ac_ext
33160 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
33161 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
33163 if test $ol_cv_db_db_4_4 = yes ; then
33164 ol_cv_lib_db=-ldb-4-4
33168 elif test $ol_cv_bdb_minor = 3 ; then
33169 if test $ol_cv_lib_db = no ; then
33170 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
33171 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
33172 if test "${ol_cv_db_db43+set}" = set; then
33173 echo $ECHO_N "(cached) $ECHO_C" >&6
33178 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33180 cat >conftest.$ac_ext <<_ACEOF
33183 cat confdefs.h >>conftest.$ac_ext
33184 cat >>conftest.$ac_ext <<_ACEOF
33185 /* end confdefs.h. */
33187 #ifdef HAVE_DB_185_H
33188 # include <db_185.h>
33193 #ifndef DB_VERSION_MAJOR
33194 # define DB_VERSION_MAJOR 1
33198 #define NULL ((void*)0)
33205 #if DB_VERSION_MAJOR > 1
33208 int major, minor, patch;
33210 version = db_version( &major, &minor, &patch );
33212 if( major != DB_VERSION_MAJOR ||
33213 minor < DB_VERSION_MINOR )
33215 printf("Berkeley DB version mismatch\n"
33216 "\theader: %s\n\tlibrary: %s\n",
33217 DB_VERSION_STRING, version);
33223 #if DB_VERSION_MAJOR > 2
33224 db_env_create( NULL, 0 );
33225 #elif DB_VERSION_MAJOR > 1
33226 db_appexit( NULL );
33228 (void) dbopen( NULL, 0, 0, 0, NULL);
33235 rm -f conftest.$ac_objext conftest$ac_exeext
33236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33237 (eval $ac_link) 2>conftest.er1
33239 grep -v '^ *+' conftest.er1 >conftest.err
33241 cat conftest.err >&5
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); } &&
33244 { ac_try='test -z "$ac_c_werror_flag"
33245 || test ! -s conftest.err'
33246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33247 (eval $ac_try) 2>&5
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); }; } &&
33251 { ac_try='test -s conftest$ac_exeext'
33252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33253 (eval $ac_try) 2>&5
33255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256 (exit $ac_status); }; }; then
33259 echo "$as_me: failed program was:" >&5
33260 sed 's/^/| /' conftest.$ac_ext >&5
33264 rm -f conftest.err conftest.$ac_objext \
33265 conftest$ac_exeext conftest.$ac_ext
33270 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
33271 echo "${ECHO_T}$ol_cv_db_db43" >&6
33273 if test $ol_cv_db_db43 = yes ; then
33274 ol_cv_lib_db=-ldb43
33278 if test $ol_cv_lib_db = no ; then
33279 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
33280 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
33281 if test "${ol_cv_db_db_43+set}" = set; then
33282 echo $ECHO_N "(cached) $ECHO_C" >&6
33287 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33289 cat >conftest.$ac_ext <<_ACEOF
33292 cat confdefs.h >>conftest.$ac_ext
33293 cat >>conftest.$ac_ext <<_ACEOF
33294 /* end confdefs.h. */
33296 #ifdef HAVE_DB_185_H
33297 # include <db_185.h>
33302 #ifndef DB_VERSION_MAJOR
33303 # define DB_VERSION_MAJOR 1
33307 #define NULL ((void*)0)
33314 #if DB_VERSION_MAJOR > 1
33317 int major, minor, patch;
33319 version = db_version( &major, &minor, &patch );
33321 if( major != DB_VERSION_MAJOR ||
33322 minor < DB_VERSION_MINOR )
33324 printf("Berkeley DB version mismatch\n"
33325 "\theader: %s\n\tlibrary: %s\n",
33326 DB_VERSION_STRING, version);
33332 #if DB_VERSION_MAJOR > 2
33333 db_env_create( NULL, 0 );
33334 #elif DB_VERSION_MAJOR > 1
33335 db_appexit( NULL );
33337 (void) dbopen( NULL, 0, 0, 0, NULL);
33344 rm -f conftest.$ac_objext conftest$ac_exeext
33345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33346 (eval $ac_link) 2>conftest.er1
33348 grep -v '^ *+' conftest.er1 >conftest.err
33350 cat conftest.err >&5
33351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352 (exit $ac_status); } &&
33353 { ac_try='test -z "$ac_c_werror_flag"
33354 || test ! -s conftest.err'
33355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33356 (eval $ac_try) 2>&5
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); }; } &&
33360 { ac_try='test -s conftest$ac_exeext'
33361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33362 (eval $ac_try) 2>&5
33364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365 (exit $ac_status); }; }; then
33368 echo "$as_me: failed program was:" >&5
33369 sed 's/^/| /' conftest.$ac_ext >&5
33373 rm -f conftest.err conftest.$ac_objext \
33374 conftest$ac_exeext conftest.$ac_ext
33379 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
33380 echo "${ECHO_T}$ol_cv_db_db_43" >&6
33382 if test $ol_cv_db_db_43 = yes ; then
33383 ol_cv_lib_db=-ldb-43
33387 if test $ol_cv_lib_db = no ; then
33388 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
33389 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
33390 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
33391 echo $ECHO_N "(cached) $ECHO_C" >&6
33396 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33398 cat >conftest.$ac_ext <<_ACEOF
33401 cat confdefs.h >>conftest.$ac_ext
33402 cat >>conftest.$ac_ext <<_ACEOF
33403 /* end confdefs.h. */
33405 #ifdef HAVE_DB_185_H
33406 # include <db_185.h>
33411 #ifndef DB_VERSION_MAJOR
33412 # define DB_VERSION_MAJOR 1
33416 #define NULL ((void*)0)
33423 #if DB_VERSION_MAJOR > 1
33426 int major, minor, patch;
33428 version = db_version( &major, &minor, &patch );
33430 if( major != DB_VERSION_MAJOR ||
33431 minor < DB_VERSION_MINOR )
33433 printf("Berkeley DB version mismatch\n"
33434 "\theader: %s\n\tlibrary: %s\n",
33435 DB_VERSION_STRING, version);
33441 #if DB_VERSION_MAJOR > 2
33442 db_env_create( NULL, 0 );
33443 #elif DB_VERSION_MAJOR > 1
33444 db_appexit( NULL );
33446 (void) dbopen( NULL, 0, 0, 0, NULL);
33453 rm -f conftest.$ac_objext conftest$ac_exeext
33454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33455 (eval $ac_link) 2>conftest.er1
33457 grep -v '^ *+' conftest.er1 >conftest.err
33459 cat conftest.err >&5
33460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461 (exit $ac_status); } &&
33462 { ac_try='test -z "$ac_c_werror_flag"
33463 || test ! -s conftest.err'
33464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33465 (eval $ac_try) 2>&5
33467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468 (exit $ac_status); }; } &&
33469 { ac_try='test -s conftest$ac_exeext'
33470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33471 (eval $ac_try) 2>&5
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); }; }; then
33475 ol_cv_db_db_4_dot_3=yes
33477 echo "$as_me: failed program was:" >&5
33478 sed 's/^/| /' conftest.$ac_ext >&5
33480 ol_cv_db_db_4_dot_3=no
33482 rm -f conftest.err conftest.$ac_objext \
33483 conftest$ac_exeext conftest.$ac_ext
33488 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
33489 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
33491 if test $ol_cv_db_db_4_dot_3 = yes ; then
33492 ol_cv_lib_db=-ldb-4.3
33496 if test $ol_cv_lib_db = no ; then
33497 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
33498 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
33499 if test "${ol_cv_db_db_4_3+set}" = set; then
33500 echo $ECHO_N "(cached) $ECHO_C" >&6
33505 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33507 cat >conftest.$ac_ext <<_ACEOF
33510 cat confdefs.h >>conftest.$ac_ext
33511 cat >>conftest.$ac_ext <<_ACEOF
33512 /* end confdefs.h. */
33514 #ifdef HAVE_DB_185_H
33515 # include <db_185.h>
33520 #ifndef DB_VERSION_MAJOR
33521 # define DB_VERSION_MAJOR 1
33525 #define NULL ((void*)0)
33532 #if DB_VERSION_MAJOR > 1
33535 int major, minor, patch;
33537 version = db_version( &major, &minor, &patch );
33539 if( major != DB_VERSION_MAJOR ||
33540 minor < DB_VERSION_MINOR )
33542 printf("Berkeley DB version mismatch\n"
33543 "\theader: %s\n\tlibrary: %s\n",
33544 DB_VERSION_STRING, version);
33550 #if DB_VERSION_MAJOR > 2
33551 db_env_create( NULL, 0 );
33552 #elif DB_VERSION_MAJOR > 1
33553 db_appexit( NULL );
33555 (void) dbopen( NULL, 0, 0, 0, NULL);
33562 rm -f conftest.$ac_objext conftest$ac_exeext
33563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33564 (eval $ac_link) 2>conftest.er1
33566 grep -v '^ *+' conftest.er1 >conftest.err
33568 cat conftest.err >&5
33569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33570 (exit $ac_status); } &&
33571 { ac_try='test -z "$ac_c_werror_flag"
33572 || test ! -s conftest.err'
33573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33574 (eval $ac_try) 2>&5
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); }; } &&
33578 { ac_try='test -s conftest$ac_exeext'
33579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33580 (eval $ac_try) 2>&5
33582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583 (exit $ac_status); }; }; then
33584 ol_cv_db_db_4_3=yes
33586 echo "$as_me: failed program was:" >&5
33587 sed 's/^/| /' conftest.$ac_ext >&5
33591 rm -f conftest.err conftest.$ac_objext \
33592 conftest$ac_exeext conftest.$ac_ext
33597 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
33598 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
33600 if test $ol_cv_db_db_4_3 = yes ; then
33601 ol_cv_lib_db=-ldb-4-3
33605 elif test $ol_cv_bdb_minor = 2 ; then
33606 if test $ol_cv_lib_db = no ; then
33607 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
33608 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
33609 if test "${ol_cv_db_db42+set}" = set; then
33610 echo $ECHO_N "(cached) $ECHO_C" >&6
33615 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33617 cat >conftest.$ac_ext <<_ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h. */
33624 #ifdef HAVE_DB_185_H
33625 # include <db_185.h>
33630 #ifndef DB_VERSION_MAJOR
33631 # define DB_VERSION_MAJOR 1
33635 #define NULL ((void*)0)
33642 #if DB_VERSION_MAJOR > 1
33645 int major, minor, patch;
33647 version = db_version( &major, &minor, &patch );
33649 if( major != DB_VERSION_MAJOR ||
33650 minor < DB_VERSION_MINOR )
33652 printf("Berkeley DB version mismatch\n"
33653 "\theader: %s\n\tlibrary: %s\n",
33654 DB_VERSION_STRING, version);
33660 #if DB_VERSION_MAJOR > 2
33661 db_env_create( NULL, 0 );
33662 #elif DB_VERSION_MAJOR > 1
33663 db_appexit( NULL );
33665 (void) dbopen( NULL, 0, 0, 0, NULL);
33672 rm -f conftest.$ac_objext conftest$ac_exeext
33673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33674 (eval $ac_link) 2>conftest.er1
33676 grep -v '^ *+' conftest.er1 >conftest.err
33678 cat conftest.err >&5
33679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); } &&
33681 { ac_try='test -z "$ac_c_werror_flag"
33682 || test ! -s conftest.err'
33683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33684 (eval $ac_try) 2>&5
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); }; } &&
33688 { ac_try='test -s conftest$ac_exeext'
33689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33690 (eval $ac_try) 2>&5
33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); }; }; then
33696 echo "$as_me: failed program was:" >&5
33697 sed 's/^/| /' conftest.$ac_ext >&5
33701 rm -f conftest.err conftest.$ac_objext \
33702 conftest$ac_exeext conftest.$ac_ext
33707 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
33708 echo "${ECHO_T}$ol_cv_db_db42" >&6
33710 if test $ol_cv_db_db42 = yes ; then
33711 ol_cv_lib_db=-ldb42
33715 if test $ol_cv_lib_db = no ; then
33716 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
33717 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
33718 if test "${ol_cv_db_db_42+set}" = set; then
33719 echo $ECHO_N "(cached) $ECHO_C" >&6
33724 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33726 cat >conftest.$ac_ext <<_ACEOF
33729 cat confdefs.h >>conftest.$ac_ext
33730 cat >>conftest.$ac_ext <<_ACEOF
33731 /* end confdefs.h. */
33733 #ifdef HAVE_DB_185_H
33734 # include <db_185.h>
33739 #ifndef DB_VERSION_MAJOR
33740 # define DB_VERSION_MAJOR 1
33744 #define NULL ((void*)0)
33751 #if DB_VERSION_MAJOR > 1
33754 int major, minor, patch;
33756 version = db_version( &major, &minor, &patch );
33758 if( major != DB_VERSION_MAJOR ||
33759 minor < DB_VERSION_MINOR )
33761 printf("Berkeley DB version mismatch\n"
33762 "\theader: %s\n\tlibrary: %s\n",
33763 DB_VERSION_STRING, version);
33769 #if DB_VERSION_MAJOR > 2
33770 db_env_create( NULL, 0 );
33771 #elif DB_VERSION_MAJOR > 1
33772 db_appexit( NULL );
33774 (void) dbopen( NULL, 0, 0, 0, NULL);
33781 rm -f conftest.$ac_objext conftest$ac_exeext
33782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33783 (eval $ac_link) 2>conftest.er1
33785 grep -v '^ *+' conftest.er1 >conftest.err
33787 cat conftest.err >&5
33788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789 (exit $ac_status); } &&
33790 { ac_try='test -z "$ac_c_werror_flag"
33791 || test ! -s conftest.err'
33792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33793 (eval $ac_try) 2>&5
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); }; } &&
33797 { ac_try='test -s conftest$ac_exeext'
33798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33799 (eval $ac_try) 2>&5
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); }; }; then
33805 echo "$as_me: failed program was:" >&5
33806 sed 's/^/| /' conftest.$ac_ext >&5
33810 rm -f conftest.err conftest.$ac_objext \
33811 conftest$ac_exeext conftest.$ac_ext
33816 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
33817 echo "${ECHO_T}$ol_cv_db_db_42" >&6
33819 if test $ol_cv_db_db_42 = yes ; then
33820 ol_cv_lib_db=-ldb-42
33824 if test $ol_cv_lib_db = no ; then
33825 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
33826 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
33827 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
33828 echo $ECHO_N "(cached) $ECHO_C" >&6
33833 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33835 cat >conftest.$ac_ext <<_ACEOF
33838 cat confdefs.h >>conftest.$ac_ext
33839 cat >>conftest.$ac_ext <<_ACEOF
33840 /* end confdefs.h. */
33842 #ifdef HAVE_DB_185_H
33843 # include <db_185.h>
33848 #ifndef DB_VERSION_MAJOR
33849 # define DB_VERSION_MAJOR 1
33853 #define NULL ((void*)0)
33860 #if DB_VERSION_MAJOR > 1
33863 int major, minor, patch;
33865 version = db_version( &major, &minor, &patch );
33867 if( major != DB_VERSION_MAJOR ||
33868 minor < DB_VERSION_MINOR )
33870 printf("Berkeley DB version mismatch\n"
33871 "\theader: %s\n\tlibrary: %s\n",
33872 DB_VERSION_STRING, version);
33878 #if DB_VERSION_MAJOR > 2
33879 db_env_create( NULL, 0 );
33880 #elif DB_VERSION_MAJOR > 1
33881 db_appexit( NULL );
33883 (void) dbopen( NULL, 0, 0, 0, NULL);
33890 rm -f conftest.$ac_objext conftest$ac_exeext
33891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33892 (eval $ac_link) 2>conftest.er1
33894 grep -v '^ *+' conftest.er1 >conftest.err
33896 cat conftest.err >&5
33897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33898 (exit $ac_status); } &&
33899 { ac_try='test -z "$ac_c_werror_flag"
33900 || test ! -s conftest.err'
33901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33902 (eval $ac_try) 2>&5
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); }; } &&
33906 { ac_try='test -s conftest$ac_exeext'
33907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33908 (eval $ac_try) 2>&5
33910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911 (exit $ac_status); }; }; then
33912 ol_cv_db_db_4_dot_2=yes
33914 echo "$as_me: failed program was:" >&5
33915 sed 's/^/| /' conftest.$ac_ext >&5
33917 ol_cv_db_db_4_dot_2=no
33919 rm -f conftest.err conftest.$ac_objext \
33920 conftest$ac_exeext conftest.$ac_ext
33925 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
33926 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
33928 if test $ol_cv_db_db_4_dot_2 = yes ; then
33929 ol_cv_lib_db=-ldb-4.2
33933 if test $ol_cv_lib_db = no ; then
33934 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
33935 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
33936 if test "${ol_cv_db_db_4_2+set}" = set; then
33937 echo $ECHO_N "(cached) $ECHO_C" >&6
33942 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33944 cat >conftest.$ac_ext <<_ACEOF
33947 cat confdefs.h >>conftest.$ac_ext
33948 cat >>conftest.$ac_ext <<_ACEOF
33949 /* end confdefs.h. */
33951 #ifdef HAVE_DB_185_H
33952 # include <db_185.h>
33957 #ifndef DB_VERSION_MAJOR
33958 # define DB_VERSION_MAJOR 1
33962 #define NULL ((void*)0)
33969 #if DB_VERSION_MAJOR > 1
33972 int major, minor, patch;
33974 version = db_version( &major, &minor, &patch );
33976 if( major != DB_VERSION_MAJOR ||
33977 minor < DB_VERSION_MINOR )
33979 printf("Berkeley DB version mismatch\n"
33980 "\theader: %s\n\tlibrary: %s\n",
33981 DB_VERSION_STRING, version);
33987 #if DB_VERSION_MAJOR > 2
33988 db_env_create( NULL, 0 );
33989 #elif DB_VERSION_MAJOR > 1
33990 db_appexit( NULL );
33992 (void) dbopen( NULL, 0, 0, 0, NULL);
33999 rm -f conftest.$ac_objext conftest$ac_exeext
34000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34001 (eval $ac_link) 2>conftest.er1
34003 grep -v '^ *+' conftest.er1 >conftest.err
34005 cat conftest.err >&5
34006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007 (exit $ac_status); } &&
34008 { ac_try='test -z "$ac_c_werror_flag"
34009 || test ! -s conftest.err'
34010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34011 (eval $ac_try) 2>&5
34013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014 (exit $ac_status); }; } &&
34015 { ac_try='test -s conftest$ac_exeext'
34016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34017 (eval $ac_try) 2>&5
34019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020 (exit $ac_status); }; }; then
34021 ol_cv_db_db_4_2=yes
34023 echo "$as_me: failed program was:" >&5
34024 sed 's/^/| /' conftest.$ac_ext >&5
34028 rm -f conftest.err conftest.$ac_objext \
34029 conftest$ac_exeext conftest.$ac_ext
34034 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
34035 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
34037 if test $ol_cv_db_db_4_2 = yes ; then
34038 ol_cv_lib_db=-ldb-4-2
34042 elif test $ol_cv_bdb_minor = 1 ; then
34043 if test $ol_cv_lib_db = no ; then
34044 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
34045 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
34046 if test "${ol_cv_db_db41+set}" = set; then
34047 echo $ECHO_N "(cached) $ECHO_C" >&6
34052 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34054 cat >conftest.$ac_ext <<_ACEOF
34057 cat confdefs.h >>conftest.$ac_ext
34058 cat >>conftest.$ac_ext <<_ACEOF
34059 /* end confdefs.h. */
34061 #ifdef HAVE_DB_185_H
34062 # include <db_185.h>
34067 #ifndef DB_VERSION_MAJOR
34068 # define DB_VERSION_MAJOR 1
34072 #define NULL ((void*)0)
34079 #if DB_VERSION_MAJOR > 1
34082 int major, minor, patch;
34084 version = db_version( &major, &minor, &patch );
34086 if( major != DB_VERSION_MAJOR ||
34087 minor < DB_VERSION_MINOR )
34089 printf("Berkeley DB version mismatch\n"
34090 "\theader: %s\n\tlibrary: %s\n",
34091 DB_VERSION_STRING, version);
34097 #if DB_VERSION_MAJOR > 2
34098 db_env_create( NULL, 0 );
34099 #elif DB_VERSION_MAJOR > 1
34100 db_appexit( NULL );
34102 (void) dbopen( NULL, 0, 0, 0, NULL);
34109 rm -f conftest.$ac_objext conftest$ac_exeext
34110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34111 (eval $ac_link) 2>conftest.er1
34113 grep -v '^ *+' conftest.er1 >conftest.err
34115 cat conftest.err >&5
34116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117 (exit $ac_status); } &&
34118 { ac_try='test -z "$ac_c_werror_flag"
34119 || test ! -s conftest.err'
34120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34121 (eval $ac_try) 2>&5
34123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34124 (exit $ac_status); }; } &&
34125 { ac_try='test -s conftest$ac_exeext'
34126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34127 (eval $ac_try) 2>&5
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); }; }; then
34133 echo "$as_me: failed program was:" >&5
34134 sed 's/^/| /' conftest.$ac_ext >&5
34138 rm -f conftest.err conftest.$ac_objext \
34139 conftest$ac_exeext conftest.$ac_ext
34144 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
34145 echo "${ECHO_T}$ol_cv_db_db41" >&6
34147 if test $ol_cv_db_db41 = yes ; then
34148 ol_cv_lib_db=-ldb41
34152 if test $ol_cv_lib_db = no ; then
34153 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
34154 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
34155 if test "${ol_cv_db_db_41+set}" = set; then
34156 echo $ECHO_N "(cached) $ECHO_C" >&6
34161 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34163 cat >conftest.$ac_ext <<_ACEOF
34166 cat confdefs.h >>conftest.$ac_ext
34167 cat >>conftest.$ac_ext <<_ACEOF
34168 /* end confdefs.h. */
34170 #ifdef HAVE_DB_185_H
34171 # include <db_185.h>
34176 #ifndef DB_VERSION_MAJOR
34177 # define DB_VERSION_MAJOR 1
34181 #define NULL ((void*)0)
34188 #if DB_VERSION_MAJOR > 1
34191 int major, minor, patch;
34193 version = db_version( &major, &minor, &patch );
34195 if( major != DB_VERSION_MAJOR ||
34196 minor < DB_VERSION_MINOR )
34198 printf("Berkeley DB version mismatch\n"
34199 "\theader: %s\n\tlibrary: %s\n",
34200 DB_VERSION_STRING, version);
34206 #if DB_VERSION_MAJOR > 2
34207 db_env_create( NULL, 0 );
34208 #elif DB_VERSION_MAJOR > 1
34209 db_appexit( NULL );
34211 (void) dbopen( NULL, 0, 0, 0, NULL);
34218 rm -f conftest.$ac_objext conftest$ac_exeext
34219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34220 (eval $ac_link) 2>conftest.er1
34222 grep -v '^ *+' conftest.er1 >conftest.err
34224 cat conftest.err >&5
34225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34226 (exit $ac_status); } &&
34227 { ac_try='test -z "$ac_c_werror_flag"
34228 || test ! -s conftest.err'
34229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34230 (eval $ac_try) 2>&5
34232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34233 (exit $ac_status); }; } &&
34234 { ac_try='test -s conftest$ac_exeext'
34235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34236 (eval $ac_try) 2>&5
34238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34239 (exit $ac_status); }; }; then
34242 echo "$as_me: failed program was:" >&5
34243 sed 's/^/| /' conftest.$ac_ext >&5
34247 rm -f conftest.err conftest.$ac_objext \
34248 conftest$ac_exeext conftest.$ac_ext
34253 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
34254 echo "${ECHO_T}$ol_cv_db_db_41" >&6
34256 if test $ol_cv_db_db_41 = yes ; then
34257 ol_cv_lib_db=-ldb-41
34261 if test $ol_cv_lib_db = no ; then
34262 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
34263 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
34264 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
34265 echo $ECHO_N "(cached) $ECHO_C" >&6
34270 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34272 cat >conftest.$ac_ext <<_ACEOF
34275 cat confdefs.h >>conftest.$ac_ext
34276 cat >>conftest.$ac_ext <<_ACEOF
34277 /* end confdefs.h. */
34279 #ifdef HAVE_DB_185_H
34280 # include <db_185.h>
34285 #ifndef DB_VERSION_MAJOR
34286 # define DB_VERSION_MAJOR 1
34290 #define NULL ((void*)0)
34297 #if DB_VERSION_MAJOR > 1
34300 int major, minor, patch;
34302 version = db_version( &major, &minor, &patch );
34304 if( major != DB_VERSION_MAJOR ||
34305 minor < DB_VERSION_MINOR )
34307 printf("Berkeley DB version mismatch\n"
34308 "\theader: %s\n\tlibrary: %s\n",
34309 DB_VERSION_STRING, version);
34315 #if DB_VERSION_MAJOR > 2
34316 db_env_create( NULL, 0 );
34317 #elif DB_VERSION_MAJOR > 1
34318 db_appexit( NULL );
34320 (void) dbopen( NULL, 0, 0, 0, NULL);
34327 rm -f conftest.$ac_objext conftest$ac_exeext
34328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34329 (eval $ac_link) 2>conftest.er1
34331 grep -v '^ *+' conftest.er1 >conftest.err
34333 cat conftest.err >&5
34334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34335 (exit $ac_status); } &&
34336 { ac_try='test -z "$ac_c_werror_flag"
34337 || test ! -s conftest.err'
34338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34339 (eval $ac_try) 2>&5
34341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342 (exit $ac_status); }; } &&
34343 { ac_try='test -s conftest$ac_exeext'
34344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34345 (eval $ac_try) 2>&5
34347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348 (exit $ac_status); }; }; then
34349 ol_cv_db_db_4_dot_1=yes
34351 echo "$as_me: failed program was:" >&5
34352 sed 's/^/| /' conftest.$ac_ext >&5
34354 ol_cv_db_db_4_dot_1=no
34356 rm -f conftest.err conftest.$ac_objext \
34357 conftest$ac_exeext conftest.$ac_ext
34362 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
34363 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
34365 if test $ol_cv_db_db_4_dot_1 = yes ; then
34366 ol_cv_lib_db=-ldb-4.1
34370 if test $ol_cv_lib_db = no ; then
34371 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
34372 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
34373 if test "${ol_cv_db_db_4_1+set}" = set; then
34374 echo $ECHO_N "(cached) $ECHO_C" >&6
34379 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34381 cat >conftest.$ac_ext <<_ACEOF
34384 cat confdefs.h >>conftest.$ac_ext
34385 cat >>conftest.$ac_ext <<_ACEOF
34386 /* end confdefs.h. */
34388 #ifdef HAVE_DB_185_H
34389 # include <db_185.h>
34394 #ifndef DB_VERSION_MAJOR
34395 # define DB_VERSION_MAJOR 1
34399 #define NULL ((void*)0)
34406 #if DB_VERSION_MAJOR > 1
34409 int major, minor, patch;
34411 version = db_version( &major, &minor, &patch );
34413 if( major != DB_VERSION_MAJOR ||
34414 minor < DB_VERSION_MINOR )
34416 printf("Berkeley DB version mismatch\n"
34417 "\theader: %s\n\tlibrary: %s\n",
34418 DB_VERSION_STRING, version);
34424 #if DB_VERSION_MAJOR > 2
34425 db_env_create( NULL, 0 );
34426 #elif DB_VERSION_MAJOR > 1
34427 db_appexit( NULL );
34429 (void) dbopen( NULL, 0, 0, 0, NULL);
34436 rm -f conftest.$ac_objext conftest$ac_exeext
34437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34438 (eval $ac_link) 2>conftest.er1
34440 grep -v '^ *+' conftest.er1 >conftest.err
34442 cat conftest.err >&5
34443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); } &&
34445 { ac_try='test -z "$ac_c_werror_flag"
34446 || test ! -s conftest.err'
34447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34448 (eval $ac_try) 2>&5
34450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451 (exit $ac_status); }; } &&
34452 { ac_try='test -s conftest$ac_exeext'
34453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34454 (eval $ac_try) 2>&5
34456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457 (exit $ac_status); }; }; then
34458 ol_cv_db_db_4_1=yes
34460 echo "$as_me: failed program was:" >&5
34461 sed 's/^/| /' conftest.$ac_ext >&5
34465 rm -f conftest.err conftest.$ac_objext \
34466 conftest$ac_exeext conftest.$ac_ext
34471 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
34472 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
34474 if test $ol_cv_db_db_4_1 = yes ; then
34475 ol_cv_lib_db=-ldb-4-1
34480 if test $ol_cv_lib_db = no ; then
34481 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
34482 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
34483 if test "${ol_cv_db_db_4+set}" = set; then
34484 echo $ECHO_N "(cached) $ECHO_C" >&6
34489 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34491 cat >conftest.$ac_ext <<_ACEOF
34494 cat confdefs.h >>conftest.$ac_ext
34495 cat >>conftest.$ac_ext <<_ACEOF
34496 /* end confdefs.h. */
34498 #ifdef HAVE_DB_185_H
34499 # include <db_185.h>
34504 #ifndef DB_VERSION_MAJOR
34505 # define DB_VERSION_MAJOR 1
34509 #define NULL ((void*)0)
34516 #if DB_VERSION_MAJOR > 1
34519 int major, minor, patch;
34521 version = db_version( &major, &minor, &patch );
34523 if( major != DB_VERSION_MAJOR ||
34524 minor < DB_VERSION_MINOR )
34526 printf("Berkeley DB version mismatch\n"
34527 "\theader: %s\n\tlibrary: %s\n",
34528 DB_VERSION_STRING, version);
34534 #if DB_VERSION_MAJOR > 2
34535 db_env_create( NULL, 0 );
34536 #elif DB_VERSION_MAJOR > 1
34537 db_appexit( NULL );
34539 (void) dbopen( NULL, 0, 0, 0, NULL);
34546 rm -f conftest.$ac_objext conftest$ac_exeext
34547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34548 (eval $ac_link) 2>conftest.er1
34550 grep -v '^ *+' conftest.er1 >conftest.err
34552 cat conftest.err >&5
34553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554 (exit $ac_status); } &&
34555 { ac_try='test -z "$ac_c_werror_flag"
34556 || test ! -s conftest.err'
34557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34558 (eval $ac_try) 2>&5
34560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561 (exit $ac_status); }; } &&
34562 { ac_try='test -s conftest$ac_exeext'
34563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34564 (eval $ac_try) 2>&5
34566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567 (exit $ac_status); }; }; then
34570 echo "$as_me: failed program was:" >&5
34571 sed 's/^/| /' conftest.$ac_ext >&5
34575 rm -f conftest.err conftest.$ac_objext \
34576 conftest$ac_exeext conftest.$ac_ext
34581 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
34582 echo "${ECHO_T}$ol_cv_db_db_4" >&6
34584 if test $ol_cv_db_db_4 = yes ; then
34585 ol_cv_lib_db=-ldb-4
34589 if test $ol_cv_lib_db = no ; then
34590 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
34591 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
34592 if test "${ol_cv_db_db4+set}" = set; then
34593 echo $ECHO_N "(cached) $ECHO_C" >&6
34598 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34600 cat >conftest.$ac_ext <<_ACEOF
34603 cat confdefs.h >>conftest.$ac_ext
34604 cat >>conftest.$ac_ext <<_ACEOF
34605 /* end confdefs.h. */
34607 #ifdef HAVE_DB_185_H
34608 # include <db_185.h>
34613 #ifndef DB_VERSION_MAJOR
34614 # define DB_VERSION_MAJOR 1
34618 #define NULL ((void*)0)
34625 #if DB_VERSION_MAJOR > 1
34628 int major, minor, patch;
34630 version = db_version( &major, &minor, &patch );
34632 if( major != DB_VERSION_MAJOR ||
34633 minor < DB_VERSION_MINOR )
34635 printf("Berkeley DB version mismatch\n"
34636 "\theader: %s\n\tlibrary: %s\n",
34637 DB_VERSION_STRING, version);
34643 #if DB_VERSION_MAJOR > 2
34644 db_env_create( NULL, 0 );
34645 #elif DB_VERSION_MAJOR > 1
34646 db_appexit( NULL );
34648 (void) dbopen( NULL, 0, 0, 0, NULL);
34655 rm -f conftest.$ac_objext conftest$ac_exeext
34656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34657 (eval $ac_link) 2>conftest.er1
34659 grep -v '^ *+' conftest.er1 >conftest.err
34661 cat conftest.err >&5
34662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663 (exit $ac_status); } &&
34664 { ac_try='test -z "$ac_c_werror_flag"
34665 || test ! -s conftest.err'
34666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34667 (eval $ac_try) 2>&5
34669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670 (exit $ac_status); }; } &&
34671 { ac_try='test -s conftest$ac_exeext'
34672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34673 (eval $ac_try) 2>&5
34675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34676 (exit $ac_status); }; }; then
34679 echo "$as_me: failed program was:" >&5
34680 sed 's/^/| /' conftest.$ac_ext >&5
34684 rm -f conftest.err conftest.$ac_objext \
34685 conftest$ac_exeext conftest.$ac_ext
34690 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
34691 echo "${ECHO_T}$ol_cv_db_db4" >&6
34693 if test $ol_cv_db_db4 = yes ; then
34698 if test $ol_cv_lib_db = no ; then
34699 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
34700 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
34701 if test "${ol_cv_db_db+set}" = set; then
34702 echo $ECHO_N "(cached) $ECHO_C" >&6
34707 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34709 cat >conftest.$ac_ext <<_ACEOF
34712 cat confdefs.h >>conftest.$ac_ext
34713 cat >>conftest.$ac_ext <<_ACEOF
34714 /* end confdefs.h. */
34716 #ifdef HAVE_DB_185_H
34717 # include <db_185.h>
34722 #ifndef DB_VERSION_MAJOR
34723 # define DB_VERSION_MAJOR 1
34727 #define NULL ((void*)0)
34734 #if DB_VERSION_MAJOR > 1
34737 int major, minor, patch;
34739 version = db_version( &major, &minor, &patch );
34741 if( major != DB_VERSION_MAJOR ||
34742 minor < DB_VERSION_MINOR )
34744 printf("Berkeley DB version mismatch\n"
34745 "\theader: %s\n\tlibrary: %s\n",
34746 DB_VERSION_STRING, version);
34752 #if DB_VERSION_MAJOR > 2
34753 db_env_create( NULL, 0 );
34754 #elif DB_VERSION_MAJOR > 1
34755 db_appexit( NULL );
34757 (void) dbopen( NULL, 0, 0, 0, NULL);
34764 rm -f conftest.$ac_objext conftest$ac_exeext
34765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34766 (eval $ac_link) 2>conftest.er1
34768 grep -v '^ *+' conftest.er1 >conftest.err
34770 cat conftest.err >&5
34771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772 (exit $ac_status); } &&
34773 { ac_try='test -z "$ac_c_werror_flag"
34774 || test ! -s conftest.err'
34775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776 (eval $ac_try) 2>&5
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); }; } &&
34780 { ac_try='test -s conftest$ac_exeext'
34781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34782 (eval $ac_try) 2>&5
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); }; }; then
34788 echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.$ac_ext >&5
34793 rm -f conftest.err conftest.$ac_objext \
34794 conftest$ac_exeext conftest.$ac_ext
34799 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
34800 echo "${ECHO_T}$ol_cv_db_db" >&6
34802 if test $ol_cv_db_db = yes ; then
34808 elif test $ol_cv_bdb_major = 3 ; then
34809 if test $ol_cv_lib_db = no ; then
34810 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
34811 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
34812 if test "${ol_cv_db_db3+set}" = set; then
34813 echo $ECHO_N "(cached) $ECHO_C" >&6
34818 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34820 cat >conftest.$ac_ext <<_ACEOF
34823 cat confdefs.h >>conftest.$ac_ext
34824 cat >>conftest.$ac_ext <<_ACEOF
34825 /* end confdefs.h. */
34827 #ifdef HAVE_DB_185_H
34828 # include <db_185.h>
34833 #ifndef DB_VERSION_MAJOR
34834 # define DB_VERSION_MAJOR 1
34838 #define NULL ((void*)0)
34845 #if DB_VERSION_MAJOR > 1
34848 int major, minor, patch;
34850 version = db_version( &major, &minor, &patch );
34852 if( major != DB_VERSION_MAJOR ||
34853 minor < DB_VERSION_MINOR )
34855 printf("Berkeley DB version mismatch\n"
34856 "\theader: %s\n\tlibrary: %s\n",
34857 DB_VERSION_STRING, version);
34863 #if DB_VERSION_MAJOR > 2
34864 db_env_create( NULL, 0 );
34865 #elif DB_VERSION_MAJOR > 1
34866 db_appexit( NULL );
34868 (void) dbopen( NULL, 0, 0, 0, NULL);
34875 rm -f conftest.$ac_objext conftest$ac_exeext
34876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34877 (eval $ac_link) 2>conftest.er1
34879 grep -v '^ *+' conftest.er1 >conftest.err
34881 cat conftest.err >&5
34882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883 (exit $ac_status); } &&
34884 { ac_try='test -z "$ac_c_werror_flag"
34885 || test ! -s conftest.err'
34886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34887 (eval $ac_try) 2>&5
34889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890 (exit $ac_status); }; } &&
34891 { ac_try='test -s conftest$ac_exeext'
34892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34893 (eval $ac_try) 2>&5
34895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896 (exit $ac_status); }; }; then
34899 echo "$as_me: failed program was:" >&5
34900 sed 's/^/| /' conftest.$ac_ext >&5
34904 rm -f conftest.err conftest.$ac_objext \
34905 conftest$ac_exeext conftest.$ac_ext
34910 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
34911 echo "${ECHO_T}$ol_cv_db_db3" >&6
34913 if test $ol_cv_db_db3 = yes ; then
34918 if test $ol_cv_lib_db = no ; then
34919 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
34920 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
34921 if test "${ol_cv_db_db_3+set}" = set; then
34922 echo $ECHO_N "(cached) $ECHO_C" >&6
34927 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34929 cat >conftest.$ac_ext <<_ACEOF
34932 cat confdefs.h >>conftest.$ac_ext
34933 cat >>conftest.$ac_ext <<_ACEOF
34934 /* end confdefs.h. */
34936 #ifdef HAVE_DB_185_H
34937 # include <db_185.h>
34942 #ifndef DB_VERSION_MAJOR
34943 # define DB_VERSION_MAJOR 1
34947 #define NULL ((void*)0)
34954 #if DB_VERSION_MAJOR > 1
34957 int major, minor, patch;
34959 version = db_version( &major, &minor, &patch );
34961 if( major != DB_VERSION_MAJOR ||
34962 minor < DB_VERSION_MINOR )
34964 printf("Berkeley DB version mismatch\n"
34965 "\theader: %s\n\tlibrary: %s\n",
34966 DB_VERSION_STRING, version);
34972 #if DB_VERSION_MAJOR > 2
34973 db_env_create( NULL, 0 );
34974 #elif DB_VERSION_MAJOR > 1
34975 db_appexit( NULL );
34977 (void) dbopen( NULL, 0, 0, 0, NULL);
34984 rm -f conftest.$ac_objext conftest$ac_exeext
34985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34986 (eval $ac_link) 2>conftest.er1
34988 grep -v '^ *+' conftest.er1 >conftest.err
34990 cat conftest.err >&5
34991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34992 (exit $ac_status); } &&
34993 { ac_try='test -z "$ac_c_werror_flag"
34994 || test ! -s conftest.err'
34995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34996 (eval $ac_try) 2>&5
34998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999 (exit $ac_status); }; } &&
35000 { ac_try='test -s conftest$ac_exeext'
35001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35002 (eval $ac_try) 2>&5
35004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35005 (exit $ac_status); }; }; then
35008 echo "$as_me: failed program was:" >&5
35009 sed 's/^/| /' conftest.$ac_ext >&5
35013 rm -f conftest.err conftest.$ac_objext \
35014 conftest$ac_exeext conftest.$ac_ext
35019 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
35020 echo "${ECHO_T}$ol_cv_db_db_3" >&6
35022 if test $ol_cv_db_db_3 = yes ; then
35023 ol_cv_lib_db=-ldb-3
35028 elif test $ol_cv_bdb_major = 2 ; then
35029 if test $ol_cv_lib_db = no ; then
35030 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
35031 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
35032 if test "${ol_cv_db_db2+set}" = set; then
35033 echo $ECHO_N "(cached) $ECHO_C" >&6
35038 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
35040 cat >conftest.$ac_ext <<_ACEOF
35043 cat confdefs.h >>conftest.$ac_ext
35044 cat >>conftest.$ac_ext <<_ACEOF
35045 /* end confdefs.h. */
35047 #ifdef HAVE_DB_185_H
35048 # include <db_185.h>
35053 #ifndef DB_VERSION_MAJOR
35054 # define DB_VERSION_MAJOR 1
35058 #define NULL ((void*)0)
35065 #if DB_VERSION_MAJOR > 1
35068 int major, minor, patch;
35070 version = db_version( &major, &minor, &patch );
35072 if( major != DB_VERSION_MAJOR ||
35073 minor < DB_VERSION_MINOR )
35075 printf("Berkeley DB version mismatch\n"
35076 "\theader: %s\n\tlibrary: %s\n",
35077 DB_VERSION_STRING, version);
35083 #if DB_VERSION_MAJOR > 2
35084 db_env_create( NULL, 0 );
35085 #elif DB_VERSION_MAJOR > 1
35086 db_appexit( NULL );
35088 (void) dbopen( NULL, 0, 0, 0, NULL);
35095 rm -f conftest.$ac_objext conftest$ac_exeext
35096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35097 (eval $ac_link) 2>conftest.er1
35099 grep -v '^ *+' conftest.er1 >conftest.err
35101 cat conftest.err >&5
35102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35103 (exit $ac_status); } &&
35104 { ac_try='test -z "$ac_c_werror_flag"
35105 || test ! -s conftest.err'
35106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35107 (eval $ac_try) 2>&5
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); }; } &&
35111 { ac_try='test -s conftest$ac_exeext'
35112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35113 (eval $ac_try) 2>&5
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); }; }; then
35119 echo "$as_me: failed program was:" >&5
35120 sed 's/^/| /' conftest.$ac_ext >&5
35124 rm -f conftest.err conftest.$ac_objext \
35125 conftest$ac_exeext conftest.$ac_ext
35130 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
35131 echo "${ECHO_T}$ol_cv_db_db2" >&6
35133 if test $ol_cv_db_db2 = yes ; then
35138 if test $ol_cv_lib_db = no ; then
35139 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
35140 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
35141 if test "${ol_cv_db_db_2+set}" = set; then
35142 echo $ECHO_N "(cached) $ECHO_C" >&6
35147 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
35149 cat >conftest.$ac_ext <<_ACEOF
35152 cat confdefs.h >>conftest.$ac_ext
35153 cat >>conftest.$ac_ext <<_ACEOF
35154 /* end confdefs.h. */
35156 #ifdef HAVE_DB_185_H
35157 # include <db_185.h>
35162 #ifndef DB_VERSION_MAJOR
35163 # define DB_VERSION_MAJOR 1
35167 #define NULL ((void*)0)
35174 #if DB_VERSION_MAJOR > 1
35177 int major, minor, patch;
35179 version = db_version( &major, &minor, &patch );
35181 if( major != DB_VERSION_MAJOR ||
35182 minor < DB_VERSION_MINOR )
35184 printf("Berkeley DB version mismatch\n"
35185 "\theader: %s\n\tlibrary: %s\n",
35186 DB_VERSION_STRING, version);
35192 #if DB_VERSION_MAJOR > 2
35193 db_env_create( NULL, 0 );
35194 #elif DB_VERSION_MAJOR > 1
35195 db_appexit( NULL );
35197 (void) dbopen( NULL, 0, 0, 0, NULL);
35204 rm -f conftest.$ac_objext conftest$ac_exeext
35205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35206 (eval $ac_link) 2>conftest.er1
35208 grep -v '^ *+' conftest.er1 >conftest.err
35210 cat conftest.err >&5
35211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212 (exit $ac_status); } &&
35213 { ac_try='test -z "$ac_c_werror_flag"
35214 || test ! -s conftest.err'
35215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35216 (eval $ac_try) 2>&5
35218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219 (exit $ac_status); }; } &&
35220 { ac_try='test -s conftest$ac_exeext'
35221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35222 (eval $ac_try) 2>&5
35224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35225 (exit $ac_status); }; }; then
35228 echo "$as_me: failed program was:" >&5
35229 sed 's/^/| /' conftest.$ac_ext >&5
35233 rm -f conftest.err conftest.$ac_objext \
35234 conftest$ac_exeext conftest.$ac_ext
35239 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
35240 echo "${ECHO_T}$ol_cv_db_db_2" >&6
35242 if test $ol_cv_db_db_2 = yes ; then
35243 ol_cv_lib_db=-ldb-2
35248 elif test $ol_cv_bdb_major = 1 ; then
35249 if test $ol_cv_lib_db = no ; then
35250 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
35251 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
35252 if test "${ol_cv_db_db1+set}" = set; then
35253 echo $ECHO_N "(cached) $ECHO_C" >&6
35258 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
35260 cat >conftest.$ac_ext <<_ACEOF
35263 cat confdefs.h >>conftest.$ac_ext
35264 cat >>conftest.$ac_ext <<_ACEOF
35265 /* end confdefs.h. */
35267 #ifdef HAVE_DB_185_H
35268 # include <db_185.h>
35273 #ifndef DB_VERSION_MAJOR
35274 # define DB_VERSION_MAJOR 1
35278 #define NULL ((void*)0)
35285 #if DB_VERSION_MAJOR > 1
35288 int major, minor, patch;
35290 version = db_version( &major, &minor, &patch );
35292 if( major != DB_VERSION_MAJOR ||
35293 minor < DB_VERSION_MINOR )
35295 printf("Berkeley DB version mismatch\n"
35296 "\theader: %s\n\tlibrary: %s\n",
35297 DB_VERSION_STRING, version);
35303 #if DB_VERSION_MAJOR > 2
35304 db_env_create( NULL, 0 );
35305 #elif DB_VERSION_MAJOR > 1
35306 db_appexit( NULL );
35308 (void) dbopen( NULL, 0, 0, 0, NULL);
35315 rm -f conftest.$ac_objext conftest$ac_exeext
35316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35317 (eval $ac_link) 2>conftest.er1
35319 grep -v '^ *+' conftest.er1 >conftest.err
35321 cat conftest.err >&5
35322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323 (exit $ac_status); } &&
35324 { ac_try='test -z "$ac_c_werror_flag"
35325 || test ! -s conftest.err'
35326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35327 (eval $ac_try) 2>&5
35329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330 (exit $ac_status); }; } &&
35331 { ac_try='test -s conftest$ac_exeext'
35332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35333 (eval $ac_try) 2>&5
35335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35336 (exit $ac_status); }; }; then
35339 echo "$as_me: failed program was:" >&5
35340 sed 's/^/| /' conftest.$ac_ext >&5
35344 rm -f conftest.err conftest.$ac_objext \
35345 conftest$ac_exeext conftest.$ac_ext
35350 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
35351 echo "${ECHO_T}$ol_cv_db_db1" >&6
35353 if test $ol_cv_db_db1 = yes ; then
35358 if test $ol_cv_lib_db = no ; then
35359 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
35360 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
35361 if test "${ol_cv_db_db_1+set}" = set; then
35362 echo $ECHO_N "(cached) $ECHO_C" >&6
35367 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
35369 cat >conftest.$ac_ext <<_ACEOF
35372 cat confdefs.h >>conftest.$ac_ext
35373 cat >>conftest.$ac_ext <<_ACEOF
35374 /* end confdefs.h. */
35376 #ifdef HAVE_DB_185_H
35377 # include <db_185.h>
35382 #ifndef DB_VERSION_MAJOR
35383 # define DB_VERSION_MAJOR 1
35387 #define NULL ((void*)0)
35394 #if DB_VERSION_MAJOR > 1
35397 int major, minor, patch;
35399 version = db_version( &major, &minor, &patch );
35401 if( major != DB_VERSION_MAJOR ||
35402 minor < DB_VERSION_MINOR )
35404 printf("Berkeley DB version mismatch\n"
35405 "\theader: %s\n\tlibrary: %s\n",
35406 DB_VERSION_STRING, version);
35412 #if DB_VERSION_MAJOR > 2
35413 db_env_create( NULL, 0 );
35414 #elif DB_VERSION_MAJOR > 1
35415 db_appexit( NULL );
35417 (void) dbopen( NULL, 0, 0, 0, NULL);
35424 rm -f conftest.$ac_objext conftest$ac_exeext
35425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35426 (eval $ac_link) 2>conftest.er1
35428 grep -v '^ *+' conftest.er1 >conftest.err
35430 cat conftest.err >&5
35431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432 (exit $ac_status); } &&
35433 { ac_try='test -z "$ac_c_werror_flag"
35434 || test ! -s conftest.err'
35435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35436 (eval $ac_try) 2>&5
35438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439 (exit $ac_status); }; } &&
35440 { ac_try='test -s conftest$ac_exeext'
35441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35442 (eval $ac_try) 2>&5
35444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445 (exit $ac_status); }; }; then
35448 echo "$as_me: failed program was:" >&5
35449 sed 's/^/| /' conftest.$ac_ext >&5
35453 rm -f conftest.err conftest.$ac_objext \
35454 conftest$ac_exeext conftest.$ac_ext
35459 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
35460 echo "${ECHO_T}$ol_cv_db_db_1" >&6
35462 if test $ol_cv_db_db_1 = yes ; then
35463 ol_cv_lib_db=-ldb-1
35468 if test $ol_cv_lib_db = no ; then
35469 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
35470 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
35471 if test "${ol_cv_db_none+set}" = set; then
35472 echo $ECHO_N "(cached) $ECHO_C" >&6
35477 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
35479 cat >conftest.$ac_ext <<_ACEOF
35482 cat confdefs.h >>conftest.$ac_ext
35483 cat >>conftest.$ac_ext <<_ACEOF
35484 /* end confdefs.h. */
35486 #ifdef HAVE_DB_185_H
35487 # include <db_185.h>
35492 #ifndef DB_VERSION_MAJOR
35493 # define DB_VERSION_MAJOR 1
35497 #define NULL ((void*)0)
35504 #if DB_VERSION_MAJOR > 1
35507 int major, minor, patch;
35509 version = db_version( &major, &minor, &patch );
35511 if( major != DB_VERSION_MAJOR ||
35512 minor < DB_VERSION_MINOR )
35514 printf("Berkeley DB version mismatch\n"
35515 "\theader: %s\n\tlibrary: %s\n",
35516 DB_VERSION_STRING, version);
35522 #if DB_VERSION_MAJOR > 2
35523 db_env_create( NULL, 0 );
35524 #elif DB_VERSION_MAJOR > 1
35525 db_appexit( NULL );
35527 (void) dbopen( NULL, 0, 0, 0, NULL);
35534 rm -f conftest.$ac_objext conftest$ac_exeext
35535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35536 (eval $ac_link) 2>conftest.er1
35538 grep -v '^ *+' conftest.er1 >conftest.err
35540 cat conftest.err >&5
35541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542 (exit $ac_status); } &&
35543 { ac_try='test -z "$ac_c_werror_flag"
35544 || test ! -s conftest.err'
35545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35546 (eval $ac_try) 2>&5
35548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35549 (exit $ac_status); }; } &&
35550 { ac_try='test -s conftest$ac_exeext'
35551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35552 (eval $ac_try) 2>&5
35554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555 (exit $ac_status); }; }; then
35558 echo "$as_me: failed program was:" >&5
35559 sed 's/^/| /' conftest.$ac_ext >&5
35563 rm -f conftest.err conftest.$ac_objext \
35564 conftest$ac_exeext conftest.$ac_ext
35569 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
35570 echo "${ECHO_T}$ol_cv_db_none" >&6
35572 if test $ol_cv_db_none = yes ; then
35578 if test "$ol_cv_lib_db" != no ; then
35579 ol_cv_berkeley_db=yes
35580 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
35581 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
35582 if test "${ol_cv_berkeley_db_version+set}" = set; then
35583 echo $ECHO_N "(cached) $ECHO_C" >&6
35587 LIBS="$LTHREAD_LIBS $LIBS"
35588 if test $ol_cv_lib_db != yes ; then
35589 LIBS="$ol_cv_lib_db $LIBS"
35592 if test "$cross_compiling" = yes; then
35593 ol_cv_berkeley_db_version=cross
35595 cat >conftest.$ac_ext <<_ACEOF
35598 cat confdefs.h >>conftest.$ac_ext
35599 cat >>conftest.$ac_ext <<_ACEOF
35600 /* end confdefs.h. */
35602 #ifdef HAVE_DB_185_H
35607 #ifndef DB_VERSION_MAJOR
35608 # define DB_VERSION_MAJOR 1
35611 #define NULL ((void *)0)
35615 #if DB_VERSION_MAJOR > 1
35617 int major, minor, patch;
35619 version = db_version( &major, &minor, &patch );
35621 if( major != DB_VERSION_MAJOR ||
35622 minor != DB_VERSION_MINOR ||
35623 patch != DB_VERSION_PATCH )
35625 printf("Berkeley DB version mismatch\n"
35626 "\theader: %s\n\tlibrary: %s\n",
35627 DB_VERSION_STRING, version);
35635 rm -f conftest$ac_exeext
35636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35637 (eval $ac_link) 2>&5
35639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35642 (eval $ac_try) 2>&5
35644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); }; }; then
35646 ol_cv_berkeley_db_version=yes
35648 echo "$as_me: program exited with status $ac_status" >&5
35649 echo "$as_me: failed program was:" >&5
35650 sed 's/^/| /' conftest.$ac_ext >&5
35652 ( exit $ac_status )
35653 ol_cv_berkeley_db_version=no
35655 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35661 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
35662 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
35664 if test $ol_cv_berkeley_db_version = no ; then
35665 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
35666 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
35667 { (exit 1); exit 1; }; }
35670 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
35671 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
35672 if test "${ol_cv_berkeley_db_thread+set}" = set; then
35673 echo $ECHO_N "(cached) $ECHO_C" >&6
35677 LIBS="$LTHREAD_LIBS $LIBS"
35678 if test $ol_cv_lib_db != yes ; then
35679 LIBS="$ol_cv_lib_db $LIBS"
35682 if test "$cross_compiling" = yes; then
35683 ol_cv_berkeley_db_thread=cross
35685 cat >conftest.$ac_ext <<_ACEOF
35688 cat confdefs.h >>conftest.$ac_ext
35689 cat >>conftest.$ac_ext <<_ACEOF
35690 /* end confdefs.h. */
35692 #ifdef HAVE_DB_185_H
35698 #define NULL ((void *)0)
35703 u_int32_t flags = DB_CREATE |
35709 #if DB_VERSION_MAJOR > 2
35710 DB_ENV *env = NULL;
35712 rc = db_env_create( &env, 0 );
35714 flags |= DB_INIT_MPOOL;
35715 #ifdef DB_MPOOL_PRIVATE
35716 flags |= DB_MPOOL_PRIVATE;
35720 printf("BerkeleyDB: %s\n", db_strerror(rc) );
35724 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
35725 rc = env->open( env, NULL, flags, 0 );
35727 rc = env->open( env, NULL, NULL, flags, 0 );
35731 rc = env->close( env, 0 );
35735 printf("BerkeleyDB: %s\n", db_strerror(rc) );
35741 memset( &env, '\0', sizeof(env) );
35743 rc = db_appinit( NULL, NULL, &env, flags );
35746 db_appexit( &env );
35749 unlink("__db_mpool.share");
35750 unlink("__db_lock.share");
35756 rm -f conftest$ac_exeext
35757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35758 (eval $ac_link) 2>&5
35760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35763 (eval $ac_try) 2>&5
35765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766 (exit $ac_status); }; }; then
35767 ol_cv_berkeley_db_thread=yes
35769 echo "$as_me: program exited with status $ac_status" >&5
35770 echo "$as_me: failed program was:" >&5
35771 sed 's/^/| /' conftest.$ac_ext >&5
35773 ( exit $ac_status )
35774 ol_cv_berkeley_db_thread=no
35776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35782 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
35783 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
35785 if test $ol_cv_berkeley_db_thread != no ; then
35787 cat >>confdefs.h <<\_ACEOF
35788 #define HAVE_BERKELEY_DB_THREAD 1
35798 if test $ol_cv_berkeley_db != no ; then
35800 cat >>confdefs.h <<\_ACEOF
35801 #define HAVE_BERKELEY_DB 1
35805 ol_link_ldbm=berkeley
35806 ol_enable_ldbm_api=berkeley
35808 if test $ol_enable_ldbm_type = hash ; then
35810 cat >>confdefs.h <<\_ACEOF
35811 #define LDBM_USE_DBHASH 1
35816 cat >>confdefs.h <<\_ACEOF
35817 #define LDBM_USE_DBBTREE 1
35822 if test $ol_cv_lib_db != yes ; then
35823 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
35829 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
35830 if test $ol_link_ldbm != berkeley ; then
35831 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
35832 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
35833 { (exit 1); exit 1; }; }
35835 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
35836 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
35837 if test "${ol_cv_bdb_compat+set}" = set; then
35838 echo $ECHO_N "(cached) $ECHO_C" >&6
35841 cat >conftest.$ac_ext <<_ACEOF
35844 cat confdefs.h >>conftest.$ac_ext
35845 cat >>conftest.$ac_ext <<_ACEOF
35846 /* end confdefs.h. */
35850 /* this check could be improved */
35851 #ifndef DB_VERSION_MAJOR
35852 # define DB_VERSION_MAJOR 1
35854 #ifndef DB_VERSION_MINOR
35855 # define DB_VERSION_MINOR 0
35858 /* require 4.2 or later */
35859 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
35860 __db_version_compat
35864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35865 $EGREP "__db_version_compat" >/dev/null 2>&1; then
35866 ol_cv_bdb_compat=yes
35868 ol_cv_bdb_compat=no
35873 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
35874 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
35877 if test $ol_cv_bdb_compat != yes ; then
35878 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
35879 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
35880 { (exit 1); exit 1; }; }
35885 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
35886 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
35887 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
35888 ol_enable_ldbm_api=none
35891 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
35892 echo "$as_me:$LINENO: checking for MDBM library" >&5
35893 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
35894 if test "${ol_cv_lib_mdbm+set}" = set; then
35895 echo $ECHO_N "(cached) $ECHO_C" >&6
35898 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
35899 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
35900 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
35901 echo $ECHO_N "(cached) $ECHO_C" >&6
35903 cat >conftest.$ac_ext <<_ACEOF
35906 cat confdefs.h >>conftest.$ac_ext
35907 cat >>conftest.$ac_ext <<_ACEOF
35908 /* end confdefs.h. */
35909 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
35910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35911 #define mdbm_set_chain innocuous_mdbm_set_chain
35913 /* System header to define __stub macros and hopefully few prototypes,
35914 which can conflict with char mdbm_set_chain (); below.
35915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35916 <limits.h> exists even on freestanding compilers. */
35919 # include <limits.h>
35921 # include <assert.h>
35924 #undef mdbm_set_chain
35926 /* Override any gcc2 internal prototype to avoid an error. */
35931 /* We use char because int might match the return type of a gcc2
35932 builtin and then its argument prototype would still apply. */
35933 char mdbm_set_chain ();
35934 /* The GNU C library defines this for functions which it implements
35935 to always fail with ENOSYS. Some functions are actually named
35936 something starting with __ and the normal name is an alias. */
35937 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
35940 char (*f) () = mdbm_set_chain;
35949 return f != mdbm_set_chain;
35954 rm -f conftest.$ac_objext conftest$ac_exeext
35955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35956 (eval $ac_link) 2>conftest.er1
35958 grep -v '^ *+' conftest.er1 >conftest.err
35960 cat conftest.err >&5
35961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962 (exit $ac_status); } &&
35963 { ac_try='test -z "$ac_c_werror_flag"
35964 || test ! -s conftest.err'
35965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35966 (eval $ac_try) 2>&5
35968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35969 (exit $ac_status); }; } &&
35970 { ac_try='test -s conftest$ac_exeext'
35971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35972 (eval $ac_try) 2>&5
35974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975 (exit $ac_status); }; }; then
35976 ac_cv_func_mdbm_set_chain=yes
35978 echo "$as_me: failed program was:" >&5
35979 sed 's/^/| /' conftest.$ac_ext >&5
35981 ac_cv_func_mdbm_set_chain=no
35983 rm -f conftest.err conftest.$ac_objext \
35984 conftest$ac_exeext conftest.$ac_ext
35986 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
35987 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
35988 if test $ac_cv_func_mdbm_set_chain = yes; then
35992 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
35993 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
35994 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
35995 echo $ECHO_N "(cached) $ECHO_C" >&6
35997 ac_check_lib_save_LIBS=$LIBS
35998 LIBS="-lmdbm $LIBS"
35999 cat >conftest.$ac_ext <<_ACEOF
36002 cat confdefs.h >>conftest.$ac_ext
36003 cat >>conftest.$ac_ext <<_ACEOF
36004 /* end confdefs.h. */
36006 /* Override any gcc2 internal prototype to avoid an error. */
36010 /* We use char because int might match the return type of a gcc2
36011 builtin and then its argument prototype would still apply. */
36012 char mdbm_set_chain ();
36021 rm -f conftest.$ac_objext conftest$ac_exeext
36022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36023 (eval $ac_link) 2>conftest.er1
36025 grep -v '^ *+' conftest.er1 >conftest.err
36027 cat conftest.err >&5
36028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029 (exit $ac_status); } &&
36030 { ac_try='test -z "$ac_c_werror_flag"
36031 || test ! -s conftest.err'
36032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36033 (eval $ac_try) 2>&5
36035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36036 (exit $ac_status); }; } &&
36037 { ac_try='test -s conftest$ac_exeext'
36038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36039 (eval $ac_try) 2>&5
36041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36042 (exit $ac_status); }; }; then
36043 ac_cv_lib_mdbm_mdbm_set_chain=yes
36045 echo "$as_me: failed program was:" >&5
36046 sed 's/^/| /' conftest.$ac_ext >&5
36048 ac_cv_lib_mdbm_mdbm_set_chain=no
36050 rm -f conftest.err conftest.$ac_objext \
36051 conftest$ac_exeext conftest.$ac_ext
36052 LIBS=$ac_check_lib_save_LIBS
36054 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
36055 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
36056 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
36057 ol_cv_lib_mdbm=-lmdbm
36068 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
36069 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
36073 for ac_header in mdbm.h
36075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36077 echo "$as_me:$LINENO: checking for $ac_header" >&5
36078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36080 echo $ECHO_N "(cached) $ECHO_C" >&6
36082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36085 # Is the header compilable?
36086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36088 cat >conftest.$ac_ext <<_ACEOF
36091 cat confdefs.h >>conftest.$ac_ext
36092 cat >>conftest.$ac_ext <<_ACEOF
36093 /* end confdefs.h. */
36094 $ac_includes_default
36095 #include <$ac_header>
36097 rm -f conftest.$ac_objext
36098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36099 (eval $ac_compile) 2>conftest.er1
36101 grep -v '^ *+' conftest.er1 >conftest.err
36103 cat conftest.err >&5
36104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36105 (exit $ac_status); } &&
36106 { ac_try='test -z "$ac_c_werror_flag"
36107 || test ! -s conftest.err'
36108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36109 (eval $ac_try) 2>&5
36111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36112 (exit $ac_status); }; } &&
36113 { ac_try='test -s conftest.$ac_objext'
36114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36115 (eval $ac_try) 2>&5
36117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36118 (exit $ac_status); }; }; then
36119 ac_header_compiler=yes
36121 echo "$as_me: failed program was:" >&5
36122 sed 's/^/| /' conftest.$ac_ext >&5
36124 ac_header_compiler=no
36126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36128 echo "${ECHO_T}$ac_header_compiler" >&6
36130 # Is the header present?
36131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36133 cat >conftest.$ac_ext <<_ACEOF
36136 cat confdefs.h >>conftest.$ac_ext
36137 cat >>conftest.$ac_ext <<_ACEOF
36138 /* end confdefs.h. */
36139 #include <$ac_header>
36141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36144 grep -v '^ *+' conftest.er1 >conftest.err
36146 cat conftest.err >&5
36147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36148 (exit $ac_status); } >/dev/null; then
36149 if test -s conftest.err; then
36150 ac_cpp_err=$ac_c_preproc_warn_flag
36151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36158 if test -z "$ac_cpp_err"; then
36159 ac_header_preproc=yes
36161 echo "$as_me: failed program was:" >&5
36162 sed 's/^/| /' conftest.$ac_ext >&5
36164 ac_header_preproc=no
36166 rm -f conftest.err conftest.$ac_ext
36167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36168 echo "${ECHO_T}$ac_header_preproc" >&6
36170 # So? What about this header?
36171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36177 ac_header_preproc=yes
36180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36194 ## --------------------------------------------- ##
36195 ## Report this to <http://www.openldap.org/its/> ##
36196 ## --------------------------------------------- ##
36199 sed "s/^/$as_me: WARNING: /" >&2
36202 echo "$as_me:$LINENO: checking for $ac_header" >&5
36203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36205 echo $ECHO_N "(cached) $ECHO_C" >&6
36207 eval "$as_ac_Header=\$ac_header_preproc"
36209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36214 cat >>confdefs.h <<_ACEOF
36215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36222 echo "$as_me:$LINENO: checking for db" >&5
36223 echo $ECHO_N "checking for db... $ECHO_C" >&6
36224 if test "${ol_cv_mdbm+set}" = set; then
36225 echo $ECHO_N "(cached) $ECHO_C" >&6
36228 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
36235 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
36236 echo "${ECHO_T}$ol_cv_mdbm" >&6
36237 if test $ol_cv_mdbm = yes ; then
36239 cat >>confdefs.h <<\_ACEOF
36240 #define HAVE_MDBM 1
36246 if test $ol_cv_mdbm = yes ; then
36248 ol_enable_ldbm_api=mdbm
36249 if test $ol_cv_lib_mdbm != yes ; then
36250 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
36255 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
36256 echo "$as_me:$LINENO: checking for GDBM library" >&5
36257 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
36258 if test "${ol_cv_lib_gdbm+set}" = set; then
36259 echo $ECHO_N "(cached) $ECHO_C" >&6
36262 echo "$as_me:$LINENO: checking for gdbm_open" >&5
36263 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
36264 if test "${ac_cv_func_gdbm_open+set}" = set; then
36265 echo $ECHO_N "(cached) $ECHO_C" >&6
36267 cat >conftest.$ac_ext <<_ACEOF
36270 cat confdefs.h >>conftest.$ac_ext
36271 cat >>conftest.$ac_ext <<_ACEOF
36272 /* end confdefs.h. */
36273 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
36274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36275 #define gdbm_open innocuous_gdbm_open
36277 /* System header to define __stub macros and hopefully few prototypes,
36278 which can conflict with char gdbm_open (); below.
36279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36280 <limits.h> exists even on freestanding compilers. */
36283 # include <limits.h>
36285 # include <assert.h>
36290 /* Override any gcc2 internal prototype to avoid an error. */
36295 /* We use char because int might match the return type of a gcc2
36296 builtin and then its argument prototype would still apply. */
36298 /* The GNU C library defines this for functions which it implements
36299 to always fail with ENOSYS. Some functions are actually named
36300 something starting with __ and the normal name is an alias. */
36301 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
36304 char (*f) () = gdbm_open;
36313 return f != gdbm_open;
36318 rm -f conftest.$ac_objext conftest$ac_exeext
36319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36320 (eval $ac_link) 2>conftest.er1
36322 grep -v '^ *+' conftest.er1 >conftest.err
36324 cat conftest.err >&5
36325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36326 (exit $ac_status); } &&
36327 { ac_try='test -z "$ac_c_werror_flag"
36328 || test ! -s conftest.err'
36329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36330 (eval $ac_try) 2>&5
36332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333 (exit $ac_status); }; } &&
36334 { ac_try='test -s conftest$ac_exeext'
36335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36336 (eval $ac_try) 2>&5
36338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36339 (exit $ac_status); }; }; then
36340 ac_cv_func_gdbm_open=yes
36342 echo "$as_me: failed program was:" >&5
36343 sed 's/^/| /' conftest.$ac_ext >&5
36345 ac_cv_func_gdbm_open=no
36347 rm -f conftest.err conftest.$ac_objext \
36348 conftest$ac_exeext conftest.$ac_ext
36350 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
36351 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
36352 if test $ac_cv_func_gdbm_open = yes; then
36356 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
36357 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
36358 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
36359 echo $ECHO_N "(cached) $ECHO_C" >&6
36361 ac_check_lib_save_LIBS=$LIBS
36362 LIBS="-lgdbm $LIBS"
36363 cat >conftest.$ac_ext <<_ACEOF
36366 cat confdefs.h >>conftest.$ac_ext
36367 cat >>conftest.$ac_ext <<_ACEOF
36368 /* end confdefs.h. */
36370 /* Override any gcc2 internal prototype to avoid an error. */
36374 /* We use char because int might match the return type of a gcc2
36375 builtin and then its argument prototype would still apply. */
36385 rm -f conftest.$ac_objext conftest$ac_exeext
36386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36387 (eval $ac_link) 2>conftest.er1
36389 grep -v '^ *+' conftest.er1 >conftest.err
36391 cat conftest.err >&5
36392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393 (exit $ac_status); } &&
36394 { ac_try='test -z "$ac_c_werror_flag"
36395 || test ! -s conftest.err'
36396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36397 (eval $ac_try) 2>&5
36399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36400 (exit $ac_status); }; } &&
36401 { ac_try='test -s conftest$ac_exeext'
36402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36403 (eval $ac_try) 2>&5
36405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36406 (exit $ac_status); }; }; then
36407 ac_cv_lib_gdbm_gdbm_open=yes
36409 echo "$as_me: failed program was:" >&5
36410 sed 's/^/| /' conftest.$ac_ext >&5
36412 ac_cv_lib_gdbm_gdbm_open=no
36414 rm -f conftest.err conftest.$ac_objext \
36415 conftest$ac_exeext conftest.$ac_ext
36416 LIBS=$ac_check_lib_save_LIBS
36418 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
36419 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
36420 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
36421 ol_cv_lib_gdbm=-lgdbm
36432 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
36433 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
36437 for ac_header in gdbm.h
36439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36441 echo "$as_me:$LINENO: checking for $ac_header" >&5
36442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36444 echo $ECHO_N "(cached) $ECHO_C" >&6
36446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36449 # Is the header compilable?
36450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36452 cat >conftest.$ac_ext <<_ACEOF
36455 cat confdefs.h >>conftest.$ac_ext
36456 cat >>conftest.$ac_ext <<_ACEOF
36457 /* end confdefs.h. */
36458 $ac_includes_default
36459 #include <$ac_header>
36461 rm -f conftest.$ac_objext
36462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36463 (eval $ac_compile) 2>conftest.er1
36465 grep -v '^ *+' conftest.er1 >conftest.err
36467 cat conftest.err >&5
36468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36469 (exit $ac_status); } &&
36470 { ac_try='test -z "$ac_c_werror_flag"
36471 || test ! -s conftest.err'
36472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36473 (eval $ac_try) 2>&5
36475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36476 (exit $ac_status); }; } &&
36477 { ac_try='test -s conftest.$ac_objext'
36478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36479 (eval $ac_try) 2>&5
36481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36482 (exit $ac_status); }; }; then
36483 ac_header_compiler=yes
36485 echo "$as_me: failed program was:" >&5
36486 sed 's/^/| /' conftest.$ac_ext >&5
36488 ac_header_compiler=no
36490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36492 echo "${ECHO_T}$ac_header_compiler" >&6
36494 # Is the header present?
36495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36497 cat >conftest.$ac_ext <<_ACEOF
36500 cat confdefs.h >>conftest.$ac_ext
36501 cat >>conftest.$ac_ext <<_ACEOF
36502 /* end confdefs.h. */
36503 #include <$ac_header>
36505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36508 grep -v '^ *+' conftest.er1 >conftest.err
36510 cat conftest.err >&5
36511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36512 (exit $ac_status); } >/dev/null; then
36513 if test -s conftest.err; then
36514 ac_cpp_err=$ac_c_preproc_warn_flag
36515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36522 if test -z "$ac_cpp_err"; then
36523 ac_header_preproc=yes
36525 echo "$as_me: failed program was:" >&5
36526 sed 's/^/| /' conftest.$ac_ext >&5
36528 ac_header_preproc=no
36530 rm -f conftest.err conftest.$ac_ext
36531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36532 echo "${ECHO_T}$ac_header_preproc" >&6
36534 # So? What about this header?
36535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36541 ac_header_preproc=yes
36544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36558 ## --------------------------------------------- ##
36559 ## Report this to <http://www.openldap.org/its/> ##
36560 ## --------------------------------------------- ##
36563 sed "s/^/$as_me: WARNING: /" >&2
36566 echo "$as_me:$LINENO: checking for $ac_header" >&5
36567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36569 echo $ECHO_N "(cached) $ECHO_C" >&6
36571 eval "$as_ac_Header=\$ac_header_preproc"
36573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36578 cat >>confdefs.h <<_ACEOF
36579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36586 echo "$as_me:$LINENO: checking for db" >&5
36587 echo $ECHO_N "checking for db... $ECHO_C" >&6
36588 if test "${ol_cv_gdbm+set}" = set; then
36589 echo $ECHO_N "(cached) $ECHO_C" >&6
36592 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
36599 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
36600 echo "${ECHO_T}$ol_cv_gdbm" >&6
36601 if test $ol_cv_gdbm = yes ; then
36603 cat >>confdefs.h <<\_ACEOF
36604 #define HAVE_GDBM 1
36610 if test $ol_cv_gdbm = yes ; then
36612 ol_enable_ldbm_api=gdbm
36614 if test $ol_cv_lib_gdbm != yes ; then
36615 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
36620 if test $ol_enable_ldbm_api = ndbm ; then
36621 echo "$as_me:$LINENO: checking for NDBM library" >&5
36622 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
36623 if test "${ol_cv_lib_ndbm+set}" = set; then
36624 echo $ECHO_N "(cached) $ECHO_C" >&6
36627 echo "$as_me:$LINENO: checking for dbm_open" >&5
36628 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
36629 if test "${ac_cv_func_dbm_open+set}" = set; then
36630 echo $ECHO_N "(cached) $ECHO_C" >&6
36632 cat >conftest.$ac_ext <<_ACEOF
36635 cat confdefs.h >>conftest.$ac_ext
36636 cat >>conftest.$ac_ext <<_ACEOF
36637 /* end confdefs.h. */
36638 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
36639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36640 #define dbm_open innocuous_dbm_open
36642 /* System header to define __stub macros and hopefully few prototypes,
36643 which can conflict with char dbm_open (); below.
36644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36645 <limits.h> exists even on freestanding compilers. */
36648 # include <limits.h>
36650 # include <assert.h>
36655 /* Override any gcc2 internal prototype to avoid an error. */
36660 /* We use char because int might match the return type of a gcc2
36661 builtin and then its argument prototype would still apply. */
36663 /* The GNU C library defines this for functions which it implements
36664 to always fail with ENOSYS. Some functions are actually named
36665 something starting with __ and the normal name is an alias. */
36666 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
36669 char (*f) () = dbm_open;
36678 return f != dbm_open;
36683 rm -f conftest.$ac_objext conftest$ac_exeext
36684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36685 (eval $ac_link) 2>conftest.er1
36687 grep -v '^ *+' conftest.er1 >conftest.err
36689 cat conftest.err >&5
36690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36691 (exit $ac_status); } &&
36692 { ac_try='test -z "$ac_c_werror_flag"
36693 || test ! -s conftest.err'
36694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36695 (eval $ac_try) 2>&5
36697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36698 (exit $ac_status); }; } &&
36699 { ac_try='test -s conftest$ac_exeext'
36700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36701 (eval $ac_try) 2>&5
36703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704 (exit $ac_status); }; }; then
36705 ac_cv_func_dbm_open=yes
36707 echo "$as_me: failed program was:" >&5
36708 sed 's/^/| /' conftest.$ac_ext >&5
36710 ac_cv_func_dbm_open=no
36712 rm -f conftest.err conftest.$ac_objext \
36713 conftest$ac_exeext conftest.$ac_ext
36715 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
36716 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
36717 if test $ac_cv_func_dbm_open = yes; then
36721 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
36722 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
36723 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
36724 echo $ECHO_N "(cached) $ECHO_C" >&6
36726 ac_check_lib_save_LIBS=$LIBS
36727 LIBS="-lndbm $LIBS"
36728 cat >conftest.$ac_ext <<_ACEOF
36731 cat confdefs.h >>conftest.$ac_ext
36732 cat >>conftest.$ac_ext <<_ACEOF
36733 /* end confdefs.h. */
36735 /* Override any gcc2 internal prototype to avoid an error. */
36739 /* We use char because int might match the return type of a gcc2
36740 builtin and then its argument prototype would still apply. */
36750 rm -f conftest.$ac_objext conftest$ac_exeext
36751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36752 (eval $ac_link) 2>conftest.er1
36754 grep -v '^ *+' conftest.er1 >conftest.err
36756 cat conftest.err >&5
36757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36758 (exit $ac_status); } &&
36759 { ac_try='test -z "$ac_c_werror_flag"
36760 || test ! -s conftest.err'
36761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36762 (eval $ac_try) 2>&5
36764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765 (exit $ac_status); }; } &&
36766 { ac_try='test -s conftest$ac_exeext'
36767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36768 (eval $ac_try) 2>&5
36770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771 (exit $ac_status); }; }; then
36772 ac_cv_lib_ndbm_dbm_open=yes
36774 echo "$as_me: failed program was:" >&5
36775 sed 's/^/| /' conftest.$ac_ext >&5
36777 ac_cv_lib_ndbm_dbm_open=no
36779 rm -f conftest.err conftest.$ac_objext \
36780 conftest$ac_exeext conftest.$ac_ext
36781 LIBS=$ac_check_lib_save_LIBS
36783 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
36784 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
36785 if test $ac_cv_lib_ndbm_dbm_open = yes; then
36786 ol_cv_lib_ndbm=-lndbm
36789 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
36790 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
36791 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
36792 echo $ECHO_N "(cached) $ECHO_C" >&6
36794 ac_check_lib_save_LIBS=$LIBS
36796 cat >conftest.$ac_ext <<_ACEOF
36799 cat confdefs.h >>conftest.$ac_ext
36800 cat >>conftest.$ac_ext <<_ACEOF
36801 /* end confdefs.h. */
36803 /* Override any gcc2 internal prototype to avoid an error. */
36807 /* We use char because int might match the return type of a gcc2
36808 builtin and then its argument prototype would still apply. */
36818 rm -f conftest.$ac_objext conftest$ac_exeext
36819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36820 (eval $ac_link) 2>conftest.er1
36822 grep -v '^ *+' conftest.er1 >conftest.err
36824 cat conftest.err >&5
36825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826 (exit $ac_status); } &&
36827 { ac_try='test -z "$ac_c_werror_flag"
36828 || test ! -s conftest.err'
36829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36830 (eval $ac_try) 2>&5
36832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36833 (exit $ac_status); }; } &&
36834 { ac_try='test -s conftest$ac_exeext'
36835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36836 (eval $ac_try) 2>&5
36838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36839 (exit $ac_status); }; }; then
36840 ac_cv_lib_dbm_dbm_open=yes
36842 echo "$as_me: failed program was:" >&5
36843 sed 's/^/| /' conftest.$ac_ext >&5
36845 ac_cv_lib_dbm_dbm_open=no
36847 rm -f conftest.err conftest.$ac_objext \
36848 conftest$ac_exeext conftest.$ac_ext
36849 LIBS=$ac_check_lib_save_LIBS
36851 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
36852 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
36853 if test $ac_cv_lib_dbm_dbm_open = yes; then
36854 ol_cv_lib_ndbm=-ldbm
36867 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
36868 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
36872 for ac_header in ndbm.h
36874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36876 echo "$as_me:$LINENO: checking for $ac_header" >&5
36877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36879 echo $ECHO_N "(cached) $ECHO_C" >&6
36881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36884 # Is the header compilable?
36885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36887 cat >conftest.$ac_ext <<_ACEOF
36890 cat confdefs.h >>conftest.$ac_ext
36891 cat >>conftest.$ac_ext <<_ACEOF
36892 /* end confdefs.h. */
36893 $ac_includes_default
36894 #include <$ac_header>
36896 rm -f conftest.$ac_objext
36897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36898 (eval $ac_compile) 2>conftest.er1
36900 grep -v '^ *+' conftest.er1 >conftest.err
36902 cat conftest.err >&5
36903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904 (exit $ac_status); } &&
36905 { ac_try='test -z "$ac_c_werror_flag"
36906 || test ! -s conftest.err'
36907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36908 (eval $ac_try) 2>&5
36910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36911 (exit $ac_status); }; } &&
36912 { ac_try='test -s conftest.$ac_objext'
36913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36914 (eval $ac_try) 2>&5
36916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36917 (exit $ac_status); }; }; then
36918 ac_header_compiler=yes
36920 echo "$as_me: failed program was:" >&5
36921 sed 's/^/| /' conftest.$ac_ext >&5
36923 ac_header_compiler=no
36925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36927 echo "${ECHO_T}$ac_header_compiler" >&6
36929 # Is the header present?
36930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36932 cat >conftest.$ac_ext <<_ACEOF
36935 cat confdefs.h >>conftest.$ac_ext
36936 cat >>conftest.$ac_ext <<_ACEOF
36937 /* end confdefs.h. */
36938 #include <$ac_header>
36940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36943 grep -v '^ *+' conftest.er1 >conftest.err
36945 cat conftest.err >&5
36946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36947 (exit $ac_status); } >/dev/null; then
36948 if test -s conftest.err; then
36949 ac_cpp_err=$ac_c_preproc_warn_flag
36950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36957 if test -z "$ac_cpp_err"; then
36958 ac_header_preproc=yes
36960 echo "$as_me: failed program was:" >&5
36961 sed 's/^/| /' conftest.$ac_ext >&5
36963 ac_header_preproc=no
36965 rm -f conftest.err conftest.$ac_ext
36966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36967 echo "${ECHO_T}$ac_header_preproc" >&6
36969 # So? What about this header?
36970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36976 ac_header_preproc=yes
36979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36993 ## --------------------------------------------- ##
36994 ## Report this to <http://www.openldap.org/its/> ##
36995 ## --------------------------------------------- ##
36998 sed "s/^/$as_me: WARNING: /" >&2
37001 echo "$as_me:$LINENO: checking for $ac_header" >&5
37002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37004 echo $ECHO_N "(cached) $ECHO_C" >&6
37006 eval "$as_ac_Header=\$ac_header_preproc"
37008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37013 cat >>confdefs.h <<_ACEOF
37014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37021 echo "$as_me:$LINENO: checking for db" >&5
37022 echo $ECHO_N "checking for db... $ECHO_C" >&6
37023 if test "${ol_cv_ndbm+set}" = set; then
37024 echo $ECHO_N "(cached) $ECHO_C" >&6
37027 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
37034 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
37035 echo "${ECHO_T}$ol_cv_ndbm" >&6
37036 if test $ol_cv_ndbm = yes ; then
37038 cat >>confdefs.h <<\_ACEOF
37039 #define HAVE_NDBM 1
37045 if test $ol_cv_ndbm = yes ; then
37047 ol_enable_ldbm_api=ndbm
37049 if test $ol_cv_lib_ndbm != yes ; then
37050 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
37055 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
37056 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
37057 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
37058 { (exit 1); exit 1; }; }
37061 if test $ol_enable_bdb = yes ||
37062 test $ol_enable_hdb = yes ||
37063 test $ol_enable_ldbm = yes ; then
37064 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
37068 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
37069 BUILD_LIBS_DYNAMIC=shared
37071 cat >>confdefs.h <<\_ACEOF
37072 #define LDAP_LIBS_DYNAMIC 1
37077 BUILD_LIBS_DYNAMIC=static
37081 if test $ol_enable_wrappers != no ; then
37083 for ac_header in tcpd.h
37085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37087 echo "$as_me:$LINENO: checking for $ac_header" >&5
37088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37090 echo $ECHO_N "(cached) $ECHO_C" >&6
37092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37095 # Is the header compilable?
37096 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37098 cat >conftest.$ac_ext <<_ACEOF
37101 cat confdefs.h >>conftest.$ac_ext
37102 cat >>conftest.$ac_ext <<_ACEOF
37103 /* end confdefs.h. */
37104 $ac_includes_default
37105 #include <$ac_header>
37107 rm -f conftest.$ac_objext
37108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37109 (eval $ac_compile) 2>conftest.er1
37111 grep -v '^ *+' conftest.er1 >conftest.err
37113 cat conftest.err >&5
37114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115 (exit $ac_status); } &&
37116 { ac_try='test -z "$ac_c_werror_flag"
37117 || test ! -s conftest.err'
37118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37119 (eval $ac_try) 2>&5
37121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37122 (exit $ac_status); }; } &&
37123 { ac_try='test -s conftest.$ac_objext'
37124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37125 (eval $ac_try) 2>&5
37127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); }; }; then
37129 ac_header_compiler=yes
37131 echo "$as_me: failed program was:" >&5
37132 sed 's/^/| /' conftest.$ac_ext >&5
37134 ac_header_compiler=no
37136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37137 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37138 echo "${ECHO_T}$ac_header_compiler" >&6
37140 # Is the header present?
37141 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37143 cat >conftest.$ac_ext <<_ACEOF
37146 cat confdefs.h >>conftest.$ac_ext
37147 cat >>conftest.$ac_ext <<_ACEOF
37148 /* end confdefs.h. */
37149 #include <$ac_header>
37151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37154 grep -v '^ *+' conftest.er1 >conftest.err
37156 cat conftest.err >&5
37157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37158 (exit $ac_status); } >/dev/null; then
37159 if test -s conftest.err; then
37160 ac_cpp_err=$ac_c_preproc_warn_flag
37161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37168 if test -z "$ac_cpp_err"; then
37169 ac_header_preproc=yes
37171 echo "$as_me: failed program was:" >&5
37172 sed 's/^/| /' conftest.$ac_ext >&5
37174 ac_header_preproc=no
37176 rm -f conftest.err conftest.$ac_ext
37177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37178 echo "${ECHO_T}$ac_header_preproc" >&6
37180 # So? What about this header?
37181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37187 ac_header_preproc=yes
37190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37204 ## --------------------------------------------- ##
37205 ## Report this to <http://www.openldap.org/its/> ##
37206 ## --------------------------------------------- ##
37209 sed "s/^/$as_me: WARNING: /" >&2
37212 echo "$as_me:$LINENO: checking for $ac_header" >&5
37213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37215 echo $ECHO_N "(cached) $ECHO_C" >&6
37217 eval "$as_ac_Header=\$ac_header_preproc"
37219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37224 cat >>confdefs.h <<_ACEOF
37225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37228 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
37229 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
37231 LIBS="$LIBS -lwrap"
37232 cat >conftest.$ac_ext <<_ACEOF
37235 cat confdefs.h >>conftest.$ac_ext
37236 cat >>conftest.$ac_ext <<_ACEOF
37237 /* end confdefs.h. */
37240 int allow_severity = 0;
37241 int deny_severity = 0;
37243 struct request_info *req;
37255 rm -f conftest.$ac_objext conftest$ac_exeext
37256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37257 (eval $ac_link) 2>conftest.er1
37259 grep -v '^ *+' conftest.er1 >conftest.err
37261 cat conftest.err >&5
37262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37263 (exit $ac_status); } &&
37264 { ac_try='test -z "$ac_c_werror_flag"
37265 || test ! -s conftest.err'
37266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37267 (eval $ac_try) 2>&5
37269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37270 (exit $ac_status); }; } &&
37271 { ac_try='test -s conftest$ac_exeext'
37272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37273 (eval $ac_try) 2>&5
37275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37276 (exit $ac_status); }; }; then
37277 echo "$as_me:$LINENO: result: -lwrap" >&5
37278 echo "${ECHO_T}-lwrap" >&6
37282 echo "$as_me: failed program was:" >&5
37283 sed 's/^/| /' conftest.$ac_ext >&5
37287 cat >conftest.$ac_ext <<_ACEOF
37290 cat confdefs.h >>conftest.$ac_ext
37291 cat >>conftest.$ac_ext <<_ACEOF
37292 /* end confdefs.h. */
37295 int allow_severity = 0;
37296 int deny_severity = 0;
37298 struct request_info *req;
37310 rm -f conftest.$ac_objext conftest$ac_exeext
37311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37312 (eval $ac_link) 2>conftest.er1
37314 grep -v '^ *+' conftest.er1 >conftest.err
37316 cat conftest.err >&5
37317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37318 (exit $ac_status); } &&
37319 { ac_try='test -z "$ac_c_werror_flag"
37320 || test ! -s conftest.err'
37321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37322 (eval $ac_try) 2>&5
37324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37325 (exit $ac_status); }; } &&
37326 { ac_try='test -s conftest$ac_exeext'
37327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37328 (eval $ac_try) 2>&5
37330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37331 (exit $ac_status); }; }; then
37332 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
37333 echo "${ECHO_T}-lwrap -lnsl" >&6
37335 LIBS="$save_LIBS -lnsl"
37337 echo "$as_me: failed program was:" >&5
37338 sed 's/^/| /' conftest.$ac_ext >&5
37341 echo "$as_me:$LINENO: result: no" >&5
37342 echo "${ECHO_T}no" >&6
37346 rm -f conftest.err conftest.$ac_objext \
37347 conftest$ac_exeext conftest.$ac_ext
37349 rm -f conftest.err conftest.$ac_objext \
37350 conftest$ac_exeext conftest.$ac_ext
37358 if test $have_wrappers = yes ; then
37360 cat >>confdefs.h <<\_ACEOF
37361 #define HAVE_TCPD 1
37365 elif test $ol_enable_wrappers = yes ; then
37366 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
37367 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
37368 { (exit 1); exit 1; }; }
37370 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
37371 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
37376 if test $ol_enable_syslog != no ; then
37377 echo "$as_me:$LINENO: checking for openlog" >&5
37378 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
37379 if test "${ac_cv_func_openlog+set}" = set; then
37380 echo $ECHO_N "(cached) $ECHO_C" >&6
37382 cat >conftest.$ac_ext <<_ACEOF
37385 cat confdefs.h >>conftest.$ac_ext
37386 cat >>conftest.$ac_ext <<_ACEOF
37387 /* end confdefs.h. */
37388 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
37389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37390 #define openlog innocuous_openlog
37392 /* System header to define __stub macros and hopefully few prototypes,
37393 which can conflict with char openlog (); below.
37394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37395 <limits.h> exists even on freestanding compilers. */
37398 # include <limits.h>
37400 # include <assert.h>
37405 /* Override any gcc2 internal prototype to avoid an error. */
37410 /* We use char because int might match the return type of a gcc2
37411 builtin and then its argument prototype would still apply. */
37413 /* The GNU C library defines this for functions which it implements
37414 to always fail with ENOSYS. Some functions are actually named
37415 something starting with __ and the normal name is an alias. */
37416 #if defined (__stub_openlog) || defined (__stub___openlog)
37419 char (*f) () = openlog;
37428 return f != openlog;
37433 rm -f conftest.$ac_objext conftest$ac_exeext
37434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37435 (eval $ac_link) 2>conftest.er1
37437 grep -v '^ *+' conftest.er1 >conftest.err
37439 cat conftest.err >&5
37440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37441 (exit $ac_status); } &&
37442 { ac_try='test -z "$ac_c_werror_flag"
37443 || test ! -s conftest.err'
37444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37445 (eval $ac_try) 2>&5
37447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37448 (exit $ac_status); }; } &&
37449 { ac_try='test -s conftest$ac_exeext'
37450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451 (eval $ac_try) 2>&5
37453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454 (exit $ac_status); }; }; then
37455 ac_cv_func_openlog=yes
37457 echo "$as_me: failed program was:" >&5
37458 sed 's/^/| /' conftest.$ac_ext >&5
37460 ac_cv_func_openlog=no
37462 rm -f conftest.err conftest.$ac_objext \
37463 conftest$ac_exeext conftest.$ac_ext
37465 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
37466 echo "${ECHO_T}$ac_cv_func_openlog" >&6
37468 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
37469 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
37470 echo "$as_me: error: could not find syslog" >&2;}
37471 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
37473 ol_enable_syslog=$ac_cv_func_openlog
37477 if test $ol_enable_sql != no ; then
37480 for ac_header in sql.h sqlext.h
37482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37484 echo "$as_me:$LINENO: checking for $ac_header" >&5
37485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37487 echo $ECHO_N "(cached) $ECHO_C" >&6
37489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37492 # Is the header compilable?
37493 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37495 cat >conftest.$ac_ext <<_ACEOF
37498 cat confdefs.h >>conftest.$ac_ext
37499 cat >>conftest.$ac_ext <<_ACEOF
37500 /* end confdefs.h. */
37501 $ac_includes_default
37502 #include <$ac_header>
37504 rm -f conftest.$ac_objext
37505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37506 (eval $ac_compile) 2>conftest.er1
37508 grep -v '^ *+' conftest.er1 >conftest.err
37510 cat conftest.err >&5
37511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512 (exit $ac_status); } &&
37513 { ac_try='test -z "$ac_c_werror_flag"
37514 || test ! -s conftest.err'
37515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37516 (eval $ac_try) 2>&5
37518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37519 (exit $ac_status); }; } &&
37520 { ac_try='test -s conftest.$ac_objext'
37521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37522 (eval $ac_try) 2>&5
37524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37525 (exit $ac_status); }; }; then
37526 ac_header_compiler=yes
37528 echo "$as_me: failed program was:" >&5
37529 sed 's/^/| /' conftest.$ac_ext >&5
37531 ac_header_compiler=no
37533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37535 echo "${ECHO_T}$ac_header_compiler" >&6
37537 # Is the header present?
37538 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37540 cat >conftest.$ac_ext <<_ACEOF
37543 cat confdefs.h >>conftest.$ac_ext
37544 cat >>conftest.$ac_ext <<_ACEOF
37545 /* end confdefs.h. */
37546 #include <$ac_header>
37548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37551 grep -v '^ *+' conftest.er1 >conftest.err
37553 cat conftest.err >&5
37554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37555 (exit $ac_status); } >/dev/null; then
37556 if test -s conftest.err; then
37557 ac_cpp_err=$ac_c_preproc_warn_flag
37558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37565 if test -z "$ac_cpp_err"; then
37566 ac_header_preproc=yes
37568 echo "$as_me: failed program was:" >&5
37569 sed 's/^/| /' conftest.$ac_ext >&5
37571 ac_header_preproc=no
37573 rm -f conftest.err conftest.$ac_ext
37574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37575 echo "${ECHO_T}$ac_header_preproc" >&6
37577 # So? What about this header?
37578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37584 ac_header_preproc=yes
37587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37601 ## --------------------------------------------- ##
37602 ## Report this to <http://www.openldap.org/its/> ##
37603 ## --------------------------------------------- ##
37606 sed "s/^/$as_me: WARNING: /" >&2
37609 echo "$as_me:$LINENO: checking for $ac_header" >&5
37610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37612 echo $ECHO_N "(cached) $ECHO_C" >&6
37614 eval "$as_ac_Header=\$ac_header_preproc"
37616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37621 cat >>confdefs.h <<_ACEOF
37622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37627 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
37628 echo "$as_me: error: could not locate SQL headers" >&2;}
37629 { (exit 1); exit 1; }; }
37637 LIBS="$LTHREAD_LIBS"
37639 if test $ol_with_odbc = auto ; then
37640 ol_with_odbc="iodbc unixodbc"
37643 for odbc in $ol_with_odbc ; do
37644 if test $ol_link_sql = no ; then
37647 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
37648 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
37649 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
37650 echo $ECHO_N "(cached) $ECHO_C" >&6
37652 ac_check_lib_save_LIBS=$LIBS
37653 LIBS="-liodbc $LIBS"
37654 cat >conftest.$ac_ext <<_ACEOF
37657 cat confdefs.h >>conftest.$ac_ext
37658 cat >>conftest.$ac_ext <<_ACEOF
37659 /* end confdefs.h. */
37661 /* Override any gcc2 internal prototype to avoid an error. */
37665 /* We use char because int might match the return type of a gcc2
37666 builtin and then its argument prototype would still apply. */
37667 char SQLDriverConnect ();
37671 SQLDriverConnect ();
37676 rm -f conftest.$ac_objext conftest$ac_exeext
37677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37678 (eval $ac_link) 2>conftest.er1
37680 grep -v '^ *+' conftest.er1 >conftest.err
37682 cat conftest.err >&5
37683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37684 (exit $ac_status); } &&
37685 { ac_try='test -z "$ac_c_werror_flag"
37686 || test ! -s conftest.err'
37687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37688 (eval $ac_try) 2>&5
37690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691 (exit $ac_status); }; } &&
37692 { ac_try='test -s conftest$ac_exeext'
37693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37694 (eval $ac_try) 2>&5
37696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37697 (exit $ac_status); }; }; then
37698 ac_cv_lib_iodbc_SQLDriverConnect=yes
37700 echo "$as_me: failed program was:" >&5
37701 sed 's/^/| /' conftest.$ac_ext >&5
37703 ac_cv_lib_iodbc_SQLDriverConnect=no
37705 rm -f conftest.err conftest.$ac_objext \
37706 conftest$ac_exeext conftest.$ac_ext
37707 LIBS=$ac_check_lib_save_LIBS
37709 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
37710 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
37711 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
37717 if test $have_iodbc = yes ; then
37718 ol_link_sql="-liodbc"
37723 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
37724 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
37725 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
37726 echo $ECHO_N "(cached) $ECHO_C" >&6
37728 ac_check_lib_save_LIBS=$LIBS
37729 LIBS="-lodbc $LIBS"
37730 cat >conftest.$ac_ext <<_ACEOF
37733 cat confdefs.h >>conftest.$ac_ext
37734 cat >>conftest.$ac_ext <<_ACEOF
37735 /* end confdefs.h. */
37737 /* Override any gcc2 internal prototype to avoid an error. */
37741 /* We use char because int might match the return type of a gcc2
37742 builtin and then its argument prototype would still apply. */
37743 char SQLDriverConnect ();
37747 SQLDriverConnect ();
37752 rm -f conftest.$ac_objext conftest$ac_exeext
37753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37754 (eval $ac_link) 2>conftest.er1
37756 grep -v '^ *+' conftest.er1 >conftest.err
37758 cat conftest.err >&5
37759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37760 (exit $ac_status); } &&
37761 { ac_try='test -z "$ac_c_werror_flag"
37762 || test ! -s conftest.err'
37763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37764 (eval $ac_try) 2>&5
37766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767 (exit $ac_status); }; } &&
37768 { ac_try='test -s conftest$ac_exeext'
37769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37770 (eval $ac_try) 2>&5
37772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773 (exit $ac_status); }; }; then
37774 ac_cv_lib_odbc_SQLDriverConnect=yes
37776 echo "$as_me: failed program was:" >&5
37777 sed 's/^/| /' conftest.$ac_ext >&5
37779 ac_cv_lib_odbc_SQLDriverConnect=no
37781 rm -f conftest.err conftest.$ac_objext \
37782 conftest$ac_exeext conftest.$ac_ext
37783 LIBS=$ac_check_lib_save_LIBS
37785 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
37786 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
37787 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
37793 if test $have_odbc = yes ; then
37794 ol_link_sql="-lodbc"
37799 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
37800 echo "$as_me: error: unknown ODBC library" >&2;}
37801 { (exit 1); exit 1; }; }
37809 if test $ol_link_sql != no ; then
37810 SLAPD_SQL_LIBS="$ol_link_sql"
37812 elif test $ol_enable_sql != auto ; then
37813 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
37814 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
37815 { (exit 1); exit 1; }; }
37822 if test $ol_with_cyrus_sasl != no ; then
37825 for ac_header in sasl/sasl.h sasl.h
37827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37829 echo "$as_me:$LINENO: checking for $ac_header" >&5
37830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37832 echo $ECHO_N "(cached) $ECHO_C" >&6
37834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37837 # Is the header compilable?
37838 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37840 cat >conftest.$ac_ext <<_ACEOF
37843 cat confdefs.h >>conftest.$ac_ext
37844 cat >>conftest.$ac_ext <<_ACEOF
37845 /* end confdefs.h. */
37846 $ac_includes_default
37847 #include <$ac_header>
37849 rm -f conftest.$ac_objext
37850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37851 (eval $ac_compile) 2>conftest.er1
37853 grep -v '^ *+' conftest.er1 >conftest.err
37855 cat conftest.err >&5
37856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37857 (exit $ac_status); } &&
37858 { ac_try='test -z "$ac_c_werror_flag"
37859 || test ! -s conftest.err'
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); }; } &&
37865 { ac_try='test -s conftest.$ac_objext'
37866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37867 (eval $ac_try) 2>&5
37869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37870 (exit $ac_status); }; }; then
37871 ac_header_compiler=yes
37873 echo "$as_me: failed program was:" >&5
37874 sed 's/^/| /' conftest.$ac_ext >&5
37876 ac_header_compiler=no
37878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37880 echo "${ECHO_T}$ac_header_compiler" >&6
37882 # Is the header present?
37883 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37885 cat >conftest.$ac_ext <<_ACEOF
37888 cat confdefs.h >>conftest.$ac_ext
37889 cat >>conftest.$ac_ext <<_ACEOF
37890 /* end confdefs.h. */
37891 #include <$ac_header>
37893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37896 grep -v '^ *+' conftest.er1 >conftest.err
37898 cat conftest.err >&5
37899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37900 (exit $ac_status); } >/dev/null; then
37901 if test -s conftest.err; then
37902 ac_cpp_err=$ac_c_preproc_warn_flag
37903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37910 if test -z "$ac_cpp_err"; then
37911 ac_header_preproc=yes
37913 echo "$as_me: failed program was:" >&5
37914 sed 's/^/| /' conftest.$ac_ext >&5
37916 ac_header_preproc=no
37918 rm -f conftest.err conftest.$ac_ext
37919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37920 echo "${ECHO_T}$ac_header_preproc" >&6
37922 # So? What about this header?
37923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37929 ac_header_preproc=yes
37932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37946 ## --------------------------------------------- ##
37947 ## Report this to <http://www.openldap.org/its/> ##
37948 ## --------------------------------------------- ##
37951 sed "s/^/$as_me: WARNING: /" >&2
37954 echo "$as_me:$LINENO: checking for $ac_header" >&5
37955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37957 echo $ECHO_N "(cached) $ECHO_C" >&6
37959 eval "$as_ac_Header=\$ac_header_preproc"
37961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37966 cat >>confdefs.h <<_ACEOF
37967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37975 if test $ac_cv_header_sasl_sasl_h = yes ||
37976 test $ac_cv_header_sasl_h = yes; then
37977 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37978 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37979 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37980 echo $ECHO_N "(cached) $ECHO_C" >&6
37982 ac_check_lib_save_LIBS=$LIBS
37983 LIBS="-lsasl2 $LIBS"
37984 cat >conftest.$ac_ext <<_ACEOF
37987 cat confdefs.h >>conftest.$ac_ext
37988 cat >>conftest.$ac_ext <<_ACEOF
37989 /* end confdefs.h. */
37991 /* Override any gcc2 internal prototype to avoid an error. */
37995 /* We use char because int might match the return type of a gcc2
37996 builtin and then its argument prototype would still apply. */
37997 char sasl_client_init ();
38001 sasl_client_init ();
38006 rm -f conftest.$ac_objext conftest$ac_exeext
38007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38008 (eval $ac_link) 2>conftest.er1
38010 grep -v '^ *+' conftest.er1 >conftest.err
38012 cat conftest.err >&5
38013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38014 (exit $ac_status); } &&
38015 { ac_try='test -z "$ac_c_werror_flag"
38016 || test ! -s conftest.err'
38017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38018 (eval $ac_try) 2>&5
38020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38021 (exit $ac_status); }; } &&
38022 { ac_try='test -s conftest$ac_exeext'
38023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38024 (eval $ac_try) 2>&5
38026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38027 (exit $ac_status); }; }; then
38028 ac_cv_lib_sasl2_sasl_client_init=yes
38030 echo "$as_me: failed program was:" >&5
38031 sed 's/^/| /' conftest.$ac_ext >&5
38033 ac_cv_lib_sasl2_sasl_client_init=no
38035 rm -f conftest.err conftest.$ac_objext \
38036 conftest$ac_exeext conftest.$ac_ext
38037 LIBS=$ac_check_lib_save_LIBS
38039 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
38040 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
38041 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
38042 ol_link_sasl="-lsasl2"
38044 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
38045 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
38046 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
38047 echo $ECHO_N "(cached) $ECHO_C" >&6
38049 ac_check_lib_save_LIBS=$LIBS
38050 LIBS="-lsasl $LIBS"
38051 cat >conftest.$ac_ext <<_ACEOF
38054 cat confdefs.h >>conftest.$ac_ext
38055 cat >>conftest.$ac_ext <<_ACEOF
38056 /* end confdefs.h. */
38058 /* Override any gcc2 internal prototype to avoid an error. */
38062 /* We use char because int might match the return type of a gcc2
38063 builtin and then its argument prototype would still apply. */
38064 char sasl_client_init ();
38068 sasl_client_init ();
38073 rm -f conftest.$ac_objext conftest$ac_exeext
38074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38075 (eval $ac_link) 2>conftest.er1
38077 grep -v '^ *+' conftest.er1 >conftest.err
38079 cat conftest.err >&5
38080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38081 (exit $ac_status); } &&
38082 { ac_try='test -z "$ac_c_werror_flag"
38083 || test ! -s conftest.err'
38084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38085 (eval $ac_try) 2>&5
38087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38088 (exit $ac_status); }; } &&
38089 { ac_try='test -s conftest$ac_exeext'
38090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38091 (eval $ac_try) 2>&5
38093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094 (exit $ac_status); }; }; then
38095 ac_cv_lib_sasl_sasl_client_init=yes
38097 echo "$as_me: failed program was:" >&5
38098 sed 's/^/| /' conftest.$ac_ext >&5
38100 ac_cv_lib_sasl_sasl_client_init=no
38102 rm -f conftest.err conftest.$ac_objext \
38103 conftest$ac_exeext conftest.$ac_ext
38104 LIBS=$ac_check_lib_save_LIBS
38106 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
38107 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
38108 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
38109 ol_link_sasl="-lsasl"
38116 if test $ol_link_sasl = no ; then
38117 if test $ol_with_cyrus_sasl != auto ; then
38118 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
38119 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
38120 { (exit 1); exit 1; }; }
38122 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
38123 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
38124 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
38125 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
38126 if test $ol_link_tls = no ; then
38127 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
38128 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
38132 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
38133 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
38134 if test "${ol_cv_sasl_compat+set}" = set; then
38135 echo $ECHO_N "(cached) $ECHO_C" >&6
38138 cat >conftest.$ac_ext <<_ACEOF
38141 cat confdefs.h >>conftest.$ac_ext
38142 cat >>conftest.$ac_ext <<_ACEOF
38143 /* end confdefs.h. */
38145 #ifdef HAVE_SASL_SASL_H
38146 #include <sasl/sasl.h>
38151 /* Require 2.1.15+ */
38152 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
38153 char *__sasl_compat = "2.2+ or better okay (we guess)";
38154 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
38155 && SASL_VERSION_STEP >=15
38156 char *__sasl_compat = "2.1.15+ or better okay";
38160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38161 $EGREP "__sasl_compat" >/dev/null 2>&1; then
38162 ol_cv_sasl_compat=yes
38164 ol_cv_sasl_compat=no
38169 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
38170 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
38172 if test $ol_cv_sasl_compat = no ; then
38174 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
38175 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
38176 { (exit 1); exit 1; }; }
38180 cat >>confdefs.h <<\_ACEOF
38181 #define HAVE_CYRUS_SASL 1
38184 SASL_LIBS="$ol_link_sasl"
38185 if test $ol_enable_spasswd != no ; then
38186 ol_link_spasswd=yes
38189 ac_save_LIBS="$LIBS"
38190 LIBS="$LIBS $ol_link_sasl"
38191 echo "$as_me:$LINENO: checking for sasl_version" >&5
38192 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
38193 if test "${ac_cv_func_sasl_version+set}" = set; then
38194 echo $ECHO_N "(cached) $ECHO_C" >&6
38196 cat >conftest.$ac_ext <<_ACEOF
38199 cat confdefs.h >>conftest.$ac_ext
38200 cat >>conftest.$ac_ext <<_ACEOF
38201 /* end confdefs.h. */
38202 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
38203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38204 #define sasl_version innocuous_sasl_version
38206 /* System header to define __stub macros and hopefully few prototypes,
38207 which can conflict with char sasl_version (); below.
38208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38209 <limits.h> exists even on freestanding compilers. */
38212 # include <limits.h>
38214 # include <assert.h>
38217 #undef sasl_version
38219 /* Override any gcc2 internal prototype to avoid an error. */
38224 /* We use char because int might match the return type of a gcc2
38225 builtin and then its argument prototype would still apply. */
38226 char sasl_version ();
38227 /* The GNU C library defines this for functions which it implements
38228 to always fail with ENOSYS. Some functions are actually named
38229 something starting with __ and the normal name is an alias. */
38230 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
38233 char (*f) () = sasl_version;
38242 return f != sasl_version;
38247 rm -f conftest.$ac_objext conftest$ac_exeext
38248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38249 (eval $ac_link) 2>conftest.er1
38251 grep -v '^ *+' conftest.er1 >conftest.err
38253 cat conftest.err >&5
38254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38255 (exit $ac_status); } &&
38256 { ac_try='test -z "$ac_c_werror_flag"
38257 || test ! -s conftest.err'
38258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38259 (eval $ac_try) 2>&5
38261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262 (exit $ac_status); }; } &&
38263 { ac_try='test -s conftest$ac_exeext'
38264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38265 (eval $ac_try) 2>&5
38267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38268 (exit $ac_status); }; }; then
38269 ac_cv_func_sasl_version=yes
38271 echo "$as_me: failed program was:" >&5
38272 sed 's/^/| /' conftest.$ac_ext >&5
38274 ac_cv_func_sasl_version=no
38276 rm -f conftest.err conftest.$ac_objext \
38277 conftest$ac_exeext conftest.$ac_ext
38279 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
38280 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
38281 if test $ac_cv_func_sasl_version = yes; then
38283 cat >>confdefs.h <<\_ACEOF
38284 #define HAVE_SASL_VERSION 1
38289 LIBS="$ac_save_LIBS"
38295 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
38296 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
38297 if test $ol_link_tls = no ; then
38298 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
38299 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
38303 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
38305 if test -r /dev/urandom ; then
38306 dev="/dev/urandom";
38307 elif test -r /idev/urandom ; then
38308 dev="/idev/urandom";
38309 elif test -r /dev/srandom ; then
38310 dev="/dev/srandom";
38311 elif test -r /dev/random ; then
38313 elif test -r /idev/random ; then
38314 dev="/idev/random";
38317 if test $dev != no ; then
38319 cat >>confdefs.h <<_ACEOF
38320 #define URANDOM_DEVICE "$dev"
38327 if test $ol_with_fetch != no ; then
38329 LIBS="-lfetch -lcom_err $LIBS"
38330 echo "$as_me:$LINENO: checking fetch(3) library" >&5
38331 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
38332 if test "${ol_cv_lib_fetch+set}" = set; then
38333 echo $ECHO_N "(cached) $ECHO_C" >&6
38336 cat >conftest.$ac_ext <<_ACEOF
38339 cat confdefs.h >>conftest.$ac_ext
38340 cat >>conftest.$ac_ext <<_ACEOF
38341 /* end confdefs.h. */
38343 #include <sys/param.h>
38349 struct url *u = fetchParseURL("file:///");
38354 rm -f conftest.$ac_objext conftest$ac_exeext
38355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38356 (eval $ac_link) 2>conftest.er1
38358 grep -v '^ *+' conftest.er1 >conftest.err
38360 cat conftest.err >&5
38361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38362 (exit $ac_status); } &&
38363 { ac_try='test -z "$ac_c_werror_flag"
38364 || test ! -s conftest.err'
38365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38366 (eval $ac_try) 2>&5
38368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38369 (exit $ac_status); }; } &&
38370 { ac_try='test -s conftest$ac_exeext'
38371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38372 (eval $ac_try) 2>&5
38374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38375 (exit $ac_status); }; }; then
38376 ol_cv_lib_fetch=yes
38378 echo "$as_me: failed program was:" >&5
38379 sed 's/^/| /' conftest.$ac_ext >&5
38383 rm -f conftest.err conftest.$ac_objext \
38384 conftest$ac_exeext conftest.$ac_ext
38386 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
38387 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
38389 if test $ol_cv_lib_fetch != no ; then
38390 ol_link_fetch="-lfetch -lcom_err"
38392 cat >>confdefs.h <<\_ACEOF
38393 #define HAVE_FETCH 1
38399 if test $ol_cv_lib_fetch != no ; then
38400 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
38401 ol_link_fetch=freebsd
38403 elif test $ol_with_fetch != auto ; then
38404 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
38405 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
38406 { (exit 1); exit 1; }; }
38410 if test $ol_enable_crypt != no ; then
38412 LIBS="$TLS_LIBS $LIBS"
38414 echo "$as_me:$LINENO: checking for crypt" >&5
38415 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
38416 if test "${ac_cv_func_crypt+set}" = set; then
38417 echo $ECHO_N "(cached) $ECHO_C" >&6
38419 cat >conftest.$ac_ext <<_ACEOF
38422 cat confdefs.h >>conftest.$ac_ext
38423 cat >>conftest.$ac_ext <<_ACEOF
38424 /* end confdefs.h. */
38425 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
38426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38427 #define crypt innocuous_crypt
38429 /* System header to define __stub macros and hopefully few prototypes,
38430 which can conflict with char crypt (); below.
38431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38432 <limits.h> exists even on freestanding compilers. */
38435 # include <limits.h>
38437 # include <assert.h>
38442 /* Override any gcc2 internal prototype to avoid an error. */
38447 /* We use char because int might match the return type of a gcc2
38448 builtin and then its argument prototype would still apply. */
38450 /* The GNU C library defines this for functions which it implements
38451 to always fail with ENOSYS. Some functions are actually named
38452 something starting with __ and the normal name is an alias. */
38453 #if defined (__stub_crypt) || defined (__stub___crypt)
38456 char (*f) () = crypt;
38470 rm -f conftest.$ac_objext conftest$ac_exeext
38471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38472 (eval $ac_link) 2>conftest.er1
38474 grep -v '^ *+' conftest.er1 >conftest.err
38476 cat conftest.err >&5
38477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38478 (exit $ac_status); } &&
38479 { ac_try='test -z "$ac_c_werror_flag"
38480 || test ! -s conftest.err'
38481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38482 (eval $ac_try) 2>&5
38484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38485 (exit $ac_status); }; } &&
38486 { ac_try='test -s conftest$ac_exeext'
38487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38488 (eval $ac_try) 2>&5
38490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38491 (exit $ac_status); }; }; then
38492 ac_cv_func_crypt=yes
38494 echo "$as_me: failed program was:" >&5
38495 sed 's/^/| /' conftest.$ac_ext >&5
38497 ac_cv_func_crypt=no
38499 rm -f conftest.err conftest.$ac_objext \
38500 conftest$ac_exeext conftest.$ac_ext
38502 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
38503 echo "${ECHO_T}$ac_cv_func_crypt" >&6
38504 if test $ac_cv_func_crypt = yes; then
38509 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
38510 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
38511 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
38512 echo $ECHO_N "(cached) $ECHO_C" >&6
38514 ac_check_lib_save_LIBS=$LIBS
38515 LIBS="-lcrypt $LIBS"
38516 cat >conftest.$ac_ext <<_ACEOF
38519 cat confdefs.h >>conftest.$ac_ext
38520 cat >>conftest.$ac_ext <<_ACEOF
38521 /* end confdefs.h. */
38523 /* Override any gcc2 internal prototype to avoid an error. */
38527 /* We use char because int might match the return type of a gcc2
38528 builtin and then its argument prototype would still apply. */
38538 rm -f conftest.$ac_objext conftest$ac_exeext
38539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38540 (eval $ac_link) 2>conftest.er1
38542 grep -v '^ *+' conftest.er1 >conftest.err
38544 cat conftest.err >&5
38545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38546 (exit $ac_status); } &&
38547 { ac_try='test -z "$ac_c_werror_flag"
38548 || test ! -s conftest.err'
38549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38550 (eval $ac_try) 2>&5
38552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38553 (exit $ac_status); }; } &&
38554 { ac_try='test -s conftest$ac_exeext'
38555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38556 (eval $ac_try) 2>&5
38558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559 (exit $ac_status); }; }; then
38560 ac_cv_lib_crypt_crypt=yes
38562 echo "$as_me: failed program was:" >&5
38563 sed 's/^/| /' conftest.$ac_ext >&5
38565 ac_cv_lib_crypt_crypt=no
38567 rm -f conftest.err conftest.$ac_objext \
38568 conftest$ac_exeext conftest.$ac_ext
38569 LIBS=$ac_check_lib_save_LIBS
38571 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
38572 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
38573 if test $ac_cv_lib_crypt_crypt = yes; then
38574 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
38585 if test $have_crypt = yes ; then
38587 cat >>confdefs.h <<\_ACEOF
38588 #define HAVE_CRYPT 1
38592 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
38593 echo "$as_me: WARNING: could not find crypt" >&2;}
38594 if test $ol_enable_crypt = yes ; then
38595 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
38596 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
38597 { (exit 1); exit 1; }; }
38600 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
38601 echo "$as_me: WARNING: disabling crypt support" >&2;}
38606 if test $ol_enable_proctitle != no ; then
38607 echo "$as_me:$LINENO: checking for setproctitle" >&5
38608 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
38609 if test "${ac_cv_func_setproctitle+set}" = set; then
38610 echo $ECHO_N "(cached) $ECHO_C" >&6
38612 cat >conftest.$ac_ext <<_ACEOF
38615 cat confdefs.h >>conftest.$ac_ext
38616 cat >>conftest.$ac_ext <<_ACEOF
38617 /* end confdefs.h. */
38618 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
38619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38620 #define setproctitle innocuous_setproctitle
38622 /* System header to define __stub macros and hopefully few prototypes,
38623 which can conflict with char setproctitle (); below.
38624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38625 <limits.h> exists even on freestanding compilers. */
38628 # include <limits.h>
38630 # include <assert.h>
38633 #undef setproctitle
38635 /* Override any gcc2 internal prototype to avoid an error. */
38640 /* We use char because int might match the return type of a gcc2
38641 builtin and then its argument prototype would still apply. */
38642 char setproctitle ();
38643 /* The GNU C library defines this for functions which it implements
38644 to always fail with ENOSYS. Some functions are actually named
38645 something starting with __ and the normal name is an alias. */
38646 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
38649 char (*f) () = setproctitle;
38658 return f != setproctitle;
38663 rm -f conftest.$ac_objext conftest$ac_exeext
38664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38665 (eval $ac_link) 2>conftest.er1
38667 grep -v '^ *+' conftest.er1 >conftest.err
38669 cat conftest.err >&5
38670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671 (exit $ac_status); } &&
38672 { ac_try='test -z "$ac_c_werror_flag"
38673 || test ! -s conftest.err'
38674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38675 (eval $ac_try) 2>&5
38677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38678 (exit $ac_status); }; } &&
38679 { ac_try='test -s conftest$ac_exeext'
38680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38681 (eval $ac_try) 2>&5
38683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38684 (exit $ac_status); }; }; then
38685 ac_cv_func_setproctitle=yes
38687 echo "$as_me: failed program was:" >&5
38688 sed 's/^/| /' conftest.$ac_ext >&5
38690 ac_cv_func_setproctitle=no
38692 rm -f conftest.err conftest.$ac_objext \
38693 conftest$ac_exeext conftest.$ac_ext
38695 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
38696 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
38697 if test $ac_cv_func_setproctitle = yes; then
38698 have_setproctitle=yes
38701 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
38702 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
38703 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
38704 echo $ECHO_N "(cached) $ECHO_C" >&6
38706 ac_check_lib_save_LIBS=$LIBS
38707 LIBS="-lutil $LIBS"
38708 cat >conftest.$ac_ext <<_ACEOF
38711 cat confdefs.h >>conftest.$ac_ext
38712 cat >>conftest.$ac_ext <<_ACEOF
38713 /* end confdefs.h. */
38715 /* Override any gcc2 internal prototype to avoid an error. */
38719 /* We use char because int might match the return type of a gcc2
38720 builtin and then its argument prototype would still apply. */
38721 char setproctitle ();
38730 rm -f conftest.$ac_objext conftest$ac_exeext
38731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38732 (eval $ac_link) 2>conftest.er1
38734 grep -v '^ *+' conftest.er1 >conftest.err
38736 cat conftest.err >&5
38737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38738 (exit $ac_status); } &&
38739 { ac_try='test -z "$ac_c_werror_flag"
38740 || test ! -s conftest.err'
38741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38742 (eval $ac_try) 2>&5
38744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38745 (exit $ac_status); }; } &&
38746 { ac_try='test -s conftest$ac_exeext'
38747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38748 (eval $ac_try) 2>&5
38750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38751 (exit $ac_status); }; }; then
38752 ac_cv_lib_util_setproctitle=yes
38754 echo "$as_me: failed program was:" >&5
38755 sed 's/^/| /' conftest.$ac_ext >&5
38757 ac_cv_lib_util_setproctitle=no
38759 rm -f conftest.err conftest.$ac_objext \
38760 conftest$ac_exeext conftest.$ac_ext
38761 LIBS=$ac_check_lib_save_LIBS
38763 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
38764 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
38765 if test $ac_cv_lib_util_setproctitle = yes; then
38766 have_setproctitle=yes
38767 LUTIL_LIBS="$LUTIL_LIBS -lutil"
38769 have_setproctitle=no
38771 "setproctitle.$ac_objext" | \
38772 *" setproctitle.$ac_objext" | \
38773 "setproctitle.$ac_objext "* | \
38774 *" setproctitle.$ac_objext "* ) ;;
38775 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
38778 LIBSRCS="$LIBSRCS setproctitle.c"
38784 if test $have_setproctitle = yes ; then
38786 cat >>confdefs.h <<\_ACEOF
38787 #define HAVE_SETPROCTITLE 1
38793 if test $ol_enable_slp != no ; then
38795 for ac_header in slp.h
38797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38799 echo "$as_me:$LINENO: checking for $ac_header" >&5
38800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38802 echo $ECHO_N "(cached) $ECHO_C" >&6
38804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38807 # Is the header compilable?
38808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38810 cat >conftest.$ac_ext <<_ACEOF
38813 cat confdefs.h >>conftest.$ac_ext
38814 cat >>conftest.$ac_ext <<_ACEOF
38815 /* end confdefs.h. */
38816 $ac_includes_default
38817 #include <$ac_header>
38819 rm -f conftest.$ac_objext
38820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38821 (eval $ac_compile) 2>conftest.er1
38823 grep -v '^ *+' conftest.er1 >conftest.err
38825 cat conftest.err >&5
38826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827 (exit $ac_status); } &&
38828 { ac_try='test -z "$ac_c_werror_flag"
38829 || test ! -s conftest.err'
38830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38831 (eval $ac_try) 2>&5
38833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834 (exit $ac_status); }; } &&
38835 { ac_try='test -s conftest.$ac_objext'
38836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38837 (eval $ac_try) 2>&5
38839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38840 (exit $ac_status); }; }; then
38841 ac_header_compiler=yes
38843 echo "$as_me: failed program was:" >&5
38844 sed 's/^/| /' conftest.$ac_ext >&5
38846 ac_header_compiler=no
38848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38850 echo "${ECHO_T}$ac_header_compiler" >&6
38852 # Is the header present?
38853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38855 cat >conftest.$ac_ext <<_ACEOF
38858 cat confdefs.h >>conftest.$ac_ext
38859 cat >>conftest.$ac_ext <<_ACEOF
38860 /* end confdefs.h. */
38861 #include <$ac_header>
38863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38866 grep -v '^ *+' conftest.er1 >conftest.err
38868 cat conftest.err >&5
38869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38870 (exit $ac_status); } >/dev/null; then
38871 if test -s conftest.err; then
38872 ac_cpp_err=$ac_c_preproc_warn_flag
38873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38880 if test -z "$ac_cpp_err"; then
38881 ac_header_preproc=yes
38883 echo "$as_me: failed program was:" >&5
38884 sed 's/^/| /' conftest.$ac_ext >&5
38886 ac_header_preproc=no
38888 rm -f conftest.err conftest.$ac_ext
38889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38890 echo "${ECHO_T}$ac_header_preproc" >&6
38892 # So? What about this header?
38893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38899 ac_header_preproc=yes
38902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38916 ## --------------------------------------------- ##
38917 ## Report this to <http://www.openldap.org/its/> ##
38918 ## --------------------------------------------- ##
38921 sed "s/^/$as_me: WARNING: /" >&2
38924 echo "$as_me:$LINENO: checking for $ac_header" >&5
38925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38927 echo $ECHO_N "(cached) $ECHO_C" >&6
38929 eval "$as_ac_Header=\$ac_header_preproc"
38931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38936 cat >>confdefs.h <<_ACEOF
38937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38945 if test $ac_cv_header_slp_h = yes ; then
38946 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38947 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38948 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38949 echo $ECHO_N "(cached) $ECHO_C" >&6
38951 ac_check_lib_save_LIBS=$LIBS
38953 cat >conftest.$ac_ext <<_ACEOF
38956 cat confdefs.h >>conftest.$ac_ext
38957 cat >>conftest.$ac_ext <<_ACEOF
38958 /* end confdefs.h. */
38960 /* Override any gcc2 internal prototype to avoid an error. */
38964 /* We use char because int might match the return type of a gcc2
38965 builtin and then its argument prototype would still apply. */
38975 rm -f conftest.$ac_objext conftest$ac_exeext
38976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38977 (eval $ac_link) 2>conftest.er1
38979 grep -v '^ *+' conftest.er1 >conftest.err
38981 cat conftest.err >&5
38982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38983 (exit $ac_status); } &&
38984 { ac_try='test -z "$ac_c_werror_flag"
38985 || test ! -s conftest.err'
38986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38987 (eval $ac_try) 2>&5
38989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38990 (exit $ac_status); }; } &&
38991 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
38997 ac_cv_lib_slp_SLPOpen=yes
38999 echo "$as_me: failed program was:" >&5
39000 sed 's/^/| /' conftest.$ac_ext >&5
39002 ac_cv_lib_slp_SLPOpen=no
39004 rm -f conftest.err conftest.$ac_objext \
39005 conftest$ac_exeext conftest.$ac_ext
39006 LIBS=$ac_check_lib_save_LIBS
39008 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
39009 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
39010 if test $ac_cv_lib_slp_SLPOpen = yes; then
39016 if test $have_slp = yes ; then
39018 cat >>confdefs.h <<\_ACEOF
39022 SLAPD_SLP_LIBS=-lslp
39025 elif test $ol_enable_slp = yes ; then
39026 { { echo "$as_me:$LINENO: error: SLP not found" >&5
39027 echo "$as_me: error: SLP not found" >&2;}
39028 { (exit 1); exit 1; }; }
39033 echo "$as_me:$LINENO: checking for mode_t" >&5
39034 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
39035 if test "${ac_cv_type_mode_t+set}" = set; then
39036 echo $ECHO_N "(cached) $ECHO_C" >&6
39038 cat >conftest.$ac_ext <<_ACEOF
39041 cat confdefs.h >>conftest.$ac_ext
39042 cat >>conftest.$ac_ext <<_ACEOF
39043 /* end confdefs.h. */
39044 $ac_includes_default
39050 if (sizeof (mode_t))
39056 rm -f conftest.$ac_objext
39057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39058 (eval $ac_compile) 2>conftest.er1
39060 grep -v '^ *+' conftest.er1 >conftest.err
39062 cat conftest.err >&5
39063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39064 (exit $ac_status); } &&
39065 { ac_try='test -z "$ac_c_werror_flag"
39066 || test ! -s conftest.err'
39067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39068 (eval $ac_try) 2>&5
39070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39071 (exit $ac_status); }; } &&
39072 { ac_try='test -s conftest.$ac_objext'
39073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39074 (eval $ac_try) 2>&5
39076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39077 (exit $ac_status); }; }; then
39078 ac_cv_type_mode_t=yes
39080 echo "$as_me: failed program was:" >&5
39081 sed 's/^/| /' conftest.$ac_ext >&5
39083 ac_cv_type_mode_t=no
39085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39087 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
39088 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
39089 if test $ac_cv_type_mode_t = yes; then
39093 cat >>confdefs.h <<_ACEOF
39099 echo "$as_me:$LINENO: checking for off_t" >&5
39100 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
39101 if test "${ac_cv_type_off_t+set}" = set; then
39102 echo $ECHO_N "(cached) $ECHO_C" >&6
39104 cat >conftest.$ac_ext <<_ACEOF
39107 cat confdefs.h >>conftest.$ac_ext
39108 cat >>conftest.$ac_ext <<_ACEOF
39109 /* end confdefs.h. */
39110 $ac_includes_default
39116 if (sizeof (off_t))
39122 rm -f conftest.$ac_objext
39123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39124 (eval $ac_compile) 2>conftest.er1
39126 grep -v '^ *+' conftest.er1 >conftest.err
39128 cat conftest.err >&5
39129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130 (exit $ac_status); } &&
39131 { ac_try='test -z "$ac_c_werror_flag"
39132 || test ! -s conftest.err'
39133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39134 (eval $ac_try) 2>&5
39136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39137 (exit $ac_status); }; } &&
39138 { ac_try='test -s conftest.$ac_objext'
39139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39140 (eval $ac_try) 2>&5
39142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39143 (exit $ac_status); }; }; then
39144 ac_cv_type_off_t=yes
39146 echo "$as_me: failed program was:" >&5
39147 sed 's/^/| /' conftest.$ac_ext >&5
39149 ac_cv_type_off_t=no
39151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39153 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
39154 echo "${ECHO_T}$ac_cv_type_off_t" >&6
39155 if test $ac_cv_type_off_t = yes; then
39159 cat >>confdefs.h <<_ACEOF
39165 echo "$as_me:$LINENO: checking for pid_t" >&5
39166 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
39167 if test "${ac_cv_type_pid_t+set}" = set; then
39168 echo $ECHO_N "(cached) $ECHO_C" >&6
39170 cat >conftest.$ac_ext <<_ACEOF
39173 cat confdefs.h >>conftest.$ac_ext
39174 cat >>conftest.$ac_ext <<_ACEOF
39175 /* end confdefs.h. */
39176 $ac_includes_default
39182 if (sizeof (pid_t))
39188 rm -f conftest.$ac_objext
39189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39190 (eval $ac_compile) 2>conftest.er1
39192 grep -v '^ *+' conftest.er1 >conftest.err
39194 cat conftest.err >&5
39195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39196 (exit $ac_status); } &&
39197 { ac_try='test -z "$ac_c_werror_flag"
39198 || test ! -s conftest.err'
39199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39200 (eval $ac_try) 2>&5
39202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39203 (exit $ac_status); }; } &&
39204 { ac_try='test -s conftest.$ac_objext'
39205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39206 (eval $ac_try) 2>&5
39208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39209 (exit $ac_status); }; }; then
39210 ac_cv_type_pid_t=yes
39212 echo "$as_me: failed program was:" >&5
39213 sed 's/^/| /' conftest.$ac_ext >&5
39215 ac_cv_type_pid_t=no
39217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39219 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
39220 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
39221 if test $ac_cv_type_pid_t = yes; then
39225 cat >>confdefs.h <<_ACEOF
39231 echo "$as_me:$LINENO: checking for ssize_t" >&5
39232 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
39233 if test "${ac_cv_type_ssize_t+set}" = set; then
39234 echo $ECHO_N "(cached) $ECHO_C" >&6
39236 cat >conftest.$ac_ext <<_ACEOF
39239 cat confdefs.h >>conftest.$ac_ext
39240 cat >>conftest.$ac_ext <<_ACEOF
39241 /* end confdefs.h. */
39242 $ac_includes_default
39248 if (sizeof (ssize_t))
39254 rm -f conftest.$ac_objext
39255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39256 (eval $ac_compile) 2>conftest.er1
39258 grep -v '^ *+' conftest.er1 >conftest.err
39260 cat conftest.err >&5
39261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262 (exit $ac_status); } &&
39263 { ac_try='test -z "$ac_c_werror_flag"
39264 || test ! -s conftest.err'
39265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39266 (eval $ac_try) 2>&5
39268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39269 (exit $ac_status); }; } &&
39270 { ac_try='test -s conftest.$ac_objext'
39271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39272 (eval $ac_try) 2>&5
39274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39275 (exit $ac_status); }; }; then
39276 ac_cv_type_ssize_t=yes
39278 echo "$as_me: failed program was:" >&5
39279 sed 's/^/| /' conftest.$ac_ext >&5
39281 ac_cv_type_ssize_t=no
39283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39285 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39286 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39287 if test $ac_cv_type_ssize_t = yes; then
39291 cat >>confdefs.h <<_ACEOF
39292 #define ssize_t signed int
39297 echo "$as_me:$LINENO: checking for caddr_t" >&5
39298 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
39299 if test "${ac_cv_type_caddr_t+set}" = set; then
39300 echo $ECHO_N "(cached) $ECHO_C" >&6
39302 cat >conftest.$ac_ext <<_ACEOF
39305 cat confdefs.h >>conftest.$ac_ext
39306 cat >>conftest.$ac_ext <<_ACEOF
39307 /* end confdefs.h. */
39308 $ac_includes_default
39314 if (sizeof (caddr_t))
39320 rm -f conftest.$ac_objext
39321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39322 (eval $ac_compile) 2>conftest.er1
39324 grep -v '^ *+' conftest.er1 >conftest.err
39326 cat conftest.err >&5
39327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39328 (exit $ac_status); } &&
39329 { ac_try='test -z "$ac_c_werror_flag"
39330 || test ! -s conftest.err'
39331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39332 (eval $ac_try) 2>&5
39334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39335 (exit $ac_status); }; } &&
39336 { ac_try='test -s conftest.$ac_objext'
39337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39338 (eval $ac_try) 2>&5
39340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39341 (exit $ac_status); }; }; then
39342 ac_cv_type_caddr_t=yes
39344 echo "$as_me: failed program was:" >&5
39345 sed 's/^/| /' conftest.$ac_ext >&5
39347 ac_cv_type_caddr_t=no
39349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39351 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39352 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39353 if test $ac_cv_type_caddr_t = yes; then
39357 cat >>confdefs.h <<_ACEOF
39358 #define caddr_t char *
39363 echo "$as_me:$LINENO: checking for size_t" >&5
39364 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39365 if test "${ac_cv_type_size_t+set}" = set; then
39366 echo $ECHO_N "(cached) $ECHO_C" >&6
39368 cat >conftest.$ac_ext <<_ACEOF
39371 cat confdefs.h >>conftest.$ac_ext
39372 cat >>conftest.$ac_ext <<_ACEOF
39373 /* end confdefs.h. */
39374 $ac_includes_default
39380 if (sizeof (size_t))
39386 rm -f conftest.$ac_objext
39387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39388 (eval $ac_compile) 2>conftest.er1
39390 grep -v '^ *+' conftest.er1 >conftest.err
39392 cat conftest.err >&5
39393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39394 (exit $ac_status); } &&
39395 { ac_try='test -z "$ac_c_werror_flag"
39396 || test ! -s conftest.err'
39397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39398 (eval $ac_try) 2>&5
39400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39401 (exit $ac_status); }; } &&
39402 { ac_try='test -s conftest.$ac_objext'
39403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39404 (eval $ac_try) 2>&5
39406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407 (exit $ac_status); }; }; then
39408 ac_cv_type_size_t=yes
39410 echo "$as_me: failed program was:" >&5
39411 sed 's/^/| /' conftest.$ac_ext >&5
39413 ac_cv_type_size_t=no
39415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39417 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39418 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39419 if test $ac_cv_type_size_t = yes; then
39423 cat >>confdefs.h <<_ACEOF
39424 #define size_t unsigned
39430 echo "$as_me:$LINENO: checking for long long" >&5
39431 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39432 if test "${ac_cv_type_long_long+set}" = set; then
39433 echo $ECHO_N "(cached) $ECHO_C" >&6
39435 cat >conftest.$ac_ext <<_ACEOF
39438 cat confdefs.h >>conftest.$ac_ext
39439 cat >>conftest.$ac_ext <<_ACEOF
39440 /* end confdefs.h. */
39441 $ac_includes_default
39445 if ((long long *) 0)
39447 if (sizeof (long long))
39453 rm -f conftest.$ac_objext
39454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39455 (eval $ac_compile) 2>conftest.er1
39457 grep -v '^ *+' conftest.er1 >conftest.err
39459 cat conftest.err >&5
39460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39461 (exit $ac_status); } &&
39462 { ac_try='test -z "$ac_c_werror_flag"
39463 || test ! -s conftest.err'
39464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39465 (eval $ac_try) 2>&5
39467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39468 (exit $ac_status); }; } &&
39469 { ac_try='test -s conftest.$ac_objext'
39470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39471 (eval $ac_try) 2>&5
39473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39474 (exit $ac_status); }; }; then
39475 ac_cv_type_long_long=yes
39477 echo "$as_me: failed program was:" >&5
39478 sed 's/^/| /' conftest.$ac_ext >&5
39480 ac_cv_type_long_long=no
39482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39484 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39485 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39486 if test $ac_cv_type_long_long = yes; then
39488 cat >>confdefs.h <<_ACEOF
39489 #define HAVE_LONG_LONG 1
39495 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39496 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39497 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39498 echo $ECHO_N "(cached) $ECHO_C" >&6
39500 cat >conftest.$ac_ext <<_ACEOF
39503 cat confdefs.h >>conftest.$ac_ext
39504 cat >>conftest.$ac_ext <<_ACEOF
39505 /* end confdefs.h. */
39506 $ac_includes_default
39510 if ((ptrdiff_t *) 0)
39512 if (sizeof (ptrdiff_t))
39518 rm -f conftest.$ac_objext
39519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39520 (eval $ac_compile) 2>conftest.er1
39522 grep -v '^ *+' conftest.er1 >conftest.err
39524 cat conftest.err >&5
39525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39526 (exit $ac_status); } &&
39527 { ac_try='test -z "$ac_c_werror_flag"
39528 || test ! -s conftest.err'
39529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39530 (eval $ac_try) 2>&5
39532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39533 (exit $ac_status); }; } &&
39534 { ac_try='test -s conftest.$ac_objext'
39535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39536 (eval $ac_try) 2>&5
39538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39539 (exit $ac_status); }; }; then
39540 ac_cv_type_ptrdiff_t=yes
39542 echo "$as_me: failed program was:" >&5
39543 sed 's/^/| /' conftest.$ac_ext >&5
39545 ac_cv_type_ptrdiff_t=no
39547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39549 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39550 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39551 if test $ac_cv_type_ptrdiff_t = yes; then
39553 cat >>confdefs.h <<_ACEOF
39554 #define HAVE_PTRDIFF_T 1
39561 echo "$as_me:$LINENO: checking for socklen_t" >&5
39562 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39563 if test "${ac_cv_type_socklen_t+set}" = set; then
39564 echo $ECHO_N "(cached) $ECHO_C" >&6
39566 cat >conftest.$ac_ext <<_ACEOF
39569 cat confdefs.h >>conftest.$ac_ext
39570 cat >>conftest.$ac_ext <<_ACEOF
39571 /* end confdefs.h. */
39572 $ac_includes_default
39573 #ifdef HAVE_SYS_SOCKET_H
39574 #include <sys/socket.h>
39581 if ((socklen_t *) 0)
39583 if (sizeof (socklen_t))
39589 rm -f conftest.$ac_objext
39590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39591 (eval $ac_compile) 2>conftest.er1
39593 grep -v '^ *+' conftest.er1 >conftest.err
39595 cat conftest.err >&5
39596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39597 (exit $ac_status); } &&
39598 { ac_try='test -z "$ac_c_werror_flag"
39599 || test ! -s conftest.err'
39600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39601 (eval $ac_try) 2>&5
39603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39604 (exit $ac_status); }; } &&
39605 { ac_try='test -s conftest.$ac_objext'
39606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39607 (eval $ac_try) 2>&5
39609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39610 (exit $ac_status); }; }; then
39611 ac_cv_type_socklen_t=yes
39613 echo "$as_me: failed program was:" >&5
39614 sed 's/^/| /' conftest.$ac_ext >&5
39616 ac_cv_type_socklen_t=no
39618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39620 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39621 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39622 if test $ac_cv_type_socklen_t = yes; then
39626 cat >>confdefs.h <<_ACEOF
39627 #define socklen_t int
39633 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39634 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39635 if test "${ac_cv_type_signal+set}" = set; then
39636 echo $ECHO_N "(cached) $ECHO_C" >&6
39638 cat >conftest.$ac_ext <<_ACEOF
39641 cat confdefs.h >>conftest.$ac_ext
39642 cat >>conftest.$ac_ext <<_ACEOF
39643 /* end confdefs.h. */
39644 #include <sys/types.h>
39645 #include <signal.h>
39650 extern "C" void (*signal (int, void (*)(int)))(int);
39652 void (*signal ()) ();
39663 rm -f conftest.$ac_objext
39664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39665 (eval $ac_compile) 2>conftest.er1
39667 grep -v '^ *+' conftest.er1 >conftest.err
39669 cat conftest.err >&5
39670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39671 (exit $ac_status); } &&
39672 { ac_try='test -z "$ac_c_werror_flag"
39673 || test ! -s conftest.err'
39674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39675 (eval $ac_try) 2>&5
39677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39678 (exit $ac_status); }; } &&
39679 { ac_try='test -s conftest.$ac_objext'
39680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39681 (eval $ac_try) 2>&5
39683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39684 (exit $ac_status); }; }; then
39685 ac_cv_type_signal=void
39687 echo "$as_me: failed program was:" >&5
39688 sed 's/^/| /' conftest.$ac_ext >&5
39690 ac_cv_type_signal=int
39692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39694 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39695 echo "${ECHO_T}$ac_cv_type_signal" >&6
39697 cat >>confdefs.h <<_ACEOF
39698 #define RETSIGTYPE $ac_cv_type_signal
39703 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39704 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39705 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39706 echo $ECHO_N "(cached) $ECHO_C" >&6
39708 cat >conftest.$ac_ext <<_ACEOF
39711 cat confdefs.h >>conftest.$ac_ext
39712 cat >>conftest.$ac_ext <<_ACEOF
39713 /* end confdefs.h. */
39714 $ac_includes_default
39715 #include <signal.h>
39721 if ((sig_atomic_t *) 0)
39723 if (sizeof (sig_atomic_t))
39729 rm -f conftest.$ac_objext
39730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39731 (eval $ac_compile) 2>conftest.er1
39733 grep -v '^ *+' conftest.er1 >conftest.err
39735 cat conftest.err >&5
39736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737 (exit $ac_status); } &&
39738 { ac_try='test -z "$ac_c_werror_flag"
39739 || test ! -s conftest.err'
39740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39741 (eval $ac_try) 2>&5
39743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39744 (exit $ac_status); }; } &&
39745 { ac_try='test -s conftest.$ac_objext'
39746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39747 (eval $ac_try) 2>&5
39749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750 (exit $ac_status); }; }; then
39751 ac_cv_type_sig_atomic_t=yes
39753 echo "$as_me: failed program was:" >&5
39754 sed 's/^/| /' conftest.$ac_ext >&5
39756 ac_cv_type_sig_atomic_t=no
39758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39760 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39761 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39762 if test $ac_cv_type_sig_atomic_t = yes; then
39766 cat >>confdefs.h <<_ACEOF
39767 #define sig_atomic_t int
39773 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39774 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39775 if test "${ac_cv_type_uid_t+set}" = set; then
39776 echo $ECHO_N "(cached) $ECHO_C" >&6
39778 cat >conftest.$ac_ext <<_ACEOF
39781 cat confdefs.h >>conftest.$ac_ext
39782 cat >>conftest.$ac_ext <<_ACEOF
39783 /* end confdefs.h. */
39784 #include <sys/types.h>
39787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39788 $EGREP "uid_t" >/dev/null 2>&1; then
39789 ac_cv_type_uid_t=yes
39791 ac_cv_type_uid_t=no
39796 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39797 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39798 if test $ac_cv_type_uid_t = no; then
39800 cat >>confdefs.h <<\_ACEOF
39805 cat >>confdefs.h <<\_ACEOF
39812 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39813 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39814 if test "${ac_cv_header_time+set}" = set; then
39815 echo $ECHO_N "(cached) $ECHO_C" >&6
39817 cat >conftest.$ac_ext <<_ACEOF
39820 cat confdefs.h >>conftest.$ac_ext
39821 cat >>conftest.$ac_ext <<_ACEOF
39822 /* end confdefs.h. */
39823 #include <sys/types.h>
39824 #include <sys/time.h>
39830 if ((struct tm *) 0)
39836 rm -f conftest.$ac_objext
39837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39838 (eval $ac_compile) 2>conftest.er1
39840 grep -v '^ *+' conftest.er1 >conftest.err
39842 cat conftest.err >&5
39843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39844 (exit $ac_status); } &&
39845 { ac_try='test -z "$ac_c_werror_flag"
39846 || test ! -s conftest.err'
39847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39848 (eval $ac_try) 2>&5
39850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851 (exit $ac_status); }; } &&
39852 { ac_try='test -s conftest.$ac_objext'
39853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39854 (eval $ac_try) 2>&5
39856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39857 (exit $ac_status); }; }; then
39858 ac_cv_header_time=yes
39860 echo "$as_me: failed program was:" >&5
39861 sed 's/^/| /' conftest.$ac_ext >&5
39863 ac_cv_header_time=no
39865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39867 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39868 echo "${ECHO_T}$ac_cv_header_time" >&6
39869 if test $ac_cv_header_time = yes; then
39871 cat >>confdefs.h <<\_ACEOF
39872 #define TIME_WITH_SYS_TIME 1
39877 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39878 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39879 if test "${ac_cv_struct_tm+set}" = set; then
39880 echo $ECHO_N "(cached) $ECHO_C" >&6
39882 cat >conftest.$ac_ext <<_ACEOF
39885 cat confdefs.h >>conftest.$ac_ext
39886 cat >>conftest.$ac_ext <<_ACEOF
39887 /* end confdefs.h. */
39888 #include <sys/types.h>
39894 struct tm *tp; tp->tm_sec;
39899 rm -f conftest.$ac_objext
39900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39901 (eval $ac_compile) 2>conftest.er1
39903 grep -v '^ *+' conftest.er1 >conftest.err
39905 cat conftest.err >&5
39906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907 (exit $ac_status); } &&
39908 { ac_try='test -z "$ac_c_werror_flag"
39909 || test ! -s conftest.err'
39910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39911 (eval $ac_try) 2>&5
39913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39914 (exit $ac_status); }; } &&
39915 { ac_try='test -s conftest.$ac_objext'
39916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39917 (eval $ac_try) 2>&5
39919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920 (exit $ac_status); }; }; then
39921 ac_cv_struct_tm=time.h
39923 echo "$as_me: failed program was:" >&5
39924 sed 's/^/| /' conftest.$ac_ext >&5
39926 ac_cv_struct_tm=sys/time.h
39928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39930 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39931 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39932 if test $ac_cv_struct_tm = sys/time.h; then
39934 cat >>confdefs.h <<\_ACEOF
39935 #define TM_IN_SYS_TIME 1
39940 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39941 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39942 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39943 echo $ECHO_N "(cached) $ECHO_C" >&6
39945 cat >conftest.$ac_ext <<_ACEOF
39948 cat confdefs.h >>conftest.$ac_ext
39949 cat >>conftest.$ac_ext <<_ACEOF
39950 /* end confdefs.h. */
39951 $ac_includes_default
39955 static struct stat ac_aggr;
39956 if (ac_aggr.st_blksize)
39962 rm -f conftest.$ac_objext
39963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39964 (eval $ac_compile) 2>conftest.er1
39966 grep -v '^ *+' conftest.er1 >conftest.err
39968 cat conftest.err >&5
39969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39970 (exit $ac_status); } &&
39971 { ac_try='test -z "$ac_c_werror_flag"
39972 || test ! -s conftest.err'
39973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39974 (eval $ac_try) 2>&5
39976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39977 (exit $ac_status); }; } &&
39978 { ac_try='test -s conftest.$ac_objext'
39979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39980 (eval $ac_try) 2>&5
39982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39983 (exit $ac_status); }; }; then
39984 ac_cv_member_struct_stat_st_blksize=yes
39986 echo "$as_me: failed program was:" >&5
39987 sed 's/^/| /' conftest.$ac_ext >&5
39989 cat >conftest.$ac_ext <<_ACEOF
39992 cat confdefs.h >>conftest.$ac_ext
39993 cat >>conftest.$ac_ext <<_ACEOF
39994 /* end confdefs.h. */
39995 $ac_includes_default
39999 static struct stat ac_aggr;
40000 if (sizeof ac_aggr.st_blksize)
40006 rm -f conftest.$ac_objext
40007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40008 (eval $ac_compile) 2>conftest.er1
40010 grep -v '^ *+' conftest.er1 >conftest.err
40012 cat conftest.err >&5
40013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014 (exit $ac_status); } &&
40015 { ac_try='test -z "$ac_c_werror_flag"
40016 || test ! -s conftest.err'
40017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40018 (eval $ac_try) 2>&5
40020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40021 (exit $ac_status); }; } &&
40022 { ac_try='test -s conftest.$ac_objext'
40023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40024 (eval $ac_try) 2>&5
40026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40027 (exit $ac_status); }; }; then
40028 ac_cv_member_struct_stat_st_blksize=yes
40030 echo "$as_me: failed program was:" >&5
40031 sed 's/^/| /' conftest.$ac_ext >&5
40033 ac_cv_member_struct_stat_st_blksize=no
40035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40039 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
40040 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
40041 if test $ac_cv_member_struct_stat_st_blksize = yes; then
40043 cat >>confdefs.h <<_ACEOF
40044 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
40050 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
40051 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
40052 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
40053 echo $ECHO_N "(cached) $ECHO_C" >&6
40055 cat >conftest.$ac_ext <<_ACEOF
40058 cat confdefs.h >>conftest.$ac_ext
40059 cat >>conftest.$ac_ext <<_ACEOF
40060 /* end confdefs.h. */
40061 $ac_includes_default
40067 static struct passwd ac_aggr;
40068 if (ac_aggr.pw_gecos)
40074 rm -f conftest.$ac_objext
40075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40076 (eval $ac_compile) 2>conftest.er1
40078 grep -v '^ *+' conftest.er1 >conftest.err
40080 cat conftest.err >&5
40081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40082 (exit $ac_status); } &&
40083 { ac_try='test -z "$ac_c_werror_flag"
40084 || test ! -s conftest.err'
40085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40086 (eval $ac_try) 2>&5
40088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40089 (exit $ac_status); }; } &&
40090 { ac_try='test -s conftest.$ac_objext'
40091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40092 (eval $ac_try) 2>&5
40094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40095 (exit $ac_status); }; }; then
40096 ac_cv_member_struct_passwd_pw_gecos=yes
40098 echo "$as_me: failed program was:" >&5
40099 sed 's/^/| /' conftest.$ac_ext >&5
40101 cat >conftest.$ac_ext <<_ACEOF
40104 cat confdefs.h >>conftest.$ac_ext
40105 cat >>conftest.$ac_ext <<_ACEOF
40106 /* end confdefs.h. */
40107 $ac_includes_default
40113 static struct passwd ac_aggr;
40114 if (sizeof ac_aggr.pw_gecos)
40120 rm -f conftest.$ac_objext
40121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40122 (eval $ac_compile) 2>conftest.er1
40124 grep -v '^ *+' conftest.er1 >conftest.err
40126 cat conftest.err >&5
40127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40128 (exit $ac_status); } &&
40129 { ac_try='test -z "$ac_c_werror_flag"
40130 || test ! -s conftest.err'
40131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40132 (eval $ac_try) 2>&5
40134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40135 (exit $ac_status); }; } &&
40136 { ac_try='test -s conftest.$ac_objext'
40137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40138 (eval $ac_try) 2>&5
40140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40141 (exit $ac_status); }; }; then
40142 ac_cv_member_struct_passwd_pw_gecos=yes
40144 echo "$as_me: failed program was:" >&5
40145 sed 's/^/| /' conftest.$ac_ext >&5
40147 ac_cv_member_struct_passwd_pw_gecos=no
40149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40153 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
40154 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
40155 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
40157 cat >>confdefs.h <<_ACEOF
40158 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
40164 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
40165 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
40166 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
40167 echo $ECHO_N "(cached) $ECHO_C" >&6
40169 cat >conftest.$ac_ext <<_ACEOF
40172 cat confdefs.h >>conftest.$ac_ext
40173 cat >>conftest.$ac_ext <<_ACEOF
40174 /* end confdefs.h. */
40175 $ac_includes_default
40181 static struct passwd ac_aggr;
40182 if (ac_aggr.pw_passwd)
40188 rm -f conftest.$ac_objext
40189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40190 (eval $ac_compile) 2>conftest.er1
40192 grep -v '^ *+' conftest.er1 >conftest.err
40194 cat conftest.err >&5
40195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40196 (exit $ac_status); } &&
40197 { ac_try='test -z "$ac_c_werror_flag"
40198 || test ! -s conftest.err'
40199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40200 (eval $ac_try) 2>&5
40202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40203 (exit $ac_status); }; } &&
40204 { ac_try='test -s conftest.$ac_objext'
40205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40206 (eval $ac_try) 2>&5
40208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209 (exit $ac_status); }; }; then
40210 ac_cv_member_struct_passwd_pw_passwd=yes
40212 echo "$as_me: failed program was:" >&5
40213 sed 's/^/| /' conftest.$ac_ext >&5
40215 cat >conftest.$ac_ext <<_ACEOF
40218 cat confdefs.h >>conftest.$ac_ext
40219 cat >>conftest.$ac_ext <<_ACEOF
40220 /* end confdefs.h. */
40221 $ac_includes_default
40227 static struct passwd ac_aggr;
40228 if (sizeof ac_aggr.pw_passwd)
40234 rm -f conftest.$ac_objext
40235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40236 (eval $ac_compile) 2>conftest.er1
40238 grep -v '^ *+' conftest.er1 >conftest.err
40240 cat conftest.err >&5
40241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40242 (exit $ac_status); } &&
40243 { ac_try='test -z "$ac_c_werror_flag"
40244 || test ! -s conftest.err'
40245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40246 (eval $ac_try) 2>&5
40248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40249 (exit $ac_status); }; } &&
40250 { ac_try='test -s conftest.$ac_objext'
40251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40252 (eval $ac_try) 2>&5
40254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40255 (exit $ac_status); }; }; then
40256 ac_cv_member_struct_passwd_pw_passwd=yes
40258 echo "$as_me: failed program was:" >&5
40259 sed 's/^/| /' conftest.$ac_ext >&5
40261 ac_cv_member_struct_passwd_pw_passwd=no
40263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40267 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
40268 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
40269 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
40271 cat >>confdefs.h <<_ACEOF
40272 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
40279 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
40280 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
40281 if test "${ol_cv_c_upper_lower+set}" = set; then
40282 echo $ECHO_N "(cached) $ECHO_C" >&6
40285 if test "$cross_compiling" = yes; then
40286 ol_cv_c_upper_lower=safe
40288 cat >conftest.$ac_ext <<_ACEOF
40291 cat confdefs.h >>conftest.$ac_ext
40292 cat >>conftest.$ac_ext <<_ACEOF
40293 /* end confdefs.h. */
40298 if ('C' == toupper('C'))
40304 rm -f conftest$ac_exeext
40305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40306 (eval $ac_link) 2>&5
40308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40311 (eval $ac_try) 2>&5
40313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40314 (exit $ac_status); }; }; then
40315 ol_cv_c_upper_lower=no
40317 echo "$as_me: program exited with status $ac_status" >&5
40318 echo "$as_me: failed program was:" >&5
40319 sed 's/^/| /' conftest.$ac_ext >&5
40321 ( exit $ac_status )
40322 ol_cv_c_upper_lower=yes
40324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40327 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40328 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40329 if test $ol_cv_c_upper_lower != no ; then
40331 cat >>confdefs.h <<\_ACEOF
40332 #define C_UPPER_LOWER 1
40337 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40338 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40339 if test "${ac_cv_c_const+set}" = set; then
40340 echo $ECHO_N "(cached) $ECHO_C" >&6
40342 cat >conftest.$ac_ext <<_ACEOF
40345 cat confdefs.h >>conftest.$ac_ext
40346 cat >>conftest.$ac_ext <<_ACEOF
40347 /* end confdefs.h. */
40352 /* FIXME: Include the comments suggested by Paul. */
40353 #ifndef __cplusplus
40354 /* Ultrix mips cc rejects this. */
40355 typedef int charset[2];
40357 /* SunOS 4.1.1 cc rejects this. */
40358 char const *const *ccp;
40360 /* NEC SVR4.0.2 mips cc rejects this. */
40361 struct point {int x, y;};
40362 static struct point const zero = {0,0};
40363 /* AIX XL C 1.02.0.0 rejects this.
40364 It does not let you subtract one const X* pointer from another in
40365 an arm of an if-expression whose if-part is not a constant
40367 const char *g = "string";
40368 ccp = &g + (g ? g-g : 0);
40369 /* HPUX 7.0 cc rejects these. */
40372 ccp = (char const *const *) p;
40373 { /* SCO 3.2v4 cc rejects this. */
40375 char const *s = 0 ? (char *) 0 : (char const *) 0;
40379 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
40380 int x[] = {25, 17};
40381 const int *foo = &x[0];
40384 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40385 typedef const int *iptr;
40389 { /* AIX XL C 1.02.0.0 rejects this saying
40390 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40391 struct s { int j; const int *ap[3]; };
40392 struct s *b; b->j = 5;
40394 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40395 const int foo = 10;
40403 rm -f conftest.$ac_objext
40404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40405 (eval $ac_compile) 2>conftest.er1
40407 grep -v '^ *+' conftest.er1 >conftest.err
40409 cat conftest.err >&5
40410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40411 (exit $ac_status); } &&
40412 { ac_try='test -z "$ac_c_werror_flag"
40413 || test ! -s conftest.err'
40414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40415 (eval $ac_try) 2>&5
40417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40418 (exit $ac_status); }; } &&
40419 { ac_try='test -s conftest.$ac_objext'
40420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40421 (eval $ac_try) 2>&5
40423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40424 (exit $ac_status); }; }; then
40427 echo "$as_me: failed program was:" >&5
40428 sed 's/^/| /' conftest.$ac_ext >&5
40432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40434 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40435 echo "${ECHO_T}$ac_cv_c_const" >&6
40436 if test $ac_cv_c_const = no; then
40438 cat >>confdefs.h <<\_ACEOF
40444 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40445 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40446 if test "${ol_cv_c_volatile+set}" = set; then
40447 echo $ECHO_N "(cached) $ECHO_C" >&6
40449 cat >conftest.$ac_ext <<_ACEOF
40452 cat confdefs.h >>conftest.$ac_ext
40453 cat >>conftest.$ac_ext <<_ACEOF
40454 /* end confdefs.h. */
40459 volatile int a; int * volatile b = x ? &y : &z;
40460 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40466 rm -f conftest.$ac_objext
40467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40468 (eval $ac_compile) 2>conftest.er1
40470 grep -v '^ *+' conftest.er1 >conftest.err
40472 cat conftest.err >&5
40473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40474 (exit $ac_status); } &&
40475 { ac_try='test -z "$ac_c_werror_flag"
40476 || test ! -s conftest.err'
40477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40478 (eval $ac_try) 2>&5
40480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40481 (exit $ac_status); }; } &&
40482 { ac_try='test -s conftest.$ac_objext'
40483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40484 (eval $ac_try) 2>&5
40486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40487 (exit $ac_status); }; }; then
40488 ol_cv_c_volatile=yes
40490 echo "$as_me: failed program was:" >&5
40491 sed 's/^/| /' conftest.$ac_ext >&5
40493 ol_cv_c_volatile=no
40495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40497 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40498 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40499 if test $ol_cv_c_volatile = yes; then
40503 cat >>confdefs.h <<\_ACEOF
40510 if test $cross_compiling = yes ; then
40511 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40512 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40514 cat >>confdefs.h <<\_ACEOF
40515 #define CROSS_COMPILING 1
40519 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40520 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40521 if test "${ac_cv_c_bigendian+set}" = set; then
40522 echo $ECHO_N "(cached) $ECHO_C" >&6
40524 # See if sys/param.h defines the BYTE_ORDER macro.
40525 cat >conftest.$ac_ext <<_ACEOF
40528 cat confdefs.h >>conftest.$ac_ext
40529 cat >>conftest.$ac_ext <<_ACEOF
40530 /* end confdefs.h. */
40531 #include <sys/types.h>
40532 #include <sys/param.h>
40537 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40538 bogus endian macros
40545 rm -f conftest.$ac_objext
40546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40547 (eval $ac_compile) 2>conftest.er1
40549 grep -v '^ *+' conftest.er1 >conftest.err
40551 cat conftest.err >&5
40552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40553 (exit $ac_status); } &&
40554 { ac_try='test -z "$ac_c_werror_flag"
40555 || test ! -s conftest.err'
40556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40557 (eval $ac_try) 2>&5
40559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40560 (exit $ac_status); }; } &&
40561 { ac_try='test -s conftest.$ac_objext'
40562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40563 (eval $ac_try) 2>&5
40565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40566 (exit $ac_status); }; }; then
40567 # It does; now see whether it defined to BIG_ENDIAN or not.
40568 cat >conftest.$ac_ext <<_ACEOF
40571 cat confdefs.h >>conftest.$ac_ext
40572 cat >>conftest.$ac_ext <<_ACEOF
40573 /* end confdefs.h. */
40574 #include <sys/types.h>
40575 #include <sys/param.h>
40580 #if BYTE_ORDER != BIG_ENDIAN
40588 rm -f conftest.$ac_objext
40589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40590 (eval $ac_compile) 2>conftest.er1
40592 grep -v '^ *+' conftest.er1 >conftest.err
40594 cat conftest.err >&5
40595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40596 (exit $ac_status); } &&
40597 { ac_try='test -z "$ac_c_werror_flag"
40598 || test ! -s conftest.err'
40599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40600 (eval $ac_try) 2>&5
40602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40603 (exit $ac_status); }; } &&
40604 { ac_try='test -s conftest.$ac_objext'
40605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40606 (eval $ac_try) 2>&5
40608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40609 (exit $ac_status); }; }; then
40610 ac_cv_c_bigendian=yes
40612 echo "$as_me: failed program was:" >&5
40613 sed 's/^/| /' conftest.$ac_ext >&5
40615 ac_cv_c_bigendian=no
40617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40619 echo "$as_me: failed program was:" >&5
40620 sed 's/^/| /' conftest.$ac_ext >&5
40622 # It does not; compile a test program.
40623 if test "$cross_compiling" = yes; then
40624 # try to guess the endianness by grepping values into an object file
40625 ac_cv_c_bigendian=unknown
40626 cat >conftest.$ac_ext <<_ACEOF
40629 cat confdefs.h >>conftest.$ac_ext
40630 cat >>conftest.$ac_ext <<_ACEOF
40631 /* end confdefs.h. */
40632 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40633 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40634 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40635 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40636 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40637 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40641 _ascii (); _ebcdic ();
40646 rm -f conftest.$ac_objext
40647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40648 (eval $ac_compile) 2>conftest.er1
40650 grep -v '^ *+' conftest.er1 >conftest.err
40652 cat conftest.err >&5
40653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40654 (exit $ac_status); } &&
40655 { ac_try='test -z "$ac_c_werror_flag"
40656 || test ! -s conftest.err'
40657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40658 (eval $ac_try) 2>&5
40660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40661 (exit $ac_status); }; } &&
40662 { ac_try='test -s conftest.$ac_objext'
40663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40664 (eval $ac_try) 2>&5
40666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40667 (exit $ac_status); }; }; then
40668 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40669 ac_cv_c_bigendian=yes
40671 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40672 if test "$ac_cv_c_bigendian" = unknown; then
40673 ac_cv_c_bigendian=no
40675 # finding both strings is unlikely to happen, but who knows?
40676 ac_cv_c_bigendian=unknown
40680 echo "$as_me: failed program was:" >&5
40681 sed 's/^/| /' conftest.$ac_ext >&5
40684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40686 cat >conftest.$ac_ext <<_ACEOF
40689 cat confdefs.h >>conftest.$ac_ext
40690 cat >>conftest.$ac_ext <<_ACEOF
40691 /* end confdefs.h. */
40695 /* Are we little or big endian? From Harbison&Steele. */
40699 char c[sizeof (long)];
40702 exit (u.c[sizeof (long) - 1] == 1);
40705 rm -f conftest$ac_exeext
40706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40707 (eval $ac_link) 2>&5
40709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40712 (eval $ac_try) 2>&5
40714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40715 (exit $ac_status); }; }; then
40716 ac_cv_c_bigendian=no
40718 echo "$as_me: program exited with status $ac_status" >&5
40719 echo "$as_me: failed program was:" >&5
40720 sed 's/^/| /' conftest.$ac_ext >&5
40722 ( exit $ac_status )
40723 ac_cv_c_bigendian=yes
40725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40730 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40731 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40732 case $ac_cv_c_bigendian in
40735 cat >>confdefs.h <<\_ACEOF
40736 #define WORDS_BIGENDIAN 1
40742 { { echo "$as_me:$LINENO: error: unknown endianness
40743 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40744 echo "$as_me: error: unknown endianness
40745 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40746 { (exit 1); exit 1; }; } ;;
40751 echo "$as_me:$LINENO: checking for short" >&5
40752 echo $ECHO_N "checking for short... $ECHO_C" >&6
40753 if test "${ac_cv_type_short+set}" = set; then
40754 echo $ECHO_N "(cached) $ECHO_C" >&6
40756 cat >conftest.$ac_ext <<_ACEOF
40759 cat confdefs.h >>conftest.$ac_ext
40760 cat >>conftest.$ac_ext <<_ACEOF
40761 /* end confdefs.h. */
40762 $ac_includes_default
40768 if (sizeof (short))
40774 rm -f conftest.$ac_objext
40775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40776 (eval $ac_compile) 2>conftest.er1
40778 grep -v '^ *+' conftest.er1 >conftest.err
40780 cat conftest.err >&5
40781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40782 (exit $ac_status); } &&
40783 { ac_try='test -z "$ac_c_werror_flag"
40784 || test ! -s conftest.err'
40785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40786 (eval $ac_try) 2>&5
40788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40789 (exit $ac_status); }; } &&
40790 { ac_try='test -s conftest.$ac_objext'
40791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40792 (eval $ac_try) 2>&5
40794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40795 (exit $ac_status); }; }; then
40796 ac_cv_type_short=yes
40798 echo "$as_me: failed program was:" >&5
40799 sed 's/^/| /' conftest.$ac_ext >&5
40801 ac_cv_type_short=no
40803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40805 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40806 echo "${ECHO_T}$ac_cv_type_short" >&6
40808 echo "$as_me:$LINENO: checking size of short" >&5
40809 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40810 if test "${ac_cv_sizeof_short+set}" = set; then
40811 echo $ECHO_N "(cached) $ECHO_C" >&6
40813 if test "$ac_cv_type_short" = yes; then
40814 # The cast to unsigned long works around a bug in the HP C Compiler
40815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40817 # This bug is HP SR number 8606223364.
40818 if test "$cross_compiling" = yes; then
40819 # Depending upon the size, compute the lo and hi bounds.
40820 cat >conftest.$ac_ext <<_ACEOF
40823 cat confdefs.h >>conftest.$ac_ext
40824 cat >>conftest.$ac_ext <<_ACEOF
40825 /* end confdefs.h. */
40826 $ac_includes_default
40830 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40837 rm -f conftest.$ac_objext
40838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40839 (eval $ac_compile) 2>conftest.er1
40841 grep -v '^ *+' conftest.er1 >conftest.err
40843 cat conftest.err >&5
40844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40845 (exit $ac_status); } &&
40846 { ac_try='test -z "$ac_c_werror_flag"
40847 || test ! -s conftest.err'
40848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40849 (eval $ac_try) 2>&5
40851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40852 (exit $ac_status); }; } &&
40853 { ac_try='test -s conftest.$ac_objext'
40854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40855 (eval $ac_try) 2>&5
40857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40858 (exit $ac_status); }; }; then
40861 cat >conftest.$ac_ext <<_ACEOF
40864 cat confdefs.h >>conftest.$ac_ext
40865 cat >>conftest.$ac_ext <<_ACEOF
40866 /* end confdefs.h. */
40867 $ac_includes_default
40871 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40878 rm -f conftest.$ac_objext
40879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40880 (eval $ac_compile) 2>conftest.er1
40882 grep -v '^ *+' conftest.er1 >conftest.err
40884 cat conftest.err >&5
40885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40886 (exit $ac_status); } &&
40887 { ac_try='test -z "$ac_c_werror_flag"
40888 || test ! -s conftest.err'
40889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40890 (eval $ac_try) 2>&5
40892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40893 (exit $ac_status); }; } &&
40894 { ac_try='test -s conftest.$ac_objext'
40895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40896 (eval $ac_try) 2>&5
40898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40899 (exit $ac_status); }; }; then
40900 ac_hi=$ac_mid; break
40902 echo "$as_me: failed program was:" >&5
40903 sed 's/^/| /' conftest.$ac_ext >&5
40905 ac_lo=`expr $ac_mid + 1`
40906 if test $ac_lo -le $ac_mid; then
40910 ac_mid=`expr 2 '*' $ac_mid + 1`
40912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40915 echo "$as_me: failed program was:" >&5
40916 sed 's/^/| /' conftest.$ac_ext >&5
40918 cat >conftest.$ac_ext <<_ACEOF
40921 cat confdefs.h >>conftest.$ac_ext
40922 cat >>conftest.$ac_ext <<_ACEOF
40923 /* end confdefs.h. */
40924 $ac_includes_default
40928 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40935 rm -f conftest.$ac_objext
40936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40937 (eval $ac_compile) 2>conftest.er1
40939 grep -v '^ *+' conftest.er1 >conftest.err
40941 cat conftest.err >&5
40942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40943 (exit $ac_status); } &&
40944 { ac_try='test -z "$ac_c_werror_flag"
40945 || test ! -s conftest.err'
40946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40947 (eval $ac_try) 2>&5
40949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40950 (exit $ac_status); }; } &&
40951 { ac_try='test -s conftest.$ac_objext'
40952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40953 (eval $ac_try) 2>&5
40955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40956 (exit $ac_status); }; }; then
40959 cat >conftest.$ac_ext <<_ACEOF
40962 cat confdefs.h >>conftest.$ac_ext
40963 cat >>conftest.$ac_ext <<_ACEOF
40964 /* end confdefs.h. */
40965 $ac_includes_default
40969 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40976 rm -f conftest.$ac_objext
40977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40978 (eval $ac_compile) 2>conftest.er1
40980 grep -v '^ *+' conftest.er1 >conftest.err
40982 cat conftest.err >&5
40983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40984 (exit $ac_status); } &&
40985 { ac_try='test -z "$ac_c_werror_flag"
40986 || test ! -s conftest.err'
40987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40988 (eval $ac_try) 2>&5
40990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40991 (exit $ac_status); }; } &&
40992 { ac_try='test -s conftest.$ac_objext'
40993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40994 (eval $ac_try) 2>&5
40996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40997 (exit $ac_status); }; }; then
40998 ac_lo=$ac_mid; break
41000 echo "$as_me: failed program was:" >&5
41001 sed 's/^/| /' conftest.$ac_ext >&5
41003 ac_hi=`expr '(' $ac_mid ')' - 1`
41004 if test $ac_mid -le $ac_hi; then
41008 ac_mid=`expr 2 '*' $ac_mid`
41010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41013 echo "$as_me: failed program was:" >&5
41014 sed 's/^/| /' conftest.$ac_ext >&5
41018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41021 # Binary search between lo and hi bounds.
41022 while test "x$ac_lo" != "x$ac_hi"; do
41023 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41024 cat >conftest.$ac_ext <<_ACEOF
41027 cat confdefs.h >>conftest.$ac_ext
41028 cat >>conftest.$ac_ext <<_ACEOF
41029 /* end confdefs.h. */
41030 $ac_includes_default
41034 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
41041 rm -f conftest.$ac_objext
41042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41043 (eval $ac_compile) 2>conftest.er1
41045 grep -v '^ *+' conftest.er1 >conftest.err
41047 cat conftest.err >&5
41048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41049 (exit $ac_status); } &&
41050 { ac_try='test -z "$ac_c_werror_flag"
41051 || test ! -s conftest.err'
41052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41053 (eval $ac_try) 2>&5
41055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41056 (exit $ac_status); }; } &&
41057 { ac_try='test -s conftest.$ac_objext'
41058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41059 (eval $ac_try) 2>&5
41061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41062 (exit $ac_status); }; }; then
41065 echo "$as_me: failed program was:" >&5
41066 sed 's/^/| /' conftest.$ac_ext >&5
41068 ac_lo=`expr '(' $ac_mid ')' + 1`
41070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41073 ?*) ac_cv_sizeof_short=$ac_lo;;
41074 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
41075 See \`config.log' for more details." >&5
41076 echo "$as_me: error: cannot compute sizeof (short), 77
41077 See \`config.log' for more details." >&2;}
41078 { (exit 1); exit 1; }; } ;;
41081 if test "$cross_compiling" = yes; then
41082 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41083 See \`config.log' for more details." >&5
41084 echo "$as_me: error: cannot run test program while cross compiling
41085 See \`config.log' for more details." >&2;}
41086 { (exit 1); exit 1; }; }
41088 cat >conftest.$ac_ext <<_ACEOF
41091 cat confdefs.h >>conftest.$ac_ext
41092 cat >>conftest.$ac_ext <<_ACEOF
41093 /* end confdefs.h. */
41094 $ac_includes_default
41095 long longval () { return (long) (sizeof (short)); }
41096 unsigned long ulongval () { return (long) (sizeof (short)); }
41098 #include <stdlib.h>
41103 FILE *f = fopen ("conftest.val", "w");
41106 if (((long) (sizeof (short))) < 0)
41108 long i = longval ();
41109 if (i != ((long) (sizeof (short))))
41111 fprintf (f, "%ld\n", i);
41115 unsigned long i = ulongval ();
41116 if (i != ((long) (sizeof (short))))
41118 fprintf (f, "%lu\n", i);
41120 exit (ferror (f) || fclose (f) != 0);
41126 rm -f conftest$ac_exeext
41127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41128 (eval $ac_link) 2>&5
41130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41133 (eval $ac_try) 2>&5
41135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41136 (exit $ac_status); }; }; then
41137 ac_cv_sizeof_short=`cat conftest.val`
41139 echo "$as_me: program exited with status $ac_status" >&5
41140 echo "$as_me: failed program was:" >&5
41141 sed 's/^/| /' conftest.$ac_ext >&5
41143 ( exit $ac_status )
41144 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
41145 See \`config.log' for more details." >&5
41146 echo "$as_me: error: cannot compute sizeof (short), 77
41147 See \`config.log' for more details." >&2;}
41148 { (exit 1); exit 1; }; }
41150 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41155 ac_cv_sizeof_short=0
41158 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
41159 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
41160 cat >>confdefs.h <<_ACEOF
41161 #define SIZEOF_SHORT $ac_cv_sizeof_short
41165 echo "$as_me:$LINENO: checking for int" >&5
41166 echo $ECHO_N "checking for int... $ECHO_C" >&6
41167 if test "${ac_cv_type_int+set}" = set; then
41168 echo $ECHO_N "(cached) $ECHO_C" >&6
41170 cat >conftest.$ac_ext <<_ACEOF
41173 cat confdefs.h >>conftest.$ac_ext
41174 cat >>conftest.$ac_ext <<_ACEOF
41175 /* end confdefs.h. */
41176 $ac_includes_default
41188 rm -f conftest.$ac_objext
41189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41190 (eval $ac_compile) 2>conftest.er1
41192 grep -v '^ *+' conftest.er1 >conftest.err
41194 cat conftest.err >&5
41195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41196 (exit $ac_status); } &&
41197 { ac_try='test -z "$ac_c_werror_flag"
41198 || test ! -s conftest.err'
41199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41200 (eval $ac_try) 2>&5
41202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41203 (exit $ac_status); }; } &&
41204 { ac_try='test -s conftest.$ac_objext'
41205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41206 (eval $ac_try) 2>&5
41208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41209 (exit $ac_status); }; }; then
41212 echo "$as_me: failed program was:" >&5
41213 sed 's/^/| /' conftest.$ac_ext >&5
41217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41219 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
41220 echo "${ECHO_T}$ac_cv_type_int" >&6
41222 echo "$as_me:$LINENO: checking size of int" >&5
41223 echo $ECHO_N "checking size of int... $ECHO_C" >&6
41224 if test "${ac_cv_sizeof_int+set}" = set; then
41225 echo $ECHO_N "(cached) $ECHO_C" >&6
41227 if test "$ac_cv_type_int" = yes; then
41228 # The cast to unsigned long works around a bug in the HP C Compiler
41229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41231 # This bug is HP SR number 8606223364.
41232 if test "$cross_compiling" = yes; then
41233 # Depending upon the size, compute the lo and hi bounds.
41234 cat >conftest.$ac_ext <<_ACEOF
41237 cat confdefs.h >>conftest.$ac_ext
41238 cat >>conftest.$ac_ext <<_ACEOF
41239 /* end confdefs.h. */
41240 $ac_includes_default
41244 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
41251 rm -f conftest.$ac_objext
41252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41253 (eval $ac_compile) 2>conftest.er1
41255 grep -v '^ *+' conftest.er1 >conftest.err
41257 cat conftest.err >&5
41258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41259 (exit $ac_status); } &&
41260 { ac_try='test -z "$ac_c_werror_flag"
41261 || test ! -s conftest.err'
41262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41263 (eval $ac_try) 2>&5
41265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41266 (exit $ac_status); }; } &&
41267 { ac_try='test -s conftest.$ac_objext'
41268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41269 (eval $ac_try) 2>&5
41271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41272 (exit $ac_status); }; }; then
41275 cat >conftest.$ac_ext <<_ACEOF
41278 cat confdefs.h >>conftest.$ac_ext
41279 cat >>conftest.$ac_ext <<_ACEOF
41280 /* end confdefs.h. */
41281 $ac_includes_default
41285 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41292 rm -f conftest.$ac_objext
41293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41294 (eval $ac_compile) 2>conftest.er1
41296 grep -v '^ *+' conftest.er1 >conftest.err
41298 cat conftest.err >&5
41299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41300 (exit $ac_status); } &&
41301 { ac_try='test -z "$ac_c_werror_flag"
41302 || test ! -s conftest.err'
41303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41304 (eval $ac_try) 2>&5
41306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41307 (exit $ac_status); }; } &&
41308 { ac_try='test -s conftest.$ac_objext'
41309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41310 (eval $ac_try) 2>&5
41312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41313 (exit $ac_status); }; }; then
41314 ac_hi=$ac_mid; break
41316 echo "$as_me: failed program was:" >&5
41317 sed 's/^/| /' conftest.$ac_ext >&5
41319 ac_lo=`expr $ac_mid + 1`
41320 if test $ac_lo -le $ac_mid; then
41324 ac_mid=`expr 2 '*' $ac_mid + 1`
41326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41329 echo "$as_me: failed program was:" >&5
41330 sed 's/^/| /' conftest.$ac_ext >&5
41332 cat >conftest.$ac_ext <<_ACEOF
41335 cat confdefs.h >>conftest.$ac_ext
41336 cat >>conftest.$ac_ext <<_ACEOF
41337 /* end confdefs.h. */
41338 $ac_includes_default
41342 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41349 rm -f conftest.$ac_objext
41350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41351 (eval $ac_compile) 2>conftest.er1
41353 grep -v '^ *+' conftest.er1 >conftest.err
41355 cat conftest.err >&5
41356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41357 (exit $ac_status); } &&
41358 { ac_try='test -z "$ac_c_werror_flag"
41359 || test ! -s conftest.err'
41360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41361 (eval $ac_try) 2>&5
41363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41364 (exit $ac_status); }; } &&
41365 { ac_try='test -s conftest.$ac_objext'
41366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41367 (eval $ac_try) 2>&5
41369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41370 (exit $ac_status); }; }; then
41373 cat >conftest.$ac_ext <<_ACEOF
41376 cat confdefs.h >>conftest.$ac_ext
41377 cat >>conftest.$ac_ext <<_ACEOF
41378 /* end confdefs.h. */
41379 $ac_includes_default
41383 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
41390 rm -f conftest.$ac_objext
41391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41392 (eval $ac_compile) 2>conftest.er1
41394 grep -v '^ *+' conftest.er1 >conftest.err
41396 cat conftest.err >&5
41397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41398 (exit $ac_status); } &&
41399 { ac_try='test -z "$ac_c_werror_flag"
41400 || test ! -s conftest.err'
41401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41402 (eval $ac_try) 2>&5
41404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41405 (exit $ac_status); }; } &&
41406 { ac_try='test -s conftest.$ac_objext'
41407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41408 (eval $ac_try) 2>&5
41410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41411 (exit $ac_status); }; }; then
41412 ac_lo=$ac_mid; break
41414 echo "$as_me: failed program was:" >&5
41415 sed 's/^/| /' conftest.$ac_ext >&5
41417 ac_hi=`expr '(' $ac_mid ')' - 1`
41418 if test $ac_mid -le $ac_hi; then
41422 ac_mid=`expr 2 '*' $ac_mid`
41424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41427 echo "$as_me: failed program was:" >&5
41428 sed 's/^/| /' conftest.$ac_ext >&5
41432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41435 # Binary search between lo and hi bounds.
41436 while test "x$ac_lo" != "x$ac_hi"; do
41437 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41438 cat >conftest.$ac_ext <<_ACEOF
41441 cat confdefs.h >>conftest.$ac_ext
41442 cat >>conftest.$ac_ext <<_ACEOF
41443 /* end confdefs.h. */
41444 $ac_includes_default
41448 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41455 rm -f conftest.$ac_objext
41456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41457 (eval $ac_compile) 2>conftest.er1
41459 grep -v '^ *+' conftest.er1 >conftest.err
41461 cat conftest.err >&5
41462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41463 (exit $ac_status); } &&
41464 { ac_try='test -z "$ac_c_werror_flag"
41465 || test ! -s conftest.err'
41466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41467 (eval $ac_try) 2>&5
41469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41470 (exit $ac_status); }; } &&
41471 { ac_try='test -s conftest.$ac_objext'
41472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41473 (eval $ac_try) 2>&5
41475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41476 (exit $ac_status); }; }; then
41479 echo "$as_me: failed program was:" >&5
41480 sed 's/^/| /' conftest.$ac_ext >&5
41482 ac_lo=`expr '(' $ac_mid ')' + 1`
41484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41487 ?*) ac_cv_sizeof_int=$ac_lo;;
41488 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41489 See \`config.log' for more details." >&5
41490 echo "$as_me: error: cannot compute sizeof (int), 77
41491 See \`config.log' for more details." >&2;}
41492 { (exit 1); exit 1; }; } ;;
41495 if test "$cross_compiling" = yes; then
41496 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41497 See \`config.log' for more details." >&5
41498 echo "$as_me: error: cannot run test program while cross compiling
41499 See \`config.log' for more details." >&2;}
41500 { (exit 1); exit 1; }; }
41502 cat >conftest.$ac_ext <<_ACEOF
41505 cat confdefs.h >>conftest.$ac_ext
41506 cat >>conftest.$ac_ext <<_ACEOF
41507 /* end confdefs.h. */
41508 $ac_includes_default
41509 long longval () { return (long) (sizeof (int)); }
41510 unsigned long ulongval () { return (long) (sizeof (int)); }
41512 #include <stdlib.h>
41517 FILE *f = fopen ("conftest.val", "w");
41520 if (((long) (sizeof (int))) < 0)
41522 long i = longval ();
41523 if (i != ((long) (sizeof (int))))
41525 fprintf (f, "%ld\n", i);
41529 unsigned long i = ulongval ();
41530 if (i != ((long) (sizeof (int))))
41532 fprintf (f, "%lu\n", i);
41534 exit (ferror (f) || fclose (f) != 0);
41540 rm -f conftest$ac_exeext
41541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41542 (eval $ac_link) 2>&5
41544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41547 (eval $ac_try) 2>&5
41549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41550 (exit $ac_status); }; }; then
41551 ac_cv_sizeof_int=`cat conftest.val`
41553 echo "$as_me: program exited with status $ac_status" >&5
41554 echo "$as_me: failed program was:" >&5
41555 sed 's/^/| /' conftest.$ac_ext >&5
41557 ( exit $ac_status )
41558 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41559 See \`config.log' for more details." >&5
41560 echo "$as_me: error: cannot compute sizeof (int), 77
41561 See \`config.log' for more details." >&2;}
41562 { (exit 1); exit 1; }; }
41564 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41572 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41573 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41574 cat >>confdefs.h <<_ACEOF
41575 #define SIZEOF_INT $ac_cv_sizeof_int
41579 echo "$as_me:$LINENO: checking for long" >&5
41580 echo $ECHO_N "checking for long... $ECHO_C" >&6
41581 if test "${ac_cv_type_long+set}" = set; then
41582 echo $ECHO_N "(cached) $ECHO_C" >&6
41584 cat >conftest.$ac_ext <<_ACEOF
41587 cat confdefs.h >>conftest.$ac_ext
41588 cat >>conftest.$ac_ext <<_ACEOF
41589 /* end confdefs.h. */
41590 $ac_includes_default
41602 rm -f conftest.$ac_objext
41603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41604 (eval $ac_compile) 2>conftest.er1
41606 grep -v '^ *+' conftest.er1 >conftest.err
41608 cat conftest.err >&5
41609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41610 (exit $ac_status); } &&
41611 { ac_try='test -z "$ac_c_werror_flag"
41612 || test ! -s conftest.err'
41613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41614 (eval $ac_try) 2>&5
41616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41617 (exit $ac_status); }; } &&
41618 { ac_try='test -s conftest.$ac_objext'
41619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41620 (eval $ac_try) 2>&5
41622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41623 (exit $ac_status); }; }; then
41624 ac_cv_type_long=yes
41626 echo "$as_me: failed program was:" >&5
41627 sed 's/^/| /' conftest.$ac_ext >&5
41631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41633 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41634 echo "${ECHO_T}$ac_cv_type_long" >&6
41636 echo "$as_me:$LINENO: checking size of long" >&5
41637 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41638 if test "${ac_cv_sizeof_long+set}" = set; then
41639 echo $ECHO_N "(cached) $ECHO_C" >&6
41641 if test "$ac_cv_type_long" = yes; then
41642 # The cast to unsigned long works around a bug in the HP C Compiler
41643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41645 # This bug is HP SR number 8606223364.
41646 if test "$cross_compiling" = yes; then
41647 # Depending upon the size, compute the lo and hi bounds.
41648 cat >conftest.$ac_ext <<_ACEOF
41651 cat confdefs.h >>conftest.$ac_ext
41652 cat >>conftest.$ac_ext <<_ACEOF
41653 /* end confdefs.h. */
41654 $ac_includes_default
41658 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41665 rm -f conftest.$ac_objext
41666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41667 (eval $ac_compile) 2>conftest.er1
41669 grep -v '^ *+' conftest.er1 >conftest.err
41671 cat conftest.err >&5
41672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41673 (exit $ac_status); } &&
41674 { ac_try='test -z "$ac_c_werror_flag"
41675 || test ! -s conftest.err'
41676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41677 (eval $ac_try) 2>&5
41679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41680 (exit $ac_status); }; } &&
41681 { ac_try='test -s conftest.$ac_objext'
41682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41683 (eval $ac_try) 2>&5
41685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41686 (exit $ac_status); }; }; then
41689 cat >conftest.$ac_ext <<_ACEOF
41692 cat confdefs.h >>conftest.$ac_ext
41693 cat >>conftest.$ac_ext <<_ACEOF
41694 /* end confdefs.h. */
41695 $ac_includes_default
41699 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41706 rm -f conftest.$ac_objext
41707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41708 (eval $ac_compile) 2>conftest.er1
41710 grep -v '^ *+' conftest.er1 >conftest.err
41712 cat conftest.err >&5
41713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41714 (exit $ac_status); } &&
41715 { ac_try='test -z "$ac_c_werror_flag"
41716 || test ! -s conftest.err'
41717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41718 (eval $ac_try) 2>&5
41720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41721 (exit $ac_status); }; } &&
41722 { ac_try='test -s conftest.$ac_objext'
41723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41724 (eval $ac_try) 2>&5
41726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41727 (exit $ac_status); }; }; then
41728 ac_hi=$ac_mid; break
41730 echo "$as_me: failed program was:" >&5
41731 sed 's/^/| /' conftest.$ac_ext >&5
41733 ac_lo=`expr $ac_mid + 1`
41734 if test $ac_lo -le $ac_mid; then
41738 ac_mid=`expr 2 '*' $ac_mid + 1`
41740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41743 echo "$as_me: failed program was:" >&5
41744 sed 's/^/| /' conftest.$ac_ext >&5
41746 cat >conftest.$ac_ext <<_ACEOF
41749 cat confdefs.h >>conftest.$ac_ext
41750 cat >>conftest.$ac_ext <<_ACEOF
41751 /* end confdefs.h. */
41752 $ac_includes_default
41756 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41763 rm -f conftest.$ac_objext
41764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41765 (eval $ac_compile) 2>conftest.er1
41767 grep -v '^ *+' conftest.er1 >conftest.err
41769 cat conftest.err >&5
41770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41771 (exit $ac_status); } &&
41772 { ac_try='test -z "$ac_c_werror_flag"
41773 || test ! -s conftest.err'
41774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41775 (eval $ac_try) 2>&5
41777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41778 (exit $ac_status); }; } &&
41779 { ac_try='test -s conftest.$ac_objext'
41780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41781 (eval $ac_try) 2>&5
41783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41784 (exit $ac_status); }; }; then
41787 cat >conftest.$ac_ext <<_ACEOF
41790 cat confdefs.h >>conftest.$ac_ext
41791 cat >>conftest.$ac_ext <<_ACEOF
41792 /* end confdefs.h. */
41793 $ac_includes_default
41797 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41804 rm -f conftest.$ac_objext
41805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41806 (eval $ac_compile) 2>conftest.er1
41808 grep -v '^ *+' conftest.er1 >conftest.err
41810 cat conftest.err >&5
41811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41812 (exit $ac_status); } &&
41813 { ac_try='test -z "$ac_c_werror_flag"
41814 || test ! -s conftest.err'
41815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41816 (eval $ac_try) 2>&5
41818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41819 (exit $ac_status); }; } &&
41820 { ac_try='test -s conftest.$ac_objext'
41821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41822 (eval $ac_try) 2>&5
41824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41825 (exit $ac_status); }; }; then
41826 ac_lo=$ac_mid; break
41828 echo "$as_me: failed program was:" >&5
41829 sed 's/^/| /' conftest.$ac_ext >&5
41831 ac_hi=`expr '(' $ac_mid ')' - 1`
41832 if test $ac_mid -le $ac_hi; then
41836 ac_mid=`expr 2 '*' $ac_mid`
41838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41841 echo "$as_me: failed program was:" >&5
41842 sed 's/^/| /' conftest.$ac_ext >&5
41846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41849 # Binary search between lo and hi bounds.
41850 while test "x$ac_lo" != "x$ac_hi"; do
41851 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41852 cat >conftest.$ac_ext <<_ACEOF
41855 cat confdefs.h >>conftest.$ac_ext
41856 cat >>conftest.$ac_ext <<_ACEOF
41857 /* end confdefs.h. */
41858 $ac_includes_default
41862 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41869 rm -f conftest.$ac_objext
41870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41871 (eval $ac_compile) 2>conftest.er1
41873 grep -v '^ *+' conftest.er1 >conftest.err
41875 cat conftest.err >&5
41876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41877 (exit $ac_status); } &&
41878 { ac_try='test -z "$ac_c_werror_flag"
41879 || test ! -s conftest.err'
41880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41881 (eval $ac_try) 2>&5
41883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41884 (exit $ac_status); }; } &&
41885 { ac_try='test -s conftest.$ac_objext'
41886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41887 (eval $ac_try) 2>&5
41889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41890 (exit $ac_status); }; }; then
41893 echo "$as_me: failed program was:" >&5
41894 sed 's/^/| /' conftest.$ac_ext >&5
41896 ac_lo=`expr '(' $ac_mid ')' + 1`
41898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41901 ?*) ac_cv_sizeof_long=$ac_lo;;
41902 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41903 See \`config.log' for more details." >&5
41904 echo "$as_me: error: cannot compute sizeof (long), 77
41905 See \`config.log' for more details." >&2;}
41906 { (exit 1); exit 1; }; } ;;
41909 if test "$cross_compiling" = yes; then
41910 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41911 See \`config.log' for more details." >&5
41912 echo "$as_me: error: cannot run test program while cross compiling
41913 See \`config.log' for more details." >&2;}
41914 { (exit 1); exit 1; }; }
41916 cat >conftest.$ac_ext <<_ACEOF
41919 cat confdefs.h >>conftest.$ac_ext
41920 cat >>conftest.$ac_ext <<_ACEOF
41921 /* end confdefs.h. */
41922 $ac_includes_default
41923 long longval () { return (long) (sizeof (long)); }
41924 unsigned long ulongval () { return (long) (sizeof (long)); }
41926 #include <stdlib.h>
41931 FILE *f = fopen ("conftest.val", "w");
41934 if (((long) (sizeof (long))) < 0)
41936 long i = longval ();
41937 if (i != ((long) (sizeof (long))))
41939 fprintf (f, "%ld\n", i);
41943 unsigned long i = ulongval ();
41944 if (i != ((long) (sizeof (long))))
41946 fprintf (f, "%lu\n", i);
41948 exit (ferror (f) || fclose (f) != 0);
41954 rm -f conftest$ac_exeext
41955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41956 (eval $ac_link) 2>&5
41958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41961 (eval $ac_try) 2>&5
41963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41964 (exit $ac_status); }; }; then
41965 ac_cv_sizeof_long=`cat conftest.val`
41967 echo "$as_me: program exited with status $ac_status" >&5
41968 echo "$as_me: failed program was:" >&5
41969 sed 's/^/| /' conftest.$ac_ext >&5
41971 ( exit $ac_status )
41972 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41973 See \`config.log' for more details." >&5
41974 echo "$as_me: error: cannot compute sizeof (long), 77
41975 See \`config.log' for more details." >&2;}
41976 { (exit 1); exit 1; }; }
41978 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41983 ac_cv_sizeof_long=0
41986 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41987 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41988 cat >>confdefs.h <<_ACEOF
41989 #define SIZEOF_LONG $ac_cv_sizeof_long
41993 echo "$as_me:$LINENO: checking for long long" >&5
41994 echo $ECHO_N "checking for long long... $ECHO_C" >&6
41995 if test "${ac_cv_type_long_long+set}" = set; then
41996 echo $ECHO_N "(cached) $ECHO_C" >&6
41998 cat >conftest.$ac_ext <<_ACEOF
42001 cat confdefs.h >>conftest.$ac_ext
42002 cat >>conftest.$ac_ext <<_ACEOF
42003 /* end confdefs.h. */
42004 $ac_includes_default
42008 if ((long long *) 0)
42010 if (sizeof (long long))
42016 rm -f conftest.$ac_objext
42017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42018 (eval $ac_compile) 2>conftest.er1
42020 grep -v '^ *+' conftest.er1 >conftest.err
42022 cat conftest.err >&5
42023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42024 (exit $ac_status); } &&
42025 { ac_try='test -z "$ac_c_werror_flag"
42026 || test ! -s conftest.err'
42027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42028 (eval $ac_try) 2>&5
42030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42031 (exit $ac_status); }; } &&
42032 { ac_try='test -s conftest.$ac_objext'
42033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42034 (eval $ac_try) 2>&5
42036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42037 (exit $ac_status); }; }; then
42038 ac_cv_type_long_long=yes
42040 echo "$as_me: failed program was:" >&5
42041 sed 's/^/| /' conftest.$ac_ext >&5
42043 ac_cv_type_long_long=no
42045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42047 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
42048 echo "${ECHO_T}$ac_cv_type_long_long" >&6
42050 echo "$as_me:$LINENO: checking size of long long" >&5
42051 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
42052 if test "${ac_cv_sizeof_long_long+set}" = set; then
42053 echo $ECHO_N "(cached) $ECHO_C" >&6
42055 if test "$ac_cv_type_long_long" = yes; then
42056 # The cast to unsigned long works around a bug in the HP C Compiler
42057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
42058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
42059 # This bug is HP SR number 8606223364.
42060 if test "$cross_compiling" = yes; then
42061 # Depending upon the size, compute the lo and hi bounds.
42062 cat >conftest.$ac_ext <<_ACEOF
42065 cat confdefs.h >>conftest.$ac_ext
42066 cat >>conftest.$ac_ext <<_ACEOF
42067 /* end confdefs.h. */
42068 $ac_includes_default
42072 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
42079 rm -f conftest.$ac_objext
42080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42081 (eval $ac_compile) 2>conftest.er1
42083 grep -v '^ *+' conftest.er1 >conftest.err
42085 cat conftest.err >&5
42086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42087 (exit $ac_status); } &&
42088 { ac_try='test -z "$ac_c_werror_flag"
42089 || test ! -s conftest.err'
42090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42091 (eval $ac_try) 2>&5
42093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42094 (exit $ac_status); }; } &&
42095 { ac_try='test -s conftest.$ac_objext'
42096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42097 (eval $ac_try) 2>&5
42099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42100 (exit $ac_status); }; }; then
42103 cat >conftest.$ac_ext <<_ACEOF
42106 cat confdefs.h >>conftest.$ac_ext
42107 cat >>conftest.$ac_ext <<_ACEOF
42108 /* end confdefs.h. */
42109 $ac_includes_default
42113 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
42120 rm -f conftest.$ac_objext
42121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42122 (eval $ac_compile) 2>conftest.er1
42124 grep -v '^ *+' conftest.er1 >conftest.err
42126 cat conftest.err >&5
42127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42128 (exit $ac_status); } &&
42129 { ac_try='test -z "$ac_c_werror_flag"
42130 || test ! -s conftest.err'
42131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42132 (eval $ac_try) 2>&5
42134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42135 (exit $ac_status); }; } &&
42136 { ac_try='test -s conftest.$ac_objext'
42137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42138 (eval $ac_try) 2>&5
42140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42141 (exit $ac_status); }; }; then
42142 ac_hi=$ac_mid; break
42144 echo "$as_me: failed program was:" >&5
42145 sed 's/^/| /' conftest.$ac_ext >&5
42147 ac_lo=`expr $ac_mid + 1`
42148 if test $ac_lo -le $ac_mid; then
42152 ac_mid=`expr 2 '*' $ac_mid + 1`
42154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42157 echo "$as_me: failed program was:" >&5
42158 sed 's/^/| /' conftest.$ac_ext >&5
42160 cat >conftest.$ac_ext <<_ACEOF
42163 cat confdefs.h >>conftest.$ac_ext
42164 cat >>conftest.$ac_ext <<_ACEOF
42165 /* end confdefs.h. */
42166 $ac_includes_default
42170 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
42177 rm -f conftest.$ac_objext
42178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42179 (eval $ac_compile) 2>conftest.er1
42181 grep -v '^ *+' conftest.er1 >conftest.err
42183 cat conftest.err >&5
42184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42185 (exit $ac_status); } &&
42186 { ac_try='test -z "$ac_c_werror_flag"
42187 || test ! -s conftest.err'
42188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42189 (eval $ac_try) 2>&5
42191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42192 (exit $ac_status); }; } &&
42193 { ac_try='test -s conftest.$ac_objext'
42194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42195 (eval $ac_try) 2>&5
42197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42198 (exit $ac_status); }; }; then
42201 cat >conftest.$ac_ext <<_ACEOF
42204 cat confdefs.h >>conftest.$ac_ext
42205 cat >>conftest.$ac_ext <<_ACEOF
42206 /* end confdefs.h. */
42207 $ac_includes_default
42211 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
42218 rm -f conftest.$ac_objext
42219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42220 (eval $ac_compile) 2>conftest.er1
42222 grep -v '^ *+' conftest.er1 >conftest.err
42224 cat conftest.err >&5
42225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42226 (exit $ac_status); } &&
42227 { ac_try='test -z "$ac_c_werror_flag"
42228 || test ! -s conftest.err'
42229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42230 (eval $ac_try) 2>&5
42232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42233 (exit $ac_status); }; } &&
42234 { ac_try='test -s conftest.$ac_objext'
42235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42236 (eval $ac_try) 2>&5
42238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42239 (exit $ac_status); }; }; then
42240 ac_lo=$ac_mid; break
42242 echo "$as_me: failed program was:" >&5
42243 sed 's/^/| /' conftest.$ac_ext >&5
42245 ac_hi=`expr '(' $ac_mid ')' - 1`
42246 if test $ac_mid -le $ac_hi; then
42250 ac_mid=`expr 2 '*' $ac_mid`
42252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42255 echo "$as_me: failed program was:" >&5
42256 sed 's/^/| /' conftest.$ac_ext >&5
42260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42263 # Binary search between lo and hi bounds.
42264 while test "x$ac_lo" != "x$ac_hi"; do
42265 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42266 cat >conftest.$ac_ext <<_ACEOF
42269 cat confdefs.h >>conftest.$ac_ext
42270 cat >>conftest.$ac_ext <<_ACEOF
42271 /* end confdefs.h. */
42272 $ac_includes_default
42276 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
42283 rm -f conftest.$ac_objext
42284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42285 (eval $ac_compile) 2>conftest.er1
42287 grep -v '^ *+' conftest.er1 >conftest.err
42289 cat conftest.err >&5
42290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42291 (exit $ac_status); } &&
42292 { ac_try='test -z "$ac_c_werror_flag"
42293 || test ! -s conftest.err'
42294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42295 (eval $ac_try) 2>&5
42297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42298 (exit $ac_status); }; } &&
42299 { ac_try='test -s conftest.$ac_objext'
42300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42301 (eval $ac_try) 2>&5
42303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42304 (exit $ac_status); }; }; then
42307 echo "$as_me: failed program was:" >&5
42308 sed 's/^/| /' conftest.$ac_ext >&5
42310 ac_lo=`expr '(' $ac_mid ')' + 1`
42312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42315 ?*) ac_cv_sizeof_long_long=$ac_lo;;
42316 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
42317 See \`config.log' for more details." >&5
42318 echo "$as_me: error: cannot compute sizeof (long long), 77
42319 See \`config.log' for more details." >&2;}
42320 { (exit 1); exit 1; }; } ;;
42323 if test "$cross_compiling" = yes; then
42324 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42325 See \`config.log' for more details." >&5
42326 echo "$as_me: error: cannot run test program while cross compiling
42327 See \`config.log' for more details." >&2;}
42328 { (exit 1); exit 1; }; }
42330 cat >conftest.$ac_ext <<_ACEOF
42333 cat confdefs.h >>conftest.$ac_ext
42334 cat >>conftest.$ac_ext <<_ACEOF
42335 /* end confdefs.h. */
42336 $ac_includes_default
42337 long longval () { return (long) (sizeof (long long)); }
42338 unsigned long ulongval () { return (long) (sizeof (long long)); }
42340 #include <stdlib.h>
42345 FILE *f = fopen ("conftest.val", "w");
42348 if (((long) (sizeof (long long))) < 0)
42350 long i = longval ();
42351 if (i != ((long) (sizeof (long long))))
42353 fprintf (f, "%ld\n", i);
42357 unsigned long i = ulongval ();
42358 if (i != ((long) (sizeof (long long))))
42360 fprintf (f, "%lu\n", i);
42362 exit (ferror (f) || fclose (f) != 0);
42368 rm -f conftest$ac_exeext
42369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42370 (eval $ac_link) 2>&5
42372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42375 (eval $ac_try) 2>&5
42377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42378 (exit $ac_status); }; }; then
42379 ac_cv_sizeof_long_long=`cat conftest.val`
42381 echo "$as_me: program exited with status $ac_status" >&5
42382 echo "$as_me: failed program was:" >&5
42383 sed 's/^/| /' conftest.$ac_ext >&5
42385 ( exit $ac_status )
42386 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
42387 See \`config.log' for more details." >&5
42388 echo "$as_me: error: cannot compute sizeof (long long), 77
42389 See \`config.log' for more details." >&2;}
42390 { (exit 1); exit 1; }; }
42392 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42397 ac_cv_sizeof_long_long=0
42400 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
42401 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
42402 cat >>confdefs.h <<_ACEOF
42403 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
42407 echo "$as_me:$LINENO: checking for wchar_t" >&5
42408 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
42409 if test "${ac_cv_type_wchar_t+set}" = set; then
42410 echo $ECHO_N "(cached) $ECHO_C" >&6
42412 cat >conftest.$ac_ext <<_ACEOF
42415 cat confdefs.h >>conftest.$ac_ext
42416 cat >>conftest.$ac_ext <<_ACEOF
42417 /* end confdefs.h. */
42418 $ac_includes_default
42424 if (sizeof (wchar_t))
42430 rm -f conftest.$ac_objext
42431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42432 (eval $ac_compile) 2>conftest.er1
42434 grep -v '^ *+' conftest.er1 >conftest.err
42436 cat conftest.err >&5
42437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42438 (exit $ac_status); } &&
42439 { ac_try='test -z "$ac_c_werror_flag"
42440 || test ! -s conftest.err'
42441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42442 (eval $ac_try) 2>&5
42444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42445 (exit $ac_status); }; } &&
42446 { ac_try='test -s conftest.$ac_objext'
42447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42448 (eval $ac_try) 2>&5
42450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42451 (exit $ac_status); }; }; then
42452 ac_cv_type_wchar_t=yes
42454 echo "$as_me: failed program was:" >&5
42455 sed 's/^/| /' conftest.$ac_ext >&5
42457 ac_cv_type_wchar_t=no
42459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42461 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
42462 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
42464 echo "$as_me:$LINENO: checking size of wchar_t" >&5
42465 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
42466 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
42467 echo $ECHO_N "(cached) $ECHO_C" >&6
42469 if test "$ac_cv_type_wchar_t" = yes; then
42470 # The cast to unsigned long works around a bug in the HP C Compiler
42471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
42472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
42473 # This bug is HP SR number 8606223364.
42474 if test "$cross_compiling" = yes; then
42475 # Depending upon the size, compute the lo and hi bounds.
42476 cat >conftest.$ac_ext <<_ACEOF
42479 cat confdefs.h >>conftest.$ac_ext
42480 cat >>conftest.$ac_ext <<_ACEOF
42481 /* end confdefs.h. */
42482 $ac_includes_default
42486 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
42493 rm -f conftest.$ac_objext
42494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42495 (eval $ac_compile) 2>conftest.er1
42497 grep -v '^ *+' conftest.er1 >conftest.err
42499 cat conftest.err >&5
42500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42501 (exit $ac_status); } &&
42502 { ac_try='test -z "$ac_c_werror_flag"
42503 || test ! -s conftest.err'
42504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42505 (eval $ac_try) 2>&5
42507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42508 (exit $ac_status); }; } &&
42509 { ac_try='test -s conftest.$ac_objext'
42510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42511 (eval $ac_try) 2>&5
42513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42514 (exit $ac_status); }; }; then
42517 cat >conftest.$ac_ext <<_ACEOF
42520 cat confdefs.h >>conftest.$ac_ext
42521 cat >>conftest.$ac_ext <<_ACEOF
42522 /* end confdefs.h. */
42523 $ac_includes_default
42527 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42534 rm -f conftest.$ac_objext
42535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42536 (eval $ac_compile) 2>conftest.er1
42538 grep -v '^ *+' conftest.er1 >conftest.err
42540 cat conftest.err >&5
42541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42542 (exit $ac_status); } &&
42543 { ac_try='test -z "$ac_c_werror_flag"
42544 || test ! -s conftest.err'
42545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42546 (eval $ac_try) 2>&5
42548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42549 (exit $ac_status); }; } &&
42550 { ac_try='test -s conftest.$ac_objext'
42551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42552 (eval $ac_try) 2>&5
42554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42555 (exit $ac_status); }; }; then
42556 ac_hi=$ac_mid; break
42558 echo "$as_me: failed program was:" >&5
42559 sed 's/^/| /' conftest.$ac_ext >&5
42561 ac_lo=`expr $ac_mid + 1`
42562 if test $ac_lo -le $ac_mid; then
42566 ac_mid=`expr 2 '*' $ac_mid + 1`
42568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42571 echo "$as_me: failed program was:" >&5
42572 sed 's/^/| /' conftest.$ac_ext >&5
42574 cat >conftest.$ac_ext <<_ACEOF
42577 cat confdefs.h >>conftest.$ac_ext
42578 cat >>conftest.$ac_ext <<_ACEOF
42579 /* end confdefs.h. */
42580 $ac_includes_default
42584 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
42591 rm -f conftest.$ac_objext
42592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42593 (eval $ac_compile) 2>conftest.er1
42595 grep -v '^ *+' conftest.er1 >conftest.err
42597 cat conftest.err >&5
42598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42599 (exit $ac_status); } &&
42600 { ac_try='test -z "$ac_c_werror_flag"
42601 || test ! -s conftest.err'
42602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42603 (eval $ac_try) 2>&5
42605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42606 (exit $ac_status); }; } &&
42607 { ac_try='test -s conftest.$ac_objext'
42608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42609 (eval $ac_try) 2>&5
42611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42612 (exit $ac_status); }; }; then
42615 cat >conftest.$ac_ext <<_ACEOF
42618 cat confdefs.h >>conftest.$ac_ext
42619 cat >>conftest.$ac_ext <<_ACEOF
42620 /* end confdefs.h. */
42621 $ac_includes_default
42625 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
42632 rm -f conftest.$ac_objext
42633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42634 (eval $ac_compile) 2>conftest.er1
42636 grep -v '^ *+' conftest.er1 >conftest.err
42638 cat conftest.err >&5
42639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42640 (exit $ac_status); } &&
42641 { ac_try='test -z "$ac_c_werror_flag"
42642 || test ! -s conftest.err'
42643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42644 (eval $ac_try) 2>&5
42646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42647 (exit $ac_status); }; } &&
42648 { ac_try='test -s conftest.$ac_objext'
42649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42650 (eval $ac_try) 2>&5
42652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42653 (exit $ac_status); }; }; then
42654 ac_lo=$ac_mid; break
42656 echo "$as_me: failed program was:" >&5
42657 sed 's/^/| /' conftest.$ac_ext >&5
42659 ac_hi=`expr '(' $ac_mid ')' - 1`
42660 if test $ac_mid -le $ac_hi; then
42664 ac_mid=`expr 2 '*' $ac_mid`
42666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42669 echo "$as_me: failed program was:" >&5
42670 sed 's/^/| /' conftest.$ac_ext >&5
42674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42677 # Binary search between lo and hi bounds.
42678 while test "x$ac_lo" != "x$ac_hi"; do
42679 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42680 cat >conftest.$ac_ext <<_ACEOF
42683 cat confdefs.h >>conftest.$ac_ext
42684 cat >>conftest.$ac_ext <<_ACEOF
42685 /* end confdefs.h. */
42686 $ac_includes_default
42690 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42697 rm -f conftest.$ac_objext
42698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42699 (eval $ac_compile) 2>conftest.er1
42701 grep -v '^ *+' conftest.er1 >conftest.err
42703 cat conftest.err >&5
42704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42705 (exit $ac_status); } &&
42706 { ac_try='test -z "$ac_c_werror_flag"
42707 || test ! -s conftest.err'
42708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42709 (eval $ac_try) 2>&5
42711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42712 (exit $ac_status); }; } &&
42713 { ac_try='test -s conftest.$ac_objext'
42714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42715 (eval $ac_try) 2>&5
42717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42718 (exit $ac_status); }; }; then
42721 echo "$as_me: failed program was:" >&5
42722 sed 's/^/| /' conftest.$ac_ext >&5
42724 ac_lo=`expr '(' $ac_mid ')' + 1`
42726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42729 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42730 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42731 See \`config.log' for more details." >&5
42732 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42733 See \`config.log' for more details." >&2;}
42734 { (exit 1); exit 1; }; } ;;
42737 if test "$cross_compiling" = yes; then
42738 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42739 See \`config.log' for more details." >&5
42740 echo "$as_me: error: cannot run test program while cross compiling
42741 See \`config.log' for more details." >&2;}
42742 { (exit 1); exit 1; }; }
42744 cat >conftest.$ac_ext <<_ACEOF
42747 cat confdefs.h >>conftest.$ac_ext
42748 cat >>conftest.$ac_ext <<_ACEOF
42749 /* end confdefs.h. */
42750 $ac_includes_default
42751 long longval () { return (long) (sizeof (wchar_t)); }
42752 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42754 #include <stdlib.h>
42759 FILE *f = fopen ("conftest.val", "w");
42762 if (((long) (sizeof (wchar_t))) < 0)
42764 long i = longval ();
42765 if (i != ((long) (sizeof (wchar_t))))
42767 fprintf (f, "%ld\n", i);
42771 unsigned long i = ulongval ();
42772 if (i != ((long) (sizeof (wchar_t))))
42774 fprintf (f, "%lu\n", i);
42776 exit (ferror (f) || fclose (f) != 0);
42782 rm -f conftest$ac_exeext
42783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42784 (eval $ac_link) 2>&5
42786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42789 (eval $ac_try) 2>&5
42791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42792 (exit $ac_status); }; }; then
42793 ac_cv_sizeof_wchar_t=`cat conftest.val`
42795 echo "$as_me: program exited with status $ac_status" >&5
42796 echo "$as_me: failed program was:" >&5
42797 sed 's/^/| /' conftest.$ac_ext >&5
42799 ( exit $ac_status )
42800 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42801 See \`config.log' for more details." >&5
42802 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42803 See \`config.log' for more details." >&2;}
42804 { (exit 1); exit 1; }; }
42806 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42811 ac_cv_sizeof_wchar_t=0
42814 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42815 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42816 cat >>confdefs.h <<_ACEOF
42817 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42822 if test "$ac_cv_sizeof_int" -lt 4 ; then
42823 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42824 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42827 cat >>confdefs.h <<\_ACEOF
42828 #define LBER_INT_T long
42833 cat >>confdefs.h <<\_ACEOF
42834 #define LBER_INT_T int
42840 cat >>confdefs.h <<\_ACEOF
42841 #define LBER_LEN_T long
42845 cat >>confdefs.h <<\_ACEOF
42846 #define LBER_SOCKET_T int
42850 cat >>confdefs.h <<\_ACEOF
42851 #define LBER_TAG_T long
42855 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
42856 if test $ac_cv_sizeof_long_long -gt 4 ; then
42857 ol_with_mp=longlong
42859 cat >>confdefs.h <<\_ACEOF
42860 #define USE_MP_LONG_LONG 1
42863 elif test $ol_with_mp = longlong ; then
42864 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
42865 echo "$as_me: error: long long unusable for multiple precision" >&2;}
42866 { (exit 1); exit 1; }; }
42869 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
42870 if test $ac_cv_sizeof_long -gt 4 ; then
42873 cat >>confdefs.h <<\_ACEOF
42874 #define USE_MP_LONG 1
42877 elif test $ol_with_mp = long ; then
42878 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
42879 echo "$as_me: error: long unusable for multiple precision" >&2;}
42880 { (exit 1); exit 1; }; }
42883 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
42885 for ac_header in openssl/bn.h
42887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42889 echo "$as_me:$LINENO: checking for $ac_header" >&5
42890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42892 echo $ECHO_N "(cached) $ECHO_C" >&6
42894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42897 # Is the header compilable?
42898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42900 cat >conftest.$ac_ext <<_ACEOF
42903 cat confdefs.h >>conftest.$ac_ext
42904 cat >>conftest.$ac_ext <<_ACEOF
42905 /* end confdefs.h. */
42906 $ac_includes_default
42907 #include <$ac_header>
42909 rm -f conftest.$ac_objext
42910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42911 (eval $ac_compile) 2>conftest.er1
42913 grep -v '^ *+' conftest.er1 >conftest.err
42915 cat conftest.err >&5
42916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42917 (exit $ac_status); } &&
42918 { ac_try='test -z "$ac_c_werror_flag"
42919 || test ! -s conftest.err'
42920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42921 (eval $ac_try) 2>&5
42923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42924 (exit $ac_status); }; } &&
42925 { ac_try='test -s conftest.$ac_objext'
42926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42927 (eval $ac_try) 2>&5
42929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42930 (exit $ac_status); }; }; then
42931 ac_header_compiler=yes
42933 echo "$as_me: failed program was:" >&5
42934 sed 's/^/| /' conftest.$ac_ext >&5
42936 ac_header_compiler=no
42938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42940 echo "${ECHO_T}$ac_header_compiler" >&6
42942 # Is the header present?
42943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42945 cat >conftest.$ac_ext <<_ACEOF
42948 cat confdefs.h >>conftest.$ac_ext
42949 cat >>conftest.$ac_ext <<_ACEOF
42950 /* end confdefs.h. */
42951 #include <$ac_header>
42953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42956 grep -v '^ *+' conftest.er1 >conftest.err
42958 cat conftest.err >&5
42959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42960 (exit $ac_status); } >/dev/null; then
42961 if test -s conftest.err; then
42962 ac_cpp_err=$ac_c_preproc_warn_flag
42963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42970 if test -z "$ac_cpp_err"; then
42971 ac_header_preproc=yes
42973 echo "$as_me: failed program was:" >&5
42974 sed 's/^/| /' conftest.$ac_ext >&5
42976 ac_header_preproc=no
42978 rm -f conftest.err conftest.$ac_ext
42979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42980 echo "${ECHO_T}$ac_header_preproc" >&6
42982 # So? What about this header?
42983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42989 ac_header_preproc=yes
42992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43006 ## --------------------------------------------- ##
43007 ## Report this to <http://www.openldap.org/its/> ##
43008 ## --------------------------------------------- ##
43011 sed "s/^/$as_me: WARNING: /" >&2
43014 echo "$as_me:$LINENO: checking for $ac_header" >&5
43015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43017 echo $ECHO_N "(cached) $ECHO_C" >&6
43019 eval "$as_ac_Header=\$ac_header_preproc"
43021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43026 cat >>confdefs.h <<_ACEOF
43027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43035 for ac_header in openssl/crypto.h
43037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43039 echo "$as_me:$LINENO: checking for $ac_header" >&5
43040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43042 echo $ECHO_N "(cached) $ECHO_C" >&6
43044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43047 # Is the header compilable?
43048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43050 cat >conftest.$ac_ext <<_ACEOF
43053 cat confdefs.h >>conftest.$ac_ext
43054 cat >>conftest.$ac_ext <<_ACEOF
43055 /* end confdefs.h. */
43056 $ac_includes_default
43057 #include <$ac_header>
43059 rm -f conftest.$ac_objext
43060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43061 (eval $ac_compile) 2>conftest.er1
43063 grep -v '^ *+' conftest.er1 >conftest.err
43065 cat conftest.err >&5
43066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43067 (exit $ac_status); } &&
43068 { ac_try='test -z "$ac_c_werror_flag"
43069 || test ! -s conftest.err'
43070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43071 (eval $ac_try) 2>&5
43073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43074 (exit $ac_status); }; } &&
43075 { ac_try='test -s conftest.$ac_objext'
43076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43077 (eval $ac_try) 2>&5
43079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43080 (exit $ac_status); }; }; then
43081 ac_header_compiler=yes
43083 echo "$as_me: failed program was:" >&5
43084 sed 's/^/| /' conftest.$ac_ext >&5
43086 ac_header_compiler=no
43088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43090 echo "${ECHO_T}$ac_header_compiler" >&6
43092 # Is the header present?
43093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43095 cat >conftest.$ac_ext <<_ACEOF
43098 cat confdefs.h >>conftest.$ac_ext
43099 cat >>conftest.$ac_ext <<_ACEOF
43100 /* end confdefs.h. */
43101 #include <$ac_header>
43103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43106 grep -v '^ *+' conftest.er1 >conftest.err
43108 cat conftest.err >&5
43109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43110 (exit $ac_status); } >/dev/null; then
43111 if test -s conftest.err; then
43112 ac_cpp_err=$ac_c_preproc_warn_flag
43113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43120 if test -z "$ac_cpp_err"; then
43121 ac_header_preproc=yes
43123 echo "$as_me: failed program was:" >&5
43124 sed 's/^/| /' conftest.$ac_ext >&5
43126 ac_header_preproc=no
43128 rm -f conftest.err conftest.$ac_ext
43129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43130 echo "${ECHO_T}$ac_header_preproc" >&6
43132 # So? What about this header?
43133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43139 ac_header_preproc=yes
43142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43156 ## --------------------------------------------- ##
43157 ## Report this to <http://www.openldap.org/its/> ##
43158 ## --------------------------------------------- ##
43161 sed "s/^/$as_me: WARNING: /" >&2
43164 echo "$as_me:$LINENO: checking for $ac_header" >&5
43165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43167 echo $ECHO_N "(cached) $ECHO_C" >&6
43169 eval "$as_ac_Header=\$ac_header_preproc"
43171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43176 cat >>confdefs.h <<_ACEOF
43177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43184 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
43185 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
43186 test "$ol_with_tls" = "found" ; then
43189 cat >>confdefs.h <<\_ACEOF
43190 #define USE_MP_BIGNUM 1
43193 elif test $ol_with_mp = bignum ; then
43194 { { echo "$as_me:$LINENO: error: bignum not available" >&5
43195 echo "$as_me: error: bignum not available" >&2;}
43196 { (exit 1); exit 1; }; }
43199 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
43201 for ac_header in gmp.h
43203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43205 echo "$as_me:$LINENO: checking for $ac_header" >&5
43206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43208 echo $ECHO_N "(cached) $ECHO_C" >&6
43210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43213 # Is the header compilable?
43214 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43216 cat >conftest.$ac_ext <<_ACEOF
43219 cat confdefs.h >>conftest.$ac_ext
43220 cat >>conftest.$ac_ext <<_ACEOF
43221 /* end confdefs.h. */
43222 $ac_includes_default
43223 #include <$ac_header>
43225 rm -f conftest.$ac_objext
43226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43227 (eval $ac_compile) 2>conftest.er1
43229 grep -v '^ *+' conftest.er1 >conftest.err
43231 cat conftest.err >&5
43232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43233 (exit $ac_status); } &&
43234 { ac_try='test -z "$ac_c_werror_flag"
43235 || test ! -s conftest.err'
43236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43237 (eval $ac_try) 2>&5
43239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43240 (exit $ac_status); }; } &&
43241 { ac_try='test -s conftest.$ac_objext'
43242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43243 (eval $ac_try) 2>&5
43245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43246 (exit $ac_status); }; }; then
43247 ac_header_compiler=yes
43249 echo "$as_me: failed program was:" >&5
43250 sed 's/^/| /' conftest.$ac_ext >&5
43252 ac_header_compiler=no
43254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43256 echo "${ECHO_T}$ac_header_compiler" >&6
43258 # Is the header present?
43259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43261 cat >conftest.$ac_ext <<_ACEOF
43264 cat confdefs.h >>conftest.$ac_ext
43265 cat >>conftest.$ac_ext <<_ACEOF
43266 /* end confdefs.h. */
43267 #include <$ac_header>
43269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43272 grep -v '^ *+' conftest.er1 >conftest.err
43274 cat conftest.err >&5
43275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43276 (exit $ac_status); } >/dev/null; then
43277 if test -s conftest.err; then
43278 ac_cpp_err=$ac_c_preproc_warn_flag
43279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43286 if test -z "$ac_cpp_err"; then
43287 ac_header_preproc=yes
43289 echo "$as_me: failed program was:" >&5
43290 sed 's/^/| /' conftest.$ac_ext >&5
43292 ac_header_preproc=no
43294 rm -f conftest.err conftest.$ac_ext
43295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43296 echo "${ECHO_T}$ac_header_preproc" >&6
43298 # So? What about this header?
43299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43305 ac_header_preproc=yes
43308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43322 ## --------------------------------------------- ##
43323 ## Report this to <http://www.openldap.org/its/> ##
43324 ## --------------------------------------------- ##
43327 sed "s/^/$as_me: WARNING: /" >&2
43330 echo "$as_me:$LINENO: checking for $ac_header" >&5
43331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43333 echo $ECHO_N "(cached) $ECHO_C" >&6
43335 eval "$as_ac_Header=\$ac_header_preproc"
43337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43342 cat >>confdefs.h <<_ACEOF
43343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43351 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
43352 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
43353 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
43354 echo $ECHO_N "(cached) $ECHO_C" >&6
43356 ac_check_lib_save_LIBS=$LIBS
43358 cat >conftest.$ac_ext <<_ACEOF
43361 cat confdefs.h >>conftest.$ac_ext
43362 cat >>conftest.$ac_ext <<_ACEOF
43363 /* end confdefs.h. */
43365 /* Override any gcc2 internal prototype to avoid an error. */
43369 /* We use char because int might match the return type of a gcc2
43370 builtin and then its argument prototype would still apply. */
43371 char __gmpz_add_ui ();
43380 rm -f conftest.$ac_objext conftest$ac_exeext
43381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43382 (eval $ac_link) 2>conftest.er1
43384 grep -v '^ *+' conftest.er1 >conftest.err
43386 cat conftest.err >&5
43387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43388 (exit $ac_status); } &&
43389 { ac_try='test -z "$ac_c_werror_flag"
43390 || test ! -s conftest.err'
43391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43392 (eval $ac_try) 2>&5
43394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43395 (exit $ac_status); }; } &&
43396 { ac_try='test -s conftest$ac_exeext'
43397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43398 (eval $ac_try) 2>&5
43400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43401 (exit $ac_status); }; }; then
43402 ac_cv_lib_gmp___gmpz_add_ui=yes
43404 echo "$as_me: failed program was:" >&5
43405 sed 's/^/| /' conftest.$ac_ext >&5
43407 ac_cv_lib_gmp___gmpz_add_ui=no
43409 rm -f conftest.err conftest.$ac_objext \
43410 conftest$ac_exeext conftest.$ac_ext
43411 LIBS=$ac_check_lib_save_LIBS
43413 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
43414 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
43415 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
43416 cat >>confdefs.h <<_ACEOF
43417 #define HAVE_LIBGMP 1
43424 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
43426 cat >>confdefs.h <<\_ACEOF
43427 #define USE_MP_GMP 1
43431 elif test $ol_with_mp = gmp ; then
43432 { { echo "$as_me:$LINENO: error: gmp not available" >&5
43433 echo "$as_me: error: gmp not available" >&2;}
43434 { (exit 1); exit 1; }; }
43437 if test $ol_with_mp = auto ; then
43441 echo "$as_me:$LINENO: checking for working memcmp" >&5
43442 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
43443 if test "${ac_cv_func_memcmp_working+set}" = set; then
43444 echo $ECHO_N "(cached) $ECHO_C" >&6
43446 if test "$cross_compiling" = yes; then
43447 ac_cv_func_memcmp_working=no
43449 cat >conftest.$ac_ext <<_ACEOF
43452 cat confdefs.h >>conftest.$ac_ext
43453 cat >>conftest.$ac_ext <<_ACEOF
43454 /* end confdefs.h. */
43455 $ac_includes_default
43460 /* Some versions of memcmp are not 8-bit clean. */
43461 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
43462 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
43465 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
43466 or more and with at least one buffer not starting on a 4-byte boundary.
43467 William Lewis provided this test program. */
43472 for (i = 0; i < 4; i++)
43476 strcpy (a, "--------01111111");
43477 strcpy (b, "--------10000000");
43478 if (memcmp (a, b, 16) >= 0)
43488 rm -f conftest$ac_exeext
43489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43490 (eval $ac_link) 2>&5
43492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43495 (eval $ac_try) 2>&5
43497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43498 (exit $ac_status); }; }; then
43499 ac_cv_func_memcmp_working=yes
43501 echo "$as_me: program exited with status $ac_status" >&5
43502 echo "$as_me: failed program was:" >&5
43503 sed 's/^/| /' conftest.$ac_ext >&5
43505 ( exit $ac_status )
43506 ac_cv_func_memcmp_working=no
43508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43511 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
43512 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
43513 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
43514 "memcmp.$ac_objext" | \
43515 *" memcmp.$ac_objext" | \
43516 "memcmp.$ac_objext "* | \
43517 *" memcmp.$ac_objext "* ) ;;
43518 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
43523 if test $ac_cv_func_memcmp_working = no ; then
43525 cat >>confdefs.h <<\_ACEOF
43526 #define NEED_MEMCMP_REPLACEMENT 1
43532 for ac_func in strftime
43534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43535 echo "$as_me:$LINENO: checking for $ac_func" >&5
43536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43537 if eval "test \"\${$as_ac_var+set}\" = set"; then
43538 echo $ECHO_N "(cached) $ECHO_C" >&6
43540 cat >conftest.$ac_ext <<_ACEOF
43543 cat confdefs.h >>conftest.$ac_ext
43544 cat >>conftest.$ac_ext <<_ACEOF
43545 /* end confdefs.h. */
43546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43548 #define $ac_func innocuous_$ac_func
43550 /* System header to define __stub macros and hopefully few prototypes,
43551 which can conflict with char $ac_func (); below.
43552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43553 <limits.h> exists even on freestanding compilers. */
43556 # include <limits.h>
43558 # include <assert.h>
43563 /* Override any gcc2 internal prototype to avoid an error. */
43568 /* We use char because int might match the return type of a gcc2
43569 builtin and then its argument prototype would still apply. */
43571 /* The GNU C library defines this for functions which it implements
43572 to always fail with ENOSYS. Some functions are actually named
43573 something starting with __ and the normal name is an alias. */
43574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43577 char (*f) () = $ac_func;
43586 return f != $ac_func;
43591 rm -f conftest.$ac_objext conftest$ac_exeext
43592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43593 (eval $ac_link) 2>conftest.er1
43595 grep -v '^ *+' conftest.er1 >conftest.err
43597 cat conftest.err >&5
43598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43599 (exit $ac_status); } &&
43600 { ac_try='test -z "$ac_c_werror_flag"
43601 || test ! -s conftest.err'
43602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43603 (eval $ac_try) 2>&5
43605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43606 (exit $ac_status); }; } &&
43607 { ac_try='test -s conftest$ac_exeext'
43608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43609 (eval $ac_try) 2>&5
43611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43612 (exit $ac_status); }; }; then
43613 eval "$as_ac_var=yes"
43615 echo "$as_me: failed program was:" >&5
43616 sed 's/^/| /' conftest.$ac_ext >&5
43618 eval "$as_ac_var=no"
43620 rm -f conftest.err conftest.$ac_objext \
43621 conftest$ac_exeext conftest.$ac_ext
43623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43625 if test `eval echo '${'$as_ac_var'}'` = yes; then
43626 cat >>confdefs.h <<_ACEOF
43627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43631 # strftime is in -lintl on SCO UNIX.
43632 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
43633 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
43634 if test "${ac_cv_lib_intl_strftime+set}" = set; then
43635 echo $ECHO_N "(cached) $ECHO_C" >&6
43637 ac_check_lib_save_LIBS=$LIBS
43638 LIBS="-lintl $LIBS"
43639 cat >conftest.$ac_ext <<_ACEOF
43642 cat confdefs.h >>conftest.$ac_ext
43643 cat >>conftest.$ac_ext <<_ACEOF
43644 /* end confdefs.h. */
43646 /* Override any gcc2 internal prototype to avoid an error. */
43650 /* We use char because int might match the return type of a gcc2
43651 builtin and then its argument prototype would still apply. */
43661 rm -f conftest.$ac_objext conftest$ac_exeext
43662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43663 (eval $ac_link) 2>conftest.er1
43665 grep -v '^ *+' conftest.er1 >conftest.err
43667 cat conftest.err >&5
43668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43669 (exit $ac_status); } &&
43670 { ac_try='test -z "$ac_c_werror_flag"
43671 || test ! -s conftest.err'
43672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43673 (eval $ac_try) 2>&5
43675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43676 (exit $ac_status); }; } &&
43677 { ac_try='test -s conftest$ac_exeext'
43678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43679 (eval $ac_try) 2>&5
43681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43682 (exit $ac_status); }; }; then
43683 ac_cv_lib_intl_strftime=yes
43685 echo "$as_me: failed program was:" >&5
43686 sed 's/^/| /' conftest.$ac_ext >&5
43688 ac_cv_lib_intl_strftime=no
43690 rm -f conftest.err conftest.$ac_objext \
43691 conftest$ac_exeext conftest.$ac_ext
43692 LIBS=$ac_check_lib_save_LIBS
43694 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
43695 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
43696 if test $ac_cv_lib_intl_strftime = yes; then
43697 cat >>confdefs.h <<\_ACEOF
43698 #define HAVE_STRFTIME 1
43701 LIBS="-lintl $LIBS"
43708 echo "$as_me:$LINENO: checking for inet_aton()" >&5
43709 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
43710 if test "${ol_cv_func_inet_aton+set}" = set; then
43711 echo $ECHO_N "(cached) $ECHO_C" >&6
43713 cat >conftest.$ac_ext <<_ACEOF
43716 cat confdefs.h >>conftest.$ac_ext
43717 cat >>conftest.$ac_ext <<_ACEOF
43718 /* end confdefs.h. */
43720 #ifdef HAVE_SYS_TYPES_H
43721 # include <sys/types.h>
43723 #ifdef HAVE_SYS_SOCKET_H
43724 # include <sys/socket.h>
43725 # ifdef HAVE_SYS_SELECT_H
43726 # include <sys/select.h>
43728 # include <netinet/in.h>
43729 # ifdef HAVE_ARPA_INET_H
43730 # include <arpa/inet.h>
43738 int rc = inet_aton( "255.255.255.255", &in );
43743 rm -f conftest.$ac_objext conftest$ac_exeext
43744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43745 (eval $ac_link) 2>conftest.er1
43747 grep -v '^ *+' conftest.er1 >conftest.err
43749 cat conftest.err >&5
43750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43751 (exit $ac_status); } &&
43752 { ac_try='test -z "$ac_c_werror_flag"
43753 || test ! -s conftest.err'
43754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43755 (eval $ac_try) 2>&5
43757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43758 (exit $ac_status); }; } &&
43759 { ac_try='test -s conftest$ac_exeext'
43760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43761 (eval $ac_try) 2>&5
43763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43764 (exit $ac_status); }; }; then
43765 ol_cv_func_inet_aton=yes
43767 echo "$as_me: failed program was:" >&5
43768 sed 's/^/| /' conftest.$ac_ext >&5
43770 ol_cv_func_inet_aton=no
43772 rm -f conftest.err conftest.$ac_objext \
43773 conftest$ac_exeext conftest.$ac_ext
43775 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
43776 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
43777 if test $ol_cv_func_inet_aton != no; then
43779 cat >>confdefs.h <<\_ACEOF
43780 #define HAVE_INET_ATON 1
43786 echo "$as_me:$LINENO: checking for _spawnlp" >&5
43787 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
43788 if test "${ac_cv_func__spawnlp+set}" = set; then
43789 echo $ECHO_N "(cached) $ECHO_C" >&6
43791 cat >conftest.$ac_ext <<_ACEOF
43794 cat confdefs.h >>conftest.$ac_ext
43795 cat >>conftest.$ac_ext <<_ACEOF
43796 /* end confdefs.h. */
43797 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
43798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43799 #define _spawnlp innocuous__spawnlp
43801 /* System header to define __stub macros and hopefully few prototypes,
43802 which can conflict with char _spawnlp (); below.
43803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43804 <limits.h> exists even on freestanding compilers. */
43807 # include <limits.h>
43809 # include <assert.h>
43814 /* Override any gcc2 internal prototype to avoid an error. */
43819 /* We use char because int might match the return type of a gcc2
43820 builtin and then its argument prototype would still apply. */
43822 /* The GNU C library defines this for functions which it implements
43823 to always fail with ENOSYS. Some functions are actually named
43824 something starting with __ and the normal name is an alias. */
43825 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
43828 char (*f) () = _spawnlp;
43837 return f != _spawnlp;
43842 rm -f conftest.$ac_objext conftest$ac_exeext
43843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43844 (eval $ac_link) 2>conftest.er1
43846 grep -v '^ *+' conftest.er1 >conftest.err
43848 cat conftest.err >&5
43849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43850 (exit $ac_status); } &&
43851 { ac_try='test -z "$ac_c_werror_flag"
43852 || test ! -s conftest.err'
43853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43854 (eval $ac_try) 2>&5
43856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43857 (exit $ac_status); }; } &&
43858 { ac_try='test -s conftest$ac_exeext'
43859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43860 (eval $ac_try) 2>&5
43862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43863 (exit $ac_status); }; }; then
43864 ac_cv_func__spawnlp=yes
43866 echo "$as_me: failed program was:" >&5
43867 sed 's/^/| /' conftest.$ac_ext >&5
43869 ac_cv_func__spawnlp=no
43871 rm -f conftest.err conftest.$ac_objext \
43872 conftest$ac_exeext conftest.$ac_ext
43874 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
43875 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
43876 if test $ac_cv_func__spawnlp = yes; then
43878 cat >>confdefs.h <<\_ACEOF
43879 #define HAVE_SPAWNLP 1
43885 echo "$as_me:$LINENO: checking for _snprintf" >&5
43886 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
43887 if test "${ac_cv_func__snprintf+set}" = set; then
43888 echo $ECHO_N "(cached) $ECHO_C" >&6
43890 cat >conftest.$ac_ext <<_ACEOF
43893 cat confdefs.h >>conftest.$ac_ext
43894 cat >>conftest.$ac_ext <<_ACEOF
43895 /* end confdefs.h. */
43896 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
43897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43898 #define _snprintf innocuous__snprintf
43900 /* System header to define __stub macros and hopefully few prototypes,
43901 which can conflict with char _snprintf (); below.
43902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43903 <limits.h> exists even on freestanding compilers. */
43906 # include <limits.h>
43908 # include <assert.h>
43913 /* Override any gcc2 internal prototype to avoid an error. */
43918 /* We use char because int might match the return type of a gcc2
43919 builtin and then its argument prototype would still apply. */
43921 /* The GNU C library defines this for functions which it implements
43922 to always fail with ENOSYS. Some functions are actually named
43923 something starting with __ and the normal name is an alias. */
43924 #if defined (__stub__snprintf) || defined (__stub____snprintf)
43927 char (*f) () = _snprintf;
43936 return f != _snprintf;
43941 rm -f conftest.$ac_objext conftest$ac_exeext
43942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43943 (eval $ac_link) 2>conftest.er1
43945 grep -v '^ *+' conftest.er1 >conftest.err
43947 cat conftest.err >&5
43948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43949 (exit $ac_status); } &&
43950 { ac_try='test -z "$ac_c_werror_flag"
43951 || test ! -s conftest.err'
43952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43953 (eval $ac_try) 2>&5
43955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43956 (exit $ac_status); }; } &&
43957 { ac_try='test -s conftest$ac_exeext'
43958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43959 (eval $ac_try) 2>&5
43961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43962 (exit $ac_status); }; }; then
43963 ac_cv_func__snprintf=yes
43965 echo "$as_me: failed program was:" >&5
43966 sed 's/^/| /' conftest.$ac_ext >&5
43968 ac_cv_func__snprintf=no
43970 rm -f conftest.err conftest.$ac_objext \
43971 conftest$ac_exeext conftest.$ac_ext
43973 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
43974 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
43975 if test $ac_cv_func__snprintf = yes; then
43976 ac_cv_func_snprintf=yes
43978 cat >>confdefs.h <<\_ACEOF
43979 #define snprintf _snprintf
43986 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
43987 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
43988 if test "${ac_cv_func__vsnprintf+set}" = set; then
43989 echo $ECHO_N "(cached) $ECHO_C" >&6
43991 cat >conftest.$ac_ext <<_ACEOF
43994 cat confdefs.h >>conftest.$ac_ext
43995 cat >>conftest.$ac_ext <<_ACEOF
43996 /* end confdefs.h. */
43997 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
43998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43999 #define _vsnprintf innocuous__vsnprintf
44001 /* System header to define __stub macros and hopefully few prototypes,
44002 which can conflict with char _vsnprintf (); below.
44003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44004 <limits.h> exists even on freestanding compilers. */
44007 # include <limits.h>
44009 # include <assert.h>
44014 /* Override any gcc2 internal prototype to avoid an error. */
44019 /* We use char because int might match the return type of a gcc2
44020 builtin and then its argument prototype would still apply. */
44021 char _vsnprintf ();
44022 /* The GNU C library defines this for functions which it implements
44023 to always fail with ENOSYS. Some functions are actually named
44024 something starting with __ and the normal name is an alias. */
44025 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
44028 char (*f) () = _vsnprintf;
44037 return f != _vsnprintf;
44042 rm -f conftest.$ac_objext conftest$ac_exeext
44043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44044 (eval $ac_link) 2>conftest.er1
44046 grep -v '^ *+' conftest.er1 >conftest.err
44048 cat conftest.err >&5
44049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44050 (exit $ac_status); } &&
44051 { ac_try='test -z "$ac_c_werror_flag"
44052 || test ! -s conftest.err'
44053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44054 (eval $ac_try) 2>&5
44056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44057 (exit $ac_status); }; } &&
44058 { ac_try='test -s conftest$ac_exeext'
44059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44060 (eval $ac_try) 2>&5
44062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44063 (exit $ac_status); }; }; then
44064 ac_cv_func__vsnprintf=yes
44066 echo "$as_me: failed program was:" >&5
44067 sed 's/^/| /' conftest.$ac_ext >&5
44069 ac_cv_func__vsnprintf=no
44071 rm -f conftest.err conftest.$ac_objext \
44072 conftest$ac_exeext conftest.$ac_ext
44074 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
44075 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
44076 if test $ac_cv_func__vsnprintf = yes; then
44077 ac_cv_func_vsnprintf=yes
44079 cat >>confdefs.h <<\_ACEOF
44080 #define vsnprintf _vsnprintf
44088 for ac_func in vprintf
44090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44091 echo "$as_me:$LINENO: checking for $ac_func" >&5
44092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44093 if eval "test \"\${$as_ac_var+set}\" = set"; then
44094 echo $ECHO_N "(cached) $ECHO_C" >&6
44096 cat >conftest.$ac_ext <<_ACEOF
44099 cat confdefs.h >>conftest.$ac_ext
44100 cat >>conftest.$ac_ext <<_ACEOF
44101 /* end confdefs.h. */
44102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44104 #define $ac_func innocuous_$ac_func
44106 /* System header to define __stub macros and hopefully few prototypes,
44107 which can conflict with char $ac_func (); below.
44108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44109 <limits.h> exists even on freestanding compilers. */
44112 # include <limits.h>
44114 # include <assert.h>
44119 /* Override any gcc2 internal prototype to avoid an error. */
44124 /* We use char because int might match the return type of a gcc2
44125 builtin and then its argument prototype would still apply. */
44127 /* The GNU C library defines this for functions which it implements
44128 to always fail with ENOSYS. Some functions are actually named
44129 something starting with __ and the normal name is an alias. */
44130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44133 char (*f) () = $ac_func;
44142 return f != $ac_func;
44147 rm -f conftest.$ac_objext conftest$ac_exeext
44148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44149 (eval $ac_link) 2>conftest.er1
44151 grep -v '^ *+' conftest.er1 >conftest.err
44153 cat conftest.err >&5
44154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44155 (exit $ac_status); } &&
44156 { ac_try='test -z "$ac_c_werror_flag"
44157 || test ! -s conftest.err'
44158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44159 (eval $ac_try) 2>&5
44161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44162 (exit $ac_status); }; } &&
44163 { ac_try='test -s conftest$ac_exeext'
44164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44165 (eval $ac_try) 2>&5
44167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44168 (exit $ac_status); }; }; then
44169 eval "$as_ac_var=yes"
44171 echo "$as_me: failed program was:" >&5
44172 sed 's/^/| /' conftest.$ac_ext >&5
44174 eval "$as_ac_var=no"
44176 rm -f conftest.err conftest.$ac_objext \
44177 conftest$ac_exeext conftest.$ac_ext
44179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44181 if test `eval echo '${'$as_ac_var'}'` = yes; then
44182 cat >>confdefs.h <<_ACEOF
44183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44186 echo "$as_me:$LINENO: checking for _doprnt" >&5
44187 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
44188 if test "${ac_cv_func__doprnt+set}" = set; then
44189 echo $ECHO_N "(cached) $ECHO_C" >&6
44191 cat >conftest.$ac_ext <<_ACEOF
44194 cat confdefs.h >>conftest.$ac_ext
44195 cat >>conftest.$ac_ext <<_ACEOF
44196 /* end confdefs.h. */
44197 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
44198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44199 #define _doprnt innocuous__doprnt
44201 /* System header to define __stub macros and hopefully few prototypes,
44202 which can conflict with char _doprnt (); below.
44203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44204 <limits.h> exists even on freestanding compilers. */
44207 # include <limits.h>
44209 # include <assert.h>
44214 /* Override any gcc2 internal prototype to avoid an error. */
44219 /* We use char because int might match the return type of a gcc2
44220 builtin and then its argument prototype would still apply. */
44222 /* The GNU C library defines this for functions which it implements
44223 to always fail with ENOSYS. Some functions are actually named
44224 something starting with __ and the normal name is an alias. */
44225 #if defined (__stub__doprnt) || defined (__stub____doprnt)
44228 char (*f) () = _doprnt;
44237 return f != _doprnt;
44242 rm -f conftest.$ac_objext conftest$ac_exeext
44243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44244 (eval $ac_link) 2>conftest.er1
44246 grep -v '^ *+' conftest.er1 >conftest.err
44248 cat conftest.err >&5
44249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44250 (exit $ac_status); } &&
44251 { ac_try='test -z "$ac_c_werror_flag"
44252 || test ! -s conftest.err'
44253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44254 (eval $ac_try) 2>&5
44256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44257 (exit $ac_status); }; } &&
44258 { ac_try='test -s conftest$ac_exeext'
44259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44260 (eval $ac_try) 2>&5
44262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44263 (exit $ac_status); }; }; then
44264 ac_cv_func__doprnt=yes
44266 echo "$as_me: failed program was:" >&5
44267 sed 's/^/| /' conftest.$ac_ext >&5
44269 ac_cv_func__doprnt=no
44271 rm -f conftest.err conftest.$ac_objext \
44272 conftest$ac_exeext conftest.$ac_ext
44274 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
44275 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
44276 if test $ac_cv_func__doprnt = yes; then
44278 cat >>confdefs.h <<\_ACEOF
44279 #define HAVE_DOPRNT 1
44289 if test $ac_cv_func_vprintf = yes ; then
44292 for ac_func in snprintf vsnprintf
44294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44295 echo "$as_me:$LINENO: checking for $ac_func" >&5
44296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44297 if eval "test \"\${$as_ac_var+set}\" = set"; then
44298 echo $ECHO_N "(cached) $ECHO_C" >&6
44300 cat >conftest.$ac_ext <<_ACEOF
44303 cat confdefs.h >>conftest.$ac_ext
44304 cat >>conftest.$ac_ext <<_ACEOF
44305 /* end confdefs.h. */
44306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44308 #define $ac_func innocuous_$ac_func
44310 /* System header to define __stub macros and hopefully few prototypes,
44311 which can conflict with char $ac_func (); below.
44312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44313 <limits.h> exists even on freestanding compilers. */
44316 # include <limits.h>
44318 # include <assert.h>
44323 /* Override any gcc2 internal prototype to avoid an error. */
44328 /* We use char because int might match the return type of a gcc2
44329 builtin and then its argument prototype would still apply. */
44331 /* The GNU C library defines this for functions which it implements
44332 to always fail with ENOSYS. Some functions are actually named
44333 something starting with __ and the normal name is an alias. */
44334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44337 char (*f) () = $ac_func;
44346 return f != $ac_func;
44351 rm -f conftest.$ac_objext conftest$ac_exeext
44352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44353 (eval $ac_link) 2>conftest.er1
44355 grep -v '^ *+' conftest.er1 >conftest.err
44357 cat conftest.err >&5
44358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44359 (exit $ac_status); } &&
44360 { ac_try='test -z "$ac_c_werror_flag"
44361 || test ! -s conftest.err'
44362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44363 (eval $ac_try) 2>&5
44365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44366 (exit $ac_status); }; } &&
44367 { ac_try='test -s conftest$ac_exeext'
44368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44369 (eval $ac_try) 2>&5
44371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44372 (exit $ac_status); }; }; then
44373 eval "$as_ac_var=yes"
44375 echo "$as_me: failed program was:" >&5
44376 sed 's/^/| /' conftest.$ac_ext >&5
44378 eval "$as_ac_var=no"
44380 rm -f conftest.err conftest.$ac_objext \
44381 conftest$ac_exeext conftest.$ac_ext
44383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44385 if test `eval echo '${'$as_ac_var'}'` = yes; then
44386 cat >>confdefs.h <<_ACEOF
44387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44507 echo "$as_me:$LINENO: checking for $ac_func" >&5
44508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44509 if eval "test \"\${$as_ac_var+set}\" = set"; then
44510 echo $ECHO_N "(cached) $ECHO_C" >&6
44512 cat >conftest.$ac_ext <<_ACEOF
44515 cat confdefs.h >>conftest.$ac_ext
44516 cat >>conftest.$ac_ext <<_ACEOF
44517 /* end confdefs.h. */
44518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44520 #define $ac_func innocuous_$ac_func
44522 /* System header to define __stub macros and hopefully few prototypes,
44523 which can conflict with char $ac_func (); below.
44524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44525 <limits.h> exists even on freestanding compilers. */
44528 # include <limits.h>
44530 # include <assert.h>
44535 /* Override any gcc2 internal prototype to avoid an error. */
44540 /* We use char because int might match the return type of a gcc2
44541 builtin and then its argument prototype would still apply. */
44543 /* The GNU C library defines this for functions which it implements
44544 to always fail with ENOSYS. Some functions are actually named
44545 something starting with __ and the normal name is an alias. */
44546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44549 char (*f) () = $ac_func;
44558 return f != $ac_func;
44563 rm -f conftest.$ac_objext conftest$ac_exeext
44564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44565 (eval $ac_link) 2>conftest.er1
44567 grep -v '^ *+' conftest.er1 >conftest.err
44569 cat conftest.err >&5
44570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44571 (exit $ac_status); } &&
44572 { ac_try='test -z "$ac_c_werror_flag"
44573 || test ! -s conftest.err'
44574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44575 (eval $ac_try) 2>&5
44577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44578 (exit $ac_status); }; } &&
44579 { ac_try='test -s conftest$ac_exeext'
44580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44581 (eval $ac_try) 2>&5
44583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44584 (exit $ac_status); }; }; then
44585 eval "$as_ac_var=yes"
44587 echo "$as_me: failed program was:" >&5
44588 sed 's/^/| /' conftest.$ac_ext >&5
44590 eval "$as_ac_var=no"
44592 rm -f conftest.err conftest.$ac_objext \
44593 conftest$ac_exeext conftest.$ac_ext
44595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44597 if test `eval echo '${'$as_ac_var'}'` = yes; then
44598 cat >>confdefs.h <<_ACEOF
44599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44608 for ac_func in getopt getpeereid
44610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44611 echo "$as_me:$LINENO: checking for $ac_func" >&5
44612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44613 if eval "test \"\${$as_ac_var+set}\" = set"; then
44614 echo $ECHO_N "(cached) $ECHO_C" >&6
44616 cat >conftest.$ac_ext <<_ACEOF
44619 cat confdefs.h >>conftest.$ac_ext
44620 cat >>conftest.$ac_ext <<_ACEOF
44621 /* end confdefs.h. */
44622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44624 #define $ac_func innocuous_$ac_func
44626 /* System header to define __stub macros and hopefully few prototypes,
44627 which can conflict with char $ac_func (); below.
44628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44629 <limits.h> exists even on freestanding compilers. */
44632 # include <limits.h>
44634 # include <assert.h>
44639 /* Override any gcc2 internal prototype to avoid an error. */
44644 /* We use char because int might match the return type of a gcc2
44645 builtin and then its argument prototype would still apply. */
44647 /* The GNU C library defines this for functions which it implements
44648 to always fail with ENOSYS. Some functions are actually named
44649 something starting with __ and the normal name is an alias. */
44650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44653 char (*f) () = $ac_func;
44662 return f != $ac_func;
44667 rm -f conftest.$ac_objext conftest$ac_exeext
44668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44669 (eval $ac_link) 2>conftest.er1
44671 grep -v '^ *+' conftest.er1 >conftest.err
44673 cat conftest.err >&5
44674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44675 (exit $ac_status); } &&
44676 { ac_try='test -z "$ac_c_werror_flag"
44677 || test ! -s conftest.err'
44678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44679 (eval $ac_try) 2>&5
44681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44682 (exit $ac_status); }; } &&
44683 { ac_try='test -s conftest$ac_exeext'
44684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44685 (eval $ac_try) 2>&5
44687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44688 (exit $ac_status); }; }; then
44689 eval "$as_ac_var=yes"
44691 echo "$as_me: failed program was:" >&5
44692 sed 's/^/| /' conftest.$ac_ext >&5
44694 eval "$as_ac_var=no"
44696 rm -f conftest.err conftest.$ac_objext \
44697 conftest$ac_exeext conftest.$ac_ext
44699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44701 if test `eval echo '${'$as_ac_var'}'` = yes; then
44702 cat >>confdefs.h <<_ACEOF
44703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44708 "$ac_func.$ac_objext" | \
44709 *" $ac_func.$ac_objext" | \
44710 "$ac_func.$ac_objext "* | \
44711 *" $ac_func.$ac_objext "* ) ;;
44712 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44720 if test "$ac_cv_func_getopt" != yes; then
44721 LIBSRCS="$LIBSRCS getopt.c"
44723 if test "$ac_cv_func_getpeereid" != yes; then
44724 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
44725 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
44726 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
44727 echo $ECHO_N "(cached) $ECHO_C" >&6
44729 cat >conftest.$ac_ext <<_ACEOF
44732 cat confdefs.h >>conftest.$ac_ext
44733 cat >>conftest.$ac_ext <<_ACEOF
44734 /* end confdefs.h. */
44735 $ac_includes_default
44736 #ifdef HAVE_SYS_SOCKET_H
44737 #include <sys/socket.h>
44743 static struct msghdr ac_aggr;
44744 if (ac_aggr.msg_accrightslen)
44750 rm -f conftest.$ac_objext
44751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44752 (eval $ac_compile) 2>conftest.er1
44754 grep -v '^ *+' conftest.er1 >conftest.err
44756 cat conftest.err >&5
44757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44758 (exit $ac_status); } &&
44759 { ac_try='test -z "$ac_c_werror_flag"
44760 || test ! -s conftest.err'
44761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44762 (eval $ac_try) 2>&5
44764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44765 (exit $ac_status); }; } &&
44766 { ac_try='test -s conftest.$ac_objext'
44767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44768 (eval $ac_try) 2>&5
44770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44771 (exit $ac_status); }; }; then
44772 ac_cv_member_struct_msghdr_msg_accrightslen=yes
44774 echo "$as_me: failed program was:" >&5
44775 sed 's/^/| /' conftest.$ac_ext >&5
44777 cat >conftest.$ac_ext <<_ACEOF
44780 cat confdefs.h >>conftest.$ac_ext
44781 cat >>conftest.$ac_ext <<_ACEOF
44782 /* end confdefs.h. */
44783 $ac_includes_default
44784 #ifdef HAVE_SYS_SOCKET_H
44785 #include <sys/socket.h>
44791 static struct msghdr ac_aggr;
44792 if (sizeof ac_aggr.msg_accrightslen)
44798 rm -f conftest.$ac_objext
44799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44800 (eval $ac_compile) 2>conftest.er1
44802 grep -v '^ *+' conftest.er1 >conftest.err
44804 cat conftest.err >&5
44805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44806 (exit $ac_status); } &&
44807 { ac_try='test -z "$ac_c_werror_flag"
44808 || test ! -s conftest.err'
44809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44810 (eval $ac_try) 2>&5
44812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44813 (exit $ac_status); }; } &&
44814 { ac_try='test -s conftest.$ac_objext'
44815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44816 (eval $ac_try) 2>&5
44818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44819 (exit $ac_status); }; }; then
44820 ac_cv_member_struct_msghdr_msg_accrightslen=yes
44822 echo "$as_me: failed program was:" >&5
44823 sed 's/^/| /' conftest.$ac_ext >&5
44825 ac_cv_member_struct_msghdr_msg_accrightslen=no
44827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44831 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
44832 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
44833 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
44835 cat >>confdefs.h <<_ACEOF
44836 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
44842 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
44843 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
44844 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
44845 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
44846 echo $ECHO_N "(cached) $ECHO_C" >&6
44848 cat >conftest.$ac_ext <<_ACEOF
44851 cat confdefs.h >>conftest.$ac_ext
44852 cat >>conftest.$ac_ext <<_ACEOF
44853 /* end confdefs.h. */
44854 $ac_includes_default
44855 #ifdef HAVE_SYS_SOCKET_H
44856 #include <sys/socket.h>
44862 static struct msghdr ac_aggr;
44863 if (ac_aggr.msg_control)
44869 rm -f conftest.$ac_objext
44870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44871 (eval $ac_compile) 2>conftest.er1
44873 grep -v '^ *+' conftest.er1 >conftest.err
44875 cat conftest.err >&5
44876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44877 (exit $ac_status); } &&
44878 { ac_try='test -z "$ac_c_werror_flag"
44879 || test ! -s conftest.err'
44880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44881 (eval $ac_try) 2>&5
44883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44884 (exit $ac_status); }; } &&
44885 { ac_try='test -s conftest.$ac_objext'
44886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44887 (eval $ac_try) 2>&5
44889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44890 (exit $ac_status); }; }; then
44891 ac_cv_member_struct_msghdr_msg_control=yes
44893 echo "$as_me: failed program was:" >&5
44894 sed 's/^/| /' conftest.$ac_ext >&5
44896 cat >conftest.$ac_ext <<_ACEOF
44899 cat confdefs.h >>conftest.$ac_ext
44900 cat >>conftest.$ac_ext <<_ACEOF
44901 /* end confdefs.h. */
44902 $ac_includes_default
44903 #ifdef HAVE_SYS_SOCKET_H
44904 #include <sys/socket.h>
44910 static struct msghdr ac_aggr;
44911 if (sizeof ac_aggr.msg_control)
44917 rm -f conftest.$ac_objext
44918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44919 (eval $ac_compile) 2>conftest.er1
44921 grep -v '^ *+' conftest.er1 >conftest.err
44923 cat conftest.err >&5
44924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44925 (exit $ac_status); } &&
44926 { ac_try='test -z "$ac_c_werror_flag"
44927 || test ! -s conftest.err'
44928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44929 (eval $ac_try) 2>&5
44931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44932 (exit $ac_status); }; } &&
44933 { ac_try='test -s conftest.$ac_objext'
44934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44935 (eval $ac_try) 2>&5
44937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44938 (exit $ac_status); }; }; then
44939 ac_cv_member_struct_msghdr_msg_control=yes
44941 echo "$as_me: failed program was:" >&5
44942 sed 's/^/| /' conftest.$ac_ext >&5
44944 ac_cv_member_struct_msghdr_msg_control=no
44946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44950 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
44951 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
44952 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
44954 cat >>confdefs.h <<_ACEOF
44955 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
44962 LIBSRCS="$LIBSRCS getpeereid.c"
44964 if test "$ac_cv_func_snprintf" != yes ||
44965 test "$ac_cv_func_vsnprintf" != yes; then
44966 if test "$ac_cv_func_snprintf" != yes; then
44968 cat >>confdefs.h <<\_ACEOF
44969 #define snprintf ber_pvt_snprintf
44973 if test "$ac_cv_func_vsnprintf" != yes; then
44975 cat >>confdefs.h <<\_ACEOF
44976 #define vsnprintf ber_pvt_vsnprintf
44983 if test "$ol_enable_slapi" != no ; then
44985 for ac_header in ltdl.h
44987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44989 echo "$as_me:$LINENO: checking for $ac_header" >&5
44990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44992 echo $ECHO_N "(cached) $ECHO_C" >&6
44994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44997 # Is the header compilable?
44998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45000 cat >conftest.$ac_ext <<_ACEOF
45003 cat confdefs.h >>conftest.$ac_ext
45004 cat >>conftest.$ac_ext <<_ACEOF
45005 /* end confdefs.h. */
45006 $ac_includes_default
45007 #include <$ac_header>
45009 rm -f conftest.$ac_objext
45010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45011 (eval $ac_compile) 2>conftest.er1
45013 grep -v '^ *+' conftest.er1 >conftest.err
45015 cat conftest.err >&5
45016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45017 (exit $ac_status); } &&
45018 { ac_try='test -z "$ac_c_werror_flag"
45019 || test ! -s conftest.err'
45020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45021 (eval $ac_try) 2>&5
45023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45024 (exit $ac_status); }; } &&
45025 { ac_try='test -s conftest.$ac_objext'
45026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45027 (eval $ac_try) 2>&5
45029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45030 (exit $ac_status); }; }; then
45031 ac_header_compiler=yes
45033 echo "$as_me: failed program was:" >&5
45034 sed 's/^/| /' conftest.$ac_ext >&5
45036 ac_header_compiler=no
45038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45040 echo "${ECHO_T}$ac_header_compiler" >&6
45042 # Is the header present?
45043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45045 cat >conftest.$ac_ext <<_ACEOF
45048 cat confdefs.h >>conftest.$ac_ext
45049 cat >>conftest.$ac_ext <<_ACEOF
45050 /* end confdefs.h. */
45051 #include <$ac_header>
45053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45056 grep -v '^ *+' conftest.er1 >conftest.err
45058 cat conftest.err >&5
45059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45060 (exit $ac_status); } >/dev/null; then
45061 if test -s conftest.err; then
45062 ac_cpp_err=$ac_c_preproc_warn_flag
45063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45070 if test -z "$ac_cpp_err"; then
45071 ac_header_preproc=yes
45073 echo "$as_me: failed program was:" >&5
45074 sed 's/^/| /' conftest.$ac_ext >&5
45076 ac_header_preproc=no
45078 rm -f conftest.err conftest.$ac_ext
45079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45080 echo "${ECHO_T}$ac_header_preproc" >&6
45082 # So? What about this header?
45083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45089 ac_header_preproc=yes
45092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45106 ## --------------------------------------------- ##
45107 ## Report this to <http://www.openldap.org/its/> ##
45108 ## --------------------------------------------- ##
45111 sed "s/^/$as_me: WARNING: /" >&2
45114 echo "$as_me:$LINENO: checking for $ac_header" >&5
45115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45117 echo $ECHO_N "(cached) $ECHO_C" >&6
45119 eval "$as_ac_Header=\$ac_header_preproc"
45121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45126 cat >>confdefs.h <<_ACEOF
45127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45135 if test $ac_cv_header_ltdl_h != yes ; then
45136 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
45137 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
45138 { (exit 1); exit 1; }; }
45140 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
45141 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
45142 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
45143 echo $ECHO_N "(cached) $ECHO_C" >&6
45145 ac_check_lib_save_LIBS=$LIBS
45146 LIBS="-lltdl $LIBS"
45147 cat >conftest.$ac_ext <<_ACEOF
45150 cat confdefs.h >>conftest.$ac_ext
45151 cat >>conftest.$ac_ext <<_ACEOF
45152 /* end confdefs.h. */
45154 /* Override any gcc2 internal prototype to avoid an error. */
45158 /* We use char because int might match the return type of a gcc2
45159 builtin and then its argument prototype would still apply. */
45169 rm -f conftest.$ac_objext conftest$ac_exeext
45170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45171 (eval $ac_link) 2>conftest.er1
45173 grep -v '^ *+' conftest.er1 >conftest.err
45175 cat conftest.err >&5
45176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45177 (exit $ac_status); } &&
45178 { ac_try='test -z "$ac_c_werror_flag"
45179 || test ! -s conftest.err'
45180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45181 (eval $ac_try) 2>&5
45183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45184 (exit $ac_status); }; } &&
45185 { ac_try='test -s conftest$ac_exeext'
45186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45187 (eval $ac_try) 2>&5
45189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45190 (exit $ac_status); }; }; then
45191 ac_cv_lib_ltdl_lt_dlinit=yes
45193 echo "$as_me: failed program was:" >&5
45194 sed 's/^/| /' conftest.$ac_ext >&5
45196 ac_cv_lib_ltdl_lt_dlinit=no
45198 rm -f conftest.err conftest.$ac_objext \
45199 conftest$ac_exeext conftest.$ac_ext
45200 LIBS=$ac_check_lib_save_LIBS
45202 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
45203 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
45204 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
45207 LIBSLAPI=libslapi.a
45208 LIBSLAPITOOLS=../libslapi.a
45210 cat >>confdefs.h <<\_ACEOF
45211 #define HAVE_LIBLTDL 1
45216 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
45217 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
45218 { (exit 1); exit 1; }; }
45223 cat >>confdefs.h <<\_ACEOF
45224 #define LDAP_SLAPI 1
45229 if test "$ol_enable_debug" != no ; then
45231 cat >>confdefs.h <<\_ACEOF
45232 #define LDAP_DEBUG 1
45236 if test "$ol_enable_syslog" = yes ; then
45238 cat >>confdefs.h <<\_ACEOF
45239 #define LDAP_SYSLOG 1
45243 if test "$ol_link_kbind" != no ; then
45245 cat >>confdefs.h <<\_ACEOF
45246 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
45250 if test "$ol_enable_proctitle" != no ; then
45252 cat >>confdefs.h <<\_ACEOF
45253 #define LDAP_PROCTITLE 1
45257 if test "$ol_enable_referrals" != no ; then
45259 cat >>confdefs.h <<\_ACEOF
45260 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
45264 if test "$ol_enable_local" != no; then
45266 cat >>confdefs.h <<\_ACEOF
45267 #define LDAP_PF_LOCAL 1
45271 if test "$ol_link_ipv6" != no; then
45273 cat >>confdefs.h <<\_ACEOF
45274 #define LDAP_PF_INET6 1
45278 if test "$ol_enable_cleartext" != no ; then
45280 cat >>confdefs.h <<\_ACEOF
45281 #define SLAPD_CLEARTEXT 1
45285 if test "$ol_enable_crypt" != no ; then
45287 cat >>confdefs.h <<\_ACEOF
45288 #define SLAPD_CRYPT 1
45292 if test "$ol_link_spasswd" != no ; then
45294 cat >>confdefs.h <<\_ACEOF
45295 #define SLAPD_SPASSWD 1
45299 if test "$ol_enable_multimaster" != no ; then
45301 cat >>confdefs.h <<\_ACEOF
45302 #define SLAPD_MULTIMASTER 1
45306 if test "$ol_enable_rlookups" != no ; then
45308 cat >>confdefs.h <<\_ACEOF
45309 #define SLAPD_RLOOKUPS 1
45313 if test "$ol_enable_aci" != no ; then
45315 cat >>confdefs.h <<\_ACEOF
45316 #define SLAPD_ACI_ENABLED 1
45319 WITH_ACI_ENABLED=yes
45321 WITH_ACI_ENABLED=no
45324 if test "$ol_link_modules" != no ; then
45326 cat >>confdefs.h <<\_ACEOF
45327 #define SLAPD_MODULES 1
45331 SLAPD_MODULES_LDFLAGS="-dlopen self"
45335 cat >>confdefs.h <<\_ACEOF
45336 #define SLAPD_MOD_STATIC 1
45340 cat >>confdefs.h <<\_ACEOF
45341 #define SLAPD_MOD_DYNAMIC 2
45345 if test "$ol_enable_bdb" != no ; then
45347 BUILD_BDB=$ol_enable_bdb
45348 if test "$ol_enable_bdb" = mod ; then
45349 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
45350 MFLAG=SLAPD_MOD_DYNAMIC
45352 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
45353 MFLAG=SLAPD_MOD_STATIC
45356 cat >>confdefs.h <<_ACEOF
45357 #define SLAPD_BDB $MFLAG
45362 if test "$ol_enable_dnssrv" != no ; then
45364 BUILD_DNSSRV=$ol_enable_dnssrv
45365 if test "$ol_enable_dnssrv" = mod ; then
45366 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
45367 MFLAG=SLAPD_MOD_DYNAMIC
45369 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
45370 MFLAG=SLAPD_MOD_STATIC
45373 cat >>confdefs.h <<_ACEOF
45374 #define SLAPD_DNSSRV $MFLAG
45379 if test "$ol_enable_hdb" != no ; then
45381 BUILD_HDB=$ol_enable_hdb
45382 if test "$ol_enable_hdb" = mod ; then
45383 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
45384 MFLAG=SLAPD_MOD_DYNAMIC
45386 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
45387 MFLAG=SLAPD_MOD_STATIC
45390 cat >>confdefs.h <<_ACEOF
45391 #define SLAPD_HDB $MFLAG
45396 if test "$ol_enable_ldap" != no ; then
45398 BUILD_LDAP=$ol_enable_ldap
45399 if test "$ol_enable_ldap" = mod ; then
45400 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
45401 MFLAG=SLAPD_MOD_DYNAMIC
45403 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
45404 MFLAG=SLAPD_MOD_STATIC
45407 cat >>confdefs.h <<_ACEOF
45408 #define SLAPD_LDAP $MFLAG
45413 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
45415 BUILD_LDBM=$ol_enable_ldbm
45416 if test "$ol_enable_ldbm" = mod ; then
45417 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
45418 MFLAG=SLAPD_MOD_DYNAMIC
45420 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
45421 MFLAG=SLAPD_MOD_STATIC
45424 cat >>confdefs.h <<_ACEOF
45425 #define SLAPD_LDBM $MFLAG
45430 if test "$ol_enable_meta" != no ; then
45432 BUILD_META=$ol_enable_meta
45434 if test "$ol_enable_meta" = mod ; then
45435 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
45436 MFLAG=SLAPD_MOD_DYNAMIC
45438 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
45439 MFLAG=SLAPD_MOD_STATIC
45442 cat >>confdefs.h <<_ACEOF
45443 #define SLAPD_META $MFLAG
45448 if test "$ol_enable_monitor" != no ; then
45450 BUILD_MONITOR=$ol_enable_monitor
45451 if test "$ol_enable_monitor" = mod ; then
45452 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
45453 MFLAG=SLAPD_MOD_DYNAMIC
45455 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
45456 MFLAG=SLAPD_MOD_STATIC
45459 cat >>confdefs.h <<_ACEOF
45460 #define SLAPD_MONITOR $MFLAG
45465 if test "$ol_enable_null" != no ; then
45467 BUILD_NULL=$ol_enable_null
45468 if test "$ol_enable_null" = mod ; then
45469 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
45470 MFLAG=SLAPD_MOD_DYNAMIC
45472 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
45473 MFLAG=SLAPD_MOD_STATIC
45476 cat >>confdefs.h <<_ACEOF
45477 #define SLAPD_NULL $MFLAG
45482 if test "$ol_enable_passwd" != no ; then
45484 BUILD_PASSWD=$ol_enable_passwd
45485 if test "$ol_enable_passwd" = mod ; then
45486 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
45487 MFLAG=SLAPD_MOD_DYNAMIC
45489 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
45490 MFLAG=SLAPD_MOD_STATIC
45493 cat >>confdefs.h <<_ACEOF
45494 #define SLAPD_PASSWD $MFLAG
45499 if test "$ol_link_perl" != no ; then
45501 BUILD_PERL=$ol_enable_perl
45502 if test "$ol_enable_perl" = mod ; then
45503 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
45504 MFLAG=SLAPD_MOD_DYNAMIC
45506 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
45507 MFLAG=SLAPD_MOD_STATIC
45510 cat >>confdefs.h <<_ACEOF
45511 #define SLAPD_PERL $MFLAG
45516 if test "$ol_enable_relay" != no ; then
45518 BUILD_RELAY=$ol_enable_relay
45519 if test "$ol_enable_relay" = mod ; then
45520 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
45521 MFLAG=SLAPD_MOD_DYNAMIC
45523 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
45524 MFLAG=SLAPD_MOD_STATIC
45527 cat >>confdefs.h <<_ACEOF
45528 #define SLAPD_RELAY $MFLAG
45533 if test "$ol_enable_shell" != no ; then
45534 if test "$ol_link_threads" != no ; then
45535 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
45536 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
45539 BUILD_SHELL=$ol_enable_shell
45540 if test "$ol_enable_shell" = mod ; then
45541 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
45542 MFLAG=SLAPD_MOD_DYNAMIC
45544 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
45545 MFLAG=SLAPD_MOD_STATIC
45548 cat >>confdefs.h <<_ACEOF
45549 #define SLAPD_SHELL $MFLAG
45554 if test "$ol_link_sql" != no ; then
45556 BUILD_SQL=$ol_enable_sql
45557 if test "$ol_enable_sql" = mod; then
45558 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
45559 MFLAG=SLAPD_MOD_DYNAMIC
45561 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
45562 MFLAG=SLAPD_MOD_STATIC
45565 cat >>confdefs.h <<_ACEOF
45566 #define SLAPD_SQL $MFLAG
45571 if test "$ol_enable_accesslog" != no ; then
45572 BUILD_ACCESSLOG=$ol_enable_accesslog
45573 if test "$ol_enable_accesslog" = mod ; then
45574 MFLAG=SLAPD_MOD_DYNAMIC
45575 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
45577 MFLAG=SLAPD_MOD_STATIC
45578 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
45581 cat >>confdefs.h <<_ACEOF
45582 #define SLAPD_OVER_ACCESSLOG $MFLAG
45587 if test "$ol_enable_auditlog" != no ; then
45588 BUILD_AUDITLOG=$ol_enable_auditlog
45589 if test "$ol_enable_auditlog" = mod ; then
45590 MFLAG=SLAPD_MOD_DYNAMIC
45591 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
45593 MFLAG=SLAPD_MOD_STATIC
45594 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
45597 cat >>confdefs.h <<_ACEOF
45598 #define SLAPD_OVER_AUDITLOG $MFLAG
45603 if test "$ol_enable_denyop" != no ; then
45604 BUILD_DENYOP=$ol_enable_denyop
45605 if test "$ol_enable_denyop" = mod ; then
45606 MFLAG=SLAPD_MOD_DYNAMIC
45607 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
45609 MFLAG=SLAPD_MOD_STATIC
45610 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
45613 cat >>confdefs.h <<_ACEOF
45614 #define SLAPD_OVER_DENYOP $MFLAG
45619 if test "$ol_enable_dyngroup" != no ; then
45620 BUILD_DYNGROUP=$ol_enable_dyngroup
45621 if test "$ol_enable_dyngroup" = mod ; then
45622 MFLAG=SLAPD_MOD_DYNAMIC
45623 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
45625 MFLAG=SLAPD_MOD_STATIC
45626 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
45629 cat >>confdefs.h <<_ACEOF
45630 #define SLAPD_OVER_DYNGROUP $MFLAG
45635 if test "$ol_enable_dynlist" != no ; then
45636 BUILD_DYNLIST=$ol_enable_dynlist
45637 if test "$ol_enable_dynlist" = mod ; then
45638 MFLAG=SLAPD_MOD_DYNAMIC
45639 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
45641 MFLAG=SLAPD_MOD_STATIC
45642 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
45645 cat >>confdefs.h <<_ACEOF
45646 #define SLAPD_OVER_DYNLIST $MFLAG
45651 if test "$ol_enable_lastmod" != no ; then
45652 BUILD_LASTMOD=$ol_enable_lastmod
45653 if test "$ol_enable_lastmod" = mod ; then
45654 MFLAG=SLAPD_MOD_DYNAMIC
45655 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
45657 MFLAG=SLAPD_MOD_STATIC
45658 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
45661 cat >>confdefs.h <<_ACEOF
45662 #define SLAPD_OVER_LASTMOD $MFLAG
45667 if test "$ol_enable_ppolicy" != no ; then
45668 BUILD_PPOLICY=$ol_enable_ppolicy
45669 if test "$ol_enable_ppolicy" = mod ; then
45670 MFLAG=SLAPD_MOD_DYNAMIC
45671 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
45673 MFLAG=SLAPD_MOD_STATIC
45674 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
45677 cat >>confdefs.h <<_ACEOF
45678 #define SLAPD_OVER_PPOLICY $MFLAG
45683 if test "$ol_enable_proxycache" != no ; then
45684 BUILD_PROXYCACHE=$ol_enable_proxycache
45685 if test "$ol_enable_proxycache" = mod ; then
45686 MFLAG=SLAPD_MOD_DYNAMIC
45687 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
45689 MFLAG=SLAPD_MOD_STATIC
45690 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
45693 cat >>confdefs.h <<_ACEOF
45694 #define SLAPD_OVER_PROXYCACHE $MFLAG
45699 if test "$ol_enable_refint" != no ; then
45700 BUILD_REFINT=$ol_enable_refint
45701 if test "$ol_enable_refint" = mod ; then
45702 MFLAG=SLAPD_MOD_DYNAMIC
45703 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
45705 MFLAG=SLAPD_MOD_STATIC
45706 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
45709 cat >>confdefs.h <<_ACEOF
45710 #define SLAPD_OVER_REFINT $MFLAG
45715 if test "$ol_enable_retcode" != no ; then
45716 BUILD_RETCODE=$ol_enable_retcode
45717 if test "$ol_enable_retcode" = mod ; then
45718 MFLAG=SLAPD_MOD_DYNAMIC
45719 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
45721 MFLAG=SLAPD_MOD_STATIC
45722 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
45725 cat >>confdefs.h <<_ACEOF
45726 #define SLAPD_OVER_RETCODE $MFLAG
45731 if test "$ol_enable_rwm" != no ; then
45733 BUILD_RWM=$ol_enable_rwm
45734 if test "$ol_enable_rwm" = mod ; then
45735 MFLAG=SLAPD_MOD_DYNAMIC
45736 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
45738 MFLAG=SLAPD_MOD_STATIC
45739 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
45742 cat >>confdefs.h <<_ACEOF
45743 #define SLAPD_OVER_RWM $MFLAG
45748 if test "$ol_enable_syncprov" != no ; then
45749 BUILD_SYNCPROV=$ol_enable_syncprov
45750 if test "$ol_enable_syncprov" = mod ; then
45751 MFLAG=SLAPD_MOD_DYNAMIC
45752 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
45754 MFLAG=SLAPD_MOD_STATIC
45755 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
45758 cat >>confdefs.h <<_ACEOF
45759 #define SLAPD_OVER_SYNCPROV $MFLAG
45764 if test "$ol_enable_translucent" != no ; then
45765 BUILD_TRANSLUCENT=$ol_enable_translucent
45766 if test "$ol_enable_translucent" = mod ; then
45767 MFLAG=SLAPD_MOD_DYNAMIC
45768 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
45770 MFLAG=SLAPD_MOD_STATIC
45771 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
45774 cat >>confdefs.h <<_ACEOF
45775 #define SLAPD_OVER_TRANSLUCENT $MFLAG
45780 if test "$ol_enable_unique" != no ; then
45781 BUILD_UNIQUE=$ol_enable_unique
45782 if test "$ol_enable_unique" = mod ; then
45783 MFLAG=SLAPD_MOD_DYNAMIC
45784 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
45786 MFLAG=SLAPD_MOD_STATIC
45787 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
45790 cat >>confdefs.h <<_ACEOF
45791 #define SLAPD_OVER_UNIQUE $MFLAG
45796 if test "$ol_enable_valsort" != no ; then
45797 BUILD_VALSORT=$ol_enable_valsort
45798 if test "$ol_enable_valsort" = mod ; then
45799 MFLAG=SLAPD_MOD_DYNAMIC
45800 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
45802 MFLAG=SLAPD_MOD_STATIC
45803 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
45806 cat >>confdefs.h <<_ACEOF
45807 #define SLAPD_OVER_VALSORT $MFLAG
45812 if test "$ol_enable_slurpd" != no &&
45813 test "$ol_link_threads" != no &&
45814 test $BUILD_SLAPD = yes ; then
45818 if test "$ol_enable_rewrite" != no ; then
45820 cat >>confdefs.h <<\_ACEOF
45821 #define ENABLE_REWRITE 1
45827 if test "$ol_enable_slapi" != no ; then
45829 cat >>confdefs.h <<\_ACEOF
45830 #define ENABLE_SLAPI 1
45834 SLAPD_SLAPI_DEPEND=libslapi.a
45839 if test "$ac_cv_mingw32" = yes ; then
45841 SLAPD_MODULES_LDFLAGS=
45927 # Check whether --with-xxinstall or --without-xxinstall was given.
45928 if test "${with_xxinstall+set}" = set; then
45929 withval="$with_xxinstall"
45934 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"
45937 ac_config_commands="$ac_config_commands default"
45941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45942 # Let make expand exec_prefix.
45943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45945 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45946 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45947 # trailing colons and then remove the whole line if VPATH becomes empty
45948 # (actually we leave an empty line to preserve line numbers).
45949 if test "x$srcdir" = x.; then
45950 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45951 s/:*\$(srcdir):*/:/;
45952 s/:*\${srcdir}:*/:/;
45954 s/^\([^=]*=[ ]*\):*/\1/;
45960 DEFS=-DHAVE_CONFIG_H
45964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45965 # 1. Remove the extension, and $U if already installed.
45966 ac_i=`echo "$ac_i" |
45967 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
45969 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
45970 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
45972 LIBOBJS=$ac_libobjs
45974 LTLIBOBJS=$ac_ltlibobjs
45977 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45978 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
45979 Usually this means the macro was only invoked conditionally." >&5
45980 echo "$as_me: error: conditional \"AMDEP\" was never defined.
45981 Usually this means the macro was only invoked conditionally." >&2;}
45982 { (exit 1); exit 1; }; }
45984 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45985 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45986 Usually this means the macro was only invoked conditionally." >&5
45987 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45988 Usually this means the macro was only invoked conditionally." >&2;}
45989 { (exit 1); exit 1; }; }
45991 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45992 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45993 Usually this means the macro was only invoked conditionally." >&5
45994 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45995 Usually this means the macro was only invoked conditionally." >&2;}
45996 { (exit 1); exit 1; }; }
45999 : ${CONFIG_STATUS=./config.status}
46000 ac_clean_files_save=$ac_clean_files
46001 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46002 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46003 echo "$as_me: creating $CONFIG_STATUS" >&6;}
46004 cat >$CONFIG_STATUS <<_ACEOF
46006 # Generated by $as_me.
46007 # Run this file to recreate the current configuration.
46008 # Compiler output produced by configure, useful for debugging
46009 # configure, is in config.log if it exists.
46012 ac_cs_recheck=false
46014 SHELL=\${CONFIG_SHELL-$SHELL}
46017 cat >>$CONFIG_STATUS <<\_ACEOF
46018 ## --------------------- ##
46019 ## M4sh Initialization. ##
46020 ## --------------------- ##
46022 # Be Bourne compatible
46023 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46026 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46027 # is contrary to our usage. Disable this feature.
46028 alias -g '${1+"$@"}'='"$@"'
46029 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46032 DUALCASE=1; export DUALCASE # for MKS sh
46034 # Support unset when possible.
46035 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46042 # Work around bugs in pre-3.0 UWIN ksh.
46043 $as_unset ENV MAIL MAILPATH
46050 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46051 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46052 LC_TELEPHONE LC_TIME
46054 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46055 eval $as_var=C; export $as_var
46061 # Required to use basename.
46062 if expr a : '\(a\)' >/dev/null 2>&1; then
46068 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46069 as_basename=basename
46075 # Name of the executable.
46076 as_me=`$as_basename "$0" ||
46077 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46078 X"$0" : 'X\(//\)$' \| \
46079 X"$0" : 'X\(/\)$' \| \
46080 . : '\(.\)' 2>/dev/null ||
46082 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46083 /^X\/\(\/\/\)$/{ s//\1/; q; }
46084 /^X\/\(\/\).*/{ s//\1/; q; }
46088 # PATH needs CR, and LINENO needs CR and PATH.
46089 # Avoid depending upon Character Ranges.
46090 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46091 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46092 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46093 as_cr_digits='0123456789'
46094 as_cr_alnum=$as_cr_Letters$as_cr_digits
46096 # The user is always right.
46097 if test "${PATH_SEPARATOR+set}" != set; then
46098 echo "#! /bin/sh" >conf$$.sh
46099 echo "exit 0" >>conf$$.sh
46101 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46110 as_lineno_1=$LINENO
46111 as_lineno_2=$LINENO
46112 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46113 test "x$as_lineno_1" != "x$as_lineno_2" &&
46114 test "x$as_lineno_3" = "x$as_lineno_2" || {
46115 # Find who we are. Look in the path if we contain no path at all
46118 *[\\/]* ) as_myself=$0 ;;
46119 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46120 for as_dir in $PATH
46123 test -z "$as_dir" && as_dir=.
46124 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46129 # We did not find ourselves, most probably we were run as `sh COMMAND'
46130 # in which case we are not to be found in the path.
46131 if test "x$as_myself" = x; then
46134 if test ! -f "$as_myself"; then
46135 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46136 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46137 { (exit 1); exit 1; }; }
46139 case $CONFIG_SHELL in
46141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46142 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46145 test -z "$as_dir" && as_dir=.
46146 for as_base in sh bash ksh sh5; do
46149 if ("$as_dir/$as_base" -c '
46150 as_lineno_1=$LINENO
46151 as_lineno_2=$LINENO
46152 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46153 test "x$as_lineno_1" != "x$as_lineno_2" &&
46154 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46155 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46156 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46157 CONFIG_SHELL=$as_dir/$as_base
46158 export CONFIG_SHELL
46159 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46167 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46168 # uniformly replaced by the line number. The first 'sed' inserts a
46169 # line-number line before each line; the second 'sed' does the real
46170 # work. The second script uses 'N' to pair each line-number line
46171 # with the numbered line, and appends trailing '-' during
46172 # substitution so that $LINENO is not a special case at line end.
46173 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46174 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46175 sed '=' <$as_myself |
46180 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46183 s,^['$as_cr_digits']*\n,,
46184 ' >$as_me.lineno &&
46185 chmod +x $as_me.lineno ||
46186 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46187 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46188 { (exit 1); exit 1; }; }
46190 # Don't try to exec as it changes $[0], causing all sort of problems
46191 # (the dirname of $[0] is not the place where we might find the
46192 # original and so on. Autoconf is especially sensible to this).
46194 # Exit status is that of the last command.
46199 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46200 *c*,-n*) ECHO_N= ECHO_C='
46202 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46203 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46206 if expr a : '\(a\)' >/dev/null 2>&1; then
46212 rm -f conf$$ conf$$.exe conf$$.file
46214 if ln -s conf$$.file conf$$ 2>/dev/null; then
46215 # We could just check for DJGPP; but this test a) works b) is more generic
46216 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46217 if test -f conf$$.exe; then
46218 # Don't use ln at all; we don't have any links
46223 elif ln conf$$.file conf$$ 2>/dev/null; then
46228 rm -f conf$$ conf$$.exe conf$$.file
46230 if mkdir -p . 2>/dev/null; then
46233 test -d ./-p && rmdir ./-p
46237 as_executable_p="test -f"
46239 # Sed expression to map a string onto a valid CPP name.
46240 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46242 # Sed expression to map a string onto a valid variable name.
46243 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46247 # We need space, tab and new line, in precisely that order.
46257 # Open the log real soon, to keep \$[0] and so on meaningful, and to
46258 # report actual input values of CONFIG_FILES etc. instead of their
46259 # values after options handling. Logging --version etc. is OK.
46263 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46264 ## Running $as_me. ##
46269 This file was extended by $as_me, which was
46270 generated by GNU Autoconf 2.59. Invocation command line was
46272 CONFIG_FILES = $CONFIG_FILES
46273 CONFIG_HEADERS = $CONFIG_HEADERS
46274 CONFIG_LINKS = $CONFIG_LINKS
46275 CONFIG_COMMANDS = $CONFIG_COMMANDS
46279 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
46283 # Files that config.status was made for.
46284 if test -n "$ac_config_files"; then
46285 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
46288 if test -n "$ac_config_headers"; then
46289 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
46292 if test -n "$ac_config_links"; then
46293 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
46296 if test -n "$ac_config_commands"; then
46297 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
46300 cat >>$CONFIG_STATUS <<\_ACEOF
46303 \`$as_me' instantiates files from templates according to the
46304 current configuration.
46306 Usage: $0 [OPTIONS] [FILE]...
46308 -h, --help print this help, then exit
46309 -V, --version print version number, then exit
46310 -q, --quiet do not print progress messages
46311 -d, --debug don't remove temporary files
46312 --recheck update $as_me by reconfiguring in the same conditions
46313 --file=FILE[:TEMPLATE]
46314 instantiate the configuration file FILE
46315 --header=FILE[:TEMPLATE]
46316 instantiate the configuration header FILE
46318 Configuration files:
46321 Configuration headers:
46324 Configuration commands:
46327 Report bugs to <bug-autoconf@gnu.org>."
46330 cat >>$CONFIG_STATUS <<_ACEOF
46333 configured by $0, generated by GNU Autoconf 2.59,
46334 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
46336 Copyright (C) 2003 Free Software Foundation, Inc.
46337 This config.status script is free software; the Free Software Foundation
46338 gives unlimited permission to copy, distribute and modify it."
46343 cat >>$CONFIG_STATUS <<\_ACEOF
46344 # If no file are specified by the user, then we need to provide default
46345 # value. By we need to know if files were specified by the user.
46351 ac_option=`expr "x$1" : 'x\([^=]*\)='`
46352 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
46360 *) # This is not an option, so the user has probably given explicit
46363 ac_need_defaults=false;;
46367 # Handling of the options.
46369 cat >>$CONFIG_STATUS <<\_ACEOF
46370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46372 --version | --vers* | -V )
46373 echo "$ac_cs_version"; exit 0 ;;
46375 # Conflict between --help and --header
46376 { { echo "$as_me:$LINENO: error: ambiguous option: $1
46377 Try \`$0 --help' for more information." >&5
46378 echo "$as_me: error: ambiguous option: $1
46379 Try \`$0 --help' for more information." >&2;}
46380 { (exit 1); exit 1; }; };;
46381 --help | --hel | -h )
46382 echo "$ac_cs_usage"; exit 0 ;;
46383 --debug | --d* | -d )
46385 --file | --fil | --fi | --f )
46387 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
46388 ac_need_defaults=false;;
46389 --header | --heade | --head | --hea )
46391 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
46392 ac_need_defaults=false;;
46393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46394 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46397 # This is an error.
46398 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
46399 Try \`$0 --help' for more information." >&5
46400 echo "$as_me: error: unrecognized option: $1
46401 Try \`$0 --help' for more information." >&2;}
46402 { (exit 1); exit 1; }; } ;;
46404 *) ac_config_targets="$ac_config_targets $1" ;;
46410 ac_configure_extra_args=
46412 if $ac_cs_silent; then
46414 ac_configure_extra_args="$ac_configure_extra_args --silent"
46418 cat >>$CONFIG_STATUS <<_ACEOF
46419 if \$ac_cs_recheck; then
46420 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
46421 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46426 cat >>$CONFIG_STATUS <<_ACEOF
46428 # INIT-COMMANDS section.
46431 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
46433 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
46434 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
46441 cat >>$CONFIG_STATUS <<\_ACEOF
46442 for ac_config_target in $ac_config_targets
46444 case "$ac_config_target" in
46445 # Handling of arguments.
46446 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
46447 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
46448 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
46449 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
46450 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
46451 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
46452 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
46453 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
46454 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
46455 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
46456 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
46457 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
46458 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
46459 "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" ;;
46460 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
46461 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
46462 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
46463 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
46464 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
46465 "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" ;;
46466 "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" ;;
46467 "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" ;;
46468 "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" ;;
46469 "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" ;;
46470 "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" ;;
46471 "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" ;;
46472 "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" ;;
46473 "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" ;;
46474 "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" ;;
46475 "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" ;;
46476 "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" ;;
46477 "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" ;;
46478 "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" ;;
46479 "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" ;;
46480 "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" ;;
46481 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
46482 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
46483 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
46484 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
46485 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
46486 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46487 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
46488 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
46489 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
46490 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
46491 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46492 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46493 { (exit 1); exit 1; }; };;
46497 # If the user did not use the arguments to specify the items to instantiate,
46498 # then the envvar interface is used. Set only those that are not.
46499 # We use the long form for the default assignment because of an extremely
46500 # bizarre bug on SunOS 4.1.3.
46501 if $ac_need_defaults; then
46502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46503 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46504 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46507 # Have a temporary directory for convenience. Make it in the build tree
46508 # simply because there is no reason to put it here, and in addition,
46509 # creating and moving files from /tmp can sometimes cause problems.
46510 # Create a temporary directory, and hook for its removal unless debugging.
46513 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
46514 trap '{ (exit 1); exit 1; }' 1 2 13 15
46517 # Create a (secure) tmp directory for tmp files.
46520 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
46521 test -n "$tmp" && test -d "$tmp"
46524 tmp=./confstat$$-$RANDOM
46525 (umask 077 && mkdir $tmp)
46528 echo "$me: cannot create a temporary directory in ." >&2
46529 { (exit 1); exit 1; }
46534 cat >>$CONFIG_STATUS <<_ACEOF
46537 # CONFIG_FILES section.
46540 # No need to generate the scripts if there are no CONFIG_FILES.
46541 # This happens for instance when ./config.status config.h
46542 if test -n "\$CONFIG_FILES"; then
46543 # Protect against being on the right side of a sed subst in config.status.
46544 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
46545 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
46546 s,@SHELL@,$SHELL,;t t
46547 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
46548 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
46549 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
46550 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
46551 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
46552 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
46553 s,@exec_prefix@,$exec_prefix,;t t
46554 s,@prefix@,$prefix,;t t
46555 s,@program_transform_name@,$program_transform_name,;t t
46556 s,@bindir@,$bindir,;t t
46557 s,@sbindir@,$sbindir,;t t
46558 s,@libexecdir@,$libexecdir,;t t
46559 s,@datadir@,$datadir,;t t
46560 s,@sysconfdir@,$sysconfdir,;t t
46561 s,@sharedstatedir@,$sharedstatedir,;t t
46562 s,@localstatedir@,$localstatedir,;t t
46563 s,@libdir@,$libdir,;t t
46564 s,@includedir@,$includedir,;t t
46565 s,@oldincludedir@,$oldincludedir,;t t
46566 s,@infodir@,$infodir,;t t
46567 s,@mandir@,$mandir,;t t
46568 s,@build_alias@,$build_alias,;t t
46569 s,@host_alias@,$host_alias,;t t
46570 s,@target_alias@,$target_alias,;t t
46571 s,@DEFS@,$DEFS,;t t
46572 s,@ECHO_C@,$ECHO_C,;t t
46573 s,@ECHO_N@,$ECHO_N,;t t
46574 s,@ECHO_T@,$ECHO_T,;t t
46575 s,@LIBS@,$LIBS,;t t
46576 s,@build@,$build,;t t
46577 s,@build_cpu@,$build_cpu,;t t
46578 s,@build_vendor@,$build_vendor,;t t
46579 s,@build_os@,$build_os,;t t
46580 s,@host@,$host,;t t
46581 s,@host_cpu@,$host_cpu,;t t
46582 s,@host_vendor@,$host_vendor,;t t
46583 s,@host_os@,$host_os,;t t
46584 s,@target@,$target,;t t
46585 s,@target_cpu@,$target_cpu,;t t
46586 s,@target_vendor@,$target_vendor,;t t
46587 s,@target_os@,$target_os,;t t
46588 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
46589 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
46590 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
46591 s,@CYGPATH_W@,$CYGPATH_W,;t t
46592 s,@PACKAGE@,$PACKAGE,;t t
46593 s,@VERSION@,$VERSION,;t t
46594 s,@ACLOCAL@,$ACLOCAL,;t t
46595 s,@AUTOCONF@,$AUTOCONF,;t t
46596 s,@AUTOMAKE@,$AUTOMAKE,;t t
46597 s,@AUTOHEADER@,$AUTOHEADER,;t t
46598 s,@MAKEINFO@,$MAKEINFO,;t t
46599 s,@install_sh@,$install_sh,;t t
46600 s,@STRIP@,$STRIP,;t t
46601 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
46602 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
46603 s,@mkdir_p@,$mkdir_p,;t t
46605 s,@SET_MAKE@,$SET_MAKE,;t t
46606 s,@am__leading_dot@,$am__leading_dot,;t t
46607 s,@AMTAR@,$AMTAR,;t t
46608 s,@am__tar@,$am__tar,;t t
46609 s,@am__untar@,$am__untar,;t t
46610 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
46611 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
46612 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
46613 s,@top_builddir@,$top_builddir,;t t
46614 s,@ldap_subdir@,$ldap_subdir,;t t
46617 s,@CFLAGS@,$CFLAGS,;t t
46618 s,@LDFLAGS@,$LDFLAGS,;t t
46619 s,@CPPFLAGS@,$CPPFLAGS,;t t
46620 s,@ac_ct_CC@,$ac_ct_CC,;t t
46621 s,@EXEEXT@,$EXEEXT,;t t
46622 s,@OBJEXT@,$OBJEXT,;t t
46623 s,@DEPDIR@,$DEPDIR,;t t
46624 s,@am__include@,$am__include,;t t
46625 s,@am__quote@,$am__quote,;t t
46626 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
46627 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
46628 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
46629 s,@CCDEPMODE@,$CCDEPMODE,;t t
46630 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
46631 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
46632 s,@EGREP@,$EGREP,;t t
46633 s,@LN_S@,$LN_S,;t t
46634 s,@ECHO@,$ECHO,;t t
46635 s,@ac_ct_AR@,$ac_ct_AR,;t t
46636 s,@RANLIB@,$RANLIB,;t t
46637 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
46638 s,@DLLTOOL@,$DLLTOOL,;t t
46639 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
46641 s,@ac_ct_AS@,$ac_ct_AS,;t t
46642 s,@OBJDUMP@,$OBJDUMP,;t t
46643 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
46645 s,@LIBTOOL@,$LIBTOOL,;t t
46646 s,@PERLBIN@,$PERLBIN,;t t
46647 s,@OL_MKDEP@,$OL_MKDEP,;t t
46648 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
46649 s,@LTSTATIC@,$LTSTATIC,;t t
46650 s,@LIBOBJS@,$LIBOBJS,;t t
46651 s,@LIBSRCS@,$LIBSRCS,;t t
46652 s,@PLAT@,$PLAT,;t t
46653 s,@WITH_SASL@,$WITH_SASL,;t t
46654 s,@WITH_TLS@,$WITH_TLS,;t t
46655 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
46656 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
46657 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
46658 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
46659 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
46660 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
46661 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
46662 s,@BUILD_BDB@,$BUILD_BDB,;t t
46663 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
46664 s,@BUILD_HDB@,$BUILD_HDB,;t t
46665 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
46666 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
46667 s,@BUILD_META@,$BUILD_META,;t t
46668 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
46669 s,@BUILD_NULL@,$BUILD_NULL,;t t
46670 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
46671 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
46672 s,@BUILD_PERL@,$BUILD_PERL,;t t
46673 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
46674 s,@BUILD_SQL@,$BUILD_SQL,;t t
46675 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
46676 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
46677 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
46678 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
46679 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
46680 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
46681 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
46682 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
46683 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
46684 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
46685 s,@BUILD_RWM@,$BUILD_RWM,;t t
46686 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
46687 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
46688 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
46689 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
46690 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
46691 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
46692 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
46693 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
46694 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
46695 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
46696 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
46697 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
46698 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
46699 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
46700 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
46701 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
46702 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
46703 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
46704 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
46705 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
46706 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
46707 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
46708 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
46709 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
46710 s,@SASL_LIBS@,$SASL_LIBS,;t t
46711 s,@TLS_LIBS@,$TLS_LIBS,;t t
46712 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
46713 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
46714 s,@LIBSLAPI@,$LIBSLAPI,;t t
46715 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
46716 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
46717 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
46718 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
46719 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
46720 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
46721 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
46722 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
46727 cat >>$CONFIG_STATUS <<\_ACEOF
46728 # Split the substitutions into bite-sized pieces for seds with
46729 # small command number limits, like on Digital OSF/1 and HP-UX.
46730 ac_max_sed_lines=48
46731 ac_sed_frag=1 # Number of current file.
46732 ac_beg=1 # First line for current file.
46733 ac_end=$ac_max_sed_lines # Line after last line for current file.
46736 while $ac_more_lines; do
46737 if test $ac_beg -gt 1; then
46738 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46740 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46742 if test ! -s $tmp/subs.frag; then
46743 ac_more_lines=false
46745 # The purpose of the label and of the branching condition is to
46746 # speed up the sed processing (if there are no `@' at all, there
46747 # is no need to browse any of the substitutions).
46748 # These are the two extra sed commands mentioned above.
46750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
46751 if test -z "$ac_sed_cmds"; then
46752 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
46754 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
46756 ac_sed_frag=`expr $ac_sed_frag + 1`
46758 ac_end=`expr $ac_end + $ac_max_sed_lines`
46761 if test -z "$ac_sed_cmds"; then
46764 fi # test -n "$CONFIG_FILES"
46767 cat >>$CONFIG_STATUS <<\_ACEOF
46768 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
46769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46771 - | *:- | *:-:* ) # input from stdin
46773 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46775 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46777 * ) ac_file_in=$ac_file.in ;;
46780 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
46781 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46782 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46783 X"$ac_file" : 'X\(//\)[^/]' \| \
46784 X"$ac_file" : 'X\(//\)$' \| \
46785 X"$ac_file" : 'X\(/\)' \| \
46786 . : '\(.\)' 2>/dev/null ||
46788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46790 /^X\(\/\/\)$/{ s//\1/; q; }
46791 /^X\(\/\).*/{ s//\1/; q; }
46793 { if $as_mkdir_p; then
46798 while test ! -d "$as_dir"; do
46799 as_dirs="$as_dir $as_dirs"
46800 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46802 X"$as_dir" : 'X\(//\)[^/]' \| \
46803 X"$as_dir" : 'X\(//\)$' \| \
46804 X"$as_dir" : 'X\(/\)' \| \
46805 . : '\(.\)' 2>/dev/null ||
46807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46809 /^X\(\/\/\)$/{ s//\1/; q; }
46810 /^X\(\/\).*/{ s//\1/; q; }
46813 test ! -n "$as_dirs" || mkdir $as_dirs
46814 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46815 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46816 { (exit 1); exit 1; }; }; }
46820 if test "$ac_dir" != .; then
46821 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46822 # A "../" for each directory in $ac_dir_suffix.
46823 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46825 ac_dir_suffix= ac_top_builddir=
46829 .) # No --srcdir option. We are building in place.
46831 if test -z "$ac_top_builddir"; then
46834 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46836 [\\/]* | ?:[\\/]* ) # Absolute path.
46837 ac_srcdir=$srcdir$ac_dir_suffix;
46838 ac_top_srcdir=$srcdir ;;
46839 *) # Relative path.
46840 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46841 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46844 # Do not use `cd foo && pwd` to compute absolute paths, because
46845 # the directories may not exist.
46847 .) ac_abs_builddir="$ac_dir";;
46850 .) ac_abs_builddir=`pwd`;;
46851 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46852 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46855 case $ac_abs_builddir in
46856 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46858 case ${ac_top_builddir}. in
46859 .) ac_abs_top_builddir=$ac_abs_builddir;;
46860 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46861 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46864 case $ac_abs_builddir in
46865 .) ac_abs_srcdir=$ac_srcdir;;
46868 .) ac_abs_srcdir=$ac_abs_builddir;;
46869 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46870 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46873 case $ac_abs_builddir in
46874 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46876 case $ac_top_srcdir in
46877 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46878 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46879 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46885 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46886 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
46889 if test x"$ac_file" != x-; then
46890 { echo "$as_me:$LINENO: creating $ac_file" >&5
46891 echo "$as_me: creating $ac_file" >&6;}
46894 # Let's still pretend it is `configure' which instantiates (i.e., don't
46895 # use $as_me), people would be surprised to read:
46896 # /* config.h. Generated by config.status. */
46897 if test x"$ac_file" = x-; then
46900 configure_input="$ac_file. "
46902 configure_input=$configure_input"Generated from `echo $ac_file_in |
46903 sed 's,.*/,,'` by configure."
46905 # First look for the input files in the build tree, otherwise in the
46907 ac_file_inputs=`IFS=:
46908 for f in $ac_file_in; do
46910 -) echo $tmp/stdin ;;
46912 # Absolute (can't be DOS-style, as IFS=:)
46913 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46914 echo "$as_me: error: cannot find input file: $f" >&2;}
46915 { (exit 1); exit 1; }; }
46918 if test -f "$f"; then
46921 elif test -f "$srcdir/$f"; then
46926 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46927 echo "$as_me: error: cannot find input file: $f" >&2;}
46928 { (exit 1); exit 1; }; }
46931 done` || { (exit 1); exit 1; }
46933 cat >>$CONFIG_STATUS <<_ACEOF
46937 cat >>$CONFIG_STATUS <<\_ACEOF
46939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46940 s,@configure_input@,$configure_input,;t t
46941 s,@srcdir@,$ac_srcdir,;t t
46942 s,@abs_srcdir@,$ac_abs_srcdir,;t t
46943 s,@top_srcdir@,$ac_top_srcdir,;t t
46944 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46945 s,@builddir@,$ac_builddir,;t t
46946 s,@abs_builddir@,$ac_abs_builddir,;t t
46947 s,@top_builddir@,$ac_top_builddir,;t t
46948 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46949 s,@INSTALL@,$ac_INSTALL,;t t
46950 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46952 if test x"$ac_file" != x-; then
46953 mv $tmp/out $ac_file
46961 cat >>$CONFIG_STATUS <<\_ACEOF
46964 # CONFIG_HEADER section.
46967 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46968 # NAME is the cpp macro being defined and VALUE is the value it is being given.
46970 # ac_d sets the value in "#define NAME VALUE" lines.
46971 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
46972 ac_dB='[ ].*$,\1#\2'
46975 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
46976 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
46977 ac_uB='$,\1#\2define\3'
46981 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
46982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46984 - | *:- | *:-:* ) # input from stdin
46986 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46988 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46990 * ) ac_file_in=$ac_file.in ;;
46993 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
46994 echo "$as_me: creating $ac_file" >&6;}
46996 # First look for the input files in the build tree, otherwise in the
46998 ac_file_inputs=`IFS=:
46999 for f in $ac_file_in; do
47001 -) echo $tmp/stdin ;;
47003 # Absolute (can't be DOS-style, as IFS=:)
47004 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47005 echo "$as_me: error: cannot find input file: $f" >&2;}
47006 { (exit 1); exit 1; }; }
47007 # Do quote $f, to prevent DOS paths from being IFS'd.
47010 if test -f "$f"; then
47013 elif test -f "$srcdir/$f"; then
47018 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47019 echo "$as_me: error: cannot find input file: $f" >&2;}
47020 { (exit 1); exit 1; }; }
47023 done` || { (exit 1); exit 1; }
47024 # Remove the trailing spaces.
47025 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
47029 # Transform confdefs.h into two sed scripts, `conftest.defines' and
47030 # `conftest.undefs', that substitutes the proper values into
47031 # config.h.in to produce config.h. The first handles `#define'
47032 # templates, and the second `#undef' templates.
47033 # And first: Protect against being on the right side of a sed subst in
47034 # config.status. Protect against being in an unquoted here document
47035 # in config.status.
47036 rm -f conftest.defines conftest.undefs
47037 # Using a here document instead of a string reduces the quoting nightmare.
47038 # Putting comments in sed scripts is not portable.
47040 # `end' is used to avoid that the second main sed command (meant for
47041 # 0-ary CPP macros) applies to n-ary macro definitions.
47042 # See the Autoconf documentation for `clear'.
47043 cat >confdef2sed.sed <<\_ACEOF
47048 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
47050 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
47053 # If some macros were called several times there might be several times
47054 # the same #defines, which is useless. Nevertheless, we may not want to
47055 # sort them, since we want the *last* AC-DEFINE to be honored.
47056 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47057 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47058 rm -f confdef2sed.sed
47060 # This sed command replaces #undef with comments. This is necessary, for
47061 # example, in the case of _POSIX_SOURCE, which is predefined and required
47062 # on some systems where configure will not decide to define it.
47063 cat >>conftest.undefs <<\_ACEOF
47064 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
47067 # Break up conftest.defines because some shells have a limit on the size
47068 # of here documents, and old seds have small limits too (100 cmds).
47069 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
47070 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
47071 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47072 echo ' :' >>$CONFIG_STATUS
47073 rm -f conftest.tail
47074 while grep . conftest.defines >/dev/null
47076 # Write a limited-size here document to $tmp/defines.sed.
47077 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47078 # Speed up: don't consider the non `#define' lines.
47079 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
47080 # Work around the forget-to-reset-the-flag bug.
47081 echo 't clr' >>$CONFIG_STATUS
47082 echo ': clr' >>$CONFIG_STATUS
47083 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47085 sed -f $tmp/defines.sed $tmp/in >$tmp/out
47087 mv $tmp/out $tmp/in
47089 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47090 rm -f conftest.defines
47091 mv conftest.tail conftest.defines
47093 rm -f conftest.defines
47094 echo ' fi # grep' >>$CONFIG_STATUS
47095 echo >>$CONFIG_STATUS
47097 # Break up conftest.undefs because some shells have a limit on the size
47098 # of here documents, and old seds have small limits too (100 cmds).
47099 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
47100 rm -f conftest.tail
47101 while grep . conftest.undefs >/dev/null
47103 # Write a limited-size here document to $tmp/undefs.sed.
47104 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47105 # Speed up: don't consider the non `#undef'
47106 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
47107 # Work around the forget-to-reset-the-flag bug.
47108 echo 't clr' >>$CONFIG_STATUS
47109 echo ': clr' >>$CONFIG_STATUS
47110 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47112 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47114 mv $tmp/out $tmp/in
47116 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
47117 rm -f conftest.undefs
47118 mv conftest.tail conftest.undefs
47120 rm -f conftest.undefs
47122 cat >>$CONFIG_STATUS <<\_ACEOF
47123 # Let's still pretend it is `configure' which instantiates (i.e., don't
47124 # use $as_me), people would be surprised to read:
47125 # /* config.h. Generated by config.status. */
47126 if test x"$ac_file" = x-; then
47127 echo "/* Generated by configure. */" >$tmp/config.h
47129 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
47131 cat $tmp/in >>$tmp/config.h
47133 if test x"$ac_file" != x-; then
47134 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
47135 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47136 echo "$as_me: $ac_file is unchanged" >&6;}
47138 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47139 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47140 X"$ac_file" : 'X\(//\)[^/]' \| \
47141 X"$ac_file" : 'X\(//\)$' \| \
47142 X"$ac_file" : 'X\(/\)' \| \
47143 . : '\(.\)' 2>/dev/null ||
47145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47147 /^X\(\/\/\)$/{ s//\1/; q; }
47148 /^X\(\/\).*/{ s//\1/; q; }
47150 { if $as_mkdir_p; then
47155 while test ! -d "$as_dir"; do
47156 as_dirs="$as_dir $as_dirs"
47157 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47159 X"$as_dir" : 'X\(//\)[^/]' \| \
47160 X"$as_dir" : 'X\(//\)$' \| \
47161 X"$as_dir" : 'X\(/\)' \| \
47162 . : '\(.\)' 2>/dev/null ||
47164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47166 /^X\(\/\/\)$/{ s//\1/; q; }
47167 /^X\(\/\).*/{ s//\1/; q; }
47170 test ! -n "$as_dirs" || mkdir $as_dirs
47171 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47172 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47173 { (exit 1); exit 1; }; }; }
47176 mv $tmp/config.h $ac_file
47180 rm -f $tmp/config.h
47182 # Compute $ac_file's index in $config_headers.
47184 for _am_header in $config_headers :; do
47185 case $_am_header in
47186 $ac_file | $ac_file:* )
47189 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47192 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
47193 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47194 X$ac_file : 'X\(//\)[^/]' \| \
47195 X$ac_file : 'X\(//\)$' \| \
47196 X$ac_file : 'X\(/\)' \| \
47197 . : '\(.\)' 2>/dev/null ||
47199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47201 /^X\(\/\/\)$/{ s//\1/; q; }
47202 /^X\(\/\).*/{ s//\1/; q; }
47203 s/.*/./; q'`/stamp-h$_am_stamp_count
47206 cat >>$CONFIG_STATUS <<\_ACEOF
47209 # CONFIG_COMMANDS section.
47211 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
47212 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
47213 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
47214 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
47215 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47216 X"$ac_dest" : 'X\(//\)[^/]' \| \
47217 X"$ac_dest" : 'X\(//\)$' \| \
47218 X"$ac_dest" : 'X\(/\)' \| \
47219 . : '\(.\)' 2>/dev/null ||
47221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47223 /^X\(\/\/\)$/{ s//\1/; q; }
47224 /^X\(\/\).*/{ s//\1/; q; }
47226 { if $as_mkdir_p; then
47231 while test ! -d "$as_dir"; do
47232 as_dirs="$as_dir $as_dirs"
47233 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47234 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47235 X"$as_dir" : 'X\(//\)[^/]' \| \
47236 X"$as_dir" : 'X\(//\)$' \| \
47237 X"$as_dir" : 'X\(/\)' \| \
47238 . : '\(.\)' 2>/dev/null ||
47240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47241 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47242 /^X\(\/\/\)$/{ s//\1/; q; }
47243 /^X\(\/\).*/{ s//\1/; q; }
47246 test ! -n "$as_dirs" || mkdir $as_dirs
47247 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47248 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47249 { (exit 1); exit 1; }; }; }
47253 if test "$ac_dir" != .; then
47254 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47255 # A "../" for each directory in $ac_dir_suffix.
47256 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47258 ac_dir_suffix= ac_top_builddir=
47262 .) # No --srcdir option. We are building in place.
47264 if test -z "$ac_top_builddir"; then
47267 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47269 [\\/]* | ?:[\\/]* ) # Absolute path.
47270 ac_srcdir=$srcdir$ac_dir_suffix;
47271 ac_top_srcdir=$srcdir ;;
47272 *) # Relative path.
47273 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47274 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47277 # Do not use `cd foo && pwd` to compute absolute paths, because
47278 # the directories may not exist.
47280 .) ac_abs_builddir="$ac_dir";;
47283 .) ac_abs_builddir=`pwd`;;
47284 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47285 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47288 case $ac_abs_builddir in
47289 .) ac_abs_top_builddir=${ac_top_builddir}.;;
47291 case ${ac_top_builddir}. in
47292 .) ac_abs_top_builddir=$ac_abs_builddir;;
47293 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47294 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47297 case $ac_abs_builddir in
47298 .) ac_abs_srcdir=$ac_srcdir;;
47301 .) ac_abs_srcdir=$ac_abs_builddir;;
47302 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47303 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47306 case $ac_abs_builddir in
47307 .) ac_abs_top_srcdir=$ac_top_srcdir;;
47309 case $ac_top_srcdir in
47310 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47311 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47312 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47317 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
47318 echo "$as_me: executing $ac_dest commands" >&6;}
47320 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
47321 # Strip MF so we end up with the name of the file.
47322 mf=`echo "$mf" | sed -e 's/:.*$//'`
47323 # Check whether this is an Automake generated Makefile or not.
47324 # We used to match only the files named `Makefile.in', but
47325 # some people rename them; so instead we look at the file content.
47326 # Grep'ing the first line is not enough: some people post-process
47327 # each Makefile.in and add a new line on top of each file to say so.
47328 # So let's grep whole file.
47329 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
47330 dirpart=`(dirname "$mf") 2>/dev/null ||
47331 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47332 X"$mf" : 'X\(//\)[^/]' \| \
47333 X"$mf" : 'X\(//\)$' \| \
47334 X"$mf" : 'X\(/\)' \| \
47335 . : '\(.\)' 2>/dev/null ||
47337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47339 /^X\(\/\/\)$/{ s//\1/; q; }
47340 /^X\(\/\).*/{ s//\1/; q; }
47345 # Extract the definition of DEPDIR, am__include, and am__quote
47346 # from the Makefile without running `make'.
47347 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
47348 test -z "$DEPDIR" && continue
47349 am__include=`sed -n 's/^am__include = //p' < "$mf"`
47350 test -z "am__include" && continue
47351 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
47352 # When using ansi2knr, U may be empty or an underscore; expand it
47353 U=`sed -n 's/^U = //p' < "$mf"`
47354 # Find all dependency output files, they are included files with
47355 # $(DEPDIR) in their names. We invoke sed twice because it is the
47356 # simplest approach to changing $(DEPDIR) to its actual value in the
47358 for file in `sed -n "
47359 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
47360 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
47361 # Make sure the directory exists.
47362 test -f "$dirpart/$file" && continue
47363 fdir=`(dirname "$file") 2>/dev/null ||
47364 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47365 X"$file" : 'X\(//\)[^/]' \| \
47366 X"$file" : 'X\(//\)$' \| \
47367 X"$file" : 'X\(/\)' \| \
47368 . : '\(.\)' 2>/dev/null ||
47370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47372 /^X\(\/\/\)$/{ s//\1/; q; }
47373 /^X\(\/\).*/{ s//\1/; q; }
47375 { if $as_mkdir_p; then
47376 mkdir -p $dirpart/$fdir
47378 as_dir=$dirpart/$fdir
47380 while test ! -d "$as_dir"; do
47381 as_dirs="$as_dir $as_dirs"
47382 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47383 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47384 X"$as_dir" : 'X\(//\)[^/]' \| \
47385 X"$as_dir" : 'X\(//\)$' \| \
47386 X"$as_dir" : 'X\(/\)' \| \
47387 . : '\(.\)' 2>/dev/null ||
47389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47390 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47391 /^X\(\/\/\)$/{ s//\1/; q; }
47392 /^X\(\/\).*/{ s//\1/; q; }
47395 test ! -n "$as_dirs" || mkdir $as_dirs
47396 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
47397 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
47398 { (exit 1); exit 1; }; }; }
47400 # echo "creating $dirpart/$file"
47401 echo '# dummy' > "$dirpart/$file"
47408 BACKENDSC="servers/slapd/backends.c"
47409 echo "Making $BACKENDSC"
47411 cat > $BACKENDSC << ENDX
47412 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
47414 * Copyright 1998-2007 The OpenLDAP Foundation.
47415 * All rights reserved.
47417 * Redistribution and use in source and binary forms, with or without
47418 * modification, are permitted only as authorized by the OpenLDAP
47421 * A copy of this license is available in the file LICENSE in the
47422 * top-level directory of the distribution or, alternatively, at
47423 * <http://www.OpenLDAP.org/license.html>.
47425 /* This file is automatically generated by configure; please do not edit. */
47427 #include "portable.h"
47431 if test "${STATIC_BACKENDS}"; then
47432 for b in config ${STATIC_BACKENDS}; do
47433 bb=`echo "${b}" | sed -e 's/back-//'`
47434 cat >> $BACKENDSC << ENDX
47435 extern BI_init ${bb}_back_initialize;
47439 cat >> $BACKENDSC << ENDX
47441 BackendInfo slap_binfo[] = {
47444 for b in config ${STATIC_BACKENDS}; do
47445 bb=`echo "${b}" | sed -e 's/back-//'`
47446 echo " Add ${bb} ..."
47447 cat >> $BACKENDSC << ENDX
47448 { "${bb}", ${bb}_back_initialize },
47452 cat >> $BACKENDSC << ENDX
47456 /* end of generated file */
47459 OVERLAYSC="servers/slapd/overlays/statover.c"
47460 echo "Making $OVERLAYSC"
47462 cat > $OVERLAYSC << ENDX
47463 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
47465 * Copyright 1998-2007 The OpenLDAP Foundation.
47466 * All rights reserved.
47468 * Redistribution and use in source and binary forms, with or without
47469 * modification, are permitted only as authorized by the OpenLDAP
47472 * A copy of this license is available in the file LICENSE in the
47473 * top-level directory of the distribution or, alternatively, at
47474 * <http://www.OpenLDAP.org/license.html>.
47476 /* This file is automatically generated by configure; please do not edit. */
47478 #include "portable.h"
47482 if test "${STATIC_OVERLAYS}"; then
47483 for o in ${STATIC_OVERLAYS}; do
47484 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
47485 cat >> $OVERLAYSC << ENDX
47486 extern OV_init ${oo}_initialize;
47491 cat >> $OVERLAYSC << ENDX
47493 OverlayInit slap_oinfo[] = {
47496 if test "${STATIC_OVERLAYS}"; then
47497 for o in ${STATIC_OVERLAYS}; do
47498 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
47499 echo " Add ${oo} ..."
47500 cat >> $OVERLAYSC << ENDX
47501 { "${oo}", ${oo}_initialize },
47506 cat >> $OVERLAYSC << ENDX
47510 /* end of generated file */
47513 echo Please run \"make depend\" to build dependencies
47519 cat >>$CONFIG_STATUS <<\_ACEOF
47521 { (exit 0); exit 0; }
47523 chmod +x $CONFIG_STATUS
47524 ac_clean_files=$ac_clean_files_save
47527 # configure is writing to config.log, and then calls config.status.
47528 # config.status does its own redirection, appending to config.log.
47529 # Unfortunately, on DOS this fails, as config.log is still kept open
47530 # by configure, so config.status won't be able to write to it; its
47531 # output is simply discarded. So we exec the FD to /dev/null,
47532 # effectively closing config.log, so it can be properly (re)opened and
47533 # appended to by config.status. When coming back to configure, we
47534 # need to make the FD available again.
47535 if test "$no_create" != yes; then
47537 ac_config_status_args=
47538 test "$silent" = yes &&
47539 ac_config_status_args="$ac_config_status_args --quiet"
47541 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47543 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47544 # would make configure fail if this is the last instruction.
47545 $ac_cs_success || { (exit 1); exit 1; }