2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.560.2.26 2006/02/13 17:35:52 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293 echo_test_string=`eval $cmd` &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_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-denyop Deny Operation overlay no|yes|mod [no]
1052 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1053 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1054 --enable-lastmod Last Modification overlay no|yes|mod [no]
1055 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1056 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1057 --enable-refint Referential Integrity overlay no|yes|mod [no]
1058 --enable-retcode Return Code testing overlay no|yes|mod [no]
1059 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1060 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1061 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1062 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1063 --enable-valsort Value Sorting overlay no|yes|mod [no]
1065 SLURPD (Replication Daemon) Options:
1066 --enable-slurpd enable building slurpd [auto]
1068 Library Generation & Linking Options
1069 --enable-static[=PKGS]
1070 build static libraries [default=yes]
1071 --enable-shared[=PKGS]
1072 build shared libraries [default=yes]
1073 --enable-fast-install[=PKGS]
1074 optimize for fast installation [default=yes]
1075 --disable-dependency-tracking speeds up one-time build
1076 --enable-dependency-tracking do not reject slow dependency extractors
1077 --disable-libtool-lock avoid locking (might break parallel builds)
1080 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1081 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1082 --with-subdir=DIR change default subdirectory used for installs
1083 --with-cyrus-sasl with Cyrus SASL support [auto]
1084 --with-fetch with fetch(3) URL support [auto]
1085 --with-threads with threads [auto]
1086 --with-tls with TLS/SSL support [auto]
1087 --with-yielding-select with implicitly yielding select [auto]
1088 --with-multiple-precision
1089 multiple precision support for statistics
1090 auto|bignum|gmp [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-2006 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-multiple_precision
2432 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2433 if test "${with_multiple_precision+set}" = set; then
2434 withval="$with_multiple_precision"
2437 for ol_val in auto 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-multiple_precision" >&5
2444 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2445 { (exit 1); exit 1; }; }
2447 ol_with_multiple_precision="$ol_arg"
2450 ol_with_multiple_precision="auto"
2451 fi; # end --with-multiple_precision
2455 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2456 if test "${enable_xxslapdoptions+set}" = set; then
2457 enableval="$enable_xxslapdoptions"
2460 # OpenLDAP --enable-slapd
2462 # Check whether --enable-slapd or --disable-slapd was given.
2463 if test "${enable_slapd+set}" = set; then
2464 enableval="$enable_slapd"
2467 for ol_val in auto yes no ; do
2468 if test "$enableval" = "$ol_val" ; then
2472 if test "$ol_arg" = "invalid" ; then
2473 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2474 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2475 { (exit 1); exit 1; }; }
2477 ol_enable_slapd="$ol_arg"
2482 # end --enable-slapd
2483 # OpenLDAP --enable-aci
2485 # Check whether --enable-aci or --disable-aci was given.
2486 if test "${enable_aci+set}" = set; then
2487 enableval="$enable_aci"
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-aci" >&5
2497 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2498 { (exit 1); exit 1; }; }
2500 ol_enable_aci="$ol_arg"
2506 # OpenLDAP --enable-cleartext
2508 # Check whether --enable-cleartext or --disable-cleartext was given.
2509 if test "${enable_cleartext+set}" = set; then
2510 enableval="$enable_cleartext"
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-cleartext" >&5
2520 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2521 { (exit 1); exit 1; }; }
2523 ol_enable_cleartext="$ol_arg"
2526 ol_enable_cleartext=yes
2528 # end --enable-cleartext
2529 # OpenLDAP --enable-crypt
2531 # Check whether --enable-crypt or --disable-crypt was given.
2532 if test "${enable_crypt+set}" = set; then
2533 enableval="$enable_crypt"
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-crypt" >&5
2543 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2544 { (exit 1); exit 1; }; }
2546 ol_enable_crypt="$ol_arg"
2551 # end --enable-crypt
2552 # OpenLDAP --enable-lmpasswd
2554 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2555 if test "${enable_lmpasswd+set}" = set; then
2556 enableval="$enable_lmpasswd"
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-lmpasswd" >&5
2566 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2567 { (exit 1); exit 1; }; }
2569 ol_enable_lmpasswd="$ol_arg"
2572 ol_enable_lmpasswd=no
2574 # end --enable-lmpasswd
2575 # OpenLDAP --enable-spasswd
2577 # Check whether --enable-spasswd or --disable-spasswd was given.
2578 if test "${enable_spasswd+set}" = set; then
2579 enableval="$enable_spasswd"
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-spasswd" >&5
2589 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2590 { (exit 1); exit 1; }; }
2592 ol_enable_spasswd="$ol_arg"
2595 ol_enable_spasswd=no
2597 # end --enable-spasswd
2598 # OpenLDAP --enable-modules
2600 # Check whether --enable-modules or --disable-modules was given.
2601 if test "${enable_modules+set}" = set; then
2602 enableval="$enable_modules"
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-modules" >&5
2612 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2613 { (exit 1); exit 1; }; }
2615 ol_enable_modules="$ol_arg"
2618 ol_enable_modules=no
2620 # end --enable-modules
2621 ol_enable_multimaster=${ol_enable_multimaster-no}
2622 # OpenLDAP --enable-rewrite
2624 # Check whether --enable-rewrite or --disable-rewrite was given.
2625 if test "${enable_rewrite+set}" = set; then
2626 enableval="$enable_rewrite"
2629 for ol_val in auto yes no ; do
2630 if test "$enableval" = "$ol_val" ; then
2634 if test "$ol_arg" = "invalid" ; then
2635 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2636 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2637 { (exit 1); exit 1; }; }
2639 ol_enable_rewrite="$ol_arg"
2642 ol_enable_rewrite=auto
2644 # end --enable-rewrite
2645 # OpenLDAP --enable-rlookups
2647 # Check whether --enable-rlookups or --disable-rlookups was given.
2648 if test "${enable_rlookups+set}" = set; then
2649 enableval="$enable_rlookups"
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-rlookups" >&5
2659 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2660 { (exit 1); exit 1; }; }
2662 ol_enable_rlookups="$ol_arg"
2665 ol_enable_rlookups=no
2667 # end --enable-rlookups
2668 # OpenLDAP --enable-slapi
2670 # Check whether --enable-slapi or --disable-slapi was given.
2671 if test "${enable_slapi+set}" = set; then
2672 enableval="$enable_slapi"
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-slapi" >&5
2682 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2683 { (exit 1); exit 1; }; }
2685 ol_enable_slapi="$ol_arg"
2690 # end --enable-slapi
2691 # OpenLDAP --enable-slp
2693 # Check whether --enable-slp or --disable-slp was given.
2694 if test "${enable_slp+set}" = set; then
2695 enableval="$enable_slp"
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-slp" >&5
2705 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2706 { (exit 1); exit 1; }; }
2708 ol_enable_slp="$ol_arg"
2714 # OpenLDAP --enable-wrappers
2716 # Check whether --enable-wrappers or --disable-wrappers was given.
2717 if test "${enable_wrappers+set}" = set; then
2718 enableval="$enable_wrappers"
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-wrappers" >&5
2728 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2729 { (exit 1); exit 1; }; }
2731 ol_enable_wrappers="$ol_arg"
2734 ol_enable_wrappers=no
2736 # end --enable-wrappers
2752 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2753 if test "${enable_xxslapbackends+set}" = set; then
2754 enableval="$enable_xxslapbackends"
2758 # OpenLDAP --enable-backends
2760 # Check whether --enable-backends or --disable-backends was given.
2761 if test "${enable_backends+set}" = set; then
2762 enableval="$enable_backends"
2765 for ol_val in no yes mod ; do
2766 if test "$enableval" = "$ol_val" ; then
2770 if test "$ol_arg" = "invalid" ; then
2771 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2772 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2773 { (exit 1); exit 1; }; }
2775 ol_enable_backends="$ol_arg"
2778 # end --enable-backends
2779 # OpenLDAP --enable-bdb
2781 # Check whether --enable-bdb or --disable-bdb was given.
2782 if test "${enable_bdb+set}" = set; then
2783 enableval="$enable_bdb"
2786 for ol_val in no yes mod ; do
2787 if test "$enableval" = "$ol_val" ; then
2791 if test "$ol_arg" = "invalid" ; then
2792 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2793 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2794 { (exit 1); exit 1; }; }
2796 ol_enable_bdb="$ol_arg"
2799 ol_enable_bdb=${ol_enable_backends:-yes}
2802 # OpenLDAP --enable-dnssrv
2804 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2805 if test "${enable_dnssrv+set}" = set; then
2806 enableval="$enable_dnssrv"
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-dnssrv" >&5
2816 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2817 { (exit 1); exit 1; }; }
2819 ol_enable_dnssrv="$ol_arg"
2822 ol_enable_dnssrv=${ol_enable_backends:-no}
2824 # end --enable-dnssrv
2825 # OpenLDAP --enable-hdb
2827 # Check whether --enable-hdb or --disable-hdb was given.
2828 if test "${enable_hdb+set}" = set; then
2829 enableval="$enable_hdb"
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-hdb" >&5
2839 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2840 { (exit 1); exit 1; }; }
2842 ol_enable_hdb="$ol_arg"
2845 ol_enable_hdb=${ol_enable_backends:-yes}
2848 # OpenLDAP --enable-ldap
2850 # Check whether --enable-ldap or --disable-ldap was given.
2851 if test "${enable_ldap+set}" = set; then
2852 enableval="$enable_ldap"
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-ldap" >&5
2862 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2863 { (exit 1); exit 1; }; }
2865 ol_enable_ldap="$ol_arg"
2868 ol_enable_ldap=${ol_enable_backends:-no}
2871 # OpenLDAP --enable-ldbm
2873 # Check whether --enable-ldbm or --disable-ldbm was given.
2874 if test "${enable_ldbm+set}" = set; then
2875 enableval="$enable_ldbm"
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-ldbm" >&5
2885 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2886 { (exit 1); exit 1; }; }
2888 ol_enable_ldbm="$ol_arg"
2891 ol_enable_ldbm=${ol_enable_backends:-no}
2895 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2896 if test "${with_ldbm_api+set}" = set; then
2897 withval="$with_ldbm_api"
2899 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2900 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2901 enable_ldbm_api="$with_ldbm_api"
2903 # OpenLDAP --enable-ldbm_api
2905 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2906 if test "${enable_ldbm_api+set}" = set; then
2907 enableval="$enable_ldbm_api"
2910 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2911 if test "$enableval" = "$ol_val" ; then
2915 if test "$ol_arg" = "invalid" ; then
2916 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2917 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2918 { (exit 1); exit 1; }; }
2920 ol_enable_ldbm_api="$ol_arg"
2923 ol_enable_ldbm_api=auto
2925 # end --enable-ldbm_api
2928 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2929 if test "${with_ldbm_type+set}" = set; then
2930 withval="$with_ldbm_type"
2932 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2933 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2934 enable_ldbm_type="$with_ldbm_type"
2936 # OpenLDAP --enable-ldbm_type
2938 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2939 if test "${enable_ldbm_type+set}" = set; then
2940 enableval="$enable_ldbm_type"
2943 for ol_val in auto btree hash ; do
2944 if test "$enableval" = "$ol_val" ; then
2948 if test "$ol_arg" = "invalid" ; then
2949 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2950 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2951 { (exit 1); exit 1; }; }
2953 ol_enable_ldbm_type="$ol_arg"
2956 ol_enable_ldbm_type=auto
2958 # end --enable-ldbm_type
2960 # OpenLDAP --enable-meta
2962 # Check whether --enable-meta or --disable-meta was given.
2963 if test "${enable_meta+set}" = set; then
2964 enableval="$enable_meta"
2967 for ol_val in no yes mod ; do
2968 if test "$enableval" = "$ol_val" ; then
2972 if test "$ol_arg" = "invalid" ; then
2973 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2974 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2975 { (exit 1); exit 1; }; }
2977 ol_enable_meta="$ol_arg"
2980 ol_enable_meta=${ol_enable_backends:-no}
2983 # OpenLDAP --enable-monitor
2985 # Check whether --enable-monitor or --disable-monitor was given.
2986 if test "${enable_monitor+set}" = set; then
2987 enableval="$enable_monitor"
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-monitor" >&5
2997 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2998 { (exit 1); exit 1; }; }
3000 ol_enable_monitor="$ol_arg"
3003 ol_enable_monitor=${ol_enable_backends:-yes}
3005 # end --enable-monitor
3006 # OpenLDAP --enable-null
3008 # Check whether --enable-null or --disable-null was given.
3009 if test "${enable_null+set}" = set; then
3010 enableval="$enable_null"
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-null" >&5
3020 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3021 { (exit 1); exit 1; }; }
3023 ol_enable_null="$ol_arg"
3026 ol_enable_null=${ol_enable_backends:-no}
3029 # OpenLDAP --enable-passwd
3031 # Check whether --enable-passwd or --disable-passwd was given.
3032 if test "${enable_passwd+set}" = set; then
3033 enableval="$enable_passwd"
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-passwd" >&5
3043 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3044 { (exit 1); exit 1; }; }
3046 ol_enable_passwd="$ol_arg"
3049 ol_enable_passwd=${ol_enable_backends:-no}
3051 # end --enable-passwd
3052 # OpenLDAP --enable-perl
3054 # Check whether --enable-perl or --disable-perl was given.
3055 if test "${enable_perl+set}" = set; then
3056 enableval="$enable_perl"
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-perl" >&5
3066 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3067 { (exit 1); exit 1; }; }
3069 ol_enable_perl="$ol_arg"
3072 ol_enable_perl=${ol_enable_backends:-no}
3075 # OpenLDAP --enable-relay
3077 # Check whether --enable-relay or --disable-relay was given.
3078 if test "${enable_relay+set}" = set; then
3079 enableval="$enable_relay"
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-relay" >&5
3089 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3090 { (exit 1); exit 1; }; }
3092 ol_enable_relay="$ol_arg"
3095 ol_enable_relay=${ol_enable_backends:-yes}
3097 # end --enable-relay
3098 # OpenLDAP --enable-shell
3100 # Check whether --enable-shell or --disable-shell was given.
3101 if test "${enable_shell+set}" = set; then
3102 enableval="$enable_shell"
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-shell" >&5
3112 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3113 { (exit 1); exit 1; }; }
3115 ol_enable_shell="$ol_arg"
3118 ol_enable_shell=${ol_enable_backends:-no}
3120 # end --enable-shell
3121 # OpenLDAP --enable-sql
3123 # Check whether --enable-sql or --disable-sql was given.
3124 if test "${enable_sql+set}" = set; then
3125 enableval="$enable_sql"
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-sql" >&5
3135 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3136 { (exit 1); exit 1; }; }
3138 ol_enable_sql="$ol_arg"
3141 ol_enable_sql=${ol_enable_backends:-no}
3145 Overlays="accesslog \
3160 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3161 if test "${enable_xxslapoverlays+set}" = set; then
3162 enableval="$enable_xxslapoverlays"
3166 # OpenLDAP --enable-overlays
3168 # Check whether --enable-overlays or --disable-overlays was given.
3169 if test "${enable_overlays+set}" = set; then
3170 enableval="$enable_overlays"
3173 for ol_val in no yes mod ; do
3174 if test "$enableval" = "$ol_val" ; then
3178 if test "$ol_arg" = "invalid" ; then
3179 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3180 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3181 { (exit 1); exit 1; }; }
3183 ol_enable_overlays="$ol_arg"
3186 # end --enable-overlays
3187 # OpenLDAP --enable-accesslog
3189 # Check whether --enable-accesslog or --disable-accesslog was given.
3190 if test "${enable_accesslog+set}" = set; then
3191 enableval="$enable_accesslog"
3194 for ol_val in no yes mod ; do
3195 if test "$enableval" = "$ol_val" ; then
3199 if test "$ol_arg" = "invalid" ; then
3200 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3201 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3202 { (exit 1); exit 1; }; }
3204 ol_enable_accesslog="$ol_arg"
3207 ol_enable_accesslog=${ol_enable_overlays:-no}
3209 # end --enable-accesslog
3211 # OpenLDAP --enable-denyop
3213 # Check whether --enable-denyop or --disable-denyop was given.
3214 if test "${enable_denyop+set}" = set; then
3215 enableval="$enable_denyop"
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-denyop" >&5
3225 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3226 { (exit 1); exit 1; }; }
3228 ol_enable_denyop="$ol_arg"
3231 ol_enable_denyop=${ol_enable_overlays:-no}
3233 # end --enable-denyop
3235 # OpenLDAP --enable-dyngroup
3237 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3238 if test "${enable_dyngroup+set}" = set; then
3239 enableval="$enable_dyngroup"
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-dyngroup" >&5
3249 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3250 { (exit 1); exit 1; }; }
3252 ol_enable_dyngroup="$ol_arg"
3255 ol_enable_dyngroup=${ol_enable_overlays:-no}
3257 # end --enable-dyngroup
3259 # OpenLDAP --enable-dynlist
3261 # Check whether --enable-dynlist or --disable-dynlist was given.
3262 if test "${enable_dynlist+set}" = set; then
3263 enableval="$enable_dynlist"
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-dynlist" >&5
3273 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3274 { (exit 1); exit 1; }; }
3276 ol_enable_dynlist="$ol_arg"
3279 ol_enable_dynlist=${ol_enable_overlays:-no}
3281 # end --enable-dynlist
3283 # OpenLDAP --enable-lastmod
3285 # Check whether --enable-lastmod or --disable-lastmod was given.
3286 if test "${enable_lastmod+set}" = set; then
3287 enableval="$enable_lastmod"
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-lastmod" >&5
3297 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3298 { (exit 1); exit 1; }; }
3300 ol_enable_lastmod="$ol_arg"
3303 ol_enable_lastmod=${ol_enable_overlays:-no}
3305 # end --enable-lastmod
3307 # OpenLDAP --enable-ppolicy
3309 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3310 if test "${enable_ppolicy+set}" = set; then
3311 enableval="$enable_ppolicy"
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-ppolicy" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3322 { (exit 1); exit 1; }; }
3324 ol_enable_ppolicy="$ol_arg"
3327 ol_enable_ppolicy=${ol_enable_overlays:-no}
3329 # end --enable-ppolicy
3331 # OpenLDAP --enable-proxycache
3333 # Check whether --enable-proxycache or --disable-proxycache was given.
3334 if test "${enable_proxycache+set}" = set; then
3335 enableval="$enable_proxycache"
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-proxycache" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3346 { (exit 1); exit 1; }; }
3348 ol_enable_proxycache="$ol_arg"
3351 ol_enable_proxycache=${ol_enable_overlays:-no}
3353 # end --enable-proxycache
3355 # OpenLDAP --enable-refint
3357 # Check whether --enable-refint or --disable-refint was given.
3358 if test "${enable_refint+set}" = set; then
3359 enableval="$enable_refint"
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-refint" >&5
3369 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3370 { (exit 1); exit 1; }; }
3372 ol_enable_refint="$ol_arg"
3375 ol_enable_refint=${ol_enable_overlays:-no}
3377 # end --enable-refint
3379 # OpenLDAP --enable-retcode
3381 # Check whether --enable-retcode or --disable-retcode was given.
3382 if test "${enable_retcode+set}" = set; then
3383 enableval="$enable_retcode"
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-retcode" >&5
3393 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3394 { (exit 1); exit 1; }; }
3396 ol_enable_retcode="$ol_arg"
3399 ol_enable_retcode=${ol_enable_overlays:-no}
3401 # end --enable-retcode
3403 # OpenLDAP --enable-rwm
3405 # Check whether --enable-rwm or --disable-rwm was given.
3406 if test "${enable_rwm+set}" = set; then
3407 enableval="$enable_rwm"
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-rwm" >&5
3417 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3418 { (exit 1); exit 1; }; }
3420 ol_enable_rwm="$ol_arg"
3423 ol_enable_rwm=${ol_enable_overlays:-no}
3427 # OpenLDAP --enable-syncprov
3429 # Check whether --enable-syncprov or --disable-syncprov was given.
3430 if test "${enable_syncprov+set}" = set; then
3431 enableval="$enable_syncprov"
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-syncprov" >&5
3441 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3442 { (exit 1); exit 1; }; }
3444 ol_enable_syncprov="$ol_arg"
3447 ol_enable_syncprov=${ol_enable_overlays:-yes}
3449 # end --enable-syncprov
3451 # OpenLDAP --enable-translucent
3453 # Check whether --enable-translucent or --disable-translucent was given.
3454 if test "${enable_translucent+set}" = set; then
3455 enableval="$enable_translucent"
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-translucent" >&5
3465 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3466 { (exit 1); exit 1; }; }
3468 ol_enable_translucent="$ol_arg"
3471 ol_enable_translucent=${ol_enable_overlays:-no}
3473 # end --enable-translucent
3475 # OpenLDAP --enable-unique
3477 # Check whether --enable-unique or --disable-unique was given.
3478 if test "${enable_unique+set}" = set; then
3479 enableval="$enable_unique"
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-unique" >&5
3489 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3490 { (exit 1); exit 1; }; }
3492 ol_enable_unique="$ol_arg"
3495 ol_enable_unique=${ol_enable_overlays:-no}
3497 # end --enable-unique
3499 # OpenLDAP --enable-valsort
3501 # Check whether --enable-valsort or --disable-valsort was given.
3502 if test "${enable_valsort+set}" = set; then
3503 enableval="$enable_valsort"
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-valsort" >&5
3513 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3514 { (exit 1); exit 1; }; }
3516 ol_enable_valsort="$ol_arg"
3519 ol_enable_valsort=${ol_enable_overlays:-no}
3521 # end --enable-valsort
3524 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3525 if test "${enable_xxslurpdoptions+set}" = set; then
3526 enableval="$enable_xxslurpdoptions"
3529 # OpenLDAP --enable-slurpd
3531 # Check whether --enable-slurpd or --disable-slurpd was given.
3532 if test "${enable_slurpd+set}" = set; then
3533 enableval="$enable_slurpd"
3536 for ol_val in auto yes no ; do
3537 if test "$enableval" = "$ol_val" ; then
3541 if test "$ol_arg" = "invalid" ; then
3542 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3543 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3544 { (exit 1); exit 1; }; }
3546 ol_enable_slurpd="$ol_arg"
3549 ol_enable_slurpd=auto
3551 # end --enable-slurpd
3553 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3554 if test "${enable_xxliboptions+set}" = set; then
3555 enableval="$enable_xxliboptions"
3558 # Check whether --enable-static or --disable-static was given.
3559 if test "${enable_static+set}" = set; then
3560 enableval="$enable_static"
3561 p=${PACKAGE-default}
3563 yes) enable_static=yes ;;
3564 no) enable_static=no ;;
3567 # Look at the argument we got. We use all the common list separators.
3568 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3569 for pkg in $enableval; do
3571 if test "X$pkg" = "X$p"; then
3582 # Check whether --enable-shared or --disable-shared was given.
3583 if test "${enable_shared+set}" = set; then
3584 enableval="$enable_shared"
3585 p=${PACKAGE-default}
3587 yes) enable_shared=yes ;;
3588 no) enable_shared=no ;;
3591 # Look at the argument we got. We use all the common list separators.
3592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3593 for pkg in $enableval; do
3595 if test "X$pkg" = "X$p"; then
3609 if test $ol_enable_slapd = no ; then
3610 if test $ol_enable_slapi = yes ; then
3611 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3612 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3614 case "$ol_enable_backends" in yes | mod)
3615 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3616 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3618 for i in $Backends; do
3619 eval "ol_tmp=\$ol_enable_$i"
3620 if test $ol_tmp != no ; then
3621 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3622 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3623 eval "ol_enable_$i=no"
3626 if test $ol_enable_modules = yes ; then
3627 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3628 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3630 if test $ol_enable_multimaster = yes ; then
3631 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3632 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3634 if test $ol_enable_wrappers = yes ; then
3635 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3636 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3638 if test $ol_enable_rlookups = yes ; then
3639 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3640 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3642 if test $ol_enable_aci = yes ; then
3643 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3644 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3646 if test $ol_enable_ldbm_api != auto ; then
3647 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3648 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3650 if test $ol_enable_ldbm_type != auto ; then
3651 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3652 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3654 if test $ol_enable_slurpd = yes ; then
3655 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3656 echo "$as_me: error: slurpd requires slapd" >&2;}
3657 { (exit 1); exit 1; }; }
3659 if test $ol_enable_rewrite = yes ; then
3660 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3661 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3663 case "$ol_enable_overlays" in yes | mod)
3664 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3665 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3667 for i in $Overlays; do
3668 eval "ol_tmp=\$ol_enable_$i"
3669 if test $ol_tmp != no ; then
3670 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3672 eval "ol_enable_$i=no"
3676 # force settings to no
3681 ol_enable_modules=no
3682 ol_enable_multimaster=no
3683 ol_enable_rlookups=no
3685 ol_enable_wrappers=no
3687 ol_enable_ldbm_api=no
3688 ol_enable_ldbm_type=no
3692 ol_enable_rewrite=no
3694 elif test $ol_enable_ldbm = no ; then
3696 if test $ol_enable_ldbm_api != auto ; then
3697 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3698 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3701 if test $ol_enable_ldbm_type != auto ; then
3702 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3703 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3706 if test $ol_enable_modules != yes &&
3707 test $ol_enable_bdb = no &&
3708 test $ol_enable_dnssrv = no &&
3709 test $ol_enable_hdb = no &&
3710 test $ol_enable_ldap = no &&
3711 test $ol_enable_meta = no &&
3712 test $ol_enable_monitor = no &&
3713 test $ol_enable_null = no &&
3714 test $ol_enable_passwd = no &&
3715 test $ol_enable_perl = no &&
3716 test $ol_enable_relay = no &&
3717 test $ol_enable_shell = no &&
3718 test $ol_enable_sql = no ; then
3720 if test $ol_enable_slapd = yes ; then
3721 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3722 echo "$as_me: error: slapd requires a backend" >&2;}
3723 { (exit 1); exit 1; }; }
3725 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3726 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3731 ol_enable_ldbm_api=no
3732 ol_enable_ldbm_type=no
3734 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3735 ol_enable_ldbm_api=berkeley
3739 if test $ol_enable_ldbm_api = gdbm &&
3740 test $ol_enable_ldbm_type = btree ; then
3741 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3742 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3743 { (exit 1); exit 1; }; }
3745 if test $ol_enable_ldbm_api = mdbm &&
3746 test $ol_enable_ldbm_type = btree ; then
3747 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3748 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3749 { (exit 1); exit 1; }; }
3751 if test $ol_enable_ldbm_api = ndbm &&
3752 test $ol_enable_ldbm_type = btree ; then
3753 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3754 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3755 { (exit 1); exit 1; }; }
3758 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3759 if test $ol_enable_ldbm_api = auto ; then
3760 ol_enable_ldbm_api=berkeley
3761 elif test $ol_enable_ldbm_api != berkeley ; then
3762 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3763 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3764 { (exit 1); exit 1; }; }
3769 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3770 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3771 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3772 { (exit 1); exit 1; }; }
3775 if test $ol_enable_slurpd = yes ; then
3776 if test $ol_with_threads = no ; then
3777 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3778 echo "$as_me: error: slurpd requires threads" >&2;}
3779 { (exit 1); exit 1; }; }
3783 if test $ol_enable_lmpasswd = yes ; then
3784 if test $ol_with_tls = no ; then
3785 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3786 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3787 { (exit 1); exit 1; }; }
3791 if test $ol_enable_kbind = yes ; then
3792 if test $ol_with_kerberos = no ; then
3793 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3794 echo "$as_me: error: options require --with-kerberos" >&2;}
3795 { (exit 1); exit 1; }; }
3796 elif test $ol_with_kerberos = auto ; then
3797 ol_with_kerberos=yes
3800 elif test $ol_enable_kbind = no ; then
3801 if test $ol_with_kerberos = auto ; then
3803 elif test $ol_with_kerberos != no ; then
3804 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3805 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3810 if test $ol_enable_spasswd = yes ; then
3811 if test $ol_with_cyrus_sasl = no ; then
3812 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3813 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3814 { (exit 1); exit 1; }; }
3816 ol_with_cyrus_sasl=yes
3819 echo "$as_me:$LINENO: result: done" >&5
3820 echo "${ECHO_T}done" >&6
3863 BUILD_TRANSLUCENT=no
3867 SLAPD_STATIC_OVERLAYS=
3868 SLAPD_DYNAMIC_OVERLAYS=
3870 SLAPD_MODULES_LDFLAGS=
3871 SLAPD_MODULES_CPPFLAGS=
3873 SLAPD_STATIC_BACKENDS=back-ldif
3874 SLAPD_DYNAMIC_BACKENDS=
3899 cat >>confdefs.h <<\_ACEOF
3900 #define HAVE_MKVERSION 1
3908 *-*-aix*) if test -z "$CC" ; then
3909 case "$ol_with_threads" in
3910 auto | yes | posix) ol_aix_threads=yes ;;
3916 if test $ol_aix_threads = yes ; then
3917 if test -z "${CC}" ; then
3918 for ac_prog in cc_r xlc_r cc
3920 # Extract the first word of "$ac_prog", so it can be a program name with args.
3921 set dummy $ac_prog; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_CC+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if test -n "$CC"; then
3928 ac_cv_prog_CC="$CC" # Let the user override the test.
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_CC="$ac_prog"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 if test -n "$CC"; then
3948 echo "$as_me:$LINENO: result: $CC" >&5
3949 echo "${ECHO_T}$CC" >&6
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3955 test -n "$CC" && break
3959 if test "$CC" = cc ; then
3960 if test $ol_with_threads != auto ; then
3961 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3962 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3963 { (exit 1); exit 1; }; }
3965 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3966 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3972 case ${CC} in cc_r | xlc_r)
3973 ol_with_threads=posix
3974 ol_cv_pthread_create=yes
3979 if test -z "${CC}"; then
3980 for ac_prog in cc gcc
3982 # Extract the first word of "$ac_prog", so it can be a program name with args.
3983 set dummy $ac_prog; ac_word=$2
3984 echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986 if test "${ac_cv_prog_CC+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 if test -n "$CC"; then
3990 ac_cv_prog_CC="$CC" # Let the user override the test.
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999 ac_cv_prog_CC="$ac_prog"
4000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 if test -n "$CC"; then
4010 echo "$as_me:$LINENO: result: $CC" >&5
4011 echo "${ECHO_T}$CC" >&6
4013 echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6
4017 test -n "$CC" && break
4019 test -n "$CC" || CC="missing"
4022 if test "${CC}" = "missing" ; then
4023 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4024 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4025 { (exit 1); exit 1; }; }
4029 if test -z "${AR}"; then
4030 for ac_prog in ar gar
4032 # Extract the first word of "$ac_prog", so it can be a program name with args.
4033 set dummy $ac_prog; ac_word=$2
4034 echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4036 if test "${ac_cv_prog_AR+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 if test -n "$AR"; then
4040 ac_cv_prog_AR="$AR" # Let the user override the test.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049 ac_cv_prog_AR="$ac_prog"
4050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 if test -n "$AR"; then
4060 echo "$as_me:$LINENO: result: $AR" >&5
4061 echo "${ECHO_T}$AR" >&6
4063 echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4067 test -n "$AR" && break
4069 test -n "$AR" || AR="missing"
4072 if test "${AR}" = "missing" ; then
4073 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4074 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4075 { (exit 1); exit 1; }; }
4083 # Check whether --enable-fast-install or --disable-fast-install was given.
4084 if test "${enable_fast_install+set}" = set; then
4085 enableval="$enable_fast_install"
4086 p=${PACKAGE-default}
4088 yes) enable_fast_install=yes ;;
4089 no) enable_fast_install=no ;;
4091 enable_fast_install=no
4092 # Look at the argument we got. We use all the common list separators.
4093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4094 for pkg in $enableval; do
4096 if test "X$pkg" = "X$p"; then
4097 enable_fast_install=yes
4104 enable_fast_install=yes
4107 DEPDIR="${am__leading_dot}deps"
4109 ac_config_commands="$ac_config_commands depfiles"
4112 am_make=${MAKE-make}
4113 cat > confinc << 'END'
4118 # If we don't find an include directive, just comment out the code.
4119 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4120 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4124 # First try GNU make style include.
4125 echo "include confinc" > confmf
4126 # We grep out `Entering directory' and `Leaving directory'
4127 # messages which can occur if `w' ends up in MAKEFLAGS.
4128 # In particular we don't look at `^make:' because GNU make might
4129 # be invoked under some other name (usually "gmake"), in which
4130 # case it prints its new name instead of `make'.
4131 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4136 # Now try BSD make style include.
4137 if test "$am__include" = "#"; then
4138 echo '.include "confinc"' > confmf
4139 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4140 am__include=.include
4147 echo "$as_me:$LINENO: result: $_am_result" >&5
4148 echo "${ECHO_T}$_am_result" >&6
4149 rm -f confinc confmf
4151 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4152 if test "${enable_dependency_tracking+set}" = set; then
4153 enableval="$enable_dependency_tracking"
4156 if test "x$enable_dependency_tracking" != xno; then
4157 am_depcomp="$ac_aux_dir/depcomp"
4162 if test "x$enable_dependency_tracking" != xno; then
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 if test -n "$ac_tool_prefix"; then
4178 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4179 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_prog_CC+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 if test -n "$CC"; then
4186 ac_cv_prog_CC="$CC" # Let the user override the test.
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 if test -n "$CC"; then
4206 echo "$as_me:$LINENO: result: $CC" >&5
4207 echo "${ECHO_T}$CC" >&6
4209 echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6
4214 if test -z "$ac_cv_prog_CC"; then
4216 # Extract the first word of "gcc", so it can be a program name with args.
4217 set dummy gcc; ac_word=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 if test -n "$ac_ct_CC"; then
4224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_ac_ct_CC="gcc"
4234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4243 if test -n "$ac_ct_CC"; then
4244 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4245 echo "${ECHO_T}$ac_ct_CC" >&6
4247 echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6
4256 if test -z "$CC"; then
4257 if test -n "$ac_tool_prefix"; then
4258 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4259 set dummy ${ac_tool_prefix}cc; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_prog_CC+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$CC"; then
4266 ac_cv_prog_CC="$CC" # Let the user override the test.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_prog_CC="${ac_tool_prefix}cc"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 if test -n "$CC"; then
4286 echo "$as_me:$LINENO: result: $CC" >&5
4287 echo "${ECHO_T}$CC" >&6
4289 echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4294 if test -z "$ac_cv_prog_CC"; then
4296 # Extract the first word of "cc", so it can be a program name with args.
4297 set dummy cc; ac_word=$2
4298 echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 if test -n "$ac_ct_CC"; then
4304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313 ac_cv_prog_ac_ct_CC="cc"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4323 if test -n "$ac_ct_CC"; then
4324 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4325 echo "${ECHO_T}$ac_ct_CC" >&6
4327 echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6
4337 if test -z "$CC"; then
4338 # Extract the first word of "cc", so it can be a program name with args.
4339 set dummy cc; ac_word=$2
4340 echo "$as_me:$LINENO: checking for $ac_word" >&5
4341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4342 if test "${ac_cv_prog_CC+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 if test -n "$CC"; then
4346 ac_cv_prog_CC="$CC" # Let the user override the test.
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4357 ac_prog_rejected=yes
4361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 if test $ac_prog_rejected = yes; then
4368 # We found a bogon in the path, so make sure we never use it.
4369 set dummy $ac_cv_prog_CC
4371 if test $# != 0; then
4372 # We chose a different compiler from the bogus one.
4373 # However, it has the same basename, so the bogon will be chosen
4374 # first if we set CC to just the basename; use the full file name.
4376 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4382 if test -n "$CC"; then
4383 echo "$as_me:$LINENO: result: $CC" >&5
4384 echo "${ECHO_T}$CC" >&6
4386 echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4391 if test -z "$CC"; then
4392 if test -n "$ac_tool_prefix"; then
4395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4397 echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399 if test "${ac_cv_prog_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 if test -n "$CC"; then
4403 ac_cv_prog_CC="$CC" # Let the user override the test.
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 if test -n "$CC"; then
4423 echo "$as_me:$LINENO: result: $CC" >&5
4424 echo "${ECHO_T}$CC" >&6
4426 echo "$as_me:$LINENO: result: no" >&5
4427 echo "${ECHO_T}no" >&6
4430 test -n "$CC" && break
4433 if test -z "$CC"; then
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 echo "$as_me:$LINENO: checking for $ac_word" >&5
4440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 if test -n "$ac_ct_CC"; then
4445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_prog_ac_ct_CC="$ac_prog"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4464 if test -n "$ac_ct_CC"; then
4465 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4466 echo "${ECHO_T}$ac_ct_CC" >&6
4468 echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6
4472 test -n "$ac_ct_CC" && break
4481 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4482 See \`config.log' for more details." >&5
4483 echo "$as_me: error: no acceptable C compiler found in \$PATH
4484 See \`config.log' for more details." >&2;}
4485 { (exit 1); exit 1; }; }
4487 # Provide some information about the compiler.
4488 echo "$as_me:$LINENO:" \
4489 "checking for C compiler version" >&5
4490 ac_compiler=`set X $ac_compile; echo $2`
4491 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4492 (eval $ac_compiler --version </dev/null >&5) 2>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }
4496 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4497 (eval $ac_compiler -v </dev/null >&5) 2>&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }
4501 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4502 (eval $ac_compiler -V </dev/null >&5) 2>&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }
4507 cat >conftest.$ac_ext <<_ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4522 ac_clean_files_save=$ac_clean_files
4523 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4524 # Try to create an executable without -o first, disregard a.out.
4525 # It will help us diagnose broken compilers, and finding out an intuition
4527 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4528 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4529 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4530 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4531 (eval $ac_link_default) 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; then
4535 # Find the output, starting from the most likely. This scheme is
4536 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4539 # Be careful to initialize this variable, since it used to be cached.
4540 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4542 # b.out is created by i960 compilers.
4543 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4545 test -f "$ac_file" || continue
4547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4550 # This is the source file.
4553 # We found the default executable, but exeext='' is most
4557 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4558 # FIXME: I believe we export ac_cv_exeext for Libtool,
4559 # but it would be cool to find out if it's true. Does anybody
4560 # maintain Libtool? --akim.
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4571 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4572 See \`config.log' for more details." >&5
4573 echo "$as_me: error: C compiler cannot create executables
4574 See \`config.log' for more details." >&2;}
4575 { (exit 77); exit 77; }; }
4578 ac_exeext=$ac_cv_exeext
4579 echo "$as_me:$LINENO: result: $ac_file" >&5
4580 echo "${ECHO_T}$ac_file" >&6
4582 # Check the compiler produces executables we can run. If not, either
4583 # the compiler is broken, or we cross compile.
4584 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4585 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4586 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4587 # If not cross compiling, check that we can run a simple program.
4588 if test "$cross_compiling" != yes; then
4589 if { ac_try='./$ac_file'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
4597 if test "$cross_compiling" = maybe; then
4600 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4601 If you meant to cross compile, use \`--host'.
4602 See \`config.log' for more details." >&5
4603 echo "$as_me: error: cannot run C compiled programs.
4604 If you meant to cross compile, use \`--host'.
4605 See \`config.log' for more details." >&2;}
4606 { (exit 1); exit 1; }; }
4610 echo "$as_me:$LINENO: result: yes" >&5
4611 echo "${ECHO_T}yes" >&6
4613 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4614 ac_clean_files=$ac_clean_files_save
4615 # Check the compiler produces executables we can run. If not, either
4616 # the compiler is broken, or we cross compile.
4617 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4618 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4619 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4620 echo "${ECHO_T}$cross_compiling" >&6
4622 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4623 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4625 (eval $ac_link) 2>&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; then
4629 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4630 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4631 # work properly (i.e., refer to `conftest.exe'), while it won't with
4633 for ac_file in conftest.exe conftest conftest.*; do
4634 test -f "$ac_file" || continue
4636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4637 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4644 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4645 See \`config.log' for more details." >&5
4646 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4647 See \`config.log' for more details." >&2;}
4648 { (exit 1); exit 1; }; }
4651 rm -f conftest$ac_cv_exeext
4652 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4653 echo "${ECHO_T}$ac_cv_exeext" >&6
4655 rm -f conftest.$ac_ext
4656 EXEEXT=$ac_cv_exeext
4658 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4659 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4660 if test "${ac_cv_objext+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 cat >conftest.$ac_ext <<_ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4678 rm -f conftest.o conftest.obj
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680 (eval $ac_compile) 2>&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; then
4684 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4687 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4695 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4696 See \`config.log' for more details." >&5
4697 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4698 See \`config.log' for more details." >&2;}
4699 { (exit 1); exit 1; }; }
4702 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4704 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4705 echo "${ECHO_T}$ac_cv_objext" >&6
4706 OBJEXT=$ac_cv_objext
4708 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4709 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4710 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 cat >conftest.$ac_ext <<_ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4731 rm -f conftest.$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>conftest.er1
4735 grep -v '^ *+' conftest.er1 >conftest.err
4737 cat conftest.err >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try='test -z "$ac_c_werror_flag"
4741 || test ! -s conftest.err'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try='test -s conftest.$ac_objext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4764 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4765 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4766 GCC=`test $ac_compiler_gnu = yes && echo yes`
4767 ac_test_CFLAGS=${CFLAGS+set}
4768 ac_save_CFLAGS=$CFLAGS
4770 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4772 if test "${ac_cv_prog_cc_g+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 cat >conftest.$ac_ext <<_ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4790 rm -f conftest.$ac_objext
4791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4792 (eval $ac_compile) 2>conftest.er1
4794 grep -v '^ *+' conftest.er1 >conftest.err
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } &&
4799 { ac_try='test -z "$ac_c_werror_flag"
4800 || test ! -s conftest.err'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; } &&
4806 { ac_try='test -s conftest.$ac_objext'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4822 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4823 if test "$ac_test_CFLAGS" = set; then
4824 CFLAGS=$ac_save_CFLAGS
4825 elif test $ac_cv_prog_cc_g = yes; then
4826 if test "$GCC" = yes; then
4832 if test "$GCC" = yes; then
4838 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4839 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4840 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 ac_cv_prog_cc_stdc=no
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4853 #include <sys/types.h>
4854 #include <sys/stat.h>
4855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4856 struct buf { int x; };
4857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4858 static char *e (p, i)
4864 static char *f (char * (*g) (char **, int), char **p, ...)
4869 s = g (p, va_arg (v,int));
4874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4875 function prototypes and stuff, but not '\xHH' hex character constants.
4876 These don't provoke an error unfortunately, instead are silently treated
4877 as 'x'. The following induces an error, until -std1 is added to get
4878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4879 array size at least. It's necessary to write '\x00'==0 to get something
4880 that's true only with -std1. */
4881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4883 int test (int i, double x);
4884 struct s1 {int (*f) (int a);};
4885 struct s2 {int (*f) (double a);};
4886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4897 # Don't try gcc -ansi; that turns off useful extensions and
4898 # breaks some systems' header files.
4899 # AIX -qlanglvl=ansi
4900 # Ultrix and OSF/1 -std1
4901 # HP-UX 10.20 and later -Ae
4902 # HP-UX older versions -Aa -D_HPUX_SOURCE
4903 # SVR4 -Xc -D__EXTENSIONS__
4904 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4906 CC="$ac_save_CC $ac_arg"
4907 rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>conftest.er1
4911 grep -v '^ *+' conftest.er1 >conftest.err
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try='test -z "$ac_c_werror_flag"
4917 || test ! -s conftest.err'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; } &&
4923 { ac_try='test -s conftest.$ac_objext'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; }; then
4929 ac_cv_prog_cc_stdc=$ac_arg
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4936 rm -f conftest.err conftest.$ac_objext
4938 rm -f conftest.$ac_ext conftest.$ac_objext
4943 case "x$ac_cv_prog_cc_stdc" in
4945 echo "$as_me:$LINENO: result: none needed" >&5
4946 echo "${ECHO_T}none needed" >&6 ;;
4948 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4949 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4950 CC="$CC $ac_cv_prog_cc_stdc" ;;
4953 # Some people use a C++ compiler to compile C. Since we use `exit',
4954 # in C++ we need to declare it. In case someone uses the same compiler
4955 # for both compiling C and C++ we need to have the C++ compiler decide
4956 # the declaration of exit, since it's the most demanding environment.
4957 cat >conftest.$ac_ext <<_ACEOF
4962 rm -f conftest.$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>conftest.er1
4966 grep -v '^ *+' conftest.er1 >conftest.err
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try='test -z "$ac_c_werror_flag"
4972 || test ! -s conftest.err'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; } &&
4978 { ac_try='test -s conftest.$ac_objext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 for ac_declaration in \
4986 'extern "C" void std::exit (int) throw (); using std::exit;' \
4987 'extern "C" void std::exit (int); using std::exit;' \
4988 'extern "C" void exit (int) throw ();' \
4989 'extern "C" void exit (int);' \
4992 cat >conftest.$ac_ext <<_ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
5008 rm -f conftest.$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>conftest.er1
5012 grep -v '^ *+' conftest.er1 >conftest.err
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5038 cat >conftest.$ac_ext <<_ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5053 rm -f conftest.$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055 (eval $ac_compile) 2>conftest.er1
5057 grep -v '^ *+' conftest.er1 >conftest.err
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try='test -z "$ac_c_werror_flag"
5063 || test ! -s conftest.err'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; } &&
5069 { ac_try='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5084 if test -n "$ac_declaration"; then
5085 echo '#ifdef __cplusplus' >>confdefs.h
5086 echo $ac_declaration >>confdefs.h
5087 echo '#endif' >>confdefs.h
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5102 depcc="$CC" am_compiler_list=
5104 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5105 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5106 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5110 # We make a subdir and do the tests there. Otherwise we can end up
5111 # making bogus files that we don't know about and never remove. For
5112 # instance it was reported that on HP-UX the gcc test will end up
5113 # making a dummy file named `D' -- because `-MD' means `put the output
5116 # Copy depcomp to subdir because otherwise we won't find it if we're
5117 # using a relative directory.
5118 cp "$am_depcomp" conftest.dir
5120 # We will build objects and dependencies in a subdirectory because
5121 # it helps to detect inapplicable dependency modes. For instance
5122 # both Tru64's cc and ICC support -MD to output dependencies as a
5123 # side effect of compilation, but ICC will put the dependencies in
5124 # the current directory while Tru64 will put them in the object
5128 am_cv_CC_dependencies_compiler_type=none
5129 if test "$am_compiler_list" = ""; then
5130 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5132 for depmode in $am_compiler_list; do
5133 # Setup a source with many dependencies, because some compilers
5134 # like to wrap large dependency lists on column 80 (with \), and
5135 # we should not choose a depcomp mode which is confused by this.
5137 # We need to recreate these files for each test, as the compiler may
5138 # overwrite some of them when testing with obscure command lines.
5139 # This happens at least with the AIX C compiler.
5141 for i in 1 2 3 4 5 6; do
5142 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5143 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5144 # Solaris 8's {/usr,}/bin/sh.
5145 touch sub/conftst$i.h
5147 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5151 # after this tag, mechanisms are not by side-effect, so they'll
5152 # only be used when explicitly requested
5153 if test "x$enable_dependency_tracking" = xyes; then
5161 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5162 # mode. It turns out that the SunPro C++ compiler does not properly
5163 # handle `-M -o', and we need to detect this.
5164 if depmode=$depmode \
5165 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5166 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5167 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5168 >/dev/null 2>conftest.err &&
5169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5170 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5172 # icc doesn't choke on unknown options, it will just issue warnings
5173 # or remarks (even with -Werror). So we grep stderr for any message
5174 # that says an option was ignored or not supported.
5175 # When given -MP, icc 7.0 and 7.1 complain thusly:
5176 # icc: Command line warning: ignoring option '-M'; no argument required
5177 # The diagnosis changed in icc 8.0:
5178 # icc: Command line remark: option '-MP' not supported
5179 if (grep 'ignoring option' conftest.err ||
5180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5181 am_cv_CC_dependencies_compiler_type=$depmode
5190 am_cv_CC_dependencies_compiler_type=none
5194 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5195 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5201 test "x$enable_dependency_tracking" != xno \
5202 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5204 am__fastdepCC_FALSE='#'
5206 am__fastdepCC_TRUE='#'
5207 am__fastdepCC_FALSE=
5211 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5212 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5213 if test "${lt_cv_path_SED+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 # Loop through the user's path and test for sed and gsed.
5217 # Then use that list of sed's as ones to test for truncation.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for lt_ac_prog in sed gsed; do
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5226 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5233 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5234 # along with /bin/sed that truncates output.
5235 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5236 test ! -f $lt_ac_sed && continue
5237 cat /dev/null > conftest.in
5239 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5240 # Check for GNU sed and select it if it is found.
5241 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5242 lt_cv_path_SED=$lt_ac_sed
5246 cat conftest.in conftest.in >conftest.tmp
5247 mv conftest.tmp conftest.in
5248 cp conftest.in conftest.nl
5250 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5251 cmp -s conftest.out conftest.nl || break
5252 # 10000 chars as input seems more than enough
5253 test $lt_ac_count -gt 10 && break
5254 lt_ac_count=`expr $lt_ac_count + 1`
5255 if test $lt_ac_count -gt $lt_ac_max; then
5256 lt_ac_max=$lt_ac_count
5257 lt_cv_path_SED=$lt_ac_sed
5265 echo "$as_me:$LINENO: result: $SED" >&5
5266 echo "${ECHO_T}$SED" >&6
5268 echo "$as_me:$LINENO: checking for egrep" >&5
5269 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5270 if test "${ac_cv_prog_egrep+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5274 then ac_cv_prog_egrep='grep -E'
5275 else ac_cv_prog_egrep='egrep'
5278 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5279 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5280 EGREP=$ac_cv_prog_egrep
5284 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5285 if test "${with_gnu_ld+set}" = set; then
5286 withval="$with_gnu_ld"
5287 test "$withval" = no || with_gnu_ld=yes
5292 if test "$GCC" = yes; then
5293 # Check if gcc -print-prog-name=ld gives a path.
5294 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5295 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5298 # gcc leaves a trailing carriage return which upsets mingw
5299 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5301 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5304 # Accept absolute paths.
5306 re_direlt='/[^/][^/]*/\.\./'
5307 # Canonicalize the pathname of ld
5308 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5309 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5310 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5312 test -z "$LD" && LD="$ac_prog"
5315 # If it fails, then pretend we aren't using GCC.
5319 # If it is relative, then search for the first ld in PATH.
5323 elif test "$with_gnu_ld" = yes; then
5324 echo "$as_me:$LINENO: checking for GNU ld" >&5
5325 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5327 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5328 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5330 if test "${lt_cv_path_LD+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 if test -z "$LD"; then
5334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5335 for ac_dir in $PATH; do
5337 test -z "$ac_dir" && ac_dir=.
5338 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5339 lt_cv_path_LD="$ac_dir/$ac_prog"
5340 # Check to see if the program is GNU ld. I'd rather use --version,
5341 # but apparently some variants of GNU ld only accept -v.
5342 # Break only if it was the GNU/non-GNU ld that we prefer.
5343 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5344 *GNU* | *'with BFD'*)
5345 test "$with_gnu_ld" != no && break
5348 test "$with_gnu_ld" != yes && break
5355 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5360 if test -n "$LD"; then
5361 echo "$as_me:$LINENO: result: $LD" >&5
5362 echo "${ECHO_T}$LD" >&6
5364 echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6
5367 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5368 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5369 { (exit 1); exit 1; }; }
5370 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5371 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5372 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5376 case `$LD -v 2>&1 </dev/null` in
5377 *GNU* | *'with BFD'*)
5378 lt_cv_prog_gnu_ld=yes
5381 lt_cv_prog_gnu_ld=no
5385 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5386 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5387 with_gnu_ld=$lt_cv_prog_gnu_ld
5390 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5391 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5392 if test "${lt_cv_ld_reload_flag+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 lt_cv_ld_reload_flag='-r'
5397 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5398 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5399 reload_flag=$lt_cv_ld_reload_flag
5400 case $reload_flag in
5402 *) reload_flag=" $reload_flag" ;;
5404 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5407 if test "$GCC" = yes; then
5408 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5410 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5415 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5416 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5417 if test "${lt_cv_path_NM+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 if test -n "$NM"; then
5421 # Let the user override the test.
5424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5425 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5427 test -z "$ac_dir" && ac_dir=.
5428 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5429 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5430 # Check to see if the nm accepts a BSD-compat flag.
5431 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5432 # nm: unknown option "B" ignored
5433 # Tru64's nm complains that /dev/null is an invalid object file
5434 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5435 */dev/null* | *'Invalid file or object type'*)
5436 lt_cv_path_NM="$tmp_nm -B"
5440 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5442 lt_cv_path_NM="$tmp_nm -p"
5446 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5447 continue # so that we can try to find one that supports BSD flags
5454 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5457 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5458 echo "${ECHO_T}$lt_cv_path_NM" >&6
5461 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5462 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5464 if test "$LN_S" = "ln -s"; then
5465 echo "$as_me:$LINENO: result: yes" >&5
5466 echo "${ECHO_T}yes" >&6
5468 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5469 echo "${ECHO_T}no, using $LN_S" >&6
5472 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5473 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5474 if test "${lt_cv_deplibs_check_method+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 lt_cv_file_magic_cmd='$MAGIC_CMD'
5478 lt_cv_file_magic_test_file=
5479 lt_cv_deplibs_check_method='unknown'
5480 # Need to set the preceding variable on all platforms that support
5481 # interlibrary dependencies.
5482 # 'none' -- dependencies not supported.
5483 # `unknown' -- same as none, but documents that we really don't know.
5484 # 'pass_all' -- all dependencies passed with no checks.
5485 # 'test_compile' -- check by making test program.
5486 # 'file_magic [[regex]]' -- check by looking for files in library path
5487 # which responds to the $file_magic_cmd with a given extended regex.
5488 # If you have `file' or equivalent on your system and you're not sure
5489 # whether `pass_all' will *always* work, you probably want this one.
5493 lt_cv_deplibs_check_method=pass_all
5497 lt_cv_deplibs_check_method=pass_all
5501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5502 lt_cv_file_magic_cmd='/usr/bin/file -L'
5503 lt_cv_file_magic_test_file=/shlib/libc.so
5507 # func_win32_libid is a shell function defined in ltmain.sh
5508 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5509 lt_cv_file_magic_cmd='func_win32_libid'
5513 # Base MSYS/MinGW do not provide the 'file' command needed by
5514 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5515 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5516 lt_cv_file_magic_cmd='$OBJDUMP -f'
5519 darwin* | rhapsody*)
5520 lt_cv_deplibs_check_method=pass_all
5523 freebsd* | kfreebsd*-gnu | dragonfly*)
5524 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5527 # Not sure whether the presence of OpenBSD here was a mistake.
5528 # Let's accept both of them until this is cleared up.
5529 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5530 lt_cv_file_magic_cmd=/usr/bin/file
5531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5535 lt_cv_deplibs_check_method=pass_all
5540 lt_cv_deplibs_check_method=pass_all
5543 hpux10.20* | hpux11*)
5544 lt_cv_file_magic_cmd=/usr/bin/file
5547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5548 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5551 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]'
5552 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5555 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5556 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5561 irix5* | irix6* | nonstopux*)
5563 *-32|*"-32 ") libmagic=32-bit;;
5564 *-n32|*"-n32 ") libmagic=N32;;
5565 *-64|*"-64 ") libmagic=64-bit;;
5566 *) libmagic=never-match;;
5568 lt_cv_deplibs_check_method=pass_all
5571 # This must be Linux ELF.
5573 lt_cv_deplibs_check_method=pass_all
5577 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5586 lt_cv_file_magic_cmd=/usr/bin/file
5587 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5591 lt_cv_deplibs_check_method=unknown
5595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5602 osf3* | osf4* | osf5*)
5603 lt_cv_deplibs_check_method=pass_all
5607 lt_cv_deplibs_check_method=pass_all
5611 lt_cv_deplibs_check_method=pass_all
5614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5615 case $host_vendor in
5617 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]'
5618 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5621 lt_cv_deplibs_check_method=pass_all
5624 lt_cv_file_magic_cmd='/bin/file'
5625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5628 lt_cv_file_magic_cmd='/bin/file'
5629 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5630 lt_cv_file_magic_test_file=/lib/libc.so
5633 lt_cv_deplibs_check_method=pass_all
5638 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5639 lt_cv_deplibs_check_method=pass_all
5644 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5645 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5646 file_magic_cmd=$lt_cv_file_magic_cmd
5647 deplibs_check_method=$lt_cv_deplibs_check_method
5648 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5653 # If no C compiler was specified, use CC.
5656 # Allow CC to be a program name with arguments.
5660 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5661 if test "${enable_libtool_lock+set}" = set; then
5662 enableval="$enable_libtool_lock"
5665 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5667 # Some flags need to be propagated to the compiler or linker for good
5671 # Find out which ABI we are using.
5672 echo 'int i;' > conftest.$ac_ext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; then
5678 case `/usr/bin/file conftest.$ac_objext` in
5690 # Find out which ABI we are using.
5691 echo '#line 5691 "configure"' > conftest.$ac_ext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5693 (eval $ac_compile) 2>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; then
5697 if test "$lt_cv_prog_gnu_ld" = yes; then
5698 case `/usr/bin/file conftest.$ac_objext` in
5700 LD="${LD-ld} -melf32bsmip"
5703 LD="${LD-ld} -melf32bmipn32"
5706 LD="${LD-ld} -melf64bmip"
5710 case `/usr/bin/file conftest.$ac_objext` in
5726 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5727 # Find out which ABI we are using.
5728 echo 'int i;' > conftest.$ac_ext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; then
5734 case `/usr/bin/file conftest.o` in
5738 LD="${LD-ld} -m elf_i386"
5740 ppc64-*linux*|powerpc64-*linux*)
5741 LD="${LD-ld} -m elf32ppclinux"
5744 LD="${LD-ld} -m elf_s390"
5747 LD="${LD-ld} -m elf32_sparc"
5754 LD="${LD-ld} -m elf_x86_64"
5756 ppc*-*linux*|powerpc*-*linux*)
5757 LD="${LD-ld} -m elf64ppc"
5760 LD="${LD-ld} -m elf64_s390"
5763 LD="${LD-ld} -m elf64_sparc"
5773 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5774 SAVE_CFLAGS="$CFLAGS"
5775 CFLAGS="$CFLAGS -belf"
5776 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5777 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5778 if test "${lt_cv_cc_needs_belf+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5787 cat >conftest.$ac_ext <<_ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5802 rm -f conftest.$ac_objext conftest$ac_exeext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5804 (eval $ac_link) 2>conftest.er1
5806 grep -v '^ *+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_c_werror_flag"
5812 || test ! -s conftest.err'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest$ac_exeext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 lt_cv_cc_needs_belf=yes
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 lt_cv_cc_needs_belf=no
5831 rm -f conftest.err conftest.$ac_objext \
5832 conftest$ac_exeext conftest.$ac_ext
5834 ac_cpp='$CPP $CPPFLAGS'
5835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5841 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5842 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5843 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5844 CFLAGS="$SAVE_CFLAGS"
5847 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5848 if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5850 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5851 echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 if test -n "$DLLTOOL"; then
5857 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 DLLTOOL=$ac_cv_prog_DLLTOOL
5876 if test -n "$DLLTOOL"; then
5877 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5878 echo "${ECHO_T}$DLLTOOL" >&6
5880 echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5885 if test -z "$ac_cv_prog_DLLTOOL"; then
5886 ac_ct_DLLTOOL=$DLLTOOL
5887 # Extract the first word of "dlltool", so it can be a program name with args.
5888 set dummy dlltool; ac_word=$2
5889 echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 if test -n "$ac_ct_DLLTOOL"; then
5895 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5914 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5915 if test -n "$ac_ct_DLLTOOL"; then
5916 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5917 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5919 echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5923 DLLTOOL=$ac_ct_DLLTOOL
5925 DLLTOOL="$ac_cv_prog_DLLTOOL"
5928 if test -n "$ac_tool_prefix"; then
5929 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5930 set dummy ${ac_tool_prefix}as; ac_word=$2
5931 echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933 if test "${ac_cv_prog_AS+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 if test -n "$AS"; then
5937 ac_cv_prog_AS="$AS" # Let the user override the test.
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946 ac_cv_prog_AS="${ac_tool_prefix}as"
5947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 if test -n "$AS"; then
5957 echo "$as_me:$LINENO: result: $AS" >&5
5958 echo "${ECHO_T}$AS" >&6
5960 echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5965 if test -z "$ac_cv_prog_AS"; then
5967 # Extract the first word of "as", so it can be a program name with args.
5968 set dummy as; ac_word=$2
5969 echo "$as_me:$LINENO: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5971 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 if test -n "$ac_ct_AS"; then
5975 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984 ac_cv_prog_ac_ct_AS="as"
5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5994 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5995 if test -n "$ac_ct_AS"; then
5996 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5997 echo "${ECHO_T}$ac_ct_AS" >&6
5999 echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6
6008 if test -n "$ac_tool_prefix"; then
6009 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6011 echo "$as_me:$LINENO: checking for $ac_word" >&5
6012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6013 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 if test -n "$OBJDUMP"; then
6017 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 OBJDUMP=$ac_cv_prog_OBJDUMP
6036 if test -n "$OBJDUMP"; then
6037 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6038 echo "${ECHO_T}$OBJDUMP" >&6
6040 echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6
6045 if test -z "$ac_cv_prog_OBJDUMP"; then
6046 ac_ct_OBJDUMP=$OBJDUMP
6047 # Extract the first word of "objdump", so it can be a program name with args.
6048 set dummy objdump; ac_word=$2
6049 echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6051 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 if test -n "$ac_ct_OBJDUMP"; then
6055 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6074 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6075 if test -n "$ac_ct_OBJDUMP"; then
6076 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6077 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6079 echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6
6083 OBJDUMP=$ac_ct_OBJDUMP
6085 OBJDUMP="$ac_cv_prog_OBJDUMP"
6092 need_locks="$enable_libtool_lock"
6096 ac_cpp='$CPP $CPPFLAGS'
6097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6100 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6101 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6102 # On Suns, sometimes $CPP names a directory.
6103 if test -n "$CPP" && test -d "$CPP"; then
6106 if test -z "$CPP"; then
6107 if test "${ac_cv_prog_CPP+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 # Double quotes because CPP needs to be expanded
6111 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6114 for ac_c_preproc_warn_flag in '' yes
6116 # Use a header file that comes with gcc, so configuring glibc
6117 # with a fresh cross-compiler works.
6118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6119 # <limits.h> exists even on freestanding compilers.
6120 # On the NeXT, cc -E runs the code through the compiler's parser,
6121 # not just through cpp. "Syntax error" is here to catch this case.
6122 cat >conftest.$ac_ext <<_ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6129 # include <limits.h>
6131 # include <assert.h>
6135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6138 grep -v '^ *+' conftest.er1 >conftest.err
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } >/dev/null; then
6143 if test -s conftest.err; then
6144 ac_cpp_err=$ac_c_preproc_warn_flag
6145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6152 if test -z "$ac_cpp_err"; then
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 # Broken: fails on valid input.
6161 rm -f conftest.err conftest.$ac_ext
6163 # OK, works on sane cases. Now check whether non-existent headers
6164 # can be detected and how.
6165 cat >conftest.$ac_ext <<_ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 #include <ac_nonexistent.h>
6173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } >/dev/null; then
6181 if test -s conftest.err; then
6182 ac_cpp_err=$ac_c_preproc_warn_flag
6183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6190 if test -z "$ac_cpp_err"; then
6191 # Broken: success on invalid input.
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 # Passes both tests.
6201 rm -f conftest.err conftest.$ac_ext
6204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6205 rm -f conftest.err conftest.$ac_ext
6206 if $ac_preproc_ok; then
6218 echo "$as_me:$LINENO: result: $CPP" >&5
6219 echo "${ECHO_T}$CPP" >&6
6221 for ac_c_preproc_warn_flag in '' yes
6223 # Use a header file that comes with gcc, so configuring glibc
6224 # with a fresh cross-compiler works.
6225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226 # <limits.h> exists even on freestanding compilers.
6227 # On the NeXT, cc -E runs the code through the compiler's parser,
6228 # not just through cpp. "Syntax error" is here to catch this case.
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6236 # include <limits.h>
6238 # include <assert.h>
6242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6245 grep -v '^ *+' conftest.er1 >conftest.err
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } >/dev/null; then
6250 if test -s conftest.err; then
6251 ac_cpp_err=$ac_c_preproc_warn_flag
6252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6259 if test -z "$ac_cpp_err"; then
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 # Broken: fails on valid input.
6268 rm -f conftest.err conftest.$ac_ext
6270 # OK, works on sane cases. Now check whether non-existent headers
6271 # can be detected and how.
6272 cat >conftest.$ac_ext <<_ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 #include <ac_nonexistent.h>
6280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6283 grep -v '^ *+' conftest.er1 >conftest.err
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } >/dev/null; then
6288 if test -s conftest.err; then
6289 ac_cpp_err=$ac_c_preproc_warn_flag
6290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6297 if test -z "$ac_cpp_err"; then
6298 # Broken: success on invalid input.
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 # Passes both tests.
6308 rm -f conftest.err conftest.$ac_ext
6311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6312 rm -f conftest.err conftest.$ac_ext
6313 if $ac_preproc_ok; then
6316 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6317 See \`config.log' for more details." >&5
6318 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6319 See \`config.log' for more details." >&2;}
6320 { (exit 1); exit 1; }; }
6324 ac_cpp='$CPP $CPPFLAGS'
6325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6330 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6331 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6332 if test "${ac_cv_header_stdc+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6354 rm -f conftest.$ac_objext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>conftest.er1
6358 grep -v '^ *+' conftest.er1 >conftest.err
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_c_werror_flag"
6364 || test ! -s conftest.err'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; } &&
6370 { ac_try='test -s conftest.$ac_objext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_cv_header_stdc=yes
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 ac_cv_header_stdc=no
6383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6385 if test $ac_cv_header_stdc = yes; then
6386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6387 cat >conftest.$ac_ext <<_ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6397 $EGREP "memchr" >/dev/null 2>&1; then
6400 ac_cv_header_stdc=no
6406 if test $ac_cv_header_stdc = yes; then
6407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6408 cat >conftest.$ac_ext <<_ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6418 $EGREP "free" >/dev/null 2>&1; then
6421 ac_cv_header_stdc=no
6427 if test $ac_cv_header_stdc = yes; then
6428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6429 if test "$cross_compiling" = yes; then
6432 cat >conftest.$ac_ext <<_ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6439 #if ((' ' & 0x0FF) == 0x020)
6440 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6441 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6443 # define ISLOWER(c) \
6444 (('a' <= (c) && (c) <= 'i') \
6445 || ('j' <= (c) && (c) <= 'r') \
6446 || ('s' <= (c) && (c) <= 'z'))
6447 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6450 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6455 for (i = 0; i < 256; i++)
6456 if (XOR (islower (i), ISLOWER (i))
6457 || toupper (i) != TOUPPER (i))
6462 rm -f conftest$ac_exeext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6464 (eval $ac_link) 2>&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; }; then
6475 echo "$as_me: program exited with status $ac_status" >&5
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6480 ac_cv_header_stdc=no
6482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6487 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6488 if test $ac_cv_header_stdc = yes; then
6490 cat >>confdefs.h <<\_ACEOF
6491 #define STDC_HEADERS 1
6496 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6506 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6507 inttypes.h stdint.h unistd.h
6509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6510 echo "$as_me:$LINENO: checking for $ac_header" >&5
6511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 cat >conftest.$ac_ext <<_ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 $ac_includes_default
6523 #include <$ac_header>
6525 rm -f conftest.$ac_objext
6526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527 (eval $ac_compile) 2>conftest.er1
6529 grep -v '^ *+' conftest.er1 >conftest.err
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -z "$ac_c_werror_flag"
6535 || test ! -s conftest.err'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest.$ac_objext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 eval "$as_ac_Header=yes"
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 eval "$as_ac_Header=no"
6554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6559 cat >>confdefs.h <<_ACEOF
6560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6569 for ac_header in dlfcn.h
6571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6573 echo "$as_me:$LINENO: checking for $ac_header" >&5
6574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6581 # Is the header compilable?
6582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6584 cat >conftest.$ac_ext <<_ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 $ac_includes_default
6591 #include <$ac_header>
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>conftest.er1
6597 grep -v '^ *+' conftest.er1 >conftest.err
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest.$ac_objext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_header_compiler=yes
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6620 ac_header_compiler=no
6622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6624 echo "${ECHO_T}$ac_header_compiler" >&6
6626 # Is the header present?
6627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6629 cat >conftest.$ac_ext <<_ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 #include <$ac_header>
6637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6640 grep -v '^ *+' conftest.er1 >conftest.err
6642 cat conftest.err >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } >/dev/null; then
6645 if test -s conftest.err; then
6646 ac_cpp_err=$ac_c_preproc_warn_flag
6647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6654 if test -z "$ac_cpp_err"; then
6655 ac_header_preproc=yes
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6660 ac_header_preproc=no
6662 rm -f conftest.err conftest.$ac_ext
6663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6664 echo "${ECHO_T}$ac_header_preproc" >&6
6666 # So? What about this header?
6667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6673 ac_header_preproc=yes
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6690 ## --------------------------------------------- ##
6691 ## Report this to <http://www.openldap.org/its/> ##
6692 ## --------------------------------------------- ##
6695 sed "s/^/$as_me: WARNING: /" >&2
6698 echo "$as_me:$LINENO: checking for $ac_header" >&5
6699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 eval "$as_ac_Header=\$ac_header_preproc"
6705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6710 cat >>confdefs.h <<_ACEOF
6711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6719 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6721 # find the maximum length of command line arguments
6722 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6723 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6724 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 # On DJGPP, this test can blow up pretty badly due to problems in libc
6733 # (any single argument exceeding 2000 bytes causes a buffer overrun
6734 # during glob expansion). Even if it were fixed, the result of this
6735 # check would be larger than it should be.
6736 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6740 # Under GNU Hurd, this test is not required because there is
6741 # no limit to the length of command line arguments.
6742 # Libtool will interpret -1 as no limit whatsoever
6743 lt_cv_sys_max_cmd_len=-1;
6747 # On Win9x/ME, this test blows up -- it succeeds, but takes
6748 # about 5 minutes as the teststring grows exponentially.
6749 # Worse, since 9x/ME are not pre-emptively multitasking,
6750 # you end up with a "frozen" computer, even though with patience
6751 # the test eventually succeeds (with a max line length of 256k).
6752 # Instead, let's just punt: use the minimum linelength reported by
6753 # all of the supported platforms: 8192 (on NT/2K/XP).
6754 lt_cv_sys_max_cmd_len=8192;
6758 # On AmigaOS with pdksh, this test takes hours, literally.
6759 # So we just punt and use a minimum line length of 8192.
6760 lt_cv_sys_max_cmd_len=8192;
6763 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6764 # This has been around since 386BSD, at least. Likely further.
6765 if test -x /sbin/sysctl; then
6766 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6767 elif test -x /usr/sbin/sysctl; then
6768 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6770 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6772 # And add a safety zone
6773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6777 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6778 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6779 # nice to cause kernel panics so lets avoid the loop below.
6780 # First set a reasonable default.
6781 lt_cv_sys_max_cmd_len=16384
6783 if test -x /sbin/sysconfig; then
6784 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6785 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6790 # If test is not a shell built-in, we'll probably end up computing a
6791 # maximum length that is only half of the actual maximum length, but
6793 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6794 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6795 = "XX$teststring") >/dev/null 2>&1 &&
6796 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6797 lt_cv_sys_max_cmd_len=$new_result &&
6798 test $i != 17 # 1/2 MB should be enough
6801 teststring=$teststring$teststring
6804 # Add a significant safety factor because C++ compilers can tack on massive
6805 # amounts of additional arguments before passing them to the linker.
6806 # It appears as though 1/2 is a usable value.
6807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6813 if test -n $lt_cv_sys_max_cmd_len ; then
6814 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6815 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6817 echo "$as_me:$LINENO: result: none" >&5
6818 echo "${ECHO_T}none" >&6
6824 # Check for command to grab the raw symbol name followed by C symbol from nm.
6825 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6826 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6827 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 # These are sane defaults that work on at least a few old systems.
6832 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6834 # Character class describing NM global symbol codes.
6835 symcode='[BCDEGRST]'
6837 # Regexp to match symbols that can be accessed directly from C.
6838 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6840 # Transform an extracted symbol line into a proper C declaration
6841 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6843 # Transform an extracted symbol line into symbol name and symbol address
6844 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'"
6846 # Define system-specific variables.
6851 cygwin* | mingw* | pw32*)
6852 symcode='[ABCDGISTW]'
6854 hpux*) # Its linker distinguishes data from code symbols
6855 if test "$host_cpu" = ia64; then
6856 symcode='[ABCDEGRST]'
6858 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6859 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'"
6862 if test "$host_cpu" = ia64; then
6863 symcode='[ABCDGIRSTW]'
6864 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6865 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'"
6869 symcode='[BCDEGRST]'
6872 symcode='[BCDEGQRST]'
6882 # Handle CRLF in mingw tool chain
6886 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6890 # If we're using GNU nm, then use its standard symbol codes.
6891 case `$NM -V 2>&1` in
6892 *GNU* | *'with BFD'*)
6893 symcode='[ABCDGIRSTW]' ;;
6896 # Try without a prefix undercore, then with it.
6897 for ac_symprfx in "" "_"; do
6899 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6900 symxfrm="\\1 $ac_symprfx\\2 \\2"
6902 # Write the raw and C identifiers.
6903 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6905 # Check to see that the pipe works correctly.
6909 cat > conftest.$ac_ext <<EOF
6914 void nm_test_func(){}
6918 int main(){nm_test_var='a';nm_test_func();return(0);}
6921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922 (eval $ac_compile) 2>&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; then
6926 # Now try to grab the symbols.
6928 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6929 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } && test -s "$nlist"; then
6933 # Try sorting and uniquifying the output.
6934 if sort "$nlist" | uniq > "$nlist"T; then
6935 mv -f "$nlist"T "$nlist"
6940 # Make sure that we snagged all the symbols we need.
6941 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6942 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6943 cat <<EOF > conftest.$ac_ext
6949 # Now generate the symbol file.
6950 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6952 cat <<EOF >> conftest.$ac_ext
6953 #if defined (__STDC__) && __STDC__
6954 # define lt_ptr_t void *
6956 # define lt_ptr_t char *
6960 /* The mapping between symbol names and symbols. */
6965 lt_preloaded_symbols[] =
6968 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6969 cat <<\EOF >> conftest.$ac_ext
6977 # Now try linking the two files.
6978 mv conftest.$ac_objext conftstm.$ac_objext
6979 lt_save_LIBS="$LIBS"
6980 lt_save_CFLAGS="$CFLAGS"
6981 LIBS="conftstm.$ac_objext"
6982 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6984 (eval $ac_link) 2>&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6990 LIBS="$lt_save_LIBS"
6991 CFLAGS="$lt_save_CFLAGS"
6993 echo "cannot find nm_test_func in $nlist" >&5
6996 echo "cannot find nm_test_var in $nlist" >&5
6999 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7002 echo "$progname: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7005 rm -f conftest* conftst*
7007 # Do not use the global_symbol_pipe unless it works.
7008 if test "$pipe_works" = yes; then
7011 lt_cv_sys_global_symbol_pipe=
7017 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7018 lt_cv_sys_global_symbol_to_cdecl=
7020 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7021 echo "$as_me:$LINENO: result: failed" >&5
7022 echo "${ECHO_T}failed" >&6
7024 echo "$as_me:$LINENO: result: ok" >&5
7025 echo "${ECHO_T}ok" >&6
7028 echo "$as_me:$LINENO: checking for objdir" >&5
7029 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7030 if test "${lt_cv_objdir+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 rm -f .libs 2>/dev/null
7034 mkdir .libs 2>/dev/null
7035 if test -d .libs; then
7038 # MS-DOS does not allow filenames that begin with a dot.
7041 rmdir .libs 2>/dev/null
7043 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7044 echo "${ECHO_T}$lt_cv_objdir" >&6
7045 objdir=$lt_cv_objdir
7053 # AIX sometimes has problems with the GCC collect2 program. For some
7054 # reason, if we set the COLLECT_NAMES environment variable, the problems
7055 # vanish in a puff of smoke.
7056 if test "X${COLLECT_NAMES+set}" != Xset; then
7058 export COLLECT_NAMES
7063 # Sed substitution that helps us do robust quoting. It backslashifies
7064 # metacharacters that are still active within double-quoted strings.
7065 Xsed='sed -e 1s/^X//'
7066 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7068 # Same as above, but do not quote variable references.
7069 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7071 # Sed substitution to delay expansion of an escaped shell variable in a
7072 # double_quote_subst'ed string.
7073 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7075 # Sed substitution to avoid accidental globbing in evaled expressions
7076 no_glob_subst='s/\*/\\\*/g'
7082 default_ofile=libtool
7083 can_build_shared=yes
7085 # All known linkers require a `.a' archive for static linking (except MSVC,
7086 # which needs '.lib').
7088 ltmain="$ac_aux_dir/ltmain.sh"
7089 ofile="$default_ofile"
7090 with_gnu_ld="$lt_cv_prog_gnu_ld"
7092 if test -n "$ac_tool_prefix"; then
7093 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7094 set dummy ${ac_tool_prefix}ar; ac_word=$2
7095 echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7097 if test "${ac_cv_prog_AR+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 if test -n "$AR"; then
7101 ac_cv_prog_AR="$AR" # Let the user override the test.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_AR="${ac_tool_prefix}ar"
7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 if test -n "$AR"; then
7121 echo "$as_me:$LINENO: result: $AR" >&5
7122 echo "${ECHO_T}$AR" >&6
7124 echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6
7129 if test -z "$ac_cv_prog_AR"; then
7131 # Extract the first word of "ar", so it can be a program name with args.
7132 set dummy ar; ac_word=$2
7133 echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7135 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 if test -n "$ac_ct_AR"; then
7139 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_ac_ct_AR="ar"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7158 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7159 if test -n "$ac_ct_AR"; then
7160 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7161 echo "${ECHO_T}$ac_ct_AR" >&6
7163 echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7175 echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7177 if test "${ac_cv_prog_RANLIB+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 if test -n "$RANLIB"; then
7181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 RANLIB=$ac_cv_prog_RANLIB
7200 if test -n "$RANLIB"; then
7201 echo "$as_me:$LINENO: result: $RANLIB" >&5
7202 echo "${ECHO_T}$RANLIB" >&6
7204 echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6
7209 if test -z "$ac_cv_prog_RANLIB"; then
7210 ac_ct_RANLIB=$RANLIB
7211 # Extract the first word of "ranlib", so it can be a program name with args.
7212 set dummy ranlib; ac_word=$2
7213 echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 if test -n "$ac_ct_RANLIB"; then
7219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228 ac_cv_prog_ac_ct_RANLIB="ranlib"
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7239 if test -n "$ac_ct_RANLIB"; then
7240 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7241 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7243 echo "$as_me:$LINENO: result: no" >&5
7244 echo "${ECHO_T}no" >&6
7247 RANLIB=$ac_ct_RANLIB
7249 RANLIB="$ac_cv_prog_RANLIB"
7252 if test -n "$ac_tool_prefix"; then
7253 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7254 set dummy ${ac_tool_prefix}strip; ac_word=$2
7255 echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7257 if test "${ac_cv_prog_STRIP+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 if test -n "$STRIP"; then
7261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 STRIP=$ac_cv_prog_STRIP
7280 if test -n "$STRIP"; then
7281 echo "$as_me:$LINENO: result: $STRIP" >&5
7282 echo "${ECHO_T}$STRIP" >&6
7284 echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6
7289 if test -z "$ac_cv_prog_STRIP"; then
7291 # Extract the first word of "strip", so it can be a program name with args.
7292 set dummy strip; ac_word=$2
7293 echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7295 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 if test -n "$ac_ct_STRIP"; then
7299 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_ac_ct_STRIP="strip"
7309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7318 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7319 if test -n "$ac_ct_STRIP"; then
7320 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7321 echo "${ECHO_T}$ac_ct_STRIP" >&6
7323 echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6
7329 STRIP="$ac_cv_prog_STRIP"
7334 old_CFLAGS="$CFLAGS"
7336 # Set sane defaults for various variables
7337 test -z "$AR" && AR=ar
7338 test -z "$AR_FLAGS" && AR_FLAGS=cru
7339 test -z "$AS" && AS=as
7340 test -z "$CC" && CC=cc
7341 test -z "$LTCC" && LTCC=$CC
7342 test -z "$DLLTOOL" && DLLTOOL=dlltool
7343 test -z "$LD" && LD=ld
7344 test -z "$LN_S" && LN_S="ln -s"
7345 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7346 test -z "$NM" && NM=nm
7347 test -z "$SED" && SED=sed
7348 test -z "$OBJDUMP" && OBJDUMP=objdump
7349 test -z "$RANLIB" && RANLIB=:
7350 test -z "$STRIP" && STRIP=:
7351 test -z "$ac_objext" && ac_objext=o
7353 # Determine commands to create old-style static archives.
7354 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7355 old_postinstall_cmds='chmod 644 $oldlib'
7356 old_postuninstall_cmds=
7358 if test -n "$RANLIB"; then
7361 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7364 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7367 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7370 for cc_temp in $compiler""; do
7372 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7373 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7378 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7381 # Only perform the check for file, if the check method requires it
7382 case $deplibs_check_method in
7384 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7385 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7386 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7387 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7395 lt_save_MAGIC_CMD="$MAGIC_CMD"
7396 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7397 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7398 for ac_dir in $ac_dummy; do
7400 test -z "$ac_dir" && ac_dir=.
7401 if test -f $ac_dir/${ac_tool_prefix}file; then
7402 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7403 if test -n "$file_magic_test_file"; then
7404 case $deplibs_check_method in
7406 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7407 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7408 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7409 $EGREP "$file_magic_regex" > /dev/null; then
7414 *** Warning: the command libtool uses to detect shared libraries,
7415 *** $file_magic_cmd, produces output that libtool cannot recognize.
7416 *** The result is that libtool may fail to recognize shared libraries
7417 *** as such. This will affect the creation of libtool libraries that
7418 *** depend on shared libraries, but programs linked with such libtool
7419 *** libraries will work regardless of this problem. Nevertheless, you
7420 *** may want to report the problem to your system manager and/or to
7421 *** bug-libtool@gnu.org
7431 MAGIC_CMD="$lt_save_MAGIC_CMD"
7436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7437 if test -n "$MAGIC_CMD"; then
7438 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7439 echo "${ECHO_T}$MAGIC_CMD" >&6
7441 echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6
7445 if test -z "$lt_cv_path_MAGIC_CMD"; then
7446 if test -n "$ac_tool_prefix"; then
7447 echo "$as_me:$LINENO: checking for file" >&5
7448 echo $ECHO_N "checking for file... $ECHO_C" >&6
7449 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7457 lt_save_MAGIC_CMD="$MAGIC_CMD"
7458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7459 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7460 for ac_dir in $ac_dummy; do
7462 test -z "$ac_dir" && ac_dir=.
7463 if test -f $ac_dir/file; then
7464 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7465 if test -n "$file_magic_test_file"; then
7466 case $deplibs_check_method in
7468 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7470 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7471 $EGREP "$file_magic_regex" > /dev/null; then
7476 *** Warning: the command libtool uses to detect shared libraries,
7477 *** $file_magic_cmd, produces output that libtool cannot recognize.
7478 *** The result is that libtool may fail to recognize shared libraries
7479 *** as such. This will affect the creation of libtool libraries that
7480 *** depend on shared libraries, but programs linked with such libtool
7481 *** libraries will work regardless of this problem. Nevertheless, you
7482 *** may want to report the problem to your system manager and/or to
7483 *** bug-libtool@gnu.org
7493 MAGIC_CMD="$lt_save_MAGIC_CMD"
7498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7499 if test -n "$MAGIC_CMD"; then
7500 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7501 echo "${ECHO_T}$MAGIC_CMD" >&6
7503 echo "$as_me:$LINENO: result: no" >&5
7504 echo "${ECHO_T}no" >&6
7517 enable_win32_dll=yes
7519 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7520 if test "${enable_libtool_lock+set}" = set; then
7521 enableval="$enable_libtool_lock"
7524 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7527 # Check whether --with-pic or --without-pic was given.
7528 if test "${with_pic+set}" = set; then
7534 test -z "$pic_mode" && pic_mode=default
7536 # Use C for the default configuration in the libtool script
7540 ac_cpp='$CPP $CPPFLAGS'
7541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7546 # Source file extension for C test sources.
7549 # Object file extension for compiled C test sources.
7553 # Code to be used in simple compile tests
7554 lt_simple_compile_test_code="int some_variable = 0;\n"
7556 # Code to be used in simple link tests
7557 lt_simple_link_test_code='int main(){return(0);}\n'
7560 # If no C compiler was specified, use CC.
7563 # Allow CC to be a program name with arguments.
7567 # save warnings/boilerplate of simple test code
7568 ac_outfile=conftest.$ac_objext
7569 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7570 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7571 _lt_compiler_boilerplate=`cat conftest.err`
7574 ac_outfile=conftest.$ac_objext
7575 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7576 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7577 _lt_linker_boilerplate=`cat conftest.err`
7582 # Check for any special shared library compilation flags.
7585 if test "$GCC" = no; then
7588 lt_prog_cc_shlib='-belf'
7592 if test -n "$lt_prog_cc_shlib"; then
7593 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7594 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7595 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7597 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7598 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7599 lt_cv_prog_cc_can_build_shared=no
7605 # Check to make sure the static flag actually works.
7607 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7608 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7609 if test "${lt_prog_compiler_static_works+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 lt_prog_compiler_static_works=no
7613 save_LDFLAGS="$LDFLAGS"
7614 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7615 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7616 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7617 # The linker can only warn and ignore the option if not recognized
7618 # So say no if there are warnings
7619 if test -s conftest.err; then
7620 # Append any errors to the config.log.
7621 cat conftest.err 1>&5
7622 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7623 $SED '/^$/d' conftest.err >conftest.er2
7624 if diff conftest.exp conftest.er2 >/dev/null; then
7625 lt_prog_compiler_static_works=yes
7628 lt_prog_compiler_static_works=yes
7632 LDFLAGS="$save_LDFLAGS"
7635 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7636 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7638 if test x"$lt_prog_compiler_static_works" = xyes; then
7641 lt_prog_compiler_static=
7647 lt_prog_compiler_no_builtin_flag=
7649 if test "$GCC" = yes; then
7650 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7653 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7654 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7655 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 lt_cv_prog_compiler_rtti_exceptions=no
7659 ac_outfile=conftest.$ac_objext
7660 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7661 lt_compiler_flag="-fno-rtti -fno-exceptions"
7662 # Insert the option either (1) after the last *FLAGS variable, or
7663 # (2) before a word containing "conftest.", or (3) at the end.
7664 # Note that $ac_compile itself does not contain backslashes and begins
7665 # with a dollar sign (not a hyphen), so the echo should work correctly.
7666 # The option is referenced via a variable to avoid confusing sed.
7667 lt_compile=`echo "$ac_compile" | $SED \
7668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7670 -e 's:$: $lt_compiler_flag:'`
7671 (eval echo "\"\$as_me:7671: $lt_compile\"" >&5)
7672 (eval "$lt_compile" 2>conftest.err)
7674 cat conftest.err >&5
7675 echo "$as_me:7675: \$? = $ac_status" >&5
7676 if (exit $ac_status) && test -s "$ac_outfile"; then
7677 # The compiler can only warn and ignore the option if not recognized
7678 # So say no if there are warnings other than the usual output.
7679 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7680 $SED '/^$/d' conftest.err >conftest.er2
7681 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7682 lt_cv_prog_compiler_rtti_exceptions=yes
7688 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7689 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7691 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7692 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7699 lt_prog_compiler_wl=
7700 lt_prog_compiler_pic=
7701 lt_prog_compiler_static=
7703 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7704 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7706 if test "$GCC" = yes; then
7707 lt_prog_compiler_wl='-Wl,'
7708 lt_prog_compiler_static='-static'
7712 # All AIX code is PIC.
7713 if test "$host_cpu" = ia64; then
7714 # AIX 5 now supports IA64 processor
7715 lt_prog_compiler_static='-Bstatic'
7720 # FIXME: we need at least 68020 code to build shared libraries, but
7721 # adding the `-m68020' flag to GCC prevents building anything better,
7723 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7726 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7727 # PIC is the default for these OSes.
7730 mingw* | pw32* | os2*)
7731 # This hack is so that the source file can tell whether it is being
7732 # built for inclusion in a dll (and should export symbols for example).
7733 lt_prog_compiler_pic='-DDLL_EXPORT'
7736 darwin* | rhapsody*)
7737 # PIC is the default on this platform
7738 # Common symbols not allowed in MH_DYLIB files
7739 lt_prog_compiler_pic='-fno-common'
7743 # Just because we use GCC doesn't mean we suddenly get shared libraries
7744 # on systems that don't support them.
7745 lt_prog_compiler_can_build_shared=no
7750 if test -d /usr/nec; then
7751 lt_prog_compiler_pic=-Kconform_pic
7756 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7763 lt_prog_compiler_pic='-fPIC'
7769 lt_prog_compiler_pic='-fPIC'
7773 # PORTME Check for flag to pass linker flags through the system compiler.
7776 lt_prog_compiler_wl='-Wl,'
7777 if test "$host_cpu" = ia64; then
7778 # AIX 5 now supports IA64 processor
7779 lt_prog_compiler_static='-Bstatic'
7781 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7785 # PIC is the default on this platform
7786 # Common symbols not allowed in MH_DYLIB files
7787 case $cc_basename in
7789 lt_prog_compiler_pic='-qnocommon'
7790 lt_prog_compiler_wl='-Wl,'
7795 mingw* | pw32* | os2*)
7796 # This hack is so that the source file can tell whether it is being
7797 # built for inclusion in a dll (and should export symbols for example).
7798 lt_prog_compiler_pic='-DDLL_EXPORT'
7801 hpux9* | hpux10* | hpux11*)
7802 lt_prog_compiler_wl='-Wl,'
7803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7810 lt_prog_compiler_pic='+Z'
7813 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7814 lt_prog_compiler_static='${wl}-a ${wl}archive'
7817 irix5* | irix6* | nonstopux*)
7818 lt_prog_compiler_wl='-Wl,'
7819 # PIC (with -KPIC) is the default.
7820 lt_prog_compiler_static='-non_shared'
7824 lt_prog_compiler_pic='-KPIC'
7825 lt_prog_compiler_static='-Bstatic'
7829 case $cc_basename in
7831 lt_prog_compiler_wl='-Wl,'
7832 lt_prog_compiler_pic='-KPIC'
7833 lt_prog_compiler_static='-static'
7835 pgcc* | pgf77* | pgf90* | pgf95*)
7836 # Portland Group compilers (*not* the Pentium gcc compiler,
7837 # which looks to be a dead project)
7838 lt_prog_compiler_wl='-Wl,'
7839 lt_prog_compiler_pic='-fpic'
7840 lt_prog_compiler_static='-Bstatic'
7843 lt_prog_compiler_wl='-Wl,'
7844 # All Alpha code is PIC.
7845 lt_prog_compiler_static='-non_shared'
7850 osf3* | osf4* | osf5*)
7851 lt_prog_compiler_wl='-Wl,'
7852 # All OSF/1 code is PIC.
7853 lt_prog_compiler_static='-non_shared'
7857 lt_prog_compiler_pic='-Kpic'
7858 lt_prog_compiler_static='-dn'
7862 lt_prog_compiler_pic='-KPIC'
7863 lt_prog_compiler_static='-Bstatic'
7864 case $cc_basename in
7866 lt_prog_compiler_wl='-Qoption ld ';;
7868 lt_prog_compiler_wl='-Wl,';;
7873 lt_prog_compiler_wl='-Qoption ld '
7874 lt_prog_compiler_pic='-PIC'
7875 lt_prog_compiler_static='-Bstatic'
7878 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7879 lt_prog_compiler_wl='-Wl,'
7880 lt_prog_compiler_pic='-KPIC'
7881 lt_prog_compiler_static='-Bstatic'
7885 if test -d /usr/nec ;then
7886 lt_prog_compiler_pic='-Kconform_pic'
7887 lt_prog_compiler_static='-Bstatic'
7892 lt_prog_compiler_wl='-Wl,'
7893 lt_prog_compiler_can_build_shared=no
7897 lt_prog_compiler_pic='-pic'
7898 lt_prog_compiler_static='-Bstatic'
7902 lt_prog_compiler_can_build_shared=no
7907 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7908 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7911 # Check to make sure the PIC flag actually works.
7913 if test -n "$lt_prog_compiler_pic"; then
7915 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7916 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7917 if test "${lt_prog_compiler_pic_works+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 lt_prog_compiler_pic_works=no
7921 ac_outfile=conftest.$ac_objext
7922 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7923 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7924 # Insert the option either (1) after the last *FLAGS variable, or
7925 # (2) before a word containing "conftest.", or (3) at the end.
7926 # Note that $ac_compile itself does not contain backslashes and begins
7927 # with a dollar sign (not a hyphen), so the echo should work correctly.
7928 # The option is referenced via a variable to avoid confusing sed.
7929 lt_compile=`echo "$ac_compile" | $SED \
7930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7932 -e 's:$: $lt_compiler_flag:'`
7933 (eval echo "\"\$as_me:7933: $lt_compile\"" >&5)
7934 (eval "$lt_compile" 2>conftest.err)
7936 cat conftest.err >&5
7937 echo "$as_me:7937: \$? = $ac_status" >&5
7938 if (exit $ac_status) && test -s "$ac_outfile"; then
7939 # The compiler can only warn and ignore the option if not recognized
7940 # So say no if there are warnings other than the usual output.
7941 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7942 $SED '/^$/d' conftest.err >conftest.er2
7943 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7944 lt_prog_compiler_pic_works=yes
7950 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7951 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7953 if test x"$lt_prog_compiler_pic_works" = xyes; then
7954 case $lt_prog_compiler_pic in
7956 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7959 lt_prog_compiler_pic=
7960 lt_prog_compiler_can_build_shared=no
7965 # For platforms which do not support PIC, -DPIC is meaningless:
7967 lt_prog_compiler_pic=
7970 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7974 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7975 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7976 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 lt_cv_prog_compiler_c_o=no
7980 $rm -r conftest 2>/dev/null
7984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7986 lt_compiler_flag="-o out/conftest2.$ac_objext"
7987 # Insert the option either (1) after the last *FLAGS variable, or
7988 # (2) before a word containing "conftest.", or (3) at the end.
7989 # Note that $ac_compile itself does not contain backslashes and begins
7990 # with a dollar sign (not a hyphen), so the echo should work correctly.
7991 lt_compile=`echo "$ac_compile" | $SED \
7992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7994 -e 's:$: $lt_compiler_flag:'`
7995 (eval echo "\"\$as_me:7995: $lt_compile\"" >&5)
7996 (eval "$lt_compile" 2>out/conftest.err)
7998 cat out/conftest.err >&5
7999 echo "$as_me:7999: \$? = $ac_status" >&5
8000 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8002 # The compiler can only warn and ignore the option if not recognized
8003 # So say no if there are warnings
8004 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8005 $SED '/^$/d' out/conftest.err >out/conftest.er2
8006 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8007 lt_cv_prog_compiler_c_o=yes
8012 # SGI C++ compiler will create directory out/ii_files/ for
8013 # template instantiation
8014 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8015 $rm out/* && rmdir out
8021 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8022 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8025 hard_links="nottested"
8026 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8027 # do not overwrite the value of need_locks provided by the user
8028 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8029 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8034 ln conftest.a conftest.b 2>&5 || hard_links=no
8035 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8036 echo "$as_me:$LINENO: result: $hard_links" >&5
8037 echo "${ECHO_T}$hard_links" >&6
8038 if test "$hard_links" = no; then
8039 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8040 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8047 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8048 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8051 allow_undefined_flag=
8052 enable_shared_with_static_runtimes=no
8054 archive_expsym_cmds=
8055 old_archive_From_new_cmds=
8056 old_archive_from_expsyms_cmds=
8057 export_dynamic_flag_spec=
8058 whole_archive_flag_spec=
8059 thread_safe_flag_spec=
8060 hardcode_libdir_flag_spec=
8061 hardcode_libdir_flag_spec_ld=
8062 hardcode_libdir_separator=
8065 hardcode_shlibpath_var=unsupported
8066 link_all_deplibs=unknown
8067 hardcode_automatic=no
8070 always_export_symbols=no
8071 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8072 # include_expsyms should be a list of space-separated symbols to be *always*
8073 # included in the symbol list
8075 # exclude_expsyms can be an extended regexp of symbols to exclude
8076 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8077 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8078 # as well as any symbol that contains `d'.
8079 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8080 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8081 # platforms (ab)use it in PIC code, but their linkers get confused if
8082 # the symbol is explicitly referenced. Since portable code cannot
8083 # rely on this symbol name, it's probably fine to never include it in
8084 # preloaded symbol tables.
8085 extract_expsyms_cmds=
8086 # Just being paranoid about ensuring that cc_basename is set.
8087 for cc_temp in $compiler""; do
8089 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8090 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8095 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8098 cygwin* | mingw* | pw32*)
8099 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8100 # When not using gcc, we currently assume that we are using
8101 # Microsoft Visual C++.
8102 if test "$GCC" != yes; then
8112 if test "$with_gnu_ld" = yes; then
8113 # If archive_cmds runs LD, not CC, wlarc should be empty
8116 # Set some defaults for GNU ld with shared library support. These
8117 # are reset later if shared libraries are not supported. Putting them
8118 # here allows them to be overridden if necessary.
8119 runpath_var=LD_RUN_PATH
8120 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8121 export_dynamic_flag_spec='${wl}--export-dynamic'
8122 # ancient GNU ld didn't support --whole-archive et. al.
8123 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8124 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8126 whole_archive_flag_spec=
8128 supports_anon_versioning=no
8129 case `$LD -v 2>/dev/null` in
8130 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8131 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8132 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8133 *\ 2.11.*) ;; # other 2.11 versions
8134 *) supports_anon_versioning=yes ;;
8137 # See if GNU ld supports shared libraries.
8139 aix3* | aix4* | aix5*)
8140 # On AIX/PPC, the GNU linker is very broken
8141 if test "$host_cpu" != ia64; then
8145 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8146 *** to be unable to reliably create shared libraries on AIX.
8147 *** Therefore, libtool is disabling shared libraries support. If you
8148 *** really care for shared libraries, you may want to modify your PATH
8149 *** so that a non-GNU linker is found, and then restart.
8156 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)'
8157 hardcode_libdir_flag_spec='-L$libdir'
8158 hardcode_minus_L=yes
8160 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8161 # that the semantics of dynamic libraries on AmigaOS, at least up
8162 # to version 4, is to share data among multiple programs linked
8163 # with the same dynamic library. Since this doesn't match the
8164 # behavior of shared libraries on other platforms, we can't use
8170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8171 allow_undefined_flag=unsupported
8172 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8173 # support --undefined. This deserves some investigation. FIXME
8174 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8180 cygwin* | mingw* | pw32*)
8181 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8182 # as there is no search path for DLLs.
8183 hardcode_libdir_flag_spec='-L$libdir'
8184 allow_undefined_flag=unsupported
8185 always_export_symbols=no
8186 enable_shared_with_static_runtimes=yes
8187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8189 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8191 # If the export-symbols file already is a .def file (1st line
8192 # is EXPORTS), use it as is; otherwise, prepend...
8193 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8194 cp $export_symbols $output_objdir/$soname.def;
8196 echo EXPORTS > $output_objdir/$soname.def;
8197 cat $export_symbols >> $output_objdir/$soname.def;
8199 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8206 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8208 case $cc_basename,$host_cpu in
8209 pgcc*) # Portland Group C compiler
8210 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'
8211 tmp_addflag=' $pic_flag'
8213 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8214 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'
8215 tmp_addflag=' $pic_flag -Mnomain' ;;
8216 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8217 tmp_addflag=' -i_dynamic' ;;
8218 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8219 tmp_addflag=' -i_dynamic -nofor_main' ;;
8220 ifc* | ifort*) # Intel Fortran compiler
8221 tmp_addflag=' -nofor_main' ;;
8223 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8225 if test $supports_anon_versioning = yes; then
8226 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8228 $echo "local: *; };" >> $output_objdir/$libname.ver~
8229 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8238 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8242 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8247 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8252 *** create shared libraries on Solaris systems. Therefore, libtool
8253 *** is disabling shared libraries support. We urge you to upgrade GNU
8254 *** binutils to release 2.9.1 or newer. Another option is to modify
8255 *** your PATH or compiler configuration so that the native linker is
8256 *** used, and then restart.
8259 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8268 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8271 hardcode_shlibpath_var=no
8275 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8284 if test "$ld_shlibs" = no; then
8286 hardcode_libdir_flag_spec=
8287 export_dynamic_flag_spec=
8288 whole_archive_flag_spec=
8291 # PORTME fill in a description of your system's linker (not GNU ld)
8294 allow_undefined_flag=unsupported
8295 always_export_symbols=yes
8296 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'
8297 # Note: this linker hardcodes the directories in LIBPATH if there
8298 # are no directories specified by -L.
8299 hardcode_minus_L=yes
8300 if test "$GCC" = yes && test -z "$link_static_flag"; then
8301 # Neither direct hardcoding nor static linking is supported with a
8303 hardcode_direct=unsupported
8308 if test "$host_cpu" = ia64; then
8309 # On IA64, the linker does run time linking by default, so we don't
8310 # have to do anything special.
8311 aix_use_runtimelinking=no
8312 exp_sym_flag='-Bexport'
8315 # If we're using GNU nm, then we don't want the "-C" option.
8316 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8317 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8318 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'
8320 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'
8322 aix_use_runtimelinking=no
8324 # Test if we are trying to use run time linking or normal
8325 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8326 # need to do runtime linking.
8327 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8328 for ld_flag in $LDFLAGS; do
8329 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8330 aix_use_runtimelinking=yes
8336 exp_sym_flag='-bexport'
8337 no_entry_flag='-bnoentry'
8340 # When large executables or shared objects are built, AIX ld can
8341 # have problems creating the table of contents. If linking a library
8342 # or program results in "error TOC overflow" add -mminimal-toc to
8343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8348 hardcode_libdir_separator=':'
8349 link_all_deplibs=yes
8351 if test "$GCC" = yes; then
8352 case $host_os in aix4.[012]|aix4.[012].*)
8353 # We only want to do this on AIX 4.2 and lower, the check
8354 # below for broken collect2 doesn't work under 4.3+
8355 collect2name=`${CC} -print-prog-name=collect2`
8356 if test -f "$collect2name" && \
8357 strings "$collect2name" | grep resolve_lib_name >/dev/null
8359 # We have reworked collect2
8362 # We have old collect2
8363 hardcode_direct=unsupported
8364 # It fails to find uninstalled libraries when the uninstalled
8365 # path is not listed in the libpath. Setting hardcode_minus_L
8366 # to unsupported forces relinking
8367 hardcode_minus_L=yes
8368 hardcode_libdir_flag_spec='-L$libdir'
8369 hardcode_libdir_separator=
8372 shared_flag='-shared'
8373 if test "$aix_use_runtimelinking" = yes; then
8374 shared_flag="$shared_flag "'${wl}-G'
8378 if test "$host_cpu" = ia64; then
8379 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8380 # chokes on -Wl,-G. The following line is correct:
8383 if test "$aix_use_runtimelinking" = yes; then
8384 shared_flag='${wl}-G'
8386 shared_flag='${wl}-bM:SRE'
8391 # It seems that -bexpall does not export symbols beginning with
8392 # underscore (_), so it is better to generate a list of symbols to export.
8393 always_export_symbols=yes
8394 if test "$aix_use_runtimelinking" = yes; then
8395 # Warning - without using the other runtime loading flags (-brtl),
8396 # -berok will link without error, but may produce a broken library.
8397 allow_undefined_flag='-berok'
8398 # Determine the default libpath from the value encoded in an empty executable.
8399 cat >conftest.$ac_ext <<_ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8414 rm -f conftest.$ac_objext conftest$ac_exeext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416 (eval $ac_link) 2>conftest.er1
8418 grep -v '^ *+' conftest.er1 >conftest.err
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8439 # Check for a 64-bit object if we didn't find anything.
8440 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; }
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8447 rm -f conftest.err conftest.$ac_objext \
8448 conftest$ac_exeext conftest.$ac_ext
8449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8451 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8452 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"
8454 if test "$host_cpu" = ia64; then
8455 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8456 allow_undefined_flag="-z nodefs"
8457 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"
8459 # Determine the default libpath from the value encoded in an empty executable.
8460 cat >conftest.$ac_ext <<_ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8475 rm -f conftest.$ac_objext conftest$ac_exeext
8476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8477 (eval $ac_link) 2>conftest.er1
8479 grep -v '^ *+' conftest.er1 >conftest.err
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
8484 { ac_try='test -z "$ac_c_werror_flag"
8485 || test ! -s conftest.err'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; } &&
8491 { ac_try='test -s conftest$ac_exeext'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; }; then
8498 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8500 # Check for a 64-bit object if we didn't find anything.
8501 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; }
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8508 rm -f conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8512 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8513 # Warning - without using the other run time loading flags,
8514 # -berok will link without error, but may produce a broken library.
8515 no_undefined_flag=' ${wl}-bernotok'
8516 allow_undefined_flag=' ${wl}-berok'
8517 # -bexpall does not export symbols beginning with underscore (_)
8518 always_export_symbols=yes
8519 # Exported symbols can be pulled into shared objects from archives
8520 whole_archive_flag_spec=' '
8521 archive_cmds_need_lc=yes
8522 # This is similar to how AIX traditionally builds its shared libraries.
8523 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'
8529 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)'
8530 hardcode_libdir_flag_spec='-L$libdir'
8531 hardcode_minus_L=yes
8532 # see comment about different semantics on the GNU ld section
8537 export_dynamic_flag_spec=-rdynamic
8540 cygwin* | mingw* | pw32*)
8541 # When not using gcc, we currently assume that we are using
8542 # Microsoft Visual C++.
8543 # hardcode_libdir_flag_spec is actually meaningless, as there is
8544 # no search path for DLLs.
8545 hardcode_libdir_flag_spec=' '
8546 allow_undefined_flag=unsupported
8547 # Tell ltmain to make .lib files, not .a files.
8549 # Tell ltmain to make .dll files, not .so files.
8551 # FIXME: Setting linknames here is a bad hack.
8552 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8553 # The linker will automatically build a .lib file if we build a DLL.
8554 old_archive_From_new_cmds='true'
8555 # FIXME: Should let the user specify the lib program.
8556 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8557 fix_srcfile_path='`cygpath -w "$srcfile"`'
8558 enable_shared_with_static_runtimes=yes
8561 darwin* | rhapsody*)
8563 rhapsody* | darwin1.[012])
8564 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8567 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8568 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8570 case ${MACOSX_DEPLOYMENT_TARGET} in
8572 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8575 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8581 archive_cmds_need_lc=no
8583 hardcode_automatic=yes
8584 hardcode_shlibpath_var=unsupported
8585 whole_archive_flag_spec=''
8586 link_all_deplibs=yes
8587 if test "$GCC" = yes ; then
8588 output_verbose_link_cmd='echo'
8589 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8590 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8591 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8592 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}'
8593 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}'
8595 case $cc_basename in
8597 output_verbose_link_cmd='echo'
8598 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8599 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8600 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8601 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}'
8602 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}'
8612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8613 hardcode_libdir_flag_spec='-L$libdir'
8614 hardcode_shlibpath_var=no
8621 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8622 # support. Future versions do this automatically, but an explicit c++rt0.o
8623 # does not break anything, and helps significantly (at the cost of a little
8626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8627 hardcode_libdir_flag_spec='-R$libdir'
8629 hardcode_shlibpath_var=no
8632 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8636 hardcode_minus_L=yes
8637 hardcode_shlibpath_var=no
8640 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8641 freebsd* | kfreebsd*-gnu | dragonfly*)
8642 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8643 hardcode_libdir_flag_spec='-R$libdir'
8645 hardcode_shlibpath_var=no
8649 if test "$GCC" = yes; then
8650 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'
8652 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'
8654 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8655 hardcode_libdir_separator=:
8658 # hardcode_minus_L: Not really in the search PATH,
8659 # but as the default location of the library.
8660 hardcode_minus_L=yes
8661 export_dynamic_flag_spec='${wl}-E'
8665 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8668 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8671 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8677 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8680 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8684 if test "$with_gnu_ld" = no; then
8687 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8688 hardcode_libdir_flag_spec_ld='+b $libdir'
8689 hardcode_libdir_separator=:
8691 hardcode_shlibpath_var=no
8694 hardcode_libdir_flag_spec='-L$libdir'
8696 hardcode_shlibpath_var=no
8698 # hardcode_minus_L: Not really in the search PATH,
8699 # but as the default location of the library.
8700 hardcode_minus_L=yes
8703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8704 hardcode_libdir_separator=:
8706 export_dynamic_flag_spec='${wl}-E'
8708 # hardcode_minus_L: Not really in the search PATH,
8709 # but as the default location of the library.
8710 hardcode_minus_L=yes
8716 irix5* | irix6* | nonstopux*)
8717 if test "$GCC" = yes; then
8718 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'
8720 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'
8721 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8724 hardcode_libdir_separator=:
8725 link_all_deplibs=yes
8729 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8732 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8734 hardcode_libdir_flag_spec='-R$libdir'
8736 hardcode_shlibpath_var=no
8740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8743 hardcode_libdir_separator=:
8744 hardcode_shlibpath_var=no
8749 hardcode_shlibpath_var=no
8750 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8751 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8752 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8754 export_dynamic_flag_spec='${wl}-E'
8757 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8759 hardcode_libdir_flag_spec='-R$libdir'
8762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8763 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8770 hardcode_libdir_flag_spec='-L$libdir'
8771 hardcode_minus_L=yes
8772 allow_undefined_flag=unsupported
8773 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'
8774 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8778 if test "$GCC" = yes; then
8779 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8780 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'
8782 allow_undefined_flag=' -expect_unresolved \*'
8783 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'
8785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786 hardcode_libdir_separator=:
8789 osf4* | osf5*) # as osf3* with the addition of -msym flag
8790 if test "$GCC" = yes; then
8791 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8792 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'
8793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8795 allow_undefined_flag=' -expect_unresolved \*'
8796 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'
8797 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8798 $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'
8800 # Both c and cxx compiler support -rpath directly
8801 hardcode_libdir_flag_spec='-rpath $libdir'
8803 hardcode_libdir_separator=:
8807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_shlibpath_var=no
8809 export_dynamic_flag_spec='${wl}-Bexport'
8810 runpath_var=LD_RUN_PATH
8811 hardcode_runpath_var=yes
8815 no_undefined_flag=' -z text'
8816 if test "$GCC" = yes; then
8818 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8819 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8820 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8823 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8824 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8825 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8827 hardcode_libdir_flag_spec='-R$libdir'
8828 hardcode_shlibpath_var=no
8830 solaris2.[0-5] | solaris2.[0-5].*) ;;
8832 # The compiler driver will combine linker options so we
8833 # cannot just pass the convience library names through
8834 # without $wl, iff we do not link with $LD.
8835 # Luckily, gcc supports the same syntax we need for Sun Studio.
8836 # Supported since Solaris 2.6 (maybe 2.5.1?)
8839 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8841 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' ;;
8844 link_all_deplibs=yes
8848 if test "x$host_vendor" = xsequent; then
8849 # Use $CC to link under sequent, because it throws in some extra .o
8850 # files that make .init and .fini sections work.
8851 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8855 hardcode_libdir_flag_spec='-L$libdir'
8857 hardcode_minus_L=yes
8858 hardcode_shlibpath_var=no
8862 case $host_vendor in
8864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865 hardcode_direct=yes # is this really true???
8868 ## LD is ld it makes a PLAMLIB
8869 ## CC just makes a GrossModule.
8870 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8871 reload_cmds='$CC -r -o $output$reload_objs'
8875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8876 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8879 runpath_var='LD_RUN_PATH'
8880 hardcode_shlibpath_var=no
8884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8885 hardcode_shlibpath_var=no
8886 export_dynamic_flag_spec='-Bexport'
8890 if test -d /usr/nec; then
8891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8892 hardcode_shlibpath_var=no
8893 runpath_var=LD_RUN_PATH
8894 hardcode_runpath_var=yes
8900 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8903 hardcode_shlibpath_var=no
8904 hardcode_runpath_var=yes
8905 runpath_var=LD_RUN_PATH
8908 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8909 no_undefined_flag='${wl}-z ${wl}text'
8910 if test "$GCC" = yes; then
8911 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8913 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8915 runpath_var='LD_RUN_PATH'
8916 hardcode_shlibpath_var=no
8920 no_undefined_flag=' -z text'
8921 # $CC -shared without GNU ld will not create a library from C++
8922 # object files and a static libstdc++, better avoid it by now
8923 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8924 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8925 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8926 hardcode_libdir_flag_spec=
8927 hardcode_shlibpath_var=no
8928 runpath_var='LD_RUN_PATH'
8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_libdir_flag_spec='-L$libdir'
8934 hardcode_shlibpath_var=no
8943 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8944 echo "${ECHO_T}$ld_shlibs" >&6
8945 test "$ld_shlibs" = no && can_build_shared=no
8947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8948 if test "$GCC" = yes; then
8949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8953 # Do we need to explicitly link libc?
8955 case "x$archive_cmds_need_lc" in
8957 # Assume -lc should be added
8958 archive_cmds_need_lc=yes
8960 if test "$enable_shared" = yes && test "$GCC" = yes; then
8961 case $archive_cmds in
8963 # FIXME: we may have to deal with multi-command sequences.
8966 # Test whether the compiler implicitly links with -lc since on some
8967 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8968 # to ld, don't add -lc before -lgcc.
8969 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8970 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8975 (eval $ac_compile) 2>&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } 2>conftest.err; then
8981 libobjs=conftest.$ac_objext
8983 wl=$lt_prog_compiler_wl
8989 lt_save_allow_undefined_flag=$allow_undefined_flag
8990 allow_undefined_flag=
8991 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8992 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }
8997 archive_cmds_need_lc=no
8999 archive_cmds_need_lc=yes
9001 allow_undefined_flag=$lt_save_allow_undefined_flag
9003 cat conftest.err 1>&5
9006 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9007 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9014 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9015 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9017 libname_spec='lib$name'
9025 shlibpath_overrides_runpath=unknown
9027 dynamic_linker="$host_os ld.so"
9028 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9029 if test "$GCC" = yes; then
9030 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9031 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9032 # if the path contains ";" then we assume it to be the separator
9033 # otherwise default to the standard path separator (i.e. ":") - it is
9034 # assumed that no part of a normal pathname contains ";" but that should
9035 # okay in the real world where ";" in dirpaths is itself problematic.
9036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9041 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9043 need_lib_prefix=unknown
9044 hardcode_into_libs=no
9046 # when you set need_version to no, make sure it does not cause -set_version
9047 # flags to be left without arguments
9048 need_version=unknown
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9054 shlibpath_var=LIBPATH
9056 # AIX 3 has no versioning support, so we append a major version to the name.
9057 soname_spec='${libname}${release}${shared_ext}$major'
9064 hardcode_into_libs=yes
9065 if test "$host_cpu" = ia64; then
9066 # AIX 5 supports IA64
9067 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9068 shlibpath_var=LD_LIBRARY_PATH
9070 # With GCC up to 2.95.x, collect2 would create an import file
9071 # for dependence libraries. The import file would start with
9072 # the line `#! .'. This would cause the generated library to
9073 # depend on `.', always an invalid library. This was fixed in
9074 # development snapshots of GCC prior to 3.0.
9076 aix4 | aix4.[01] | aix4.[01].*)
9077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9079 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9086 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9087 # soname into executable. Probably we can add versioning support to
9088 # collect2, so additional links can be useful in future.
9089 if test "$aix_use_runtimelinking" = yes; then
9090 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9091 # instead of lib<name>.a to let people know that these are not
9092 # typical AIX shared libraries.
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 # We preserve .a as extension for shared libraries through AIX4.2
9096 # and later when we are not doing run time linking.
9097 library_names_spec='${libname}${release}.a $libname.a'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9100 shlibpath_var=LIBPATH
9105 library_names_spec='$libname.ixlibrary $libname.a'
9106 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9107 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'
9111 library_names_spec='${libname}${shared_ext}'
9112 dynamic_linker="$host_os ld.so"
9113 shlibpath_var=LIBRARY_PATH
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9124 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9125 # the default ld.so.conf also contains /usr/contrib/lib and
9126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9127 # libtool to hard-code these into programs
9130 cygwin* | mingw* | pw32*)
9131 version_type=windows
9136 case $GCC,$host_os in
9137 yes,cygwin* | yes,mingw* | yes,pw32*)
9138 library_names_spec='$libname.dll.a'
9139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9140 postinstall_cmds='base_file=`basename \${file}`~
9141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9142 dldir=$destdir/`dirname \$dlpath`~
9143 test -d \$dldir || mkdir -p \$dldir~
9144 $install_prog $dir/$dlname \$dldir/$dlname~
9145 chmod a+x \$dldir/$dlname'
9146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9147 dlpath=$dir/\$dldll~
9149 shlibpath_overrides_runpath=yes
9153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9154 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9155 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9158 # MinGW DLLs use traditional 'lib' prefix
9159 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9161 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9162 # It is most probably a Windows format PATH printed by
9163 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9164 # path with ; separators, and with drive letters. We can handle the
9165 # drive letters (cygwin fileutils understands them), so leave them,
9166 # especially as we might pass files found there to a mingw objdump,
9167 # which wouldn't understand a cygwinified path. Ahh.
9168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9174 # pw32 DLLs use 'pw' prefix rather than 'lib'
9175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9184 dynamic_linker='Win32 ld.exe'
9185 # FIXME: first we should search . and the directory the executable is in
9189 darwin* | rhapsody*)
9190 dynamic_linker="$host_os dyld"
9194 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9195 soname_spec='${libname}${release}${major}$shared_ext'
9196 shlibpath_overrides_runpath=yes
9197 shlibpath_var=DYLD_LIBRARY_PATH
9198 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9199 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9200 if test "$GCC" = yes; then
9201 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"`
9203 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 shlibpath_var=LD_LIBRARY_PATH
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 shlibpath_var=LD_LIBRARY_PATH
9228 shlibpath_overrides_runpath=no
9229 hardcode_into_libs=yes
9230 dynamic_linker='GNU ld.so'
9233 freebsd* | dragonfly*)
9234 # DragonFly does not have aout. When/if they implement a new
9235 # versioning mechanism, adjust this.
9236 if test -x /usr/bin/objformat; then
9237 objformat=`/usr/bin/objformat`
9240 freebsd[123]*) objformat=aout ;;
9244 version_type=freebsd-$objformat
9245 case $version_type in
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9256 shlibpath_var=LD_LIBRARY_PATH
9259 shlibpath_overrides_runpath=yes
9261 freebsd3.[01]* | freebsdelf3.[01]*)
9262 shlibpath_overrides_runpath=yes
9263 hardcode_into_libs=yes
9266 shlibpath_overrides_runpath=no
9267 hardcode_into_libs=yes
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9277 soname_spec='${libname}${release}${shared_ext}$major'
9278 shlibpath_var=LD_LIBRARY_PATH
9279 hardcode_into_libs=yes
9282 hpux9* | hpux10* | hpux11*)
9283 # Give a soname corresponding to the major version so that dld.sl refuses to
9284 # link against other versions.
9291 hardcode_into_libs=yes
9292 dynamic_linker="$host_os dld.so"
9293 shlibpath_var=LD_LIBRARY_PATH
9294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 if test "X$HPUX_IA64_MODE" = X32; then
9298 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9300 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9306 hardcode_into_libs=yes
9307 dynamic_linker="$host_os dld.sl"
9308 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9317 dynamic_linker="$host_os dld.sl"
9318 shlibpath_var=SHLIB_PATH
9319 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321 soname_spec='${libname}${release}${shared_ext}$major'
9324 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9325 postinstall_cmds='chmod 555 $lib'
9328 irix5* | irix6* | nonstopux*)
9330 nonstopux*) version_type=nonstopux ;;
9332 if test "$lt_cv_prog_gnu_ld" = yes; then
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9343 irix5* | nonstopux*)
9347 case $LD in # libtool.m4 will add one of these switches to LD
9348 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9349 libsuff= shlibsuff= libmagic=32-bit;;
9350 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9351 libsuff=32 shlibsuff=N32 libmagic=N32;;
9352 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9353 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9354 *) libsuff= shlibsuff= libmagic=never-match;;
9358 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9359 shlibpath_overrides_runpath=no
9360 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9361 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9362 hardcode_into_libs=yes
9365 # No shared lib support for Linux oldld, aout, or coff.
9366 linux*oldld* | linux*aout* | linux*coff*)
9370 # This must be Linux ELF.
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376 soname_spec='${libname}${release}${shared_ext}$major'
9377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9378 shlibpath_var=LD_LIBRARY_PATH
9379 shlibpath_overrides_runpath=no
9380 # This implies no fast_install, which is unacceptable.
9381 # Some rework will be needed to allow for fast_install
9382 # before this can be enabled.
9383 hardcode_into_libs=yes
9385 # Append ld.so.conf contents to the search path
9386 if test -f /etc/ld.so.conf; then
9387 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' ' '`
9388 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9391 # We used to test for /lib/ld.so.1 and disable shared libraries on
9392 # powerpc, because MkLinux only supported shared libraries with the
9393 # GNU dynamic linker. Since this was broken with cross compilers,
9394 # most powerpc-linux boxes support dynamic linking these days and
9395 # people can always --disable-shared, the test was removed, and we
9396 # assume the GNU/Linux dynamic linker is in use.
9397 dynamic_linker='GNU/Linux ld.so'
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 shlibpath_var=LD_LIBRARY_PATH
9407 shlibpath_overrides_runpath=no
9408 hardcode_into_libs=yes
9409 dynamic_linker='GNU ld.so'
9416 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9419 dynamic_linker='NetBSD (a.out) ld.so'
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 dynamic_linker='NetBSD ld.elf_so'
9425 shlibpath_var=LD_LIBRARY_PATH
9426 shlibpath_overrides_runpath=yes
9427 hardcode_into_libs=yes
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 shlibpath_overrides_runpath=yes
9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442 soname_spec='${libname}${release}${shared_ext}$major'
9443 shlibpath_var=LD_LIBRARY_PATH
9444 shlibpath_overrides_runpath=yes
9450 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9452 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9453 *) need_version=no ;;
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9457 shlibpath_var=LD_LIBRARY_PATH
9458 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9460 openbsd2.[89] | openbsd2.[89].*)
9461 shlibpath_overrides_runpath=no
9464 shlibpath_overrides_runpath=yes
9468 shlibpath_overrides_runpath=yes
9473 libname_spec='$name'
9476 library_names_spec='$libname${shared_ext} $libname.a'
9477 dynamic_linker='OS/2 ld.exe'
9478 shlibpath_var=LIBPATH
9481 osf3* | osf4* | osf5*)
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487 shlibpath_var=LD_LIBRARY_PATH
9488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9494 soname_spec='${libname}${release}${shared_ext}$major'
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496 shlibpath_var=LD_LIBRARY_PATH
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504 soname_spec='${libname}${release}${shared_ext}$major'
9505 shlibpath_var=LD_LIBRARY_PATH
9506 shlibpath_overrides_runpath=yes
9507 hardcode_into_libs=yes
9508 # ldd complains unless libraries are executable
9509 postinstall_cmds='chmod +x $lib'
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9515 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 shlibpath_overrides_runpath=yes
9518 if test "$with_gnu_ld" = yes; then
9524 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527 soname_spec='${libname}${release}${shared_ext}$major'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 case $host_vendor in
9531 shlibpath_overrides_runpath=no
9533 export_dynamic_flag_spec='${wl}-Blargedynsym'
9534 runpath_var=LD_RUN_PATH
9542 shlibpath_overrides_runpath=no
9543 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9549 if test -d /usr/nec ;then
9551 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9552 soname_spec='$libname${shared_ext}.$major'
9553 shlibpath_var=LD_LIBRARY_PATH
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 shlibpath_var=LD_LIBRARY_PATH
9568 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9569 echo "${ECHO_T}$dynamic_linker" >&6
9570 test "$dynamic_linker" = no && can_build_shared=no
9572 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9573 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9575 if test -n "$hardcode_libdir_flag_spec" || \
9576 test -n "$runpath_var" || \
9577 test "X$hardcode_automatic" = "Xyes" ; then
9579 # We can hardcode non-existant directories.
9580 if test "$hardcode_direct" != no &&
9581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9582 # have to relink, otherwise we might link with an installed library
9583 # when we should be linking with a yet-to-be-installed one
9584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9585 test "$hardcode_minus_L" != no; then
9586 # Linking always hardcodes the temporary library directory.
9587 hardcode_action=relink
9589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9590 hardcode_action=immediate
9593 # We cannot hardcode anything, or else we can only hardcode existing
9595 hardcode_action=unsupported
9597 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9598 echo "${ECHO_T}$hardcode_action" >&6
9600 if test "$hardcode_action" = relink; then
9601 # Fast installation is not supported
9602 enable_fast_install=no
9603 elif test "$shlibpath_overrides_runpath" = yes ||
9604 test "$enable_shared" = no; then
9605 # Fast installation is not necessary
9606 enable_fast_install=needless
9611 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9612 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9613 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9614 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9615 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9616 echo "$as_me:$LINENO: result: yes" >&5
9617 echo "${ECHO_T}yes" >&6
9619 # FIXME - insert some real tests, host_os isn't really good enough
9622 if test -n "$STRIP" ; then
9623 striplib="$STRIP -x"
9624 echo "$as_me:$LINENO: result: yes" >&5
9625 echo "${ECHO_T}yes" >&6
9627 echo "$as_me:$LINENO: result: no" >&5
9628 echo "${ECHO_T}no" >&6
9632 echo "$as_me:$LINENO: result: no" >&5
9633 echo "${ECHO_T}no" >&6
9638 if test "x$enable_dlopen" != xyes; then
9639 enable_dlopen=unknown
9640 enable_dlopen_self=unknown
9641 enable_dlopen_self_static=unknown
9648 lt_cv_dlopen="load_add_on"
9650 lt_cv_dlopen_self=yes
9654 lt_cv_dlopen="LoadLibrary"
9659 lt_cv_dlopen="dlopen"
9664 # if libdl is installed we need to link against it
9665 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9666 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9667 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 ac_check_lib_save_LIBS=$LIBS
9672 cat >conftest.$ac_ext <<_ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9679 /* Override any gcc2 internal prototype to avoid an error. */
9683 /* We use char because int might match the return type of a gcc2
9684 builtin and then its argument prototype would still apply. */
9694 rm -f conftest.$ac_objext conftest$ac_exeext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9696 (eval $ac_link) 2>conftest.er1
9698 grep -v '^ *+' conftest.er1 >conftest.err
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
9703 { ac_try='test -z "$ac_c_werror_flag"
9704 || test ! -s conftest.err'
9705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; } &&
9710 { ac_try='test -s conftest$ac_exeext'
9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; }; then
9716 ac_cv_lib_dl_dlopen=yes
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9721 ac_cv_lib_dl_dlopen=no
9723 rm -f conftest.err conftest.$ac_objext \
9724 conftest$ac_exeext conftest.$ac_ext
9725 LIBS=$ac_check_lib_save_LIBS
9727 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9728 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9729 if test $ac_cv_lib_dl_dlopen = yes; then
9730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9735 lt_cv_dlopen_self=yes
9742 echo "$as_me:$LINENO: checking for shl_load" >&5
9743 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9744 if test "${ac_cv_func_shl_load+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 cat >conftest.$ac_ext <<_ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9755 #define shl_load innocuous_shl_load
9757 /* System header to define __stub macros and hopefully few prototypes,
9758 which can conflict with char shl_load (); below.
9759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9760 <limits.h> exists even on freestanding compilers. */
9763 # include <limits.h>
9765 # include <assert.h>
9770 /* Override any gcc2 internal prototype to avoid an error. */
9775 /* We use char because int might match the return type of a gcc2
9776 builtin and then its argument prototype would still apply. */
9778 /* The GNU C library defines this for functions which it implements
9779 to always fail with ENOSYS. Some functions are actually named
9780 something starting with __ and the normal name is an alias. */
9781 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9784 char (*f) () = shl_load;
9793 return f != shl_load;
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>conftest.er1
9802 grep -v '^ *+' conftest.er1 >conftest.err
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } &&
9807 { ac_try='test -z "$ac_c_werror_flag"
9808 || test ! -s conftest.err'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; } &&
9814 { ac_try='test -s conftest$ac_exeext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_func_shl_load=yes
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825 ac_cv_func_shl_load=no
9827 rm -f conftest.err conftest.$ac_objext \
9828 conftest$ac_exeext conftest.$ac_ext
9830 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9831 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9832 if test $ac_cv_func_shl_load = yes; then
9833 lt_cv_dlopen="shl_load"
9835 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9836 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9837 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 ac_check_lib_save_LIBS=$LIBS
9842 cat >conftest.$ac_ext <<_ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9849 /* Override any gcc2 internal prototype to avoid an error. */
9853 /* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9866 (eval $ac_link) 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -z "$ac_c_werror_flag"
9874 || test ! -s conftest.err'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; } &&
9880 { ac_try='test -s conftest$ac_exeext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 ac_cv_lib_dld_shl_load=yes
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9891 ac_cv_lib_dld_shl_load=no
9893 rm -f conftest.err conftest.$ac_objext \
9894 conftest$ac_exeext conftest.$ac_ext
9895 LIBS=$ac_check_lib_save_LIBS
9897 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9898 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9899 if test $ac_cv_lib_dld_shl_load = yes; then
9900 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9902 echo "$as_me:$LINENO: checking for dlopen" >&5
9903 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9904 if test "${ac_cv_func_dlopen+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 cat >conftest.$ac_ext <<_ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9913 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9915 #define dlopen innocuous_dlopen
9917 /* System header to define __stub macros and hopefully few prototypes,
9918 which can conflict with char dlopen (); below.
9919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9920 <limits.h> exists even on freestanding compilers. */
9923 # include <limits.h>
9925 # include <assert.h>
9930 /* Override any gcc2 internal prototype to avoid an error. */
9935 /* We use char because int might match the return type of a gcc2
9936 builtin and then its argument prototype would still apply. */
9938 /* The GNU C library defines this for functions which it implements
9939 to always fail with ENOSYS. Some functions are actually named
9940 something starting with __ and the normal name is an alias. */
9941 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9944 char (*f) () = dlopen;
9958 rm -f conftest.$ac_objext conftest$ac_exeext
9959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9960 (eval $ac_link) 2>conftest.er1
9962 grep -v '^ *+' conftest.er1 >conftest.err
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } &&
9967 { ac_try='test -z "$ac_c_werror_flag"
9968 || test ! -s conftest.err'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_cv_func_dlopen=yes
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9985 ac_cv_func_dlopen=no
9987 rm -f conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9990 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9991 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9992 if test $ac_cv_func_dlopen = yes; then
9993 lt_cv_dlopen="dlopen"
9995 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9996 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 ac_check_lib_save_LIBS=$LIBS
10002 cat >conftest.$ac_ext <<_ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10009 /* Override any gcc2 internal prototype to avoid an error. */
10013 /* We use char because int might match the return type of a gcc2
10014 builtin and then its argument prototype would still apply. */
10024 rm -f conftest.$ac_objext conftest$ac_exeext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10026 (eval $ac_link) 2>conftest.er1
10028 grep -v '^ *+' conftest.er1 >conftest.err
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -z "$ac_c_werror_flag"
10034 || test ! -s conftest.err'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_lib_dl_dlopen=yes
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10051 ac_cv_lib_dl_dlopen=no
10053 rm -f conftest.err conftest.$ac_objext \
10054 conftest$ac_exeext conftest.$ac_ext
10055 LIBS=$ac_check_lib_save_LIBS
10057 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10058 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10059 if test $ac_cv_lib_dl_dlopen = yes; then
10060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10062 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10063 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10064 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 ac_check_lib_save_LIBS=$LIBS
10068 LIBS="-lsvld $LIBS"
10069 cat >conftest.$ac_ext <<_ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10076 /* Override any gcc2 internal prototype to avoid an error. */
10080 /* We use char because int might match the return type of a gcc2
10081 builtin and then its argument prototype would still apply. */
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093 (eval $ac_link) 2>conftest.er1
10095 grep -v '^ *+' conftest.er1 >conftest.err
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag"
10101 || test ! -s conftest.err'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest$ac_exeext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_cv_lib_svld_dlopen=yes
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_cv_lib_svld_dlopen=no
10120 rm -f conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
10122 LIBS=$ac_check_lib_save_LIBS
10124 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10125 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10126 if test $ac_cv_lib_svld_dlopen = yes; then
10127 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10129 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10130 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10131 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 ac_check_lib_save_LIBS=$LIBS
10136 cat >conftest.$ac_ext <<_ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10143 /* Override any gcc2 internal prototype to avoid an error. */
10147 /* We use char because int might match the return type of a gcc2
10148 builtin and then its argument prototype would still apply. */
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160 (eval $ac_link) 2>conftest.er1
10162 grep -v '^ *+' conftest.er1 >conftest.err
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } &&
10167 { ac_try='test -z "$ac_c_werror_flag"
10168 || test ! -s conftest.err'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try='test -s conftest$ac_exeext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_cv_lib_dld_dld_link=yes
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ac_cv_lib_dld_dld_link=no
10187 rm -f conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10191 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10192 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10193 if test $ac_cv_lib_dld_dld_link = yes; then
10194 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10215 if test "x$lt_cv_dlopen" != xno; then
10221 case $lt_cv_dlopen in
10223 save_CPPFLAGS="$CPPFLAGS"
10224 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10226 save_LDFLAGS="$LDFLAGS"
10227 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10230 LIBS="$lt_cv_dlopen_libs $LIBS"
10232 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10233 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10234 if test "${lt_cv_dlopen_self+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 if test "$cross_compiling" = yes; then :
10238 lt_cv_dlopen_self=cross
10240 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10241 lt_status=$lt_dlunknown
10242 cat > conftest.$ac_ext <<EOF
10243 #line 10243 "configure"
10244 #include "confdefs.h"
10253 # define LT_DLGLOBAL RTLD_GLOBAL
10256 # define LT_DLGLOBAL DL_GLOBAL
10258 # define LT_DLGLOBAL 0
10262 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10263 find out it does not work in some platform. */
10264 #ifndef LT_DLLAZY_OR_NOW
10266 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10269 # define LT_DLLAZY_OR_NOW DL_LAZY
10272 # define LT_DLLAZY_OR_NOW RTLD_NOW
10275 # define LT_DLLAZY_OR_NOW DL_NOW
10277 # define LT_DLLAZY_OR_NOW 0
10285 extern "C" void exit (int);
10288 void fnord() { int i=42;}
10291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10292 int status = $lt_dlunknown;
10296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10297 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10298 /* dlclose (self); */
10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305 (eval $ac_link) 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10309 (./conftest; exit; ) >&5 2>/dev/null
10311 case x$lt_status in
10312 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10313 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10314 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10317 # compilation failed
10318 lt_cv_dlopen_self=no
10325 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10326 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10328 if test "x$lt_cv_dlopen_self" = xyes; then
10329 LDFLAGS="$LDFLAGS $link_static_flag"
10330 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10331 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10332 if test "${lt_cv_dlopen_self_static+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 if test "$cross_compiling" = yes; then :
10336 lt_cv_dlopen_self_static=cross
10338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10339 lt_status=$lt_dlunknown
10340 cat > conftest.$ac_ext <<EOF
10341 #line 10341 "configure"
10342 #include "confdefs.h"
10351 # define LT_DLGLOBAL RTLD_GLOBAL
10354 # define LT_DLGLOBAL DL_GLOBAL
10356 # define LT_DLGLOBAL 0
10360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10361 find out it does not work in some platform. */
10362 #ifndef LT_DLLAZY_OR_NOW
10364 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10367 # define LT_DLLAZY_OR_NOW DL_LAZY
10370 # define LT_DLLAZY_OR_NOW RTLD_NOW
10373 # define LT_DLLAZY_OR_NOW DL_NOW
10375 # define LT_DLLAZY_OR_NOW 0
10383 extern "C" void exit (int);
10386 void fnord() { int i=42;}
10389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10390 int status = $lt_dlunknown;
10394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10395 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10396 /* dlclose (self); */
10402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10403 (eval $ac_link) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10407 (./conftest; exit; ) >&5 2>/dev/null
10409 case x$lt_status in
10410 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10411 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10412 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10415 # compilation failed
10416 lt_cv_dlopen_self_static=no
10423 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10424 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10427 CPPFLAGS="$save_CPPFLAGS"
10428 LDFLAGS="$save_LDFLAGS"
10433 case $lt_cv_dlopen_self in
10434 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10435 *) enable_dlopen_self=unknown ;;
10438 case $lt_cv_dlopen_self_static in
10439 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10440 *) enable_dlopen_self_static=unknown ;;
10445 # Report which librarie types wil actually be built
10446 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10447 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10448 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10449 echo "${ECHO_T}$can_build_shared" >&6
10451 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10452 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10453 test "$can_build_shared" = "no" && enable_shared=no
10455 # On AIX, shared libraries and static libraries use the same namespace, and
10456 # are all built from PIC.
10459 test "$enable_shared" = yes && enable_static=no
10460 if test -n "$RANLIB"; then
10461 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10462 postinstall_cmds='$RANLIB $lib'
10467 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10468 test "$enable_shared" = yes && enable_static=no
10472 echo "$as_me:$LINENO: result: $enable_shared" >&5
10473 echo "${ECHO_T}$enable_shared" >&6
10475 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10476 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10477 # Make sure either enable_shared or enable_static is yes.
10478 test "$enable_shared" = yes || enable_static=yes
10479 echo "$as_me:$LINENO: result: $enable_static" >&5
10480 echo "${ECHO_T}$enable_static" >&6
10482 # The else clause should only fire when bootstrapping the
10483 # libtool distribution, otherwise you forgot to ship ltmain.sh
10484 # with your package, and you will get complaints that there are
10485 # no rules to generate ltmain.sh.
10486 if test -f "$ltmain"; then
10487 # See if we are running on zsh, and set the options which allow our commands through
10488 # without removal of \ escapes.
10489 if test -n "${ZSH_VERSION+set}" ; then
10490 setopt NO_GLOB_SUBST
10492 # Now quote all the things that may contain metacharacters while being
10493 # careful not to overquote the AC_SUBSTed values. We take copies of the
10494 # variables and quote the copies for generation of the libtool script.
10495 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10499 deplibs_check_method reload_flag reload_cmds need_locks \
10500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10501 lt_cv_sys_global_symbol_to_c_name_address \
10502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10503 old_postinstall_cmds old_postuninstall_cmds \
10507 lt_prog_compiler_wl \
10508 lt_prog_compiler_pic \
10509 lt_prog_compiler_static \
10510 lt_prog_compiler_no_builtin_flag \
10511 export_dynamic_flag_spec \
10512 thread_safe_flag_spec \
10513 whole_archive_flag_spec \
10514 enable_shared_with_static_runtimes \
10516 old_archive_from_new_cmds \
10521 compiler_lib_search_path \
10523 archive_expsym_cmds \
10525 postuninstall_cmds \
10526 old_archive_from_expsyms_cmds \
10527 allow_undefined_flag \
10528 no_undefined_flag \
10529 export_symbols_cmds \
10530 hardcode_libdir_flag_spec \
10531 hardcode_libdir_flag_spec_ld \
10532 hardcode_libdir_separator \
10533 hardcode_automatic \
10535 module_expsym_cmds \
10536 lt_cv_prog_compiler_c_o \
10538 include_expsyms; do
10541 old_archive_cmds | \
10542 old_archive_from_new_cmds | \
10544 archive_expsym_cmds | \
10546 module_expsym_cmds | \
10547 old_archive_from_expsyms_cmds | \
10548 export_symbols_cmds | \
10549 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10550 postinstall_cmds | postuninstall_cmds | \
10551 old_postinstall_cmds | old_postuninstall_cmds | \
10552 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10553 # Double-quote double-evaled strings.
10554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10563 *'\$0 --fallback-echo"')
10564 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10568 cfgfile="${ofile}T"
10569 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10571 { echo "$as_me:$LINENO: creating $ofile" >&5
10572 echo "$as_me: creating $ofile" >&6;}
10574 cat <<__EOF__ >> "$cfgfile"
10577 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10578 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10579 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10581 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10582 # Free Software Foundation, Inc.
10584 # This file is part of GNU Libtool:
10585 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10587 # This program is free software; you can redistribute it and/or modify
10588 # it under the terms of the GNU General Public License as published by
10589 # the Free Software Foundation; either version 2 of the License, or
10590 # (at your option) any later version.
10592 # This program is distributed in the hope that it will be useful, but
10593 # WITHOUT ANY WARRANTY; without even the implied warranty of
10594 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10595 # General Public License for more details.
10597 # You should have received a copy of the GNU General Public License
10598 # along with this program; if not, write to the Free Software
10599 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10601 # As a special exception to the GNU General Public License, if you
10602 # distribute this file as part of a program that contains a
10603 # configuration script generated by Autoconf, you may include it under
10604 # the same distribution terms that you use for the rest of that program.
10606 # A sed program that does not truncate output.
10609 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10610 Xsed="$SED -e 1s/^X//"
10612 # The HP-UX ksh and POSIX shell print the target directory to stdout
10613 # if CDPATH is set.
10614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10616 # The names of the tagged configurations supported by this script.
10619 # ### BEGIN LIBTOOL CONFIG
10621 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10623 # Shell to use when invoking shell scripts.
10626 # Whether or not to build shared libraries.
10627 build_libtool_libs=$enable_shared
10629 # Whether or not to build static libraries.
10630 build_old_libs=$enable_static
10632 # Whether or not to add -lc for building shared libraries.
10633 build_libtool_need_lc=$archive_cmds_need_lc
10635 # Whether or not to disallow shared libs when runtime libs are static
10636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10638 # Whether or not to optimize for fast installation.
10639 fast_install=$enable_fast_install
10642 host_alias=$host_alias
10646 # The build system.
10647 build_alias=$build_alias
10651 # An echo program that does not interpret backslashes.
10656 AR_FLAGS=$lt_AR_FLAGS
10661 # A language-specific compiler.
10664 # Is the compiler the GNU C compiler?
10670 # The linker used to build libraries.
10673 # Whether we need hard or soft links.
10676 # A BSD-compatible nm program.
10679 # A symbol stripping program
10682 # Used to examine libraries when file_magic_cmd begins "file"
10683 MAGIC_CMD=$MAGIC_CMD
10685 # Used on cygwin: DLL creation program.
10688 # Used on cygwin: object dumper.
10691 # Used on cygwin: assembler.
10694 # The name of the directory that contains temporary libtool files.
10697 # How to create reloadable object files.
10698 reload_flag=$lt_reload_flag
10699 reload_cmds=$lt_reload_cmds
10701 # How to pass a linker flag through the compiler.
10702 wl=$lt_lt_prog_compiler_wl
10704 # Object file suffix (normally "o").
10705 objext="$ac_objext"
10707 # Old archive suffix (normally "a").
10710 # Shared library suffix (normally ".so").
10711 shrext_cmds='$shrext_cmds'
10713 # Executable file suffix (normally "").
10716 # Additional compiler flags for building library objects.
10717 pic_flag=$lt_lt_prog_compiler_pic
10720 # What is the maximum length of a command?
10721 max_cmd_len=$lt_cv_sys_max_cmd_len
10723 # Does compiler simultaneously support -c and -o options?
10724 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10726 # Must we lock files when doing compilation?
10727 need_locks=$lt_need_locks
10729 # Do we need the lib prefix for modules?
10730 need_lib_prefix=$need_lib_prefix
10732 # Do we need a version for libraries?
10733 need_version=$need_version
10735 # Whether dlopen is supported.
10736 dlopen_support=$enable_dlopen
10738 # Whether dlopen of programs is supported.
10739 dlopen_self=$enable_dlopen_self
10741 # Whether dlopen of statically linked programs is supported.
10742 dlopen_self_static=$enable_dlopen_self_static
10744 # Compiler flag to prevent dynamic linking.
10745 link_static_flag=$lt_lt_prog_compiler_static
10747 # Compiler flag to turn off builtin functions.
10748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10750 # Compiler flag to allow reflexive dlopens.
10751 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10753 # Compiler flag to generate shared objects directly from archives.
10754 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10756 # Compiler flag to generate thread-safe objects.
10757 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10759 # Library versioning type.
10760 version_type=$version_type
10762 # Format of library name prefix.
10763 libname_spec=$lt_libname_spec
10765 # List of archive names. First name is the real one, the rest are links.
10766 # The last name is the one that the linker finds with -lNAME.
10767 library_names_spec=$lt_library_names_spec
10769 # The coded name of the library, if different from the real name.
10770 soname_spec=$lt_soname_spec
10772 # Commands used to build and install an old-style archive.
10774 old_archive_cmds=$lt_old_archive_cmds
10775 old_postinstall_cmds=$lt_old_postinstall_cmds
10776 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10778 # Create an old-style archive from a shared archive.
10779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10781 # Create a temporary old-style archive to link instead of a shared archive.
10782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10784 # Commands used to build and install a shared archive.
10785 archive_cmds=$lt_archive_cmds
10786 archive_expsym_cmds=$lt_archive_expsym_cmds
10787 postinstall_cmds=$lt_postinstall_cmds
10788 postuninstall_cmds=$lt_postuninstall_cmds
10790 # Commands used to build a loadable module (assumed same as above if empty)
10791 module_cmds=$lt_module_cmds
10792 module_expsym_cmds=$lt_module_expsym_cmds
10794 # Commands to strip libraries.
10795 old_striplib=$lt_old_striplib
10796 striplib=$lt_striplib
10798 # Dependencies to place before the objects being linked to create a
10800 predep_objects=$lt_predep_objects
10802 # Dependencies to place after the objects being linked to create a
10804 postdep_objects=$lt_postdep_objects
10806 # Dependencies to place before the objects being linked to create a
10808 predeps=$lt_predeps
10810 # Dependencies to place after the objects being linked to create a
10812 postdeps=$lt_postdeps
10814 # The library search path used internally by the compiler when linking
10815 # a shared library.
10816 compiler_lib_search_path=$lt_compiler_lib_search_path
10818 # Method to check whether dependent libraries are shared objects.
10819 deplibs_check_method=$lt_deplibs_check_method
10821 # Command to use when deplibs_check_method == file_magic.
10822 file_magic_cmd=$lt_file_magic_cmd
10824 # Flag that allows shared libraries with undefined symbols to be built.
10825 allow_undefined_flag=$lt_allow_undefined_flag
10827 # Flag that forces no undefined symbols.
10828 no_undefined_flag=$lt_no_undefined_flag
10830 # Commands used to finish a libtool library installation in a directory.
10831 finish_cmds=$lt_finish_cmds
10833 # Same as above, but a single script fragment to be evaled but not shown.
10834 finish_eval=$lt_finish_eval
10836 # Take the output of nm and produce a listing of raw symbols and C names.
10837 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10839 # Transform the output of nm in a proper C declaration
10840 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10842 # Transform the output of nm in a C name address pair
10843 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10845 # This is the shared library runtime path variable.
10846 runpath_var=$runpath_var
10848 # This is the shared library path variable.
10849 shlibpath_var=$shlibpath_var
10851 # Is shlibpath searched before the hard-coded library search path?
10852 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10854 # How to hardcode a shared library path into an executable.
10855 hardcode_action=$hardcode_action
10857 # Whether we should hardcode library paths into libraries.
10858 hardcode_into_libs=$hardcode_into_libs
10860 # Flag to hardcode \$libdir into a binary during linking.
10861 # This must work even if \$libdir does not exist.
10862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10864 # If ld is used when linking, flag to hardcode \$libdir into
10865 # a binary during linking. This must work even if \$libdir does
10867 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10869 # Whether we need a single -rpath flag with a separated argument.
10870 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10872 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10873 # resulting binary.
10874 hardcode_direct=$hardcode_direct
10876 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10877 # resulting binary.
10878 hardcode_minus_L=$hardcode_minus_L
10880 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10881 # the resulting binary.
10882 hardcode_shlibpath_var=$hardcode_shlibpath_var
10884 # Set to yes if building a shared library automatically hardcodes DIR into the library
10885 # and all subsequent libraries and executables linked against it.
10886 hardcode_automatic=$hardcode_automatic
10888 # Variables whose values should be saved in libtool wrapper scripts and
10889 # restored at relink time.
10890 variables_saved_for_relink="$variables_saved_for_relink"
10892 # Whether libtool must link a program against all its dependency libraries.
10893 link_all_deplibs=$link_all_deplibs
10895 # Compile-time system search path for libraries
10896 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10898 # Run-time system search path for libraries
10899 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10901 # Fix the shell variable \$srcfile for the compiler.
10902 fix_srcfile_path="$fix_srcfile_path"
10904 # Set to yes if exported symbols are required.
10905 always_export_symbols=$always_export_symbols
10907 # The commands to list exported symbols.
10908 export_symbols_cmds=$lt_export_symbols_cmds
10910 # The commands to extract the exported symbol list from a shared archive.
10911 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10913 # Symbols that should not be listed in the preloaded symbols.
10914 exclude_expsyms=$lt_exclude_expsyms
10916 # Symbols that must always be exported.
10917 include_expsyms=$lt_include_expsyms
10919 # ### END LIBTOOL CONFIG
10926 cat <<\EOF >> "$cfgfile"
10928 # AIX sometimes has problems with the GCC collect2 program. For some
10929 # reason, if we set the COLLECT_NAMES environment variable, the problems
10930 # vanish in a puff of smoke.
10931 if test "X${COLLECT_NAMES+set}" != Xset; then
10933 export COLLECT_NAMES
10939 # We use sed instead of cat because bash on DJGPP gets confused if
10940 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10941 # text mode, it properly converts lines to CR/LF. This bash problem
10942 # is reportedly fixed, but why not run on old versions too?
10943 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10945 mv -f "$cfgfile" "$ofile" || \
10946 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10950 # If there is no Makefile yet, we rely on a make rule to execute
10951 # `config.status --recheck' to rerun these tests and create the
10952 # libtool script then.
10953 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10954 if test -f "$ltmain_in"; then
10955 test -f Makefile && make "$ltmain"
10961 ac_cpp='$CPP $CPPFLAGS'
10962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10969 # Check whether --with-tags or --without-tags was given.
10970 if test "${with_tags+set}" = set; then
10971 withval="$with_tags"
10972 tagnames="$withval"
10975 if test -f "$ltmain" && test -n "$tagnames"; then
10976 if test ! -f "${ofile}"; then
10977 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10978 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10981 if test -z "$LTCC"; then
10982 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10983 if test -z "$LTCC"; then
10984 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10985 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10987 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10988 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10992 # Extract list of available tagged configurations in $ofile.
10993 # Note that this assumes the entire list is on one line.
10994 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10997 for tagname in $tagnames; do
10999 # Check whether tagname contains only valid characters
11000 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11002 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11003 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11004 { (exit 1); exit 1; }; }
11008 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11010 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11011 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11012 { (exit 1); exit 1; }; }
11015 # Update the list of available tags.
11016 if test -n "$tagname"; then
11017 echo appending configuration tag \"$tagname\" to $ofile
11021 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11022 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11023 (test "X$CXX" != "Xg++"))) ; then
11031 if test -n "$F77" && test "X$F77" != "Xno"; then
11039 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11050 # Source file extension for RC test sources.
11053 # Object file extension for compiled RC test sources.
11057 # Code to be used in simple compile tests
11058 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11060 # Code to be used in simple link tests
11061 lt_simple_link_test_code="$lt_simple_compile_test_code"
11063 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11065 # If no C compiler was specified, use CC.
11068 # Allow CC to be a program name with arguments.
11072 # save warnings/boilerplate of simple test code
11073 ac_outfile=conftest.$ac_objext
11074 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11075 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11076 _lt_compiler_boilerplate=`cat conftest.err`
11079 ac_outfile=conftest.$ac_objext
11080 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11081 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11082 _lt_linker_boilerplate=`cat conftest.err`
11086 # Allow CC to be a program name with arguments.
11091 for cc_temp in $compiler""; do
11093 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11094 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11099 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11101 lt_cv_prog_compiler_c_o_RC=yes
11103 # The else clause should only fire when bootstrapping the
11104 # libtool distribution, otherwise you forgot to ship ltmain.sh
11105 # with your package, and you will get complaints that there are
11106 # no rules to generate ltmain.sh.
11107 if test -f "$ltmain"; then
11108 # See if we are running on zsh, and set the options which allow our commands through
11109 # without removal of \ escapes.
11110 if test -n "${ZSH_VERSION+set}" ; then
11111 setopt NO_GLOB_SUBST
11113 # Now quote all the things that may contain metacharacters while being
11114 # careful not to overquote the AC_SUBSTed values. We take copies of the
11115 # variables and quote the copies for generation of the libtool script.
11116 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11118 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11119 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11120 deplibs_check_method reload_flag reload_cmds need_locks \
11121 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11122 lt_cv_sys_global_symbol_to_c_name_address \
11123 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11124 old_postinstall_cmds old_postuninstall_cmds \
11128 lt_prog_compiler_wl_RC \
11129 lt_prog_compiler_pic_RC \
11130 lt_prog_compiler_static_RC \
11131 lt_prog_compiler_no_builtin_flag_RC \
11132 export_dynamic_flag_spec_RC \
11133 thread_safe_flag_spec_RC \
11134 whole_archive_flag_spec_RC \
11135 enable_shared_with_static_runtimes_RC \
11136 old_archive_cmds_RC \
11137 old_archive_from_new_cmds_RC \
11138 predep_objects_RC \
11139 postdep_objects_RC \
11142 compiler_lib_search_path_RC \
11144 archive_expsym_cmds_RC \
11145 postinstall_cmds_RC \
11146 postuninstall_cmds_RC \
11147 old_archive_from_expsyms_cmds_RC \
11148 allow_undefined_flag_RC \
11149 no_undefined_flag_RC \
11150 export_symbols_cmds_RC \
11151 hardcode_libdir_flag_spec_RC \
11152 hardcode_libdir_flag_spec_ld_RC \
11153 hardcode_libdir_separator_RC \
11154 hardcode_automatic_RC \
11156 module_expsym_cmds_RC \
11157 lt_cv_prog_compiler_c_o_RC \
11158 exclude_expsyms_RC \
11159 include_expsyms_RC; do
11162 old_archive_cmds_RC | \
11163 old_archive_from_new_cmds_RC | \
11164 archive_cmds_RC | \
11165 archive_expsym_cmds_RC | \
11167 module_expsym_cmds_RC | \
11168 old_archive_from_expsyms_cmds_RC | \
11169 export_symbols_cmds_RC | \
11170 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11171 postinstall_cmds | postuninstall_cmds | \
11172 old_postinstall_cmds | old_postuninstall_cmds | \
11173 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11174 # Double-quote double-evaled strings.
11175 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11178 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11184 *'\$0 --fallback-echo"')
11185 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11191 cat <<__EOF__ >> "$cfgfile"
11192 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11194 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11196 # Shell to use when invoking shell scripts.
11199 # Whether or not to build shared libraries.
11200 build_libtool_libs=$enable_shared
11202 # Whether or not to build static libraries.
11203 build_old_libs=$enable_static
11205 # Whether or not to add -lc for building shared libraries.
11206 build_libtool_need_lc=$archive_cmds_need_lc_RC
11208 # Whether or not to disallow shared libs when runtime libs are static
11209 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11211 # Whether or not to optimize for fast installation.
11212 fast_install=$enable_fast_install
11215 host_alias=$host_alias
11219 # The build system.
11220 build_alias=$build_alias
11224 # An echo program that does not interpret backslashes.
11229 AR_FLAGS=$lt_AR_FLAGS
11234 # A language-specific compiler.
11237 # Is the compiler the GNU C compiler?
11243 # The linker used to build libraries.
11246 # Whether we need hard or soft links.
11249 # A BSD-compatible nm program.
11252 # A symbol stripping program
11255 # Used to examine libraries when file_magic_cmd begins "file"
11256 MAGIC_CMD=$MAGIC_CMD
11258 # Used on cygwin: DLL creation program.
11261 # Used on cygwin: object dumper.
11264 # Used on cygwin: assembler.
11267 # The name of the directory that contains temporary libtool files.
11270 # How to create reloadable object files.
11271 reload_flag=$lt_reload_flag
11272 reload_cmds=$lt_reload_cmds
11274 # How to pass a linker flag through the compiler.
11275 wl=$lt_lt_prog_compiler_wl_RC
11277 # Object file suffix (normally "o").
11278 objext="$ac_objext"
11280 # Old archive suffix (normally "a").
11283 # Shared library suffix (normally ".so").
11284 shrext_cmds='$shrext_cmds'
11286 # Executable file suffix (normally "").
11289 # Additional compiler flags for building library objects.
11290 pic_flag=$lt_lt_prog_compiler_pic_RC
11293 # What is the maximum length of a command?
11294 max_cmd_len=$lt_cv_sys_max_cmd_len
11296 # Does compiler simultaneously support -c and -o options?
11297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11299 # Must we lock files when doing compilation?
11300 need_locks=$lt_need_locks
11302 # Do we need the lib prefix for modules?
11303 need_lib_prefix=$need_lib_prefix
11305 # Do we need a version for libraries?
11306 need_version=$need_version
11308 # Whether dlopen is supported.
11309 dlopen_support=$enable_dlopen
11311 # Whether dlopen of programs is supported.
11312 dlopen_self=$enable_dlopen_self
11314 # Whether dlopen of statically linked programs is supported.
11315 dlopen_self_static=$enable_dlopen_self_static
11317 # Compiler flag to prevent dynamic linking.
11318 link_static_flag=$lt_lt_prog_compiler_static_RC
11320 # Compiler flag to turn off builtin functions.
11321 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11323 # Compiler flag to allow reflexive dlopens.
11324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11326 # Compiler flag to generate shared objects directly from archives.
11327 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11329 # Compiler flag to generate thread-safe objects.
11330 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11332 # Library versioning type.
11333 version_type=$version_type
11335 # Format of library name prefix.
11336 libname_spec=$lt_libname_spec
11338 # List of archive names. First name is the real one, the rest are links.
11339 # The last name is the one that the linker finds with -lNAME.
11340 library_names_spec=$lt_library_names_spec
11342 # The coded name of the library, if different from the real name.
11343 soname_spec=$lt_soname_spec
11345 # Commands used to build and install an old-style archive.
11347 old_archive_cmds=$lt_old_archive_cmds_RC
11348 old_postinstall_cmds=$lt_old_postinstall_cmds
11349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11351 # Create an old-style archive from a shared archive.
11352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11354 # Create a temporary old-style archive to link instead of a shared archive.
11355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11357 # Commands used to build and install a shared archive.
11358 archive_cmds=$lt_archive_cmds_RC
11359 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11360 postinstall_cmds=$lt_postinstall_cmds
11361 postuninstall_cmds=$lt_postuninstall_cmds
11363 # Commands used to build a loadable module (assumed same as above if empty)
11364 module_cmds=$lt_module_cmds_RC
11365 module_expsym_cmds=$lt_module_expsym_cmds_RC
11367 # Commands to strip libraries.
11368 old_striplib=$lt_old_striplib
11369 striplib=$lt_striplib
11371 # Dependencies to place before the objects being linked to create a
11373 predep_objects=$lt_predep_objects_RC
11375 # Dependencies to place after the objects being linked to create a
11377 postdep_objects=$lt_postdep_objects_RC
11379 # Dependencies to place before the objects being linked to create a
11381 predeps=$lt_predeps_RC
11383 # Dependencies to place after the objects being linked to create a
11385 postdeps=$lt_postdeps_RC
11387 # The library search path used internally by the compiler when linking
11388 # a shared library.
11389 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11391 # Method to check whether dependent libraries are shared objects.
11392 deplibs_check_method=$lt_deplibs_check_method
11394 # Command to use when deplibs_check_method == file_magic.
11395 file_magic_cmd=$lt_file_magic_cmd
11397 # Flag that allows shared libraries with undefined symbols to be built.
11398 allow_undefined_flag=$lt_allow_undefined_flag_RC
11400 # Flag that forces no undefined symbols.
11401 no_undefined_flag=$lt_no_undefined_flag_RC
11403 # Commands used to finish a libtool library installation in a directory.
11404 finish_cmds=$lt_finish_cmds
11406 # Same as above, but a single script fragment to be evaled but not shown.
11407 finish_eval=$lt_finish_eval
11409 # Take the output of nm and produce a listing of raw symbols and C names.
11410 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11412 # Transform the output of nm in a proper C declaration
11413 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11415 # Transform the output of nm in a C name address pair
11416 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11418 # This is the shared library runtime path variable.
11419 runpath_var=$runpath_var
11421 # This is the shared library path variable.
11422 shlibpath_var=$shlibpath_var
11424 # Is shlibpath searched before the hard-coded library search path?
11425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11427 # How to hardcode a shared library path into an executable.
11428 hardcode_action=$hardcode_action_RC
11430 # Whether we should hardcode library paths into libraries.
11431 hardcode_into_libs=$hardcode_into_libs
11433 # Flag to hardcode \$libdir into a binary during linking.
11434 # This must work even if \$libdir does not exist.
11435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11437 # If ld is used when linking, flag to hardcode \$libdir into
11438 # a binary during linking. This must work even if \$libdir does
11440 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11442 # Whether we need a single -rpath flag with a separated argument.
11443 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11445 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11446 # resulting binary.
11447 hardcode_direct=$hardcode_direct_RC
11449 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11450 # resulting binary.
11451 hardcode_minus_L=$hardcode_minus_L_RC
11453 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11454 # the resulting binary.
11455 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11457 # Set to yes if building a shared library automatically hardcodes DIR into the library
11458 # and all subsequent libraries and executables linked against it.
11459 hardcode_automatic=$hardcode_automatic_RC
11461 # Variables whose values should be saved in libtool wrapper scripts and
11462 # restored at relink time.
11463 variables_saved_for_relink="$variables_saved_for_relink"
11465 # Whether libtool must link a program against all its dependency libraries.
11466 link_all_deplibs=$link_all_deplibs_RC
11468 # Compile-time system search path for libraries
11469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11471 # Run-time system search path for libraries
11472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11474 # Fix the shell variable \$srcfile for the compiler.
11475 fix_srcfile_path="$fix_srcfile_path_RC"
11477 # Set to yes if exported symbols are required.
11478 always_export_symbols=$always_export_symbols_RC
11480 # The commands to list exported symbols.
11481 export_symbols_cmds=$lt_export_symbols_cmds_RC
11483 # The commands to extract the exported symbol list from a shared archive.
11484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11486 # Symbols that should not be listed in the preloaded symbols.
11487 exclude_expsyms=$lt_exclude_expsyms_RC
11489 # Symbols that must always be exported.
11490 include_expsyms=$lt_include_expsyms_RC
11492 # ### END LIBTOOL TAG CONFIG: $tagname
11498 # If there is no Makefile yet, we rely on a make rule to execute
11499 # `config.status --recheck' to rerun these tests and create the
11500 # libtool script then.
11501 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11502 if test -f "$ltmain_in"; then
11503 test -f Makefile && make "$ltmain"
11509 ac_cpp='$CPP $CPPFLAGS'
11510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11519 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11520 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11521 { (exit 1); exit 1; }; }
11525 # Append the new tag name to the list of available tags.
11526 if test -n "$tagname" ; then
11527 available_tags="$available_tags $tagname"
11533 # Now substitute the updated list of available tags.
11534 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11535 mv "${ofile}T" "$ofile"
11539 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11540 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11541 { (exit 1); exit 1; }; }
11547 # This can be used to rebuild libtool when needed
11548 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11550 # Always use our own libtool.
11551 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11553 # Prevent multiple expansion
11565 if test $ol_enable_perl != no ; then
11566 # Extract the first word of "perl", so it can be a program name with args.
11567 set dummy perl; ac_word=$2
11568 echo "$as_me:$LINENO: checking for $ac_word" >&5
11569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11570 if test "${ac_cv_path_PERLBIN+set}" = set; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579 for as_dir in $PATH
11582 test -z "$as_dir" && as_dir=.
11583 for ac_exec_ext in '' $ac_executable_extensions; do
11584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11585 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11596 PERLBIN=$ac_cv_path_PERLBIN
11598 if test -n "$PERLBIN"; then
11599 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11600 echo "${ECHO_T}$PERLBIN" >&6
11602 echo "$as_me:$LINENO: result: no" >&5
11603 echo "${ECHO_T}no" >&6
11607 if test "no$PERLBIN" = "no" ; then
11608 if test $ol_enable_perl = yes ; then
11609 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11610 echo "$as_me: error: could not locate perl" >&2;}
11611 { (exit 1); exit 1; }; }
11615 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11616 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11618 if test x"$ol_enable_perl" = "xyes" ; then
11619 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11621 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11628 ac_cpp='$CPP $CPPFLAGS'
11629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11632 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11633 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11634 # On Suns, sometimes $CPP names a directory.
11635 if test -n "$CPP" && test -d "$CPP"; then
11638 if test -z "$CPP"; then
11639 if test "${ac_cv_prog_CPP+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 # Double quotes because CPP needs to be expanded
11643 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11645 ac_preproc_ok=false
11646 for ac_c_preproc_warn_flag in '' yes
11648 # Use a header file that comes with gcc, so configuring glibc
11649 # with a fresh cross-compiler works.
11650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11651 # <limits.h> exists even on freestanding compilers.
11652 # On the NeXT, cc -E runs the code through the compiler's parser,
11653 # not just through cpp. "Syntax error" is here to catch this case.
11654 cat >conftest.$ac_ext <<_ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11661 # include <limits.h>
11663 # include <assert.h>
11667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11670 grep -v '^ *+' conftest.er1 >conftest.err
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } >/dev/null; then
11675 if test -s conftest.err; then
11676 ac_cpp_err=$ac_c_preproc_warn_flag
11677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11684 if test -z "$ac_cpp_err"; then
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11690 # Broken: fails on valid input.
11693 rm -f conftest.err conftest.$ac_ext
11695 # OK, works on sane cases. Now check whether non-existent headers
11696 # can be detected and how.
11697 cat >conftest.$ac_ext <<_ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h. */
11703 #include <ac_nonexistent.h>
11705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11708 grep -v '^ *+' conftest.er1 >conftest.err
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } >/dev/null; then
11713 if test -s conftest.err; then
11714 ac_cpp_err=$ac_c_preproc_warn_flag
11715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11722 if test -z "$ac_cpp_err"; then
11723 # Broken: success on invalid input.
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11729 # Passes both tests.
11733 rm -f conftest.err conftest.$ac_ext
11736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11737 rm -f conftest.err conftest.$ac_ext
11738 if $ac_preproc_ok; then
11743 ac_cv_prog_CPP=$CPP
11746 CPP=$ac_cv_prog_CPP
11748 ac_cv_prog_CPP=$CPP
11750 echo "$as_me:$LINENO: result: $CPP" >&5
11751 echo "${ECHO_T}$CPP" >&6
11752 ac_preproc_ok=false
11753 for ac_c_preproc_warn_flag in '' yes
11755 # Use a header file that comes with gcc, so configuring glibc
11756 # with a fresh cross-compiler works.
11757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758 # <limits.h> exists even on freestanding compilers.
11759 # On the NeXT, cc -E runs the code through the compiler's parser,
11760 # not just through cpp. "Syntax error" is here to catch this case.
11761 cat >conftest.$ac_ext <<_ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11768 # include <limits.h>
11770 # include <assert.h>
11774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } >/dev/null; then
11782 if test -s conftest.err; then
11783 ac_cpp_err=$ac_c_preproc_warn_flag
11784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11791 if test -z "$ac_cpp_err"; then
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 # Broken: fails on valid input.
11800 rm -f conftest.err conftest.$ac_ext
11802 # OK, works on sane cases. Now check whether non-existent headers
11803 # can be detected and how.
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 #include <ac_nonexistent.h>
11812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11815 grep -v '^ *+' conftest.er1 >conftest.err
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } >/dev/null; then
11820 if test -s conftest.err; then
11821 ac_cpp_err=$ac_c_preproc_warn_flag
11822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11829 if test -z "$ac_cpp_err"; then
11830 # Broken: success on invalid input.
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 # Passes both tests.
11840 rm -f conftest.err conftest.$ac_ext
11843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11844 rm -f conftest.err conftest.$ac_ext
11845 if $ac_preproc_ok; then
11848 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11849 See \`config.log' for more details." >&5
11850 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11851 See \`config.log' for more details." >&2;}
11852 { (exit 1); exit 1; }; }
11856 ac_cpp='$CPP $CPPFLAGS'
11857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11863 *mingw32* ) ac_cv_mingw32=yes ;;
11864 *cygwin* ) ac_cv_cygwin=yes ;;
11870 cat >>confdefs.h <<_ACEOF
11871 #define EXEEXT "${EXEEXT}"
11875 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11876 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11877 if test "${ac_cv_lib_be_be_app+set}" = set; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 ac_check_lib_save_LIBS=$LIBS
11881 LIBS="-lbe -lroot -lnet $LIBS"
11882 cat >conftest.$ac_ext <<_ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11889 /* Override any gcc2 internal prototype to avoid an error. */
11893 /* We use char because int might match the return type of a gcc2
11894 builtin and then its argument prototype would still apply. */
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11906 (eval $ac_link) 2>conftest.er1
11908 grep -v '^ *+' conftest.er1 >conftest.err
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag"
11914 || test ! -s conftest.err'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try='test -s conftest$ac_exeext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 ac_cv_lib_be_be_app=yes
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11931 ac_cv_lib_be_be_app=no
11933 rm -f conftest.err conftest.$ac_objext \
11934 conftest$ac_exeext conftest.$ac_ext
11935 LIBS=$ac_check_lib_save_LIBS
11937 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11938 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11939 if test $ac_cv_lib_be_be_app = yes; then
11940 LIBS="$LIBS -lbe -lroot -lnet"
11947 ac_cpp='$CPP $CPPFLAGS'
11948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11951 if test -n "$ac_tool_prefix"; then
11952 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11953 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11954 echo "$as_me:$LINENO: checking for $ac_word" >&5
11955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11956 if test "${ac_cv_prog_CC+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 if test -n "$CC"; then
11960 ac_cv_prog_CC="$CC" # Let the user override the test.
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11966 test -z "$as_dir" && as_dir=.
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11969 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11979 if test -n "$CC"; then
11980 echo "$as_me:$LINENO: result: $CC" >&5
11981 echo "${ECHO_T}$CC" >&6
11983 echo "$as_me:$LINENO: result: no" >&5
11984 echo "${ECHO_T}no" >&6
11988 if test -z "$ac_cv_prog_CC"; then
11990 # Extract the first word of "gcc", so it can be a program name with args.
11991 set dummy gcc; ac_word=$2
11992 echo "$as_me:$LINENO: checking for $ac_word" >&5
11993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 if test -n "$ac_ct_CC"; then
11998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001 for as_dir in $PATH
12004 test -z "$as_dir" && as_dir=.
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12007 ac_cv_prog_ac_ct_CC="gcc"
12008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12017 if test -n "$ac_ct_CC"; then
12018 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12019 echo "${ECHO_T}$ac_ct_CC" >&6
12021 echo "$as_me:$LINENO: result: no" >&5
12022 echo "${ECHO_T}no" >&6
12027 CC="$ac_cv_prog_CC"
12030 if test -z "$CC"; then
12031 if test -n "$ac_tool_prefix"; then
12032 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12033 set dummy ${ac_tool_prefix}cc; ac_word=$2
12034 echo "$as_me:$LINENO: checking for $ac_word" >&5
12035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12036 if test "${ac_cv_prog_CC+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12039 if test -n "$CC"; then
12040 ac_cv_prog_CC="$CC" # Let the user override the test.
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12049 ac_cv_prog_CC="${ac_tool_prefix}cc"
12050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12059 if test -n "$CC"; then
12060 echo "$as_me:$LINENO: result: $CC" >&5
12061 echo "${ECHO_T}$CC" >&6
12063 echo "$as_me:$LINENO: result: no" >&5
12064 echo "${ECHO_T}no" >&6
12068 if test -z "$ac_cv_prog_CC"; then
12070 # Extract the first word of "cc", so it can be a program name with args.
12071 set dummy cc; ac_word=$2
12072 echo "$as_me:$LINENO: checking for $ac_word" >&5
12073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 if test -n "$ac_ct_CC"; then
12078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH
12084 test -z "$as_dir" && as_dir=.
12085 for ac_exec_ext in '' $ac_executable_extensions; do
12086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087 ac_cv_prog_ac_ct_CC="cc"
12088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12097 if test -n "$ac_ct_CC"; then
12098 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12099 echo "${ECHO_T}$ac_ct_CC" >&6
12101 echo "$as_me:$LINENO: result: no" >&5
12102 echo "${ECHO_T}no" >&6
12107 CC="$ac_cv_prog_CC"
12111 if test -z "$CC"; then
12112 # Extract the first word of "cc", so it can be a program name with args.
12113 set dummy cc; ac_word=$2
12114 echo "$as_me:$LINENO: checking for $ac_word" >&5
12115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12116 if test "${ac_cv_prog_CC+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 if test -n "$CC"; then
12120 ac_cv_prog_CC="$CC" # Let the user override the test.
12122 ac_prog_rejected=no
12123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124 for as_dir in $PATH
12127 test -z "$as_dir" && as_dir=.
12128 for ac_exec_ext in '' $ac_executable_extensions; do
12129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12130 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12131 ac_prog_rejected=yes
12135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12141 if test $ac_prog_rejected = yes; then
12142 # We found a bogon in the path, so make sure we never use it.
12143 set dummy $ac_cv_prog_CC
12145 if test $# != 0; then
12146 # We chose a different compiler from the bogus one.
12147 # However, it has the same basename, so the bogon will be chosen
12148 # first if we set CC to just the basename; use the full file name.
12150 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12156 if test -n "$CC"; then
12157 echo "$as_me:$LINENO: result: $CC" >&5
12158 echo "${ECHO_T}$CC" >&6
12160 echo "$as_me:$LINENO: result: no" >&5
12161 echo "${ECHO_T}no" >&6
12165 if test -z "$CC"; then
12166 if test -n "$ac_tool_prefix"; then
12169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12171 echo "$as_me:$LINENO: checking for $ac_word" >&5
12172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12173 if test "${ac_cv_prog_CC+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 if test -n "$CC"; then
12177 ac_cv_prog_CC="$CC" # Let the user override the test.
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12183 test -z "$as_dir" && as_dir=.
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12186 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 if test -n "$CC"; then
12197 echo "$as_me:$LINENO: result: $CC" >&5
12198 echo "${ECHO_T}$CC" >&6
12200 echo "$as_me:$LINENO: result: no" >&5
12201 echo "${ECHO_T}no" >&6
12204 test -n "$CC" && break
12207 if test -z "$CC"; then
12211 # Extract the first word of "$ac_prog", so it can be a program name with args.
12212 set dummy $ac_prog; ac_word=$2
12213 echo "$as_me:$LINENO: checking for $ac_word" >&5
12214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 if test -n "$ac_ct_CC"; then
12219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222 for as_dir in $PATH
12225 test -z "$as_dir" && as_dir=.
12226 for ac_exec_ext in '' $ac_executable_extensions; do
12227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12228 ac_cv_prog_ac_ct_CC="$ac_prog"
12229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12238 if test -n "$ac_ct_CC"; then
12239 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12240 echo "${ECHO_T}$ac_ct_CC" >&6
12242 echo "$as_me:$LINENO: result: no" >&5
12243 echo "${ECHO_T}no" >&6
12246 test -n "$ac_ct_CC" && break
12255 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12256 See \`config.log' for more details." >&5
12257 echo "$as_me: error: no acceptable C compiler found in \$PATH
12258 See \`config.log' for more details." >&2;}
12259 { (exit 1); exit 1; }; }
12261 # Provide some information about the compiler.
12262 echo "$as_me:$LINENO:" \
12263 "checking for C compiler version" >&5
12264 ac_compiler=`set X $ac_compile; echo $2`
12265 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12266 (eval $ac_compiler --version </dev/null >&5) 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }
12270 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12271 (eval $ac_compiler -v </dev/null >&5) 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }
12275 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12276 (eval $ac_compiler -V </dev/null >&5) 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }
12281 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12282 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12283 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 cat >conftest.$ac_ext <<_ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12304 rm -f conftest.$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306 (eval $ac_compile) 2>conftest.er1
12308 grep -v '^ *+' conftest.er1 >conftest.err
12310 cat conftest.err >&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } &&
12313 { ac_try='test -z "$ac_c_werror_flag"
12314 || test ! -s conftest.err'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; } &&
12320 { ac_try='test -s conftest.$ac_objext'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 ac_compiler_gnu=yes
12328 echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12337 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12338 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12339 GCC=`test $ac_compiler_gnu = yes && echo yes`
12340 ac_test_CFLAGS=${CFLAGS+set}
12341 ac_save_CFLAGS=$CFLAGS
12343 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12344 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12345 if test "${ac_cv_prog_cc_g+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 cat >conftest.$ac_ext <<_ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12363 rm -f conftest.$ac_objext
12364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12365 (eval $ac_compile) 2>conftest.er1
12367 grep -v '^ *+' conftest.er1 >conftest.err
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_c_werror_flag"
12373 || test ! -s conftest.err'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest.$ac_objext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_cv_prog_cc_g=yes
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12394 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12395 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12396 if test "$ac_test_CFLAGS" = set; then
12397 CFLAGS=$ac_save_CFLAGS
12398 elif test $ac_cv_prog_cc_g = yes; then
12399 if test "$GCC" = yes; then
12405 if test "$GCC" = yes; then
12411 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12412 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12413 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 ac_cv_prog_cc_stdc=no
12418 cat >conftest.$ac_ext <<_ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12424 #include <stdarg.h>
12426 #include <sys/types.h>
12427 #include <sys/stat.h>
12428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12429 struct buf { int x; };
12430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12431 static char *e (p, i)
12437 static char *f (char * (*g) (char **, int), char **p, ...)
12442 s = g (p, va_arg (v,int));
12447 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12448 function prototypes and stuff, but not '\xHH' hex character constants.
12449 These don't provoke an error unfortunately, instead are silently treated
12450 as 'x'. The following induces an error, until -std1 is added to get
12451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12452 array size at least. It's necessary to write '\x00'==0 to get something
12453 that's true only with -std1. */
12454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12456 int test (int i, double x);
12457 struct s1 {int (*f) (int a);};
12458 struct s2 {int (*f) (double a);};
12459 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12465 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12470 # Don't try gcc -ansi; that turns off useful extensions and
12471 # breaks some systems' header files.
12472 # AIX -qlanglvl=ansi
12473 # Ultrix and OSF/1 -std1
12474 # HP-UX 10.20 and later -Ae
12475 # HP-UX older versions -Aa -D_HPUX_SOURCE
12476 # SVR4 -Xc -D__EXTENSIONS__
12477 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12479 CC="$ac_save_CC $ac_arg"
12480 rm -f conftest.$ac_objext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12482 (eval $ac_compile) 2>conftest.er1
12484 grep -v '^ *+' conftest.er1 >conftest.err
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -z "$ac_c_werror_flag"
12490 || test ! -s conftest.err'
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try='test -s conftest.$ac_objext'
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 ac_cv_prog_cc_stdc=$ac_arg
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12509 rm -f conftest.err conftest.$ac_objext
12511 rm -f conftest.$ac_ext conftest.$ac_objext
12516 case "x$ac_cv_prog_cc_stdc" in
12518 echo "$as_me:$LINENO: result: none needed" >&5
12519 echo "${ECHO_T}none needed" >&6 ;;
12521 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12522 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12523 CC="$CC $ac_cv_prog_cc_stdc" ;;
12526 # Some people use a C++ compiler to compile C. Since we use `exit',
12527 # in C++ we need to declare it. In case someone uses the same compiler
12528 # for both compiling C and C++ we need to have the C++ compiler decide
12529 # the declaration of exit, since it's the most demanding environment.
12530 cat >conftest.$ac_ext <<_ACEOF
12531 #ifndef __cplusplus
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12539 grep -v '^ *+' conftest.er1 >conftest.err
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
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); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 for ac_declaration in \
12559 'extern "C" void std::exit (int) throw (); using std::exit;' \
12560 'extern "C" void std::exit (int); using std::exit;' \
12561 'extern "C" void exit (int) throw ();' \
12562 'extern "C" void exit (int);' \
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12572 #include <stdlib.h>
12581 rm -f conftest.$ac_objext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12583 (eval $ac_compile) 2>conftest.er1
12585 grep -v '^ *+' conftest.er1 >conftest.err
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -z "$ac_c_werror_flag"
12591 || test ! -s conftest.err'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try='test -s conftest.$ac_objext'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12611 cat >conftest.$ac_ext <<_ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12626 rm -f conftest.$ac_objext
12627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12628 (eval $ac_compile) 2>conftest.er1
12630 grep -v '^ *+' conftest.er1 >conftest.err
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } &&
12635 { ac_try='test -z "$ac_c_werror_flag"
12636 || test ! -s conftest.err'
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; } &&
12642 { ac_try='test -s conftest.$ac_objext'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12650 echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12657 if test -n "$ac_declaration"; then
12658 echo '#ifdef __cplusplus' >>confdefs.h
12659 echo $ac_declaration >>confdefs.h
12660 echo '#endif' >>confdefs.h
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12670 ac_cpp='$CPP $CPPFLAGS'
12671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12675 depcc="$CC" am_compiler_list=
12677 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12678 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12679 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12683 # We make a subdir and do the tests there. Otherwise we can end up
12684 # making bogus files that we don't know about and never remove. For
12685 # instance it was reported that on HP-UX the gcc test will end up
12686 # making a dummy file named `D' -- because `-MD' means `put the output
12689 # Copy depcomp to subdir because otherwise we won't find it if we're
12690 # using a relative directory.
12691 cp "$am_depcomp" conftest.dir
12693 # We will build objects and dependencies in a subdirectory because
12694 # it helps to detect inapplicable dependency modes. For instance
12695 # both Tru64's cc and ICC support -MD to output dependencies as a
12696 # side effect of compilation, but ICC will put the dependencies in
12697 # the current directory while Tru64 will put them in the object
12701 am_cv_CC_dependencies_compiler_type=none
12702 if test "$am_compiler_list" = ""; then
12703 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12705 for depmode in $am_compiler_list; do
12706 # Setup a source with many dependencies, because some compilers
12707 # like to wrap large dependency lists on column 80 (with \), and
12708 # we should not choose a depcomp mode which is confused by this.
12710 # We need to recreate these files for each test, as the compiler may
12711 # overwrite some of them when testing with obscure command lines.
12712 # This happens at least with the AIX C compiler.
12714 for i in 1 2 3 4 5 6; do
12715 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12716 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12717 # Solaris 8's {/usr,}/bin/sh.
12718 touch sub/conftst$i.h
12720 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12724 # after this tag, mechanisms are not by side-effect, so they'll
12725 # only be used when explicitly requested
12726 if test "x$enable_dependency_tracking" = xyes; then
12734 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12735 # mode. It turns out that the SunPro C++ compiler does not properly
12736 # handle `-M -o', and we need to detect this.
12737 if depmode=$depmode \
12738 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12739 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12740 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12741 >/dev/null 2>conftest.err &&
12742 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12743 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12744 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12745 # icc doesn't choke on unknown options, it will just issue warnings
12746 # or remarks (even with -Werror). So we grep stderr for any message
12747 # that says an option was ignored or not supported.
12748 # When given -MP, icc 7.0 and 7.1 complain thusly:
12749 # icc: Command line warning: ignoring option '-M'; no argument required
12750 # The diagnosis changed in icc 8.0:
12751 # icc: Command line remark: option '-MP' not supported
12752 if (grep 'ignoring option' conftest.err ||
12753 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12754 am_cv_CC_dependencies_compiler_type=$depmode
12761 rm -rf conftest.dir
12763 am_cv_CC_dependencies_compiler_type=none
12767 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12768 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12769 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12774 test "x$enable_dependency_tracking" != xno \
12775 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12776 am__fastdepCC_TRUE=
12777 am__fastdepCC_FALSE='#'
12779 am__fastdepCC_TRUE='#'
12780 am__fastdepCC_FALSE=
12784 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12785 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12786 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12787 { (exit 1); exit 1; }; }
12790 # test for make depend flag
12793 if test -z "${MKDEP}"; then
12794 OL_MKDEP="${CC-cc}"
12795 if test -z "${MKDEP_FLAGS}"; then
12796 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12797 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12798 if test "${ol_cv_mkdep+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12803 for flag in "-M" "-xM"; do
12804 cat > conftest.c <<EOF
12807 if { ac_try='$OL_MKDEP $flag conftest.c'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; } \
12813 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12815 if test ! -f conftest."${ac_object}" ; then
12817 OL_MKDEP_FLAGS="$flag"
12825 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12826 echo "${ECHO_T}$ol_cv_mkdep" >&6
12829 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12833 OL_MKDEP="${MKDEP}"
12834 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12839 if test "${ol_cv_mkdep}" = no ; then
12840 # this will soon become an error
12841 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12842 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12845 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12846 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12847 if test "${ac_cv_lib_s_afopen+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 ac_check_lib_save_LIBS=$LIBS
12852 cat >conftest.$ac_ext <<_ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12859 /* Override any gcc2 internal prototype to avoid an error. */
12863 /* We use char because int might match the return type of a gcc2
12864 builtin and then its argument prototype would still apply. */
12874 rm -f conftest.$ac_objext conftest$ac_exeext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>conftest.er1
12878 grep -v '^ *+' conftest.er1 >conftest.err
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_cv_lib_s_afopen=yes
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12901 ac_cv_lib_s_afopen=no
12903 rm -f conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12907 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12908 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12909 if test $ac_cv_lib_s_afopen = yes; then
12913 cat >>confdefs.h <<\_ACEOF
12914 #define HAVE_AIX_SECURITY 1
12923 ac_cv_func_getopt=no
12925 cat >>confdefs.h <<\_ACEOF
12926 #define BOTH_STRINGS_H 1
12933 WITH_MODULES_ENABLED=no
12934 if test $ol_enable_modules != no ; then
12936 for ac_header in ltdl.h
12938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12940 echo "$as_me:$LINENO: checking for $ac_header" >&5
12941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12948 # Is the header compilable?
12949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12951 cat >conftest.$ac_ext <<_ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 $ac_includes_default
12958 #include <$ac_header>
12960 rm -f conftest.$ac_objext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962 (eval $ac_compile) 2>conftest.er1
12964 grep -v '^ *+' conftest.er1 >conftest.err
12966 cat conftest.err >&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try='test -z "$ac_c_werror_flag"
12970 || test ! -s conftest.err'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; } &&
12976 { ac_try='test -s conftest.$ac_objext'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 ac_header_compiler=yes
12984 echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12987 ac_header_compiler=no
12989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12991 echo "${ECHO_T}$ac_header_compiler" >&6
12993 # Is the header present?
12994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12996 cat >conftest.$ac_ext <<_ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h. */
13002 #include <$ac_header>
13004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13007 grep -v '^ *+' conftest.er1 >conftest.err
13009 cat conftest.err >&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } >/dev/null; then
13012 if test -s conftest.err; then
13013 ac_cpp_err=$ac_c_preproc_warn_flag
13014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13021 if test -z "$ac_cpp_err"; then
13022 ac_header_preproc=yes
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13027 ac_header_preproc=no
13029 rm -f conftest.err conftest.$ac_ext
13030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13031 echo "${ECHO_T}$ac_header_preproc" >&6
13033 # So? What about this header?
13034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13040 ac_header_preproc=yes
13043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13057 ## --------------------------------------------- ##
13058 ## Report this to <http://www.openldap.org/its/> ##
13059 ## --------------------------------------------- ##
13062 sed "s/^/$as_me: WARNING: /" >&2
13065 echo "$as_me:$LINENO: checking for $ac_header" >&5
13066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 eval "$as_ac_Header=\$ac_header_preproc"
13072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13077 cat >>confdefs.h <<_ACEOF
13078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13086 if test $ac_cv_header_ltdl_h = no ; then
13087 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13088 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13089 { (exit 1); exit 1; }; }
13092 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13093 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13094 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 ac_check_lib_save_LIBS=$LIBS
13098 LIBS="-lltdl $LIBS"
13099 cat >conftest.$ac_ext <<_ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13106 /* Override any gcc2 internal prototype to avoid an error. */
13110 /* We use char because int might match the return type of a gcc2
13111 builtin and then its argument prototype would still apply. */
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123 (eval $ac_link) 2>conftest.er1
13125 grep -v '^ *+' conftest.er1 >conftest.err
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -z "$ac_c_werror_flag"
13131 || test ! -s conftest.err'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest$ac_exeext'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13143 ac_cv_lib_ltdl_lt_dlinit=yes
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13148 ac_cv_lib_ltdl_lt_dlinit=no
13150 rm -f conftest.err conftest.$ac_objext \
13151 conftest$ac_exeext conftest.$ac_ext
13152 LIBS=$ac_check_lib_save_LIBS
13154 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13155 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13156 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13158 MODULES_LIBS=-lltdl
13160 cat >>confdefs.h <<\_ACEOF
13161 #define HAVE_LIBLTDL 1
13168 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13169 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13170 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13171 { (exit 1); exit 1; }; }
13173 ol_link_modules=yes
13174 WITH_MODULES_ENABLED=yes
13177 for i in $Backends; do
13178 eval "ol_tmp=\$ol_enable_$i"
13179 if test $ol_tmp = mod ; then
13180 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13181 echo "$as_me: WARNING: building static $i backend" >&2;}
13182 eval "ol_enable_$i=yes"
13185 for i in $Overlays; do
13186 eval "ol_tmp=\$ol_enable_$i"
13187 if test $ol_tmp = mod ; then
13188 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13189 echo "$as_me: WARNING: building static $i overlay" >&2;}
13190 eval "ol_enable_$i=yes"
13196 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13197 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13198 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13210 #include <__ASCII__/generate_error.h>
13214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13217 grep -v '^ *+' conftest.er1 >conftest.err
13219 cat conftest.err >&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); } >/dev/null; then
13222 if test -s conftest.err; then
13223 ac_cpp_err=$ac_c_preproc_warn_flag
13224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13231 if test -z "$ac_cpp_err"; then
13232 ol_cv_cpp_ebcdic=yes
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ol_cv_cpp_ebcdic=no
13239 rm -f conftest.err conftest.$ac_ext
13241 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13242 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13243 if test $ol_cv_cpp_ebcdic = yes ; then
13245 cat >>confdefs.h <<\_ACEOF
13246 #define HAVE_EBCDIC 1
13251 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13252 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13253 if test "${ol_cv_header_stdc+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 cat >conftest.$ac_ext <<_ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13262 #include <stdlib.h>
13263 #include <stdarg.h>
13264 #include <string.h>
13267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13270 grep -v '^ *+' conftest.er1 >conftest.err
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } >/dev/null; then
13275 if test -s conftest.err; then
13276 ac_cpp_err=$ac_c_preproc_warn_flag
13277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13284 if test -z "$ac_cpp_err"; then
13285 ol_cv_header_stdc=yes
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13290 ol_cv_header_stdc=no
13292 rm -f conftest.err conftest.$ac_ext
13294 if test $ol_cv_header_stdc = yes; then
13295 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13296 cat >conftest.$ac_ext <<_ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 #include <string.h>
13305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13306 $EGREP "memchr" >/dev/null 2>&1; then
13309 ol_cv_header_stdc=no
13315 if test $ol_cv_header_stdc = yes; then
13316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13317 cat >conftest.$ac_ext <<_ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13323 #include <stdlib.h>
13326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13327 $EGREP "free" >/dev/null 2>&1; then
13330 ol_cv_header_stdc=no
13336 if test $ol_cv_header_stdc = yes; then
13337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13338 if test "$cross_compiling" = yes; then
13341 cat >conftest.$ac_ext <<_ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13348 #ifndef HAVE_EBCDIC
13349 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13350 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13352 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13353 || ('j' <= (c) && (c) <= 'r') \
13354 || ('s' <= (c) && (c) <= 'z'))
13355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13358 int main () { int i; for (i = 0; i < 256; i++)
13359 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13363 rm -f conftest$ac_exeext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13365 (eval $ac_link) 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13376 echo "$as_me: program exited with status $ac_status" >&5
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13380 ( exit $ac_status )
13381 ol_cv_header_stdc=no
13383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13387 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13388 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13389 if test $ol_cv_header_stdc = yes; then
13390 cat >>confdefs.h <<\_ACEOF
13391 #define STDC_HEADERS 1
13395 ac_cv_header_stdc=disable
13398 if test $ol_cv_header_stdc != yes; then
13399 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13400 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13408 ac_header_dirent=no
13409 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13410 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13411 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13412 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 cat >conftest.$ac_ext <<_ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13422 #include <sys/types.h>
13434 rm -f conftest.$ac_objext
13435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13436 (eval $ac_compile) 2>conftest.er1
13438 grep -v '^ *+' conftest.er1 >conftest.err
13440 cat conftest.err >&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try='test -z "$ac_c_werror_flag"
13444 || test ! -s conftest.err'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; } &&
13450 { ac_try='test -s conftest.$ac_objext'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 eval "$as_ac_Header=yes"
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13461 eval "$as_ac_Header=no"
13463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13468 cat >>confdefs.h <<_ACEOF
13469 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13472 ac_header_dirent=$ac_hdr; break
13476 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13477 if test $ac_header_dirent = dirent.h; then
13478 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13479 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13480 if test "${ac_cv_search_opendir+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 ac_func_search_save_LIBS=$LIBS
13484 ac_cv_search_opendir=no
13485 cat >conftest.$ac_ext <<_ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13492 /* Override any gcc2 internal prototype to avoid an error. */
13496 /* We use char because int might match the return type of a gcc2
13497 builtin and then its argument prototype would still apply. */
13507 rm -f conftest.$ac_objext conftest$ac_exeext
13508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13509 (eval $ac_link) 2>conftest.er1
13511 grep -v '^ *+' conftest.er1 >conftest.err
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } &&
13516 { ac_try='test -z "$ac_c_werror_flag"
13517 || test ! -s conftest.err'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; } &&
13523 { ac_try='test -s conftest$ac_exeext'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13529 ac_cv_search_opendir="none required"
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13535 rm -f conftest.err conftest.$ac_objext \
13536 conftest$ac_exeext conftest.$ac_ext
13537 if test "$ac_cv_search_opendir" = no; then
13538 for ac_lib in dir; do
13539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13540 cat >conftest.$ac_ext <<_ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13547 /* Override any gcc2 internal prototype to avoid an error. */
13551 /* We use char because int might match the return type of a gcc2
13552 builtin and then its argument prototype would still apply. */
13562 rm -f conftest.$ac_objext conftest$ac_exeext
13563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13564 (eval $ac_link) 2>conftest.er1
13566 grep -v '^ *+' conftest.er1 >conftest.err
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try='test -z "$ac_c_werror_flag"
13572 || test ! -s conftest.err'
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); }; } &&
13578 { ac_try='test -s conftest$ac_exeext'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 ac_cv_search_opendir="-l$ac_lib"
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13591 rm -f conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
13595 LIBS=$ac_func_search_save_LIBS
13597 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13598 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13599 if test "$ac_cv_search_opendir" != no; then
13600 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13605 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13606 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13607 if test "${ac_cv_search_opendir+set}" = set; then
13608 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 ac_func_search_save_LIBS=$LIBS
13611 ac_cv_search_opendir=no
13612 cat >conftest.$ac_ext <<_ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13619 /* Override any gcc2 internal prototype to avoid an error. */
13623 /* We use char because int might match the return type of a gcc2
13624 builtin and then its argument prototype would still apply. */
13634 rm -f conftest.$ac_objext conftest$ac_exeext
13635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13636 (eval $ac_link) 2>conftest.er1
13638 grep -v '^ *+' conftest.er1 >conftest.err
13640 cat conftest.err >&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
13643 { ac_try='test -z "$ac_c_werror_flag"
13644 || test ! -s conftest.err'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; } &&
13650 { ac_try='test -s conftest$ac_exeext'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_cv_search_opendir="none required"
13658 echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13662 rm -f conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
13664 if test "$ac_cv_search_opendir" = no; then
13665 for ac_lib in x; do
13666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13667 cat >conftest.$ac_ext <<_ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13674 /* Override any gcc2 internal prototype to avoid an error. */
13678 /* We use char because int might match the return type of a gcc2
13679 builtin and then its argument prototype would still apply. */
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13691 (eval $ac_link) 2>conftest.er1
13693 grep -v '^ *+' conftest.er1 >conftest.err
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try='test -z "$ac_c_werror_flag"
13699 || test ! -s conftest.err'
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); }; } &&
13705 { ac_try='test -s conftest$ac_exeext'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 ac_cv_search_opendir="-l$ac_lib"
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13718 rm -f conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
13722 LIBS=$ac_func_search_save_LIBS
13724 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13725 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13726 if test "$ac_cv_search_opendir" != no; then
13727 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13733 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13734 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13735 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13738 cat >conftest.$ac_ext <<_ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13744 #include <sys/types.h>
13745 #include <sys/wait.h>
13746 #ifndef WEXITSTATUS
13747 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13750 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13758 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13763 rm -f conftest.$ac_objext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13765 (eval $ac_compile) 2>conftest.er1
13767 grep -v '^ *+' conftest.er1 >conftest.err
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -z "$ac_c_werror_flag"
13773 || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest.$ac_objext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 ac_cv_header_sys_wait_h=yes
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 ac_cv_header_sys_wait_h=no
13792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13794 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13795 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13796 if test $ac_cv_header_sys_wait_h = yes; then
13798 cat >>confdefs.h <<\_ACEOF
13799 #define HAVE_SYS_WAIT_H 1
13804 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13805 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13806 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 cat >conftest.$ac_ext <<_ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13815 #include <sys/types.h>
13816 #include <termios.h>
13822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13823 $EGREP "yes" >/dev/null 2>&1; then
13824 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13826 ac_cv_sys_tiocgwinsz_in_termios_h=no
13831 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13832 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13834 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13835 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13836 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13837 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 cat >conftest.$ac_ext <<_ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 #include <sys/types.h>
13847 #include <sys/ioctl.h>
13853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13854 $EGREP "yes" >/dev/null 2>&1; then
13855 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13857 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13862 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13863 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13865 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13867 cat >>confdefs.h <<\_ACEOF
13868 #define GWINSZ_IN_SYS_IOCTL 1
13970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13972 echo "$as_me:$LINENO: checking for $ac_header" >&5
13973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13980 # Is the header compilable?
13981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13983 cat >conftest.$ac_ext <<_ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h. */
13989 $ac_includes_default
13990 #include <$ac_header>
13992 rm -f conftest.$ac_objext
13993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13994 (eval $ac_compile) 2>conftest.er1
13996 grep -v '^ *+' conftest.er1 >conftest.err
13998 cat conftest.err >&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } &&
14001 { ac_try='test -z "$ac_c_werror_flag"
14002 || test ! -s conftest.err'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; } &&
14008 { ac_try='test -s conftest.$ac_objext'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 ac_header_compiler=yes
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14019 ac_header_compiler=no
14021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14023 echo "${ECHO_T}$ac_header_compiler" >&6
14025 # Is the header present?
14026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14027 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
14036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14039 grep -v '^ *+' conftest.er1 >conftest.err
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } >/dev/null; then
14044 if test -s conftest.err; then
14045 ac_cpp_err=$ac_c_preproc_warn_flag
14046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14053 if test -z "$ac_cpp_err"; then
14054 ac_header_preproc=yes
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14059 ac_header_preproc=no
14061 rm -f conftest.err conftest.$ac_ext
14062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14063 echo "${ECHO_T}$ac_header_preproc" >&6
14065 # So? What about this header?
14066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14072 ac_header_preproc=yes
14075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14089 ## --------------------------------------------- ##
14090 ## Report this to <http://www.openldap.org/its/> ##
14091 ## --------------------------------------------- ##
14094 sed "s/^/$as_me: WARNING: /" >&2
14097 echo "$as_me:$LINENO: checking for $ac_header" >&5
14098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 eval "$as_ac_Header=\$ac_header_preproc"
14104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14109 cat >>confdefs.h <<_ACEOF
14110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14119 for ac_header in resolv.h
14121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14122 echo "$as_me:$LINENO: checking for $ac_header" >&5
14123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 cat >conftest.$ac_ext <<_ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 $ac_includes_default
14134 #include <netinet/in.h>
14137 #include <$ac_header>
14139 rm -f conftest.$ac_objext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14141 (eval $ac_compile) 2>conftest.er1
14143 grep -v '^ *+' conftest.er1 >conftest.err
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -z "$ac_c_werror_flag"
14149 || test ! -s conftest.err'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; } &&
14155 { ac_try='test -s conftest.$ac_objext'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 eval "$as_ac_Header=yes"
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 eval "$as_ac_Header=no"
14168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14173 cat >>confdefs.h <<_ACEOF
14174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14183 for ac_header in netinet/tcp.h
14185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14186 echo "$as_me:$LINENO: checking for $ac_header" >&5
14187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 cat >conftest.$ac_ext <<_ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 $ac_includes_default
14198 #include <netinet/in.h>
14201 #include <$ac_header>
14203 rm -f conftest.$ac_objext
14204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14205 (eval $ac_compile) 2>conftest.er1
14207 grep -v '^ *+' conftest.er1 >conftest.err
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } &&
14212 { ac_try='test -z "$ac_c_werror_flag"
14213 || test ! -s conftest.err'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; } &&
14219 { ac_try='test -s conftest.$ac_objext'
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
14225 eval "$as_ac_Header=yes"
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14230 eval "$as_ac_Header=no"
14232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14237 cat >>confdefs.h <<_ACEOF
14238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14247 for ac_header in sys/ucred.h
14249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14250 echo "$as_me:$LINENO: checking for $ac_header" >&5
14251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 cat >conftest.$ac_ext <<_ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14261 $ac_includes_default
14262 #ifdef HAVE_SYS_PARAM_H
14263 #include <sys/param.h>
14267 #include <$ac_header>
14269 rm -f conftest.$ac_objext
14270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14271 (eval $ac_compile) 2>conftest.er1
14273 grep -v '^ *+' conftest.er1 >conftest.err
14275 cat conftest.err >&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
14278 { ac_try='test -z "$ac_c_werror_flag"
14279 || test ! -s conftest.err'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest.$ac_objext'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 eval "$as_ac_Header=yes"
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14296 eval "$as_ac_Header=no"
14298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14303 cat >>confdefs.h <<_ACEOF
14304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14315 for ac_func in sigaction sigset
14317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14318 echo "$as_me:$LINENO: checking for $ac_func" >&5
14319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14320 if eval "test \"\${$as_ac_var+set}\" = set"; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14323 cat >conftest.$ac_ext <<_ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14331 #define $ac_func innocuous_$ac_func
14333 /* System header to define __stub macros and hopefully few prototypes,
14334 which can conflict with char $ac_func (); below.
14335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14336 <limits.h> exists even on freestanding compilers. */
14339 # include <limits.h>
14341 # include <assert.h>
14346 /* Override any gcc2 internal prototype to avoid an error. */
14351 /* We use char because int might match the return type of a gcc2
14352 builtin and then its argument prototype would still apply. */
14354 /* The GNU C library defines this for functions which it implements
14355 to always fail with ENOSYS. Some functions are actually named
14356 something starting with __ and the normal name is an alias. */
14357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14360 char (*f) () = $ac_func;
14369 return f != $ac_func;
14374 rm -f conftest.$ac_objext conftest$ac_exeext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14376 (eval $ac_link) 2>conftest.er1
14378 grep -v '^ *+' conftest.er1 >conftest.err
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -z "$ac_c_werror_flag"
14384 || test ! -s conftest.err'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } &&
14390 { ac_try='test -s conftest$ac_exeext'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396 eval "$as_ac_var=yes"
14398 echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14401 eval "$as_ac_var=no"
14403 rm -f conftest.err conftest.$ac_objext \
14404 conftest$ac_exeext conftest.$ac_ext
14406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14408 if test `eval echo '${'$as_ac_var'}'` = yes; then
14409 cat >>confdefs.h <<_ACEOF
14410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14417 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14419 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14420 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14421 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 ac_check_lib_save_LIBS=$LIBS
14426 cat >conftest.$ac_ext <<_ACEOF
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14433 /* Override any gcc2 internal prototype to avoid an error. */
14437 /* We use char because int might match the return type of a gcc2
14438 builtin and then its argument prototype would still apply. */
14448 rm -f conftest.$ac_objext conftest$ac_exeext
14449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14450 (eval $ac_link) 2>conftest.er1
14452 grep -v '^ *+' conftest.er1 >conftest.err
14454 cat conftest.err >&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); } &&
14457 { ac_try='test -z "$ac_c_werror_flag"
14458 || test ! -s conftest.err'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; } &&
14464 { ac_try='test -s conftest$ac_exeext'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14470 ac_cv_lib_V3_sigset=yes
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14475 ac_cv_lib_V3_sigset=no
14477 rm -f conftest.err conftest.$ac_objext \
14478 conftest$ac_exeext conftest.$ac_ext
14479 LIBS=$ac_check_lib_save_LIBS
14481 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14482 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14483 if test $ac_cv_lib_V3_sigset = yes; then
14484 cat >>confdefs.h <<_ACEOF
14485 #define HAVE_LIBV3 1
14494 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14495 echo "$as_me:$LINENO: checking for winsock" >&5
14496 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14497 if test "${ol_cv_winsock+set}" = set; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 for curlib in ws2_32 wsock32; do
14502 LIBS="$LIBS -l$curlib"
14503 cat >conftest.$ac_ext <<_ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14509 #include <winsock.h>
14516 select(0,NULL,NULL,NULL,NULL);
14518 gethostname(NULL,0);
14524 rm -f conftest.$ac_objext conftest$ac_exeext
14525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14526 (eval $ac_link) 2>conftest.er1
14528 grep -v '^ *+' conftest.er1 >conftest.err
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -z "$ac_c_werror_flag"
14534 || test ! -s conftest.err'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; } &&
14540 { ac_try='test -s conftest$ac_exeext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14553 rm -f conftest.err conftest.$ac_objext \
14554 conftest$ac_exeext conftest.$ac_ext
14556 if test $ol_cv_winsock = yes; then
14558 cat >>confdefs.h <<\_ACEOF
14559 #define HAVE_WINSOCK 1
14562 ac_cv_func_socket=yes
14563 ac_cv_func_select=yes
14564 ac_cv_func_closesocket=yes
14565 ac_cv_func_gethostname=yes
14566 if test $curlib = ws2_32; then
14567 ol_cv_winsock=winsock2
14569 cat >>confdefs.h <<\_ACEOF
14570 #define HAVE_WINSOCK2 1
14579 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14580 echo "${ECHO_T}$ol_cv_winsock" >&6
14584 echo "$as_me:$LINENO: checking for socket" >&5
14585 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14586 if test "${ac_cv_func_socket+set}" = set; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14589 cat >conftest.$ac_ext <<_ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14595 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14597 #define socket innocuous_socket
14599 /* System header to define __stub macros and hopefully few prototypes,
14600 which can conflict with char socket (); below.
14601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14602 <limits.h> exists even on freestanding compilers. */
14605 # include <limits.h>
14607 # include <assert.h>
14612 /* Override any gcc2 internal prototype to avoid an error. */
14617 /* We use char because int might match the return type of a gcc2
14618 builtin and then its argument prototype would still apply. */
14620 /* The GNU C library defines this for functions which it implements
14621 to always fail with ENOSYS. Some functions are actually named
14622 something starting with __ and the normal name is an alias. */
14623 #if defined (__stub_socket) || defined (__stub___socket)
14626 char (*f) () = socket;
14635 return f != socket;
14640 rm -f conftest.$ac_objext conftest$ac_exeext
14641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14642 (eval $ac_link) 2>conftest.er1
14644 grep -v '^ *+' conftest.er1 >conftest.err
14646 cat conftest.err >&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } &&
14649 { ac_try='test -z "$ac_c_werror_flag"
14650 || test ! -s conftest.err'
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; } &&
14656 { ac_try='test -s conftest$ac_exeext'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; }; then
14662 ac_cv_func_socket=yes
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 ac_cv_func_socket=no
14669 rm -f conftest.err conftest.$ac_objext \
14670 conftest$ac_exeext conftest.$ac_ext
14672 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14673 echo "${ECHO_T}$ac_cv_func_socket" >&6
14674 if test $ac_cv_func_socket = yes; then
14679 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14680 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14681 if test "${ac_cv_lib_socket_main+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 ac_check_lib_save_LIBS=$LIBS
14685 LIBS="-lsocket $LIBS"
14686 cat >conftest.$ac_ext <<_ACEOF
14689 cat confdefs.h >>conftest.$ac_ext
14690 cat >>conftest.$ac_ext <<_ACEOF
14691 /* end confdefs.h. */
14702 rm -f conftest.$ac_objext conftest$ac_exeext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14704 (eval $ac_link) 2>conftest.er1
14706 grep -v '^ *+' conftest.er1 >conftest.err
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
14711 { ac_try='test -z "$ac_c_werror_flag"
14712 || test ! -s conftest.err'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; } &&
14718 { ac_try='test -s conftest$ac_exeext'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_cv_lib_socket_main=yes
14726 echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14729 ac_cv_lib_socket_main=no
14731 rm -f conftest.err conftest.$ac_objext \
14732 conftest$ac_exeext conftest.$ac_ext
14733 LIBS=$ac_check_lib_save_LIBS
14735 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14736 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14737 if test $ac_cv_lib_socket_main = yes; then
14738 cat >>confdefs.h <<_ACEOF
14739 #define HAVE_LIBSOCKET 1
14742 LIBS="-lsocket $LIBS"
14747 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14748 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14749 if test "${ac_cv_lib_net_main+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 ac_check_lib_save_LIBS=$LIBS
14754 cat >conftest.$ac_ext <<_ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14770 rm -f conftest.$ac_objext conftest$ac_exeext
14771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14772 (eval $ac_link) 2>conftest.er1
14774 grep -v '^ *+' conftest.er1 >conftest.err
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
14779 { ac_try='test -z "$ac_c_werror_flag"
14780 || test ! -s conftest.err'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; } &&
14786 { ac_try='test -s conftest$ac_exeext'
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; }; then
14792 ac_cv_lib_net_main=yes
14794 echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14797 ac_cv_lib_net_main=no
14799 rm -f conftest.err conftest.$ac_objext \
14800 conftest$ac_exeext conftest.$ac_ext
14801 LIBS=$ac_check_lib_save_LIBS
14803 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14804 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14805 if test $ac_cv_lib_net_main = yes; then
14806 cat >>confdefs.h <<_ACEOF
14807 #define HAVE_LIBNET 1
14815 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14816 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14817 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 ac_check_lib_save_LIBS=$LIBS
14821 LIBS="-lnsl_s $LIBS"
14822 cat >conftest.$ac_ext <<_ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14838 rm -f conftest.$ac_objext conftest$ac_exeext
14839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14840 (eval $ac_link) 2>conftest.er1
14842 grep -v '^ *+' conftest.er1 >conftest.err
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } &&
14847 { ac_try='test -z "$ac_c_werror_flag"
14848 || test ! -s conftest.err'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; } &&
14854 { ac_try='test -s conftest$ac_exeext'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14860 ac_cv_lib_nsl_s_main=yes
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14865 ac_cv_lib_nsl_s_main=no
14867 rm -f conftest.err conftest.$ac_objext \
14868 conftest$ac_exeext conftest.$ac_ext
14869 LIBS=$ac_check_lib_save_LIBS
14871 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14872 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14873 if test $ac_cv_lib_nsl_s_main = yes; then
14874 cat >>confdefs.h <<_ACEOF
14875 #define HAVE_LIBNSL_S 1
14878 LIBS="-lnsl_s $LIBS"
14883 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14884 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14885 if test "${ac_cv_lib_nsl_main+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 ac_check_lib_save_LIBS=$LIBS
14890 cat >conftest.$ac_ext <<_ACEOF
14893 cat confdefs.h >>conftest.$ac_ext
14894 cat >>conftest.$ac_ext <<_ACEOF
14895 /* end confdefs.h. */
14906 rm -f conftest.$ac_objext conftest$ac_exeext
14907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14908 (eval $ac_link) 2>conftest.er1
14910 grep -v '^ *+' conftest.er1 >conftest.err
14912 cat conftest.err >&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -z "$ac_c_werror_flag"
14916 || test ! -s conftest.err'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; } &&
14922 { ac_try='test -s conftest$ac_exeext'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 ac_cv_lib_nsl_main=yes
14930 echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14933 ac_cv_lib_nsl_main=no
14935 rm -f conftest.err conftest.$ac_objext \
14936 conftest$ac_exeext conftest.$ac_ext
14937 LIBS=$ac_check_lib_save_LIBS
14939 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14940 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14941 if test $ac_cv_lib_nsl_main = yes; then
14942 cat >>confdefs.h <<_ACEOF
14943 #define HAVE_LIBNSL 1
14951 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14952 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14953 if test "${ac_cv_lib_inet_socket+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 ac_check_lib_save_LIBS=$LIBS
14957 LIBS="-linet $LIBS"
14958 cat >conftest.$ac_ext <<_ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14965 /* Override any gcc2 internal prototype to avoid an error. */
14969 /* We use char because int might match the return type of a gcc2
14970 builtin and then its argument prototype would still apply. */
14980 rm -f conftest.$ac_objext conftest$ac_exeext
14981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14982 (eval $ac_link) 2>conftest.er1
14984 grep -v '^ *+' conftest.er1 >conftest.err
14986 cat conftest.err >&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } &&
14989 { ac_try='test -z "$ac_c_werror_flag"
14990 || test ! -s conftest.err'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; } &&
14996 { ac_try='test -s conftest$ac_exeext'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; }; then
15002 ac_cv_lib_inet_socket=yes
15004 echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15007 ac_cv_lib_inet_socket=no
15009 rm -f conftest.err conftest.$ac_objext \
15010 conftest$ac_exeext conftest.$ac_ext
15011 LIBS=$ac_check_lib_save_LIBS
15013 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15014 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15015 if test $ac_cv_lib_inet_socket = yes; then
15016 cat >>confdefs.h <<_ACEOF
15017 #define HAVE_LIBINET 1
15020 LIBS="-linet $LIBS"
15025 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15026 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15027 if test "${ac_cv_lib_gen_main+set}" = set; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 ac_check_lib_save_LIBS=$LIBS
15032 cat >conftest.$ac_ext <<_ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15050 (eval $ac_link) 2>conftest.er1
15052 grep -v '^ *+' conftest.er1 >conftest.err
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -z "$ac_c_werror_flag"
15058 || test ! -s conftest.err'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest$ac_exeext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 ac_cv_lib_gen_main=yes
15072 echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15075 ac_cv_lib_gen_main=no
15077 rm -f conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
15079 LIBS=$ac_check_lib_save_LIBS
15081 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15082 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15083 if test $ac_cv_lib_gen_main = yes; then
15084 cat >>confdefs.h <<_ACEOF
15085 #define HAVE_LIBGEN 1
15096 echo "$as_me:$LINENO: checking for select" >&5
15097 echo $ECHO_N "checking for select... $ECHO_C" >&6
15098 if test "${ac_cv_func_select+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 cat >conftest.$ac_ext <<_ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15107 /* Define select to an innocuous variant, in case <limits.h> declares select.
15108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15109 #define select innocuous_select
15111 /* System header to define __stub macros and hopefully few prototypes,
15112 which can conflict with char select (); below.
15113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15114 <limits.h> exists even on freestanding compilers. */
15117 # include <limits.h>
15119 # include <assert.h>
15124 /* Override any gcc2 internal prototype to avoid an error. */
15129 /* We use char because int might match the return type of a gcc2
15130 builtin and then its argument prototype would still apply. */
15132 /* The GNU C library defines this for functions which it implements
15133 to always fail with ENOSYS. Some functions are actually named
15134 something starting with __ and the normal name is an alias. */
15135 #if defined (__stub_select) || defined (__stub___select)
15138 char (*f) () = select;
15147 return f != select;
15152 rm -f conftest.$ac_objext conftest$ac_exeext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15154 (eval $ac_link) 2>conftest.er1
15156 grep -v '^ *+' conftest.er1 >conftest.err
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } &&
15161 { ac_try='test -z "$ac_c_werror_flag"
15162 || test ! -s conftest.err'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try='test -s conftest$ac_exeext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_cv_func_select=yes
15176 echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15179 ac_cv_func_select=no
15181 rm -f conftest.err conftest.$ac_objext \
15182 conftest$ac_exeext conftest.$ac_ext
15184 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15185 echo "${ECHO_T}$ac_cv_func_select" >&6
15186 if test $ac_cv_func_select = yes; then
15189 { { echo "$as_me:$LINENO: error: select() required." >&5
15190 echo "$as_me: error: select() required." >&2;}
15191 { (exit 1); exit 1; }; }
15195 if test "${ac_cv_header_winsock_h}" != yes; then
15198 for ac_header in sys/select.h sys/socket.h
15200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15202 echo "$as_me:$LINENO: checking for $ac_header" >&5
15203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15210 # Is the header compilable?
15211 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15213 cat >conftest.$ac_ext <<_ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15219 $ac_includes_default
15220 #include <$ac_header>
15222 rm -f conftest.$ac_objext
15223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15224 (eval $ac_compile) 2>conftest.er1
15226 grep -v '^ *+' conftest.er1 >conftest.err
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -z "$ac_c_werror_flag"
15232 || test ! -s conftest.err'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; } &&
15238 { ac_try='test -s conftest.$ac_objext'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15244 ac_header_compiler=yes
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15249 ac_header_compiler=no
15251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15253 echo "${ECHO_T}$ac_header_compiler" >&6
15255 # Is the header present?
15256 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15258 cat >conftest.$ac_ext <<_ACEOF
15261 cat confdefs.h >>conftest.$ac_ext
15262 cat >>conftest.$ac_ext <<_ACEOF
15263 /* end confdefs.h. */
15264 #include <$ac_header>
15266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15269 grep -v '^ *+' conftest.er1 >conftest.err
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } >/dev/null; then
15274 if test -s conftest.err; then
15275 ac_cpp_err=$ac_c_preproc_warn_flag
15276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15283 if test -z "$ac_cpp_err"; then
15284 ac_header_preproc=yes
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15289 ac_header_preproc=no
15291 rm -f conftest.err conftest.$ac_ext
15292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15293 echo "${ECHO_T}$ac_header_preproc" >&6
15295 # So? What about this header?
15296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15302 ac_header_preproc=yes
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15319 ## --------------------------------------------- ##
15320 ## Report this to <http://www.openldap.org/its/> ##
15321 ## --------------------------------------------- ##
15324 sed "s/^/$as_me: WARNING: /" >&2
15327 echo "$as_me:$LINENO: checking for $ac_header" >&5
15328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 eval "$as_ac_Header=\$ac_header_preproc"
15334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15339 cat >>confdefs.h <<_ACEOF
15340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15347 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15348 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15349 if test "${ac_cv_func_select_args+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15352 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15353 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15354 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15355 cat >conftest.$ac_ext <<_ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 $ac_includes_default
15362 #if HAVE_SYS_SELECT_H
15363 # include <sys/select.h>
15365 #if HAVE_SYS_SOCKET_H
15366 # include <sys/socket.h>
15372 extern int select ($ac_arg1,
15373 $ac_arg234, $ac_arg234, $ac_arg234,
15379 rm -f conftest.$ac_objext
15380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15381 (eval $ac_compile) 2>conftest.er1
15383 grep -v '^ *+' conftest.er1 >conftest.err
15385 cat conftest.err >&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } &&
15388 { ac_try='test -z "$ac_c_werror_flag"
15389 || test ! -s conftest.err'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; } &&
15395 { ac_try='test -s conftest.$ac_objext'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; }; then
15401 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15403 echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15411 # Provide a safe default value.
15412 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15415 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15416 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15417 ac_save_IFS=$IFS; IFS=','
15418 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15422 cat >>confdefs.h <<_ACEOF
15423 #define SELECT_TYPE_ARG1 $1
15427 cat >>confdefs.h <<_ACEOF
15428 #define SELECT_TYPE_ARG234 ($2)
15432 cat >>confdefs.h <<_ACEOF
15433 #define SELECT_TYPE_ARG5 ($3)
15442 for ac_func in poll
15444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15445 echo "$as_me:$LINENO: checking for $ac_func" >&5
15446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15447 if eval "test \"\${$as_ac_var+set}\" = set"; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 cat >conftest.$ac_ext <<_ACEOF
15453 cat confdefs.h >>conftest.$ac_ext
15454 cat >>conftest.$ac_ext <<_ACEOF
15455 /* end confdefs.h. */
15456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15458 #define $ac_func innocuous_$ac_func
15460 /* System header to define __stub macros and hopefully few prototypes,
15461 which can conflict with char $ac_func (); below.
15462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15463 <limits.h> exists even on freestanding compilers. */
15466 # include <limits.h>
15468 # include <assert.h>
15473 /* Override any gcc2 internal prototype to avoid an error. */
15478 /* We use char because int might match the return type of a gcc2
15479 builtin and then its argument prototype would still apply. */
15481 /* The GNU C library defines this for functions which it implements
15482 to always fail with ENOSYS. Some functions are actually named
15483 something starting with __ and the normal name is an alias. */
15484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15487 char (*f) () = $ac_func;
15496 return f != $ac_func;
15501 rm -f conftest.$ac_objext conftest$ac_exeext
15502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15503 (eval $ac_link) 2>conftest.er1
15505 grep -v '^ *+' conftest.er1 >conftest.err
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
15510 { ac_try='test -z "$ac_c_werror_flag"
15511 || test ! -s conftest.err'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; } &&
15517 { ac_try='test -s conftest$ac_exeext'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15523 eval "$as_ac_var=yes"
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15528 eval "$as_ac_var=no"
15530 rm -f conftest.err conftest.$ac_objext \
15531 conftest$ac_exeext conftest.$ac_ext
15533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15535 if test `eval echo '${'$as_ac_var'}'` = yes; then
15536 cat >>confdefs.h <<_ACEOF
15537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15544 for ac_header in poll.h
15546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15548 echo "$as_me:$LINENO: checking for $ac_header" >&5
15549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15556 # Is the header compilable?
15557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15559 cat >conftest.$ac_ext <<_ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h. */
15565 $ac_includes_default
15566 #include <$ac_header>
15568 rm -f conftest.$ac_objext
15569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15570 (eval $ac_compile) 2>conftest.er1
15572 grep -v '^ *+' conftest.er1 >conftest.err
15574 cat conftest.err >&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } &&
15577 { ac_try='test -z "$ac_c_werror_flag"
15578 || test ! -s conftest.err'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; } &&
15584 { ac_try='test -s conftest.$ac_objext'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_header_compiler=yes
15592 echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ac_header_compiler=no
15597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15599 echo "${ECHO_T}$ac_header_compiler" >&6
15601 # Is the header present?
15602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15604 cat >conftest.$ac_ext <<_ACEOF
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h. */
15610 #include <$ac_header>
15612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15615 grep -v '^ *+' conftest.er1 >conftest.err
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } >/dev/null; then
15620 if test -s conftest.err; then
15621 ac_cpp_err=$ac_c_preproc_warn_flag
15622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15629 if test -z "$ac_cpp_err"; then
15630 ac_header_preproc=yes
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15635 ac_header_preproc=no
15637 rm -f conftest.err conftest.$ac_ext
15638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15639 echo "${ECHO_T}$ac_header_preproc" >&6
15641 # So? What about this header?
15642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15648 ac_header_preproc=yes
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15665 ## --------------------------------------------- ##
15666 ## Report this to <http://www.openldap.org/its/> ##
15667 ## --------------------------------------------- ##
15670 sed "s/^/$as_me: WARNING: /" >&2
15673 echo "$as_me:$LINENO: checking for $ac_header" >&5
15674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15676 echo $ECHO_N "(cached) $ECHO_C" >&6
15678 eval "$as_ac_Header=\$ac_header_preproc"
15680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15685 cat >>confdefs.h <<_ACEOF
15686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15695 for ac_header in sys/epoll.h
15697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15699 echo "$as_me:$LINENO: checking for $ac_header" >&5
15700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15707 # Is the header compilable?
15708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15710 cat >conftest.$ac_ext <<_ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h. */
15716 $ac_includes_default
15717 #include <$ac_header>
15719 rm -f conftest.$ac_objext
15720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15721 (eval $ac_compile) 2>conftest.er1
15723 grep -v '^ *+' conftest.er1 >conftest.err
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
15728 { ac_try='test -z "$ac_c_werror_flag"
15729 || test ! -s conftest.err'
15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; } &&
15735 { ac_try='test -s conftest.$ac_objext'
15736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737 (eval $ac_try) 2>&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; }; then
15741 ac_header_compiler=yes
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15746 ac_header_compiler=no
15748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15750 echo "${ECHO_T}$ac_header_compiler" >&6
15752 # Is the header present?
15753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15755 cat >conftest.$ac_ext <<_ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 #include <$ac_header>
15763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15766 grep -v '^ *+' conftest.er1 >conftest.err
15768 cat conftest.err >&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } >/dev/null; then
15771 if test -s conftest.err; then
15772 ac_cpp_err=$ac_c_preproc_warn_flag
15773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15780 if test -z "$ac_cpp_err"; then
15781 ac_header_preproc=yes
15783 echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15786 ac_header_preproc=no
15788 rm -f conftest.err conftest.$ac_ext
15789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15790 echo "${ECHO_T}$ac_header_preproc" >&6
15792 # So? What about this header?
15793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15799 ac_header_preproc=yes
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15816 ## --------------------------------------------- ##
15817 ## Report this to <http://www.openldap.org/its/> ##
15818 ## --------------------------------------------- ##
15821 sed "s/^/$as_me: WARNING: /" >&2
15824 echo "$as_me:$LINENO: checking for $ac_header" >&5
15825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15829 eval "$as_ac_Header=\$ac_header_preproc"
15831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15836 cat >>confdefs.h <<_ACEOF
15837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15844 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15845 echo "$as_me:$LINENO: checking for epoll system call" >&5
15846 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15847 if test "$cross_compiling" = yes; then
15848 echo "$as_me:$LINENO: result: no" >&5
15849 echo "${ECHO_T}no" >&6
15851 cat >conftest.$ac_ext <<_ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 int main(int argc, char *argv)
15859 int epfd = epoll_create(256);
15860 exit (epfd == -1 ? 1 : 0);
15863 rm -f conftest$ac_exeext
15864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15865 (eval $ac_link) 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15874 echo "$as_me:$LINENO: result: yes" >&5
15875 echo "${ECHO_T}yes" >&6
15877 cat >>confdefs.h <<\_ACEOF
15878 #define HAVE_EPOLL 1
15882 echo "$as_me: program exited with status $ac_status" >&5
15883 echo "$as_me: failed program was:" >&5
15884 sed 's/^/| /' conftest.$ac_ext >&5
15886 ( exit $ac_status )
15887 echo "$as_me:$LINENO: result: no" >&5
15888 echo "${ECHO_T}no" >&6
15890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15895 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15896 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15897 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15901 cat >conftest.$ac_ext <<_ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15909 #include <sys/types.h>
15912 #include <stdlib.h>
15917 char *c = (char *) *sys_errlist
15922 rm -f conftest.$ac_objext
15923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15924 (eval $ac_compile) 2>conftest.er1
15926 grep -v '^ *+' conftest.er1 >conftest.err
15928 cat conftest.err >&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } &&
15931 { ac_try='test -z "$ac_c_werror_flag"
15932 || test ! -s conftest.err'
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; } &&
15938 { ac_try='test -s conftest.$ac_objext'
15939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940 (eval $ac_try) 2>&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; }; then
15944 ol_cv_dcl_sys_errlist=yes
15945 ol_cv_have_sys_errlist=yes
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15950 ol_cv_dcl_sys_errlist=no
15952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15954 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15955 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15957 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15958 if test $ol_cv_dcl_sys_errlist = no ; then
15960 cat >>confdefs.h <<\_ACEOF
15961 #define DECL_SYS_ERRLIST 1
15965 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15966 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15967 if test "${ol_cv_have_sys_errlist+set}" = set; then
15968 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 cat >conftest.$ac_ext <<_ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h. */
15981 char *c = (char *) *sys_errlist
15986 rm -f conftest.$ac_objext conftest$ac_exeext
15987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15988 (eval $ac_link) 2>conftest.er1
15990 grep -v '^ *+' conftest.er1 >conftest.err
15992 cat conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } &&
15995 { ac_try='test -z "$ac_c_werror_flag"
15996 || test ! -s conftest.err'
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; } &&
16002 { ac_try='test -s conftest$ac_exeext'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; }; then
16008 ol_cv_have_sys_errlist=yes
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 ol_cv_have_sys_errlist=no
16015 rm -f conftest.err conftest.$ac_objext \
16016 conftest$ac_exeext conftest.$ac_ext
16018 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16019 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16021 if test $ol_cv_have_sys_errlist = yes ; then
16023 cat >>confdefs.h <<\_ACEOF
16024 #define HAVE_SYS_ERRLIST 1
16030 for ac_func in strerror strerror_r
16032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16033 echo "$as_me:$LINENO: checking for $ac_func" >&5
16034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16035 if eval "test \"\${$as_ac_var+set}\" = set"; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 cat >conftest.$ac_ext <<_ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16046 #define $ac_func innocuous_$ac_func
16048 /* System header to define __stub macros and hopefully few prototypes,
16049 which can conflict with char $ac_func (); below.
16050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16051 <limits.h> exists even on freestanding compilers. */
16054 # include <limits.h>
16056 # include <assert.h>
16061 /* Override any gcc2 internal prototype to avoid an error. */
16066 /* We use char because int might match the return type of a gcc2
16067 builtin and then its argument prototype would still apply. */
16069 /* The GNU C library defines this for functions which it implements
16070 to always fail with ENOSYS. Some functions are actually named
16071 something starting with __ and the normal name is an alias. */
16072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16075 char (*f) () = $ac_func;
16084 return f != $ac_func;
16089 rm -f conftest.$ac_objext conftest$ac_exeext
16090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16091 (eval $ac_link) 2>conftest.er1
16093 grep -v '^ *+' conftest.er1 >conftest.err
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -z "$ac_c_werror_flag"
16099 || test ! -s conftest.err'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; } &&
16105 { ac_try='test -s conftest$ac_exeext'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 eval "$as_ac_var=yes"
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 eval "$as_ac_var=no"
16118 rm -f conftest.err conftest.$ac_objext \
16119 conftest$ac_exeext conftest.$ac_ext
16121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16123 if test `eval echo '${'$as_ac_var'}'` = yes; then
16124 cat >>confdefs.h <<_ACEOF
16125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16131 ol_cv_func_strerror_r=no
16132 if test "${ac_cv_func_strerror_r}" = yes ; then
16133 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16134 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16135 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16139 cat >conftest.$ac_ext <<_ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145 #include <string.h>
16147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16148 $EGREP "strerror_r" >/dev/null 2>&1; then
16149 ol_decl_strerror_r=yes
16151 ol_decl_strerror_r=no
16155 if test $ol_decl_strerror_r = yes ; then
16156 cat >conftest.$ac_ext <<_ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16162 #include <string.h>
16166 /* from autoconf 2.59 */
16168 char x = *strerror_r (0, buf, sizeof buf);
16169 char *p = strerror_r (0, buf, sizeof buf);
16175 rm -f conftest.$ac_objext
16176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16177 (eval $ac_compile) 2>conftest.er1
16179 grep -v '^ *+' conftest.er1 >conftest.err
16181 cat conftest.err >&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); } &&
16184 { ac_try='test -z "$ac_c_werror_flag"
16185 || test ! -s conftest.err'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; } &&
16191 { ac_try='test -s conftest.$ac_objext'
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; }; then
16197 ol_cv_nonposix_strerror_r=yes
16199 echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16202 ol_cv_nonposix_strerror_r=no
16204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16206 if test "$cross_compiling" = yes; then
16207 ol_cv_nonposix_strerror=no
16209 cat >conftest.$ac_ext <<_ACEOF
16212 cat confdefs.h >>conftest.$ac_ext
16213 cat >>conftest.$ac_ext <<_ACEOF
16214 /* end confdefs.h. */
16219 strerror_r( 1, buf, sizeof buf );
16220 exit( buf[0] == 0 );
16224 rm -f conftest$ac_exeext
16225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16226 (eval $ac_link) 2>&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; }; then
16235 ol_cv_nonposix_strerror_r=yes
16237 echo "$as_me: program exited with status $ac_status" >&5
16238 echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16241 ( exit $ac_status )
16242 ol_cv_nonposix_strerror=no
16244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16249 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16250 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16251 if test $ol_cv_nonposix_strerror_r = yes ; then
16253 cat >>confdefs.h <<\_ACEOF
16254 #define HAVE_NONPOSIX_STRERROR_R 1
16259 elif test "${ac_cv_func_strerror}" = no ; then
16260 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16261 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16262 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 cat >conftest.$ac_ext <<_ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16274 #include <sys/types.h>
16277 #include <stdlib.h>
16282 char *c = (char *) *sys_errlist
16287 rm -f conftest.$ac_objext
16288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16289 (eval $ac_compile) 2>conftest.er1
16291 grep -v '^ *+' conftest.er1 >conftest.err
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } &&
16296 { ac_try='test -z "$ac_c_werror_flag"
16297 || test ! -s conftest.err'
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; } &&
16303 { ac_try='test -s conftest.$ac_objext'
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; }; then
16309 ol_cv_dcl_sys_errlist=yes
16310 ol_cv_have_sys_errlist=yes
16312 echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16315 ol_cv_dcl_sys_errlist=no
16317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16319 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16320 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16322 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16323 if test $ol_cv_dcl_sys_errlist = no ; then
16325 cat >>confdefs.h <<\_ACEOF
16326 #define DECL_SYS_ERRLIST 1
16330 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16331 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16332 if test "${ol_cv_have_sys_errlist+set}" = set; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 cat >conftest.$ac_ext <<_ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16346 char *c = (char *) *sys_errlist
16351 rm -f conftest.$ac_objext conftest$ac_exeext
16352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16353 (eval $ac_link) 2>conftest.er1
16355 grep -v '^ *+' conftest.er1 >conftest.err
16357 cat conftest.err >&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } &&
16360 { ac_try='test -z "$ac_c_werror_flag"
16361 || test ! -s conftest.err'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; } &&
16367 { ac_try='test -s conftest$ac_exeext'
16368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369 (eval $ac_try) 2>&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); }; }; then
16373 ol_cv_have_sys_errlist=yes
16375 echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16378 ol_cv_have_sys_errlist=no
16380 rm -f conftest.err conftest.$ac_objext \
16381 conftest$ac_exeext conftest.$ac_ext
16383 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16384 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16386 if test $ol_cv_have_sys_errlist = yes ; then
16388 cat >>confdefs.h <<\_ACEOF
16389 #define HAVE_SYS_ERRLIST 1
16398 for ac_header in regex.h
16400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16402 echo "$as_me:$LINENO: checking for $ac_header" >&5
16403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16410 # Is the header compilable?
16411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16413 cat >conftest.$ac_ext <<_ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16419 $ac_includes_default
16420 #include <$ac_header>
16422 rm -f conftest.$ac_objext
16423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16424 (eval $ac_compile) 2>conftest.er1
16426 grep -v '^ *+' conftest.er1 >conftest.err
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } &&
16431 { ac_try='test -z "$ac_c_werror_flag"
16432 || test ! -s conftest.err'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; } &&
16438 { ac_try='test -s conftest.$ac_objext'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; }; then
16444 ac_header_compiler=yes
16446 echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16449 ac_header_compiler=no
16451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16453 echo "${ECHO_T}$ac_header_compiler" >&6
16455 # Is the header present?
16456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16458 cat >conftest.$ac_ext <<_ACEOF
16461 cat confdefs.h >>conftest.$ac_ext
16462 cat >>conftest.$ac_ext <<_ACEOF
16463 /* end confdefs.h. */
16464 #include <$ac_header>
16466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16469 grep -v '^ *+' conftest.er1 >conftest.err
16471 cat conftest.err >&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } >/dev/null; then
16474 if test -s conftest.err; then
16475 ac_cpp_err=$ac_c_preproc_warn_flag
16476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16483 if test -z "$ac_cpp_err"; then
16484 ac_header_preproc=yes
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16489 ac_header_preproc=no
16491 rm -f conftest.err conftest.$ac_ext
16492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16493 echo "${ECHO_T}$ac_header_preproc" >&6
16495 # So? What about this header?
16496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16502 ac_header_preproc=yes
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16519 ## --------------------------------------------- ##
16520 ## Report this to <http://www.openldap.org/its/> ##
16521 ## --------------------------------------------- ##
16524 sed "s/^/$as_me: WARNING: /" >&2
16527 echo "$as_me:$LINENO: checking for $ac_header" >&5
16528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16532 eval "$as_ac_Header=\$ac_header_preproc"
16534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16539 cat >>confdefs.h <<_ACEOF
16540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16547 if test "$ac_cv_header_regex_h" != yes ; then
16548 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16549 echo "$as_me: error: POSIX regex.h required." >&2;}
16550 { (exit 1); exit 1; }; }
16552 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16553 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16554 if test "${ac_cv_search_regfree+set}" = set; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 ac_func_search_save_LIBS=$LIBS
16558 ac_cv_search_regfree=no
16559 cat >conftest.$ac_ext <<_ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16566 /* Override any gcc2 internal prototype to avoid an error. */
16570 /* We use char because int might match the return type of a gcc2
16571 builtin and then its argument prototype would still apply. */
16581 rm -f conftest.$ac_objext conftest$ac_exeext
16582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16583 (eval $ac_link) 2>conftest.er1
16585 grep -v '^ *+' conftest.er1 >conftest.err
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -z "$ac_c_werror_flag"
16591 || test ! -s conftest.err'
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; } &&
16597 { ac_try='test -s conftest$ac_exeext'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; }; then
16603 ac_cv_search_regfree="none required"
16605 echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16609 rm -f conftest.err conftest.$ac_objext \
16610 conftest$ac_exeext conftest.$ac_ext
16611 if test "$ac_cv_search_regfree" = no; then
16612 for ac_lib in regex gnuregex; do
16613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16614 cat >conftest.$ac_ext <<_ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h. */
16621 /* Override any gcc2 internal prototype to avoid an error. */
16625 /* We use char because int might match the return type of a gcc2
16626 builtin and then its argument prototype would still apply. */
16636 rm -f conftest.$ac_objext conftest$ac_exeext
16637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16638 (eval $ac_link) 2>conftest.er1
16640 grep -v '^ *+' conftest.er1 >conftest.err
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
16645 { ac_try='test -z "$ac_c_werror_flag"
16646 || test ! -s conftest.err'
16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; } &&
16652 { ac_try='test -s conftest$ac_exeext'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658 ac_cv_search_regfree="-l$ac_lib"
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16665 rm -f conftest.err conftest.$ac_objext \
16666 conftest$ac_exeext conftest.$ac_ext
16669 LIBS=$ac_func_search_save_LIBS
16671 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16672 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16673 if test "$ac_cv_search_regfree" != no; then
16674 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16677 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16678 echo "$as_me: error: POSIX regex required." >&2;}
16679 { (exit 1); exit 1; }; }
16684 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16685 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16686 if test "${ol_cv_c_posix_regex+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16690 if test "$cross_compiling" = yes; then
16691 ol_cv_c_posix_regex=cross
16693 cat >conftest.$ac_ext <<_ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16700 #include <sys/types.h>
16702 static char *pattern, *string;
16710 if(regcomp(&re, pattern, 0)) {
16714 string = "ALL MATCH";
16716 rc = regexec(&re, string, 0, (void*)0, 0);
16723 rm -f conftest$ac_exeext
16724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16725 (eval $ac_link) 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 (eval $ac_try) 2>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16734 ol_cv_c_posix_regex=yes
16736 echo "$as_me: program exited with status $ac_status" >&5
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ( exit $ac_status )
16741 ol_cv_c_posix_regex=no
16743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16746 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16747 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16749 if test "$ol_cv_c_posix_regex" = no ; then
16750 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16751 echo "$as_me: error: broken POSIX regex!" >&2;}
16752 { (exit 1); exit 1; }; }
16758 for ac_header in sys/uuid.h
16760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16762 echo "$as_me:$LINENO: checking for $ac_header" >&5
16763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16770 # Is the header compilable?
16771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16773 cat >conftest.$ac_ext <<_ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h. */
16779 $ac_includes_default
16780 #include <$ac_header>
16782 rm -f conftest.$ac_objext
16783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16784 (eval $ac_compile) 2>conftest.er1
16786 grep -v '^ *+' conftest.er1 >conftest.err
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
16791 { ac_try='test -z "$ac_c_werror_flag"
16792 || test ! -s conftest.err'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; } &&
16798 { ac_try='test -s conftest.$ac_objext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 ac_header_compiler=yes
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 ac_header_compiler=no
16811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16813 echo "${ECHO_T}$ac_header_compiler" >&6
16815 # Is the header present?
16816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16818 cat >conftest.$ac_ext <<_ACEOF
16821 cat confdefs.h >>conftest.$ac_ext
16822 cat >>conftest.$ac_ext <<_ACEOF
16823 /* end confdefs.h. */
16824 #include <$ac_header>
16826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16829 grep -v '^ *+' conftest.er1 >conftest.err
16831 cat conftest.err >&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } >/dev/null; then
16834 if test -s conftest.err; then
16835 ac_cpp_err=$ac_c_preproc_warn_flag
16836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16843 if test -z "$ac_cpp_err"; then
16844 ac_header_preproc=yes
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16849 ac_header_preproc=no
16851 rm -f conftest.err conftest.$ac_ext
16852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16853 echo "${ECHO_T}$ac_header_preproc" >&6
16855 # So? What about this header?
16856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16862 ac_header_preproc=yes
16865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16879 ## --------------------------------------------- ##
16880 ## Report this to <http://www.openldap.org/its/> ##
16881 ## --------------------------------------------- ##
16884 sed "s/^/$as_me: WARNING: /" >&2
16887 echo "$as_me:$LINENO: checking for $ac_header" >&5
16888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16890 echo $ECHO_N "(cached) $ECHO_C" >&6
16892 eval "$as_ac_Header=\$ac_header_preproc"
16894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16899 cat >>confdefs.h <<_ACEOF
16900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16907 if test $ac_cv_header_sys_uuid_h = yes ; then
16909 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16910 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16911 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 ac_func_search_save_LIBS=$LIBS
16915 ac_cv_search_uuid_to_str=no
16916 cat >conftest.$ac_ext <<_ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16923 /* Override any gcc2 internal prototype to avoid an error. */
16927 /* We use char because int might match the return type of a gcc2
16928 builtin and then its argument prototype would still apply. */
16929 char uuid_to_str ();
16938 rm -f conftest.$ac_objext conftest$ac_exeext
16939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16940 (eval $ac_link) 2>conftest.er1
16942 grep -v '^ *+' conftest.er1 >conftest.err
16944 cat conftest.err >&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } &&
16947 { ac_try='test -z "$ac_c_werror_flag"
16948 || test ! -s conftest.err'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } &&
16954 { ac_try='test -s conftest$ac_exeext'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 ac_cv_search_uuid_to_str="none required"
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16966 rm -f conftest.err conftest.$ac_objext \
16967 conftest$ac_exeext conftest.$ac_ext
16968 if test "$ac_cv_search_uuid_to_str" = no; then
16969 for ac_lib in uuid; do
16970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16971 cat >conftest.$ac_ext <<_ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16978 /* Override any gcc2 internal prototype to avoid an error. */
16982 /* We use char because int might match the return type of a gcc2
16983 builtin and then its argument prototype would still apply. */
16984 char uuid_to_str ();
16993 rm -f conftest.$ac_objext conftest$ac_exeext
16994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16995 (eval $ac_link) 2>conftest.er1
16997 grep -v '^ *+' conftest.er1 >conftest.err
16999 cat conftest.err >&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } &&
17002 { ac_try='test -z "$ac_c_werror_flag"
17003 || test ! -s conftest.err'
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; } &&
17009 { ac_try='test -s conftest$ac_exeext'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 ac_cv_search_uuid_to_str="-l$ac_lib"
17018 echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17022 rm -f conftest.err conftest.$ac_objext \
17023 conftest$ac_exeext conftest.$ac_ext
17026 LIBS=$ac_func_search_save_LIBS
17028 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17029 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17030 if test "$ac_cv_search_uuid_to_str" != no; then
17031 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17039 if test have_uuid = yes ; then
17041 cat >>confdefs.h <<\_ACEOF
17042 #define HAVE_UUID_TO_STR 1
17046 test "$ac_cv_search_uuid_to_str" = "none required" || \
17047 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17051 if test $have_uuid = no ; then
17052 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17053 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17055 LIBS="$LIBS -lrpcrt4"
17056 cat >conftest.$ac_ext <<_ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17063 int __stdcall UuidCreate(void *);
17064 int __stdcall UuidToStringA(void *,void **);
17071 UuidToStringA(0,0);
17077 rm -f conftest.$ac_objext conftest$ac_exeext
17078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17079 (eval $ac_link) 2>conftest.er1
17081 grep -v '^ *+' conftest.er1 >conftest.err
17083 cat conftest.err >&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } &&
17086 { ac_try='test -z "$ac_c_werror_flag"
17087 || test ! -s conftest.err'
17088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089 (eval $ac_try) 2>&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; } &&
17093 { ac_try='test -s conftest$ac_exeext'
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
17101 echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17106 rm -f conftest.err conftest.$ac_objext \
17107 conftest$ac_exeext conftest.$ac_ext
17108 if test $need_rpcrt = yes; then
17109 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17112 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17113 echo "${ECHO_T}$need_rpcrt" >&6
17116 ol_cv_lib_resolver=no
17117 if test $ol_cv_lib_resolver = no ; then
17118 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17119 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17120 if test "${ol_cv_resolver_none+set}" = set; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 LIBS="$ol_RESOLVER_LIB $LIBS"
17128 cat >conftest.$ac_ext <<_ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17135 #ifdef HAVE_SYS_TYPES_H
17136 # include <sys/types.h>
17138 #include <netinet/in.h>
17139 #ifdef HAVE_ARPA_NAMESER_H
17140 # include <arpa/nameser.h>
17142 #ifdef HAVE_RESOLV_H
17143 # include <resolv.h>
17151 char *request = NULL;
17152 unsigned char reply[64*1024];
17153 unsigned char host[64*1024];
17157 /* Bind 8/9 interface */
17158 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17160 /* Bind 4 interface */
17164 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17168 /* Bind 8/9 interface */
17170 #elif defined(HFIXEDSZ)
17171 /* Bind 4 interface w/ HFIXEDSZ */
17174 /* Bind 4 interface w/o HFIXEDSZ */
17175 p += sizeof(HEADER);
17177 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17183 rm -f conftest.$ac_objext conftest$ac_exeext
17184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17185 (eval $ac_link) 2>conftest.er1
17187 grep -v '^ *+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
17192 { ac_try='test -z "$ac_c_werror_flag"
17193 || test ! -s conftest.err'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; }; then
17205 ol_cv_resolver_none=yes
17207 echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17210 ol_cv_resolver_none=no
17212 rm -f conftest.err conftest.$ac_objext \
17213 conftest$ac_exeext conftest.$ac_ext
17218 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17219 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17221 if test $ol_cv_resolver_none = yes ; then
17222 ol_cv_lib_resolver=yes
17226 if test $ol_cv_lib_resolver = no ; then
17227 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17228 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17229 if test "${ol_cv_resolver_resolv+set}" = set; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 ol_RESOLVER_LIB=-lresolv
17235 LIBS="$ol_RESOLVER_LIB $LIBS"
17237 cat >conftest.$ac_ext <<_ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17244 #ifdef HAVE_SYS_TYPES_H
17245 # include <sys/types.h>
17247 #include <netinet/in.h>
17248 #ifdef HAVE_ARPA_NAMESER_H
17249 # include <arpa/nameser.h>
17251 #ifdef HAVE_RESOLV_H
17252 # include <resolv.h>
17260 char *request = NULL;
17261 unsigned char reply[64*1024];
17262 unsigned char host[64*1024];
17266 /* Bind 8/9 interface */
17267 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17269 /* Bind 4 interface */
17273 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17277 /* Bind 8/9 interface */
17279 #elif defined(HFIXEDSZ)
17280 /* Bind 4 interface w/ HFIXEDSZ */
17283 /* Bind 4 interface w/o HFIXEDSZ */
17284 p += sizeof(HEADER);
17286 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17294 (eval $ac_link) 2>conftest.er1
17296 grep -v '^ *+' conftest.er1 >conftest.err
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
17301 { ac_try='test -z "$ac_c_werror_flag"
17302 || test ! -s conftest.err'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; } &&
17308 { ac_try='test -s conftest$ac_exeext'
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 ol_cv_resolver_resolv=yes
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 ol_cv_resolver_resolv=no
17321 rm -f conftest.err conftest.$ac_objext \
17322 conftest$ac_exeext conftest.$ac_ext
17327 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17328 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17330 if test $ol_cv_resolver_resolv = yes ; then
17331 ol_cv_lib_resolver=-lresolv
17335 if test $ol_cv_lib_resolver = no ; then
17336 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17337 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17338 if test "${ol_cv_resolver_bind+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 ol_RESOLVER_LIB=-lbind
17344 LIBS="$ol_RESOLVER_LIB $LIBS"
17346 cat >conftest.$ac_ext <<_ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h. */
17353 #ifdef HAVE_SYS_TYPES_H
17354 # include <sys/types.h>
17356 #include <netinet/in.h>
17357 #ifdef HAVE_ARPA_NAMESER_H
17358 # include <arpa/nameser.h>
17360 #ifdef HAVE_RESOLV_H
17361 # include <resolv.h>
17369 char *request = NULL;
17370 unsigned char reply[64*1024];
17371 unsigned char host[64*1024];
17375 /* Bind 8/9 interface */
17376 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17378 /* Bind 4 interface */
17382 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17386 /* Bind 8/9 interface */
17388 #elif defined(HFIXEDSZ)
17389 /* Bind 4 interface w/ HFIXEDSZ */
17392 /* Bind 4 interface w/o HFIXEDSZ */
17393 p += sizeof(HEADER);
17395 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17401 rm -f conftest.$ac_objext conftest$ac_exeext
17402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17403 (eval $ac_link) 2>conftest.er1
17405 grep -v '^ *+' conftest.er1 >conftest.err
17407 cat conftest.err >&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } &&
17410 { ac_try='test -z "$ac_c_werror_flag"
17411 || test ! -s conftest.err'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; } &&
17417 { ac_try='test -s conftest$ac_exeext'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; }; then
17423 ol_cv_resolver_bind=yes
17425 echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17428 ol_cv_resolver_bind=no
17430 rm -f conftest.err conftest.$ac_objext \
17431 conftest$ac_exeext conftest.$ac_ext
17436 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17437 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17439 if test $ol_cv_resolver_bind = yes ; then
17440 ol_cv_lib_resolver=-lbind
17447 if test "$ol_cv_lib_resolver" != no ; then
17449 cat >>confdefs.h <<\_ACEOF
17450 #define HAVE_RES_QUERY 1
17454 if test "$ol_enable_dnssrv" != no ; then
17458 if test "$ol_cv_lib_resolver" != yes ; then
17459 LIBS="$ol_cv_lib_resolver $LIBS"
17463 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17464 if test "$ol_link_dnssrv" = no ; then
17465 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17466 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17467 { (exit 1); exit 1; }; }
17470 ol_enable_dnssrv=no
17474 for ac_func in hstrerror
17476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17477 echo "$as_me:$LINENO: checking for $ac_func" >&5
17478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17479 if eval "test \"\${$as_ac_var+set}\" = set"; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17482 cat >conftest.$ac_ext <<_ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17490 #define $ac_func innocuous_$ac_func
17492 /* System header to define __stub macros and hopefully few prototypes,
17493 which can conflict with char $ac_func (); below.
17494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17495 <limits.h> exists even on freestanding compilers. */
17498 # include <limits.h>
17500 # include <assert.h>
17505 /* Override any gcc2 internal prototype to avoid an error. */
17510 /* We use char because int might match the return type of a gcc2
17511 builtin and then its argument prototype would still apply. */
17513 /* The GNU C library defines this for functions which it implements
17514 to always fail with ENOSYS. Some functions are actually named
17515 something starting with __ and the normal name is an alias. */
17516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17519 char (*f) () = $ac_func;
17528 return f != $ac_func;
17533 rm -f conftest.$ac_objext conftest$ac_exeext
17534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17535 (eval $ac_link) 2>conftest.er1
17537 grep -v '^ *+' conftest.er1 >conftest.err
17539 cat conftest.err >&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); } &&
17542 { ac_try='test -z "$ac_c_werror_flag"
17543 || test ! -s conftest.err'
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest$ac_exeext'
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17555 eval "$as_ac_var=yes"
17557 echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 eval "$as_ac_var=no"
17562 rm -f conftest.err conftest.$ac_objext \
17563 conftest$ac_exeext conftest.$ac_ext
17565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17567 if test `eval echo '${'$as_ac_var'}'` = yes; then
17568 cat >>confdefs.h <<_ACEOF
17569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17580 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17583 echo "$as_me:$LINENO: checking for $ac_func" >&5
17584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17585 if eval "test \"\${$as_ac_var+set}\" = set"; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17588 cat >conftest.$ac_ext <<_ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17596 #define $ac_func innocuous_$ac_func
17598 /* System header to define __stub macros and hopefully few prototypes,
17599 which can conflict with char $ac_func (); below.
17600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17601 <limits.h> exists even on freestanding compilers. */
17604 # include <limits.h>
17606 # include <assert.h>
17611 /* Override any gcc2 internal prototype to avoid an error. */
17616 /* We use char because int might match the return type of a gcc2
17617 builtin and then its argument prototype would still apply. */
17619 /* The GNU C library defines this for functions which it implements
17620 to always fail with ENOSYS. Some functions are actually named
17621 something starting with __ and the normal name is an alias. */
17622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17625 char (*f) () = $ac_func;
17634 return f != $ac_func;
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641 (eval $ac_link) 2>conftest.er1
17643 grep -v '^ *+' conftest.er1 >conftest.err
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } &&
17648 { ac_try='test -z "$ac_c_werror_flag"
17649 || test ! -s conftest.err'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest$ac_exeext'
17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
17661 eval "$as_ac_var=yes"
17663 echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17666 eval "$as_ac_var=no"
17668 rm -f conftest.err conftest.$ac_objext \
17669 conftest$ac_exeext conftest.$ac_ext
17671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17673 if test `eval echo '${'$as_ac_var'}'` = yes; then
17674 cat >>confdefs.h <<_ACEOF
17675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17683 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17684 if test $ol_enable_ipv6 = yes ; then
17685 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17686 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17687 { (exit 1); exit 1; }; }
17689 elif test $ol_enable_ipv6 != no ; then
17690 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17691 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17692 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17696 cat >conftest.$ac_ext <<_ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17703 # include <netinet/in.h>
17704 # ifdef INET6_ADDRSTRLEN
17705 __has_inet6_addrstrlen__;
17709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17710 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17711 ol_cv_inet6_addrstrlen=yes
17713 ol_cv_inet6_addrstrlen=no
17718 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17719 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17722 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17723 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17724 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17728 cat >conftest.$ac_ext <<_ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17735 #include <sys/types.h>
17736 #include <sys/socket.h>
17742 struct sockaddr_storage ss;
17748 rm -f conftest.$ac_objext
17749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17750 (eval $ac_compile) 2>conftest.er1
17752 grep -v '^ *+' conftest.er1 >conftest.err
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_c_werror_flag"
17758 || test ! -s conftest.err'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } &&
17764 { ac_try='test -s conftest.$ac_objext'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17770 ol_cv_struct_sockaddr_storage=yes
17772 echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17775 ol_cv_struct_sockaddr_storage=no
17777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17779 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17780 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17782 if test $ol_cv_inet6_addrstrlen = yes &&
17783 test $ol_cv_struct_sockaddr_storage = yes ; then
17785 elif test $ol_enable_ipv6 = yes &&
17786 test $ol_cv_inet6_addrstrlen = no ; then
17787 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17788 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17789 { (exit 1); exit 1; }; }
17790 elif test $ol_enable_ipv6 = yes &&
17791 test $ol_cv_struct_sockaddr_storage = no ; then
17792 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17793 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17794 { (exit 1); exit 1; }; }
17798 if test $ol_enable_local != no ; then
17800 for ac_header in sys/un.h
17802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17804 echo "$as_me:$LINENO: checking for $ac_header" >&5
17805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17812 # Is the header compilable?
17813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17815 cat >conftest.$ac_ext <<_ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17821 $ac_includes_default
17822 #include <$ac_header>
17824 rm -f conftest.$ac_objext
17825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17826 (eval $ac_compile) 2>conftest.er1
17828 grep -v '^ *+' conftest.er1 >conftest.err
17830 cat conftest.err >&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } &&
17833 { ac_try='test -z "$ac_c_werror_flag"
17834 || test ! -s conftest.err'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; } &&
17840 { ac_try='test -s conftest.$ac_objext'
17841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17842 (eval $ac_try) 2>&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; }; then
17846 ac_header_compiler=yes
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17851 ac_header_compiler=no
17853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17855 echo "${ECHO_T}$ac_header_compiler" >&6
17857 # Is the header present?
17858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17860 cat >conftest.$ac_ext <<_ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17866 #include <$ac_header>
17868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17871 grep -v '^ *+' conftest.er1 >conftest.err
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } >/dev/null; then
17876 if test -s conftest.err; then
17877 ac_cpp_err=$ac_c_preproc_warn_flag
17878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17885 if test -z "$ac_cpp_err"; then
17886 ac_header_preproc=yes
17888 echo "$as_me: failed program was:" >&5
17889 sed 's/^/| /' conftest.$ac_ext >&5
17891 ac_header_preproc=no
17893 rm -f conftest.err conftest.$ac_ext
17894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17895 echo "${ECHO_T}$ac_header_preproc" >&6
17897 # So? What about this header?
17898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17904 ac_header_preproc=yes
17907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17921 ## --------------------------------------------- ##
17922 ## Report this to <http://www.openldap.org/its/> ##
17923 ## --------------------------------------------- ##
17926 sed "s/^/$as_me: WARNING: /" >&2
17929 echo "$as_me:$LINENO: checking for $ac_header" >&5
17930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17932 echo $ECHO_N "(cached) $ECHO_C" >&6
17934 eval "$as_ac_Header=\$ac_header_preproc"
17936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17941 cat >>confdefs.h <<_ACEOF
17942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17950 if test $ol_enable_local = auto ; then
17951 ol_enable_local=$ac_cv_header_sys_un_h
17952 elif test $ac_cv_header_sys_un_h = no ; then
17953 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17954 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17955 { (exit 1); exit 1; }; }
17963 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17966 for ac_header in krb5.h
17968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17970 echo "$as_me:$LINENO: checking for $ac_header" >&5
17971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
17975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17978 # Is the header compilable?
17979 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17981 cat >conftest.$ac_ext <<_ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h. */
17987 $ac_includes_default
17988 #include <$ac_header>
17990 rm -f conftest.$ac_objext
17991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17992 (eval $ac_compile) 2>conftest.er1
17994 grep -v '^ *+' conftest.er1 >conftest.err
17996 cat conftest.err >&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); } &&
17999 { ac_try='test -z "$ac_c_werror_flag"
18000 || test ! -s conftest.err'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; } &&
18006 { ac_try='test -s conftest.$ac_objext'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 ac_header_compiler=yes
18014 echo "$as_me: failed program was:" >&5
18015 sed 's/^/| /' conftest.$ac_ext >&5
18017 ac_header_compiler=no
18019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18021 echo "${ECHO_T}$ac_header_compiler" >&6
18023 # Is the header present?
18024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18026 cat >conftest.$ac_ext <<_ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032 #include <$ac_header>
18034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18037 grep -v '^ *+' conftest.er1 >conftest.err
18039 cat conftest.err >&5
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); } >/dev/null; then
18042 if test -s conftest.err; then
18043 ac_cpp_err=$ac_c_preproc_warn_flag
18044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18051 if test -z "$ac_cpp_err"; then
18052 ac_header_preproc=yes
18054 echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18057 ac_header_preproc=no
18059 rm -f conftest.err conftest.$ac_ext
18060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18061 echo "${ECHO_T}$ac_header_preproc" >&6
18063 # So? What about this header?
18064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18070 ac_header_preproc=yes
18073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18087 ## --------------------------------------------- ##
18088 ## Report this to <http://www.openldap.org/its/> ##
18089 ## --------------------------------------------- ##
18092 sed "s/^/$as_me: WARNING: /" >&2
18095 echo "$as_me:$LINENO: checking for $ac_header" >&5
18096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
18100 eval "$as_ac_Header=\$ac_header_preproc"
18102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18107 cat >>confdefs.h <<_ACEOF
18108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18116 if test $ac_cv_header_krb5_h = yes ; then
18118 for ac_header in heim_err.h
18120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18122 echo "$as_me:$LINENO: checking for $ac_header" >&5
18123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18130 # Is the header compilable?
18131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18133 cat >conftest.$ac_ext <<_ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18139 $ac_includes_default
18140 #include <$ac_header>
18142 rm -f conftest.$ac_objext
18143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18144 (eval $ac_compile) 2>conftest.er1
18146 grep -v '^ *+' conftest.er1 >conftest.err
18148 cat conftest.err >&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } &&
18151 { ac_try='test -z "$ac_c_werror_flag"
18152 || test ! -s conftest.err'
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; } &&
18158 { ac_try='test -s conftest.$ac_objext'
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; }; then
18164 ac_header_compiler=yes
18166 echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.$ac_ext >&5
18169 ac_header_compiler=no
18171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18173 echo "${ECHO_T}$ac_header_compiler" >&6
18175 # Is the header present?
18176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18178 cat >conftest.$ac_ext <<_ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18184 #include <$ac_header>
18186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18189 grep -v '^ *+' conftest.er1 >conftest.err
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } >/dev/null; then
18194 if test -s conftest.err; then
18195 ac_cpp_err=$ac_c_preproc_warn_flag
18196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18203 if test -z "$ac_cpp_err"; then
18204 ac_header_preproc=yes
18206 echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18209 ac_header_preproc=no
18211 rm -f conftest.err conftest.$ac_ext
18212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18213 echo "${ECHO_T}$ac_header_preproc" >&6
18215 # So? What about this header?
18216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18222 ac_header_preproc=yes
18225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18239 ## --------------------------------------------- ##
18240 ## Report this to <http://www.openldap.org/its/> ##
18241 ## --------------------------------------------- ##
18244 sed "s/^/$as_me: WARNING: /" >&2
18247 echo "$as_me:$LINENO: checking for $ac_header" >&5
18248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 eval "$as_ac_Header=\$ac_header_preproc"
18254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18259 cat >>confdefs.h <<_ACEOF
18260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18267 if test $ac_cv_header_heim_err_h = yes ; then
18273 if test $krb5_impl = mit; then
18274 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18275 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18276 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 ac_check_lib_save_LIBS=$LIBS
18280 LIBS="-lk5crypto $LIBS"
18281 cat >conftest.$ac_ext <<_ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18297 rm -f conftest.$ac_objext conftest$ac_exeext
18298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18299 (eval $ac_link) 2>conftest.er1
18301 grep -v '^ *+' conftest.er1 >conftest.err
18303 cat conftest.err >&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } &&
18306 { ac_try='test -z "$ac_c_werror_flag"
18307 || test ! -s conftest.err'
18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309 (eval $ac_try) 2>&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; } &&
18313 { ac_try='test -s conftest$ac_exeext'
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; }; then
18319 ac_cv_lib_k5crypto_main=yes
18321 echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18324 ac_cv_lib_k5crypto_main=no
18326 rm -f conftest.err conftest.$ac_objext \
18327 conftest$ac_exeext conftest.$ac_ext
18328 LIBS=$ac_check_lib_save_LIBS
18330 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18331 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18332 if test $ac_cv_lib_k5crypto_main = yes; then
18333 krb5crypto=k5crypto
18339 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18340 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18341 if test "${ac_cv_lib_krb5_main+set}" = set; then
18342 echo $ECHO_N "(cached) $ECHO_C" >&6
18344 ac_check_lib_save_LIBS=$LIBS
18345 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18346 cat >conftest.$ac_ext <<_ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18362 rm -f conftest.$ac_objext conftest$ac_exeext
18363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18364 (eval $ac_link) 2>conftest.er1
18366 grep -v '^ *+' conftest.er1 >conftest.err
18368 cat conftest.err >&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
18371 { ac_try='test -z "$ac_c_werror_flag"
18372 || test ! -s conftest.err'
18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374 (eval $ac_try) 2>&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; } &&
18378 { ac_try='test -s conftest$ac_exeext'
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
18384 ac_cv_lib_krb5_main=yes
18386 echo "$as_me: failed program was:" >&5
18387 sed 's/^/| /' conftest.$ac_ext >&5
18389 ac_cv_lib_krb5_main=no
18391 rm -f conftest.err conftest.$ac_objext \
18392 conftest$ac_exeext conftest.$ac_ext
18393 LIBS=$ac_check_lib_save_LIBS
18395 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18396 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18397 if test $ac_cv_lib_krb5_main = yes; then
18399 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18405 elif test $krb5_impl = heimdal; then
18406 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18407 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18408 if test "${ac_cv_lib_des_main+set}" = set; then
18409 echo $ECHO_N "(cached) $ECHO_C" >&6
18411 ac_check_lib_save_LIBS=$LIBS
18413 cat >conftest.$ac_ext <<_ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18429 rm -f conftest.$ac_objext conftest$ac_exeext
18430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18431 (eval $ac_link) 2>conftest.er1
18433 grep -v '^ *+' conftest.er1 >conftest.err
18435 cat conftest.err >&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } &&
18438 { ac_try='test -z "$ac_c_werror_flag"
18439 || test ! -s conftest.err'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; } &&
18445 { ac_try='test -s conftest$ac_exeext'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_cv_lib_des_main=yes
18453 echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18456 ac_cv_lib_des_main=no
18458 rm -f conftest.err conftest.$ac_objext \
18459 conftest$ac_exeext conftest.$ac_ext
18460 LIBS=$ac_check_lib_save_LIBS
18462 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18463 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18464 if test $ac_cv_lib_des_main = yes; then
18471 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18472 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18473 if test "${ac_cv_lib_krb5_main+set}" = set; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 ac_check_lib_save_LIBS=$LIBS
18477 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18478 cat >conftest.$ac_ext <<_ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
18494 rm -f conftest.$ac_objext conftest$ac_exeext
18495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18496 (eval $ac_link) 2>conftest.er1
18498 grep -v '^ *+' conftest.er1 >conftest.err
18500 cat conftest.err >&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } &&
18503 { ac_try='test -z "$ac_c_werror_flag"
18504 || test ! -s conftest.err'
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; } &&
18510 { ac_try='test -s conftest$ac_exeext'
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 ac_cv_lib_krb5_main=yes
18518 echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18521 ac_cv_lib_krb5_main=no
18523 rm -f conftest.err conftest.$ac_objext \
18524 conftest$ac_exeext conftest.$ac_ext
18525 LIBS=$ac_check_lib_save_LIBS
18527 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18528 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18529 if test $ac_cv_lib_krb5_main = yes; then
18531 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18538 cat >>confdefs.h <<\_ACEOF
18539 #define HAVE_HEIMDAL_KERBEROS 1
18545 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18546 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18549 if test $have_krb5 = yes ; then
18553 cat >>confdefs.h <<\_ACEOF
18554 #define HAVE_KRB5 1
18558 if test $ol_with_kerberos = k5only ; then
18559 ol_with_kerberos=found
18562 elif test $ol_with_kerberos != auto ; then
18563 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18564 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18565 { (exit 1); exit 1; }; }
18572 if test $ol_link_krb5 = yes &&
18573 { test $ol_with_kerberos = yes ||
18574 test $ol_with_kerberos = auto ||
18575 test $ol_with_kerberos = k425; }; then
18579 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18583 echo "$as_me:$LINENO: checking for $ac_header" >&5
18584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18591 # Is the header compilable?
18592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18594 cat >conftest.$ac_ext <<_ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18600 $ac_includes_default
18601 #include <$ac_header>
18603 rm -f conftest.$ac_objext
18604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18605 (eval $ac_compile) 2>conftest.er1
18607 grep -v '^ *+' conftest.er1 >conftest.err
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
18612 { ac_try='test -z "$ac_c_werror_flag"
18613 || test ! -s conftest.err'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; } &&
18619 { ac_try='test -s conftest.$ac_objext'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; }; then
18625 ac_header_compiler=yes
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18630 ac_header_compiler=no
18632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18634 echo "${ECHO_T}$ac_header_compiler" >&6
18636 # Is the header present?
18637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18639 cat >conftest.$ac_ext <<_ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h. */
18645 #include <$ac_header>
18647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18650 grep -v '^ *+' conftest.er1 >conftest.err
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } >/dev/null; then
18655 if test -s conftest.err; then
18656 ac_cpp_err=$ac_c_preproc_warn_flag
18657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18664 if test -z "$ac_cpp_err"; then
18665 ac_header_preproc=yes
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18670 ac_header_preproc=no
18672 rm -f conftest.err conftest.$ac_ext
18673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18674 echo "${ECHO_T}$ac_header_preproc" >&6
18676 # So? What about this header?
18677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18683 ac_header_preproc=yes
18686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18700 ## --------------------------------------------- ##
18701 ## Report this to <http://www.openldap.org/its/> ##
18702 ## --------------------------------------------- ##
18705 sed "s/^/$as_me: WARNING: /" >&2
18708 echo "$as_me:$LINENO: checking for $ac_header" >&5
18709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 eval "$as_ac_Header=\$ac_header_preproc"
18715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18720 cat >>confdefs.h <<_ACEOF
18721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18729 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18730 if test $krb5_impl = mit; then
18731 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18732 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18733 if test "${ac_cv_lib_krb4_main+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18736 ac_check_lib_save_LIBS=$LIBS
18737 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18738 cat >conftest.$ac_ext <<_ACEOF
18741 cat confdefs.h >>conftest.$ac_ext
18742 cat >>conftest.$ac_ext <<_ACEOF
18743 /* end confdefs.h. */
18754 rm -f conftest.$ac_objext conftest$ac_exeext
18755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18756 (eval $ac_link) 2>conftest.er1
18758 grep -v '^ *+' conftest.er1 >conftest.err
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } &&
18763 { ac_try='test -z "$ac_c_werror_flag"
18764 || test ! -s conftest.err'
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; } &&
18770 { ac_try='test -s conftest$ac_exeext'
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_cv_lib_krb4_main=yes
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18781 ac_cv_lib_krb4_main=no
18783 rm -f conftest.err conftest.$ac_objext \
18784 conftest$ac_exeext conftest.$ac_ext
18785 LIBS=$ac_check_lib_save_LIBS
18787 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18788 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18789 if test $ac_cv_lib_krb4_main = yes; then
18791 KRB4_LIBS="-lkrb4 -ldes425"
18797 elif test $krb5_impl = heimdal; then
18798 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18799 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18800 if test "${ac_cv_lib_krb4_main+set}" = set; then
18801 echo $ECHO_N "(cached) $ECHO_C" >&6
18803 ac_check_lib_save_LIBS=$LIBS
18804 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18805 cat >conftest.$ac_ext <<_ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h. */
18821 rm -f conftest.$ac_objext conftest$ac_exeext
18822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18823 (eval $ac_link) 2>conftest.er1
18825 grep -v '^ *+' conftest.er1 >conftest.err
18827 cat conftest.err >&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); } &&
18830 { ac_try='test -z "$ac_c_werror_flag"
18831 || test ! -s conftest.err'
18832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18833 (eval $ac_try) 2>&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; } &&
18837 { ac_try='test -s conftest$ac_exeext'
18838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18839 (eval $ac_try) 2>&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }; }; then
18843 ac_cv_lib_krb4_main=yes
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18848 ac_cv_lib_krb4_main=no
18850 rm -f conftest.err conftest.$ac_objext \
18851 conftest$ac_exeext conftest.$ac_ext
18852 LIBS=$ac_check_lib_save_LIBS
18854 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18855 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18856 if test $ac_cv_lib_krb4_main = yes; then
18866 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18867 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18870 if test $have_k425 = yes ; then
18871 ol_with_kerberos=found
18875 cat >>confdefs.h <<\_ACEOF
18876 #define HAVE_KRB425 1
18880 cat >>confdefs.h <<\_ACEOF
18881 #define HAVE_KRB4 1
18885 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18886 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18887 if test "${ol_cv_var_des_debug+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18892 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18893 cat >conftest.$ac_ext <<_ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18900 #include <kerberosIV/krb.h>
18901 #include <kerberosIV/des.h>
18902 extern int des_debug;
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18916 (eval $ac_link) 2>conftest.er1
18918 grep -v '^ *+' conftest.er1 >conftest.err
18920 cat conftest.err >&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } &&
18923 { ac_try='test -z "$ac_c_werror_flag"
18924 || test ! -s conftest.err'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; } &&
18930 { ac_try='test -s conftest$ac_exeext'
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ol_cv_var_des_debug=yes
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18941 ol_cv_var_des_debug=no
18943 rm -f conftest.err conftest.$ac_objext \
18944 conftest$ac_exeext conftest.$ac_ext
18948 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18949 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18951 if test $ol_cv_var_des_debug = yes ; then
18953 cat >>confdefs.h <<\_ACEOF
18954 #define HAVE_DES_DEBUG 1
18964 if test $ol_link_krb5 = yes ; then
18965 ol_with_kerberos=found
18968 case $ol_with_kerberos in yes | auto | k4 | kth)
18973 for ac_header in krb.h des.h krb-archaeology.h
18975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18977 echo "$as_me:$LINENO: checking for $ac_header" >&5
18978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18985 # Is the header compilable?
18986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18988 cat >conftest.$ac_ext <<_ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 $ac_includes_default
18995 #include <$ac_header>
18997 rm -f conftest.$ac_objext
18998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18999 (eval $ac_compile) 2>conftest.er1
19001 grep -v '^ *+' conftest.er1 >conftest.err
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
19006 { ac_try='test -z "$ac_c_werror_flag"
19007 || test ! -s conftest.err'
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try='test -s conftest.$ac_objext'
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 ac_header_compiler=yes
19021 echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19024 ac_header_compiler=no
19026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19028 echo "${ECHO_T}$ac_header_compiler" >&6
19030 # Is the header present?
19031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19033 cat >conftest.$ac_ext <<_ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19039 #include <$ac_header>
19041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19044 grep -v '^ *+' conftest.er1 >conftest.err
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } >/dev/null; then
19049 if test -s conftest.err; then
19050 ac_cpp_err=$ac_c_preproc_warn_flag
19051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19058 if test -z "$ac_cpp_err"; then
19059 ac_header_preproc=yes
19061 echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19064 ac_header_preproc=no
19066 rm -f conftest.err conftest.$ac_ext
19067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19068 echo "${ECHO_T}$ac_header_preproc" >&6
19070 # So? What about this header?
19071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19077 ac_header_preproc=yes
19080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19094 ## --------------------------------------------- ##
19095 ## Report this to <http://www.openldap.org/its/> ##
19096 ## --------------------------------------------- ##
19099 sed "s/^/$as_me: WARNING: /" >&2
19102 echo "$as_me:$LINENO: checking for $ac_header" >&5
19103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19107 eval "$as_ac_Header=\$ac_header_preproc"
19109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19114 cat >>confdefs.h <<_ACEOF
19115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19123 if test $ac_cv_header_krb_h = yes ; then
19124 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19125 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19126 if test "${ac_cv_lib_krb_main+set}" = set; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 ac_check_lib_save_LIBS=$LIBS
19130 LIBS="-lkrb -ldes $LIBS"
19131 cat >conftest.$ac_ext <<_ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19147 rm -f conftest.$ac_objext conftest$ac_exeext
19148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19149 (eval $ac_link) 2>conftest.er1
19151 grep -v '^ *+' conftest.er1 >conftest.err
19153 cat conftest.err >&5
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); } &&
19156 { ac_try='test -z "$ac_c_werror_flag"
19157 || test ! -s conftest.err'
19158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159 (eval $ac_try) 2>&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; } &&
19163 { ac_try='test -s conftest$ac_exeext'
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; }; then
19169 ac_cv_lib_krb_main=yes
19171 echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19174 ac_cv_lib_krb_main=no
19176 rm -f conftest.err conftest.$ac_objext \
19177 conftest$ac_exeext conftest.$ac_ext
19178 LIBS=$ac_check_lib_save_LIBS
19180 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19181 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19182 if test $ac_cv_lib_krb_main = yes; then
19189 if test $have_k4 = yes ; then
19190 ol_with_kerberos=found
19194 cat >>confdefs.h <<\_ACEOF
19195 #define HAVE_KRB4 1
19199 KRB4_LIBS="-lkrb -ldes"
19201 if test $ac_cv_header_krb_archaeology_h = yes ; then
19203 cat >>confdefs.h <<\_ACEOF
19204 #define HAVE_KTH_KERBEROS 1
19213 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19216 elif test $ol_enable_kbind = yes ; then
19217 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19218 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19219 { (exit 1); exit 1; }; }
19222 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19224 cat >>confdefs.h <<\_ACEOF
19225 #define HAVE_KERBEROS 1
19229 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19230 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19231 echo "$as_me: error: Kerberos detection failed" >&2;}
19232 { (exit 1); exit 1; }; }
19237 if test $ol_with_tls != no ; then
19239 for ac_header in openssl/ssl.h
19241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19243 echo "$as_me:$LINENO: checking for $ac_header" >&5
19244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19246 echo $ECHO_N "(cached) $ECHO_C" >&6
19248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19251 # Is the header compilable?
19252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19254 cat >conftest.$ac_ext <<_ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19260 $ac_includes_default
19261 #include <$ac_header>
19263 rm -f conftest.$ac_objext
19264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19265 (eval $ac_compile) 2>conftest.er1
19267 grep -v '^ *+' conftest.er1 >conftest.err
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } &&
19272 { ac_try='test -z "$ac_c_werror_flag"
19273 || test ! -s conftest.err'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } &&
19279 { ac_try='test -s conftest.$ac_objext'
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; }; then
19285 ac_header_compiler=yes
19287 echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 ac_header_compiler=no
19292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19294 echo "${ECHO_T}$ac_header_compiler" >&6
19296 # Is the header present?
19297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19299 cat >conftest.$ac_ext <<_ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19305 #include <$ac_header>
19307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19310 grep -v '^ *+' conftest.er1 >conftest.err
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } >/dev/null; then
19315 if test -s conftest.err; then
19316 ac_cpp_err=$ac_c_preproc_warn_flag
19317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19324 if test -z "$ac_cpp_err"; then
19325 ac_header_preproc=yes
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19330 ac_header_preproc=no
19332 rm -f conftest.err conftest.$ac_ext
19333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19334 echo "${ECHO_T}$ac_header_preproc" >&6
19336 # So? What about this header?
19337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19343 ac_header_preproc=yes
19346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19360 ## --------------------------------------------- ##
19361 ## Report this to <http://www.openldap.org/its/> ##
19362 ## --------------------------------------------- ##
19365 sed "s/^/$as_me: WARNING: /" >&2
19368 echo "$as_me:$LINENO: checking for $ac_header" >&5
19369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 eval "$as_ac_Header=\$ac_header_preproc"
19375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19380 cat >>confdefs.h <<_ACEOF
19381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19389 if test $ac_cv_header_openssl_ssl_h = yes ; then
19390 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19391 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19392 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
19395 ac_check_lib_save_LIBS=$LIBS
19396 LIBS="-lssl -lcrypto $LIBS"
19397 cat >conftest.$ac_ext <<_ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h. */
19404 /* Override any gcc2 internal prototype to avoid an error. */
19408 /* We use char because int might match the return type of a gcc2
19409 builtin and then its argument prototype would still apply. */
19410 char SSL_library_init ();
19414 SSL_library_init ();
19419 rm -f conftest.$ac_objext conftest$ac_exeext
19420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19421 (eval $ac_link) 2>conftest.er1
19423 grep -v '^ *+' conftest.er1 >conftest.err
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } &&
19428 { ac_try='test -z "$ac_c_werror_flag"
19429 || test ! -s conftest.err'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; } &&
19435 { ac_try='test -s conftest$ac_exeext'
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 ac_cv_lib_ssl_SSL_library_init=yes
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_lib_ssl_SSL_library_init=no
19448 rm -f conftest.err conftest.$ac_objext \
19449 conftest$ac_exeext conftest.$ac_ext
19450 LIBS=$ac_check_lib_save_LIBS
19452 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19453 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19454 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19462 if test $have_openssl = no ; then
19463 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19464 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19465 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 ac_check_lib_save_LIBS=$LIBS
19469 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19477 /* Override any gcc2 internal prototype to avoid an error. */
19481 /* We use char because int might match the return type of a gcc2
19482 builtin and then its argument prototype would still apply. */
19483 char ssl3_accept ();
19492 rm -f conftest.$ac_objext conftest$ac_exeext
19493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19494 (eval $ac_link) 2>conftest.er1
19496 grep -v '^ *+' conftest.er1 >conftest.err
19498 cat conftest.err >&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); } &&
19501 { ac_try='test -z "$ac_c_werror_flag"
19502 || test ! -s conftest.err'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; } &&
19508 { ac_try='test -s conftest$ac_exeext'
19509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510 (eval $ac_try) 2>&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; }; then
19514 ac_cv_lib_ssl_ssl3_accept=yes
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19519 ac_cv_lib_ssl_ssl3_accept=no
19521 rm -f conftest.err conftest.$ac_objext \
19522 conftest$ac_exeext conftest.$ac_ext
19523 LIBS=$ac_check_lib_save_LIBS
19525 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19526 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19527 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19536 if test $have_openssl = yes ; then
19541 cat >>confdefs.h <<\_ACEOF
19542 #define HAVE_OPENSSL 1
19546 if test $need_rsaref = yes; then
19548 cat >>confdefs.h <<\_ACEOF
19549 #define HAVE_RSAREF 1
19553 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19555 TLS_LIBS="-lssl -lcrypto"
19558 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19559 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19560 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19564 cat >conftest.$ac_ext <<_ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h. */
19571 #ifdef HAVE_OPENSSL_SSL_H
19572 #include <openssl/ssl.h>
19577 /* Require 0.9.7d+ */
19578 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19579 char *__ssl_compat = "0.9.7d";
19583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19584 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19585 ol_cv_ssl_crl_compat=yes
19587 ol_cv_ssl_crl_compat=no
19592 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19593 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19595 if test $ol_cv_ssl_crl_compat = no ; then
19599 cat >>confdefs.h <<\_ACEOF
19600 #define HAVE_OPENSSL_CRL 1
19607 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19608 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19612 if test $ol_link_tls = yes ; then
19614 cat >>confdefs.h <<\_ACEOF
19620 elif test $ol_with_tls = auto ; then
19621 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19622 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19623 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19624 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19626 elif test $ol_with_tls != no ; then
19627 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19628 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19629 { (exit 1); exit 1; }; }
19632 if test $ol_enable_lmpasswd != no; then
19633 if test $ol_link_tls != yes ; then
19634 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19635 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19636 { (exit 1); exit 1; }; }
19640 cat >>confdefs.h <<\_ACEOF
19641 #define SLAPD_LMHASH 1
19648 case $ol_with_threads in auto | yes | nt)
19651 echo "$as_me:$LINENO: checking for _beginthread" >&5
19652 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19653 if test "${ac_cv_func__beginthread+set}" = set; then
19654 echo $ECHO_N "(cached) $ECHO_C" >&6
19656 cat >conftest.$ac_ext <<_ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19662 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19664 #define _beginthread innocuous__beginthread
19666 /* System header to define __stub macros and hopefully few prototypes,
19667 which can conflict with char _beginthread (); below.
19668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19669 <limits.h> exists even on freestanding compilers. */
19672 # include <limits.h>
19674 # include <assert.h>
19677 #undef _beginthread
19679 /* Override any gcc2 internal prototype to avoid an error. */
19684 /* We use char because int might match the return type of a gcc2
19685 builtin and then its argument prototype would still apply. */
19686 char _beginthread ();
19687 /* The GNU C library defines this for functions which it implements
19688 to always fail with ENOSYS. Some functions are actually named
19689 something starting with __ and the normal name is an alias. */
19690 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19693 char (*f) () = _beginthread;
19702 return f != _beginthread;
19707 rm -f conftest.$ac_objext conftest$ac_exeext
19708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19709 (eval $ac_link) 2>conftest.er1
19711 grep -v '^ *+' conftest.er1 >conftest.err
19713 cat conftest.err >&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } &&
19716 { ac_try='test -z "$ac_c_werror_flag"
19717 || test ! -s conftest.err'
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; } &&
19723 { ac_try='test -s conftest$ac_exeext'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
19729 ac_cv_func__beginthread=yes
19731 echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19734 ac_cv_func__beginthread=no
19736 rm -f conftest.err conftest.$ac_objext \
19737 conftest$ac_exeext conftest.$ac_ext
19739 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19740 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19743 if test $ac_cv_func__beginthread = yes ; then
19745 cat >>confdefs.h <<\_ACEOF
19746 #define HAVE_NT_THREADS 1
19749 ol_cv_nt_threads=yes
19753 if test "$ol_cv_nt_threads" = yes ; then
19755 ol_with_threads=found
19756 ol_with_yielding_select=yes
19759 cat >>confdefs.h <<\_ACEOF
19760 #define HAVE_NT_SERVICE_MANAGER 1
19764 cat >>confdefs.h <<\_ACEOF
19765 #define HAVE_NT_EVENT_LOG 1
19770 if test $ol_with_threads = nt ; then
19771 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19772 echo "$as_me: error: could not locate NT Threads" >&2;}
19773 { (exit 1); exit 1; }; }
19778 case $ol_with_threads in auto | yes | posix)
19781 for ac_header in pthread.h
19783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19785 echo "$as_me:$LINENO: checking for $ac_header" >&5
19786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19793 # Is the header compilable?
19794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19796 cat >conftest.$ac_ext <<_ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19802 $ac_includes_default
19803 #include <$ac_header>
19805 rm -f conftest.$ac_objext
19806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19807 (eval $ac_compile) 2>conftest.er1
19809 grep -v '^ *+' conftest.er1 >conftest.err
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } &&
19814 { ac_try='test -z "$ac_c_werror_flag"
19815 || test ! -s conftest.err'
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; } &&
19821 { ac_try='test -s conftest.$ac_objext'
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 ac_header_compiler=yes
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19832 ac_header_compiler=no
19834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19836 echo "${ECHO_T}$ac_header_compiler" >&6
19838 # Is the header present?
19839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19841 cat >conftest.$ac_ext <<_ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19847 #include <$ac_header>
19849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19852 grep -v '^ *+' conftest.er1 >conftest.err
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } >/dev/null; then
19857 if test -s conftest.err; then
19858 ac_cpp_err=$ac_c_preproc_warn_flag
19859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19866 if test -z "$ac_cpp_err"; then
19867 ac_header_preproc=yes
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19872 ac_header_preproc=no
19874 rm -f conftest.err conftest.$ac_ext
19875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19876 echo "${ECHO_T}$ac_header_preproc" >&6
19878 # So? What about this header?
19879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19885 ac_header_preproc=yes
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19902 ## --------------------------------------------- ##
19903 ## Report this to <http://www.openldap.org/its/> ##
19904 ## --------------------------------------------- ##
19907 sed "s/^/$as_me: WARNING: /" >&2
19910 echo "$as_me:$LINENO: checking for $ac_header" >&5
19911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 eval "$as_ac_Header=\$ac_header_preproc"
19917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19922 cat >>confdefs.h <<_ACEOF
19923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19931 if test $ac_cv_header_pthread_h = yes ; then
19932 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19933 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19934 if test "${ol_cv_pthread_version+set}" = set; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 cat >conftest.$ac_ext <<_ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19945 # include <pthread.h>
19951 int i = PTHREAD_CREATE_JOINABLE;
19957 rm -f conftest.$ac_objext
19958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19959 (eval $ac_compile) 2>conftest.er1
19961 grep -v '^ *+' conftest.er1 >conftest.err
19963 cat conftest.err >&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } &&
19966 { ac_try='test -z "$ac_c_werror_flag"
19967 || test ! -s conftest.err'
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest.$ac_objext'
19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; }; then
19980 cat >conftest.$ac_ext <<_ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19986 #include <pthread.h>
19989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19990 $EGREP "pthread_detach" >/dev/null 2>&1; then
19991 ol_cv_pthread_version=10
19993 ol_cv_pthread_version=8
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20002 cat >conftest.$ac_ext <<_ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20009 # include <pthread.h>
20010 # ifdef PTHREAD_CREATE_UNDETACHED
20015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20016 $EGREP "draft7" >/dev/null 2>&1; then
20017 ol_cv_pthread_version=7
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 #include <pthread.h>
20029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20030 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20031 ol_cv_pthread_version=6
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20041 # include <pthread.h>
20042 #ifdef PTHREAD_MUTEX_INITIALIZER
20047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20048 $EGREP "draft5" >/dev/null 2>&1; then
20049 ol_cv_pthread_version=5
20051 ol_cv_pthread_version=4
20062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20065 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20066 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20069 if test $ol_cv_pthread_version != 0 ; then
20071 cat >>confdefs.h <<_ACEOF
20072 #define HAVE_PTHREADS $ol_cv_pthread_version
20076 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20077 echo "$as_me: error: unknown pthread version" >&2;}
20078 { (exit 1); exit 1; }; }
20081 # consider threads found
20082 ol_with_threads=found
20085 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20086 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20087 if test "${ol_cv_header_linux_threads+set}" = set; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20090 cat >conftest.$ac_ext <<_ACEOF
20093 cat confdefs.h >>conftest.$ac_ext
20094 cat >>conftest.$ac_ext <<_ACEOF
20095 /* end confdefs.h. */
20096 #include <pthread.h>
20098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20099 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20100 ol_cv_header_linux_threads=yes
20102 ol_cv_header_linux_threads=no
20108 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20109 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20110 if test $ol_cv_header_linux_threads = yes; then
20112 cat >>confdefs.h <<\_ACEOF
20113 #define HAVE_LINUX_THREADS 1
20119 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20120 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20121 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20122 echo $ECHO_N "(cached) $ECHO_C" >&6
20124 cat >conftest.$ac_ext <<_ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h. */
20130 #include <pthread.h>
20131 #ifdef _POSIX_THREAD_IS_GNU_PTH
20136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20137 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20138 ol_cv_header_gnu_pth_pthread_h=yes
20140 ol_cv_header_gnu_pth_pthread_h=no
20146 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20147 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20150 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20152 for ac_header in sched.h
20154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20156 echo "$as_me:$LINENO: checking for $ac_header" >&5
20157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20164 # Is the header compilable?
20165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20167 cat >conftest.$ac_ext <<_ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 $ac_includes_default
20174 #include <$ac_header>
20176 rm -f conftest.$ac_objext
20177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20178 (eval $ac_compile) 2>conftest.er1
20180 grep -v '^ *+' conftest.er1 >conftest.err
20182 cat conftest.err >&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } &&
20185 { ac_try='test -z "$ac_c_werror_flag"
20186 || test ! -s conftest.err'
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; } &&
20192 { ac_try='test -s conftest.$ac_objext'
20193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; }; then
20198 ac_header_compiler=yes
20200 echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20203 ac_header_compiler=no
20205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20207 echo "${ECHO_T}$ac_header_compiler" >&6
20209 # Is the header present?
20210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20212 cat >conftest.$ac_ext <<_ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20218 #include <$ac_header>
20220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20223 grep -v '^ *+' conftest.er1 >conftest.err
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } >/dev/null; then
20228 if test -s conftest.err; then
20229 ac_cpp_err=$ac_c_preproc_warn_flag
20230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20237 if test -z "$ac_cpp_err"; then
20238 ac_header_preproc=yes
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 ac_header_preproc=no
20245 rm -f conftest.err conftest.$ac_ext
20246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20247 echo "${ECHO_T}$ac_header_preproc" >&6
20249 # So? What about this header?
20250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20256 ac_header_preproc=yes
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20273 ## --------------------------------------------- ##
20274 ## Report this to <http://www.openldap.org/its/> ##
20275 ## --------------------------------------------- ##
20278 sed "s/^/$as_me: WARNING: /" >&2
20281 echo "$as_me:$LINENO: checking for $ac_header" >&5
20282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
20286 eval "$as_ac_Header=\$ac_header_preproc"
20288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20293 cat >>confdefs.h <<_ACEOF
20294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20304 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20305 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20306 if test "${ol_cv_pthread_create+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 if test "$cross_compiling" = yes; then
20311 cat >conftest.$ac_ext <<_ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h. */
20318 /* pthread test headers */
20319 #include <pthread.h>
20320 #if HAVE_PTHREADS < 7
20324 #define NULL (void*)0
20327 static void *task(p)
20330 return (void *) (p == NULL);
20337 /* pthread test function */
20338 #ifndef PTHREAD_CREATE_DETACHED
20339 #define PTHREAD_CREATE_DETACHED 1
20343 int detach = PTHREAD_CREATE_DETACHED;
20345 #if HAVE_PTHREADS > 4
20346 /* Final pthreads */
20347 pthread_attr_t attr;
20349 status = pthread_attr_init(&attr);
20350 if( status ) return status;
20352 #if HAVE_PTHREADS < 7
20353 status = pthread_attr_setdetachstate(&attr, &detach);
20354 if( status < 0 ) status = errno;
20356 status = pthread_attr_setdetachstate(&attr, detach);
20358 if( status ) return status;
20359 status = pthread_create( &t, &attr, task, NULL );
20360 #if HAVE_PTHREADS < 7
20361 if( status < 0 ) status = errno;
20363 if( status ) return status;
20365 /* Draft 4 pthreads */
20366 status = pthread_create( &t, pthread_attr_default, task, NULL );
20367 if( status ) return errno;
20369 /* give thread a chance to complete */
20370 /* it should remain joinable and hence detachable */
20373 status = pthread_detach( &t );
20374 if( status ) return errno;
20377 #ifdef HAVE_LINUX_THREADS
20378 pthread_kill_other_threads_np();
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20389 (eval $ac_link) 2>conftest.er1
20391 grep -v '^ *+' conftest.er1 >conftest.err
20393 cat conftest.err >&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } &&
20396 { ac_try='test -z "$ac_c_werror_flag"
20397 || test ! -s conftest.err'
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399 (eval $ac_try) 2>&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; } &&
20403 { ac_try='test -s conftest$ac_exeext'
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405 (eval $ac_try) 2>&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; }; then
20409 ol_cv_pthread_create=yes
20411 echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20414 ol_cv_pthread_create=no
20416 rm -f conftest.err conftest.$ac_objext \
20417 conftest$ac_exeext conftest.$ac_ext
20419 cat >conftest.$ac_ext <<_ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20426 /* pthread test headers */
20427 #include <pthread.h>
20428 #if HAVE_PTHREADS < 7
20432 #define NULL (void*)0
20435 static void *task(p)
20438 return (void *) (p == NULL);
20442 int main(argc, argv)
20447 /* pthread test function */
20448 #ifndef PTHREAD_CREATE_DETACHED
20449 #define PTHREAD_CREATE_DETACHED 1
20453 int detach = PTHREAD_CREATE_DETACHED;
20455 #if HAVE_PTHREADS > 4
20456 /* Final pthreads */
20457 pthread_attr_t attr;
20459 status = pthread_attr_init(&attr);
20460 if( status ) return status;
20462 #if HAVE_PTHREADS < 7
20463 status = pthread_attr_setdetachstate(&attr, &detach);
20464 if( status < 0 ) status = errno;
20466 status = pthread_attr_setdetachstate(&attr, detach);
20468 if( status ) return status;
20469 status = pthread_create( &t, &attr, task, NULL );
20470 #if HAVE_PTHREADS < 7
20471 if( status < 0 ) status = errno;
20473 if( status ) return status;
20475 /* Draft 4 pthreads */
20476 status = pthread_create( &t, pthread_attr_default, task, NULL );
20477 if( status ) return errno;
20479 /* give thread a chance to complete */
20480 /* it should remain joinable and hence detachable */
20483 status = pthread_detach( &t );
20484 if( status ) return errno;
20487 #ifdef HAVE_LINUX_THREADS
20488 pthread_kill_other_threads_np();
20496 rm -f conftest$ac_exeext
20497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20498 (eval $ac_link) 2>&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ol_cv_pthread_create=yes
20509 echo "$as_me: program exited with status $ac_status" >&5
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 ( exit $ac_status )
20514 ol_cv_pthread_create=no
20516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20519 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20520 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20522 if test $ol_cv_pthread_create != no ; then
20523 ol_link_threads=posix
20524 ol_link_pthreads=""
20527 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20528 if test "$ol_link_threads" = no ; then
20530 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20531 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20532 if test "${ol_cv_pthread_kthread+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20538 LIBS="-kthread $LIBS"
20540 if test "$cross_compiling" = yes; then
20541 cat >conftest.$ac_ext <<_ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h. */
20548 /* pthread test headers */
20549 #include <pthread.h>
20550 #if HAVE_PTHREADS < 7
20554 #define NULL (void*)0
20557 static void *task(p)
20560 return (void *) (p == NULL);
20567 /* pthread test function */
20568 #ifndef PTHREAD_CREATE_DETACHED
20569 #define PTHREAD_CREATE_DETACHED 1
20573 int detach = PTHREAD_CREATE_DETACHED;
20575 #if HAVE_PTHREADS > 4
20576 /* Final pthreads */
20577 pthread_attr_t attr;
20579 status = pthread_attr_init(&attr);
20580 if( status ) return status;
20582 #if HAVE_PTHREADS < 7
20583 status = pthread_attr_setdetachstate(&attr, &detach);
20584 if( status < 0 ) status = errno;
20586 status = pthread_attr_setdetachstate(&attr, detach);
20588 if( status ) return status;
20589 status = pthread_create( &t, &attr, task, NULL );
20590 #if HAVE_PTHREADS < 7
20591 if( status < 0 ) status = errno;
20593 if( status ) return status;
20595 /* Draft 4 pthreads */
20596 status = pthread_create( &t, pthread_attr_default, task, NULL );
20597 if( status ) return errno;
20599 /* give thread a chance to complete */
20600 /* it should remain joinable and hence detachable */
20603 status = pthread_detach( &t );
20604 if( status ) return errno;
20607 #ifdef HAVE_LINUX_THREADS
20608 pthread_kill_other_threads_np();
20617 rm -f conftest.$ac_objext conftest$ac_exeext
20618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20619 (eval $ac_link) 2>conftest.er1
20621 grep -v '^ *+' conftest.er1 >conftest.err
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } &&
20626 { ac_try='test -z "$ac_c_werror_flag"
20627 || test ! -s conftest.err'
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try='test -s conftest$ac_exeext'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; }; then
20639 ol_cv_pthread_kthread=yes
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20644 ol_cv_pthread_kthread=no
20646 rm -f conftest.err conftest.$ac_objext \
20647 conftest$ac_exeext conftest.$ac_ext
20649 cat >conftest.$ac_ext <<_ACEOF
20652 cat confdefs.h >>conftest.$ac_ext
20653 cat >>conftest.$ac_ext <<_ACEOF
20654 /* end confdefs.h. */
20656 /* pthread test headers */
20657 #include <pthread.h>
20658 #if HAVE_PTHREADS < 7
20662 #define NULL (void*)0
20665 static void *task(p)
20668 return (void *) (p == NULL);
20672 int main(argc, argv)
20677 /* pthread test function */
20678 #ifndef PTHREAD_CREATE_DETACHED
20679 #define PTHREAD_CREATE_DETACHED 1
20683 int detach = PTHREAD_CREATE_DETACHED;
20685 #if HAVE_PTHREADS > 4
20686 /* Final pthreads */
20687 pthread_attr_t attr;
20689 status = pthread_attr_init(&attr);
20690 if( status ) return status;
20692 #if HAVE_PTHREADS < 7
20693 status = pthread_attr_setdetachstate(&attr, &detach);
20694 if( status < 0 ) status = errno;
20696 status = pthread_attr_setdetachstate(&attr, detach);
20698 if( status ) return status;
20699 status = pthread_create( &t, &attr, task, NULL );
20700 #if HAVE_PTHREADS < 7
20701 if( status < 0 ) status = errno;
20703 if( status ) return status;
20705 /* Draft 4 pthreads */
20706 status = pthread_create( &t, pthread_attr_default, task, NULL );
20707 if( status ) return errno;
20709 /* give thread a chance to complete */
20710 /* it should remain joinable and hence detachable */
20713 status = pthread_detach( &t );
20714 if( status ) return errno;
20717 #ifdef HAVE_LINUX_THREADS
20718 pthread_kill_other_threads_np();
20726 rm -f conftest$ac_exeext
20727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20728 (eval $ac_link) 2>&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20733 (eval $ac_try) 2>&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; }; then
20737 ol_cv_pthread_kthread=yes
20739 echo "$as_me: program exited with status $ac_status" >&5
20740 echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.$ac_ext >&5
20743 ( exit $ac_status )
20744 ol_cv_pthread_kthread=no
20746 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20753 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20754 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20756 if test $ol_cv_pthread_kthread = yes ; then
20757 ol_link_pthreads="-kthread"
20758 ol_link_threads=posix
20762 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20763 if test "$ol_link_threads" = no ; then
20765 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20766 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20767 if test "${ol_cv_pthread_pthread+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20773 LIBS="-pthread $LIBS"
20775 if test "$cross_compiling" = yes; then
20776 cat >conftest.$ac_ext <<_ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20783 /* pthread test headers */
20784 #include <pthread.h>
20785 #if HAVE_PTHREADS < 7
20789 #define NULL (void*)0
20792 static void *task(p)
20795 return (void *) (p == NULL);
20802 /* pthread test function */
20803 #ifndef PTHREAD_CREATE_DETACHED
20804 #define PTHREAD_CREATE_DETACHED 1
20808 int detach = PTHREAD_CREATE_DETACHED;
20810 #if HAVE_PTHREADS > 4
20811 /* Final pthreads */
20812 pthread_attr_t attr;
20814 status = pthread_attr_init(&attr);
20815 if( status ) return status;
20817 #if HAVE_PTHREADS < 7
20818 status = pthread_attr_setdetachstate(&attr, &detach);
20819 if( status < 0 ) status = errno;
20821 status = pthread_attr_setdetachstate(&attr, detach);
20823 if( status ) return status;
20824 status = pthread_create( &t, &attr, task, NULL );
20825 #if HAVE_PTHREADS < 7
20826 if( status < 0 ) status = errno;
20828 if( status ) return status;
20830 /* Draft 4 pthreads */
20831 status = pthread_create( &t, pthread_attr_default, task, NULL );
20832 if( status ) return errno;
20834 /* give thread a chance to complete */
20835 /* it should remain joinable and hence detachable */
20838 status = pthread_detach( &t );
20839 if( status ) return errno;
20842 #ifdef HAVE_LINUX_THREADS
20843 pthread_kill_other_threads_np();
20852 rm -f conftest.$ac_objext conftest$ac_exeext
20853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20854 (eval $ac_link) 2>conftest.er1
20856 grep -v '^ *+' conftest.er1 >conftest.err
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
20861 { ac_try='test -z "$ac_c_werror_flag"
20862 || test ! -s conftest.err'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; } &&
20868 { ac_try='test -s conftest$ac_exeext'
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; }; then
20874 ol_cv_pthread_pthread=yes
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20879 ol_cv_pthread_pthread=no
20881 rm -f conftest.err conftest.$ac_objext \
20882 conftest$ac_exeext conftest.$ac_ext
20884 cat >conftest.$ac_ext <<_ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h. */
20891 /* pthread test headers */
20892 #include <pthread.h>
20893 #if HAVE_PTHREADS < 7
20897 #define NULL (void*)0
20900 static void *task(p)
20903 return (void *) (p == NULL);
20907 int main(argc, argv)
20912 /* pthread test function */
20913 #ifndef PTHREAD_CREATE_DETACHED
20914 #define PTHREAD_CREATE_DETACHED 1
20918 int detach = PTHREAD_CREATE_DETACHED;
20920 #if HAVE_PTHREADS > 4
20921 /* Final pthreads */
20922 pthread_attr_t attr;
20924 status = pthread_attr_init(&attr);
20925 if( status ) return status;
20927 #if HAVE_PTHREADS < 7
20928 status = pthread_attr_setdetachstate(&attr, &detach);
20929 if( status < 0 ) status = errno;
20931 status = pthread_attr_setdetachstate(&attr, detach);
20933 if( status ) return status;
20934 status = pthread_create( &t, &attr, task, NULL );
20935 #if HAVE_PTHREADS < 7
20936 if( status < 0 ) status = errno;
20938 if( status ) return status;
20940 /* Draft 4 pthreads */
20941 status = pthread_create( &t, pthread_attr_default, task, NULL );
20942 if( status ) return errno;
20944 /* give thread a chance to complete */
20945 /* it should remain joinable and hence detachable */
20948 status = pthread_detach( &t );
20949 if( status ) return errno;
20952 #ifdef HAVE_LINUX_THREADS
20953 pthread_kill_other_threads_np();
20961 rm -f conftest$ac_exeext
20962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20963 (eval $ac_link) 2>&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 ol_cv_pthread_pthread=yes
20974 echo "$as_me: program exited with status $ac_status" >&5
20975 echo "$as_me: failed program was:" >&5
20976 sed 's/^/| /' conftest.$ac_ext >&5
20978 ( exit $ac_status )
20979 ol_cv_pthread_pthread=no
20981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20988 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20989 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20991 if test $ol_cv_pthread_pthread = yes ; then
20992 ol_link_pthreads="-pthread"
20993 ol_link_threads=posix
20997 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20998 if test "$ol_link_threads" = no ; then
21000 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21001 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21002 if test "${ol_cv_pthread_pthreads+set}" = set; then
21003 echo $ECHO_N "(cached) $ECHO_C" >&6
21008 LIBS="-pthreads $LIBS"
21010 if test "$cross_compiling" = yes; then
21011 cat >conftest.$ac_ext <<_ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21018 /* pthread test headers */
21019 #include <pthread.h>
21020 #if HAVE_PTHREADS < 7
21024 #define NULL (void*)0
21027 static void *task(p)
21030 return (void *) (p == NULL);
21037 /* pthread test function */
21038 #ifndef PTHREAD_CREATE_DETACHED
21039 #define PTHREAD_CREATE_DETACHED 1
21043 int detach = PTHREAD_CREATE_DETACHED;
21045 #if HAVE_PTHREADS > 4
21046 /* Final pthreads */
21047 pthread_attr_t attr;
21049 status = pthread_attr_init(&attr);
21050 if( status ) return status;
21052 #if HAVE_PTHREADS < 7
21053 status = pthread_attr_setdetachstate(&attr, &detach);
21054 if( status < 0 ) status = errno;
21056 status = pthread_attr_setdetachstate(&attr, detach);
21058 if( status ) return status;
21059 status = pthread_create( &t, &attr, task, NULL );
21060 #if HAVE_PTHREADS < 7
21061 if( status < 0 ) status = errno;
21063 if( status ) return status;
21065 /* Draft 4 pthreads */
21066 status = pthread_create( &t, pthread_attr_default, task, NULL );
21067 if( status ) return errno;
21069 /* give thread a chance to complete */
21070 /* it should remain joinable and hence detachable */
21073 status = pthread_detach( &t );
21074 if( status ) return errno;
21077 #ifdef HAVE_LINUX_THREADS
21078 pthread_kill_other_threads_np();
21087 rm -f conftest.$ac_objext conftest$ac_exeext
21088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21089 (eval $ac_link) 2>conftest.er1
21091 grep -v '^ *+' conftest.er1 >conftest.err
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
21096 { ac_try='test -z "$ac_c_werror_flag"
21097 || test ! -s conftest.err'
21098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21099 (eval $ac_try) 2>&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); }; } &&
21103 { ac_try='test -s conftest$ac_exeext'
21104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; }; then
21109 ol_cv_pthread_pthreads=yes
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 ol_cv_pthread_pthreads=no
21116 rm -f conftest.err conftest.$ac_objext \
21117 conftest$ac_exeext conftest.$ac_ext
21119 cat >conftest.$ac_ext <<_ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21126 /* pthread test headers */
21127 #include <pthread.h>
21128 #if HAVE_PTHREADS < 7
21132 #define NULL (void*)0
21135 static void *task(p)
21138 return (void *) (p == NULL);
21142 int main(argc, argv)
21147 /* pthread test function */
21148 #ifndef PTHREAD_CREATE_DETACHED
21149 #define PTHREAD_CREATE_DETACHED 1
21153 int detach = PTHREAD_CREATE_DETACHED;
21155 #if HAVE_PTHREADS > 4
21156 /* Final pthreads */
21157 pthread_attr_t attr;
21159 status = pthread_attr_init(&attr);
21160 if( status ) return status;
21162 #if HAVE_PTHREADS < 7
21163 status = pthread_attr_setdetachstate(&attr, &detach);
21164 if( status < 0 ) status = errno;
21166 status = pthread_attr_setdetachstate(&attr, detach);
21168 if( status ) return status;
21169 status = pthread_create( &t, &attr, task, NULL );
21170 #if HAVE_PTHREADS < 7
21171 if( status < 0 ) status = errno;
21173 if( status ) return status;
21175 /* Draft 4 pthreads */
21176 status = pthread_create( &t, pthread_attr_default, task, NULL );
21177 if( status ) return errno;
21179 /* give thread a chance to complete */
21180 /* it should remain joinable and hence detachable */
21183 status = pthread_detach( &t );
21184 if( status ) return errno;
21187 #ifdef HAVE_LINUX_THREADS
21188 pthread_kill_other_threads_np();
21196 rm -f conftest$ac_exeext
21197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21198 (eval $ac_link) 2>&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; }; then
21207 ol_cv_pthread_pthreads=yes
21209 echo "$as_me: program exited with status $ac_status" >&5
21210 echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21213 ( exit $ac_status )
21214 ol_cv_pthread_pthreads=no
21216 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21223 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21224 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21226 if test $ol_cv_pthread_pthreads = yes ; then
21227 ol_link_pthreads="-pthreads"
21228 ol_link_threads=posix
21232 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21233 if test "$ol_link_threads" = no ; then
21235 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21236 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21237 if test "${ol_cv_pthread_mthreads+set}" = set; then
21238 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 LIBS="-mthreads $LIBS"
21245 if test "$cross_compiling" = yes; then
21246 cat >conftest.$ac_ext <<_ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h. */
21253 /* pthread test headers */
21254 #include <pthread.h>
21255 #if HAVE_PTHREADS < 7
21259 #define NULL (void*)0
21262 static void *task(p)
21265 return (void *) (p == NULL);
21272 /* pthread test function */
21273 #ifndef PTHREAD_CREATE_DETACHED
21274 #define PTHREAD_CREATE_DETACHED 1
21278 int detach = PTHREAD_CREATE_DETACHED;
21280 #if HAVE_PTHREADS > 4
21281 /* Final pthreads */
21282 pthread_attr_t attr;
21284 status = pthread_attr_init(&attr);
21285 if( status ) return status;
21287 #if HAVE_PTHREADS < 7
21288 status = pthread_attr_setdetachstate(&attr, &detach);
21289 if( status < 0 ) status = errno;
21291 status = pthread_attr_setdetachstate(&attr, detach);
21293 if( status ) return status;
21294 status = pthread_create( &t, &attr, task, NULL );
21295 #if HAVE_PTHREADS < 7
21296 if( status < 0 ) status = errno;
21298 if( status ) return status;
21300 /* Draft 4 pthreads */
21301 status = pthread_create( &t, pthread_attr_default, task, NULL );
21302 if( status ) return errno;
21304 /* give thread a chance to complete */
21305 /* it should remain joinable and hence detachable */
21308 status = pthread_detach( &t );
21309 if( status ) return errno;
21312 #ifdef HAVE_LINUX_THREADS
21313 pthread_kill_other_threads_np();
21322 rm -f conftest.$ac_objext conftest$ac_exeext
21323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21324 (eval $ac_link) 2>conftest.er1
21326 grep -v '^ *+' conftest.er1 >conftest.err
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } &&
21331 { ac_try='test -z "$ac_c_werror_flag"
21332 || test ! -s conftest.err'
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; } &&
21338 { ac_try='test -s conftest$ac_exeext'
21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340 (eval $ac_try) 2>&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); }; }; then
21344 ol_cv_pthread_mthreads=yes
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 ol_cv_pthread_mthreads=no
21351 rm -f conftest.err conftest.$ac_objext \
21352 conftest$ac_exeext conftest.$ac_ext
21354 cat >conftest.$ac_ext <<_ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21361 /* pthread test headers */
21362 #include <pthread.h>
21363 #if HAVE_PTHREADS < 7
21367 #define NULL (void*)0
21370 static void *task(p)
21373 return (void *) (p == NULL);
21377 int main(argc, argv)
21382 /* pthread test function */
21383 #ifndef PTHREAD_CREATE_DETACHED
21384 #define PTHREAD_CREATE_DETACHED 1
21388 int detach = PTHREAD_CREATE_DETACHED;
21390 #if HAVE_PTHREADS > 4
21391 /* Final pthreads */
21392 pthread_attr_t attr;
21394 status = pthread_attr_init(&attr);
21395 if( status ) return status;
21397 #if HAVE_PTHREADS < 7
21398 status = pthread_attr_setdetachstate(&attr, &detach);
21399 if( status < 0 ) status = errno;
21401 status = pthread_attr_setdetachstate(&attr, detach);
21403 if( status ) return status;
21404 status = pthread_create( &t, &attr, task, NULL );
21405 #if HAVE_PTHREADS < 7
21406 if( status < 0 ) status = errno;
21408 if( status ) return status;
21410 /* Draft 4 pthreads */
21411 status = pthread_create( &t, pthread_attr_default, task, NULL );
21412 if( status ) return errno;
21414 /* give thread a chance to complete */
21415 /* it should remain joinable and hence detachable */
21418 status = pthread_detach( &t );
21419 if( status ) return errno;
21422 #ifdef HAVE_LINUX_THREADS
21423 pthread_kill_other_threads_np();
21431 rm -f conftest$ac_exeext
21432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21433 (eval $ac_link) 2>&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; }; then
21442 ol_cv_pthread_mthreads=yes
21444 echo "$as_me: program exited with status $ac_status" >&5
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ( exit $ac_status )
21449 ol_cv_pthread_mthreads=no
21451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21458 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21459 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21461 if test $ol_cv_pthread_mthreads = yes ; then
21462 ol_link_pthreads="-mthreads"
21463 ol_link_threads=posix
21467 # Pthread try link: -thread (ol_cv_pthread_thread)
21468 if test "$ol_link_threads" = no ; then
21470 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21471 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21472 if test "${ol_cv_pthread_thread+set}" = set; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21478 LIBS="-thread $LIBS"
21480 if test "$cross_compiling" = yes; then
21481 cat >conftest.$ac_ext <<_ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21488 /* pthread test headers */
21489 #include <pthread.h>
21490 #if HAVE_PTHREADS < 7
21494 #define NULL (void*)0
21497 static void *task(p)
21500 return (void *) (p == NULL);
21507 /* pthread test function */
21508 #ifndef PTHREAD_CREATE_DETACHED
21509 #define PTHREAD_CREATE_DETACHED 1
21513 int detach = PTHREAD_CREATE_DETACHED;
21515 #if HAVE_PTHREADS > 4
21516 /* Final pthreads */
21517 pthread_attr_t attr;
21519 status = pthread_attr_init(&attr);
21520 if( status ) return status;
21522 #if HAVE_PTHREADS < 7
21523 status = pthread_attr_setdetachstate(&attr, &detach);
21524 if( status < 0 ) status = errno;
21526 status = pthread_attr_setdetachstate(&attr, detach);
21528 if( status ) return status;
21529 status = pthread_create( &t, &attr, task, NULL );
21530 #if HAVE_PTHREADS < 7
21531 if( status < 0 ) status = errno;
21533 if( status ) return status;
21535 /* Draft 4 pthreads */
21536 status = pthread_create( &t, pthread_attr_default, task, NULL );
21537 if( status ) return errno;
21539 /* give thread a chance to complete */
21540 /* it should remain joinable and hence detachable */
21543 status = pthread_detach( &t );
21544 if( status ) return errno;
21547 #ifdef HAVE_LINUX_THREADS
21548 pthread_kill_other_threads_np();
21557 rm -f conftest.$ac_objext conftest$ac_exeext
21558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21559 (eval $ac_link) 2>conftest.er1
21561 grep -v '^ *+' conftest.er1 >conftest.err
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
21566 { ac_try='test -z "$ac_c_werror_flag"
21567 || test ! -s conftest.err'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest$ac_exeext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 ol_cv_pthread_thread=yes
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21584 ol_cv_pthread_thread=no
21586 rm -f conftest.err conftest.$ac_objext \
21587 conftest$ac_exeext conftest.$ac_ext
21589 cat >conftest.$ac_ext <<_ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h. */
21596 /* pthread test headers */
21597 #include <pthread.h>
21598 #if HAVE_PTHREADS < 7
21602 #define NULL (void*)0
21605 static void *task(p)
21608 return (void *) (p == NULL);
21612 int main(argc, argv)
21617 /* pthread test function */
21618 #ifndef PTHREAD_CREATE_DETACHED
21619 #define PTHREAD_CREATE_DETACHED 1
21623 int detach = PTHREAD_CREATE_DETACHED;
21625 #if HAVE_PTHREADS > 4
21626 /* Final pthreads */
21627 pthread_attr_t attr;
21629 status = pthread_attr_init(&attr);
21630 if( status ) return status;
21632 #if HAVE_PTHREADS < 7
21633 status = pthread_attr_setdetachstate(&attr, &detach);
21634 if( status < 0 ) status = errno;
21636 status = pthread_attr_setdetachstate(&attr, detach);
21638 if( status ) return status;
21639 status = pthread_create( &t, &attr, task, NULL );
21640 #if HAVE_PTHREADS < 7
21641 if( status < 0 ) status = errno;
21643 if( status ) return status;
21645 /* Draft 4 pthreads */
21646 status = pthread_create( &t, pthread_attr_default, task, NULL );
21647 if( status ) return errno;
21649 /* give thread a chance to complete */
21650 /* it should remain joinable and hence detachable */
21653 status = pthread_detach( &t );
21654 if( status ) return errno;
21657 #ifdef HAVE_LINUX_THREADS
21658 pthread_kill_other_threads_np();
21666 rm -f conftest$ac_exeext
21667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21668 (eval $ac_link) 2>&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
21677 ol_cv_pthread_thread=yes
21679 echo "$as_me: program exited with status $ac_status" >&5
21680 echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 ( exit $ac_status )
21684 ol_cv_pthread_thread=no
21686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21693 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21694 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21696 if test $ol_cv_pthread_thread = yes ; then
21697 ol_link_pthreads="-thread"
21698 ol_link_threads=posix
21703 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21704 if test "$ol_link_threads" = no ; then
21705 # try -lpthread -lmach -lexc -lc_r
21706 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21707 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21708 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21709 echo $ECHO_N "(cached) $ECHO_C" >&6
21714 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21716 if test "$cross_compiling" = yes; then
21717 cat >conftest.$ac_ext <<_ACEOF
21720 cat confdefs.h >>conftest.$ac_ext
21721 cat >>conftest.$ac_ext <<_ACEOF
21722 /* end confdefs.h. */
21724 /* pthread test headers */
21725 #include <pthread.h>
21726 #if HAVE_PTHREADS < 7
21730 #define NULL (void*)0
21733 static void *task(p)
21736 return (void *) (p == NULL);
21743 /* pthread test function */
21744 #ifndef PTHREAD_CREATE_DETACHED
21745 #define PTHREAD_CREATE_DETACHED 1
21749 int detach = PTHREAD_CREATE_DETACHED;
21751 #if HAVE_PTHREADS > 4
21752 /* Final pthreads */
21753 pthread_attr_t attr;
21755 status = pthread_attr_init(&attr);
21756 if( status ) return status;
21758 #if HAVE_PTHREADS < 7
21759 status = pthread_attr_setdetachstate(&attr, &detach);
21760 if( status < 0 ) status = errno;
21762 status = pthread_attr_setdetachstate(&attr, detach);
21764 if( status ) return status;
21765 status = pthread_create( &t, &attr, task, NULL );
21766 #if HAVE_PTHREADS < 7
21767 if( status < 0 ) status = errno;
21769 if( status ) return status;
21771 /* Draft 4 pthreads */
21772 status = pthread_create( &t, pthread_attr_default, task, NULL );
21773 if( status ) return errno;
21775 /* give thread a chance to complete */
21776 /* it should remain joinable and hence detachable */
21779 status = pthread_detach( &t );
21780 if( status ) return errno;
21783 #ifdef HAVE_LINUX_THREADS
21784 pthread_kill_other_threads_np();
21793 rm -f conftest.$ac_objext conftest$ac_exeext
21794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21795 (eval $ac_link) 2>conftest.er1
21797 grep -v '^ *+' conftest.er1 >conftest.err
21799 cat conftest.err >&5
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } &&
21802 { ac_try='test -z "$ac_c_werror_flag"
21803 || test ! -s conftest.err'
21804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805 (eval $ac_try) 2>&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); }; } &&
21809 { ac_try='test -s conftest$ac_exeext'
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; }; then
21815 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21822 rm -f conftest.err conftest.$ac_objext \
21823 conftest$ac_exeext conftest.$ac_ext
21825 cat >conftest.$ac_ext <<_ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21832 /* pthread test headers */
21833 #include <pthread.h>
21834 #if HAVE_PTHREADS < 7
21838 #define NULL (void*)0
21841 static void *task(p)
21844 return (void *) (p == NULL);
21848 int main(argc, argv)
21853 /* pthread test function */
21854 #ifndef PTHREAD_CREATE_DETACHED
21855 #define PTHREAD_CREATE_DETACHED 1
21859 int detach = PTHREAD_CREATE_DETACHED;
21861 #if HAVE_PTHREADS > 4
21862 /* Final pthreads */
21863 pthread_attr_t attr;
21865 status = pthread_attr_init(&attr);
21866 if( status ) return status;
21868 #if HAVE_PTHREADS < 7
21869 status = pthread_attr_setdetachstate(&attr, &detach);
21870 if( status < 0 ) status = errno;
21872 status = pthread_attr_setdetachstate(&attr, detach);
21874 if( status ) return status;
21875 status = pthread_create( &t, &attr, task, NULL );
21876 #if HAVE_PTHREADS < 7
21877 if( status < 0 ) status = errno;
21879 if( status ) return status;
21881 /* Draft 4 pthreads */
21882 status = pthread_create( &t, pthread_attr_default, task, NULL );
21883 if( status ) return errno;
21885 /* give thread a chance to complete */
21886 /* it should remain joinable and hence detachable */
21889 status = pthread_detach( &t );
21890 if( status ) return errno;
21893 #ifdef HAVE_LINUX_THREADS
21894 pthread_kill_other_threads_np();
21902 rm -f conftest$ac_exeext
21903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21904 (eval $ac_link) 2>&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; }; then
21913 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21915 echo "$as_me: program exited with status $ac_status" >&5
21916 echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21919 ( exit $ac_status )
21920 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21922 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21929 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21930 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21932 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21933 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21934 ol_link_threads=posix
21938 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21939 if test "$ol_link_threads" = no ; then
21940 # try -lpthread -lmach -lexc
21941 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21942 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21943 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21949 LIBS="-lpthread -lmach -lexc $LIBS"
21951 if test "$cross_compiling" = yes; then
21952 cat >conftest.$ac_ext <<_ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21959 /* pthread test headers */
21960 #include <pthread.h>
21961 #if HAVE_PTHREADS < 7
21965 #define NULL (void*)0
21968 static void *task(p)
21971 return (void *) (p == NULL);
21978 /* pthread test function */
21979 #ifndef PTHREAD_CREATE_DETACHED
21980 #define PTHREAD_CREATE_DETACHED 1
21984 int detach = PTHREAD_CREATE_DETACHED;
21986 #if HAVE_PTHREADS > 4
21987 /* Final pthreads */
21988 pthread_attr_t attr;
21990 status = pthread_attr_init(&attr);
21991 if( status ) return status;
21993 #if HAVE_PTHREADS < 7
21994 status = pthread_attr_setdetachstate(&attr, &detach);
21995 if( status < 0 ) status = errno;
21997 status = pthread_attr_setdetachstate(&attr, detach);
21999 if( status ) return status;
22000 status = pthread_create( &t, &attr, task, NULL );
22001 #if HAVE_PTHREADS < 7
22002 if( status < 0 ) status = errno;
22004 if( status ) return status;
22006 /* Draft 4 pthreads */
22007 status = pthread_create( &t, pthread_attr_default, task, NULL );
22008 if( status ) return errno;
22010 /* give thread a chance to complete */
22011 /* it should remain joinable and hence detachable */
22014 status = pthread_detach( &t );
22015 if( status ) return errno;
22018 #ifdef HAVE_LINUX_THREADS
22019 pthread_kill_other_threads_np();
22028 rm -f conftest.$ac_objext conftest$ac_exeext
22029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22030 (eval $ac_link) 2>conftest.er1
22032 grep -v '^ *+' conftest.er1 >conftest.err
22034 cat conftest.err >&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } &&
22037 { ac_try='test -z "$ac_c_werror_flag"
22038 || test ! -s conftest.err'
22039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22040 (eval $ac_try) 2>&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); }; } &&
22044 { ac_try='test -s conftest$ac_exeext'
22045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046 (eval $ac_try) 2>&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); }; }; then
22050 ol_cv_pthread_lpthread_lmach_lexc=yes
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 ol_cv_pthread_lpthread_lmach_lexc=no
22057 rm -f conftest.err conftest.$ac_objext \
22058 conftest$ac_exeext conftest.$ac_ext
22060 cat >conftest.$ac_ext <<_ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22067 /* pthread test headers */
22068 #include <pthread.h>
22069 #if HAVE_PTHREADS < 7
22073 #define NULL (void*)0
22076 static void *task(p)
22079 return (void *) (p == NULL);
22083 int main(argc, argv)
22088 /* pthread test function */
22089 #ifndef PTHREAD_CREATE_DETACHED
22090 #define PTHREAD_CREATE_DETACHED 1
22094 int detach = PTHREAD_CREATE_DETACHED;
22096 #if HAVE_PTHREADS > 4
22097 /* Final pthreads */
22098 pthread_attr_t attr;
22100 status = pthread_attr_init(&attr);
22101 if( status ) return status;
22103 #if HAVE_PTHREADS < 7
22104 status = pthread_attr_setdetachstate(&attr, &detach);
22105 if( status < 0 ) status = errno;
22107 status = pthread_attr_setdetachstate(&attr, detach);
22109 if( status ) return status;
22110 status = pthread_create( &t, &attr, task, NULL );
22111 #if HAVE_PTHREADS < 7
22112 if( status < 0 ) status = errno;
22114 if( status ) return status;
22116 /* Draft 4 pthreads */
22117 status = pthread_create( &t, pthread_attr_default, task, NULL );
22118 if( status ) return errno;
22120 /* give thread a chance to complete */
22121 /* it should remain joinable and hence detachable */
22124 status = pthread_detach( &t );
22125 if( status ) return errno;
22128 #ifdef HAVE_LINUX_THREADS
22129 pthread_kill_other_threads_np();
22137 rm -f conftest$ac_exeext
22138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22139 (eval $ac_link) 2>&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; }; then
22148 ol_cv_pthread_lpthread_lmach_lexc=yes
22150 echo "$as_me: program exited with status $ac_status" >&5
22151 echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22154 ( exit $ac_status )
22155 ol_cv_pthread_lpthread_lmach_lexc=no
22157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22164 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22165 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22167 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22168 ol_link_pthreads="-lpthread -lmach -lexc"
22169 ol_link_threads=posix
22174 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22175 if test "$ol_link_threads" = no ; then
22176 # try -lpthread -Wl,-woff,85
22177 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22178 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22179 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22180 echo $ECHO_N "(cached) $ECHO_C" >&6
22185 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22187 if test "$cross_compiling" = yes; then
22188 cat >conftest.$ac_ext <<_ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22195 /* pthread test headers */
22196 #include <pthread.h>
22197 #if HAVE_PTHREADS < 7
22201 #define NULL (void*)0
22204 static void *task(p)
22207 return (void *) (p == NULL);
22214 /* pthread test function */
22215 #ifndef PTHREAD_CREATE_DETACHED
22216 #define PTHREAD_CREATE_DETACHED 1
22220 int detach = PTHREAD_CREATE_DETACHED;
22222 #if HAVE_PTHREADS > 4
22223 /* Final pthreads */
22224 pthread_attr_t attr;
22226 status = pthread_attr_init(&attr);
22227 if( status ) return status;
22229 #if HAVE_PTHREADS < 7
22230 status = pthread_attr_setdetachstate(&attr, &detach);
22231 if( status < 0 ) status = errno;
22233 status = pthread_attr_setdetachstate(&attr, detach);
22235 if( status ) return status;
22236 status = pthread_create( &t, &attr, task, NULL );
22237 #if HAVE_PTHREADS < 7
22238 if( status < 0 ) status = errno;
22240 if( status ) return status;
22242 /* Draft 4 pthreads */
22243 status = pthread_create( &t, pthread_attr_default, task, NULL );
22244 if( status ) return errno;
22246 /* give thread a chance to complete */
22247 /* it should remain joinable and hence detachable */
22250 status = pthread_detach( &t );
22251 if( status ) return errno;
22254 #ifdef HAVE_LINUX_THREADS
22255 pthread_kill_other_threads_np();
22264 rm -f conftest.$ac_objext conftest$ac_exeext
22265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22266 (eval $ac_link) 2>conftest.er1
22268 grep -v '^ *+' conftest.er1 >conftest.err
22270 cat conftest.err >&5
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); } &&
22273 { ac_try='test -z "$ac_c_werror_flag"
22274 || test ! -s conftest.err'
22275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22276 (eval $ac_try) 2>&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); }; } &&
22280 { ac_try='test -s conftest$ac_exeext'
22281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22282 (eval $ac_try) 2>&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); }; }; then
22286 ol_cv_pthread_lib_lpthread_woff=yes
22288 echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22291 ol_cv_pthread_lib_lpthread_woff=no
22293 rm -f conftest.err conftest.$ac_objext \
22294 conftest$ac_exeext conftest.$ac_ext
22296 cat >conftest.$ac_ext <<_ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h. */
22303 /* pthread test headers */
22304 #include <pthread.h>
22305 #if HAVE_PTHREADS < 7
22309 #define NULL (void*)0
22312 static void *task(p)
22315 return (void *) (p == NULL);
22319 int main(argc, argv)
22324 /* pthread test function */
22325 #ifndef PTHREAD_CREATE_DETACHED
22326 #define PTHREAD_CREATE_DETACHED 1
22330 int detach = PTHREAD_CREATE_DETACHED;
22332 #if HAVE_PTHREADS > 4
22333 /* Final pthreads */
22334 pthread_attr_t attr;
22336 status = pthread_attr_init(&attr);
22337 if( status ) return status;
22339 #if HAVE_PTHREADS < 7
22340 status = pthread_attr_setdetachstate(&attr, &detach);
22341 if( status < 0 ) status = errno;
22343 status = pthread_attr_setdetachstate(&attr, detach);
22345 if( status ) return status;
22346 status = pthread_create( &t, &attr, task, NULL );
22347 #if HAVE_PTHREADS < 7
22348 if( status < 0 ) status = errno;
22350 if( status ) return status;
22352 /* Draft 4 pthreads */
22353 status = pthread_create( &t, pthread_attr_default, task, NULL );
22354 if( status ) return errno;
22356 /* give thread a chance to complete */
22357 /* it should remain joinable and hence detachable */
22360 status = pthread_detach( &t );
22361 if( status ) return errno;
22364 #ifdef HAVE_LINUX_THREADS
22365 pthread_kill_other_threads_np();
22373 rm -f conftest$ac_exeext
22374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22375 (eval $ac_link) 2>&5
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380 (eval $ac_try) 2>&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); }; }; then
22384 ol_cv_pthread_lib_lpthread_woff=yes
22386 echo "$as_me: program exited with status $ac_status" >&5
22387 echo "$as_me: failed program was:" >&5
22388 sed 's/^/| /' conftest.$ac_ext >&5
22390 ( exit $ac_status )
22391 ol_cv_pthread_lib_lpthread_woff=no
22393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22400 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22401 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22403 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22404 ol_link_pthreads="-lpthread -Wl,-woff,85"
22405 ol_link_threads=posix
22410 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22411 if test "$ol_link_threads" = no ; then
22413 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22414 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22415 if test "${ol_cv_pthread_lpthread+set}" = set; then
22416 echo $ECHO_N "(cached) $ECHO_C" >&6
22421 LIBS="-lpthread $LIBS"
22423 if test "$cross_compiling" = yes; then
22424 cat >conftest.$ac_ext <<_ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h. */
22431 /* pthread test headers */
22432 #include <pthread.h>
22433 #if HAVE_PTHREADS < 7
22437 #define NULL (void*)0
22440 static void *task(p)
22443 return (void *) (p == NULL);
22450 /* pthread test function */
22451 #ifndef PTHREAD_CREATE_DETACHED
22452 #define PTHREAD_CREATE_DETACHED 1
22456 int detach = PTHREAD_CREATE_DETACHED;
22458 #if HAVE_PTHREADS > 4
22459 /* Final pthreads */
22460 pthread_attr_t attr;
22462 status = pthread_attr_init(&attr);
22463 if( status ) return status;
22465 #if HAVE_PTHREADS < 7
22466 status = pthread_attr_setdetachstate(&attr, &detach);
22467 if( status < 0 ) status = errno;
22469 status = pthread_attr_setdetachstate(&attr, detach);
22471 if( status ) return status;
22472 status = pthread_create( &t, &attr, task, NULL );
22473 #if HAVE_PTHREADS < 7
22474 if( status < 0 ) status = errno;
22476 if( status ) return status;
22478 /* Draft 4 pthreads */
22479 status = pthread_create( &t, pthread_attr_default, task, NULL );
22480 if( status ) return errno;
22482 /* give thread a chance to complete */
22483 /* it should remain joinable and hence detachable */
22486 status = pthread_detach( &t );
22487 if( status ) return errno;
22490 #ifdef HAVE_LINUX_THREADS
22491 pthread_kill_other_threads_np();
22500 rm -f conftest.$ac_objext conftest$ac_exeext
22501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22502 (eval $ac_link) 2>conftest.er1
22504 grep -v '^ *+' conftest.er1 >conftest.err
22506 cat conftest.err >&5
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); } &&
22509 { ac_try='test -z "$ac_c_werror_flag"
22510 || test ! -s conftest.err'
22511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512 (eval $ac_try) 2>&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; } &&
22516 { ac_try='test -s conftest$ac_exeext'
22517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518 (eval $ac_try) 2>&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; }; then
22522 ol_cv_pthread_lpthread=yes
22524 echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22527 ol_cv_pthread_lpthread=no
22529 rm -f conftest.err conftest.$ac_objext \
22530 conftest$ac_exeext conftest.$ac_ext
22532 cat >conftest.$ac_ext <<_ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h. */
22539 /* pthread test headers */
22540 #include <pthread.h>
22541 #if HAVE_PTHREADS < 7
22545 #define NULL (void*)0
22548 static void *task(p)
22551 return (void *) (p == NULL);
22555 int main(argc, argv)
22560 /* pthread test function */
22561 #ifndef PTHREAD_CREATE_DETACHED
22562 #define PTHREAD_CREATE_DETACHED 1
22566 int detach = PTHREAD_CREATE_DETACHED;
22568 #if HAVE_PTHREADS > 4
22569 /* Final pthreads */
22570 pthread_attr_t attr;
22572 status = pthread_attr_init(&attr);
22573 if( status ) return status;
22575 #if HAVE_PTHREADS < 7
22576 status = pthread_attr_setdetachstate(&attr, &detach);
22577 if( status < 0 ) status = errno;
22579 status = pthread_attr_setdetachstate(&attr, detach);
22581 if( status ) return status;
22582 status = pthread_create( &t, &attr, task, NULL );
22583 #if HAVE_PTHREADS < 7
22584 if( status < 0 ) status = errno;
22586 if( status ) return status;
22588 /* Draft 4 pthreads */
22589 status = pthread_create( &t, pthread_attr_default, task, NULL );
22590 if( status ) return errno;
22592 /* give thread a chance to complete */
22593 /* it should remain joinable and hence detachable */
22596 status = pthread_detach( &t );
22597 if( status ) return errno;
22600 #ifdef HAVE_LINUX_THREADS
22601 pthread_kill_other_threads_np();
22609 rm -f conftest$ac_exeext
22610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22611 (eval $ac_link) 2>&5
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616 (eval $ac_try) 2>&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); }; }; then
22620 ol_cv_pthread_lpthread=yes
22622 echo "$as_me: program exited with status $ac_status" >&5
22623 echo "$as_me: failed program was:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22626 ( exit $ac_status )
22627 ol_cv_pthread_lpthread=no
22629 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22636 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22637 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22639 if test $ol_cv_pthread_lpthread = yes ; then
22640 ol_link_pthreads="-lpthread"
22641 ol_link_threads=posix
22645 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22646 if test "$ol_link_threads" = no ; then
22648 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22649 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22650 if test "${ol_cv_pthread_lc_r+set}" = set; then
22651 echo $ECHO_N "(cached) $ECHO_C" >&6
22658 if test "$cross_compiling" = yes; then
22659 cat >conftest.$ac_ext <<_ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22666 /* pthread test headers */
22667 #include <pthread.h>
22668 #if HAVE_PTHREADS < 7
22672 #define NULL (void*)0
22675 static void *task(p)
22678 return (void *) (p == NULL);
22685 /* pthread test function */
22686 #ifndef PTHREAD_CREATE_DETACHED
22687 #define PTHREAD_CREATE_DETACHED 1
22691 int detach = PTHREAD_CREATE_DETACHED;
22693 #if HAVE_PTHREADS > 4
22694 /* Final pthreads */
22695 pthread_attr_t attr;
22697 status = pthread_attr_init(&attr);
22698 if( status ) return status;
22700 #if HAVE_PTHREADS < 7
22701 status = pthread_attr_setdetachstate(&attr, &detach);
22702 if( status < 0 ) status = errno;
22704 status = pthread_attr_setdetachstate(&attr, detach);
22706 if( status ) return status;
22707 status = pthread_create( &t, &attr, task, NULL );
22708 #if HAVE_PTHREADS < 7
22709 if( status < 0 ) status = errno;
22711 if( status ) return status;
22713 /* Draft 4 pthreads */
22714 status = pthread_create( &t, pthread_attr_default, task, NULL );
22715 if( status ) return errno;
22717 /* give thread a chance to complete */
22718 /* it should remain joinable and hence detachable */
22721 status = pthread_detach( &t );
22722 if( status ) return errno;
22725 #ifdef HAVE_LINUX_THREADS
22726 pthread_kill_other_threads_np();
22735 rm -f conftest.$ac_objext conftest$ac_exeext
22736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22737 (eval $ac_link) 2>conftest.er1
22739 grep -v '^ *+' conftest.er1 >conftest.err
22741 cat conftest.err >&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); } &&
22744 { ac_try='test -z "$ac_c_werror_flag"
22745 || test ! -s conftest.err'
22746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22747 (eval $ac_try) 2>&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); }; } &&
22751 { ac_try='test -s conftest$ac_exeext'
22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 (eval $ac_try) 2>&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; }; then
22757 ol_cv_pthread_lc_r=yes
22759 echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22762 ol_cv_pthread_lc_r=no
22764 rm -f conftest.err conftest.$ac_objext \
22765 conftest$ac_exeext conftest.$ac_ext
22767 cat >conftest.$ac_ext <<_ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h. */
22774 /* pthread test headers */
22775 #include <pthread.h>
22776 #if HAVE_PTHREADS < 7
22780 #define NULL (void*)0
22783 static void *task(p)
22786 return (void *) (p == NULL);
22790 int main(argc, argv)
22795 /* pthread test function */
22796 #ifndef PTHREAD_CREATE_DETACHED
22797 #define PTHREAD_CREATE_DETACHED 1
22801 int detach = PTHREAD_CREATE_DETACHED;
22803 #if HAVE_PTHREADS > 4
22804 /* Final pthreads */
22805 pthread_attr_t attr;
22807 status = pthread_attr_init(&attr);
22808 if( status ) return status;
22810 #if HAVE_PTHREADS < 7
22811 status = pthread_attr_setdetachstate(&attr, &detach);
22812 if( status < 0 ) status = errno;
22814 status = pthread_attr_setdetachstate(&attr, detach);
22816 if( status ) return status;
22817 status = pthread_create( &t, &attr, task, NULL );
22818 #if HAVE_PTHREADS < 7
22819 if( status < 0 ) status = errno;
22821 if( status ) return status;
22823 /* Draft 4 pthreads */
22824 status = pthread_create( &t, pthread_attr_default, task, NULL );
22825 if( status ) return errno;
22827 /* give thread a chance to complete */
22828 /* it should remain joinable and hence detachable */
22831 status = pthread_detach( &t );
22832 if( status ) return errno;
22835 #ifdef HAVE_LINUX_THREADS
22836 pthread_kill_other_threads_np();
22844 rm -f conftest$ac_exeext
22845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22846 (eval $ac_link) 2>&5
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22851 (eval $ac_try) 2>&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); }; }; then
22855 ol_cv_pthread_lc_r=yes
22857 echo "$as_me: program exited with status $ac_status" >&5
22858 echo "$as_me: failed program was:" >&5
22859 sed 's/^/| /' conftest.$ac_ext >&5
22861 ( exit $ac_status )
22862 ol_cv_pthread_lc_r=no
22864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22871 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22872 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22874 if test $ol_cv_pthread_lc_r = yes ; then
22875 ol_link_pthreads="-lc_r"
22876 ol_link_threads=posix
22881 # Pthread try link: -threads (ol_cv_pthread_threads)
22882 if test "$ol_link_threads" = no ; then
22884 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22885 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22886 if test "${ol_cv_pthread_threads+set}" = set; then
22887 echo $ECHO_N "(cached) $ECHO_C" >&6
22892 LIBS="-threads $LIBS"
22894 if test "$cross_compiling" = yes; then
22895 cat >conftest.$ac_ext <<_ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h. */
22902 /* pthread test headers */
22903 #include <pthread.h>
22904 #if HAVE_PTHREADS < 7
22908 #define NULL (void*)0
22911 static void *task(p)
22914 return (void *) (p == NULL);
22921 /* pthread test function */
22922 #ifndef PTHREAD_CREATE_DETACHED
22923 #define PTHREAD_CREATE_DETACHED 1
22927 int detach = PTHREAD_CREATE_DETACHED;
22929 #if HAVE_PTHREADS > 4
22930 /* Final pthreads */
22931 pthread_attr_t attr;
22933 status = pthread_attr_init(&attr);
22934 if( status ) return status;
22936 #if HAVE_PTHREADS < 7
22937 status = pthread_attr_setdetachstate(&attr, &detach);
22938 if( status < 0 ) status = errno;
22940 status = pthread_attr_setdetachstate(&attr, detach);
22942 if( status ) return status;
22943 status = pthread_create( &t, &attr, task, NULL );
22944 #if HAVE_PTHREADS < 7
22945 if( status < 0 ) status = errno;
22947 if( status ) return status;
22949 /* Draft 4 pthreads */
22950 status = pthread_create( &t, pthread_attr_default, task, NULL );
22951 if( status ) return errno;
22953 /* give thread a chance to complete */
22954 /* it should remain joinable and hence detachable */
22957 status = pthread_detach( &t );
22958 if( status ) return errno;
22961 #ifdef HAVE_LINUX_THREADS
22962 pthread_kill_other_threads_np();
22971 rm -f conftest.$ac_objext conftest$ac_exeext
22972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22973 (eval $ac_link) 2>conftest.er1
22975 grep -v '^ *+' conftest.er1 >conftest.err
22977 cat conftest.err >&5
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } &&
22980 { ac_try='test -z "$ac_c_werror_flag"
22981 || test ! -s conftest.err'
22982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983 (eval $ac_try) 2>&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); }; } &&
22987 { ac_try='test -s conftest$ac_exeext'
22988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989 (eval $ac_try) 2>&5
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); }; }; then
22993 ol_cv_pthread_threads=yes
22995 echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ol_cv_pthread_threads=no
23000 rm -f conftest.err conftest.$ac_objext \
23001 conftest$ac_exeext conftest.$ac_ext
23003 cat >conftest.$ac_ext <<_ACEOF
23006 cat confdefs.h >>conftest.$ac_ext
23007 cat >>conftest.$ac_ext <<_ACEOF
23008 /* end confdefs.h. */
23010 /* pthread test headers */
23011 #include <pthread.h>
23012 #if HAVE_PTHREADS < 7
23016 #define NULL (void*)0
23019 static void *task(p)
23022 return (void *) (p == NULL);
23026 int main(argc, argv)
23031 /* pthread test function */
23032 #ifndef PTHREAD_CREATE_DETACHED
23033 #define PTHREAD_CREATE_DETACHED 1
23037 int detach = PTHREAD_CREATE_DETACHED;
23039 #if HAVE_PTHREADS > 4
23040 /* Final pthreads */
23041 pthread_attr_t attr;
23043 status = pthread_attr_init(&attr);
23044 if( status ) return status;
23046 #if HAVE_PTHREADS < 7
23047 status = pthread_attr_setdetachstate(&attr, &detach);
23048 if( status < 0 ) status = errno;
23050 status = pthread_attr_setdetachstate(&attr, detach);
23052 if( status ) return status;
23053 status = pthread_create( &t, &attr, task, NULL );
23054 #if HAVE_PTHREADS < 7
23055 if( status < 0 ) status = errno;
23057 if( status ) return status;
23059 /* Draft 4 pthreads */
23060 status = pthread_create( &t, pthread_attr_default, task, NULL );
23061 if( status ) return errno;
23063 /* give thread a chance to complete */
23064 /* it should remain joinable and hence detachable */
23067 status = pthread_detach( &t );
23068 if( status ) return errno;
23071 #ifdef HAVE_LINUX_THREADS
23072 pthread_kill_other_threads_np();
23080 rm -f conftest$ac_exeext
23081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23082 (eval $ac_link) 2>&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087 (eval $ac_try) 2>&5
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); }; }; then
23091 ol_cv_pthread_threads=yes
23093 echo "$as_me: program exited with status $ac_status" >&5
23094 echo "$as_me: failed program was:" >&5
23095 sed 's/^/| /' conftest.$ac_ext >&5
23097 ( exit $ac_status )
23098 ol_cv_pthread_threads=no
23100 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23107 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23108 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23110 if test $ol_cv_pthread_threads = yes ; then
23111 ol_link_pthreads="-threads"
23112 ol_link_threads=posix
23117 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23118 if test "$ol_link_threads" = no ; then
23119 # try -lpthreads -lmach -lexc -lc_r
23120 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23121 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23122 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23128 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23130 if test "$cross_compiling" = yes; then
23131 cat >conftest.$ac_ext <<_ACEOF
23134 cat confdefs.h >>conftest.$ac_ext
23135 cat >>conftest.$ac_ext <<_ACEOF
23136 /* end confdefs.h. */
23138 /* pthread test headers */
23139 #include <pthread.h>
23140 #if HAVE_PTHREADS < 7
23144 #define NULL (void*)0
23147 static void *task(p)
23150 return (void *) (p == NULL);
23157 /* pthread test function */
23158 #ifndef PTHREAD_CREATE_DETACHED
23159 #define PTHREAD_CREATE_DETACHED 1
23163 int detach = PTHREAD_CREATE_DETACHED;
23165 #if HAVE_PTHREADS > 4
23166 /* Final pthreads */
23167 pthread_attr_t attr;
23169 status = pthread_attr_init(&attr);
23170 if( status ) return status;
23172 #if HAVE_PTHREADS < 7
23173 status = pthread_attr_setdetachstate(&attr, &detach);
23174 if( status < 0 ) status = errno;
23176 status = pthread_attr_setdetachstate(&attr, detach);
23178 if( status ) return status;
23179 status = pthread_create( &t, &attr, task, NULL );
23180 #if HAVE_PTHREADS < 7
23181 if( status < 0 ) status = errno;
23183 if( status ) return status;
23185 /* Draft 4 pthreads */
23186 status = pthread_create( &t, pthread_attr_default, task, NULL );
23187 if( status ) return errno;
23189 /* give thread a chance to complete */
23190 /* it should remain joinable and hence detachable */
23193 status = pthread_detach( &t );
23194 if( status ) return errno;
23197 #ifdef HAVE_LINUX_THREADS
23198 pthread_kill_other_threads_np();
23207 rm -f conftest.$ac_objext conftest$ac_exeext
23208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23209 (eval $ac_link) 2>conftest.er1
23211 grep -v '^ *+' conftest.er1 >conftest.err
23213 cat conftest.err >&5
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); } &&
23216 { ac_try='test -z "$ac_c_werror_flag"
23217 || test ! -s conftest.err'
23218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23219 (eval $ac_try) 2>&5
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); }; } &&
23223 { ac_try='test -s conftest$ac_exeext'
23224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23225 (eval $ac_try) 2>&5
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); }; }; then
23229 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23231 echo "$as_me: failed program was:" >&5
23232 sed 's/^/| /' conftest.$ac_ext >&5
23234 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23236 rm -f conftest.err conftest.$ac_objext \
23237 conftest$ac_exeext conftest.$ac_ext
23239 cat >conftest.$ac_ext <<_ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h. */
23246 /* pthread test headers */
23247 #include <pthread.h>
23248 #if HAVE_PTHREADS < 7
23252 #define NULL (void*)0
23255 static void *task(p)
23258 return (void *) (p == NULL);
23262 int main(argc, argv)
23267 /* pthread test function */
23268 #ifndef PTHREAD_CREATE_DETACHED
23269 #define PTHREAD_CREATE_DETACHED 1
23273 int detach = PTHREAD_CREATE_DETACHED;
23275 #if HAVE_PTHREADS > 4
23276 /* Final pthreads */
23277 pthread_attr_t attr;
23279 status = pthread_attr_init(&attr);
23280 if( status ) return status;
23282 #if HAVE_PTHREADS < 7
23283 status = pthread_attr_setdetachstate(&attr, &detach);
23284 if( status < 0 ) status = errno;
23286 status = pthread_attr_setdetachstate(&attr, detach);
23288 if( status ) return status;
23289 status = pthread_create( &t, &attr, task, NULL );
23290 #if HAVE_PTHREADS < 7
23291 if( status < 0 ) status = errno;
23293 if( status ) return status;
23295 /* Draft 4 pthreads */
23296 status = pthread_create( &t, pthread_attr_default, task, NULL );
23297 if( status ) return errno;
23299 /* give thread a chance to complete */
23300 /* it should remain joinable and hence detachable */
23303 status = pthread_detach( &t );
23304 if( status ) return errno;
23307 #ifdef HAVE_LINUX_THREADS
23308 pthread_kill_other_threads_np();
23316 rm -f conftest$ac_exeext
23317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23318 (eval $ac_link) 2>&5
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; }; then
23327 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23329 echo "$as_me: program exited with status $ac_status" >&5
23330 echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23333 ( exit $ac_status )
23334 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23343 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23344 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23346 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23347 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23348 ol_link_threads=posix
23352 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23353 if test "$ol_link_threads" = no ; then
23354 # try -lpthreads -lmach -lexc
23355 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23356 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23357 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23358 echo $ECHO_N "(cached) $ECHO_C" >&6
23363 LIBS="-lpthreads -lmach -lexc $LIBS"
23365 if test "$cross_compiling" = yes; then
23366 cat >conftest.$ac_ext <<_ACEOF
23369 cat confdefs.h >>conftest.$ac_ext
23370 cat >>conftest.$ac_ext <<_ACEOF
23371 /* end confdefs.h. */
23373 /* pthread test headers */
23374 #include <pthread.h>
23375 #if HAVE_PTHREADS < 7
23379 #define NULL (void*)0
23382 static void *task(p)
23385 return (void *) (p == NULL);
23392 /* pthread test function */
23393 #ifndef PTHREAD_CREATE_DETACHED
23394 #define PTHREAD_CREATE_DETACHED 1
23398 int detach = PTHREAD_CREATE_DETACHED;
23400 #if HAVE_PTHREADS > 4
23401 /* Final pthreads */
23402 pthread_attr_t attr;
23404 status = pthread_attr_init(&attr);
23405 if( status ) return status;
23407 #if HAVE_PTHREADS < 7
23408 status = pthread_attr_setdetachstate(&attr, &detach);
23409 if( status < 0 ) status = errno;
23411 status = pthread_attr_setdetachstate(&attr, detach);
23413 if( status ) return status;
23414 status = pthread_create( &t, &attr, task, NULL );
23415 #if HAVE_PTHREADS < 7
23416 if( status < 0 ) status = errno;
23418 if( status ) return status;
23420 /* Draft 4 pthreads */
23421 status = pthread_create( &t, pthread_attr_default, task, NULL );
23422 if( status ) return errno;
23424 /* give thread a chance to complete */
23425 /* it should remain joinable and hence detachable */
23428 status = pthread_detach( &t );
23429 if( status ) return errno;
23432 #ifdef HAVE_LINUX_THREADS
23433 pthread_kill_other_threads_np();
23442 rm -f conftest.$ac_objext conftest$ac_exeext
23443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23444 (eval $ac_link) 2>conftest.er1
23446 grep -v '^ *+' conftest.er1 >conftest.err
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } &&
23451 { ac_try='test -z "$ac_c_werror_flag"
23452 || test ! -s conftest.err'
23453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23454 (eval $ac_try) 2>&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); }; } &&
23458 { ac_try='test -s conftest$ac_exeext'
23459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23460 (eval $ac_try) 2>&5
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); }; }; then
23464 ol_cv_pthread_lpthreads_lmach_lexc=yes
23466 echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23469 ol_cv_pthread_lpthreads_lmach_lexc=no
23471 rm -f conftest.err conftest.$ac_objext \
23472 conftest$ac_exeext conftest.$ac_ext
23474 cat >conftest.$ac_ext <<_ACEOF
23477 cat confdefs.h >>conftest.$ac_ext
23478 cat >>conftest.$ac_ext <<_ACEOF
23479 /* end confdefs.h. */
23481 /* pthread test headers */
23482 #include <pthread.h>
23483 #if HAVE_PTHREADS < 7
23487 #define NULL (void*)0
23490 static void *task(p)
23493 return (void *) (p == NULL);
23497 int main(argc, argv)
23502 /* pthread test function */
23503 #ifndef PTHREAD_CREATE_DETACHED
23504 #define PTHREAD_CREATE_DETACHED 1
23508 int detach = PTHREAD_CREATE_DETACHED;
23510 #if HAVE_PTHREADS > 4
23511 /* Final pthreads */
23512 pthread_attr_t attr;
23514 status = pthread_attr_init(&attr);
23515 if( status ) return status;
23517 #if HAVE_PTHREADS < 7
23518 status = pthread_attr_setdetachstate(&attr, &detach);
23519 if( status < 0 ) status = errno;
23521 status = pthread_attr_setdetachstate(&attr, detach);
23523 if( status ) return status;
23524 status = pthread_create( &t, &attr, task, NULL );
23525 #if HAVE_PTHREADS < 7
23526 if( status < 0 ) status = errno;
23528 if( status ) return status;
23530 /* Draft 4 pthreads */
23531 status = pthread_create( &t, pthread_attr_default, task, NULL );
23532 if( status ) return errno;
23534 /* give thread a chance to complete */
23535 /* it should remain joinable and hence detachable */
23538 status = pthread_detach( &t );
23539 if( status ) return errno;
23542 #ifdef HAVE_LINUX_THREADS
23543 pthread_kill_other_threads_np();
23551 rm -f conftest$ac_exeext
23552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23553 (eval $ac_link) 2>&5
23555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23558 (eval $ac_try) 2>&5
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); }; }; then
23562 ol_cv_pthread_lpthreads_lmach_lexc=yes
23564 echo "$as_me: program exited with status $ac_status" >&5
23565 echo "$as_me: failed program was:" >&5
23566 sed 's/^/| /' conftest.$ac_ext >&5
23568 ( exit $ac_status )
23569 ol_cv_pthread_lpthreads_lmach_lexc=no
23571 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23578 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23579 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23581 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23582 ol_link_pthreads="-lpthreads -lmach -lexc"
23583 ol_link_threads=posix
23587 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23588 if test "$ol_link_threads" = no ; then
23589 # try -lpthreads -lexc
23590 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23591 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23592 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23593 echo $ECHO_N "(cached) $ECHO_C" >&6
23598 LIBS="-lpthreads -lexc $LIBS"
23600 if test "$cross_compiling" = yes; then
23601 cat >conftest.$ac_ext <<_ACEOF
23604 cat confdefs.h >>conftest.$ac_ext
23605 cat >>conftest.$ac_ext <<_ACEOF
23606 /* end confdefs.h. */
23608 /* pthread test headers */
23609 #include <pthread.h>
23610 #if HAVE_PTHREADS < 7
23614 #define NULL (void*)0
23617 static void *task(p)
23620 return (void *) (p == NULL);
23627 /* pthread test function */
23628 #ifndef PTHREAD_CREATE_DETACHED
23629 #define PTHREAD_CREATE_DETACHED 1
23633 int detach = PTHREAD_CREATE_DETACHED;
23635 #if HAVE_PTHREADS > 4
23636 /* Final pthreads */
23637 pthread_attr_t attr;
23639 status = pthread_attr_init(&attr);
23640 if( status ) return status;
23642 #if HAVE_PTHREADS < 7
23643 status = pthread_attr_setdetachstate(&attr, &detach);
23644 if( status < 0 ) status = errno;
23646 status = pthread_attr_setdetachstate(&attr, detach);
23648 if( status ) return status;
23649 status = pthread_create( &t, &attr, task, NULL );
23650 #if HAVE_PTHREADS < 7
23651 if( status < 0 ) status = errno;
23653 if( status ) return status;
23655 /* Draft 4 pthreads */
23656 status = pthread_create( &t, pthread_attr_default, task, NULL );
23657 if( status ) return errno;
23659 /* give thread a chance to complete */
23660 /* it should remain joinable and hence detachable */
23663 status = pthread_detach( &t );
23664 if( status ) return errno;
23667 #ifdef HAVE_LINUX_THREADS
23668 pthread_kill_other_threads_np();
23677 rm -f conftest.$ac_objext conftest$ac_exeext
23678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23679 (eval $ac_link) 2>conftest.er1
23681 grep -v '^ *+' conftest.er1 >conftest.err
23683 cat conftest.err >&5
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } &&
23686 { ac_try='test -z "$ac_c_werror_flag"
23687 || test ! -s conftest.err'
23688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689 (eval $ac_try) 2>&5
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); }; } &&
23693 { ac_try='test -s conftest$ac_exeext'
23694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23695 (eval $ac_try) 2>&5
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); }; }; then
23699 ol_cv_pthread_lpthreads_lexc=yes
23701 echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23704 ol_cv_pthread_lpthreads_lexc=no
23706 rm -f conftest.err conftest.$ac_objext \
23707 conftest$ac_exeext conftest.$ac_ext
23709 cat >conftest.$ac_ext <<_ACEOF
23712 cat confdefs.h >>conftest.$ac_ext
23713 cat >>conftest.$ac_ext <<_ACEOF
23714 /* end confdefs.h. */
23716 /* pthread test headers */
23717 #include <pthread.h>
23718 #if HAVE_PTHREADS < 7
23722 #define NULL (void*)0
23725 static void *task(p)
23728 return (void *) (p == NULL);
23732 int main(argc, argv)
23737 /* pthread test function */
23738 #ifndef PTHREAD_CREATE_DETACHED
23739 #define PTHREAD_CREATE_DETACHED 1
23743 int detach = PTHREAD_CREATE_DETACHED;
23745 #if HAVE_PTHREADS > 4
23746 /* Final pthreads */
23747 pthread_attr_t attr;
23749 status = pthread_attr_init(&attr);
23750 if( status ) return status;
23752 #if HAVE_PTHREADS < 7
23753 status = pthread_attr_setdetachstate(&attr, &detach);
23754 if( status < 0 ) status = errno;
23756 status = pthread_attr_setdetachstate(&attr, detach);
23758 if( status ) return status;
23759 status = pthread_create( &t, &attr, task, NULL );
23760 #if HAVE_PTHREADS < 7
23761 if( status < 0 ) status = errno;
23763 if( status ) return status;
23765 /* Draft 4 pthreads */
23766 status = pthread_create( &t, pthread_attr_default, task, NULL );
23767 if( status ) return errno;
23769 /* give thread a chance to complete */
23770 /* it should remain joinable and hence detachable */
23773 status = pthread_detach( &t );
23774 if( status ) return errno;
23777 #ifdef HAVE_LINUX_THREADS
23778 pthread_kill_other_threads_np();
23786 rm -f conftest$ac_exeext
23787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23788 (eval $ac_link) 2>&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23793 (eval $ac_try) 2>&5
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); }; }; then
23797 ol_cv_pthread_lpthreads_lexc=yes
23799 echo "$as_me: program exited with status $ac_status" >&5
23800 echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23803 ( exit $ac_status )
23804 ol_cv_pthread_lpthreads_lexc=no
23806 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23813 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23814 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23816 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23817 ol_link_pthreads="-lpthreads -lexc"
23818 ol_link_threads=posix
23823 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23824 if test "$ol_link_threads" = no ; then
23826 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23827 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23828 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23829 echo $ECHO_N "(cached) $ECHO_C" >&6
23834 LIBS="-lpthreads $LIBS"
23836 if test "$cross_compiling" = yes; then
23837 cat >conftest.$ac_ext <<_ACEOF
23840 cat confdefs.h >>conftest.$ac_ext
23841 cat >>conftest.$ac_ext <<_ACEOF
23842 /* end confdefs.h. */
23844 /* pthread test headers */
23845 #include <pthread.h>
23846 #if HAVE_PTHREADS < 7
23850 #define NULL (void*)0
23853 static void *task(p)
23856 return (void *) (p == NULL);
23863 /* pthread test function */
23864 #ifndef PTHREAD_CREATE_DETACHED
23865 #define PTHREAD_CREATE_DETACHED 1
23869 int detach = PTHREAD_CREATE_DETACHED;
23871 #if HAVE_PTHREADS > 4
23872 /* Final pthreads */
23873 pthread_attr_t attr;
23875 status = pthread_attr_init(&attr);
23876 if( status ) return status;
23878 #if HAVE_PTHREADS < 7
23879 status = pthread_attr_setdetachstate(&attr, &detach);
23880 if( status < 0 ) status = errno;
23882 status = pthread_attr_setdetachstate(&attr, detach);
23884 if( status ) return status;
23885 status = pthread_create( &t, &attr, task, NULL );
23886 #if HAVE_PTHREADS < 7
23887 if( status < 0 ) status = errno;
23889 if( status ) return status;
23891 /* Draft 4 pthreads */
23892 status = pthread_create( &t, pthread_attr_default, task, NULL );
23893 if( status ) return errno;
23895 /* give thread a chance to complete */
23896 /* it should remain joinable and hence detachable */
23899 status = pthread_detach( &t );
23900 if( status ) return errno;
23903 #ifdef HAVE_LINUX_THREADS
23904 pthread_kill_other_threads_np();
23913 rm -f conftest.$ac_objext conftest$ac_exeext
23914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23915 (eval $ac_link) 2>conftest.er1
23917 grep -v '^ *+' conftest.er1 >conftest.err
23919 cat conftest.err >&5
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } &&
23922 { ac_try='test -z "$ac_c_werror_flag"
23923 || test ! -s conftest.err'
23924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23925 (eval $ac_try) 2>&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); }; } &&
23929 { ac_try='test -s conftest$ac_exeext'
23930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931 (eval $ac_try) 2>&5
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); }; }; then
23935 ol_cv_pthread_lib_lpthreads=yes
23937 echo "$as_me: failed program was:" >&5
23938 sed 's/^/| /' conftest.$ac_ext >&5
23940 ol_cv_pthread_lib_lpthreads=no
23942 rm -f conftest.err conftest.$ac_objext \
23943 conftest$ac_exeext conftest.$ac_ext
23945 cat >conftest.$ac_ext <<_ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h. */
23952 /* pthread test headers */
23953 #include <pthread.h>
23954 #if HAVE_PTHREADS < 7
23958 #define NULL (void*)0
23961 static void *task(p)
23964 return (void *) (p == NULL);
23968 int main(argc, argv)
23973 /* pthread test function */
23974 #ifndef PTHREAD_CREATE_DETACHED
23975 #define PTHREAD_CREATE_DETACHED 1
23979 int detach = PTHREAD_CREATE_DETACHED;
23981 #if HAVE_PTHREADS > 4
23982 /* Final pthreads */
23983 pthread_attr_t attr;
23985 status = pthread_attr_init(&attr);
23986 if( status ) return status;
23988 #if HAVE_PTHREADS < 7
23989 status = pthread_attr_setdetachstate(&attr, &detach);
23990 if( status < 0 ) status = errno;
23992 status = pthread_attr_setdetachstate(&attr, detach);
23994 if( status ) return status;
23995 status = pthread_create( &t, &attr, task, NULL );
23996 #if HAVE_PTHREADS < 7
23997 if( status < 0 ) status = errno;
23999 if( status ) return status;
24001 /* Draft 4 pthreads */
24002 status = pthread_create( &t, pthread_attr_default, task, NULL );
24003 if( status ) return errno;
24005 /* give thread a chance to complete */
24006 /* it should remain joinable and hence detachable */
24009 status = pthread_detach( &t );
24010 if( status ) return errno;
24013 #ifdef HAVE_LINUX_THREADS
24014 pthread_kill_other_threads_np();
24022 rm -f conftest$ac_exeext
24023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24024 (eval $ac_link) 2>&5
24026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24029 (eval $ac_try) 2>&5
24031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032 (exit $ac_status); }; }; then
24033 ol_cv_pthread_lib_lpthreads=yes
24035 echo "$as_me: program exited with status $ac_status" >&5
24036 echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24039 ( exit $ac_status )
24040 ol_cv_pthread_lib_lpthreads=no
24042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24049 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24050 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24052 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24053 ol_link_pthreads="-lpthreads"
24054 ol_link_threads=posix
24059 if test $ol_link_threads != no ; then
24060 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24062 save_CPPFLAGS="$CPPFLAGS"
24064 LIBS="$LTHREAD_LIBS $LIBS"
24069 for ac_func in sched_yield pthread_yield thr_yield
24071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24072 echo "$as_me:$LINENO: checking for $ac_func" >&5
24073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24074 if eval "test \"\${$as_ac_var+set}\" = set"; then
24075 echo $ECHO_N "(cached) $ECHO_C" >&6
24077 cat >conftest.$ac_ext <<_ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h. */
24083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24085 #define $ac_func innocuous_$ac_func
24087 /* System header to define __stub macros and hopefully few prototypes,
24088 which can conflict with char $ac_func (); below.
24089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24090 <limits.h> exists even on freestanding compilers. */
24093 # include <limits.h>
24095 # include <assert.h>
24100 /* Override any gcc2 internal prototype to avoid an error. */
24105 /* We use char because int might match the return type of a gcc2
24106 builtin and then its argument prototype would still apply. */
24108 /* The GNU C library defines this for functions which it implements
24109 to always fail with ENOSYS. Some functions are actually named
24110 something starting with __ and the normal name is an alias. */
24111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24114 char (*f) () = $ac_func;
24123 return f != $ac_func;
24128 rm -f conftest.$ac_objext conftest$ac_exeext
24129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24130 (eval $ac_link) 2>conftest.er1
24132 grep -v '^ *+' conftest.er1 >conftest.err
24134 cat conftest.err >&5
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); } &&
24137 { ac_try='test -z "$ac_c_werror_flag"
24138 || test ! -s conftest.err'
24139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140 (eval $ac_try) 2>&5
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); }; } &&
24144 { ac_try='test -s conftest$ac_exeext'
24145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24146 (eval $ac_try) 2>&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); }; }; then
24150 eval "$as_ac_var=yes"
24152 echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24155 eval "$as_ac_var=no"
24157 rm -f conftest.err conftest.$ac_objext \
24158 conftest$ac_exeext conftest.$ac_ext
24160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24162 if test `eval echo '${'$as_ac_var'}'` = yes; then
24163 cat >>confdefs.h <<_ACEOF
24164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24171 if test $ac_cv_func_sched_yield = no &&
24172 test $ac_cv_func_pthread_yield = no &&
24173 test $ac_cv_func_thr_yield = no ; then
24174 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24175 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24176 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24177 echo $ECHO_N "(cached) $ECHO_C" >&6
24179 ac_check_lib_save_LIBS=$LIBS
24181 cat >conftest.$ac_ext <<_ACEOF
24184 cat confdefs.h >>conftest.$ac_ext
24185 cat >>conftest.$ac_ext <<_ACEOF
24186 /* end confdefs.h. */
24188 /* Override any gcc2 internal prototype to avoid an error. */
24192 /* We use char because int might match the return type of a gcc2
24193 builtin and then its argument prototype would still apply. */
24194 char sched_yield ();
24203 rm -f conftest.$ac_objext conftest$ac_exeext
24204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24205 (eval $ac_link) 2>conftest.er1
24207 grep -v '^ *+' conftest.er1 >conftest.err
24209 cat conftest.err >&5
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } &&
24212 { ac_try='test -z "$ac_c_werror_flag"
24213 || test ! -s conftest.err'
24214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24215 (eval $ac_try) 2>&5
24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218 (exit $ac_status); }; } &&
24219 { ac_try='test -s conftest$ac_exeext'
24220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24221 (eval $ac_try) 2>&5
24223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); }; }; then
24225 ac_cv_lib_rt_sched_yield=yes
24227 echo "$as_me: failed program was:" >&5
24228 sed 's/^/| /' conftest.$ac_ext >&5
24230 ac_cv_lib_rt_sched_yield=no
24232 rm -f conftest.err conftest.$ac_objext \
24233 conftest$ac_exeext conftest.$ac_ext
24234 LIBS=$ac_check_lib_save_LIBS
24236 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24237 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24238 if test $ac_cv_lib_rt_sched_yield = yes; then
24239 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24241 cat >>confdefs.h <<\_ACEOF
24242 #define HAVE_SCHED_YIELD 1
24245 ac_cv_func_sched_yield=yes
24247 ac_cv_func_sched_yield=no
24251 if test $ac_cv_func_sched_yield = no &&
24252 test $ac_cv_func_pthread_yield = no &&
24253 test "$ac_cv_func_thr_yield" = no ; then
24254 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24255 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24260 for ac_func in pthread_kill pthread_rwlock_destroy
24262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24263 echo "$as_me:$LINENO: checking for $ac_func" >&5
24264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24265 if eval "test \"\${$as_ac_var+set}\" = set"; then
24266 echo $ECHO_N "(cached) $ECHO_C" >&6
24268 cat >conftest.$ac_ext <<_ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h. */
24274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24276 #define $ac_func innocuous_$ac_func
24278 /* System header to define __stub macros and hopefully few prototypes,
24279 which can conflict with char $ac_func (); below.
24280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24281 <limits.h> exists even on freestanding compilers. */
24284 # include <limits.h>
24286 # include <assert.h>
24291 /* Override any gcc2 internal prototype to avoid an error. */
24296 /* We use char because int might match the return type of a gcc2
24297 builtin and then its argument prototype would still apply. */
24299 /* The GNU C library defines this for functions which it implements
24300 to always fail with ENOSYS. Some functions are actually named
24301 something starting with __ and the normal name is an alias. */
24302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24305 char (*f) () = $ac_func;
24314 return f != $ac_func;
24319 rm -f conftest.$ac_objext conftest$ac_exeext
24320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24321 (eval $ac_link) 2>conftest.er1
24323 grep -v '^ *+' conftest.er1 >conftest.err
24325 cat conftest.err >&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); } &&
24328 { ac_try='test -z "$ac_c_werror_flag"
24329 || test ! -s conftest.err'
24330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24331 (eval $ac_try) 2>&5
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); }; } &&
24335 { ac_try='test -s conftest$ac_exeext'
24336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337 (eval $ac_try) 2>&5
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; }; then
24341 eval "$as_ac_var=yes"
24343 echo "$as_me: failed program was:" >&5
24344 sed 's/^/| /' conftest.$ac_ext >&5
24346 eval "$as_ac_var=no"
24348 rm -f conftest.err conftest.$ac_objext \
24349 conftest$ac_exeext conftest.$ac_ext
24351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24353 if test `eval echo '${'$as_ac_var'}'` = yes; then
24354 cat >>confdefs.h <<_ACEOF
24355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24362 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24363 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24364 if test "${ol_cv_func_pthread_detach+set}" = set; then
24365 echo $ECHO_N "(cached) $ECHO_C" >&6
24368 cat >conftest.$ac_ext <<_ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h. */
24375 #include <pthread.h>
24377 #define NULL (void*)0
24383 pthread_detach(NULL);
24388 rm -f conftest.$ac_objext conftest$ac_exeext
24389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24390 (eval $ac_link) 2>conftest.er1
24392 grep -v '^ *+' conftest.er1 >conftest.err
24394 cat conftest.err >&5
24395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); } &&
24397 { ac_try='test -z "$ac_c_werror_flag"
24398 || test ! -s conftest.err'
24399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24400 (eval $ac_try) 2>&5
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); }; } &&
24404 { ac_try='test -s conftest$ac_exeext'
24405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24406 (eval $ac_try) 2>&5
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); }; }; then
24410 ol_cv_func_pthread_detach=yes
24412 echo "$as_me: failed program was:" >&5
24413 sed 's/^/| /' conftest.$ac_ext >&5
24415 ol_cv_func_pthread_detach=no
24417 rm -f conftest.err conftest.$ac_objext \
24418 conftest$ac_exeext conftest.$ac_ext
24421 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24422 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24424 if test $ol_cv_func_pthread_detach = no ; then
24425 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24426 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24427 { (exit 1); exit 1; }; }
24431 cat >>confdefs.h <<\_ACEOF
24432 #define HAVE_PTHREAD_DETACH 1
24441 pthread_setconcurrency \
24442 pthread_getconcurrency \
24443 thr_setconcurrency \
24444 thr_getconcurrency \
24447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24448 echo "$as_me:$LINENO: checking for $ac_func" >&5
24449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24450 if eval "test \"\${$as_ac_var+set}\" = set"; then
24451 echo $ECHO_N "(cached) $ECHO_C" >&6
24453 cat >conftest.$ac_ext <<_ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h. */
24459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24461 #define $ac_func innocuous_$ac_func
24463 /* System header to define __stub macros and hopefully few prototypes,
24464 which can conflict with char $ac_func (); below.
24465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24466 <limits.h> exists even on freestanding compilers. */
24469 # include <limits.h>
24471 # include <assert.h>
24476 /* Override any gcc2 internal prototype to avoid an error. */
24481 /* We use char because int might match the return type of a gcc2
24482 builtin and then its argument prototype would still apply. */
24484 /* The GNU C library defines this for functions which it implements
24485 to always fail with ENOSYS. Some functions are actually named
24486 something starting with __ and the normal name is an alias. */
24487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24490 char (*f) () = $ac_func;
24499 return f != $ac_func;
24504 rm -f conftest.$ac_objext conftest$ac_exeext
24505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24506 (eval $ac_link) 2>conftest.er1
24508 grep -v '^ *+' conftest.er1 >conftest.err
24510 cat conftest.err >&5
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); } &&
24513 { ac_try='test -z "$ac_c_werror_flag"
24514 || test ! -s conftest.err'
24515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24516 (eval $ac_try) 2>&5
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); }; } &&
24520 { ac_try='test -s conftest$ac_exeext'
24521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24522 (eval $ac_try) 2>&5
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); }; }; then
24526 eval "$as_ac_var=yes"
24528 echo "$as_me: failed program was:" >&5
24529 sed 's/^/| /' conftest.$ac_ext >&5
24531 eval "$as_ac_var=no"
24533 rm -f conftest.err conftest.$ac_objext \
24534 conftest$ac_exeext conftest.$ac_ext
24536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24538 if test `eval echo '${'$as_ac_var'}'` = yes; then
24539 cat >>confdefs.h <<_ACEOF
24540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24549 for ac_func in pthread_kill_other_threads_np
24551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24552 echo "$as_me:$LINENO: checking for $ac_func" >&5
24553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24554 if eval "test \"\${$as_ac_var+set}\" = set"; then
24555 echo $ECHO_N "(cached) $ECHO_C" >&6
24557 cat >conftest.$ac_ext <<_ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h. */
24563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24565 #define $ac_func innocuous_$ac_func
24567 /* System header to define __stub macros and hopefully few prototypes,
24568 which can conflict with char $ac_func (); below.
24569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24570 <limits.h> exists even on freestanding compilers. */
24573 # include <limits.h>
24575 # include <assert.h>
24580 /* Override any gcc2 internal prototype to avoid an error. */
24585 /* We use char because int might match the return type of a gcc2
24586 builtin and then its argument prototype would still apply. */
24588 /* The GNU C library defines this for functions which it implements
24589 to always fail with ENOSYS. Some functions are actually named
24590 something starting with __ and the normal name is an alias. */
24591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24594 char (*f) () = $ac_func;
24603 return f != $ac_func;
24608 rm -f conftest.$ac_objext conftest$ac_exeext
24609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24610 (eval $ac_link) 2>conftest.er1
24612 grep -v '^ *+' conftest.er1 >conftest.err
24614 cat conftest.err >&5
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); } &&
24617 { ac_try='test -z "$ac_c_werror_flag"
24618 || test ! -s conftest.err'
24619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24620 (eval $ac_try) 2>&5
24622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623 (exit $ac_status); }; } &&
24624 { ac_try='test -s conftest$ac_exeext'
24625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24626 (eval $ac_try) 2>&5
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); }; }; then
24630 eval "$as_ac_var=yes"
24632 echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24635 eval "$as_ac_var=no"
24637 rm -f conftest.err conftest.$ac_objext \
24638 conftest$ac_exeext conftest.$ac_ext
24640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24642 if test `eval echo '${'$as_ac_var'}'` = yes; then
24643 cat >>confdefs.h <<_ACEOF
24644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24650 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24651 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24652 if test "${ol_cv_sys_linux_threads+set}" = set; then
24653 echo $ECHO_N "(cached) $ECHO_C" >&6
24655 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24657 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24658 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24663 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24664 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24665 if test "${ol_cv_linux_threads+set}" = set; then
24666 echo $ECHO_N "(cached) $ECHO_C" >&6
24669 if test $ol_cv_header_linux_threads = yes &&
24670 test $ol_cv_sys_linux_threads = yes; then
24671 ol_cv_linux_threads=yes
24672 elif test $ol_cv_header_linux_threads = no &&
24673 test $ol_cv_sys_linux_threads = no; then
24674 ol_cv_linux_threads=no
24676 ol_cv_linux_threads=error
24680 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24681 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24684 if test $ol_cv_linux_threads = error; then
24685 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24686 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24687 { (exit 1); exit 1; }; };
24690 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24691 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24692 if test "${ol_cv_pthread_create_works+set}" = set; then
24693 echo $ECHO_N "(cached) $ECHO_C" >&6
24696 if test "$cross_compiling" = yes; then
24697 ol_cv_pthread_create_works=yes
24699 cat >conftest.$ac_ext <<_ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h. */
24706 /* pthread test headers */
24707 #include <pthread.h>
24708 #if HAVE_PTHREADS < 7
24712 #define NULL (void*)0
24715 static void *task(p)
24718 return (void *) (p == NULL);
24722 int main(argc, argv)
24727 /* pthread test function */
24728 #ifndef PTHREAD_CREATE_DETACHED
24729 #define PTHREAD_CREATE_DETACHED 1
24733 int detach = PTHREAD_CREATE_DETACHED;
24735 #if HAVE_PTHREADS > 4
24736 /* Final pthreads */
24737 pthread_attr_t attr;
24739 status = pthread_attr_init(&attr);
24740 if( status ) return status;
24742 #if HAVE_PTHREADS < 7
24743 status = pthread_attr_setdetachstate(&attr, &detach);
24744 if( status < 0 ) status = errno;
24746 status = pthread_attr_setdetachstate(&attr, detach);
24748 if( status ) return status;
24749 status = pthread_create( &t, &attr, task, NULL );
24750 #if HAVE_PTHREADS < 7
24751 if( status < 0 ) status = errno;
24753 if( status ) return status;
24755 /* Draft 4 pthreads */
24756 status = pthread_create( &t, pthread_attr_default, task, NULL );
24757 if( status ) return errno;
24759 /* give thread a chance to complete */
24760 /* it should remain joinable and hence detachable */
24763 status = pthread_detach( &t );
24764 if( status ) return errno;
24767 #ifdef HAVE_LINUX_THREADS
24768 pthread_kill_other_threads_np();
24776 rm -f conftest$ac_exeext
24777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24778 (eval $ac_link) 2>&5
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24783 (eval $ac_try) 2>&5
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); }; }; then
24787 ol_cv_pthread_create_works=yes
24789 echo "$as_me: program exited with status $ac_status" >&5
24790 echo "$as_me: failed program was:" >&5
24791 sed 's/^/| /' conftest.$ac_ext >&5
24793 ( exit $ac_status )
24794 ol_cv_pthread_create_works=no
24796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24799 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24800 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24802 if test $ol_cv_pthread_create_works = no ; then
24803 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24804 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24805 { (exit 1); exit 1; }; }
24808 ol_replace_broken_yield=no
24810 if test $ol_replace_broken_yield = yes ; then
24812 cat >>confdefs.h <<\_ACEOF
24813 #define REPLACE_BROKEN_YIELD 1
24818 if test $ol_with_yielding_select = auto ; then
24819 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24820 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24821 if test "${ol_cv_pthread_select_yields+set}" = set; then
24822 echo $ECHO_N "(cached) $ECHO_C" >&6
24825 if test "$cross_compiling" = yes; then
24826 ol_cv_pthread_select_yields=cross
24828 cat >conftest.$ac_ext <<_ACEOF
24831 cat confdefs.h >>conftest.$ac_ext
24832 cat >>conftest.$ac_ext <<_ACEOF
24833 /* end confdefs.h. */
24835 #include <sys/types.h>
24836 #include <sys/time.h>
24837 #include <unistd.h>
24838 #include <pthread.h>
24840 #define NULL (void*) 0
24843 static int fildes[2];
24845 static void *task(p)
24857 FD_SET(fildes[0], &rfds);
24859 /* we're not interested in any fds */
24860 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24867 exit(0); /* if we exit here, the select blocked the whole process */
24870 int main(argc, argv)
24876 /* create a pipe to select */
24877 if(pipe(&fildes[0])) {
24882 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24883 (void) pthread_setconcurrency(2);
24885 #ifdef HAVE_THR_SETCONCURRENCY
24886 /* Set Solaris LWP concurrency to 2 */
24887 thr_setconcurrency(2);
24891 #if HAVE_PTHREADS < 6
24892 pthread_create(&t, pthread_attr_default, task, NULL);
24894 pthread_create(&t, NULL, task, NULL);
24897 /* make sure task runs first */
24900 #elif defined( HAVE_SCHED_YIELD )
24902 #elif defined( HAVE_PTHREAD_YIELD )
24909 rm -f conftest$ac_exeext
24910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24911 (eval $ac_link) 2>&5
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24916 (eval $ac_try) 2>&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); }; }; then
24920 ol_cv_pthread_select_yields=no
24922 echo "$as_me: program exited with status $ac_status" >&5
24923 echo "$as_me: failed program was:" >&5
24924 sed 's/^/| /' conftest.$ac_ext >&5
24926 ( exit $ac_status )
24927 ol_cv_pthread_select_yields=yes
24929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24932 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24933 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24935 if test $ol_cv_pthread_select_yields = cross ; then
24936 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24937 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24938 { (exit 1); exit 1; }; }
24941 if test $ol_cv_pthread_select_yields = yes ; then
24942 ol_with_yielding_select=yes
24946 CPPFLAGS="$save_CPPFLAGS"
24949 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24950 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24951 { (exit 1); exit 1; }; }
24955 if test $ol_with_threads = posix ; then
24956 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24957 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24958 { (exit 1); exit 1; }; }
24963 case $ol_with_threads in auto | yes | mach)
24967 for ac_header in mach/cthreads.h cthreads.h
24969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24971 echo "$as_me:$LINENO: checking for $ac_header" >&5
24972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24974 echo $ECHO_N "(cached) $ECHO_C" >&6
24976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24979 # Is the header compilable?
24980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24982 cat >conftest.$ac_ext <<_ACEOF
24985 cat confdefs.h >>conftest.$ac_ext
24986 cat >>conftest.$ac_ext <<_ACEOF
24987 /* end confdefs.h. */
24988 $ac_includes_default
24989 #include <$ac_header>
24991 rm -f conftest.$ac_objext
24992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24993 (eval $ac_compile) 2>conftest.er1
24995 grep -v '^ *+' conftest.er1 >conftest.err
24997 cat conftest.err >&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); } &&
25000 { ac_try='test -z "$ac_c_werror_flag"
25001 || test ! -s conftest.err'
25002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25003 (eval $ac_try) 2>&5
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); }; } &&
25007 { ac_try='test -s conftest.$ac_objext'
25008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25009 (eval $ac_try) 2>&5
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); }; }; then
25013 ac_header_compiler=yes
25015 echo "$as_me: failed program was:" >&5
25016 sed 's/^/| /' conftest.$ac_ext >&5
25018 ac_header_compiler=no
25020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25022 echo "${ECHO_T}$ac_header_compiler" >&6
25024 # Is the header present?
25025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25027 cat >conftest.$ac_ext <<_ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h. */
25033 #include <$ac_header>
25035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25038 grep -v '^ *+' conftest.er1 >conftest.err
25040 cat conftest.err >&5
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); } >/dev/null; then
25043 if test -s conftest.err; then
25044 ac_cpp_err=$ac_c_preproc_warn_flag
25045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25052 if test -z "$ac_cpp_err"; then
25053 ac_header_preproc=yes
25055 echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25058 ac_header_preproc=no
25060 rm -f conftest.err conftest.$ac_ext
25061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25062 echo "${ECHO_T}$ac_header_preproc" >&6
25064 # So? What about this header?
25065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25071 ac_header_preproc=yes
25074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25088 ## --------------------------------------------- ##
25089 ## Report this to <http://www.openldap.org/its/> ##
25090 ## --------------------------------------------- ##
25093 sed "s/^/$as_me: WARNING: /" >&2
25096 echo "$as_me:$LINENO: checking for $ac_header" >&5
25097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25099 echo $ECHO_N "(cached) $ECHO_C" >&6
25101 eval "$as_ac_Header=\$ac_header_preproc"
25103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25108 cat >>confdefs.h <<_ACEOF
25109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25116 if test $ac_cv_header_mach_cthreads_h = yes ; then
25117 ol_with_threads=found
25119 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25120 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25121 if test "${ac_cv_func_cthread_fork+set}" = set; then
25122 echo $ECHO_N "(cached) $ECHO_C" >&6
25124 cat >conftest.$ac_ext <<_ACEOF
25127 cat confdefs.h >>conftest.$ac_ext
25128 cat >>conftest.$ac_ext <<_ACEOF
25129 /* end confdefs.h. */
25130 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25132 #define cthread_fork innocuous_cthread_fork
25134 /* System header to define __stub macros and hopefully few prototypes,
25135 which can conflict with char cthread_fork (); below.
25136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25137 <limits.h> exists even on freestanding compilers. */
25140 # include <limits.h>
25142 # include <assert.h>
25145 #undef cthread_fork
25147 /* Override any gcc2 internal prototype to avoid an error. */
25152 /* We use char because int might match the return type of a gcc2
25153 builtin and then its argument prototype would still apply. */
25154 char cthread_fork ();
25155 /* The GNU C library defines this for functions which it implements
25156 to always fail with ENOSYS. Some functions are actually named
25157 something starting with __ and the normal name is an alias. */
25158 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25161 char (*f) () = cthread_fork;
25170 return f != cthread_fork;
25175 rm -f conftest.$ac_objext conftest$ac_exeext
25176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25177 (eval $ac_link) 2>conftest.er1
25179 grep -v '^ *+' conftest.er1 >conftest.err
25181 cat conftest.err >&5
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); } &&
25184 { ac_try='test -z "$ac_c_werror_flag"
25185 || test ! -s conftest.err'
25186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187 (eval $ac_try) 2>&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; } &&
25191 { ac_try='test -s conftest$ac_exeext'
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; }; then
25197 ac_cv_func_cthread_fork=yes
25199 echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25202 ac_cv_func_cthread_fork=no
25204 rm -f conftest.err conftest.$ac_objext \
25205 conftest$ac_exeext conftest.$ac_ext
25207 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25208 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25209 if test $ac_cv_func_cthread_fork = yes; then
25210 ol_link_threads=yes
25214 if test $ol_link_threads = no ; then
25215 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25216 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25217 if test "${ol_cv_cthread_all_load+set}" = set; then
25218 echo $ECHO_N "(cached) $ECHO_C" >&6
25222 LIBS="-all_load $LIBS"
25223 cat >conftest.$ac_ext <<_ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h. */
25229 #include <mach/cthreads.h>
25234 cthread_fork((void *)0, (void *)0);
25240 rm -f conftest.$ac_objext conftest$ac_exeext
25241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25242 (eval $ac_link) 2>conftest.er1
25244 grep -v '^ *+' conftest.er1 >conftest.err
25246 cat conftest.err >&5
25247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); } &&
25249 { ac_try='test -z "$ac_c_werror_flag"
25250 || test ! -s conftest.err'
25251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252 (eval $ac_try) 2>&5
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); }; } &&
25256 { ac_try='test -s conftest$ac_exeext'
25257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258 (eval $ac_try) 2>&5
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; }; then
25262 ol_cv_cthread_all_load=yes
25264 echo "$as_me: failed program was:" >&5
25265 sed 's/^/| /' conftest.$ac_ext >&5
25267 ol_cv_cthread_all_load=no
25269 rm -f conftest.err conftest.$ac_objext \
25270 conftest$ac_exeext conftest.$ac_ext
25274 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25275 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25277 if test $ol_cv_cthread_all_load = yes ; then
25278 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25279 ol_link_threads=mach
25280 ol_with_threads=found
25284 elif test $ac_cv_header_cthreads_h = yes ; then
25286 ol_with_threads=found
25289 LIBS="$LIBS -lthreads"
25290 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25291 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25292 if test "${ac_cv_func_cthread_fork+set}" = set; then
25293 echo $ECHO_N "(cached) $ECHO_C" >&6
25295 cat >conftest.$ac_ext <<_ACEOF
25298 cat confdefs.h >>conftest.$ac_ext
25299 cat >>conftest.$ac_ext <<_ACEOF
25300 /* end confdefs.h. */
25301 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25303 #define cthread_fork innocuous_cthread_fork
25305 /* System header to define __stub macros and hopefully few prototypes,
25306 which can conflict with char cthread_fork (); below.
25307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25308 <limits.h> exists even on freestanding compilers. */
25311 # include <limits.h>
25313 # include <assert.h>
25316 #undef cthread_fork
25318 /* Override any gcc2 internal prototype to avoid an error. */
25323 /* We use char because int might match the return type of a gcc2
25324 builtin and then its argument prototype would still apply. */
25325 char cthread_fork ();
25326 /* The GNU C library defines this for functions which it implements
25327 to always fail with ENOSYS. Some functions are actually named
25328 something starting with __ and the normal name is an alias. */
25329 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25332 char (*f) () = cthread_fork;
25341 return f != cthread_fork;
25346 rm -f conftest.$ac_objext conftest$ac_exeext
25347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25348 (eval $ac_link) 2>conftest.er1
25350 grep -v '^ *+' conftest.er1 >conftest.err
25352 cat conftest.err >&5
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); } &&
25355 { ac_try='test -z "$ac_c_werror_flag"
25356 || test ! -s conftest.err'
25357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358 (eval $ac_try) 2>&5
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); }; } &&
25362 { ac_try='test -s conftest$ac_exeext'
25363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25364 (eval $ac_try) 2>&5
25366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367 (exit $ac_status); }; }; then
25368 ac_cv_func_cthread_fork=yes
25370 echo "$as_me: failed program was:" >&5
25371 sed 's/^/| /' conftest.$ac_ext >&5
25373 ac_cv_func_cthread_fork=no
25375 rm -f conftest.err conftest.$ac_objext \
25376 conftest$ac_exeext conftest.$ac_ext
25378 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25379 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25380 if test $ac_cv_func_cthread_fork = yes; then
25381 ol_link_threads=yes
25386 if test $ol_link_threads = yes ; then
25387 LTHREAD_LIBS="-lthreads"
25388 ol_link_threads=mach
25389 ol_with_threads=found
25391 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25392 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25393 { (exit 1); exit 1; }; }
25396 elif test $ol_with_threads = mach ; then
25397 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25398 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25399 { (exit 1); exit 1; }; }
25402 if test $ol_link_threads = mach ; then
25404 cat >>confdefs.h <<\_ACEOF
25405 #define HAVE_MACH_CTHREADS 1
25408 elif test $ol_with_threads = found ; then
25409 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25410 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25411 { (exit 1); exit 1; }; }
25416 case $ol_with_threads in auto | yes | pth)
25419 for ac_header in pth.h
25421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25423 echo "$as_me:$LINENO: checking for $ac_header" >&5
25424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25426 echo $ECHO_N "(cached) $ECHO_C" >&6
25428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25431 # Is the header compilable?
25432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25434 cat >conftest.$ac_ext <<_ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h. */
25440 $ac_includes_default
25441 #include <$ac_header>
25443 rm -f conftest.$ac_objext
25444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25445 (eval $ac_compile) 2>conftest.er1
25447 grep -v '^ *+' conftest.er1 >conftest.err
25449 cat conftest.err >&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); } &&
25452 { ac_try='test -z "$ac_c_werror_flag"
25453 || test ! -s conftest.err'
25454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25455 (eval $ac_try) 2>&5
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); }; } &&
25459 { ac_try='test -s conftest.$ac_objext'
25460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461 (eval $ac_try) 2>&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); }; }; then
25465 ac_header_compiler=yes
25467 echo "$as_me: failed program was:" >&5
25468 sed 's/^/| /' conftest.$ac_ext >&5
25470 ac_header_compiler=no
25472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25474 echo "${ECHO_T}$ac_header_compiler" >&6
25476 # Is the header present?
25477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25479 cat >conftest.$ac_ext <<_ACEOF
25482 cat confdefs.h >>conftest.$ac_ext
25483 cat >>conftest.$ac_ext <<_ACEOF
25484 /* end confdefs.h. */
25485 #include <$ac_header>
25487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25490 grep -v '^ *+' conftest.er1 >conftest.err
25492 cat conftest.err >&5
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } >/dev/null; then
25495 if test -s conftest.err; then
25496 ac_cpp_err=$ac_c_preproc_warn_flag
25497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25504 if test -z "$ac_cpp_err"; then
25505 ac_header_preproc=yes
25507 echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25510 ac_header_preproc=no
25512 rm -f conftest.err conftest.$ac_ext
25513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25514 echo "${ECHO_T}$ac_header_preproc" >&6
25516 # So? What about this header?
25517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25523 ac_header_preproc=yes
25526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25540 ## --------------------------------------------- ##
25541 ## Report this to <http://www.openldap.org/its/> ##
25542 ## --------------------------------------------- ##
25545 sed "s/^/$as_me: WARNING: /" >&2
25548 echo "$as_me:$LINENO: checking for $ac_header" >&5
25549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25551 echo $ECHO_N "(cached) $ECHO_C" >&6
25553 eval "$as_ac_Header=\$ac_header_preproc"
25555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25560 cat >>confdefs.h <<_ACEOF
25561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25569 if test $ac_cv_header_pth_h = yes ; then
25570 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25571 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25572 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25573 echo $ECHO_N "(cached) $ECHO_C" >&6
25575 ac_check_lib_save_LIBS=$LIBS
25577 cat >conftest.$ac_ext <<_ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h. */
25584 /* Override any gcc2 internal prototype to avoid an error. */
25588 /* We use char because int might match the return type of a gcc2
25589 builtin and then its argument prototype would still apply. */
25590 char pth_version ();
25599 rm -f conftest.$ac_objext conftest$ac_exeext
25600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25601 (eval $ac_link) 2>conftest.er1
25603 grep -v '^ *+' conftest.er1 >conftest.err
25605 cat conftest.err >&5
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); } &&
25608 { ac_try='test -z "$ac_c_werror_flag"
25609 || test ! -s conftest.err'
25610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611 (eval $ac_try) 2>&5
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); }; } &&
25615 { ac_try='test -s conftest$ac_exeext'
25616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25617 (eval $ac_try) 2>&5
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); }; }; then
25621 ac_cv_lib_pth_pth_version=yes
25623 echo "$as_me: failed program was:" >&5
25624 sed 's/^/| /' conftest.$ac_ext >&5
25626 ac_cv_lib_pth_pth_version=no
25628 rm -f conftest.err conftest.$ac_objext \
25629 conftest$ac_exeext conftest.$ac_ext
25630 LIBS=$ac_check_lib_save_LIBS
25632 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25633 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25634 if test $ac_cv_lib_pth_pth_version = yes; then
25641 if test $have_pth = yes ; then
25643 cat >>confdefs.h <<\_ACEOF
25644 #define HAVE_GNU_PTH 1
25647 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25648 ol_link_threads=pth
25649 ol_with_threads=found
25651 if test $ol_with_yielding_select = auto ; then
25652 ol_with_yielding_select=yes
25659 case $ol_with_threads in auto | yes | lwp)
25663 for ac_header in thread.h synch.h
25665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25667 echo "$as_me:$LINENO: checking for $ac_header" >&5
25668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25670 echo $ECHO_N "(cached) $ECHO_C" >&6
25672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25675 # Is the header compilable?
25676 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25677 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
25685 #include <$ac_header>
25687 rm -f conftest.$ac_objext
25688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25689 (eval $ac_compile) 2>conftest.er1
25691 grep -v '^ *+' conftest.er1 >conftest.err
25693 cat conftest.err >&5
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); } &&
25696 { ac_try='test -z "$ac_c_werror_flag"
25697 || test ! -s conftest.err'
25698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25699 (eval $ac_try) 2>&5
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); }; } &&
25703 { ac_try='test -s conftest.$ac_objext'
25704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25705 (eval $ac_try) 2>&5
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); }; }; then
25709 ac_header_compiler=yes
25711 echo "$as_me: failed program was:" >&5
25712 sed 's/^/| /' conftest.$ac_ext >&5
25714 ac_header_compiler=no
25716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25718 echo "${ECHO_T}$ac_header_compiler" >&6
25720 # Is the header present?
25721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25723 cat >conftest.$ac_ext <<_ACEOF
25726 cat confdefs.h >>conftest.$ac_ext
25727 cat >>conftest.$ac_ext <<_ACEOF
25728 /* end confdefs.h. */
25729 #include <$ac_header>
25731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25734 grep -v '^ *+' conftest.er1 >conftest.err
25736 cat conftest.err >&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); } >/dev/null; then
25739 if test -s conftest.err; then
25740 ac_cpp_err=$ac_c_preproc_warn_flag
25741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25748 if test -z "$ac_cpp_err"; then
25749 ac_header_preproc=yes
25751 echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.$ac_ext >&5
25754 ac_header_preproc=no
25756 rm -f conftest.err conftest.$ac_ext
25757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25758 echo "${ECHO_T}$ac_header_preproc" >&6
25760 # So? What about this header?
25761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25767 ac_header_preproc=yes
25770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25784 ## --------------------------------------------- ##
25785 ## Report this to <http://www.openldap.org/its/> ##
25786 ## --------------------------------------------- ##
25789 sed "s/^/$as_me: WARNING: /" >&2
25792 echo "$as_me:$LINENO: checking for $ac_header" >&5
25793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25795 echo $ECHO_N "(cached) $ECHO_C" >&6
25797 eval "$as_ac_Header=\$ac_header_preproc"
25799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25804 cat >>confdefs.h <<_ACEOF
25805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25812 if test $ac_cv_header_thread_h = yes &&
25813 test $ac_cv_header_synch_h = yes ; then
25814 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25815 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25816 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25817 echo $ECHO_N "(cached) $ECHO_C" >&6
25819 ac_check_lib_save_LIBS=$LIBS
25820 LIBS="-lthread $LIBS"
25821 cat >conftest.$ac_ext <<_ACEOF
25824 cat confdefs.h >>conftest.$ac_ext
25825 cat >>conftest.$ac_ext <<_ACEOF
25826 /* end confdefs.h. */
25828 /* Override any gcc2 internal prototype to avoid an error. */
25832 /* We use char because int might match the return type of a gcc2
25833 builtin and then its argument prototype would still apply. */
25834 char thr_create ();
25843 rm -f conftest.$ac_objext conftest$ac_exeext
25844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25845 (eval $ac_link) 2>conftest.er1
25847 grep -v '^ *+' conftest.er1 >conftest.err
25849 cat conftest.err >&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } &&
25852 { ac_try='test -z "$ac_c_werror_flag"
25853 || test ! -s conftest.err'
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; } &&
25859 { ac_try='test -s conftest$ac_exeext'
25860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861 (eval $ac_try) 2>&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; }; then
25865 ac_cv_lib_thread_thr_create=yes
25867 echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25870 ac_cv_lib_thread_thr_create=no
25872 rm -f conftest.err conftest.$ac_objext \
25873 conftest$ac_exeext conftest.$ac_ext
25874 LIBS=$ac_check_lib_save_LIBS
25876 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25877 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25878 if test $ac_cv_lib_thread_thr_create = yes; then
25885 if test $have_thr = yes ; then
25887 cat >>confdefs.h <<\_ACEOF
25891 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25892 ol_link_threads=thr
25894 if test $ol_with_yielding_select = auto ; then
25895 ol_with_yielding_select=yes
25901 thr_setconcurrency \
25902 thr_getconcurrency \
25905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25906 echo "$as_me:$LINENO: checking for $ac_func" >&5
25907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25908 if eval "test \"\${$as_ac_var+set}\" = set"; then
25909 echo $ECHO_N "(cached) $ECHO_C" >&6
25911 cat >conftest.$ac_ext <<_ACEOF
25914 cat confdefs.h >>conftest.$ac_ext
25915 cat >>conftest.$ac_ext <<_ACEOF
25916 /* end confdefs.h. */
25917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25919 #define $ac_func innocuous_$ac_func
25921 /* System header to define __stub macros and hopefully few prototypes,
25922 which can conflict with char $ac_func (); below.
25923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25924 <limits.h> exists even on freestanding compilers. */
25927 # include <limits.h>
25929 # include <assert.h>
25934 /* Override any gcc2 internal prototype to avoid an error. */
25939 /* We use char because int might match the return type of a gcc2
25940 builtin and then its argument prototype would still apply. */
25942 /* The GNU C library defines this for functions which it implements
25943 to always fail with ENOSYS. Some functions are actually named
25944 something starting with __ and the normal name is an alias. */
25945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25948 char (*f) () = $ac_func;
25957 return f != $ac_func;
25962 rm -f conftest.$ac_objext conftest$ac_exeext
25963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25964 (eval $ac_link) 2>conftest.er1
25966 grep -v '^ *+' conftest.er1 >conftest.err
25968 cat conftest.err >&5
25969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25970 (exit $ac_status); } &&
25971 { ac_try='test -z "$ac_c_werror_flag"
25972 || test ! -s conftest.err'
25973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25974 (eval $ac_try) 2>&5
25976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); }; } &&
25978 { ac_try='test -s conftest$ac_exeext'
25979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25980 (eval $ac_try) 2>&5
25982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983 (exit $ac_status); }; }; then
25984 eval "$as_ac_var=yes"
25986 echo "$as_me: failed program was:" >&5
25987 sed 's/^/| /' conftest.$ac_ext >&5
25989 eval "$as_ac_var=no"
25991 rm -f conftest.err conftest.$ac_objext \
25992 conftest$ac_exeext conftest.$ac_ext
25994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25996 if test `eval echo '${'$as_ac_var'}'` = yes; then
25997 cat >>confdefs.h <<_ACEOF
25998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26008 for ac_header in lwp/lwp.h
26010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26012 echo "$as_me:$LINENO: checking for $ac_header" >&5
26013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26015 echo $ECHO_N "(cached) $ECHO_C" >&6
26017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26020 # Is the header compilable?
26021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26023 cat >conftest.$ac_ext <<_ACEOF
26026 cat confdefs.h >>conftest.$ac_ext
26027 cat >>conftest.$ac_ext <<_ACEOF
26028 /* end confdefs.h. */
26029 $ac_includes_default
26030 #include <$ac_header>
26032 rm -f conftest.$ac_objext
26033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26034 (eval $ac_compile) 2>conftest.er1
26036 grep -v '^ *+' conftest.er1 >conftest.err
26038 cat conftest.err >&5
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); } &&
26041 { ac_try='test -z "$ac_c_werror_flag"
26042 || test ! -s conftest.err'
26043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044 (eval $ac_try) 2>&5
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); }; } &&
26048 { ac_try='test -s conftest.$ac_objext'
26049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050 (eval $ac_try) 2>&5
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; }; then
26054 ac_header_compiler=yes
26056 echo "$as_me: failed program was:" >&5
26057 sed 's/^/| /' conftest.$ac_ext >&5
26059 ac_header_compiler=no
26061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26063 echo "${ECHO_T}$ac_header_compiler" >&6
26065 # Is the header present?
26066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26068 cat >conftest.$ac_ext <<_ACEOF
26071 cat confdefs.h >>conftest.$ac_ext
26072 cat >>conftest.$ac_ext <<_ACEOF
26073 /* end confdefs.h. */
26074 #include <$ac_header>
26076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26079 grep -v '^ *+' conftest.er1 >conftest.err
26081 cat conftest.err >&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); } >/dev/null; then
26084 if test -s conftest.err; then
26085 ac_cpp_err=$ac_c_preproc_warn_flag
26086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26093 if test -z "$ac_cpp_err"; then
26094 ac_header_preproc=yes
26096 echo "$as_me: failed program was:" >&5
26097 sed 's/^/| /' conftest.$ac_ext >&5
26099 ac_header_preproc=no
26101 rm -f conftest.err conftest.$ac_ext
26102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26103 echo "${ECHO_T}$ac_header_preproc" >&6
26105 # So? What about this header?
26106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26112 ac_header_preproc=yes
26115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26129 ## --------------------------------------------- ##
26130 ## Report this to <http://www.openldap.org/its/> ##
26131 ## --------------------------------------------- ##
26134 sed "s/^/$as_me: WARNING: /" >&2
26137 echo "$as_me:$LINENO: checking for $ac_header" >&5
26138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26140 echo $ECHO_N "(cached) $ECHO_C" >&6
26142 eval "$as_ac_Header=\$ac_header_preproc"
26144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26149 cat >>confdefs.h <<_ACEOF
26150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26157 if test $ac_cv_header_lwp_lwp_h = yes ; then
26158 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26159 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26160 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26161 echo $ECHO_N "(cached) $ECHO_C" >&6
26163 ac_check_lib_save_LIBS=$LIBS
26165 cat >conftest.$ac_ext <<_ACEOF
26168 cat confdefs.h >>conftest.$ac_ext
26169 cat >>conftest.$ac_ext <<_ACEOF
26170 /* end confdefs.h. */
26172 /* Override any gcc2 internal prototype to avoid an error. */
26176 /* We use char because int might match the return type of a gcc2
26177 builtin and then its argument prototype would still apply. */
26178 char lwp_create ();
26187 rm -f conftest.$ac_objext conftest$ac_exeext
26188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26189 (eval $ac_link) 2>conftest.er1
26191 grep -v '^ *+' conftest.er1 >conftest.err
26193 cat conftest.err >&5
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); } &&
26196 { ac_try='test -z "$ac_c_werror_flag"
26197 || test ! -s conftest.err'
26198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199 (eval $ac_try) 2>&5
26201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); }; } &&
26203 { ac_try='test -s conftest$ac_exeext'
26204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26205 (eval $ac_try) 2>&5
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); }; }; then
26209 ac_cv_lib_lwp_lwp_create=yes
26211 echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26214 ac_cv_lib_lwp_lwp_create=no
26216 rm -f conftest.err conftest.$ac_objext \
26217 conftest$ac_exeext conftest.$ac_ext
26218 LIBS=$ac_check_lib_save_LIBS
26220 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26221 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26222 if test $ac_cv_lib_lwp_lwp_create = yes; then
26229 if test $have_lwp = yes ; then
26231 cat >>confdefs.h <<\_ACEOF
26235 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26236 ol_link_threads=lwp
26238 if test $ol_with_yielding_select = auto ; then
26239 ol_with_yielding_select=no
26246 if test $ol_with_yielding_select = yes ; then
26248 cat >>confdefs.h <<\_ACEOF
26249 #define HAVE_YIELDING_SELECT 1
26254 if test $ol_with_threads = manual ; then
26255 ol_link_threads=yes
26257 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26258 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26262 for ac_header in pthread.h sched.h
26264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26266 echo "$as_me:$LINENO: checking for $ac_header" >&5
26267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26269 echo $ECHO_N "(cached) $ECHO_C" >&6
26271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26274 # Is the header compilable?
26275 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26277 cat >conftest.$ac_ext <<_ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h. */
26283 $ac_includes_default
26284 #include <$ac_header>
26286 rm -f conftest.$ac_objext
26287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26288 (eval $ac_compile) 2>conftest.er1
26290 grep -v '^ *+' conftest.er1 >conftest.err
26292 cat conftest.err >&5
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); } &&
26295 { ac_try='test -z "$ac_c_werror_flag"
26296 || test ! -s conftest.err'
26297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26298 (eval $ac_try) 2>&5
26300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301 (exit $ac_status); }; } &&
26302 { ac_try='test -s conftest.$ac_objext'
26303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26304 (eval $ac_try) 2>&5
26306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307 (exit $ac_status); }; }; then
26308 ac_header_compiler=yes
26310 echo "$as_me: failed program was:" >&5
26311 sed 's/^/| /' conftest.$ac_ext >&5
26313 ac_header_compiler=no
26315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26317 echo "${ECHO_T}$ac_header_compiler" >&6
26319 # Is the header present?
26320 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26322 cat >conftest.$ac_ext <<_ACEOF
26325 cat confdefs.h >>conftest.$ac_ext
26326 cat >>conftest.$ac_ext <<_ACEOF
26327 /* end confdefs.h. */
26328 #include <$ac_header>
26330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26333 grep -v '^ *+' conftest.er1 >conftest.err
26335 cat conftest.err >&5
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); } >/dev/null; then
26338 if test -s conftest.err; then
26339 ac_cpp_err=$ac_c_preproc_warn_flag
26340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26347 if test -z "$ac_cpp_err"; then
26348 ac_header_preproc=yes
26350 echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26353 ac_header_preproc=no
26355 rm -f conftest.err conftest.$ac_ext
26356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26357 echo "${ECHO_T}$ac_header_preproc" >&6
26359 # So? What about this header?
26360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26362 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26366 ac_header_preproc=yes
26369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26372 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26373 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26374 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26375 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26376 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26379 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26380 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26383 ## --------------------------------------------- ##
26384 ## Report this to <http://www.openldap.org/its/> ##
26385 ## --------------------------------------------- ##
26388 sed "s/^/$as_me: WARNING: /" >&2
26391 echo "$as_me:$LINENO: checking for $ac_header" >&5
26392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26394 echo $ECHO_N "(cached) $ECHO_C" >&6
26396 eval "$as_ac_Header=\$ac_header_preproc"
26398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26403 cat >>confdefs.h <<_ACEOF
26404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26413 for ac_func in sched_yield pthread_yield
26415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26416 echo "$as_me:$LINENO: checking for $ac_func" >&5
26417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26418 if eval "test \"\${$as_ac_var+set}\" = set"; then
26419 echo $ECHO_N "(cached) $ECHO_C" >&6
26421 cat >conftest.$ac_ext <<_ACEOF
26424 cat confdefs.h >>conftest.$ac_ext
26425 cat >>conftest.$ac_ext <<_ACEOF
26426 /* end confdefs.h. */
26427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26429 #define $ac_func innocuous_$ac_func
26431 /* System header to define __stub macros and hopefully few prototypes,
26432 which can conflict with char $ac_func (); below.
26433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26434 <limits.h> exists even on freestanding compilers. */
26437 # include <limits.h>
26439 # include <assert.h>
26444 /* Override any gcc2 internal prototype to avoid an error. */
26449 /* We use char because int might match the return type of a gcc2
26450 builtin and then its argument prototype would still apply. */
26452 /* The GNU C library defines this for functions which it implements
26453 to always fail with ENOSYS. Some functions are actually named
26454 something starting with __ and the normal name is an alias. */
26455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26458 char (*f) () = $ac_func;
26467 return f != $ac_func;
26472 rm -f conftest.$ac_objext conftest$ac_exeext
26473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26474 (eval $ac_link) 2>conftest.er1
26476 grep -v '^ *+' conftest.er1 >conftest.err
26478 cat conftest.err >&5
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); } &&
26481 { ac_try='test -z "$ac_c_werror_flag"
26482 || test ! -s conftest.err'
26483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 (eval $ac_try) 2>&5
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); }; } &&
26488 { ac_try='test -s conftest$ac_exeext'
26489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26490 (eval $ac_try) 2>&5
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); }; }; then
26494 eval "$as_ac_var=yes"
26496 echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26499 eval "$as_ac_var=no"
26501 rm -f conftest.err conftest.$ac_objext \
26502 conftest$ac_exeext conftest.$ac_ext
26504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26506 if test `eval echo '${'$as_ac_var'}'` = yes; then
26507 cat >>confdefs.h <<_ACEOF
26508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26515 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26516 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26517 if test "${ol_cv_header_linux_threads+set}" = set; then
26518 echo $ECHO_N "(cached) $ECHO_C" >&6
26520 cat >conftest.$ac_ext <<_ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h. */
26526 #include <pthread.h>
26528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26529 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26530 ol_cv_header_linux_threads=yes
26532 ol_cv_header_linux_threads=no
26538 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26539 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26540 if test $ol_cv_header_linux_threads = yes; then
26542 cat >>confdefs.h <<\_ACEOF
26543 #define HAVE_LINUX_THREADS 1
26550 for ac_header in mach/cthreads.h
26552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26554 echo "$as_me:$LINENO: checking for $ac_header" >&5
26555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26557 echo $ECHO_N "(cached) $ECHO_C" >&6
26559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26562 # Is the header compilable?
26563 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26565 cat >conftest.$ac_ext <<_ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h. */
26571 $ac_includes_default
26572 #include <$ac_header>
26574 rm -f conftest.$ac_objext
26575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26576 (eval $ac_compile) 2>conftest.er1
26578 grep -v '^ *+' conftest.er1 >conftest.err
26580 cat conftest.err >&5
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); } &&
26583 { ac_try='test -z "$ac_c_werror_flag"
26584 || test ! -s conftest.err'
26585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26586 (eval $ac_try) 2>&5
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); }; } &&
26590 { ac_try='test -s conftest.$ac_objext'
26591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592 (eval $ac_try) 2>&5
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); }; }; then
26596 ac_header_compiler=yes
26598 echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26601 ac_header_compiler=no
26603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26605 echo "${ECHO_T}$ac_header_compiler" >&6
26607 # Is the header present?
26608 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26610 cat >conftest.$ac_ext <<_ACEOF
26613 cat confdefs.h >>conftest.$ac_ext
26614 cat >>conftest.$ac_ext <<_ACEOF
26615 /* end confdefs.h. */
26616 #include <$ac_header>
26618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26621 grep -v '^ *+' conftest.er1 >conftest.err
26623 cat conftest.err >&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); } >/dev/null; then
26626 if test -s conftest.err; then
26627 ac_cpp_err=$ac_c_preproc_warn_flag
26628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26635 if test -z "$ac_cpp_err"; then
26636 ac_header_preproc=yes
26638 echo "$as_me: failed program was:" >&5
26639 sed 's/^/| /' conftest.$ac_ext >&5
26641 ac_header_preproc=no
26643 rm -f conftest.err conftest.$ac_ext
26644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26645 echo "${ECHO_T}$ac_header_preproc" >&6
26647 # So? What about this header?
26648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26654 ac_header_preproc=yes
26657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26671 ## --------------------------------------------- ##
26672 ## Report this to <http://www.openldap.org/its/> ##
26673 ## --------------------------------------------- ##
26676 sed "s/^/$as_me: WARNING: /" >&2
26679 echo "$as_me:$LINENO: checking for $ac_header" >&5
26680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26682 echo $ECHO_N "(cached) $ECHO_C" >&6
26684 eval "$as_ac_Header=\$ac_header_preproc"
26686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26691 cat >>confdefs.h <<_ACEOF
26692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26700 for ac_header in lwp/lwp.h
26702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26704 echo "$as_me:$LINENO: checking for $ac_header" >&5
26705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26707 echo $ECHO_N "(cached) $ECHO_C" >&6
26709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26712 # Is the header compilable?
26713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26715 cat >conftest.$ac_ext <<_ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h. */
26721 $ac_includes_default
26722 #include <$ac_header>
26724 rm -f conftest.$ac_objext
26725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26726 (eval $ac_compile) 2>conftest.er1
26728 grep -v '^ *+' conftest.er1 >conftest.err
26730 cat conftest.err >&5
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); } &&
26733 { ac_try='test -z "$ac_c_werror_flag"
26734 || test ! -s conftest.err'
26735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26736 (eval $ac_try) 2>&5
26738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739 (exit $ac_status); }; } &&
26740 { ac_try='test -s conftest.$ac_objext'
26741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26742 (eval $ac_try) 2>&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); }; }; then
26746 ac_header_compiler=yes
26748 echo "$as_me: failed program was:" >&5
26749 sed 's/^/| /' conftest.$ac_ext >&5
26751 ac_header_compiler=no
26753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26755 echo "${ECHO_T}$ac_header_compiler" >&6
26757 # Is the header present?
26758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26760 cat >conftest.$ac_ext <<_ACEOF
26763 cat confdefs.h >>conftest.$ac_ext
26764 cat >>conftest.$ac_ext <<_ACEOF
26765 /* end confdefs.h. */
26766 #include <$ac_header>
26768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26771 grep -v '^ *+' conftest.er1 >conftest.err
26773 cat conftest.err >&5
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); } >/dev/null; then
26776 if test -s conftest.err; then
26777 ac_cpp_err=$ac_c_preproc_warn_flag
26778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26785 if test -z "$ac_cpp_err"; then
26786 ac_header_preproc=yes
26788 echo "$as_me: failed program was:" >&5
26789 sed 's/^/| /' conftest.$ac_ext >&5
26791 ac_header_preproc=no
26793 rm -f conftest.err conftest.$ac_ext
26794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26795 echo "${ECHO_T}$ac_header_preproc" >&6
26797 # So? What about this header?
26798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26804 ac_header_preproc=yes
26807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26821 ## --------------------------------------------- ##
26822 ## Report this to <http://www.openldap.org/its/> ##
26823 ## --------------------------------------------- ##
26826 sed "s/^/$as_me: WARNING: /" >&2
26829 echo "$as_me:$LINENO: checking for $ac_header" >&5
26830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26832 echo $ECHO_N "(cached) $ECHO_C" >&6
26834 eval "$as_ac_Header=\$ac_header_preproc"
26836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26841 cat >>confdefs.h <<_ACEOF
26842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26851 for ac_header in thread.h synch.h
26853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26855 echo "$as_me:$LINENO: checking for $ac_header" >&5
26856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26858 echo $ECHO_N "(cached) $ECHO_C" >&6
26860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26863 # Is the header compilable?
26864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26866 cat >conftest.$ac_ext <<_ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h. */
26872 $ac_includes_default
26873 #include <$ac_header>
26875 rm -f conftest.$ac_objext
26876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26877 (eval $ac_compile) 2>conftest.er1
26879 grep -v '^ *+' conftest.er1 >conftest.err
26881 cat conftest.err >&5
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); } &&
26884 { ac_try='test -z "$ac_c_werror_flag"
26885 || test ! -s conftest.err'
26886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26887 (eval $ac_try) 2>&5
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); }; } &&
26891 { ac_try='test -s conftest.$ac_objext'
26892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26893 (eval $ac_try) 2>&5
26895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896 (exit $ac_status); }; }; then
26897 ac_header_compiler=yes
26899 echo "$as_me: failed program was:" >&5
26900 sed 's/^/| /' conftest.$ac_ext >&5
26902 ac_header_compiler=no
26904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26906 echo "${ECHO_T}$ac_header_compiler" >&6
26908 # Is the header present?
26909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26911 cat >conftest.$ac_ext <<_ACEOF
26914 cat confdefs.h >>conftest.$ac_ext
26915 cat >>conftest.$ac_ext <<_ACEOF
26916 /* end confdefs.h. */
26917 #include <$ac_header>
26919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26922 grep -v '^ *+' conftest.er1 >conftest.err
26924 cat conftest.err >&5
26925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926 (exit $ac_status); } >/dev/null; then
26927 if test -s conftest.err; then
26928 ac_cpp_err=$ac_c_preproc_warn_flag
26929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26936 if test -z "$ac_cpp_err"; then
26937 ac_header_preproc=yes
26939 echo "$as_me: failed program was:" >&5
26940 sed 's/^/| /' conftest.$ac_ext >&5
26942 ac_header_preproc=no
26944 rm -f conftest.err conftest.$ac_ext
26945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26946 echo "${ECHO_T}$ac_header_preproc" >&6
26948 # So? What about this header?
26949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26955 ac_header_preproc=yes
26958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26972 ## --------------------------------------------- ##
26973 ## Report this to <http://www.openldap.org/its/> ##
26974 ## --------------------------------------------- ##
26977 sed "s/^/$as_me: WARNING: /" >&2
26980 echo "$as_me:$LINENO: checking for $ac_header" >&5
26981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26983 echo $ECHO_N "(cached) $ECHO_C" >&6
26985 eval "$as_ac_Header=\$ac_header_preproc"
26987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26992 cat >>confdefs.h <<_ACEOF
26993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27002 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27003 cat >>confdefs.h <<\_ACEOF
27004 #define REENTRANT 1
27007 cat >>confdefs.h <<\_ACEOF
27008 #define _REENTRANT 1
27011 cat >>confdefs.h <<\_ACEOF
27012 #define THREAD_SAFE 1
27015 cat >>confdefs.h <<\_ACEOF
27016 #define _THREAD_SAFE 1
27019 cat >>confdefs.h <<\_ACEOF
27020 #define THREADSAFE 1
27023 cat >>confdefs.h <<\_ACEOF
27024 #define _THREADSAFE 1
27027 cat >>confdefs.h <<\_ACEOF
27028 #define _SGI_MP_SOURCE 1
27032 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27033 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27034 if test "${ol_cv_errno_thread_specific+set}" = set; then
27035 echo $ECHO_N "(cached) $ECHO_C" >&6
27038 cat >conftest.$ac_ext <<_ACEOF
27041 cat confdefs.h >>conftest.$ac_ext
27042 cat >>conftest.$ac_ext <<_ACEOF
27043 /* end confdefs.h. */
27053 rm -f conftest.$ac_objext conftest$ac_exeext
27054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27055 (eval $ac_link) 2>conftest.er1
27057 grep -v '^ *+' conftest.er1 >conftest.err
27059 cat conftest.err >&5
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); } &&
27062 { ac_try='test -z "$ac_c_werror_flag"
27063 || test ! -s conftest.err'
27064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065 (eval $ac_try) 2>&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); }; } &&
27069 { ac_try='test -s conftest$ac_exeext'
27070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27071 (eval $ac_try) 2>&5
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); }; }; then
27075 ol_cv_errno_thread_specific=yes
27077 echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.$ac_ext >&5
27080 ol_cv_errno_thread_specific=no
27082 rm -f conftest.err conftest.$ac_objext \
27083 conftest$ac_exeext conftest.$ac_ext
27086 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27087 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27089 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27090 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27091 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27092 echo $ECHO_N "(cached) $ECHO_C" >&6
27095 cat >conftest.$ac_ext <<_ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h. */
27110 rm -f conftest.$ac_objext conftest$ac_exeext
27111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27112 (eval $ac_link) 2>conftest.er1
27114 grep -v '^ *+' conftest.er1 >conftest.err
27116 cat conftest.err >&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); } &&
27119 { ac_try='test -z "$ac_c_werror_flag"
27120 || test ! -s conftest.err'
27121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122 (eval $ac_try) 2>&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; } &&
27126 { ac_try='test -s conftest$ac_exeext'
27127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128 (eval $ac_try) 2>&5
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); }; }; then
27132 ol_cv_h_errno_thread_specific=yes
27134 echo "$as_me: failed program was:" >&5
27135 sed 's/^/| /' conftest.$ac_ext >&5
27137 ol_cv_h_errno_thread_specific=no
27139 rm -f conftest.err conftest.$ac_objext \
27140 conftest$ac_exeext conftest.$ac_ext
27143 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27144 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27146 if test $ol_cv_errno_thread_specific != yes ||
27147 test $ol_cv_h_errno_thread_specific != yes ; then
27148 LIBS="$LTHREAD_LIBS $LIBS"
27154 if test $ol_link_threads = no ; then
27155 if test $ol_with_threads = yes ; then
27156 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27157 echo "$as_me: error: no suitable thread support" >&2;}
27158 { (exit 1); exit 1; }; }
27161 if test $ol_with_threads = auto ; then
27162 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27163 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27168 cat >>confdefs.h <<\_ACEOF
27169 #define NO_THREADS 1
27178 if test $ol_link_threads != no ; then
27180 cat >>confdefs.h <<\_ACEOF
27181 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27191 gethostbyname_r gethostbyaddr_r \
27194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27195 echo "$as_me:$LINENO: checking for $ac_func" >&5
27196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27197 if eval "test \"\${$as_ac_var+set}\" = set"; then
27198 echo $ECHO_N "(cached) $ECHO_C" >&6
27200 cat >conftest.$ac_ext <<_ACEOF
27203 cat confdefs.h >>conftest.$ac_ext
27204 cat >>conftest.$ac_ext <<_ACEOF
27205 /* end confdefs.h. */
27206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27208 #define $ac_func innocuous_$ac_func
27210 /* System header to define __stub macros and hopefully few prototypes,
27211 which can conflict with char $ac_func (); below.
27212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27213 <limits.h> exists even on freestanding compilers. */
27216 # include <limits.h>
27218 # include <assert.h>
27223 /* Override any gcc2 internal prototype to avoid an error. */
27228 /* We use char because int might match the return type of a gcc2
27229 builtin and then its argument prototype would still apply. */
27231 /* The GNU C library defines this for functions which it implements
27232 to always fail with ENOSYS. Some functions are actually named
27233 something starting with __ and the normal name is an alias. */
27234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27237 char (*f) () = $ac_func;
27246 return f != $ac_func;
27251 rm -f conftest.$ac_objext conftest$ac_exeext
27252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27253 (eval $ac_link) 2>conftest.er1
27255 grep -v '^ *+' conftest.er1 >conftest.err
27257 cat conftest.err >&5
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); } &&
27260 { ac_try='test -z "$ac_c_werror_flag"
27261 || test ! -s conftest.err'
27262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263 (eval $ac_try) 2>&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; } &&
27267 { ac_try='test -s conftest$ac_exeext'
27268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269 (eval $ac_try) 2>&5
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); }; }; then
27273 eval "$as_ac_var=yes"
27275 echo "$as_me: failed program was:" >&5
27276 sed 's/^/| /' conftest.$ac_ext >&5
27278 eval "$as_ac_var=no"
27280 rm -f conftest.err conftest.$ac_objext \
27281 conftest$ac_exeext conftest.$ac_ext
27283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27285 if test `eval echo '${'$as_ac_var'}'` = yes; then
27286 cat >>confdefs.h <<_ACEOF
27287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27294 if test "$ac_cv_func_ctime_r" = no ; then
27295 ol_cv_func_ctime_r_nargs=0
27297 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27298 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27299 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27300 echo $ECHO_N "(cached) $ECHO_C" >&6
27302 cat >conftest.$ac_ext <<_ACEOF
27305 cat confdefs.h >>conftest.$ac_ext
27306 cat >>conftest.$ac_ext <<_ACEOF
27307 /* end confdefs.h. */
27312 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27317 rm -f conftest.$ac_objext
27318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27319 (eval $ac_compile) 2>conftest.er1
27321 grep -v '^ *+' conftest.er1 >conftest.err
27323 cat conftest.err >&5
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); } &&
27326 { ac_try='test -z "$ac_c_werror_flag"
27327 || test ! -s conftest.err'
27328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27329 (eval $ac_try) 2>&5
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); }; } &&
27333 { ac_try='test -s conftest.$ac_objext'
27334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335 (eval $ac_try) 2>&5
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; }; then
27339 ol_cv_func_ctime_r_nargs3=yes
27341 echo "$as_me: failed program was:" >&5
27342 sed 's/^/| /' conftest.$ac_ext >&5
27344 ol_cv_func_ctime_r_nargs3=no
27346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27348 cat >conftest.$ac_ext <<_ACEOF
27351 cat confdefs.h >>conftest.$ac_ext
27352 cat >>conftest.$ac_ext <<_ACEOF
27353 /* end confdefs.h. */
27358 time_t ti; char *buffer; ctime_r(&ti,buffer);
27363 rm -f conftest.$ac_objext
27364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27365 (eval $ac_compile) 2>conftest.er1
27367 grep -v '^ *+' conftest.er1 >conftest.err
27369 cat conftest.err >&5
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); } &&
27372 { ac_try='test -z "$ac_c_werror_flag"
27373 || test ! -s conftest.err'
27374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27375 (eval $ac_try) 2>&5
27377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); }; } &&
27379 { ac_try='test -s conftest.$ac_objext'
27380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381 (eval $ac_try) 2>&5
27383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); }; }; then
27385 ol_cv_func_ctime_r_nargs2=yes
27387 echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27390 ol_cv_func_ctime_r_nargs2=no
27392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27394 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27395 test $ol_cv_func_ctime_r_nargs2 = no ; then
27397 ol_cv_func_ctime_r_nargs=3
27399 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27400 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27402 ol_cv_func_ctime_r_nargs=2
27405 ol_cv_func_ctime_r_nargs=0
27409 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27410 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27412 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27414 cat >>confdefs.h <<_ACEOF
27415 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27422 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27423 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27424 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27425 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27426 echo $ECHO_N "(cached) $ECHO_C" >&6
27428 cat >conftest.$ac_ext <<_ACEOF
27431 cat confdefs.h >>conftest.$ac_ext
27432 cat >>conftest.$ac_ext <<_ACEOF
27433 /* end confdefs.h. */
27434 #include <sys/types.h>
27435 #include <sys/socket.h>
27436 #include <netinet/in.h>
27438 #define BUFSIZE (sizeof(struct hostent)+10)
27442 struct hostent hent; char buffer[BUFSIZE];
27443 int bufsize=BUFSIZE;int h_errno;
27444 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27445 buffer, bufsize, &h_errno);
27450 rm -f conftest.$ac_objext
27451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27452 (eval $ac_compile) 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_objext'
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 ol_cv_func_gethostbyname_r_nargs5=yes
27474 echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27477 ol_cv_func_gethostbyname_r_nargs5=no
27479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27481 cat >conftest.$ac_ext <<_ACEOF
27484 cat confdefs.h >>conftest.$ac_ext
27485 cat >>conftest.$ac_ext <<_ACEOF
27486 /* end confdefs.h. */
27487 #include <sys/types.h>
27488 #include <sys/socket.h>
27489 #include <netinet/in.h>
27491 #define BUFSIZE (sizeof(struct hostent)+10)
27495 struct hostent hent;struct hostent *rhent;
27496 char buffer[BUFSIZE];
27497 int bufsize=BUFSIZE;int h_errno;
27498 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27504 rm -f conftest.$ac_objext
27505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27506 (eval $ac_compile) 2>conftest.er1
27508 grep -v '^ *+' conftest.er1 >conftest.err
27510 cat conftest.err >&5
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); } &&
27513 { ac_try='test -z "$ac_c_werror_flag"
27514 || test ! -s conftest.err'
27515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27516 (eval $ac_try) 2>&5
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; } &&
27520 { ac_try='test -s conftest.$ac_objext'
27521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27522 (eval $ac_try) 2>&5
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); }; }; then
27526 ol_cv_func_gethostbyname_r_nargs6=yes
27528 echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27531 ol_cv_func_gethostbyname_r_nargs6=no
27533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27535 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27536 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27538 ol_cv_func_gethostbyname_r_nargs=5
27540 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27541 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27543 ol_cv_func_gethostbyname_r_nargs=6
27546 ol_cv_func_gethostbyname_r_nargs=0
27550 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27551 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27552 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27554 cat >>confdefs.h <<_ACEOF
27555 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27561 ol_cv_func_gethostbyname_r_nargs=0
27564 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27565 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27566 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27567 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27568 echo $ECHO_N "(cached) $ECHO_C" >&6
27570 cat >conftest.$ac_ext <<_ACEOF
27573 cat confdefs.h >>conftest.$ac_ext
27574 cat >>conftest.$ac_ext <<_ACEOF
27575 /* end confdefs.h. */
27576 #include <sys/types.h>
27577 #include <sys/socket.h>
27578 #include <netinet/in.h>
27580 #define BUFSIZE (sizeof(struct hostent)+10)
27584 struct hostent hent; char buffer[BUFSIZE];
27585 struct in_addr add;
27586 size_t alen=sizeof(struct in_addr);
27587 int bufsize=BUFSIZE;int h_errno;
27588 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27589 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27594 rm -f conftest.$ac_objext
27595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27596 (eval $ac_compile) 2>conftest.er1
27598 grep -v '^ *+' conftest.er1 >conftest.err
27600 cat conftest.err >&5
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); } &&
27603 { ac_try='test -z "$ac_c_werror_flag"
27604 || test ! -s conftest.err'
27605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27606 (eval $ac_try) 2>&5
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); }; } &&
27610 { ac_try='test -s conftest.$ac_objext'
27611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612 (eval $ac_try) 2>&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); }; }; then
27616 ol_cv_func_gethostbyaddr_r_nargs7=yes
27618 echo "$as_me: failed program was:" >&5
27619 sed 's/^/| /' conftest.$ac_ext >&5
27621 ol_cv_func_gethostbyaddr_r_nargs7=no
27623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27625 cat >conftest.$ac_ext <<_ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h. */
27631 #include <sys/types.h>
27632 #include <sys/socket.h>
27633 #include <netinet/in.h>
27635 #define BUFSIZE (sizeof(struct hostent)+10)
27639 struct hostent hent;
27640 struct hostent *rhent; char buffer[BUFSIZE];
27641 struct in_addr add;
27642 size_t alen=sizeof(struct in_addr);
27643 int bufsize=BUFSIZE;int h_errno;
27644 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27645 alen, AF_INET, &hent, buffer, bufsize,
27651 rm -f conftest.$ac_objext
27652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27653 (eval $ac_compile) 2>conftest.er1
27655 grep -v '^ *+' conftest.er1 >conftest.err
27657 cat conftest.err >&5
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); } &&
27660 { ac_try='test -z "$ac_c_werror_flag"
27661 || test ! -s conftest.err'
27662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27663 (eval $ac_try) 2>&5
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); }; } &&
27667 { ac_try='test -s conftest.$ac_objext'
27668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27669 (eval $ac_try) 2>&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; }; then
27673 ol_cv_func_gethostbyaddr_r_nargs8=yes
27675 echo "$as_me: failed program was:" >&5
27676 sed 's/^/| /' conftest.$ac_ext >&5
27678 ol_cv_func_gethostbyaddr_r_nargs8=no
27680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27682 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27683 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27685 ol_cv_func_gethostbyaddr_r_nargs=7
27687 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27688 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27690 ol_cv_func_gethostbyaddr_r_nargs=8
27693 ol_cv_func_gethostbyaddr_r_nargs=0
27697 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27698 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27699 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27701 cat >>confdefs.h <<_ACEOF
27702 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27708 ol_cv_func_gethostbyaddr_r_nargs=0
27713 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27715 if test $ol_enable_ldbm_api = bcompat; then \
27718 for ac_header in db_185.h db.h
27720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27722 echo "$as_me:$LINENO: checking for $ac_header" >&5
27723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27725 echo $ECHO_N "(cached) $ECHO_C" >&6
27727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27730 # Is the header compilable?
27731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27733 cat >conftest.$ac_ext <<_ACEOF
27736 cat confdefs.h >>conftest.$ac_ext
27737 cat >>conftest.$ac_ext <<_ACEOF
27738 /* end confdefs.h. */
27739 $ac_includes_default
27740 #include <$ac_header>
27742 rm -f conftest.$ac_objext
27743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27744 (eval $ac_compile) 2>conftest.er1
27746 grep -v '^ *+' conftest.er1 >conftest.err
27748 cat conftest.err >&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); } &&
27751 { ac_try='test -z "$ac_c_werror_flag"
27752 || test ! -s conftest.err'
27753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754 (eval $ac_try) 2>&5
27756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757 (exit $ac_status); }; } &&
27758 { ac_try='test -s conftest.$ac_objext'
27759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27760 (eval $ac_try) 2>&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); }; }; then
27764 ac_header_compiler=yes
27766 echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27769 ac_header_compiler=no
27771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27773 echo "${ECHO_T}$ac_header_compiler" >&6
27775 # Is the header present?
27776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27778 cat >conftest.$ac_ext <<_ACEOF
27781 cat confdefs.h >>conftest.$ac_ext
27782 cat >>conftest.$ac_ext <<_ACEOF
27783 /* end confdefs.h. */
27784 #include <$ac_header>
27786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27789 grep -v '^ *+' conftest.er1 >conftest.err
27791 cat conftest.err >&5
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); } >/dev/null; then
27794 if test -s conftest.err; then
27795 ac_cpp_err=$ac_c_preproc_warn_flag
27796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27803 if test -z "$ac_cpp_err"; then
27804 ac_header_preproc=yes
27806 echo "$as_me: failed program was:" >&5
27807 sed 's/^/| /' conftest.$ac_ext >&5
27809 ac_header_preproc=no
27811 rm -f conftest.err conftest.$ac_ext
27812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27813 echo "${ECHO_T}$ac_header_preproc" >&6
27815 # So? What about this header?
27816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27822 ac_header_preproc=yes
27825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27839 ## --------------------------------------------- ##
27840 ## Report this to <http://www.openldap.org/its/> ##
27841 ## --------------------------------------------- ##
27844 sed "s/^/$as_me: WARNING: /" >&2
27847 echo "$as_me:$LINENO: checking for $ac_header" >&5
27848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27850 echo $ECHO_N "(cached) $ECHO_C" >&6
27852 eval "$as_ac_Header=\$ac_header_preproc"
27854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27859 cat >>confdefs.h <<_ACEOF
27860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27867 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27868 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27869 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27870 if test "${ol_cv_header_db1+set}" = set; then
27871 echo $ECHO_N "(cached) $ECHO_C" >&6
27874 cat >conftest.$ac_ext <<_ACEOF
27877 cat confdefs.h >>conftest.$ac_ext
27878 cat >>conftest.$ac_ext <<_ACEOF
27879 /* end confdefs.h. */
27882 # include <db_185.h>
27887 /* this check could be improved */
27888 #ifndef DB_VERSION_MAJOR
27889 # define DB_VERSION_MAJOR 1
27892 #if DB_VERSION_MAJOR == 1
27897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27898 $EGREP "__db_version_1" >/dev/null 2>&1; then
27899 ol_cv_header_db1=yes
27901 ol_cv_header_db1=no
27906 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27907 echo "${ECHO_T}$ol_cv_header_db1" >&6
27909 if test $ol_cv_header_db1 = yes ; then
27912 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27913 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27914 if test "${ol_cv_bdb_major+set}" = set; then
27915 echo $ECHO_N "(cached) $ECHO_C" >&6
27919 if test $ol_cv_bdb_major = 0 ; then
27920 cat >conftest.$ac_ext <<_ACEOF
27923 cat confdefs.h >>conftest.$ac_ext
27924 cat >>conftest.$ac_ext <<_ACEOF
27925 /* end confdefs.h. */
27928 #ifndef DB_VERSION_MAJOR
27929 # define DB_VERSION_MAJOR 1
27931 #if DB_VERSION_MAJOR == 4
27936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27937 $EGREP "__db_version" >/dev/null 2>&1; then
27945 if test $ol_cv_bdb_major = 0 ; then
27946 cat >conftest.$ac_ext <<_ACEOF
27949 cat confdefs.h >>conftest.$ac_ext
27950 cat >>conftest.$ac_ext <<_ACEOF
27951 /* end confdefs.h. */
27954 #ifndef DB_VERSION_MAJOR
27955 # define DB_VERSION_MAJOR 1
27957 #if DB_VERSION_MAJOR == 3
27962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27963 $EGREP "__db_version" >/dev/null 2>&1; then
27971 if test $ol_cv_bdb_major = 0 ; then
27972 cat >conftest.$ac_ext <<_ACEOF
27975 cat confdefs.h >>conftest.$ac_ext
27976 cat >>conftest.$ac_ext <<_ACEOF
27977 /* end confdefs.h. */
27980 #ifndef DB_VERSION_MAJOR
27981 # define DB_VERSION_MAJOR 1
27983 #if DB_VERSION_MAJOR == 2
27988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27989 $EGREP "__db_version" >/dev/null 2>&1; then
27997 if test $ol_cv_bdb_major = 0 ; then
27998 cat >conftest.$ac_ext <<_ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h. */
28006 #ifndef DB_VERSION_MAJOR
28007 # define DB_VERSION_MAJOR 1
28009 #if DB_VERSION_MAJOR == 1
28014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28015 $EGREP "__db_version" >/dev/null 2>&1; then
28024 if test $ol_cv_bdb_major = 0 ; then
28025 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28026 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28027 { (exit 1); exit 1; }; }
28031 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28032 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28034 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28035 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28036 if test "${ol_cv_bdb_minor+set}" = set; then
28037 echo $ECHO_N "(cached) $ECHO_C" >&6
28041 if test $ol_cv_bdb_minor = 0 ; then
28042 cat >conftest.$ac_ext <<_ACEOF
28045 cat confdefs.h >>conftest.$ac_ext
28046 cat >>conftest.$ac_ext <<_ACEOF
28047 /* end confdefs.h. */
28050 #ifndef DB_VERSION_MINOR
28051 # define DB_VERSION_MINOR 0
28053 #if DB_VERSION_MINOR == 9
28058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28059 $EGREP "__db_version" >/dev/null 2>&1; then
28067 if test $ol_cv_bdb_minor = 0 ; then
28068 cat >conftest.$ac_ext <<_ACEOF
28071 cat confdefs.h >>conftest.$ac_ext
28072 cat >>conftest.$ac_ext <<_ACEOF
28073 /* end confdefs.h. */
28076 #ifndef DB_VERSION_MINOR
28077 # define DB_VERSION_MINOR 0
28079 #if DB_VERSION_MINOR == 8
28084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28085 $EGREP "__db_version" >/dev/null 2>&1; then
28093 if test $ol_cv_bdb_minor = 0 ; then
28094 cat >conftest.$ac_ext <<_ACEOF
28097 cat confdefs.h >>conftest.$ac_ext
28098 cat >>conftest.$ac_ext <<_ACEOF
28099 /* end confdefs.h. */
28102 #ifndef DB_VERSION_MINOR
28103 # define DB_VERSION_MINOR 0
28105 #if DB_VERSION_MINOR == 7
28110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28111 $EGREP "__db_version" >/dev/null 2>&1; then
28119 if test $ol_cv_bdb_minor = 0 ; then
28120 cat >conftest.$ac_ext <<_ACEOF
28123 cat confdefs.h >>conftest.$ac_ext
28124 cat >>conftest.$ac_ext <<_ACEOF
28125 /* end confdefs.h. */
28128 #ifndef DB_VERSION_MINOR
28129 # define DB_VERSION_MINOR 0
28131 #if DB_VERSION_MINOR == 6
28136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28137 $EGREP "__db_version" >/dev/null 2>&1; then
28145 if test $ol_cv_bdb_minor = 0 ; then
28146 cat >conftest.$ac_ext <<_ACEOF
28149 cat confdefs.h >>conftest.$ac_ext
28150 cat >>conftest.$ac_ext <<_ACEOF
28151 /* end confdefs.h. */
28154 #ifndef DB_VERSION_MINOR
28155 # define DB_VERSION_MINOR 0
28157 #if DB_VERSION_MINOR == 5
28162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28163 $EGREP "__db_version" >/dev/null 2>&1; then
28171 if test $ol_cv_bdb_minor = 0 ; then
28172 cat >conftest.$ac_ext <<_ACEOF
28175 cat confdefs.h >>conftest.$ac_ext
28176 cat >>conftest.$ac_ext <<_ACEOF
28177 /* end confdefs.h. */
28180 #ifndef DB_VERSION_MINOR
28181 # define DB_VERSION_MINOR 0
28183 #if DB_VERSION_MINOR == 4
28188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28189 $EGREP "__db_version" >/dev/null 2>&1; then
28197 if test $ol_cv_bdb_minor = 0 ; then
28198 cat >conftest.$ac_ext <<_ACEOF
28201 cat confdefs.h >>conftest.$ac_ext
28202 cat >>conftest.$ac_ext <<_ACEOF
28203 /* end confdefs.h. */
28206 #ifndef DB_VERSION_MINOR
28207 # define DB_VERSION_MINOR 0
28209 #if DB_VERSION_MINOR == 3
28214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28215 $EGREP "__db_version" >/dev/null 2>&1; then
28223 if test $ol_cv_bdb_minor = 0 ; then
28224 cat >conftest.$ac_ext <<_ACEOF
28227 cat confdefs.h >>conftest.$ac_ext
28228 cat >>conftest.$ac_ext <<_ACEOF
28229 /* end confdefs.h. */
28232 #ifndef DB_VERSION_MINOR
28233 # define DB_VERSION_MINOR 0
28235 #if DB_VERSION_MINOR == 2
28240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28241 $EGREP "__db_version" >/dev/null 2>&1; then
28249 if test $ol_cv_bdb_minor = 0 ; then
28250 cat >conftest.$ac_ext <<_ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h. */
28258 #ifndef DB_VERSION_MINOR
28259 # define DB_VERSION_MINOR 0
28261 #if DB_VERSION_MINOR == 1
28266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28267 $EGREP "__db_version" >/dev/null 2>&1; then
28277 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28278 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28280 if test $ol_cv_bdb_major = 4 ; then
28281 if test $ol_cv_bdb_minor = 4 ; then
28282 if test $ol_cv_lib_db = no ; then
28283 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28284 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28285 if test "${ol_cv_db_db44+set}" = set; then
28286 echo $ECHO_N "(cached) $ECHO_C" >&6
28291 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28293 cat >conftest.$ac_ext <<_ACEOF
28296 cat confdefs.h >>conftest.$ac_ext
28297 cat >>conftest.$ac_ext <<_ACEOF
28298 /* end confdefs.h. */
28300 #ifdef HAVE_DB_185_H
28301 # include <db_185.h>
28306 #ifndef DB_VERSION_MAJOR
28307 # define DB_VERSION_MAJOR 1
28311 #define NULL ((void*)0)
28318 #if DB_VERSION_MAJOR > 1
28321 int major, minor, patch;
28323 version = db_version( &major, &minor, &patch );
28325 if( major != DB_VERSION_MAJOR ||
28326 minor < DB_VERSION_MINOR )
28328 printf("Berkeley DB version mismatch\n"
28329 "\theader: %s\n\tlibrary: %s\n",
28330 DB_VERSION_STRING, version);
28336 #if DB_VERSION_MAJOR > 2
28337 db_env_create( NULL, 0 );
28338 #elif DB_VERSION_MAJOR > 1
28339 db_appexit( NULL );
28341 (void) dbopen( NULL, 0, 0, 0, NULL);
28348 rm -f conftest.$ac_objext conftest$ac_exeext
28349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28350 (eval $ac_link) 2>conftest.er1
28352 grep -v '^ *+' conftest.er1 >conftest.err
28354 cat conftest.err >&5
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); } &&
28357 { ac_try='test -z "$ac_c_werror_flag"
28358 || test ! -s conftest.err'
28359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28360 (eval $ac_try) 2>&5
28362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); }; } &&
28364 { ac_try='test -s conftest$ac_exeext'
28365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28366 (eval $ac_try) 2>&5
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); }; }; then
28372 echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28377 rm -f conftest.err conftest.$ac_objext \
28378 conftest$ac_exeext conftest.$ac_ext
28383 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28384 echo "${ECHO_T}$ol_cv_db_db44" >&6
28386 if test $ol_cv_db_db44 = yes ; then
28387 ol_cv_lib_db=-ldb44
28391 if test $ol_cv_lib_db = no ; then
28392 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28393 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28394 if test "${ol_cv_db_db_44+set}" = set; then
28395 echo $ECHO_N "(cached) $ECHO_C" >&6
28400 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28402 cat >conftest.$ac_ext <<_ACEOF
28405 cat confdefs.h >>conftest.$ac_ext
28406 cat >>conftest.$ac_ext <<_ACEOF
28407 /* end confdefs.h. */
28409 #ifdef HAVE_DB_185_H
28410 # include <db_185.h>
28415 #ifndef DB_VERSION_MAJOR
28416 # define DB_VERSION_MAJOR 1
28420 #define NULL ((void*)0)
28427 #if DB_VERSION_MAJOR > 1
28430 int major, minor, patch;
28432 version = db_version( &major, &minor, &patch );
28434 if( major != DB_VERSION_MAJOR ||
28435 minor < DB_VERSION_MINOR )
28437 printf("Berkeley DB version mismatch\n"
28438 "\theader: %s\n\tlibrary: %s\n",
28439 DB_VERSION_STRING, version);
28445 #if DB_VERSION_MAJOR > 2
28446 db_env_create( NULL, 0 );
28447 #elif DB_VERSION_MAJOR > 1
28448 db_appexit( NULL );
28450 (void) dbopen( NULL, 0, 0, 0, NULL);
28457 rm -f conftest.$ac_objext conftest$ac_exeext
28458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28459 (eval $ac_link) 2>conftest.er1
28461 grep -v '^ *+' conftest.er1 >conftest.err
28463 cat conftest.err >&5
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); } &&
28466 { ac_try='test -z "$ac_c_werror_flag"
28467 || test ! -s conftest.err'
28468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28469 (eval $ac_try) 2>&5
28471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 (exit $ac_status); }; } &&
28473 { ac_try='test -s conftest$ac_exeext'
28474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28475 (eval $ac_try) 2>&5
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); }; }; then
28481 echo "$as_me: failed program was:" >&5
28482 sed 's/^/| /' conftest.$ac_ext >&5
28486 rm -f conftest.err conftest.$ac_objext \
28487 conftest$ac_exeext conftest.$ac_ext
28492 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28493 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28495 if test $ol_cv_db_db_44 = yes ; then
28496 ol_cv_lib_db=-ldb-44
28500 if test $ol_cv_lib_db = no ; then
28501 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28502 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28503 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28504 echo $ECHO_N "(cached) $ECHO_C" >&6
28509 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28511 cat >conftest.$ac_ext <<_ACEOF
28514 cat confdefs.h >>conftest.$ac_ext
28515 cat >>conftest.$ac_ext <<_ACEOF
28516 /* end confdefs.h. */
28518 #ifdef HAVE_DB_185_H
28519 # include <db_185.h>
28524 #ifndef DB_VERSION_MAJOR
28525 # define DB_VERSION_MAJOR 1
28529 #define NULL ((void*)0)
28536 #if DB_VERSION_MAJOR > 1
28539 int major, minor, patch;
28541 version = db_version( &major, &minor, &patch );
28543 if( major != DB_VERSION_MAJOR ||
28544 minor < DB_VERSION_MINOR )
28546 printf("Berkeley DB version mismatch\n"
28547 "\theader: %s\n\tlibrary: %s\n",
28548 DB_VERSION_STRING, version);
28554 #if DB_VERSION_MAJOR > 2
28555 db_env_create( NULL, 0 );
28556 #elif DB_VERSION_MAJOR > 1
28557 db_appexit( NULL );
28559 (void) dbopen( NULL, 0, 0, 0, NULL);
28566 rm -f conftest.$ac_objext conftest$ac_exeext
28567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28568 (eval $ac_link) 2>conftest.er1
28570 grep -v '^ *+' conftest.er1 >conftest.err
28572 cat conftest.err >&5
28573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574 (exit $ac_status); } &&
28575 { ac_try='test -z "$ac_c_werror_flag"
28576 || test ! -s conftest.err'
28577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28578 (eval $ac_try) 2>&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; } &&
28582 { ac_try='test -s conftest$ac_exeext'
28583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28584 (eval $ac_try) 2>&5
28586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587 (exit $ac_status); }; }; then
28588 ol_cv_db_db_4_dot_4=yes
28590 echo "$as_me: failed program was:" >&5
28591 sed 's/^/| /' conftest.$ac_ext >&5
28593 ol_cv_db_db_4_dot_4=no
28595 rm -f conftest.err conftest.$ac_objext \
28596 conftest$ac_exeext conftest.$ac_ext
28601 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28602 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28604 if test $ol_cv_db_db_4_dot_4 = yes ; then
28605 ol_cv_lib_db=-ldb-4.4
28609 if test $ol_cv_lib_db = no ; then
28610 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28611 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28612 if test "${ol_cv_db_db_4_4+set}" = set; then
28613 echo $ECHO_N "(cached) $ECHO_C" >&6
28618 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28620 cat >conftest.$ac_ext <<_ACEOF
28623 cat confdefs.h >>conftest.$ac_ext
28624 cat >>conftest.$ac_ext <<_ACEOF
28625 /* end confdefs.h. */
28627 #ifdef HAVE_DB_185_H
28628 # include <db_185.h>
28633 #ifndef DB_VERSION_MAJOR
28634 # define DB_VERSION_MAJOR 1
28638 #define NULL ((void*)0)
28645 #if DB_VERSION_MAJOR > 1
28648 int major, minor, patch;
28650 version = db_version( &major, &minor, &patch );
28652 if( major != DB_VERSION_MAJOR ||
28653 minor < DB_VERSION_MINOR )
28655 printf("Berkeley DB version mismatch\n"
28656 "\theader: %s\n\tlibrary: %s\n",
28657 DB_VERSION_STRING, version);
28663 #if DB_VERSION_MAJOR > 2
28664 db_env_create( NULL, 0 );
28665 #elif DB_VERSION_MAJOR > 1
28666 db_appexit( NULL );
28668 (void) dbopen( NULL, 0, 0, 0, NULL);
28675 rm -f conftest.$ac_objext conftest$ac_exeext
28676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28677 (eval $ac_link) 2>conftest.er1
28679 grep -v '^ *+' conftest.er1 >conftest.err
28681 cat conftest.err >&5
28682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683 (exit $ac_status); } &&
28684 { ac_try='test -z "$ac_c_werror_flag"
28685 || test ! -s conftest.err'
28686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28687 (eval $ac_try) 2>&5
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); }; } &&
28691 { ac_try='test -s conftest$ac_exeext'
28692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28693 (eval $ac_try) 2>&5
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; }; then
28697 ol_cv_db_db_4_4=yes
28699 echo "$as_me: failed program was:" >&5
28700 sed 's/^/| /' conftest.$ac_ext >&5
28704 rm -f conftest.err conftest.$ac_objext \
28705 conftest$ac_exeext conftest.$ac_ext
28710 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28711 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28713 if test $ol_cv_db_db_4_4 = yes ; then
28714 ol_cv_lib_db=-ldb-4-4
28718 elif test $ol_cv_bdb_minor = 3 ; then
28719 if test $ol_cv_lib_db = no ; then
28720 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28721 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28722 if test "${ol_cv_db_db43+set}" = set; then
28723 echo $ECHO_N "(cached) $ECHO_C" >&6
28728 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28730 cat >conftest.$ac_ext <<_ACEOF
28733 cat confdefs.h >>conftest.$ac_ext
28734 cat >>conftest.$ac_ext <<_ACEOF
28735 /* end confdefs.h. */
28737 #ifdef HAVE_DB_185_H
28738 # include <db_185.h>
28743 #ifndef DB_VERSION_MAJOR
28744 # define DB_VERSION_MAJOR 1
28748 #define NULL ((void*)0)
28755 #if DB_VERSION_MAJOR > 1
28758 int major, minor, patch;
28760 version = db_version( &major, &minor, &patch );
28762 if( major != DB_VERSION_MAJOR ||
28763 minor < DB_VERSION_MINOR )
28765 printf("Berkeley DB version mismatch\n"
28766 "\theader: %s\n\tlibrary: %s\n",
28767 DB_VERSION_STRING, version);
28773 #if DB_VERSION_MAJOR > 2
28774 db_env_create( NULL, 0 );
28775 #elif DB_VERSION_MAJOR > 1
28776 db_appexit( NULL );
28778 (void) dbopen( NULL, 0, 0, 0, NULL);
28785 rm -f conftest.$ac_objext conftest$ac_exeext
28786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28787 (eval $ac_link) 2>conftest.er1
28789 grep -v '^ *+' conftest.er1 >conftest.err
28791 cat conftest.err >&5
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); } &&
28794 { ac_try='test -z "$ac_c_werror_flag"
28795 || test ! -s conftest.err'
28796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28797 (eval $ac_try) 2>&5
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; } &&
28801 { ac_try='test -s conftest$ac_exeext'
28802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803 (eval $ac_try) 2>&5
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; }; then
28809 echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28814 rm -f conftest.err conftest.$ac_objext \
28815 conftest$ac_exeext conftest.$ac_ext
28820 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28821 echo "${ECHO_T}$ol_cv_db_db43" >&6
28823 if test $ol_cv_db_db43 = yes ; then
28824 ol_cv_lib_db=-ldb43
28828 if test $ol_cv_lib_db = no ; then
28829 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28830 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28831 if test "${ol_cv_db_db_43+set}" = set; then
28832 echo $ECHO_N "(cached) $ECHO_C" >&6
28837 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28839 cat >conftest.$ac_ext <<_ACEOF
28842 cat confdefs.h >>conftest.$ac_ext
28843 cat >>conftest.$ac_ext <<_ACEOF
28844 /* end confdefs.h. */
28846 #ifdef HAVE_DB_185_H
28847 # include <db_185.h>
28852 #ifndef DB_VERSION_MAJOR
28853 # define DB_VERSION_MAJOR 1
28857 #define NULL ((void*)0)
28864 #if DB_VERSION_MAJOR > 1
28867 int major, minor, patch;
28869 version = db_version( &major, &minor, &patch );
28871 if( major != DB_VERSION_MAJOR ||
28872 minor < DB_VERSION_MINOR )
28874 printf("Berkeley DB version mismatch\n"
28875 "\theader: %s\n\tlibrary: %s\n",
28876 DB_VERSION_STRING, version);
28882 #if DB_VERSION_MAJOR > 2
28883 db_env_create( NULL, 0 );
28884 #elif DB_VERSION_MAJOR > 1
28885 db_appexit( NULL );
28887 (void) dbopen( NULL, 0, 0, 0, NULL);
28894 rm -f conftest.$ac_objext conftest$ac_exeext
28895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28896 (eval $ac_link) 2>conftest.er1
28898 grep -v '^ *+' conftest.er1 >conftest.err
28900 cat conftest.err >&5
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); } &&
28903 { ac_try='test -z "$ac_c_werror_flag"
28904 || test ! -s conftest.err'
28905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906 (eval $ac_try) 2>&5
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); }; } &&
28910 { ac_try='test -s conftest$ac_exeext'
28911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912 (eval $ac_try) 2>&5
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); }; }; then
28918 echo "$as_me: failed program was:" >&5
28919 sed 's/^/| /' conftest.$ac_ext >&5
28923 rm -f conftest.err conftest.$ac_objext \
28924 conftest$ac_exeext conftest.$ac_ext
28929 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28930 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28932 if test $ol_cv_db_db_43 = yes ; then
28933 ol_cv_lib_db=-ldb-43
28937 if test $ol_cv_lib_db = no ; then
28938 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28939 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28940 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28946 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28948 cat >conftest.$ac_ext <<_ACEOF
28951 cat confdefs.h >>conftest.$ac_ext
28952 cat >>conftest.$ac_ext <<_ACEOF
28953 /* end confdefs.h. */
28955 #ifdef HAVE_DB_185_H
28956 # include <db_185.h>
28961 #ifndef DB_VERSION_MAJOR
28962 # define DB_VERSION_MAJOR 1
28966 #define NULL ((void*)0)
28973 #if DB_VERSION_MAJOR > 1
28976 int major, minor, patch;
28978 version = db_version( &major, &minor, &patch );
28980 if( major != DB_VERSION_MAJOR ||
28981 minor < DB_VERSION_MINOR )
28983 printf("Berkeley DB version mismatch\n"
28984 "\theader: %s\n\tlibrary: %s\n",
28985 DB_VERSION_STRING, version);
28991 #if DB_VERSION_MAJOR > 2
28992 db_env_create( NULL, 0 );
28993 #elif DB_VERSION_MAJOR > 1
28994 db_appexit( NULL );
28996 (void) dbopen( NULL, 0, 0, 0, NULL);
29003 rm -f conftest.$ac_objext conftest$ac_exeext
29004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29005 (eval $ac_link) 2>conftest.er1
29007 grep -v '^ *+' conftest.er1 >conftest.err
29009 cat conftest.err >&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); } &&
29012 { ac_try='test -z "$ac_c_werror_flag"
29013 || test ! -s conftest.err'
29014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29015 (eval $ac_try) 2>&5
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); }; } &&
29019 { ac_try='test -s conftest$ac_exeext'
29020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021 (eval $ac_try) 2>&5
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; }; then
29025 ol_cv_db_db_4_dot_3=yes
29027 echo "$as_me: failed program was:" >&5
29028 sed 's/^/| /' conftest.$ac_ext >&5
29030 ol_cv_db_db_4_dot_3=no
29032 rm -f conftest.err conftest.$ac_objext \
29033 conftest$ac_exeext conftest.$ac_ext
29038 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29039 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29041 if test $ol_cv_db_db_4_dot_3 = yes ; then
29042 ol_cv_lib_db=-ldb-4.3
29046 if test $ol_cv_lib_db = no ; then
29047 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29048 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29049 if test "${ol_cv_db_db_4_3+set}" = set; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29055 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29057 cat >conftest.$ac_ext <<_ACEOF
29060 cat confdefs.h >>conftest.$ac_ext
29061 cat >>conftest.$ac_ext <<_ACEOF
29062 /* end confdefs.h. */
29064 #ifdef HAVE_DB_185_H
29065 # include <db_185.h>
29070 #ifndef DB_VERSION_MAJOR
29071 # define DB_VERSION_MAJOR 1
29075 #define NULL ((void*)0)
29082 #if DB_VERSION_MAJOR > 1
29085 int major, minor, patch;
29087 version = db_version( &major, &minor, &patch );
29089 if( major != DB_VERSION_MAJOR ||
29090 minor < DB_VERSION_MINOR )
29092 printf("Berkeley DB version mismatch\n"
29093 "\theader: %s\n\tlibrary: %s\n",
29094 DB_VERSION_STRING, version);
29100 #if DB_VERSION_MAJOR > 2
29101 db_env_create( NULL, 0 );
29102 #elif DB_VERSION_MAJOR > 1
29103 db_appexit( NULL );
29105 (void) dbopen( NULL, 0, 0, 0, NULL);
29112 rm -f conftest.$ac_objext conftest$ac_exeext
29113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29114 (eval $ac_link) 2>conftest.er1
29116 grep -v '^ *+' conftest.er1 >conftest.err
29118 cat conftest.err >&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } &&
29121 { ac_try='test -z "$ac_c_werror_flag"
29122 || test ! -s conftest.err'
29123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29124 (eval $ac_try) 2>&5
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; } &&
29128 { ac_try='test -s conftest$ac_exeext'
29129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29130 (eval $ac_try) 2>&5
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); }; }; then
29134 ol_cv_db_db_4_3=yes
29136 echo "$as_me: failed program was:" >&5
29137 sed 's/^/| /' conftest.$ac_ext >&5
29141 rm -f conftest.err conftest.$ac_objext \
29142 conftest$ac_exeext conftest.$ac_ext
29147 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29148 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29150 if test $ol_cv_db_db_4_3 = yes ; then
29151 ol_cv_lib_db=-ldb-4-3
29155 elif test $ol_cv_bdb_minor = 2 ; then
29156 if test $ol_cv_lib_db = no ; then
29157 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29158 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29159 if test "${ol_cv_db_db42+set}" = set; then
29160 echo $ECHO_N "(cached) $ECHO_C" >&6
29165 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29167 cat >conftest.$ac_ext <<_ACEOF
29170 cat confdefs.h >>conftest.$ac_ext
29171 cat >>conftest.$ac_ext <<_ACEOF
29172 /* end confdefs.h. */
29174 #ifdef HAVE_DB_185_H
29175 # include <db_185.h>
29180 #ifndef DB_VERSION_MAJOR
29181 # define DB_VERSION_MAJOR 1
29185 #define NULL ((void*)0)
29192 #if DB_VERSION_MAJOR > 1
29195 int major, minor, patch;
29197 version = db_version( &major, &minor, &patch );
29199 if( major != DB_VERSION_MAJOR ||
29200 minor < DB_VERSION_MINOR )
29202 printf("Berkeley DB version mismatch\n"
29203 "\theader: %s\n\tlibrary: %s\n",
29204 DB_VERSION_STRING, version);
29210 #if DB_VERSION_MAJOR > 2
29211 db_env_create( NULL, 0 );
29212 #elif DB_VERSION_MAJOR > 1
29213 db_appexit( NULL );
29215 (void) dbopen( NULL, 0, 0, 0, NULL);
29222 rm -f conftest.$ac_objext conftest$ac_exeext
29223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29224 (eval $ac_link) 2>conftest.er1
29226 grep -v '^ *+' conftest.er1 >conftest.err
29228 cat conftest.err >&5
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); } &&
29231 { ac_try='test -z "$ac_c_werror_flag"
29232 || test ! -s conftest.err'
29233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29234 (eval $ac_try) 2>&5
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); }; } &&
29238 { ac_try='test -s conftest$ac_exeext'
29239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29240 (eval $ac_try) 2>&5
29242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243 (exit $ac_status); }; }; then
29246 echo "$as_me: failed program was:" >&5
29247 sed 's/^/| /' conftest.$ac_ext >&5
29251 rm -f conftest.err conftest.$ac_objext \
29252 conftest$ac_exeext conftest.$ac_ext
29257 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29258 echo "${ECHO_T}$ol_cv_db_db42" >&6
29260 if test $ol_cv_db_db42 = yes ; then
29261 ol_cv_lib_db=-ldb42
29265 if test $ol_cv_lib_db = no ; then
29266 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29267 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29268 if test "${ol_cv_db_db_42+set}" = set; then
29269 echo $ECHO_N "(cached) $ECHO_C" >&6
29274 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29276 cat >conftest.$ac_ext <<_ACEOF
29279 cat confdefs.h >>conftest.$ac_ext
29280 cat >>conftest.$ac_ext <<_ACEOF
29281 /* end confdefs.h. */
29283 #ifdef HAVE_DB_185_H
29284 # include <db_185.h>
29289 #ifndef DB_VERSION_MAJOR
29290 # define DB_VERSION_MAJOR 1
29294 #define NULL ((void*)0)
29301 #if DB_VERSION_MAJOR > 1
29304 int major, minor, patch;
29306 version = db_version( &major, &minor, &patch );
29308 if( major != DB_VERSION_MAJOR ||
29309 minor < DB_VERSION_MINOR )
29311 printf("Berkeley DB version mismatch\n"
29312 "\theader: %s\n\tlibrary: %s\n",
29313 DB_VERSION_STRING, version);
29319 #if DB_VERSION_MAJOR > 2
29320 db_env_create( NULL, 0 );
29321 #elif DB_VERSION_MAJOR > 1
29322 db_appexit( NULL );
29324 (void) dbopen( NULL, 0, 0, 0, NULL);
29331 rm -f conftest.$ac_objext conftest$ac_exeext
29332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29333 (eval $ac_link) 2>conftest.er1
29335 grep -v '^ *+' conftest.er1 >conftest.err
29337 cat conftest.err >&5
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); } &&
29340 { ac_try='test -z "$ac_c_werror_flag"
29341 || test ! -s conftest.err'
29342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29343 (eval $ac_try) 2>&5
29345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); }; } &&
29347 { ac_try='test -s conftest$ac_exeext'
29348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29349 (eval $ac_try) 2>&5
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); }; }; then
29355 echo "$as_me: failed program was:" >&5
29356 sed 's/^/| /' conftest.$ac_ext >&5
29360 rm -f conftest.err conftest.$ac_objext \
29361 conftest$ac_exeext conftest.$ac_ext
29366 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29367 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29369 if test $ol_cv_db_db_42 = yes ; then
29370 ol_cv_lib_db=-ldb-42
29374 if test $ol_cv_lib_db = no ; then
29375 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29376 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29377 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29378 echo $ECHO_N "(cached) $ECHO_C" >&6
29383 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29385 cat >conftest.$ac_ext <<_ACEOF
29388 cat confdefs.h >>conftest.$ac_ext
29389 cat >>conftest.$ac_ext <<_ACEOF
29390 /* end confdefs.h. */
29392 #ifdef HAVE_DB_185_H
29393 # include <db_185.h>
29398 #ifndef DB_VERSION_MAJOR
29399 # define DB_VERSION_MAJOR 1
29403 #define NULL ((void*)0)
29410 #if DB_VERSION_MAJOR > 1
29413 int major, minor, patch;
29415 version = db_version( &major, &minor, &patch );
29417 if( major != DB_VERSION_MAJOR ||
29418 minor < DB_VERSION_MINOR )
29420 printf("Berkeley DB version mismatch\n"
29421 "\theader: %s\n\tlibrary: %s\n",
29422 DB_VERSION_STRING, version);
29428 #if DB_VERSION_MAJOR > 2
29429 db_env_create( NULL, 0 );
29430 #elif DB_VERSION_MAJOR > 1
29431 db_appexit( NULL );
29433 (void) dbopen( NULL, 0, 0, 0, NULL);
29440 rm -f conftest.$ac_objext conftest$ac_exeext
29441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29442 (eval $ac_link) 2>conftest.er1
29444 grep -v '^ *+' conftest.er1 >conftest.err
29446 cat conftest.err >&5
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); } &&
29449 { ac_try='test -z "$ac_c_werror_flag"
29450 || test ! -s conftest.err'
29451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29452 (eval $ac_try) 2>&5
29454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455 (exit $ac_status); }; } &&
29456 { ac_try='test -s conftest$ac_exeext'
29457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29458 (eval $ac_try) 2>&5
29460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461 (exit $ac_status); }; }; then
29462 ol_cv_db_db_4_dot_2=yes
29464 echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29467 ol_cv_db_db_4_dot_2=no
29469 rm -f conftest.err conftest.$ac_objext \
29470 conftest$ac_exeext conftest.$ac_ext
29475 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29476 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29478 if test $ol_cv_db_db_4_dot_2 = yes ; then
29479 ol_cv_lib_db=-ldb-4.2
29483 if test $ol_cv_lib_db = no ; then
29484 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29485 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29486 if test "${ol_cv_db_db_4_2+set}" = set; then
29487 echo $ECHO_N "(cached) $ECHO_C" >&6
29492 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29494 cat >conftest.$ac_ext <<_ACEOF
29497 cat confdefs.h >>conftest.$ac_ext
29498 cat >>conftest.$ac_ext <<_ACEOF
29499 /* end confdefs.h. */
29501 #ifdef HAVE_DB_185_H
29502 # include <db_185.h>
29507 #ifndef DB_VERSION_MAJOR
29508 # define DB_VERSION_MAJOR 1
29512 #define NULL ((void*)0)
29519 #if DB_VERSION_MAJOR > 1
29522 int major, minor, patch;
29524 version = db_version( &major, &minor, &patch );
29526 if( major != DB_VERSION_MAJOR ||
29527 minor < DB_VERSION_MINOR )
29529 printf("Berkeley DB version mismatch\n"
29530 "\theader: %s\n\tlibrary: %s\n",
29531 DB_VERSION_STRING, version);
29537 #if DB_VERSION_MAJOR > 2
29538 db_env_create( NULL, 0 );
29539 #elif DB_VERSION_MAJOR > 1
29540 db_appexit( NULL );
29542 (void) dbopen( NULL, 0, 0, 0, NULL);
29549 rm -f conftest.$ac_objext conftest$ac_exeext
29550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29551 (eval $ac_link) 2>conftest.er1
29553 grep -v '^ *+' conftest.er1 >conftest.err
29555 cat conftest.err >&5
29556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557 (exit $ac_status); } &&
29558 { ac_try='test -z "$ac_c_werror_flag"
29559 || test ! -s conftest.err'
29560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29561 (eval $ac_try) 2>&5
29563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564 (exit $ac_status); }; } &&
29565 { ac_try='test -s conftest$ac_exeext'
29566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29567 (eval $ac_try) 2>&5
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); }; }; then
29571 ol_cv_db_db_4_2=yes
29573 echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29578 rm -f conftest.err conftest.$ac_objext \
29579 conftest$ac_exeext conftest.$ac_ext
29584 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29585 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29587 if test $ol_cv_db_db_4_2 = yes ; then
29588 ol_cv_lib_db=-ldb-4-2
29592 elif test $ol_cv_bdb_minor = 1 ; then
29593 if test $ol_cv_lib_db = no ; then
29594 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29595 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29596 if test "${ol_cv_db_db41+set}" = set; then
29597 echo $ECHO_N "(cached) $ECHO_C" >&6
29602 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29604 cat >conftest.$ac_ext <<_ACEOF
29607 cat confdefs.h >>conftest.$ac_ext
29608 cat >>conftest.$ac_ext <<_ACEOF
29609 /* end confdefs.h. */
29611 #ifdef HAVE_DB_185_H
29612 # include <db_185.h>
29617 #ifndef DB_VERSION_MAJOR
29618 # define DB_VERSION_MAJOR 1
29622 #define NULL ((void*)0)
29629 #if DB_VERSION_MAJOR > 1
29632 int major, minor, patch;
29634 version = db_version( &major, &minor, &patch );
29636 if( major != DB_VERSION_MAJOR ||
29637 minor < DB_VERSION_MINOR )
29639 printf("Berkeley DB version mismatch\n"
29640 "\theader: %s\n\tlibrary: %s\n",
29641 DB_VERSION_STRING, version);
29647 #if DB_VERSION_MAJOR > 2
29648 db_env_create( NULL, 0 );
29649 #elif DB_VERSION_MAJOR > 1
29650 db_appexit( NULL );
29652 (void) dbopen( NULL, 0, 0, 0, NULL);
29659 rm -f conftest.$ac_objext conftest$ac_exeext
29660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29661 (eval $ac_link) 2>conftest.er1
29663 grep -v '^ *+' conftest.er1 >conftest.err
29665 cat conftest.err >&5
29666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29667 (exit $ac_status); } &&
29668 { ac_try='test -z "$ac_c_werror_flag"
29669 || test ! -s conftest.err'
29670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29671 (eval $ac_try) 2>&5
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); }; } &&
29675 { ac_try='test -s conftest$ac_exeext'
29676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29677 (eval $ac_try) 2>&5
29679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); }; }; then
29683 echo "$as_me: failed program was:" >&5
29684 sed 's/^/| /' conftest.$ac_ext >&5
29688 rm -f conftest.err conftest.$ac_objext \
29689 conftest$ac_exeext conftest.$ac_ext
29694 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29695 echo "${ECHO_T}$ol_cv_db_db41" >&6
29697 if test $ol_cv_db_db41 = yes ; then
29698 ol_cv_lib_db=-ldb41
29702 if test $ol_cv_lib_db = no ; then
29703 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29704 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29705 if test "${ol_cv_db_db_41+set}" = set; then
29706 echo $ECHO_N "(cached) $ECHO_C" >&6
29711 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29713 cat >conftest.$ac_ext <<_ACEOF
29716 cat confdefs.h >>conftest.$ac_ext
29717 cat >>conftest.$ac_ext <<_ACEOF
29718 /* end confdefs.h. */
29720 #ifdef HAVE_DB_185_H
29721 # include <db_185.h>
29726 #ifndef DB_VERSION_MAJOR
29727 # define DB_VERSION_MAJOR 1
29731 #define NULL ((void*)0)
29738 #if DB_VERSION_MAJOR > 1
29741 int major, minor, patch;
29743 version = db_version( &major, &minor, &patch );
29745 if( major != DB_VERSION_MAJOR ||
29746 minor < DB_VERSION_MINOR )
29748 printf("Berkeley DB version mismatch\n"
29749 "\theader: %s\n\tlibrary: %s\n",
29750 DB_VERSION_STRING, version);
29756 #if DB_VERSION_MAJOR > 2
29757 db_env_create( NULL, 0 );
29758 #elif DB_VERSION_MAJOR > 1
29759 db_appexit( NULL );
29761 (void) dbopen( NULL, 0, 0, 0, NULL);
29768 rm -f conftest.$ac_objext conftest$ac_exeext
29769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29770 (eval $ac_link) 2>conftest.er1
29772 grep -v '^ *+' conftest.er1 >conftest.err
29774 cat conftest.err >&5
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); } &&
29777 { ac_try='test -z "$ac_c_werror_flag"
29778 || test ! -s conftest.err'
29779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29780 (eval $ac_try) 2>&5
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); }; } &&
29784 { ac_try='test -s conftest$ac_exeext'
29785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786 (eval $ac_try) 2>&5
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; }; then
29792 echo "$as_me: failed program was:" >&5
29793 sed 's/^/| /' conftest.$ac_ext >&5
29797 rm -f conftest.err conftest.$ac_objext \
29798 conftest$ac_exeext conftest.$ac_ext
29803 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29804 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29806 if test $ol_cv_db_db_41 = yes ; then
29807 ol_cv_lib_db=-ldb-41
29811 if test $ol_cv_lib_db = no ; then
29812 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29813 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29814 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29815 echo $ECHO_N "(cached) $ECHO_C" >&6
29820 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29822 cat >conftest.$ac_ext <<_ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h. */
29829 #ifdef HAVE_DB_185_H
29830 # include <db_185.h>
29835 #ifndef DB_VERSION_MAJOR
29836 # define DB_VERSION_MAJOR 1
29840 #define NULL ((void*)0)
29847 #if DB_VERSION_MAJOR > 1
29850 int major, minor, patch;
29852 version = db_version( &major, &minor, &patch );
29854 if( major != DB_VERSION_MAJOR ||
29855 minor < DB_VERSION_MINOR )
29857 printf("Berkeley DB version mismatch\n"
29858 "\theader: %s\n\tlibrary: %s\n",
29859 DB_VERSION_STRING, version);
29865 #if DB_VERSION_MAJOR > 2
29866 db_env_create( NULL, 0 );
29867 #elif DB_VERSION_MAJOR > 1
29868 db_appexit( NULL );
29870 (void) dbopen( NULL, 0, 0, 0, NULL);
29877 rm -f conftest.$ac_objext conftest$ac_exeext
29878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29879 (eval $ac_link) 2>conftest.er1
29881 grep -v '^ *+' conftest.er1 >conftest.err
29883 cat conftest.err >&5
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); } &&
29886 { ac_try='test -z "$ac_c_werror_flag"
29887 || test ! -s conftest.err'
29888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29889 (eval $ac_try) 2>&5
29891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892 (exit $ac_status); }; } &&
29893 { ac_try='test -s conftest$ac_exeext'
29894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29895 (eval $ac_try) 2>&5
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); }; }; then
29899 ol_cv_db_db_4_dot_1=yes
29901 echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29904 ol_cv_db_db_4_dot_1=no
29906 rm -f conftest.err conftest.$ac_objext \
29907 conftest$ac_exeext conftest.$ac_ext
29912 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29913 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29915 if test $ol_cv_db_db_4_dot_1 = yes ; then
29916 ol_cv_lib_db=-ldb-4.1
29920 if test $ol_cv_lib_db = no ; then
29921 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29922 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29923 if test "${ol_cv_db_db_4_1+set}" = set; then
29924 echo $ECHO_N "(cached) $ECHO_C" >&6
29929 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29931 cat >conftest.$ac_ext <<_ACEOF
29934 cat confdefs.h >>conftest.$ac_ext
29935 cat >>conftest.$ac_ext <<_ACEOF
29936 /* end confdefs.h. */
29938 #ifdef HAVE_DB_185_H
29939 # include <db_185.h>
29944 #ifndef DB_VERSION_MAJOR
29945 # define DB_VERSION_MAJOR 1
29949 #define NULL ((void*)0)
29956 #if DB_VERSION_MAJOR > 1
29959 int major, minor, patch;
29961 version = db_version( &major, &minor, &patch );
29963 if( major != DB_VERSION_MAJOR ||
29964 minor < DB_VERSION_MINOR )
29966 printf("Berkeley DB version mismatch\n"
29967 "\theader: %s\n\tlibrary: %s\n",
29968 DB_VERSION_STRING, version);
29974 #if DB_VERSION_MAJOR > 2
29975 db_env_create( NULL, 0 );
29976 #elif DB_VERSION_MAJOR > 1
29977 db_appexit( NULL );
29979 (void) dbopen( NULL, 0, 0, 0, NULL);
29986 rm -f conftest.$ac_objext conftest$ac_exeext
29987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29988 (eval $ac_link) 2>conftest.er1
29990 grep -v '^ *+' conftest.er1 >conftest.err
29992 cat conftest.err >&5
29993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29994 (exit $ac_status); } &&
29995 { ac_try='test -z "$ac_c_werror_flag"
29996 || test ! -s conftest.err'
29997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29998 (eval $ac_try) 2>&5
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); }; } &&
30002 { ac_try='test -s conftest$ac_exeext'
30003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30004 (eval $ac_try) 2>&5
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); }; }; then
30008 ol_cv_db_db_4_1=yes
30010 echo "$as_me: failed program was:" >&5
30011 sed 's/^/| /' conftest.$ac_ext >&5
30015 rm -f conftest.err conftest.$ac_objext \
30016 conftest$ac_exeext conftest.$ac_ext
30021 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30022 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30024 if test $ol_cv_db_db_4_1 = yes ; then
30025 ol_cv_lib_db=-ldb-4-1
30030 if test $ol_cv_lib_db = no ; then
30031 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30032 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30033 if test "${ol_cv_db_db_4+set}" = set; then
30034 echo $ECHO_N "(cached) $ECHO_C" >&6
30039 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30041 cat >conftest.$ac_ext <<_ACEOF
30044 cat confdefs.h >>conftest.$ac_ext
30045 cat >>conftest.$ac_ext <<_ACEOF
30046 /* end confdefs.h. */
30048 #ifdef HAVE_DB_185_H
30049 # include <db_185.h>
30054 #ifndef DB_VERSION_MAJOR
30055 # define DB_VERSION_MAJOR 1
30059 #define NULL ((void*)0)
30066 #if DB_VERSION_MAJOR > 1
30069 int major, minor, patch;
30071 version = db_version( &major, &minor, &patch );
30073 if( major != DB_VERSION_MAJOR ||
30074 minor < DB_VERSION_MINOR )
30076 printf("Berkeley DB version mismatch\n"
30077 "\theader: %s\n\tlibrary: %s\n",
30078 DB_VERSION_STRING, version);
30084 #if DB_VERSION_MAJOR > 2
30085 db_env_create( NULL, 0 );
30086 #elif DB_VERSION_MAJOR > 1
30087 db_appexit( NULL );
30089 (void) dbopen( NULL, 0, 0, 0, NULL);
30096 rm -f conftest.$ac_objext conftest$ac_exeext
30097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30098 (eval $ac_link) 2>conftest.er1
30100 grep -v '^ *+' conftest.er1 >conftest.err
30102 cat conftest.err >&5
30103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104 (exit $ac_status); } &&
30105 { ac_try='test -z "$ac_c_werror_flag"
30106 || test ! -s conftest.err'
30107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30108 (eval $ac_try) 2>&5
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); }; } &&
30112 { ac_try='test -s conftest$ac_exeext'
30113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30114 (eval $ac_try) 2>&5
30116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117 (exit $ac_status); }; }; then
30120 echo "$as_me: failed program was:" >&5
30121 sed 's/^/| /' conftest.$ac_ext >&5
30125 rm -f conftest.err conftest.$ac_objext \
30126 conftest$ac_exeext conftest.$ac_ext
30131 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30132 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30134 if test $ol_cv_db_db_4 = yes ; then
30135 ol_cv_lib_db=-ldb-4
30139 if test $ol_cv_lib_db = no ; then
30140 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30141 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30142 if test "${ol_cv_db_db4+set}" = set; then
30143 echo $ECHO_N "(cached) $ECHO_C" >&6
30148 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30150 cat >conftest.$ac_ext <<_ACEOF
30153 cat confdefs.h >>conftest.$ac_ext
30154 cat >>conftest.$ac_ext <<_ACEOF
30155 /* end confdefs.h. */
30157 #ifdef HAVE_DB_185_H
30158 # include <db_185.h>
30163 #ifndef DB_VERSION_MAJOR
30164 # define DB_VERSION_MAJOR 1
30168 #define NULL ((void*)0)
30175 #if DB_VERSION_MAJOR > 1
30178 int major, minor, patch;
30180 version = db_version( &major, &minor, &patch );
30182 if( major != DB_VERSION_MAJOR ||
30183 minor < DB_VERSION_MINOR )
30185 printf("Berkeley DB version mismatch\n"
30186 "\theader: %s\n\tlibrary: %s\n",
30187 DB_VERSION_STRING, version);
30193 #if DB_VERSION_MAJOR > 2
30194 db_env_create( NULL, 0 );
30195 #elif DB_VERSION_MAJOR > 1
30196 db_appexit( NULL );
30198 (void) dbopen( NULL, 0, 0, 0, NULL);
30205 rm -f conftest.$ac_objext conftest$ac_exeext
30206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30207 (eval $ac_link) 2>conftest.er1
30209 grep -v '^ *+' conftest.er1 >conftest.err
30211 cat conftest.err >&5
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); } &&
30214 { ac_try='test -z "$ac_c_werror_flag"
30215 || test ! -s conftest.err'
30216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30217 (eval $ac_try) 2>&5
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); }; } &&
30221 { ac_try='test -s conftest$ac_exeext'
30222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30223 (eval $ac_try) 2>&5
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); }; }; then
30229 echo "$as_me: failed program was:" >&5
30230 sed 's/^/| /' conftest.$ac_ext >&5
30234 rm -f conftest.err conftest.$ac_objext \
30235 conftest$ac_exeext conftest.$ac_ext
30240 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30241 echo "${ECHO_T}$ol_cv_db_db4" >&6
30243 if test $ol_cv_db_db4 = yes ; then
30248 if test $ol_cv_lib_db = no ; then
30249 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30250 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30251 if test "${ol_cv_db_db+set}" = set; then
30252 echo $ECHO_N "(cached) $ECHO_C" >&6
30257 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30259 cat >conftest.$ac_ext <<_ACEOF
30262 cat confdefs.h >>conftest.$ac_ext
30263 cat >>conftest.$ac_ext <<_ACEOF
30264 /* end confdefs.h. */
30266 #ifdef HAVE_DB_185_H
30267 # include <db_185.h>
30272 #ifndef DB_VERSION_MAJOR
30273 # define DB_VERSION_MAJOR 1
30277 #define NULL ((void*)0)
30284 #if DB_VERSION_MAJOR > 1
30287 int major, minor, patch;
30289 version = db_version( &major, &minor, &patch );
30291 if( major != DB_VERSION_MAJOR ||
30292 minor < DB_VERSION_MINOR )
30294 printf("Berkeley DB version mismatch\n"
30295 "\theader: %s\n\tlibrary: %s\n",
30296 DB_VERSION_STRING, version);
30302 #if DB_VERSION_MAJOR > 2
30303 db_env_create( NULL, 0 );
30304 #elif DB_VERSION_MAJOR > 1
30305 db_appexit( NULL );
30307 (void) dbopen( NULL, 0, 0, 0, NULL);
30314 rm -f conftest.$ac_objext conftest$ac_exeext
30315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30316 (eval $ac_link) 2>conftest.er1
30318 grep -v '^ *+' conftest.er1 >conftest.err
30320 cat conftest.err >&5
30321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322 (exit $ac_status); } &&
30323 { ac_try='test -z "$ac_c_werror_flag"
30324 || test ! -s conftest.err'
30325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30326 (eval $ac_try) 2>&5
30328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); }; } &&
30330 { ac_try='test -s conftest$ac_exeext'
30331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30332 (eval $ac_try) 2>&5
30334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335 (exit $ac_status); }; }; then
30338 echo "$as_me: failed program was:" >&5
30339 sed 's/^/| /' conftest.$ac_ext >&5
30343 rm -f conftest.err conftest.$ac_objext \
30344 conftest$ac_exeext conftest.$ac_ext
30349 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30350 echo "${ECHO_T}$ol_cv_db_db" >&6
30352 if test $ol_cv_db_db = yes ; then
30358 elif test $ol_cv_bdb_major = 3 ; then
30359 if test $ol_cv_lib_db = no ; then
30360 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30361 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30362 if test "${ol_cv_db_db3+set}" = set; then
30363 echo $ECHO_N "(cached) $ECHO_C" >&6
30368 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30370 cat >conftest.$ac_ext <<_ACEOF
30373 cat confdefs.h >>conftest.$ac_ext
30374 cat >>conftest.$ac_ext <<_ACEOF
30375 /* end confdefs.h. */
30377 #ifdef HAVE_DB_185_H
30378 # include <db_185.h>
30383 #ifndef DB_VERSION_MAJOR
30384 # define DB_VERSION_MAJOR 1
30388 #define NULL ((void*)0)
30395 #if DB_VERSION_MAJOR > 1
30398 int major, minor, patch;
30400 version = db_version( &major, &minor, &patch );
30402 if( major != DB_VERSION_MAJOR ||
30403 minor < DB_VERSION_MINOR )
30405 printf("Berkeley DB version mismatch\n"
30406 "\theader: %s\n\tlibrary: %s\n",
30407 DB_VERSION_STRING, version);
30413 #if DB_VERSION_MAJOR > 2
30414 db_env_create( NULL, 0 );
30415 #elif DB_VERSION_MAJOR > 1
30416 db_appexit( NULL );
30418 (void) dbopen( NULL, 0, 0, 0, NULL);
30425 rm -f conftest.$ac_objext conftest$ac_exeext
30426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30427 (eval $ac_link) 2>conftest.er1
30429 grep -v '^ *+' conftest.er1 >conftest.err
30431 cat conftest.err >&5
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); } &&
30434 { ac_try='test -z "$ac_c_werror_flag"
30435 || test ! -s conftest.err'
30436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30437 (eval $ac_try) 2>&5
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); }; } &&
30441 { ac_try='test -s conftest$ac_exeext'
30442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30443 (eval $ac_try) 2>&5
30445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30446 (exit $ac_status); }; }; then
30449 echo "$as_me: failed program was:" >&5
30450 sed 's/^/| /' conftest.$ac_ext >&5
30454 rm -f conftest.err conftest.$ac_objext \
30455 conftest$ac_exeext conftest.$ac_ext
30460 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30461 echo "${ECHO_T}$ol_cv_db_db3" >&6
30463 if test $ol_cv_db_db3 = yes ; then
30468 if test $ol_cv_lib_db = no ; then
30469 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30470 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30471 if test "${ol_cv_db_db_3+set}" = set; then
30472 echo $ECHO_N "(cached) $ECHO_C" >&6
30477 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30479 cat >conftest.$ac_ext <<_ACEOF
30482 cat confdefs.h >>conftest.$ac_ext
30483 cat >>conftest.$ac_ext <<_ACEOF
30484 /* end confdefs.h. */
30486 #ifdef HAVE_DB_185_H
30487 # include <db_185.h>
30492 #ifndef DB_VERSION_MAJOR
30493 # define DB_VERSION_MAJOR 1
30497 #define NULL ((void*)0)
30504 #if DB_VERSION_MAJOR > 1
30507 int major, minor, patch;
30509 version = db_version( &major, &minor, &patch );
30511 if( major != DB_VERSION_MAJOR ||
30512 minor < DB_VERSION_MINOR )
30514 printf("Berkeley DB version mismatch\n"
30515 "\theader: %s\n\tlibrary: %s\n",
30516 DB_VERSION_STRING, version);
30522 #if DB_VERSION_MAJOR > 2
30523 db_env_create( NULL, 0 );
30524 #elif DB_VERSION_MAJOR > 1
30525 db_appexit( NULL );
30527 (void) dbopen( NULL, 0, 0, 0, NULL);
30534 rm -f conftest.$ac_objext conftest$ac_exeext
30535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30536 (eval $ac_link) 2>conftest.er1
30538 grep -v '^ *+' conftest.er1 >conftest.err
30540 cat conftest.err >&5
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); } &&
30543 { ac_try='test -z "$ac_c_werror_flag"
30544 || test ! -s conftest.err'
30545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30546 (eval $ac_try) 2>&5
30548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); }; } &&
30550 { ac_try='test -s conftest$ac_exeext'
30551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30552 (eval $ac_try) 2>&5
30554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555 (exit $ac_status); }; }; then
30558 echo "$as_me: failed program was:" >&5
30559 sed 's/^/| /' conftest.$ac_ext >&5
30563 rm -f conftest.err conftest.$ac_objext \
30564 conftest$ac_exeext conftest.$ac_ext
30569 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30570 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30572 if test $ol_cv_db_db_3 = yes ; then
30573 ol_cv_lib_db=-ldb-3
30578 elif test $ol_cv_bdb_major = 2 ; then
30579 if test $ol_cv_lib_db = no ; then
30580 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30581 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30582 if test "${ol_cv_db_db2+set}" = set; then
30583 echo $ECHO_N "(cached) $ECHO_C" >&6
30588 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30590 cat >conftest.$ac_ext <<_ACEOF
30593 cat confdefs.h >>conftest.$ac_ext
30594 cat >>conftest.$ac_ext <<_ACEOF
30595 /* end confdefs.h. */
30597 #ifdef HAVE_DB_185_H
30598 # include <db_185.h>
30603 #ifndef DB_VERSION_MAJOR
30604 # define DB_VERSION_MAJOR 1
30608 #define NULL ((void*)0)
30615 #if DB_VERSION_MAJOR > 1
30618 int major, minor, patch;
30620 version = db_version( &major, &minor, &patch );
30622 if( major != DB_VERSION_MAJOR ||
30623 minor < DB_VERSION_MINOR )
30625 printf("Berkeley DB version mismatch\n"
30626 "\theader: %s\n\tlibrary: %s\n",
30627 DB_VERSION_STRING, version);
30633 #if DB_VERSION_MAJOR > 2
30634 db_env_create( NULL, 0 );
30635 #elif DB_VERSION_MAJOR > 1
30636 db_appexit( NULL );
30638 (void) dbopen( NULL, 0, 0, 0, NULL);
30645 rm -f conftest.$ac_objext conftest$ac_exeext
30646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30647 (eval $ac_link) 2>conftest.er1
30649 grep -v '^ *+' conftest.er1 >conftest.err
30651 cat conftest.err >&5
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); } &&
30654 { ac_try='test -z "$ac_c_werror_flag"
30655 || test ! -s conftest.err'
30656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657 (eval $ac_try) 2>&5
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; } &&
30661 { ac_try='test -s conftest$ac_exeext'
30662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30663 (eval $ac_try) 2>&5
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); }; }; then
30669 echo "$as_me: failed program was:" >&5
30670 sed 's/^/| /' conftest.$ac_ext >&5
30674 rm -f conftest.err conftest.$ac_objext \
30675 conftest$ac_exeext conftest.$ac_ext
30680 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30681 echo "${ECHO_T}$ol_cv_db_db2" >&6
30683 if test $ol_cv_db_db2 = yes ; then
30688 if test $ol_cv_lib_db = no ; then
30689 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30690 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30691 if test "${ol_cv_db_db_2+set}" = set; then
30692 echo $ECHO_N "(cached) $ECHO_C" >&6
30697 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30699 cat >conftest.$ac_ext <<_ACEOF
30702 cat confdefs.h >>conftest.$ac_ext
30703 cat >>conftest.$ac_ext <<_ACEOF
30704 /* end confdefs.h. */
30706 #ifdef HAVE_DB_185_H
30707 # include <db_185.h>
30712 #ifndef DB_VERSION_MAJOR
30713 # define DB_VERSION_MAJOR 1
30717 #define NULL ((void*)0)
30724 #if DB_VERSION_MAJOR > 1
30727 int major, minor, patch;
30729 version = db_version( &major, &minor, &patch );
30731 if( major != DB_VERSION_MAJOR ||
30732 minor < DB_VERSION_MINOR )
30734 printf("Berkeley DB version mismatch\n"
30735 "\theader: %s\n\tlibrary: %s\n",
30736 DB_VERSION_STRING, version);
30742 #if DB_VERSION_MAJOR > 2
30743 db_env_create( NULL, 0 );
30744 #elif DB_VERSION_MAJOR > 1
30745 db_appexit( NULL );
30747 (void) dbopen( NULL, 0, 0, 0, NULL);
30754 rm -f conftest.$ac_objext conftest$ac_exeext
30755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30756 (eval $ac_link) 2>conftest.er1
30758 grep -v '^ *+' conftest.er1 >conftest.err
30760 cat conftest.err >&5
30761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30762 (exit $ac_status); } &&
30763 { ac_try='test -z "$ac_c_werror_flag"
30764 || test ! -s conftest.err'
30765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30766 (eval $ac_try) 2>&5
30768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769 (exit $ac_status); }; } &&
30770 { ac_try='test -s conftest$ac_exeext'
30771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30772 (eval $ac_try) 2>&5
30774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775 (exit $ac_status); }; }; then
30778 echo "$as_me: failed program was:" >&5
30779 sed 's/^/| /' conftest.$ac_ext >&5
30783 rm -f conftest.err conftest.$ac_objext \
30784 conftest$ac_exeext conftest.$ac_ext
30789 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30790 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30792 if test $ol_cv_db_db_2 = yes ; then
30793 ol_cv_lib_db=-ldb-2
30798 elif test $ol_cv_bdb_major = 1 ; then
30799 if test $ol_cv_lib_db = no ; then
30800 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30801 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30802 if test "${ol_cv_db_db1+set}" = set; then
30803 echo $ECHO_N "(cached) $ECHO_C" >&6
30808 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30810 cat >conftest.$ac_ext <<_ACEOF
30813 cat confdefs.h >>conftest.$ac_ext
30814 cat >>conftest.$ac_ext <<_ACEOF
30815 /* end confdefs.h. */
30817 #ifdef HAVE_DB_185_H
30818 # include <db_185.h>
30823 #ifndef DB_VERSION_MAJOR
30824 # define DB_VERSION_MAJOR 1
30828 #define NULL ((void*)0)
30835 #if DB_VERSION_MAJOR > 1
30838 int major, minor, patch;
30840 version = db_version( &major, &minor, &patch );
30842 if( major != DB_VERSION_MAJOR ||
30843 minor < DB_VERSION_MINOR )
30845 printf("Berkeley DB version mismatch\n"
30846 "\theader: %s\n\tlibrary: %s\n",
30847 DB_VERSION_STRING, version);
30853 #if DB_VERSION_MAJOR > 2
30854 db_env_create( NULL, 0 );
30855 #elif DB_VERSION_MAJOR > 1
30856 db_appexit( NULL );
30858 (void) dbopen( NULL, 0, 0, 0, NULL);
30865 rm -f conftest.$ac_objext conftest$ac_exeext
30866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30867 (eval $ac_link) 2>conftest.er1
30869 grep -v '^ *+' conftest.er1 >conftest.err
30871 cat conftest.err >&5
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873 (exit $ac_status); } &&
30874 { ac_try='test -z "$ac_c_werror_flag"
30875 || test ! -s conftest.err'
30876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30877 (eval $ac_try) 2>&5
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); }; } &&
30881 { ac_try='test -s conftest$ac_exeext'
30882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30883 (eval $ac_try) 2>&5
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); }; }; then
30889 echo "$as_me: failed program was:" >&5
30890 sed 's/^/| /' conftest.$ac_ext >&5
30894 rm -f conftest.err conftest.$ac_objext \
30895 conftest$ac_exeext conftest.$ac_ext
30900 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30901 echo "${ECHO_T}$ol_cv_db_db1" >&6
30903 if test $ol_cv_db_db1 = yes ; then
30908 if test $ol_cv_lib_db = no ; then
30909 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30910 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30911 if test "${ol_cv_db_db_1+set}" = set; then
30912 echo $ECHO_N "(cached) $ECHO_C" >&6
30917 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30919 cat >conftest.$ac_ext <<_ACEOF
30922 cat confdefs.h >>conftest.$ac_ext
30923 cat >>conftest.$ac_ext <<_ACEOF
30924 /* end confdefs.h. */
30926 #ifdef HAVE_DB_185_H
30927 # include <db_185.h>
30932 #ifndef DB_VERSION_MAJOR
30933 # define DB_VERSION_MAJOR 1
30937 #define NULL ((void*)0)
30944 #if DB_VERSION_MAJOR > 1
30947 int major, minor, patch;
30949 version = db_version( &major, &minor, &patch );
30951 if( major != DB_VERSION_MAJOR ||
30952 minor < DB_VERSION_MINOR )
30954 printf("Berkeley DB version mismatch\n"
30955 "\theader: %s\n\tlibrary: %s\n",
30956 DB_VERSION_STRING, version);
30962 #if DB_VERSION_MAJOR > 2
30963 db_env_create( NULL, 0 );
30964 #elif DB_VERSION_MAJOR > 1
30965 db_appexit( NULL );
30967 (void) dbopen( NULL, 0, 0, 0, NULL);
30974 rm -f conftest.$ac_objext conftest$ac_exeext
30975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30976 (eval $ac_link) 2>conftest.er1
30978 grep -v '^ *+' conftest.er1 >conftest.err
30980 cat conftest.err >&5
30981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982 (exit $ac_status); } &&
30983 { ac_try='test -z "$ac_c_werror_flag"
30984 || test ! -s conftest.err'
30985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30986 (eval $ac_try) 2>&5
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); }; } &&
30990 { ac_try='test -s conftest$ac_exeext'
30991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30992 (eval $ac_try) 2>&5
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); }; }; then
30998 echo "$as_me: failed program was:" >&5
30999 sed 's/^/| /' conftest.$ac_ext >&5
31003 rm -f conftest.err conftest.$ac_objext \
31004 conftest$ac_exeext conftest.$ac_ext
31009 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31010 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31012 if test $ol_cv_db_db_1 = yes ; then
31013 ol_cv_lib_db=-ldb-1
31018 if test $ol_cv_lib_db = no ; then
31019 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31020 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31021 if test "${ol_cv_db_none+set}" = set; then
31022 echo $ECHO_N "(cached) $ECHO_C" >&6
31027 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31029 cat >conftest.$ac_ext <<_ACEOF
31032 cat confdefs.h >>conftest.$ac_ext
31033 cat >>conftest.$ac_ext <<_ACEOF
31034 /* end confdefs.h. */
31036 #ifdef HAVE_DB_185_H
31037 # include <db_185.h>
31042 #ifndef DB_VERSION_MAJOR
31043 # define DB_VERSION_MAJOR 1
31047 #define NULL ((void*)0)
31054 #if DB_VERSION_MAJOR > 1
31057 int major, minor, patch;
31059 version = db_version( &major, &minor, &patch );
31061 if( major != DB_VERSION_MAJOR ||
31062 minor < DB_VERSION_MINOR )
31064 printf("Berkeley DB version mismatch\n"
31065 "\theader: %s\n\tlibrary: %s\n",
31066 DB_VERSION_STRING, version);
31072 #if DB_VERSION_MAJOR > 2
31073 db_env_create( NULL, 0 );
31074 #elif DB_VERSION_MAJOR > 1
31075 db_appexit( NULL );
31077 (void) dbopen( NULL, 0, 0, 0, NULL);
31084 rm -f conftest.$ac_objext conftest$ac_exeext
31085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31086 (eval $ac_link) 2>conftest.er1
31088 grep -v '^ *+' conftest.er1 >conftest.err
31090 cat conftest.err >&5
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); } &&
31093 { ac_try='test -z "$ac_c_werror_flag"
31094 || test ! -s conftest.err'
31095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31096 (eval $ac_try) 2>&5
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; } &&
31100 { ac_try='test -s conftest$ac_exeext'
31101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31102 (eval $ac_try) 2>&5
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; }; then
31108 echo "$as_me: failed program was:" >&5
31109 sed 's/^/| /' conftest.$ac_ext >&5
31113 rm -f conftest.err conftest.$ac_objext \
31114 conftest$ac_exeext conftest.$ac_ext
31119 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31120 echo "${ECHO_T}$ol_cv_db_none" >&6
31122 if test $ol_cv_db_none = yes ; then
31128 if test "$ol_cv_lib_db" != no ; then
31129 ol_cv_berkeley_db=yes
31135 ol_cv_berkeley_db=no
31137 for ac_header in db.h
31139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31141 echo "$as_me:$LINENO: checking for $ac_header" >&5
31142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31144 echo $ECHO_N "(cached) $ECHO_C" >&6
31146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31149 # Is the header compilable?
31150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31152 cat >conftest.$ac_ext <<_ACEOF
31155 cat confdefs.h >>conftest.$ac_ext
31156 cat >>conftest.$ac_ext <<_ACEOF
31157 /* end confdefs.h. */
31158 $ac_includes_default
31159 #include <$ac_header>
31161 rm -f conftest.$ac_objext
31162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31163 (eval $ac_compile) 2>conftest.er1
31165 grep -v '^ *+' conftest.er1 >conftest.err
31167 cat conftest.err >&5
31168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31169 (exit $ac_status); } &&
31170 { ac_try='test -z "$ac_c_werror_flag"
31171 || test ! -s conftest.err'
31172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31173 (eval $ac_try) 2>&5
31175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176 (exit $ac_status); }; } &&
31177 { ac_try='test -s conftest.$ac_objext'
31178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31179 (eval $ac_try) 2>&5
31181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182 (exit $ac_status); }; }; then
31183 ac_header_compiler=yes
31185 echo "$as_me: failed program was:" >&5
31186 sed 's/^/| /' conftest.$ac_ext >&5
31188 ac_header_compiler=no
31190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31192 echo "${ECHO_T}$ac_header_compiler" >&6
31194 # Is the header present?
31195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31197 cat >conftest.$ac_ext <<_ACEOF
31200 cat confdefs.h >>conftest.$ac_ext
31201 cat >>conftest.$ac_ext <<_ACEOF
31202 /* end confdefs.h. */
31203 #include <$ac_header>
31205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31208 grep -v '^ *+' conftest.er1 >conftest.err
31210 cat conftest.err >&5
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); } >/dev/null; then
31213 if test -s conftest.err; then
31214 ac_cpp_err=$ac_c_preproc_warn_flag
31215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31222 if test -z "$ac_cpp_err"; then
31223 ac_header_preproc=yes
31225 echo "$as_me: failed program was:" >&5
31226 sed 's/^/| /' conftest.$ac_ext >&5
31228 ac_header_preproc=no
31230 rm -f conftest.err conftest.$ac_ext
31231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31232 echo "${ECHO_T}$ac_header_preproc" >&6
31234 # So? What about this header?
31235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31241 ac_header_preproc=yes
31244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31247 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31251 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31258 ## --------------------------------------------- ##
31259 ## Report this to <http://www.openldap.org/its/> ##
31260 ## --------------------------------------------- ##
31263 sed "s/^/$as_me: WARNING: /" >&2
31266 echo "$as_me:$LINENO: checking for $ac_header" >&5
31267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31269 echo $ECHO_N "(cached) $ECHO_C" >&6
31271 eval "$as_ac_Header=\$ac_header_preproc"
31273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31278 cat >>confdefs.h <<_ACEOF
31279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31286 if test $ac_cv_header_db_h = yes; then
31289 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31290 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31291 if test "${ol_cv_bdb_major+set}" = set; then
31292 echo $ECHO_N "(cached) $ECHO_C" >&6
31296 if test $ol_cv_bdb_major = 0 ; then
31297 cat >conftest.$ac_ext <<_ACEOF
31300 cat confdefs.h >>conftest.$ac_ext
31301 cat >>conftest.$ac_ext <<_ACEOF
31302 /* end confdefs.h. */
31305 #ifndef DB_VERSION_MAJOR
31306 # define DB_VERSION_MAJOR 1
31308 #if DB_VERSION_MAJOR == 4
31313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31314 $EGREP "__db_version" >/dev/null 2>&1; then
31322 if test $ol_cv_bdb_major = 0 ; then
31323 cat >conftest.$ac_ext <<_ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h. */
31331 #ifndef DB_VERSION_MAJOR
31332 # define DB_VERSION_MAJOR 1
31334 #if DB_VERSION_MAJOR == 3
31339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31340 $EGREP "__db_version" >/dev/null 2>&1; then
31348 if test $ol_cv_bdb_major = 0 ; then
31349 cat >conftest.$ac_ext <<_ACEOF
31352 cat confdefs.h >>conftest.$ac_ext
31353 cat >>conftest.$ac_ext <<_ACEOF
31354 /* end confdefs.h. */
31357 #ifndef DB_VERSION_MAJOR
31358 # define DB_VERSION_MAJOR 1
31360 #if DB_VERSION_MAJOR == 2
31365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31366 $EGREP "__db_version" >/dev/null 2>&1; then
31374 if test $ol_cv_bdb_major = 0 ; then
31375 cat >conftest.$ac_ext <<_ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h. */
31383 #ifndef DB_VERSION_MAJOR
31384 # define DB_VERSION_MAJOR 1
31386 #if DB_VERSION_MAJOR == 1
31391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31392 $EGREP "__db_version" >/dev/null 2>&1; then
31401 if test $ol_cv_bdb_major = 0 ; then
31402 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31403 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31404 { (exit 1); exit 1; }; }
31408 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31409 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31411 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31412 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31413 if test "${ol_cv_bdb_minor+set}" = set; then
31414 echo $ECHO_N "(cached) $ECHO_C" >&6
31418 if test $ol_cv_bdb_minor = 0 ; then
31419 cat >conftest.$ac_ext <<_ACEOF
31422 cat confdefs.h >>conftest.$ac_ext
31423 cat >>conftest.$ac_ext <<_ACEOF
31424 /* end confdefs.h. */
31427 #ifndef DB_VERSION_MINOR
31428 # define DB_VERSION_MINOR 0
31430 #if DB_VERSION_MINOR == 9
31435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31436 $EGREP "__db_version" >/dev/null 2>&1; then
31444 if test $ol_cv_bdb_minor = 0 ; then
31445 cat >conftest.$ac_ext <<_ACEOF
31448 cat confdefs.h >>conftest.$ac_ext
31449 cat >>conftest.$ac_ext <<_ACEOF
31450 /* end confdefs.h. */
31453 #ifndef DB_VERSION_MINOR
31454 # define DB_VERSION_MINOR 0
31456 #if DB_VERSION_MINOR == 8
31461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31462 $EGREP "__db_version" >/dev/null 2>&1; then
31470 if test $ol_cv_bdb_minor = 0 ; then
31471 cat >conftest.$ac_ext <<_ACEOF
31474 cat confdefs.h >>conftest.$ac_ext
31475 cat >>conftest.$ac_ext <<_ACEOF
31476 /* end confdefs.h. */
31479 #ifndef DB_VERSION_MINOR
31480 # define DB_VERSION_MINOR 0
31482 #if DB_VERSION_MINOR == 7
31487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31488 $EGREP "__db_version" >/dev/null 2>&1; then
31496 if test $ol_cv_bdb_minor = 0 ; then
31497 cat >conftest.$ac_ext <<_ACEOF
31500 cat confdefs.h >>conftest.$ac_ext
31501 cat >>conftest.$ac_ext <<_ACEOF
31502 /* end confdefs.h. */
31505 #ifndef DB_VERSION_MINOR
31506 # define DB_VERSION_MINOR 0
31508 #if DB_VERSION_MINOR == 6
31513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31514 $EGREP "__db_version" >/dev/null 2>&1; then
31522 if test $ol_cv_bdb_minor = 0 ; then
31523 cat >conftest.$ac_ext <<_ACEOF
31526 cat confdefs.h >>conftest.$ac_ext
31527 cat >>conftest.$ac_ext <<_ACEOF
31528 /* end confdefs.h. */
31531 #ifndef DB_VERSION_MINOR
31532 # define DB_VERSION_MINOR 0
31534 #if DB_VERSION_MINOR == 5
31539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31540 $EGREP "__db_version" >/dev/null 2>&1; then
31548 if test $ol_cv_bdb_minor = 0 ; then
31549 cat >conftest.$ac_ext <<_ACEOF
31552 cat confdefs.h >>conftest.$ac_ext
31553 cat >>conftest.$ac_ext <<_ACEOF
31554 /* end confdefs.h. */
31557 #ifndef DB_VERSION_MINOR
31558 # define DB_VERSION_MINOR 0
31560 #if DB_VERSION_MINOR == 4
31565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31566 $EGREP "__db_version" >/dev/null 2>&1; then
31574 if test $ol_cv_bdb_minor = 0 ; then
31575 cat >conftest.$ac_ext <<_ACEOF
31578 cat confdefs.h >>conftest.$ac_ext
31579 cat >>conftest.$ac_ext <<_ACEOF
31580 /* end confdefs.h. */
31583 #ifndef DB_VERSION_MINOR
31584 # define DB_VERSION_MINOR 0
31586 #if DB_VERSION_MINOR == 3
31591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31592 $EGREP "__db_version" >/dev/null 2>&1; then
31600 if test $ol_cv_bdb_minor = 0 ; then
31601 cat >conftest.$ac_ext <<_ACEOF
31604 cat confdefs.h >>conftest.$ac_ext
31605 cat >>conftest.$ac_ext <<_ACEOF
31606 /* end confdefs.h. */
31609 #ifndef DB_VERSION_MINOR
31610 # define DB_VERSION_MINOR 0
31612 #if DB_VERSION_MINOR == 2
31617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31618 $EGREP "__db_version" >/dev/null 2>&1; then
31626 if test $ol_cv_bdb_minor = 0 ; then
31627 cat >conftest.$ac_ext <<_ACEOF
31630 cat confdefs.h >>conftest.$ac_ext
31631 cat >>conftest.$ac_ext <<_ACEOF
31632 /* end confdefs.h. */
31635 #ifndef DB_VERSION_MINOR
31636 # define DB_VERSION_MINOR 0
31638 #if DB_VERSION_MINOR == 1
31643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31644 $EGREP "__db_version" >/dev/null 2>&1; then
31654 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31655 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31657 if test $ol_cv_bdb_major = 4 ; then
31658 if test $ol_cv_bdb_minor = 4 ; then
31659 if test $ol_cv_lib_db = no ; then
31660 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31661 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31662 if test "${ol_cv_db_db44+set}" = set; then
31663 echo $ECHO_N "(cached) $ECHO_C" >&6
31668 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31670 cat >conftest.$ac_ext <<_ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h. */
31677 #ifdef HAVE_DB_185_H
31678 # include <db_185.h>
31683 #ifndef DB_VERSION_MAJOR
31684 # define DB_VERSION_MAJOR 1
31688 #define NULL ((void*)0)
31695 #if DB_VERSION_MAJOR > 1
31698 int major, minor, patch;
31700 version = db_version( &major, &minor, &patch );
31702 if( major != DB_VERSION_MAJOR ||
31703 minor < DB_VERSION_MINOR )
31705 printf("Berkeley DB version mismatch\n"
31706 "\theader: %s\n\tlibrary: %s\n",
31707 DB_VERSION_STRING, version);
31713 #if DB_VERSION_MAJOR > 2
31714 db_env_create( NULL, 0 );
31715 #elif DB_VERSION_MAJOR > 1
31716 db_appexit( NULL );
31718 (void) dbopen( NULL, 0, 0, 0, NULL);
31725 rm -f conftest.$ac_objext conftest$ac_exeext
31726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31727 (eval $ac_link) 2>conftest.er1
31729 grep -v '^ *+' conftest.er1 >conftest.err
31731 cat conftest.err >&5
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); } &&
31734 { ac_try='test -z "$ac_c_werror_flag"
31735 || test ! -s conftest.err'
31736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31737 (eval $ac_try) 2>&5
31739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740 (exit $ac_status); }; } &&
31741 { ac_try='test -s conftest$ac_exeext'
31742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31743 (eval $ac_try) 2>&5
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); }; }; then
31749 echo "$as_me: failed program was:" >&5
31750 sed 's/^/| /' conftest.$ac_ext >&5
31754 rm -f conftest.err conftest.$ac_objext \
31755 conftest$ac_exeext conftest.$ac_ext
31760 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31761 echo "${ECHO_T}$ol_cv_db_db44" >&6
31763 if test $ol_cv_db_db44 = yes ; then
31764 ol_cv_lib_db=-ldb44
31768 if test $ol_cv_lib_db = no ; then
31769 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31770 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31771 if test "${ol_cv_db_db_44+set}" = set; then
31772 echo $ECHO_N "(cached) $ECHO_C" >&6
31777 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31779 cat >conftest.$ac_ext <<_ACEOF
31782 cat confdefs.h >>conftest.$ac_ext
31783 cat >>conftest.$ac_ext <<_ACEOF
31784 /* end confdefs.h. */
31786 #ifdef HAVE_DB_185_H
31787 # include <db_185.h>
31792 #ifndef DB_VERSION_MAJOR
31793 # define DB_VERSION_MAJOR 1
31797 #define NULL ((void*)0)
31804 #if DB_VERSION_MAJOR > 1
31807 int major, minor, patch;
31809 version = db_version( &major, &minor, &patch );
31811 if( major != DB_VERSION_MAJOR ||
31812 minor < DB_VERSION_MINOR )
31814 printf("Berkeley DB version mismatch\n"
31815 "\theader: %s\n\tlibrary: %s\n",
31816 DB_VERSION_STRING, version);
31822 #if DB_VERSION_MAJOR > 2
31823 db_env_create( NULL, 0 );
31824 #elif DB_VERSION_MAJOR > 1
31825 db_appexit( NULL );
31827 (void) dbopen( NULL, 0, 0, 0, NULL);
31834 rm -f conftest.$ac_objext conftest$ac_exeext
31835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31836 (eval $ac_link) 2>conftest.er1
31838 grep -v '^ *+' conftest.er1 >conftest.err
31840 cat conftest.err >&5
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); } &&
31843 { ac_try='test -z "$ac_c_werror_flag"
31844 || test ! -s conftest.err'
31845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31846 (eval $ac_try) 2>&5
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; } &&
31850 { ac_try='test -s conftest$ac_exeext'
31851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31852 (eval $ac_try) 2>&5
31854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855 (exit $ac_status); }; }; then
31858 echo "$as_me: failed program was:" >&5
31859 sed 's/^/| /' conftest.$ac_ext >&5
31863 rm -f conftest.err conftest.$ac_objext \
31864 conftest$ac_exeext conftest.$ac_ext
31869 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31870 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31872 if test $ol_cv_db_db_44 = yes ; then
31873 ol_cv_lib_db=-ldb-44
31877 if test $ol_cv_lib_db = no ; then
31878 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31879 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31880 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31881 echo $ECHO_N "(cached) $ECHO_C" >&6
31886 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31888 cat >conftest.$ac_ext <<_ACEOF
31891 cat confdefs.h >>conftest.$ac_ext
31892 cat >>conftest.$ac_ext <<_ACEOF
31893 /* end confdefs.h. */
31895 #ifdef HAVE_DB_185_H
31896 # include <db_185.h>
31901 #ifndef DB_VERSION_MAJOR
31902 # define DB_VERSION_MAJOR 1
31906 #define NULL ((void*)0)
31913 #if DB_VERSION_MAJOR > 1
31916 int major, minor, patch;
31918 version = db_version( &major, &minor, &patch );
31920 if( major != DB_VERSION_MAJOR ||
31921 minor < DB_VERSION_MINOR )
31923 printf("Berkeley DB version mismatch\n"
31924 "\theader: %s\n\tlibrary: %s\n",
31925 DB_VERSION_STRING, version);
31931 #if DB_VERSION_MAJOR > 2
31932 db_env_create( NULL, 0 );
31933 #elif DB_VERSION_MAJOR > 1
31934 db_appexit( NULL );
31936 (void) dbopen( NULL, 0, 0, 0, NULL);
31943 rm -f conftest.$ac_objext conftest$ac_exeext
31944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31945 (eval $ac_link) 2>conftest.er1
31947 grep -v '^ *+' conftest.er1 >conftest.err
31949 cat conftest.err >&5
31950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951 (exit $ac_status); } &&
31952 { ac_try='test -z "$ac_c_werror_flag"
31953 || test ! -s conftest.err'
31954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31955 (eval $ac_try) 2>&5
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); }; } &&
31959 { ac_try='test -s conftest$ac_exeext'
31960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31961 (eval $ac_try) 2>&5
31963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964 (exit $ac_status); }; }; then
31965 ol_cv_db_db_4_dot_4=yes
31967 echo "$as_me: failed program was:" >&5
31968 sed 's/^/| /' conftest.$ac_ext >&5
31970 ol_cv_db_db_4_dot_4=no
31972 rm -f conftest.err conftest.$ac_objext \
31973 conftest$ac_exeext conftest.$ac_ext
31978 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
31979 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
31981 if test $ol_cv_db_db_4_dot_4 = yes ; then
31982 ol_cv_lib_db=-ldb-4.4
31986 if test $ol_cv_lib_db = no ; then
31987 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
31988 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
31989 if test "${ol_cv_db_db_4_4+set}" = set; then
31990 echo $ECHO_N "(cached) $ECHO_C" >&6
31995 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31997 cat >conftest.$ac_ext <<_ACEOF
32000 cat confdefs.h >>conftest.$ac_ext
32001 cat >>conftest.$ac_ext <<_ACEOF
32002 /* end confdefs.h. */
32004 #ifdef HAVE_DB_185_H
32005 # include <db_185.h>
32010 #ifndef DB_VERSION_MAJOR
32011 # define DB_VERSION_MAJOR 1
32015 #define NULL ((void*)0)
32022 #if DB_VERSION_MAJOR > 1
32025 int major, minor, patch;
32027 version = db_version( &major, &minor, &patch );
32029 if( major != DB_VERSION_MAJOR ||
32030 minor < DB_VERSION_MINOR )
32032 printf("Berkeley DB version mismatch\n"
32033 "\theader: %s\n\tlibrary: %s\n",
32034 DB_VERSION_STRING, version);
32040 #if DB_VERSION_MAJOR > 2
32041 db_env_create( NULL, 0 );
32042 #elif DB_VERSION_MAJOR > 1
32043 db_appexit( NULL );
32045 (void) dbopen( NULL, 0, 0, 0, NULL);
32052 rm -f conftest.$ac_objext conftest$ac_exeext
32053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32054 (eval $ac_link) 2>conftest.er1
32056 grep -v '^ *+' conftest.er1 >conftest.err
32058 cat conftest.err >&5
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); } &&
32061 { ac_try='test -z "$ac_c_werror_flag"
32062 || test ! -s conftest.err'
32063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32064 (eval $ac_try) 2>&5
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); }; } &&
32068 { ac_try='test -s conftest$ac_exeext'
32069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32070 (eval $ac_try) 2>&5
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); }; }; then
32074 ol_cv_db_db_4_4=yes
32076 echo "$as_me: failed program was:" >&5
32077 sed 's/^/| /' conftest.$ac_ext >&5
32081 rm -f conftest.err conftest.$ac_objext \
32082 conftest$ac_exeext conftest.$ac_ext
32087 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32088 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32090 if test $ol_cv_db_db_4_4 = yes ; then
32091 ol_cv_lib_db=-ldb-4-4
32095 elif test $ol_cv_bdb_minor = 3 ; then
32096 if test $ol_cv_lib_db = no ; then
32097 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32098 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32099 if test "${ol_cv_db_db43+set}" = set; then
32100 echo $ECHO_N "(cached) $ECHO_C" >&6
32105 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32107 cat >conftest.$ac_ext <<_ACEOF
32110 cat confdefs.h >>conftest.$ac_ext
32111 cat >>conftest.$ac_ext <<_ACEOF
32112 /* end confdefs.h. */
32114 #ifdef HAVE_DB_185_H
32115 # include <db_185.h>
32120 #ifndef DB_VERSION_MAJOR
32121 # define DB_VERSION_MAJOR 1
32125 #define NULL ((void*)0)
32132 #if DB_VERSION_MAJOR > 1
32135 int major, minor, patch;
32137 version = db_version( &major, &minor, &patch );
32139 if( major != DB_VERSION_MAJOR ||
32140 minor < DB_VERSION_MINOR )
32142 printf("Berkeley DB version mismatch\n"
32143 "\theader: %s\n\tlibrary: %s\n",
32144 DB_VERSION_STRING, version);
32150 #if DB_VERSION_MAJOR > 2
32151 db_env_create( NULL, 0 );
32152 #elif DB_VERSION_MAJOR > 1
32153 db_appexit( NULL );
32155 (void) dbopen( NULL, 0, 0, 0, NULL);
32162 rm -f conftest.$ac_objext conftest$ac_exeext
32163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32164 (eval $ac_link) 2>conftest.er1
32166 grep -v '^ *+' conftest.er1 >conftest.err
32168 cat conftest.err >&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); } &&
32171 { ac_try='test -z "$ac_c_werror_flag"
32172 || test ! -s conftest.err'
32173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32174 (eval $ac_try) 2>&5
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); }; } &&
32178 { ac_try='test -s conftest$ac_exeext'
32179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32180 (eval $ac_try) 2>&5
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); }; }; then
32186 echo "$as_me: failed program was:" >&5
32187 sed 's/^/| /' conftest.$ac_ext >&5
32191 rm -f conftest.err conftest.$ac_objext \
32192 conftest$ac_exeext conftest.$ac_ext
32197 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32198 echo "${ECHO_T}$ol_cv_db_db43" >&6
32200 if test $ol_cv_db_db43 = yes ; then
32201 ol_cv_lib_db=-ldb43
32205 if test $ol_cv_lib_db = no ; then
32206 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32207 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32208 if test "${ol_cv_db_db_43+set}" = set; then
32209 echo $ECHO_N "(cached) $ECHO_C" >&6
32214 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32216 cat >conftest.$ac_ext <<_ACEOF
32219 cat confdefs.h >>conftest.$ac_ext
32220 cat >>conftest.$ac_ext <<_ACEOF
32221 /* end confdefs.h. */
32223 #ifdef HAVE_DB_185_H
32224 # include <db_185.h>
32229 #ifndef DB_VERSION_MAJOR
32230 # define DB_VERSION_MAJOR 1
32234 #define NULL ((void*)0)
32241 #if DB_VERSION_MAJOR > 1
32244 int major, minor, patch;
32246 version = db_version( &major, &minor, &patch );
32248 if( major != DB_VERSION_MAJOR ||
32249 minor < DB_VERSION_MINOR )
32251 printf("Berkeley DB version mismatch\n"
32252 "\theader: %s\n\tlibrary: %s\n",
32253 DB_VERSION_STRING, version);
32259 #if DB_VERSION_MAJOR > 2
32260 db_env_create( NULL, 0 );
32261 #elif DB_VERSION_MAJOR > 1
32262 db_appexit( NULL );
32264 (void) dbopen( NULL, 0, 0, 0, NULL);
32271 rm -f conftest.$ac_objext conftest$ac_exeext
32272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32273 (eval $ac_link) 2>conftest.er1
32275 grep -v '^ *+' conftest.er1 >conftest.err
32277 cat conftest.err >&5
32278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279 (exit $ac_status); } &&
32280 { ac_try='test -z "$ac_c_werror_flag"
32281 || test ! -s conftest.err'
32282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32283 (eval $ac_try) 2>&5
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); }; } &&
32287 { ac_try='test -s conftest$ac_exeext'
32288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32289 (eval $ac_try) 2>&5
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); }; }; then
32295 echo "$as_me: failed program was:" >&5
32296 sed 's/^/| /' conftest.$ac_ext >&5
32300 rm -f conftest.err conftest.$ac_objext \
32301 conftest$ac_exeext conftest.$ac_ext
32306 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32307 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32309 if test $ol_cv_db_db_43 = yes ; then
32310 ol_cv_lib_db=-ldb-43
32314 if test $ol_cv_lib_db = no ; then
32315 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32316 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32317 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32318 echo $ECHO_N "(cached) $ECHO_C" >&6
32323 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32325 cat >conftest.$ac_ext <<_ACEOF
32328 cat confdefs.h >>conftest.$ac_ext
32329 cat >>conftest.$ac_ext <<_ACEOF
32330 /* end confdefs.h. */
32332 #ifdef HAVE_DB_185_H
32333 # include <db_185.h>
32338 #ifndef DB_VERSION_MAJOR
32339 # define DB_VERSION_MAJOR 1
32343 #define NULL ((void*)0)
32350 #if DB_VERSION_MAJOR > 1
32353 int major, minor, patch;
32355 version = db_version( &major, &minor, &patch );
32357 if( major != DB_VERSION_MAJOR ||
32358 minor < DB_VERSION_MINOR )
32360 printf("Berkeley DB version mismatch\n"
32361 "\theader: %s\n\tlibrary: %s\n",
32362 DB_VERSION_STRING, version);
32368 #if DB_VERSION_MAJOR > 2
32369 db_env_create( NULL, 0 );
32370 #elif DB_VERSION_MAJOR > 1
32371 db_appexit( NULL );
32373 (void) dbopen( NULL, 0, 0, 0, NULL);
32380 rm -f conftest.$ac_objext conftest$ac_exeext
32381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32382 (eval $ac_link) 2>conftest.er1
32384 grep -v '^ *+' conftest.er1 >conftest.err
32386 cat conftest.err >&5
32387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); } &&
32389 { ac_try='test -z "$ac_c_werror_flag"
32390 || test ! -s conftest.err'
32391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32392 (eval $ac_try) 2>&5
32394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395 (exit $ac_status); }; } &&
32396 { ac_try='test -s conftest$ac_exeext'
32397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398 (eval $ac_try) 2>&5
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; }; then
32402 ol_cv_db_db_4_dot_3=yes
32404 echo "$as_me: failed program was:" >&5
32405 sed 's/^/| /' conftest.$ac_ext >&5
32407 ol_cv_db_db_4_dot_3=no
32409 rm -f conftest.err conftest.$ac_objext \
32410 conftest$ac_exeext conftest.$ac_ext
32415 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32416 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32418 if test $ol_cv_db_db_4_dot_3 = yes ; then
32419 ol_cv_lib_db=-ldb-4.3
32423 if test $ol_cv_lib_db = no ; then
32424 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32425 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32426 if test "${ol_cv_db_db_4_3+set}" = set; then
32427 echo $ECHO_N "(cached) $ECHO_C" >&6
32432 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32434 cat >conftest.$ac_ext <<_ACEOF
32437 cat confdefs.h >>conftest.$ac_ext
32438 cat >>conftest.$ac_ext <<_ACEOF
32439 /* end confdefs.h. */
32441 #ifdef HAVE_DB_185_H
32442 # include <db_185.h>
32447 #ifndef DB_VERSION_MAJOR
32448 # define DB_VERSION_MAJOR 1
32452 #define NULL ((void*)0)
32459 #if DB_VERSION_MAJOR > 1
32462 int major, minor, patch;
32464 version = db_version( &major, &minor, &patch );
32466 if( major != DB_VERSION_MAJOR ||
32467 minor < DB_VERSION_MINOR )
32469 printf("Berkeley DB version mismatch\n"
32470 "\theader: %s\n\tlibrary: %s\n",
32471 DB_VERSION_STRING, version);
32477 #if DB_VERSION_MAJOR > 2
32478 db_env_create( NULL, 0 );
32479 #elif DB_VERSION_MAJOR > 1
32480 db_appexit( NULL );
32482 (void) dbopen( NULL, 0, 0, 0, NULL);
32489 rm -f conftest.$ac_objext conftest$ac_exeext
32490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32491 (eval $ac_link) 2>conftest.er1
32493 grep -v '^ *+' conftest.er1 >conftest.err
32495 cat conftest.err >&5
32496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32497 (exit $ac_status); } &&
32498 { ac_try='test -z "$ac_c_werror_flag"
32499 || test ! -s conftest.err'
32500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32501 (eval $ac_try) 2>&5
32503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504 (exit $ac_status); }; } &&
32505 { ac_try='test -s conftest$ac_exeext'
32506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32507 (eval $ac_try) 2>&5
32509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510 (exit $ac_status); }; }; then
32511 ol_cv_db_db_4_3=yes
32513 echo "$as_me: failed program was:" >&5
32514 sed 's/^/| /' conftest.$ac_ext >&5
32518 rm -f conftest.err conftest.$ac_objext \
32519 conftest$ac_exeext conftest.$ac_ext
32524 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32525 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32527 if test $ol_cv_db_db_4_3 = yes ; then
32528 ol_cv_lib_db=-ldb-4-3
32532 elif test $ol_cv_bdb_minor = 2 ; then
32533 if test $ol_cv_lib_db = no ; then
32534 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32535 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32536 if test "${ol_cv_db_db42+set}" = set; then
32537 echo $ECHO_N "(cached) $ECHO_C" >&6
32542 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32544 cat >conftest.$ac_ext <<_ACEOF
32547 cat confdefs.h >>conftest.$ac_ext
32548 cat >>conftest.$ac_ext <<_ACEOF
32549 /* end confdefs.h. */
32551 #ifdef HAVE_DB_185_H
32552 # include <db_185.h>
32557 #ifndef DB_VERSION_MAJOR
32558 # define DB_VERSION_MAJOR 1
32562 #define NULL ((void*)0)
32569 #if DB_VERSION_MAJOR > 1
32572 int major, minor, patch;
32574 version = db_version( &major, &minor, &patch );
32576 if( major != DB_VERSION_MAJOR ||
32577 minor < DB_VERSION_MINOR )
32579 printf("Berkeley DB version mismatch\n"
32580 "\theader: %s\n\tlibrary: %s\n",
32581 DB_VERSION_STRING, version);
32587 #if DB_VERSION_MAJOR > 2
32588 db_env_create( NULL, 0 );
32589 #elif DB_VERSION_MAJOR > 1
32590 db_appexit( NULL );
32592 (void) dbopen( NULL, 0, 0, 0, NULL);
32599 rm -f conftest.$ac_objext conftest$ac_exeext
32600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32601 (eval $ac_link) 2>conftest.er1
32603 grep -v '^ *+' conftest.er1 >conftest.err
32605 cat conftest.err >&5
32606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607 (exit $ac_status); } &&
32608 { ac_try='test -z "$ac_c_werror_flag"
32609 || test ! -s conftest.err'
32610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32611 (eval $ac_try) 2>&5
32613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614 (exit $ac_status); }; } &&
32615 { ac_try='test -s conftest$ac_exeext'
32616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32617 (eval $ac_try) 2>&5
32619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620 (exit $ac_status); }; }; then
32623 echo "$as_me: failed program was:" >&5
32624 sed 's/^/| /' conftest.$ac_ext >&5
32628 rm -f conftest.err conftest.$ac_objext \
32629 conftest$ac_exeext conftest.$ac_ext
32634 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32635 echo "${ECHO_T}$ol_cv_db_db42" >&6
32637 if test $ol_cv_db_db42 = yes ; then
32638 ol_cv_lib_db=-ldb42
32642 if test $ol_cv_lib_db = no ; then
32643 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32644 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32645 if test "${ol_cv_db_db_42+set}" = set; then
32646 echo $ECHO_N "(cached) $ECHO_C" >&6
32651 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32653 cat >conftest.$ac_ext <<_ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h. */
32660 #ifdef HAVE_DB_185_H
32661 # include <db_185.h>
32666 #ifndef DB_VERSION_MAJOR
32667 # define DB_VERSION_MAJOR 1
32671 #define NULL ((void*)0)
32678 #if DB_VERSION_MAJOR > 1
32681 int major, minor, patch;
32683 version = db_version( &major, &minor, &patch );
32685 if( major != DB_VERSION_MAJOR ||
32686 minor < DB_VERSION_MINOR )
32688 printf("Berkeley DB version mismatch\n"
32689 "\theader: %s\n\tlibrary: %s\n",
32690 DB_VERSION_STRING, version);
32696 #if DB_VERSION_MAJOR > 2
32697 db_env_create( NULL, 0 );
32698 #elif DB_VERSION_MAJOR > 1
32699 db_appexit( NULL );
32701 (void) dbopen( NULL, 0, 0, 0, NULL);
32708 rm -f conftest.$ac_objext conftest$ac_exeext
32709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32710 (eval $ac_link) 2>conftest.er1
32712 grep -v '^ *+' conftest.er1 >conftest.err
32714 cat conftest.err >&5
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); } &&
32717 { ac_try='test -z "$ac_c_werror_flag"
32718 || test ! -s conftest.err'
32719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32720 (eval $ac_try) 2>&5
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); }; } &&
32724 { ac_try='test -s conftest$ac_exeext'
32725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32726 (eval $ac_try) 2>&5
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); }; }; then
32732 echo "$as_me: failed program was:" >&5
32733 sed 's/^/| /' conftest.$ac_ext >&5
32737 rm -f conftest.err conftest.$ac_objext \
32738 conftest$ac_exeext conftest.$ac_ext
32743 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32744 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32746 if test $ol_cv_db_db_42 = yes ; then
32747 ol_cv_lib_db=-ldb-42
32751 if test $ol_cv_lib_db = no ; then
32752 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32753 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32754 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32755 echo $ECHO_N "(cached) $ECHO_C" >&6
32760 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32762 cat >conftest.$ac_ext <<_ACEOF
32765 cat confdefs.h >>conftest.$ac_ext
32766 cat >>conftest.$ac_ext <<_ACEOF
32767 /* end confdefs.h. */
32769 #ifdef HAVE_DB_185_H
32770 # include <db_185.h>
32775 #ifndef DB_VERSION_MAJOR
32776 # define DB_VERSION_MAJOR 1
32780 #define NULL ((void*)0)
32787 #if DB_VERSION_MAJOR > 1
32790 int major, minor, patch;
32792 version = db_version( &major, &minor, &patch );
32794 if( major != DB_VERSION_MAJOR ||
32795 minor < DB_VERSION_MINOR )
32797 printf("Berkeley DB version mismatch\n"
32798 "\theader: %s\n\tlibrary: %s\n",
32799 DB_VERSION_STRING, version);
32805 #if DB_VERSION_MAJOR > 2
32806 db_env_create( NULL, 0 );
32807 #elif DB_VERSION_MAJOR > 1
32808 db_appexit( NULL );
32810 (void) dbopen( NULL, 0, 0, 0, NULL);
32817 rm -f conftest.$ac_objext conftest$ac_exeext
32818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32819 (eval $ac_link) 2>conftest.er1
32821 grep -v '^ *+' conftest.er1 >conftest.err
32823 cat conftest.err >&5
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); } &&
32826 { ac_try='test -z "$ac_c_werror_flag"
32827 || test ! -s conftest.err'
32828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32829 (eval $ac_try) 2>&5
32831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32832 (exit $ac_status); }; } &&
32833 { ac_try='test -s conftest$ac_exeext'
32834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32835 (eval $ac_try) 2>&5
32837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32838 (exit $ac_status); }; }; then
32839 ol_cv_db_db_4_dot_2=yes
32841 echo "$as_me: failed program was:" >&5
32842 sed 's/^/| /' conftest.$ac_ext >&5
32844 ol_cv_db_db_4_dot_2=no
32846 rm -f conftest.err conftest.$ac_objext \
32847 conftest$ac_exeext conftest.$ac_ext
32852 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32853 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32855 if test $ol_cv_db_db_4_dot_2 = yes ; then
32856 ol_cv_lib_db=-ldb-4.2
32860 if test $ol_cv_lib_db = no ; then
32861 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32862 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32863 if test "${ol_cv_db_db_4_2+set}" = set; then
32864 echo $ECHO_N "(cached) $ECHO_C" >&6
32869 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32871 cat >conftest.$ac_ext <<_ACEOF
32874 cat confdefs.h >>conftest.$ac_ext
32875 cat >>conftest.$ac_ext <<_ACEOF
32876 /* end confdefs.h. */
32878 #ifdef HAVE_DB_185_H
32879 # include <db_185.h>
32884 #ifndef DB_VERSION_MAJOR
32885 # define DB_VERSION_MAJOR 1
32889 #define NULL ((void*)0)
32896 #if DB_VERSION_MAJOR > 1
32899 int major, minor, patch;
32901 version = db_version( &major, &minor, &patch );
32903 if( major != DB_VERSION_MAJOR ||
32904 minor < DB_VERSION_MINOR )
32906 printf("Berkeley DB version mismatch\n"
32907 "\theader: %s\n\tlibrary: %s\n",
32908 DB_VERSION_STRING, version);
32914 #if DB_VERSION_MAJOR > 2
32915 db_env_create( NULL, 0 );
32916 #elif DB_VERSION_MAJOR > 1
32917 db_appexit( NULL );
32919 (void) dbopen( NULL, 0, 0, 0, NULL);
32926 rm -f conftest.$ac_objext conftest$ac_exeext
32927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32928 (eval $ac_link) 2>conftest.er1
32930 grep -v '^ *+' conftest.er1 >conftest.err
32932 cat conftest.err >&5
32933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32934 (exit $ac_status); } &&
32935 { ac_try='test -z "$ac_c_werror_flag"
32936 || test ! -s conftest.err'
32937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32938 (eval $ac_try) 2>&5
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); }; } &&
32942 { ac_try='test -s conftest$ac_exeext'
32943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32944 (eval $ac_try) 2>&5
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); }; }; then
32948 ol_cv_db_db_4_2=yes
32950 echo "$as_me: failed program was:" >&5
32951 sed 's/^/| /' conftest.$ac_ext >&5
32955 rm -f conftest.err conftest.$ac_objext \
32956 conftest$ac_exeext conftest.$ac_ext
32961 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32962 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
32964 if test $ol_cv_db_db_4_2 = yes ; then
32965 ol_cv_lib_db=-ldb-4-2
32969 elif test $ol_cv_bdb_minor = 1 ; then
32970 if test $ol_cv_lib_db = no ; then
32971 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32972 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
32973 if test "${ol_cv_db_db41+set}" = set; then
32974 echo $ECHO_N "(cached) $ECHO_C" >&6
32979 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32981 cat >conftest.$ac_ext <<_ACEOF
32984 cat confdefs.h >>conftest.$ac_ext
32985 cat >>conftest.$ac_ext <<_ACEOF
32986 /* end confdefs.h. */
32988 #ifdef HAVE_DB_185_H
32989 # include <db_185.h>
32994 #ifndef DB_VERSION_MAJOR
32995 # define DB_VERSION_MAJOR 1
32999 #define NULL ((void*)0)
33006 #if DB_VERSION_MAJOR > 1
33009 int major, minor, patch;
33011 version = db_version( &major, &minor, &patch );
33013 if( major != DB_VERSION_MAJOR ||
33014 minor < DB_VERSION_MINOR )
33016 printf("Berkeley DB version mismatch\n"
33017 "\theader: %s\n\tlibrary: %s\n",
33018 DB_VERSION_STRING, version);
33024 #if DB_VERSION_MAJOR > 2
33025 db_env_create( NULL, 0 );
33026 #elif DB_VERSION_MAJOR > 1
33027 db_appexit( NULL );
33029 (void) dbopen( NULL, 0, 0, 0, NULL);
33036 rm -f conftest.$ac_objext conftest$ac_exeext
33037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33038 (eval $ac_link) 2>conftest.er1
33040 grep -v '^ *+' conftest.er1 >conftest.err
33042 cat conftest.err >&5
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); } &&
33045 { ac_try='test -z "$ac_c_werror_flag"
33046 || test ! -s conftest.err'
33047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33048 (eval $ac_try) 2>&5
33050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051 (exit $ac_status); }; } &&
33052 { ac_try='test -s conftest$ac_exeext'
33053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33054 (eval $ac_try) 2>&5
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); }; }; then
33060 echo "$as_me: failed program was:" >&5
33061 sed 's/^/| /' conftest.$ac_ext >&5
33065 rm -f conftest.err conftest.$ac_objext \
33066 conftest$ac_exeext conftest.$ac_ext
33071 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33072 echo "${ECHO_T}$ol_cv_db_db41" >&6
33074 if test $ol_cv_db_db41 = yes ; then
33075 ol_cv_lib_db=-ldb41
33079 if test $ol_cv_lib_db = no ; then
33080 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33081 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33082 if test "${ol_cv_db_db_41+set}" = set; then
33083 echo $ECHO_N "(cached) $ECHO_C" >&6
33088 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33090 cat >conftest.$ac_ext <<_ACEOF
33093 cat confdefs.h >>conftest.$ac_ext
33094 cat >>conftest.$ac_ext <<_ACEOF
33095 /* end confdefs.h. */
33097 #ifdef HAVE_DB_185_H
33098 # include <db_185.h>
33103 #ifndef DB_VERSION_MAJOR
33104 # define DB_VERSION_MAJOR 1
33108 #define NULL ((void*)0)
33115 #if DB_VERSION_MAJOR > 1
33118 int major, minor, patch;
33120 version = db_version( &major, &minor, &patch );
33122 if( major != DB_VERSION_MAJOR ||
33123 minor < DB_VERSION_MINOR )
33125 printf("Berkeley DB version mismatch\n"
33126 "\theader: %s\n\tlibrary: %s\n",
33127 DB_VERSION_STRING, version);
33133 #if DB_VERSION_MAJOR > 2
33134 db_env_create( NULL, 0 );
33135 #elif DB_VERSION_MAJOR > 1
33136 db_appexit( NULL );
33138 (void) dbopen( NULL, 0, 0, 0, NULL);
33145 rm -f conftest.$ac_objext conftest$ac_exeext
33146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33147 (eval $ac_link) 2>conftest.er1
33149 grep -v '^ *+' conftest.er1 >conftest.err
33151 cat conftest.err >&5
33152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153 (exit $ac_status); } &&
33154 { ac_try='test -z "$ac_c_werror_flag"
33155 || test ! -s conftest.err'
33156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33157 (eval $ac_try) 2>&5
33159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160 (exit $ac_status); }; } &&
33161 { ac_try='test -s conftest$ac_exeext'
33162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33163 (eval $ac_try) 2>&5
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); }; }; then
33169 echo "$as_me: failed program was:" >&5
33170 sed 's/^/| /' conftest.$ac_ext >&5
33174 rm -f conftest.err conftest.$ac_objext \
33175 conftest$ac_exeext conftest.$ac_ext
33180 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33181 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33183 if test $ol_cv_db_db_41 = yes ; then
33184 ol_cv_lib_db=-ldb-41
33188 if test $ol_cv_lib_db = no ; then
33189 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33190 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33191 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33192 echo $ECHO_N "(cached) $ECHO_C" >&6
33197 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33199 cat >conftest.$ac_ext <<_ACEOF
33202 cat confdefs.h >>conftest.$ac_ext
33203 cat >>conftest.$ac_ext <<_ACEOF
33204 /* end confdefs.h. */
33206 #ifdef HAVE_DB_185_H
33207 # include <db_185.h>
33212 #ifndef DB_VERSION_MAJOR
33213 # define DB_VERSION_MAJOR 1
33217 #define NULL ((void*)0)
33224 #if DB_VERSION_MAJOR > 1
33227 int major, minor, patch;
33229 version = db_version( &major, &minor, &patch );
33231 if( major != DB_VERSION_MAJOR ||
33232 minor < DB_VERSION_MINOR )
33234 printf("Berkeley DB version mismatch\n"
33235 "\theader: %s\n\tlibrary: %s\n",
33236 DB_VERSION_STRING, version);
33242 #if DB_VERSION_MAJOR > 2
33243 db_env_create( NULL, 0 );
33244 #elif DB_VERSION_MAJOR > 1
33245 db_appexit( NULL );
33247 (void) dbopen( NULL, 0, 0, 0, NULL);
33254 rm -f conftest.$ac_objext conftest$ac_exeext
33255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33256 (eval $ac_link) 2>conftest.er1
33258 grep -v '^ *+' conftest.er1 >conftest.err
33260 cat conftest.err >&5
33261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262 (exit $ac_status); } &&
33263 { ac_try='test -z "$ac_c_werror_flag"
33264 || test ! -s conftest.err'
33265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33266 (eval $ac_try) 2>&5
33268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33269 (exit $ac_status); }; } &&
33270 { ac_try='test -s conftest$ac_exeext'
33271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33272 (eval $ac_try) 2>&5
33274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33275 (exit $ac_status); }; }; then
33276 ol_cv_db_db_4_dot_1=yes
33278 echo "$as_me: failed program was:" >&5
33279 sed 's/^/| /' conftest.$ac_ext >&5
33281 ol_cv_db_db_4_dot_1=no
33283 rm -f conftest.err conftest.$ac_objext \
33284 conftest$ac_exeext conftest.$ac_ext
33289 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33290 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33292 if test $ol_cv_db_db_4_dot_1 = yes ; then
33293 ol_cv_lib_db=-ldb-4.1
33297 if test $ol_cv_lib_db = no ; then
33298 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33299 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33300 if test "${ol_cv_db_db_4_1+set}" = set; then
33301 echo $ECHO_N "(cached) $ECHO_C" >&6
33306 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33308 cat >conftest.$ac_ext <<_ACEOF
33311 cat confdefs.h >>conftest.$ac_ext
33312 cat >>conftest.$ac_ext <<_ACEOF
33313 /* end confdefs.h. */
33315 #ifdef HAVE_DB_185_H
33316 # include <db_185.h>
33321 #ifndef DB_VERSION_MAJOR
33322 # define DB_VERSION_MAJOR 1
33326 #define NULL ((void*)0)
33333 #if DB_VERSION_MAJOR > 1
33336 int major, minor, patch;
33338 version = db_version( &major, &minor, &patch );
33340 if( major != DB_VERSION_MAJOR ||
33341 minor < DB_VERSION_MINOR )
33343 printf("Berkeley DB version mismatch\n"
33344 "\theader: %s\n\tlibrary: %s\n",
33345 DB_VERSION_STRING, version);
33351 #if DB_VERSION_MAJOR > 2
33352 db_env_create( NULL, 0 );
33353 #elif DB_VERSION_MAJOR > 1
33354 db_appexit( NULL );
33356 (void) dbopen( NULL, 0, 0, 0, NULL);
33363 rm -f conftest.$ac_objext conftest$ac_exeext
33364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33365 (eval $ac_link) 2>conftest.er1
33367 grep -v '^ *+' conftest.er1 >conftest.err
33369 cat conftest.err >&5
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); } &&
33372 { ac_try='test -z "$ac_c_werror_flag"
33373 || test ! -s conftest.err'
33374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33375 (eval $ac_try) 2>&5
33377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378 (exit $ac_status); }; } &&
33379 { ac_try='test -s conftest$ac_exeext'
33380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33381 (eval $ac_try) 2>&5
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); }; }; then
33385 ol_cv_db_db_4_1=yes
33387 echo "$as_me: failed program was:" >&5
33388 sed 's/^/| /' conftest.$ac_ext >&5
33392 rm -f conftest.err conftest.$ac_objext \
33393 conftest$ac_exeext conftest.$ac_ext
33398 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33399 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33401 if test $ol_cv_db_db_4_1 = yes ; then
33402 ol_cv_lib_db=-ldb-4-1
33407 if test $ol_cv_lib_db = no ; then
33408 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33409 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33410 if test "${ol_cv_db_db_4+set}" = set; then
33411 echo $ECHO_N "(cached) $ECHO_C" >&6
33416 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33418 cat >conftest.$ac_ext <<_ACEOF
33421 cat confdefs.h >>conftest.$ac_ext
33422 cat >>conftest.$ac_ext <<_ACEOF
33423 /* end confdefs.h. */
33425 #ifdef HAVE_DB_185_H
33426 # include <db_185.h>
33431 #ifndef DB_VERSION_MAJOR
33432 # define DB_VERSION_MAJOR 1
33436 #define NULL ((void*)0)
33443 #if DB_VERSION_MAJOR > 1
33446 int major, minor, patch;
33448 version = db_version( &major, &minor, &patch );
33450 if( major != DB_VERSION_MAJOR ||
33451 minor < DB_VERSION_MINOR )
33453 printf("Berkeley DB version mismatch\n"
33454 "\theader: %s\n\tlibrary: %s\n",
33455 DB_VERSION_STRING, version);
33461 #if DB_VERSION_MAJOR > 2
33462 db_env_create( NULL, 0 );
33463 #elif DB_VERSION_MAJOR > 1
33464 db_appexit( NULL );
33466 (void) dbopen( NULL, 0, 0, 0, NULL);
33473 rm -f conftest.$ac_objext conftest$ac_exeext
33474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33475 (eval $ac_link) 2>conftest.er1
33477 grep -v '^ *+' conftest.er1 >conftest.err
33479 cat conftest.err >&5
33480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481 (exit $ac_status); } &&
33482 { ac_try='test -z "$ac_c_werror_flag"
33483 || test ! -s conftest.err'
33484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33485 (eval $ac_try) 2>&5
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488 (exit $ac_status); }; } &&
33489 { ac_try='test -s conftest$ac_exeext'
33490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33491 (eval $ac_try) 2>&5
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); }; }; then
33497 echo "$as_me: failed program was:" >&5
33498 sed 's/^/| /' conftest.$ac_ext >&5
33502 rm -f conftest.err conftest.$ac_objext \
33503 conftest$ac_exeext conftest.$ac_ext
33508 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33509 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33511 if test $ol_cv_db_db_4 = yes ; then
33512 ol_cv_lib_db=-ldb-4
33516 if test $ol_cv_lib_db = no ; then
33517 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33518 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33519 if test "${ol_cv_db_db4+set}" = set; then
33520 echo $ECHO_N "(cached) $ECHO_C" >&6
33525 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33527 cat >conftest.$ac_ext <<_ACEOF
33530 cat confdefs.h >>conftest.$ac_ext
33531 cat >>conftest.$ac_ext <<_ACEOF
33532 /* end confdefs.h. */
33534 #ifdef HAVE_DB_185_H
33535 # include <db_185.h>
33540 #ifndef DB_VERSION_MAJOR
33541 # define DB_VERSION_MAJOR 1
33545 #define NULL ((void*)0)
33552 #if DB_VERSION_MAJOR > 1
33555 int major, minor, patch;
33557 version = db_version( &major, &minor, &patch );
33559 if( major != DB_VERSION_MAJOR ||
33560 minor < DB_VERSION_MINOR )
33562 printf("Berkeley DB version mismatch\n"
33563 "\theader: %s\n\tlibrary: %s\n",
33564 DB_VERSION_STRING, version);
33570 #if DB_VERSION_MAJOR > 2
33571 db_env_create( NULL, 0 );
33572 #elif DB_VERSION_MAJOR > 1
33573 db_appexit( NULL );
33575 (void) dbopen( NULL, 0, 0, 0, NULL);
33582 rm -f conftest.$ac_objext conftest$ac_exeext
33583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33584 (eval $ac_link) 2>conftest.er1
33586 grep -v '^ *+' conftest.er1 >conftest.err
33588 cat conftest.err >&5
33589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590 (exit $ac_status); } &&
33591 { ac_try='test -z "$ac_c_werror_flag"
33592 || test ! -s conftest.err'
33593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33594 (eval $ac_try) 2>&5
33596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 (exit $ac_status); }; } &&
33598 { ac_try='test -s conftest$ac_exeext'
33599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33600 (eval $ac_try) 2>&5
33602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603 (exit $ac_status); }; }; then
33606 echo "$as_me: failed program was:" >&5
33607 sed 's/^/| /' conftest.$ac_ext >&5
33611 rm -f conftest.err conftest.$ac_objext \
33612 conftest$ac_exeext conftest.$ac_ext
33617 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33618 echo "${ECHO_T}$ol_cv_db_db4" >&6
33620 if test $ol_cv_db_db4 = yes ; then
33625 if test $ol_cv_lib_db = no ; then
33626 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33627 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33628 if test "${ol_cv_db_db+set}" = set; then
33629 echo $ECHO_N "(cached) $ECHO_C" >&6
33634 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33636 cat >conftest.$ac_ext <<_ACEOF
33639 cat confdefs.h >>conftest.$ac_ext
33640 cat >>conftest.$ac_ext <<_ACEOF
33641 /* end confdefs.h. */
33643 #ifdef HAVE_DB_185_H
33644 # include <db_185.h>
33649 #ifndef DB_VERSION_MAJOR
33650 # define DB_VERSION_MAJOR 1
33654 #define NULL ((void*)0)
33661 #if DB_VERSION_MAJOR > 1
33664 int major, minor, patch;
33666 version = db_version( &major, &minor, &patch );
33668 if( major != DB_VERSION_MAJOR ||
33669 minor < DB_VERSION_MINOR )
33671 printf("Berkeley DB version mismatch\n"
33672 "\theader: %s\n\tlibrary: %s\n",
33673 DB_VERSION_STRING, version);
33679 #if DB_VERSION_MAJOR > 2
33680 db_env_create( NULL, 0 );
33681 #elif DB_VERSION_MAJOR > 1
33682 db_appexit( NULL );
33684 (void) dbopen( NULL, 0, 0, 0, NULL);
33691 rm -f conftest.$ac_objext conftest$ac_exeext
33692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33693 (eval $ac_link) 2>conftest.er1
33695 grep -v '^ *+' conftest.er1 >conftest.err
33697 cat conftest.err >&5
33698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699 (exit $ac_status); } &&
33700 { ac_try='test -z "$ac_c_werror_flag"
33701 || test ! -s conftest.err'
33702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33703 (eval $ac_try) 2>&5
33705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33706 (exit $ac_status); }; } &&
33707 { ac_try='test -s conftest$ac_exeext'
33708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33709 (eval $ac_try) 2>&5
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); }; }; then
33715 echo "$as_me: failed program was:" >&5
33716 sed 's/^/| /' conftest.$ac_ext >&5
33720 rm -f conftest.err conftest.$ac_objext \
33721 conftest$ac_exeext conftest.$ac_ext
33726 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33727 echo "${ECHO_T}$ol_cv_db_db" >&6
33729 if test $ol_cv_db_db = yes ; then
33735 elif test $ol_cv_bdb_major = 3 ; then
33736 if test $ol_cv_lib_db = no ; then
33737 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33738 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33739 if test "${ol_cv_db_db3+set}" = set; then
33740 echo $ECHO_N "(cached) $ECHO_C" >&6
33745 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33747 cat >conftest.$ac_ext <<_ACEOF
33750 cat confdefs.h >>conftest.$ac_ext
33751 cat >>conftest.$ac_ext <<_ACEOF
33752 /* end confdefs.h. */
33754 #ifdef HAVE_DB_185_H
33755 # include <db_185.h>
33760 #ifndef DB_VERSION_MAJOR
33761 # define DB_VERSION_MAJOR 1
33765 #define NULL ((void*)0)
33772 #if DB_VERSION_MAJOR > 1
33775 int major, minor, patch;
33777 version = db_version( &major, &minor, &patch );
33779 if( major != DB_VERSION_MAJOR ||
33780 minor < DB_VERSION_MINOR )
33782 printf("Berkeley DB version mismatch\n"
33783 "\theader: %s\n\tlibrary: %s\n",
33784 DB_VERSION_STRING, version);
33790 #if DB_VERSION_MAJOR > 2
33791 db_env_create( NULL, 0 );
33792 #elif DB_VERSION_MAJOR > 1
33793 db_appexit( NULL );
33795 (void) dbopen( NULL, 0, 0, 0, NULL);
33802 rm -f conftest.$ac_objext conftest$ac_exeext
33803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33804 (eval $ac_link) 2>conftest.er1
33806 grep -v '^ *+' conftest.er1 >conftest.err
33808 cat conftest.err >&5
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); } &&
33811 { ac_try='test -z "$ac_c_werror_flag"
33812 || test ! -s conftest.err'
33813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33814 (eval $ac_try) 2>&5
33816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33817 (exit $ac_status); }; } &&
33818 { ac_try='test -s conftest$ac_exeext'
33819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33820 (eval $ac_try) 2>&5
33822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823 (exit $ac_status); }; }; then
33826 echo "$as_me: failed program was:" >&5
33827 sed 's/^/| /' conftest.$ac_ext >&5
33831 rm -f conftest.err conftest.$ac_objext \
33832 conftest$ac_exeext conftest.$ac_ext
33837 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33838 echo "${ECHO_T}$ol_cv_db_db3" >&6
33840 if test $ol_cv_db_db3 = yes ; then
33845 if test $ol_cv_lib_db = no ; then
33846 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33847 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33848 if test "${ol_cv_db_db_3+set}" = set; then
33849 echo $ECHO_N "(cached) $ECHO_C" >&6
33854 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33856 cat >conftest.$ac_ext <<_ACEOF
33859 cat confdefs.h >>conftest.$ac_ext
33860 cat >>conftest.$ac_ext <<_ACEOF
33861 /* end confdefs.h. */
33863 #ifdef HAVE_DB_185_H
33864 # include <db_185.h>
33869 #ifndef DB_VERSION_MAJOR
33870 # define DB_VERSION_MAJOR 1
33874 #define NULL ((void*)0)
33881 #if DB_VERSION_MAJOR > 1
33884 int major, minor, patch;
33886 version = db_version( &major, &minor, &patch );
33888 if( major != DB_VERSION_MAJOR ||
33889 minor < DB_VERSION_MINOR )
33891 printf("Berkeley DB version mismatch\n"
33892 "\theader: %s\n\tlibrary: %s\n",
33893 DB_VERSION_STRING, version);
33899 #if DB_VERSION_MAJOR > 2
33900 db_env_create( NULL, 0 );
33901 #elif DB_VERSION_MAJOR > 1
33902 db_appexit( NULL );
33904 (void) dbopen( NULL, 0, 0, 0, NULL);
33911 rm -f conftest.$ac_objext conftest$ac_exeext
33912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33913 (eval $ac_link) 2>conftest.er1
33915 grep -v '^ *+' conftest.er1 >conftest.err
33917 cat conftest.err >&5
33918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 (exit $ac_status); } &&
33920 { ac_try='test -z "$ac_c_werror_flag"
33921 || test ! -s conftest.err'
33922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33923 (eval $ac_try) 2>&5
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; } &&
33927 { ac_try='test -s conftest$ac_exeext'
33928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33929 (eval $ac_try) 2>&5
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; }; then
33935 echo "$as_me: failed program was:" >&5
33936 sed 's/^/| /' conftest.$ac_ext >&5
33940 rm -f conftest.err conftest.$ac_objext \
33941 conftest$ac_exeext conftest.$ac_ext
33946 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33947 echo "${ECHO_T}$ol_cv_db_db_3" >&6
33949 if test $ol_cv_db_db_3 = yes ; then
33950 ol_cv_lib_db=-ldb-3
33955 elif test $ol_cv_bdb_major = 2 ; then
33956 if test $ol_cv_lib_db = no ; then
33957 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33958 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
33959 if test "${ol_cv_db_db2+set}" = set; then
33960 echo $ECHO_N "(cached) $ECHO_C" >&6
33965 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33967 cat >conftest.$ac_ext <<_ACEOF
33970 cat confdefs.h >>conftest.$ac_ext
33971 cat >>conftest.$ac_ext <<_ACEOF
33972 /* end confdefs.h. */
33974 #ifdef HAVE_DB_185_H
33975 # include <db_185.h>
33980 #ifndef DB_VERSION_MAJOR
33981 # define DB_VERSION_MAJOR 1
33985 #define NULL ((void*)0)
33992 #if DB_VERSION_MAJOR > 1
33995 int major, minor, patch;
33997 version = db_version( &major, &minor, &patch );
33999 if( major != DB_VERSION_MAJOR ||
34000 minor < DB_VERSION_MINOR )
34002 printf("Berkeley DB version mismatch\n"
34003 "\theader: %s\n\tlibrary: %s\n",
34004 DB_VERSION_STRING, version);
34010 #if DB_VERSION_MAJOR > 2
34011 db_env_create( NULL, 0 );
34012 #elif DB_VERSION_MAJOR > 1
34013 db_appexit( NULL );
34015 (void) dbopen( NULL, 0, 0, 0, NULL);
34022 rm -f conftest.$ac_objext conftest$ac_exeext
34023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34024 (eval $ac_link) 2>conftest.er1
34026 grep -v '^ *+' conftest.er1 >conftest.err
34028 cat conftest.err >&5
34029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030 (exit $ac_status); } &&
34031 { ac_try='test -z "$ac_c_werror_flag"
34032 || test ! -s conftest.err'
34033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34034 (eval $ac_try) 2>&5
34036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037 (exit $ac_status); }; } &&
34038 { ac_try='test -s conftest$ac_exeext'
34039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34040 (eval $ac_try) 2>&5
34042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043 (exit $ac_status); }; }; then
34046 echo "$as_me: failed program was:" >&5
34047 sed 's/^/| /' conftest.$ac_ext >&5
34051 rm -f conftest.err conftest.$ac_objext \
34052 conftest$ac_exeext conftest.$ac_ext
34057 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34058 echo "${ECHO_T}$ol_cv_db_db2" >&6
34060 if test $ol_cv_db_db2 = yes ; then
34065 if test $ol_cv_lib_db = no ; then
34066 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34067 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34068 if test "${ol_cv_db_db_2+set}" = set; then
34069 echo $ECHO_N "(cached) $ECHO_C" >&6
34074 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34076 cat >conftest.$ac_ext <<_ACEOF
34079 cat confdefs.h >>conftest.$ac_ext
34080 cat >>conftest.$ac_ext <<_ACEOF
34081 /* end confdefs.h. */
34083 #ifdef HAVE_DB_185_H
34084 # include <db_185.h>
34089 #ifndef DB_VERSION_MAJOR
34090 # define DB_VERSION_MAJOR 1
34094 #define NULL ((void*)0)
34101 #if DB_VERSION_MAJOR > 1
34104 int major, minor, patch;
34106 version = db_version( &major, &minor, &patch );
34108 if( major != DB_VERSION_MAJOR ||
34109 minor < DB_VERSION_MINOR )
34111 printf("Berkeley DB version mismatch\n"
34112 "\theader: %s\n\tlibrary: %s\n",
34113 DB_VERSION_STRING, version);
34119 #if DB_VERSION_MAJOR > 2
34120 db_env_create( NULL, 0 );
34121 #elif DB_VERSION_MAJOR > 1
34122 db_appexit( NULL );
34124 (void) dbopen( NULL, 0, 0, 0, NULL);
34131 rm -f conftest.$ac_objext conftest$ac_exeext
34132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34133 (eval $ac_link) 2>conftest.er1
34135 grep -v '^ *+' conftest.er1 >conftest.err
34137 cat conftest.err >&5
34138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34139 (exit $ac_status); } &&
34140 { ac_try='test -z "$ac_c_werror_flag"
34141 || test ! -s conftest.err'
34142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34143 (eval $ac_try) 2>&5
34145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146 (exit $ac_status); }; } &&
34147 { ac_try='test -s conftest$ac_exeext'
34148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34149 (eval $ac_try) 2>&5
34151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152 (exit $ac_status); }; }; then
34155 echo "$as_me: failed program was:" >&5
34156 sed 's/^/| /' conftest.$ac_ext >&5
34160 rm -f conftest.err conftest.$ac_objext \
34161 conftest$ac_exeext conftest.$ac_ext
34166 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34167 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34169 if test $ol_cv_db_db_2 = yes ; then
34170 ol_cv_lib_db=-ldb-2
34175 elif test $ol_cv_bdb_major = 1 ; then
34176 if test $ol_cv_lib_db = no ; then
34177 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34178 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34179 if test "${ol_cv_db_db1+set}" = set; then
34180 echo $ECHO_N "(cached) $ECHO_C" >&6
34185 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34187 cat >conftest.$ac_ext <<_ACEOF
34190 cat confdefs.h >>conftest.$ac_ext
34191 cat >>conftest.$ac_ext <<_ACEOF
34192 /* end confdefs.h. */
34194 #ifdef HAVE_DB_185_H
34195 # include <db_185.h>
34200 #ifndef DB_VERSION_MAJOR
34201 # define DB_VERSION_MAJOR 1
34205 #define NULL ((void*)0)
34212 #if DB_VERSION_MAJOR > 1
34215 int major, minor, patch;
34217 version = db_version( &major, &minor, &patch );
34219 if( major != DB_VERSION_MAJOR ||
34220 minor < DB_VERSION_MINOR )
34222 printf("Berkeley DB version mismatch\n"
34223 "\theader: %s\n\tlibrary: %s\n",
34224 DB_VERSION_STRING, version);
34230 #if DB_VERSION_MAJOR > 2
34231 db_env_create( NULL, 0 );
34232 #elif DB_VERSION_MAJOR > 1
34233 db_appexit( NULL );
34235 (void) dbopen( NULL, 0, 0, 0, NULL);
34242 rm -f conftest.$ac_objext conftest$ac_exeext
34243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34244 (eval $ac_link) 2>conftest.er1
34246 grep -v '^ *+' conftest.er1 >conftest.err
34248 cat conftest.err >&5
34249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 (exit $ac_status); } &&
34251 { ac_try='test -z "$ac_c_werror_flag"
34252 || test ! -s conftest.err'
34253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34254 (eval $ac_try) 2>&5
34256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257 (exit $ac_status); }; } &&
34258 { ac_try='test -s conftest$ac_exeext'
34259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34260 (eval $ac_try) 2>&5
34262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263 (exit $ac_status); }; }; then
34266 echo "$as_me: failed program was:" >&5
34267 sed 's/^/| /' conftest.$ac_ext >&5
34271 rm -f conftest.err conftest.$ac_objext \
34272 conftest$ac_exeext conftest.$ac_ext
34277 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34278 echo "${ECHO_T}$ol_cv_db_db1" >&6
34280 if test $ol_cv_db_db1 = yes ; then
34285 if test $ol_cv_lib_db = no ; then
34286 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34287 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34288 if test "${ol_cv_db_db_1+set}" = set; then
34289 echo $ECHO_N "(cached) $ECHO_C" >&6
34294 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34296 cat >conftest.$ac_ext <<_ACEOF
34299 cat confdefs.h >>conftest.$ac_ext
34300 cat >>conftest.$ac_ext <<_ACEOF
34301 /* end confdefs.h. */
34303 #ifdef HAVE_DB_185_H
34304 # include <db_185.h>
34309 #ifndef DB_VERSION_MAJOR
34310 # define DB_VERSION_MAJOR 1
34314 #define NULL ((void*)0)
34321 #if DB_VERSION_MAJOR > 1
34324 int major, minor, patch;
34326 version = db_version( &major, &minor, &patch );
34328 if( major != DB_VERSION_MAJOR ||
34329 minor < DB_VERSION_MINOR )
34331 printf("Berkeley DB version mismatch\n"
34332 "\theader: %s\n\tlibrary: %s\n",
34333 DB_VERSION_STRING, version);
34339 #if DB_VERSION_MAJOR > 2
34340 db_env_create( NULL, 0 );
34341 #elif DB_VERSION_MAJOR > 1
34342 db_appexit( NULL );
34344 (void) dbopen( NULL, 0, 0, 0, NULL);
34351 rm -f conftest.$ac_objext conftest$ac_exeext
34352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34353 (eval $ac_link) 2>conftest.er1
34355 grep -v '^ *+' conftest.er1 >conftest.err
34357 cat conftest.err >&5
34358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359 (exit $ac_status); } &&
34360 { ac_try='test -z "$ac_c_werror_flag"
34361 || test ! -s conftest.err'
34362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34363 (eval $ac_try) 2>&5
34365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34366 (exit $ac_status); }; } &&
34367 { ac_try='test -s conftest$ac_exeext'
34368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34369 (eval $ac_try) 2>&5
34371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372 (exit $ac_status); }; }; then
34375 echo "$as_me: failed program was:" >&5
34376 sed 's/^/| /' conftest.$ac_ext >&5
34380 rm -f conftest.err conftest.$ac_objext \
34381 conftest$ac_exeext conftest.$ac_ext
34386 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34387 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34389 if test $ol_cv_db_db_1 = yes ; then
34390 ol_cv_lib_db=-ldb-1
34395 if test $ol_cv_lib_db = no ; then
34396 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34397 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34398 if test "${ol_cv_db_none+set}" = set; then
34399 echo $ECHO_N "(cached) $ECHO_C" >&6
34404 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34406 cat >conftest.$ac_ext <<_ACEOF
34409 cat confdefs.h >>conftest.$ac_ext
34410 cat >>conftest.$ac_ext <<_ACEOF
34411 /* end confdefs.h. */
34413 #ifdef HAVE_DB_185_H
34414 # include <db_185.h>
34419 #ifndef DB_VERSION_MAJOR
34420 # define DB_VERSION_MAJOR 1
34424 #define NULL ((void*)0)
34431 #if DB_VERSION_MAJOR > 1
34434 int major, minor, patch;
34436 version = db_version( &major, &minor, &patch );
34438 if( major != DB_VERSION_MAJOR ||
34439 minor < DB_VERSION_MINOR )
34441 printf("Berkeley DB version mismatch\n"
34442 "\theader: %s\n\tlibrary: %s\n",
34443 DB_VERSION_STRING, version);
34449 #if DB_VERSION_MAJOR > 2
34450 db_env_create( NULL, 0 );
34451 #elif DB_VERSION_MAJOR > 1
34452 db_appexit( NULL );
34454 (void) dbopen( NULL, 0, 0, 0, NULL);
34461 rm -f conftest.$ac_objext conftest$ac_exeext
34462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34463 (eval $ac_link) 2>conftest.er1
34465 grep -v '^ *+' conftest.er1 >conftest.err
34467 cat conftest.err >&5
34468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469 (exit $ac_status); } &&
34470 { ac_try='test -z "$ac_c_werror_flag"
34471 || test ! -s conftest.err'
34472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34473 (eval $ac_try) 2>&5
34475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34476 (exit $ac_status); }; } &&
34477 { ac_try='test -s conftest$ac_exeext'
34478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34479 (eval $ac_try) 2>&5
34481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482 (exit $ac_status); }; }; then
34485 echo "$as_me: failed program was:" >&5
34486 sed 's/^/| /' conftest.$ac_ext >&5
34490 rm -f conftest.err conftest.$ac_objext \
34491 conftest$ac_exeext conftest.$ac_ext
34496 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34497 echo "${ECHO_T}$ol_cv_db_none" >&6
34499 if test $ol_cv_db_none = yes ; then
34505 if test "$ol_cv_lib_db" != no ; then
34506 ol_cv_berkeley_db=yes
34507 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34508 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34509 if test "${ol_cv_berkeley_db_version+set}" = set; then
34510 echo $ECHO_N "(cached) $ECHO_C" >&6
34514 LIBS="$LTHREAD_LIBS $LIBS"
34515 if test $ol_cv_lib_db != yes ; then
34516 LIBS="$ol_cv_lib_db $LIBS"
34519 if test "$cross_compiling" = yes; then
34520 ol_cv_berkeley_db_version=cross
34522 cat >conftest.$ac_ext <<_ACEOF
34525 cat confdefs.h >>conftest.$ac_ext
34526 cat >>conftest.$ac_ext <<_ACEOF
34527 /* end confdefs.h. */
34529 #ifdef HAVE_DB_185_H
34534 #ifndef DB_VERSION_MAJOR
34535 # define DB_VERSION_MAJOR 1
34538 #define NULL ((void *)0)
34542 #if DB_VERSION_MAJOR > 1
34544 int major, minor, patch;
34546 version = db_version( &major, &minor, &patch );
34548 if( major != DB_VERSION_MAJOR ||
34549 minor != DB_VERSION_MINOR ||
34550 patch != DB_VERSION_PATCH )
34552 printf("Berkeley DB version mismatch\n"
34553 "\theader: %s\n\tlibrary: %s\n",
34554 DB_VERSION_STRING, version);
34562 rm -f conftest$ac_exeext
34563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34564 (eval $ac_link) 2>&5
34566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34569 (eval $ac_try) 2>&5
34571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34572 (exit $ac_status); }; }; then
34573 ol_cv_berkeley_db_version=yes
34575 echo "$as_me: program exited with status $ac_status" >&5
34576 echo "$as_me: failed program was:" >&5
34577 sed 's/^/| /' conftest.$ac_ext >&5
34579 ( exit $ac_status )
34580 ol_cv_berkeley_db_version=no
34582 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34588 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34589 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34591 if test $ol_cv_berkeley_db_version = no ; then
34592 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34593 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34594 { (exit 1); exit 1; }; }
34597 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34598 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34599 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34600 echo $ECHO_N "(cached) $ECHO_C" >&6
34604 LIBS="$LTHREAD_LIBS $LIBS"
34605 if test $ol_cv_lib_db != yes ; then
34606 LIBS="$ol_cv_lib_db $LIBS"
34609 if test "$cross_compiling" = yes; then
34610 ol_cv_berkeley_db_thread=cross
34612 cat >conftest.$ac_ext <<_ACEOF
34615 cat confdefs.h >>conftest.$ac_ext
34616 cat >>conftest.$ac_ext <<_ACEOF
34617 /* end confdefs.h. */
34619 #ifdef HAVE_DB_185_H
34625 #define NULL ((void *)0)
34630 u_int32_t flags = DB_CREATE |
34636 #if DB_VERSION_MAJOR > 2
34637 DB_ENV *env = NULL;
34639 rc = db_env_create( &env, 0 );
34641 flags |= DB_INIT_MPOOL;
34642 #ifdef DB_MPOOL_PRIVATE
34643 flags |= DB_MPOOL_PRIVATE;
34647 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34651 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34652 rc = env->open( env, NULL, flags, 0 );
34654 rc = env->open( env, NULL, NULL, flags, 0 );
34658 rc = env->close( env, 0 );
34662 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34668 memset( &env, '\0', sizeof(env) );
34670 rc = db_appinit( NULL, NULL, &env, flags );
34673 db_appexit( &env );
34676 unlink("__db_mpool.share");
34677 unlink("__db_lock.share");
34683 rm -f conftest$ac_exeext
34684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34685 (eval $ac_link) 2>&5
34687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34690 (eval $ac_try) 2>&5
34692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34693 (exit $ac_status); }; }; then
34694 ol_cv_berkeley_db_thread=yes
34696 echo "$as_me: program exited with status $ac_status" >&5
34697 echo "$as_me: failed program was:" >&5
34698 sed 's/^/| /' conftest.$ac_ext >&5
34700 ( exit $ac_status )
34701 ol_cv_berkeley_db_thread=no
34703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34709 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34710 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34712 if test $ol_cv_berkeley_db_thread != no ; then
34714 cat >>confdefs.h <<\_ACEOF
34715 #define HAVE_BERKELEY_DB_THREAD 1
34725 if test $ol_cv_berkeley_db != no ; then
34727 cat >>confdefs.h <<\_ACEOF
34728 #define HAVE_BERKELEY_DB 1
34732 ol_link_ldbm=berkeley
34733 ol_enable_ldbm_api=berkeley
34735 if test $ol_enable_ldbm_type = hash ; then
34737 cat >>confdefs.h <<\_ACEOF
34738 #define LDBM_USE_DBHASH 1
34743 cat >>confdefs.h <<\_ACEOF
34744 #define LDBM_USE_DBBTREE 1
34749 if test $ol_cv_lib_db != yes ; then
34750 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34756 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34757 if test $ol_link_ldbm != berkeley ; then
34758 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34759 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34760 { (exit 1); exit 1; }; }
34762 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34763 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34764 if test "${ol_cv_bdb_compat+set}" = set; then
34765 echo $ECHO_N "(cached) $ECHO_C" >&6
34768 cat >conftest.$ac_ext <<_ACEOF
34771 cat confdefs.h >>conftest.$ac_ext
34772 cat >>conftest.$ac_ext <<_ACEOF
34773 /* end confdefs.h. */
34777 /* this check could be improved */
34778 #ifndef DB_VERSION_MAJOR
34779 # define DB_VERSION_MAJOR 1
34781 #ifndef DB_VERSION_MINOR
34782 # define DB_VERSION_MINOR 0
34785 /* require 4.2 or later */
34786 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34787 __db_version_compat
34791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34792 $EGREP "__db_version_compat" >/dev/null 2>&1; then
34793 ol_cv_bdb_compat=yes
34795 ol_cv_bdb_compat=no
34800 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34801 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34804 if test $ol_cv_bdb_compat != yes ; then
34805 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34806 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34807 { (exit 1); exit 1; }; }
34812 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34813 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34814 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34815 ol_enable_ldbm_api=none
34818 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34819 echo "$as_me:$LINENO: checking for MDBM library" >&5
34820 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34821 if test "${ol_cv_lib_mdbm+set}" = set; then
34822 echo $ECHO_N "(cached) $ECHO_C" >&6
34825 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34826 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34827 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34828 echo $ECHO_N "(cached) $ECHO_C" >&6
34830 cat >conftest.$ac_ext <<_ACEOF
34833 cat confdefs.h >>conftest.$ac_ext
34834 cat >>conftest.$ac_ext <<_ACEOF
34835 /* end confdefs.h. */
34836 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34838 #define mdbm_set_chain innocuous_mdbm_set_chain
34840 /* System header to define __stub macros and hopefully few prototypes,
34841 which can conflict with char mdbm_set_chain (); below.
34842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34843 <limits.h> exists even on freestanding compilers. */
34846 # include <limits.h>
34848 # include <assert.h>
34851 #undef mdbm_set_chain
34853 /* Override any gcc2 internal prototype to avoid an error. */
34858 /* We use char because int might match the return type of a gcc2
34859 builtin and then its argument prototype would still apply. */
34860 char mdbm_set_chain ();
34861 /* The GNU C library defines this for functions which it implements
34862 to always fail with ENOSYS. Some functions are actually named
34863 something starting with __ and the normal name is an alias. */
34864 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34867 char (*f) () = mdbm_set_chain;
34876 return f != mdbm_set_chain;
34881 rm -f conftest.$ac_objext conftest$ac_exeext
34882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34883 (eval $ac_link) 2>conftest.er1
34885 grep -v '^ *+' conftest.er1 >conftest.err
34887 cat conftest.err >&5
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); } &&
34890 { ac_try='test -z "$ac_c_werror_flag"
34891 || test ! -s conftest.err'
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); }; } &&
34897 { ac_try='test -s conftest$ac_exeext'
34898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34899 (eval $ac_try) 2>&5
34901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902 (exit $ac_status); }; }; then
34903 ac_cv_func_mdbm_set_chain=yes
34905 echo "$as_me: failed program was:" >&5
34906 sed 's/^/| /' conftest.$ac_ext >&5
34908 ac_cv_func_mdbm_set_chain=no
34910 rm -f conftest.err conftest.$ac_objext \
34911 conftest$ac_exeext conftest.$ac_ext
34913 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34914 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34915 if test $ac_cv_func_mdbm_set_chain = yes; then
34919 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34920 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34921 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34922 echo $ECHO_N "(cached) $ECHO_C" >&6
34924 ac_check_lib_save_LIBS=$LIBS
34925 LIBS="-lmdbm $LIBS"
34926 cat >conftest.$ac_ext <<_ACEOF
34929 cat confdefs.h >>conftest.$ac_ext
34930 cat >>conftest.$ac_ext <<_ACEOF
34931 /* end confdefs.h. */
34933 /* Override any gcc2 internal prototype to avoid an error. */
34937 /* We use char because int might match the return type of a gcc2
34938 builtin and then its argument prototype would still apply. */
34939 char mdbm_set_chain ();
34948 rm -f conftest.$ac_objext conftest$ac_exeext
34949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34950 (eval $ac_link) 2>conftest.er1
34952 grep -v '^ *+' conftest.er1 >conftest.err
34954 cat conftest.err >&5
34955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34956 (exit $ac_status); } &&
34957 { ac_try='test -z "$ac_c_werror_flag"
34958 || test ! -s conftest.err'
34959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34960 (eval $ac_try) 2>&5
34962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963 (exit $ac_status); }; } &&
34964 { ac_try='test -s conftest$ac_exeext'
34965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34966 (eval $ac_try) 2>&5
34968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969 (exit $ac_status); }; }; then
34970 ac_cv_lib_mdbm_mdbm_set_chain=yes
34972 echo "$as_me: failed program was:" >&5
34973 sed 's/^/| /' conftest.$ac_ext >&5
34975 ac_cv_lib_mdbm_mdbm_set_chain=no
34977 rm -f conftest.err conftest.$ac_objext \
34978 conftest$ac_exeext conftest.$ac_ext
34979 LIBS=$ac_check_lib_save_LIBS
34981 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
34982 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
34983 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
34984 ol_cv_lib_mdbm=-lmdbm
34995 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
34996 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
35000 for ac_header in mdbm.h
35002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35004 echo "$as_me:$LINENO: checking for $ac_header" >&5
35005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35007 echo $ECHO_N "(cached) $ECHO_C" >&6
35009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35012 # Is the header compilable?
35013 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35015 cat >conftest.$ac_ext <<_ACEOF
35018 cat confdefs.h >>conftest.$ac_ext
35019 cat >>conftest.$ac_ext <<_ACEOF
35020 /* end confdefs.h. */
35021 $ac_includes_default
35022 #include <$ac_header>
35024 rm -f conftest.$ac_objext
35025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35026 (eval $ac_compile) 2>conftest.er1
35028 grep -v '^ *+' conftest.er1 >conftest.err
35030 cat conftest.err >&5
35031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032 (exit $ac_status); } &&
35033 { ac_try='test -z "$ac_c_werror_flag"
35034 || test ! -s conftest.err'
35035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35036 (eval $ac_try) 2>&5
35038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35039 (exit $ac_status); }; } &&
35040 { ac_try='test -s conftest.$ac_objext'
35041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35042 (eval $ac_try) 2>&5
35044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35045 (exit $ac_status); }; }; then
35046 ac_header_compiler=yes
35048 echo "$as_me: failed program was:" >&5
35049 sed 's/^/| /' conftest.$ac_ext >&5
35051 ac_header_compiler=no
35053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35055 echo "${ECHO_T}$ac_header_compiler" >&6
35057 # Is the header present?
35058 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35060 cat >conftest.$ac_ext <<_ACEOF
35063 cat confdefs.h >>conftest.$ac_ext
35064 cat >>conftest.$ac_ext <<_ACEOF
35065 /* end confdefs.h. */
35066 #include <$ac_header>
35068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35071 grep -v '^ *+' conftest.er1 >conftest.err
35073 cat conftest.err >&5
35074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35075 (exit $ac_status); } >/dev/null; then
35076 if test -s conftest.err; then
35077 ac_cpp_err=$ac_c_preproc_warn_flag
35078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35085 if test -z "$ac_cpp_err"; then
35086 ac_header_preproc=yes
35088 echo "$as_me: failed program was:" >&5
35089 sed 's/^/| /' conftest.$ac_ext >&5
35091 ac_header_preproc=no
35093 rm -f conftest.err conftest.$ac_ext
35094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35095 echo "${ECHO_T}$ac_header_preproc" >&6
35097 # So? What about this header?
35098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35104 ac_header_preproc=yes
35107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35121 ## --------------------------------------------- ##
35122 ## Report this to <http://www.openldap.org/its/> ##
35123 ## --------------------------------------------- ##
35126 sed "s/^/$as_me: WARNING: /" >&2
35129 echo "$as_me:$LINENO: checking for $ac_header" >&5
35130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35132 echo $ECHO_N "(cached) $ECHO_C" >&6
35134 eval "$as_ac_Header=\$ac_header_preproc"
35136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35141 cat >>confdefs.h <<_ACEOF
35142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35149 echo "$as_me:$LINENO: checking for db" >&5
35150 echo $ECHO_N "checking for db... $ECHO_C" >&6
35151 if test "${ol_cv_mdbm+set}" = set; then
35152 echo $ECHO_N "(cached) $ECHO_C" >&6
35155 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35162 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35163 echo "${ECHO_T}$ol_cv_mdbm" >&6
35164 if test $ol_cv_mdbm = yes ; then
35166 cat >>confdefs.h <<\_ACEOF
35167 #define HAVE_MDBM 1
35173 if test $ol_cv_mdbm = yes ; then
35175 ol_enable_ldbm_api=mdbm
35176 if test $ol_cv_lib_mdbm != yes ; then
35177 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35182 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35183 echo "$as_me:$LINENO: checking for GDBM library" >&5
35184 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35185 if test "${ol_cv_lib_gdbm+set}" = set; then
35186 echo $ECHO_N "(cached) $ECHO_C" >&6
35189 echo "$as_me:$LINENO: checking for gdbm_open" >&5
35190 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35191 if test "${ac_cv_func_gdbm_open+set}" = set; then
35192 echo $ECHO_N "(cached) $ECHO_C" >&6
35194 cat >conftest.$ac_ext <<_ACEOF
35197 cat confdefs.h >>conftest.$ac_ext
35198 cat >>conftest.$ac_ext <<_ACEOF
35199 /* end confdefs.h. */
35200 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35202 #define gdbm_open innocuous_gdbm_open
35204 /* System header to define __stub macros and hopefully few prototypes,
35205 which can conflict with char gdbm_open (); below.
35206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35207 <limits.h> exists even on freestanding compilers. */
35210 # include <limits.h>
35212 # include <assert.h>
35217 /* Override any gcc2 internal prototype to avoid an error. */
35222 /* We use char because int might match the return type of a gcc2
35223 builtin and then its argument prototype would still apply. */
35225 /* The GNU C library defines this for functions which it implements
35226 to always fail with ENOSYS. Some functions are actually named
35227 something starting with __ and the normal name is an alias. */
35228 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35231 char (*f) () = gdbm_open;
35240 return f != gdbm_open;
35245 rm -f conftest.$ac_objext conftest$ac_exeext
35246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35247 (eval $ac_link) 2>conftest.er1
35249 grep -v '^ *+' conftest.er1 >conftest.err
35251 cat conftest.err >&5
35252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253 (exit $ac_status); } &&
35254 { ac_try='test -z "$ac_c_werror_flag"
35255 || test ! -s conftest.err'
35256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35257 (eval $ac_try) 2>&5
35259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35260 (exit $ac_status); }; } &&
35261 { ac_try='test -s conftest$ac_exeext'
35262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35263 (eval $ac_try) 2>&5
35265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35266 (exit $ac_status); }; }; then
35267 ac_cv_func_gdbm_open=yes
35269 echo "$as_me: failed program was:" >&5
35270 sed 's/^/| /' conftest.$ac_ext >&5
35272 ac_cv_func_gdbm_open=no
35274 rm -f conftest.err conftest.$ac_objext \
35275 conftest$ac_exeext conftest.$ac_ext
35277 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35278 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35279 if test $ac_cv_func_gdbm_open = yes; then
35283 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35284 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35285 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35286 echo $ECHO_N "(cached) $ECHO_C" >&6
35288 ac_check_lib_save_LIBS=$LIBS
35289 LIBS="-lgdbm $LIBS"
35290 cat >conftest.$ac_ext <<_ACEOF
35293 cat confdefs.h >>conftest.$ac_ext
35294 cat >>conftest.$ac_ext <<_ACEOF
35295 /* end confdefs.h. */
35297 /* Override any gcc2 internal prototype to avoid an error. */
35301 /* We use char because int might match the return type of a gcc2
35302 builtin and then its argument prototype would still apply. */
35312 rm -f conftest.$ac_objext conftest$ac_exeext
35313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35314 (eval $ac_link) 2>conftest.er1
35316 grep -v '^ *+' conftest.er1 >conftest.err
35318 cat conftest.err >&5
35319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35320 (exit $ac_status); } &&
35321 { ac_try='test -z "$ac_c_werror_flag"
35322 || test ! -s conftest.err'
35323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35324 (eval $ac_try) 2>&5
35326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35327 (exit $ac_status); }; } &&
35328 { ac_try='test -s conftest$ac_exeext'
35329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35330 (eval $ac_try) 2>&5
35332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35333 (exit $ac_status); }; }; then
35334 ac_cv_lib_gdbm_gdbm_open=yes
35336 echo "$as_me: failed program was:" >&5
35337 sed 's/^/| /' conftest.$ac_ext >&5
35339 ac_cv_lib_gdbm_gdbm_open=no
35341 rm -f conftest.err conftest.$ac_objext \
35342 conftest$ac_exeext conftest.$ac_ext
35343 LIBS=$ac_check_lib_save_LIBS
35345 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35346 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35347 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35348 ol_cv_lib_gdbm=-lgdbm
35359 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35360 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35364 for ac_header in gdbm.h
35366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35368 echo "$as_me:$LINENO: checking for $ac_header" >&5
35369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35371 echo $ECHO_N "(cached) $ECHO_C" >&6
35373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35376 # Is the header compilable?
35377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35379 cat >conftest.$ac_ext <<_ACEOF
35382 cat confdefs.h >>conftest.$ac_ext
35383 cat >>conftest.$ac_ext <<_ACEOF
35384 /* end confdefs.h. */
35385 $ac_includes_default
35386 #include <$ac_header>
35388 rm -f conftest.$ac_objext
35389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35390 (eval $ac_compile) 2>conftest.er1
35392 grep -v '^ *+' conftest.er1 >conftest.err
35394 cat conftest.err >&5
35395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396 (exit $ac_status); } &&
35397 { ac_try='test -z "$ac_c_werror_flag"
35398 || test ! -s conftest.err'
35399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35400 (eval $ac_try) 2>&5
35402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35403 (exit $ac_status); }; } &&
35404 { ac_try='test -s conftest.$ac_objext'
35405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35406 (eval $ac_try) 2>&5
35408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35409 (exit $ac_status); }; }; then
35410 ac_header_compiler=yes
35412 echo "$as_me: failed program was:" >&5
35413 sed 's/^/| /' conftest.$ac_ext >&5
35415 ac_header_compiler=no
35417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35419 echo "${ECHO_T}$ac_header_compiler" >&6
35421 # Is the header present?
35422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35424 cat >conftest.$ac_ext <<_ACEOF
35427 cat confdefs.h >>conftest.$ac_ext
35428 cat >>conftest.$ac_ext <<_ACEOF
35429 /* end confdefs.h. */
35430 #include <$ac_header>
35432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35435 grep -v '^ *+' conftest.er1 >conftest.err
35437 cat conftest.err >&5
35438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439 (exit $ac_status); } >/dev/null; then
35440 if test -s conftest.err; then
35441 ac_cpp_err=$ac_c_preproc_warn_flag
35442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35449 if test -z "$ac_cpp_err"; then
35450 ac_header_preproc=yes
35452 echo "$as_me: failed program was:" >&5
35453 sed 's/^/| /' conftest.$ac_ext >&5
35455 ac_header_preproc=no
35457 rm -f conftest.err conftest.$ac_ext
35458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35459 echo "${ECHO_T}$ac_header_preproc" >&6
35461 # So? What about this header?
35462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35468 ac_header_preproc=yes
35471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35485 ## --------------------------------------------- ##
35486 ## Report this to <http://www.openldap.org/its/> ##
35487 ## --------------------------------------------- ##
35490 sed "s/^/$as_me: WARNING: /" >&2
35493 echo "$as_me:$LINENO: checking for $ac_header" >&5
35494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35496 echo $ECHO_N "(cached) $ECHO_C" >&6
35498 eval "$as_ac_Header=\$ac_header_preproc"
35500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35505 cat >>confdefs.h <<_ACEOF
35506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35513 echo "$as_me:$LINENO: checking for db" >&5
35514 echo $ECHO_N "checking for db... $ECHO_C" >&6
35515 if test "${ol_cv_gdbm+set}" = set; then
35516 echo $ECHO_N "(cached) $ECHO_C" >&6
35519 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35526 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35527 echo "${ECHO_T}$ol_cv_gdbm" >&6
35528 if test $ol_cv_gdbm = yes ; then
35530 cat >>confdefs.h <<\_ACEOF
35531 #define HAVE_GDBM 1
35537 if test $ol_cv_gdbm = yes ; then
35539 ol_enable_ldbm_api=gdbm
35541 if test $ol_cv_lib_gdbm != yes ; then
35542 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35547 if test $ol_enable_ldbm_api = ndbm ; then
35548 echo "$as_me:$LINENO: checking for NDBM library" >&5
35549 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35550 if test "${ol_cv_lib_ndbm+set}" = set; then
35551 echo $ECHO_N "(cached) $ECHO_C" >&6
35554 echo "$as_me:$LINENO: checking for dbm_open" >&5
35555 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35556 if test "${ac_cv_func_dbm_open+set}" = set; then
35557 echo $ECHO_N "(cached) $ECHO_C" >&6
35559 cat >conftest.$ac_ext <<_ACEOF
35562 cat confdefs.h >>conftest.$ac_ext
35563 cat >>conftest.$ac_ext <<_ACEOF
35564 /* end confdefs.h. */
35565 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35567 #define dbm_open innocuous_dbm_open
35569 /* System header to define __stub macros and hopefully few prototypes,
35570 which can conflict with char dbm_open (); below.
35571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35572 <limits.h> exists even on freestanding compilers. */
35575 # include <limits.h>
35577 # include <assert.h>
35582 /* Override any gcc2 internal prototype to avoid an error. */
35587 /* We use char because int might match the return type of a gcc2
35588 builtin and then its argument prototype would still apply. */
35590 /* The GNU C library defines this for functions which it implements
35591 to always fail with ENOSYS. Some functions are actually named
35592 something starting with __ and the normal name is an alias. */
35593 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35596 char (*f) () = dbm_open;
35605 return f != dbm_open;
35610 rm -f conftest.$ac_objext conftest$ac_exeext
35611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35612 (eval $ac_link) 2>conftest.er1
35614 grep -v '^ *+' conftest.er1 >conftest.err
35616 cat conftest.err >&5
35617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618 (exit $ac_status); } &&
35619 { ac_try='test -z "$ac_c_werror_flag"
35620 || test ! -s conftest.err'
35621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35622 (eval $ac_try) 2>&5
35624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625 (exit $ac_status); }; } &&
35626 { ac_try='test -s conftest$ac_exeext'
35627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35628 (eval $ac_try) 2>&5
35630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35631 (exit $ac_status); }; }; then
35632 ac_cv_func_dbm_open=yes
35634 echo "$as_me: failed program was:" >&5
35635 sed 's/^/| /' conftest.$ac_ext >&5
35637 ac_cv_func_dbm_open=no
35639 rm -f conftest.err conftest.$ac_objext \
35640 conftest$ac_exeext conftest.$ac_ext
35642 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35643 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35644 if test $ac_cv_func_dbm_open = yes; then
35648 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35649 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35650 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35651 echo $ECHO_N "(cached) $ECHO_C" >&6
35653 ac_check_lib_save_LIBS=$LIBS
35654 LIBS="-lndbm $LIBS"
35655 cat >conftest.$ac_ext <<_ACEOF
35658 cat confdefs.h >>conftest.$ac_ext
35659 cat >>conftest.$ac_ext <<_ACEOF
35660 /* end confdefs.h. */
35662 /* Override any gcc2 internal prototype to avoid an error. */
35666 /* We use char because int might match the return type of a gcc2
35667 builtin and then its argument prototype would still apply. */
35677 rm -f conftest.$ac_objext conftest$ac_exeext
35678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35679 (eval $ac_link) 2>conftest.er1
35681 grep -v '^ *+' conftest.er1 >conftest.err
35683 cat conftest.err >&5
35684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685 (exit $ac_status); } &&
35686 { ac_try='test -z "$ac_c_werror_flag"
35687 || test ! -s conftest.err'
35688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689 (eval $ac_try) 2>&5
35691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 (exit $ac_status); }; } &&
35693 { ac_try='test -s conftest$ac_exeext'
35694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35695 (eval $ac_try) 2>&5
35697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698 (exit $ac_status); }; }; then
35699 ac_cv_lib_ndbm_dbm_open=yes
35701 echo "$as_me: failed program was:" >&5
35702 sed 's/^/| /' conftest.$ac_ext >&5
35704 ac_cv_lib_ndbm_dbm_open=no
35706 rm -f conftest.err conftest.$ac_objext \
35707 conftest$ac_exeext conftest.$ac_ext
35708 LIBS=$ac_check_lib_save_LIBS
35710 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35711 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35712 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35713 ol_cv_lib_ndbm=-lndbm
35716 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35717 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35718 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35719 echo $ECHO_N "(cached) $ECHO_C" >&6
35721 ac_check_lib_save_LIBS=$LIBS
35723 cat >conftest.$ac_ext <<_ACEOF
35726 cat confdefs.h >>conftest.$ac_ext
35727 cat >>conftest.$ac_ext <<_ACEOF
35728 /* end confdefs.h. */
35730 /* Override any gcc2 internal prototype to avoid an error. */
35734 /* We use char because int might match the return type of a gcc2
35735 builtin and then its argument prototype would still apply. */
35745 rm -f conftest.$ac_objext conftest$ac_exeext
35746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35747 (eval $ac_link) 2>conftest.er1
35749 grep -v '^ *+' conftest.er1 >conftest.err
35751 cat conftest.err >&5
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); } &&
35754 { ac_try='test -z "$ac_c_werror_flag"
35755 || test ! -s conftest.err'
35756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35757 (eval $ac_try) 2>&5
35759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760 (exit $ac_status); }; } &&
35761 { ac_try='test -s 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 ac_cv_lib_dbm_dbm_open=yes
35769 echo "$as_me: failed program was:" >&5
35770 sed 's/^/| /' conftest.$ac_ext >&5
35772 ac_cv_lib_dbm_dbm_open=no
35774 rm -f conftest.err conftest.$ac_objext \
35775 conftest$ac_exeext conftest.$ac_ext
35776 LIBS=$ac_check_lib_save_LIBS
35778 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35779 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35780 if test $ac_cv_lib_dbm_dbm_open = yes; then
35781 ol_cv_lib_ndbm=-ldbm
35794 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35795 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35799 for ac_header in ndbm.h
35801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35803 echo "$as_me:$LINENO: checking for $ac_header" >&5
35804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35806 echo $ECHO_N "(cached) $ECHO_C" >&6
35808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35811 # Is the header compilable?
35812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35814 cat >conftest.$ac_ext <<_ACEOF
35817 cat confdefs.h >>conftest.$ac_ext
35818 cat >>conftest.$ac_ext <<_ACEOF
35819 /* end confdefs.h. */
35820 $ac_includes_default
35821 #include <$ac_header>
35823 rm -f conftest.$ac_objext
35824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35825 (eval $ac_compile) 2>conftest.er1
35827 grep -v '^ *+' conftest.er1 >conftest.err
35829 cat conftest.err >&5
35830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35831 (exit $ac_status); } &&
35832 { ac_try='test -z "$ac_c_werror_flag"
35833 || test ! -s conftest.err'
35834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35835 (eval $ac_try) 2>&5
35837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35838 (exit $ac_status); }; } &&
35839 { ac_try='test -s conftest.$ac_objext'
35840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35841 (eval $ac_try) 2>&5
35843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35844 (exit $ac_status); }; }; then
35845 ac_header_compiler=yes
35847 echo "$as_me: failed program was:" >&5
35848 sed 's/^/| /' conftest.$ac_ext >&5
35850 ac_header_compiler=no
35852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35854 echo "${ECHO_T}$ac_header_compiler" >&6
35856 # Is the header present?
35857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35859 cat >conftest.$ac_ext <<_ACEOF
35862 cat confdefs.h >>conftest.$ac_ext
35863 cat >>conftest.$ac_ext <<_ACEOF
35864 /* end confdefs.h. */
35865 #include <$ac_header>
35867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35870 grep -v '^ *+' conftest.er1 >conftest.err
35872 cat conftest.err >&5
35873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35874 (exit $ac_status); } >/dev/null; then
35875 if test -s conftest.err; then
35876 ac_cpp_err=$ac_c_preproc_warn_flag
35877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35884 if test -z "$ac_cpp_err"; then
35885 ac_header_preproc=yes
35887 echo "$as_me: failed program was:" >&5
35888 sed 's/^/| /' conftest.$ac_ext >&5
35890 ac_header_preproc=no
35892 rm -f conftest.err conftest.$ac_ext
35893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35894 echo "${ECHO_T}$ac_header_preproc" >&6
35896 # So? What about this header?
35897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35903 ac_header_preproc=yes
35906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35920 ## --------------------------------------------- ##
35921 ## Report this to <http://www.openldap.org/its/> ##
35922 ## --------------------------------------------- ##
35925 sed "s/^/$as_me: WARNING: /" >&2
35928 echo "$as_me:$LINENO: checking for $ac_header" >&5
35929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35931 echo $ECHO_N "(cached) $ECHO_C" >&6
35933 eval "$as_ac_Header=\$ac_header_preproc"
35935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35940 cat >>confdefs.h <<_ACEOF
35941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35948 echo "$as_me:$LINENO: checking for db" >&5
35949 echo $ECHO_N "checking for db... $ECHO_C" >&6
35950 if test "${ol_cv_ndbm+set}" = set; then
35951 echo $ECHO_N "(cached) $ECHO_C" >&6
35954 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
35961 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
35962 echo "${ECHO_T}$ol_cv_ndbm" >&6
35963 if test $ol_cv_ndbm = yes ; then
35965 cat >>confdefs.h <<\_ACEOF
35966 #define HAVE_NDBM 1
35972 if test $ol_cv_ndbm = yes ; then
35974 ol_enable_ldbm_api=ndbm
35976 if test $ol_cv_lib_ndbm != yes ; then
35977 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
35982 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
35983 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
35984 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
35985 { (exit 1); exit 1; }; }
35988 if test $ol_enable_bdb = yes ||
35989 test $ol_enable_hdb = yes ||
35990 test $ol_enable_ldbm = yes ; then
35991 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
35995 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
35996 BUILD_LIBS_DYNAMIC=shared
35998 cat >>confdefs.h <<\_ACEOF
35999 #define LDAP_LIBS_DYNAMIC 1
36004 BUILD_LIBS_DYNAMIC=static
36008 if test $ol_enable_wrappers != no ; then
36010 for ac_header in tcpd.h
36012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36014 echo "$as_me:$LINENO: checking for $ac_header" >&5
36015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36017 echo $ECHO_N "(cached) $ECHO_C" >&6
36019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36022 # Is the header compilable?
36023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36025 cat >conftest.$ac_ext <<_ACEOF
36028 cat confdefs.h >>conftest.$ac_ext
36029 cat >>conftest.$ac_ext <<_ACEOF
36030 /* end confdefs.h. */
36031 $ac_includes_default
36032 #include <$ac_header>
36034 rm -f conftest.$ac_objext
36035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36036 (eval $ac_compile) 2>conftest.er1
36038 grep -v '^ *+' conftest.er1 >conftest.err
36040 cat conftest.err >&5
36041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36042 (exit $ac_status); } &&
36043 { ac_try='test -z "$ac_c_werror_flag"
36044 || test ! -s conftest.err'
36045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36046 (eval $ac_try) 2>&5
36048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049 (exit $ac_status); }; } &&
36050 { ac_try='test -s conftest.$ac_objext'
36051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36052 (eval $ac_try) 2>&5
36054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36055 (exit $ac_status); }; }; then
36056 ac_header_compiler=yes
36058 echo "$as_me: failed program was:" >&5
36059 sed 's/^/| /' conftest.$ac_ext >&5
36061 ac_header_compiler=no
36063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36065 echo "${ECHO_T}$ac_header_compiler" >&6
36067 # Is the header present?
36068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36070 cat >conftest.$ac_ext <<_ACEOF
36073 cat confdefs.h >>conftest.$ac_ext
36074 cat >>conftest.$ac_ext <<_ACEOF
36075 /* end confdefs.h. */
36076 #include <$ac_header>
36078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36081 grep -v '^ *+' conftest.er1 >conftest.err
36083 cat conftest.err >&5
36084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36085 (exit $ac_status); } >/dev/null; then
36086 if test -s conftest.err; then
36087 ac_cpp_err=$ac_c_preproc_warn_flag
36088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36095 if test -z "$ac_cpp_err"; then
36096 ac_header_preproc=yes
36098 echo "$as_me: failed program was:" >&5
36099 sed 's/^/| /' conftest.$ac_ext >&5
36101 ac_header_preproc=no
36103 rm -f conftest.err conftest.$ac_ext
36104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36105 echo "${ECHO_T}$ac_header_preproc" >&6
36107 # So? What about this header?
36108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36114 ac_header_preproc=yes
36117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36131 ## --------------------------------------------- ##
36132 ## Report this to <http://www.openldap.org/its/> ##
36133 ## --------------------------------------------- ##
36136 sed "s/^/$as_me: WARNING: /" >&2
36139 echo "$as_me:$LINENO: checking for $ac_header" >&5
36140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36142 echo $ECHO_N "(cached) $ECHO_C" >&6
36144 eval "$as_ac_Header=\$ac_header_preproc"
36146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36151 cat >>confdefs.h <<_ACEOF
36152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36155 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36156 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36158 LIBS="$LIBS -lwrap"
36159 cat >conftest.$ac_ext <<_ACEOF
36162 cat confdefs.h >>conftest.$ac_ext
36163 cat >>conftest.$ac_ext <<_ACEOF
36164 /* end confdefs.h. */
36167 int allow_severity = 0;
36168 int deny_severity = 0;
36170 struct request_info *req;
36182 rm -f conftest.$ac_objext conftest$ac_exeext
36183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36184 (eval $ac_link) 2>conftest.er1
36186 grep -v '^ *+' conftest.er1 >conftest.err
36188 cat conftest.err >&5
36189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36190 (exit $ac_status); } &&
36191 { ac_try='test -z "$ac_c_werror_flag"
36192 || test ! -s conftest.err'
36193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36194 (eval $ac_try) 2>&5
36196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36197 (exit $ac_status); }; } &&
36198 { ac_try='test -s conftest$ac_exeext'
36199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36200 (eval $ac_try) 2>&5
36202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203 (exit $ac_status); }; }; then
36204 echo "$as_me:$LINENO: result: -lwrap" >&5
36205 echo "${ECHO_T}-lwrap" >&6
36209 echo "$as_me: failed program was:" >&5
36210 sed 's/^/| /' conftest.$ac_ext >&5
36214 cat >conftest.$ac_ext <<_ACEOF
36217 cat confdefs.h >>conftest.$ac_ext
36218 cat >>conftest.$ac_ext <<_ACEOF
36219 /* end confdefs.h. */
36222 int allow_severity = 0;
36223 int deny_severity = 0;
36225 struct request_info *req;
36237 rm -f conftest.$ac_objext conftest$ac_exeext
36238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36239 (eval $ac_link) 2>conftest.er1
36241 grep -v '^ *+' conftest.er1 >conftest.err
36243 cat conftest.err >&5
36244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36245 (exit $ac_status); } &&
36246 { ac_try='test -z "$ac_c_werror_flag"
36247 || test ! -s conftest.err'
36248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36249 (eval $ac_try) 2>&5
36251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36252 (exit $ac_status); }; } &&
36253 { ac_try='test -s conftest$ac_exeext'
36254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36255 (eval $ac_try) 2>&5
36257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258 (exit $ac_status); }; }; then
36259 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36260 echo "${ECHO_T}-lwrap -lnsl" >&6
36262 LIBS="$save_LIBS -lnsl"
36264 echo "$as_me: failed program was:" >&5
36265 sed 's/^/| /' conftest.$ac_ext >&5
36268 echo "$as_me:$LINENO: result: no" >&5
36269 echo "${ECHO_T}no" >&6
36273 rm -f conftest.err conftest.$ac_objext \
36274 conftest$ac_exeext conftest.$ac_ext
36276 rm -f conftest.err conftest.$ac_objext \
36277 conftest$ac_exeext conftest.$ac_ext
36285 if test $have_wrappers = yes ; then
36287 cat >>confdefs.h <<\_ACEOF
36288 #define HAVE_TCPD 1
36292 elif test $ol_enable_wrappers = yes ; then
36293 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36294 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36295 { (exit 1); exit 1; }; }
36297 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36298 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36303 if test $ol_enable_syslog != no ; then
36304 echo "$as_me:$LINENO: checking for openlog" >&5
36305 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36306 if test "${ac_cv_func_openlog+set}" = set; then
36307 echo $ECHO_N "(cached) $ECHO_C" >&6
36309 cat >conftest.$ac_ext <<_ACEOF
36312 cat confdefs.h >>conftest.$ac_ext
36313 cat >>conftest.$ac_ext <<_ACEOF
36314 /* end confdefs.h. */
36315 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36317 #define openlog innocuous_openlog
36319 /* System header to define __stub macros and hopefully few prototypes,
36320 which can conflict with char openlog (); below.
36321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36322 <limits.h> exists even on freestanding compilers. */
36325 # include <limits.h>
36327 # include <assert.h>
36332 /* Override any gcc2 internal prototype to avoid an error. */
36337 /* We use char because int might match the return type of a gcc2
36338 builtin and then its argument prototype would still apply. */
36340 /* The GNU C library defines this for functions which it implements
36341 to always fail with ENOSYS. Some functions are actually named
36342 something starting with __ and the normal name is an alias. */
36343 #if defined (__stub_openlog) || defined (__stub___openlog)
36346 char (*f) () = openlog;
36355 return f != openlog;
36360 rm -f conftest.$ac_objext conftest$ac_exeext
36361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36362 (eval $ac_link) 2>conftest.er1
36364 grep -v '^ *+' conftest.er1 >conftest.err
36366 cat conftest.err >&5
36367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36368 (exit $ac_status); } &&
36369 { ac_try='test -z "$ac_c_werror_flag"
36370 || test ! -s conftest.err'
36371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36372 (eval $ac_try) 2>&5
36374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375 (exit $ac_status); }; } &&
36376 { ac_try='test -s conftest$ac_exeext'
36377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36378 (eval $ac_try) 2>&5
36380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36381 (exit $ac_status); }; }; then
36382 ac_cv_func_openlog=yes
36384 echo "$as_me: failed program was:" >&5
36385 sed 's/^/| /' conftest.$ac_ext >&5
36387 ac_cv_func_openlog=no
36389 rm -f conftest.err conftest.$ac_objext \
36390 conftest$ac_exeext conftest.$ac_ext
36392 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36393 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36395 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36396 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36397 echo "$as_me: error: could not find syslog" >&2;}
36398 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36400 ol_enable_syslog=$ac_cv_func_openlog
36404 if test $ol_enable_sql != no ; then
36407 for ac_header in sql.h sqlext.h
36409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36411 echo "$as_me:$LINENO: checking for $ac_header" >&5
36412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36414 echo $ECHO_N "(cached) $ECHO_C" >&6
36416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36419 # Is the header compilable?
36420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36422 cat >conftest.$ac_ext <<_ACEOF
36425 cat confdefs.h >>conftest.$ac_ext
36426 cat >>conftest.$ac_ext <<_ACEOF
36427 /* end confdefs.h. */
36428 $ac_includes_default
36429 #include <$ac_header>
36431 rm -f conftest.$ac_objext
36432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36433 (eval $ac_compile) 2>conftest.er1
36435 grep -v '^ *+' conftest.er1 >conftest.err
36437 cat conftest.err >&5
36438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36439 (exit $ac_status); } &&
36440 { ac_try='test -z "$ac_c_werror_flag"
36441 || test ! -s conftest.err'
36442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36443 (eval $ac_try) 2>&5
36445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446 (exit $ac_status); }; } &&
36447 { ac_try='test -s conftest.$ac_objext'
36448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36449 (eval $ac_try) 2>&5
36451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36452 (exit $ac_status); }; }; then
36453 ac_header_compiler=yes
36455 echo "$as_me: failed program was:" >&5
36456 sed 's/^/| /' conftest.$ac_ext >&5
36458 ac_header_compiler=no
36460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36462 echo "${ECHO_T}$ac_header_compiler" >&6
36464 # Is the header present?
36465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36467 cat >conftest.$ac_ext <<_ACEOF
36470 cat confdefs.h >>conftest.$ac_ext
36471 cat >>conftest.$ac_ext <<_ACEOF
36472 /* end confdefs.h. */
36473 #include <$ac_header>
36475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36478 grep -v '^ *+' conftest.er1 >conftest.err
36480 cat conftest.err >&5
36481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36482 (exit $ac_status); } >/dev/null; then
36483 if test -s conftest.err; then
36484 ac_cpp_err=$ac_c_preproc_warn_flag
36485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36492 if test -z "$ac_cpp_err"; then
36493 ac_header_preproc=yes
36495 echo "$as_me: failed program was:" >&5
36496 sed 's/^/| /' conftest.$ac_ext >&5
36498 ac_header_preproc=no
36500 rm -f conftest.err conftest.$ac_ext
36501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36502 echo "${ECHO_T}$ac_header_preproc" >&6
36504 # So? What about this header?
36505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36511 ac_header_preproc=yes
36514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36528 ## --------------------------------------------- ##
36529 ## Report this to <http://www.openldap.org/its/> ##
36530 ## --------------------------------------------- ##
36533 sed "s/^/$as_me: WARNING: /" >&2
36536 echo "$as_me:$LINENO: checking for $ac_header" >&5
36537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36539 echo $ECHO_N "(cached) $ECHO_C" >&6
36541 eval "$as_ac_Header=\$ac_header_preproc"
36543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36548 cat >>confdefs.h <<_ACEOF
36549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36554 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36555 echo "$as_me: error: could not locate SQL headers" >&2;}
36556 { (exit 1); exit 1; }; }
36564 LIBS="$LTHREAD_LIBS"
36566 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36567 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36568 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36569 echo $ECHO_N "(cached) $ECHO_C" >&6
36571 ac_check_lib_save_LIBS=$LIBS
36572 LIBS="-liodbc $LIBS"
36573 cat >conftest.$ac_ext <<_ACEOF
36576 cat confdefs.h >>conftest.$ac_ext
36577 cat >>conftest.$ac_ext <<_ACEOF
36578 /* end confdefs.h. */
36580 /* Override any gcc2 internal prototype to avoid an error. */
36584 /* We use char because int might match the return type of a gcc2
36585 builtin and then its argument prototype would still apply. */
36586 char SQLDriverConnect ();
36590 SQLDriverConnect ();
36595 rm -f conftest.$ac_objext conftest$ac_exeext
36596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36597 (eval $ac_link) 2>conftest.er1
36599 grep -v '^ *+' conftest.er1 >conftest.err
36601 cat conftest.err >&5
36602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36603 (exit $ac_status); } &&
36604 { ac_try='test -z "$ac_c_werror_flag"
36605 || test ! -s conftest.err'
36606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36607 (eval $ac_try) 2>&5
36609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36610 (exit $ac_status); }; } &&
36611 { ac_try='test -s conftest$ac_exeext'
36612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36613 (eval $ac_try) 2>&5
36615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36616 (exit $ac_status); }; }; then
36617 ac_cv_lib_iodbc_SQLDriverConnect=yes
36619 echo "$as_me: failed program was:" >&5
36620 sed 's/^/| /' conftest.$ac_ext >&5
36622 ac_cv_lib_iodbc_SQLDriverConnect=no
36624 rm -f conftest.err conftest.$ac_objext \
36625 conftest$ac_exeext conftest.$ac_ext
36626 LIBS=$ac_check_lib_save_LIBS
36628 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36629 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36630 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36636 if test $have_iodbc = yes ; then
36637 ol_link_sql="-liodbc"
36639 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36640 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36641 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36642 echo $ECHO_N "(cached) $ECHO_C" >&6
36644 ac_check_lib_save_LIBS=$LIBS
36645 LIBS="-lodbc $LIBS"
36646 cat >conftest.$ac_ext <<_ACEOF
36649 cat confdefs.h >>conftest.$ac_ext
36650 cat >>conftest.$ac_ext <<_ACEOF
36651 /* end confdefs.h. */
36653 /* Override any gcc2 internal prototype to avoid an error. */
36657 /* We use char because int might match the return type of a gcc2
36658 builtin and then its argument prototype would still apply. */
36659 char SQLDriverConnect ();
36663 SQLDriverConnect ();
36668 rm -f conftest.$ac_objext conftest$ac_exeext
36669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36670 (eval $ac_link) 2>conftest.er1
36672 grep -v '^ *+' conftest.er1 >conftest.err
36674 cat conftest.err >&5
36675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36676 (exit $ac_status); } &&
36677 { ac_try='test -z "$ac_c_werror_flag"
36678 || test ! -s conftest.err'
36679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36680 (eval $ac_try) 2>&5
36682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36683 (exit $ac_status); }; } &&
36684 { ac_try='test -s conftest$ac_exeext'
36685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36686 (eval $ac_try) 2>&5
36688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36689 (exit $ac_status); }; }; then
36690 ac_cv_lib_odbc_SQLDriverConnect=yes
36692 echo "$as_me: failed program was:" >&5
36693 sed 's/^/| /' conftest.$ac_ext >&5
36695 ac_cv_lib_odbc_SQLDriverConnect=no
36697 rm -f conftest.err conftest.$ac_objext \
36698 conftest$ac_exeext conftest.$ac_ext
36699 LIBS=$ac_check_lib_save_LIBS
36701 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36702 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36703 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36709 if test $have_odbc = yes ; then
36710 ol_link_sql="-lodbc"
36716 if test $ol_link_sql != no ; then
36717 SLAPD_SQL_LIBS="$ol_link_sql"
36719 elif test $ol_enable_sql != auto ; then
36720 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36721 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36722 { (exit 1); exit 1; }; }
36729 if test $ol_with_cyrus_sasl != no ; then
36732 for ac_header in sasl/sasl.h sasl.h
36734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36736 echo "$as_me:$LINENO: checking for $ac_header" >&5
36737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36739 echo $ECHO_N "(cached) $ECHO_C" >&6
36741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36744 # Is the header compilable?
36745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36747 cat >conftest.$ac_ext <<_ACEOF
36750 cat confdefs.h >>conftest.$ac_ext
36751 cat >>conftest.$ac_ext <<_ACEOF
36752 /* end confdefs.h. */
36753 $ac_includes_default
36754 #include <$ac_header>
36756 rm -f conftest.$ac_objext
36757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36758 (eval $ac_compile) 2>conftest.er1
36760 grep -v '^ *+' conftest.er1 >conftest.err
36762 cat conftest.err >&5
36763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36764 (exit $ac_status); } &&
36765 { ac_try='test -z "$ac_c_werror_flag"
36766 || test ! -s conftest.err'
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); }; } &&
36772 { ac_try='test -s conftest.$ac_objext'
36773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36774 (eval $ac_try) 2>&5
36776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36777 (exit $ac_status); }; }; then
36778 ac_header_compiler=yes
36780 echo "$as_me: failed program was:" >&5
36781 sed 's/^/| /' conftest.$ac_ext >&5
36783 ac_header_compiler=no
36785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36787 echo "${ECHO_T}$ac_header_compiler" >&6
36789 # Is the header present?
36790 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36792 cat >conftest.$ac_ext <<_ACEOF
36795 cat confdefs.h >>conftest.$ac_ext
36796 cat >>conftest.$ac_ext <<_ACEOF
36797 /* end confdefs.h. */
36798 #include <$ac_header>
36800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36803 grep -v '^ *+' conftest.er1 >conftest.err
36805 cat conftest.err >&5
36806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36807 (exit $ac_status); } >/dev/null; then
36808 if test -s conftest.err; then
36809 ac_cpp_err=$ac_c_preproc_warn_flag
36810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36817 if test -z "$ac_cpp_err"; then
36818 ac_header_preproc=yes
36820 echo "$as_me: failed program was:" >&5
36821 sed 's/^/| /' conftest.$ac_ext >&5
36823 ac_header_preproc=no
36825 rm -f conftest.err conftest.$ac_ext
36826 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36827 echo "${ECHO_T}$ac_header_preproc" >&6
36829 # So? What about this header?
36830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36836 ac_header_preproc=yes
36839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36846 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36853 ## --------------------------------------------- ##
36854 ## Report this to <http://www.openldap.org/its/> ##
36855 ## --------------------------------------------- ##
36858 sed "s/^/$as_me: WARNING: /" >&2
36861 echo "$as_me:$LINENO: checking for $ac_header" >&5
36862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36864 echo $ECHO_N "(cached) $ECHO_C" >&6
36866 eval "$as_ac_Header=\$ac_header_preproc"
36868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36873 cat >>confdefs.h <<_ACEOF
36874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36882 if test $ac_cv_header_sasl_sasl_h = yes ||
36883 test $ac_cv_header_sasl_h = yes; then
36884 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
36885 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
36886 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
36887 echo $ECHO_N "(cached) $ECHO_C" >&6
36889 ac_check_lib_save_LIBS=$LIBS
36890 LIBS="-lsasl2 $LIBS"
36891 cat >conftest.$ac_ext <<_ACEOF
36894 cat confdefs.h >>conftest.$ac_ext
36895 cat >>conftest.$ac_ext <<_ACEOF
36896 /* end confdefs.h. */
36898 /* Override any gcc2 internal prototype to avoid an error. */
36902 /* We use char because int might match the return type of a gcc2
36903 builtin and then its argument prototype would still apply. */
36904 char sasl_client_init ();
36908 sasl_client_init ();
36913 rm -f conftest.$ac_objext conftest$ac_exeext
36914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36915 (eval $ac_link) 2>conftest.er1
36917 grep -v '^ *+' conftest.er1 >conftest.err
36919 cat conftest.err >&5
36920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921 (exit $ac_status); } &&
36922 { ac_try='test -z "$ac_c_werror_flag"
36923 || test ! -s conftest.err'
36924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36925 (eval $ac_try) 2>&5
36927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36928 (exit $ac_status); }; } &&
36929 { ac_try='test -s conftest$ac_exeext'
36930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36931 (eval $ac_try) 2>&5
36933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36934 (exit $ac_status); }; }; then
36935 ac_cv_lib_sasl2_sasl_client_init=yes
36937 echo "$as_me: failed program was:" >&5
36938 sed 's/^/| /' conftest.$ac_ext >&5
36940 ac_cv_lib_sasl2_sasl_client_init=no
36942 rm -f conftest.err conftest.$ac_objext \
36943 conftest$ac_exeext conftest.$ac_ext
36944 LIBS=$ac_check_lib_save_LIBS
36946 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
36947 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
36948 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
36949 ol_link_sasl="-lsasl2"
36951 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
36952 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
36953 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
36954 echo $ECHO_N "(cached) $ECHO_C" >&6
36956 ac_check_lib_save_LIBS=$LIBS
36957 LIBS="-lsasl $LIBS"
36958 cat >conftest.$ac_ext <<_ACEOF
36961 cat confdefs.h >>conftest.$ac_ext
36962 cat >>conftest.$ac_ext <<_ACEOF
36963 /* end confdefs.h. */
36965 /* Override any gcc2 internal prototype to avoid an error. */
36969 /* We use char because int might match the return type of a gcc2
36970 builtin and then its argument prototype would still apply. */
36971 char sasl_client_init ();
36975 sasl_client_init ();
36980 rm -f conftest.$ac_objext conftest$ac_exeext
36981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36982 (eval $ac_link) 2>conftest.er1
36984 grep -v '^ *+' conftest.er1 >conftest.err
36986 cat conftest.err >&5
36987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36988 (exit $ac_status); } &&
36989 { ac_try='test -z "$ac_c_werror_flag"
36990 || test ! -s conftest.err'
36991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36992 (eval $ac_try) 2>&5
36994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36995 (exit $ac_status); }; } &&
36996 { ac_try='test -s conftest$ac_exeext'
36997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36998 (eval $ac_try) 2>&5
37000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37001 (exit $ac_status); }; }; then
37002 ac_cv_lib_sasl_sasl_client_init=yes
37004 echo "$as_me: failed program was:" >&5
37005 sed 's/^/| /' conftest.$ac_ext >&5
37007 ac_cv_lib_sasl_sasl_client_init=no
37009 rm -f conftest.err conftest.$ac_objext \
37010 conftest$ac_exeext conftest.$ac_ext
37011 LIBS=$ac_check_lib_save_LIBS
37013 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37014 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37015 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37016 ol_link_sasl="-lsasl"
37023 if test $ol_link_sasl = no ; then
37024 if test $ol_with_cyrus_sasl != auto ; then
37025 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37026 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37027 { (exit 1); exit 1; }; }
37029 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37030 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37031 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37032 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37033 if test $ol_link_tls = no ; then
37034 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37035 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37039 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37040 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37041 if test "${ol_cv_sasl_compat+set}" = set; then
37042 echo $ECHO_N "(cached) $ECHO_C" >&6
37045 cat >conftest.$ac_ext <<_ACEOF
37048 cat confdefs.h >>conftest.$ac_ext
37049 cat >>conftest.$ac_ext <<_ACEOF
37050 /* end confdefs.h. */
37052 #ifdef HAVE_SASL_SASL_H
37053 #include <sasl/sasl.h>
37058 /* Require 2.1.15+ */
37059 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
37060 char *__sasl_compat = "2.2+ or better okay (we guess)";
37061 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
37062 && SASL_VERSION_STEP >=15
37063 char *__sasl_compat = "2.1.15+ or better okay";
37067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37068 $EGREP "__sasl_compat" >/dev/null 2>&1; then
37069 ol_cv_sasl_compat=yes
37071 ol_cv_sasl_compat=no
37076 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37077 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37079 if test $ol_cv_sasl_compat = no ; then
37081 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37082 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37083 { (exit 1); exit 1; }; }
37087 cat >>confdefs.h <<\_ACEOF
37088 #define HAVE_CYRUS_SASL 1
37091 SASL_LIBS="$ol_link_sasl"
37092 if test $ol_enable_spasswd != no ; then
37093 ol_link_spasswd=yes
37096 ac_save_LIBS="$LIBS"
37097 LIBS="$LIBS $ol_link_sasl"
37098 echo "$as_me:$LINENO: checking for sasl_version" >&5
37099 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37100 if test "${ac_cv_func_sasl_version+set}" = set; then
37101 echo $ECHO_N "(cached) $ECHO_C" >&6
37103 cat >conftest.$ac_ext <<_ACEOF
37106 cat confdefs.h >>conftest.$ac_ext
37107 cat >>conftest.$ac_ext <<_ACEOF
37108 /* end confdefs.h. */
37109 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37111 #define sasl_version innocuous_sasl_version
37113 /* System header to define __stub macros and hopefully few prototypes,
37114 which can conflict with char sasl_version (); below.
37115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37116 <limits.h> exists even on freestanding compilers. */
37119 # include <limits.h>
37121 # include <assert.h>
37124 #undef sasl_version
37126 /* Override any gcc2 internal prototype to avoid an error. */
37131 /* We use char because int might match the return type of a gcc2
37132 builtin and then its argument prototype would still apply. */
37133 char sasl_version ();
37134 /* The GNU C library defines this for functions which it implements
37135 to always fail with ENOSYS. Some functions are actually named
37136 something starting with __ and the normal name is an alias. */
37137 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37140 char (*f) () = sasl_version;
37149 return f != sasl_version;
37154 rm -f conftest.$ac_objext conftest$ac_exeext
37155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37156 (eval $ac_link) 2>conftest.er1
37158 grep -v '^ *+' conftest.er1 >conftest.err
37160 cat conftest.err >&5
37161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37162 (exit $ac_status); } &&
37163 { ac_try='test -z "$ac_c_werror_flag"
37164 || test ! -s conftest.err'
37165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37166 (eval $ac_try) 2>&5
37168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169 (exit $ac_status); }; } &&
37170 { ac_try='test -s conftest$ac_exeext'
37171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37172 (eval $ac_try) 2>&5
37174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175 (exit $ac_status); }; }; then
37176 ac_cv_func_sasl_version=yes
37178 echo "$as_me: failed program was:" >&5
37179 sed 's/^/| /' conftest.$ac_ext >&5
37181 ac_cv_func_sasl_version=no
37183 rm -f conftest.err conftest.$ac_objext \
37184 conftest$ac_exeext conftest.$ac_ext
37186 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37187 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37188 if test $ac_cv_func_sasl_version = yes; then
37190 cat >>confdefs.h <<\_ACEOF
37191 #define HAVE_SASL_VERSION 1
37196 LIBS="$ac_save_LIBS"
37202 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37203 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37204 if test $ol_link_tls = no ; then
37205 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37206 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37210 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37212 if test -r /dev/urandom ; then
37213 dev="/dev/urandom";
37214 elif test -r /idev/urandom ; then
37215 dev="/idev/urandom";
37216 elif test -r /dev/srandom ; then
37217 dev="/dev/srandom";
37218 elif test -r /dev/random ; then
37220 elif test -r /idev/random ; then
37221 dev="/idev/random";
37224 if test $dev != no ; then
37226 cat >>confdefs.h <<_ACEOF
37227 #define URANDOM_DEVICE "$dev"
37234 if test $ol_with_fetch != no ; then
37236 LIBS="-lfetch -lcom_err $LIBS"
37237 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37238 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37239 if test "${ol_cv_lib_fetch+set}" = set; then
37240 echo $ECHO_N "(cached) $ECHO_C" >&6
37243 cat >conftest.$ac_ext <<_ACEOF
37246 cat confdefs.h >>conftest.$ac_ext
37247 cat >>conftest.$ac_ext <<_ACEOF
37248 /* end confdefs.h. */
37250 #include <sys/param.h>
37256 struct url *u = fetchParseURL("file:///");
37261 rm -f conftest.$ac_objext conftest$ac_exeext
37262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37263 (eval $ac_link) 2>conftest.er1
37265 grep -v '^ *+' conftest.er1 >conftest.err
37267 cat conftest.err >&5
37268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37269 (exit $ac_status); } &&
37270 { ac_try='test -z "$ac_c_werror_flag"
37271 || test ! -s conftest.err'
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); }; } &&
37277 { ac_try='test -s conftest$ac_exeext'
37278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37279 (eval $ac_try) 2>&5
37281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37282 (exit $ac_status); }; }; then
37283 ol_cv_lib_fetch=yes
37285 echo "$as_me: failed program was:" >&5
37286 sed 's/^/| /' conftest.$ac_ext >&5
37290 rm -f conftest.err conftest.$ac_objext \
37291 conftest$ac_exeext conftest.$ac_ext
37293 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37294 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37296 if test $ol_cv_lib_fetch != no ; then
37297 ol_link_fetch="-lfetch -lcom_err"
37299 cat >>confdefs.h <<\_ACEOF
37300 #define HAVE_FETCH 1
37306 if test $ol_cv_lib_fetch != no ; then
37307 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37308 ol_link_fetch=freebsd
37310 elif test $ol_with_fetch != auto ; then
37311 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37312 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37313 { (exit 1); exit 1; }; }
37317 if test $ol_enable_crypt != no ; then
37319 LIBS="$TLS_LIBS $LIBS"
37321 echo "$as_me:$LINENO: checking for crypt" >&5
37322 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37323 if test "${ac_cv_func_crypt+set}" = set; then
37324 echo $ECHO_N "(cached) $ECHO_C" >&6
37326 cat >conftest.$ac_ext <<_ACEOF
37329 cat confdefs.h >>conftest.$ac_ext
37330 cat >>conftest.$ac_ext <<_ACEOF
37331 /* end confdefs.h. */
37332 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37334 #define crypt innocuous_crypt
37336 /* System header to define __stub macros and hopefully few prototypes,
37337 which can conflict with char crypt (); below.
37338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37339 <limits.h> exists even on freestanding compilers. */
37342 # include <limits.h>
37344 # include <assert.h>
37349 /* Override any gcc2 internal prototype to avoid an error. */
37354 /* We use char because int might match the return type of a gcc2
37355 builtin and then its argument prototype would still apply. */
37357 /* The GNU C library defines this for functions which it implements
37358 to always fail with ENOSYS. Some functions are actually named
37359 something starting with __ and the normal name is an alias. */
37360 #if defined (__stub_crypt) || defined (__stub___crypt)
37363 char (*f) () = crypt;
37377 rm -f conftest.$ac_objext conftest$ac_exeext
37378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37379 (eval $ac_link) 2>conftest.er1
37381 grep -v '^ *+' conftest.er1 >conftest.err
37383 cat conftest.err >&5
37384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37385 (exit $ac_status); } &&
37386 { ac_try='test -z "$ac_c_werror_flag"
37387 || test ! -s conftest.err'
37388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37389 (eval $ac_try) 2>&5
37391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392 (exit $ac_status); }; } &&
37393 { ac_try='test -s conftest$ac_exeext'
37394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37395 (eval $ac_try) 2>&5
37397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37398 (exit $ac_status); }; }; then
37399 ac_cv_func_crypt=yes
37401 echo "$as_me: failed program was:" >&5
37402 sed 's/^/| /' conftest.$ac_ext >&5
37404 ac_cv_func_crypt=no
37406 rm -f conftest.err conftest.$ac_objext \
37407 conftest$ac_exeext conftest.$ac_ext
37409 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37410 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37411 if test $ac_cv_func_crypt = yes; then
37416 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37417 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37418 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37419 echo $ECHO_N "(cached) $ECHO_C" >&6
37421 ac_check_lib_save_LIBS=$LIBS
37422 LIBS="-lcrypt $LIBS"
37423 cat >conftest.$ac_ext <<_ACEOF
37426 cat confdefs.h >>conftest.$ac_ext
37427 cat >>conftest.$ac_ext <<_ACEOF
37428 /* end confdefs.h. */
37430 /* Override any gcc2 internal prototype to avoid an error. */
37434 /* We use char because int might match the return type of a gcc2
37435 builtin and then its argument prototype would still apply. */
37445 rm -f conftest.$ac_objext conftest$ac_exeext
37446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37447 (eval $ac_link) 2>conftest.er1
37449 grep -v '^ *+' conftest.er1 >conftest.err
37451 cat conftest.err >&5
37452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453 (exit $ac_status); } &&
37454 { ac_try='test -z "$ac_c_werror_flag"
37455 || test ! -s conftest.err'
37456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37457 (eval $ac_try) 2>&5
37459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460 (exit $ac_status); }; } &&
37461 { ac_try='test -s conftest$ac_exeext'
37462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37463 (eval $ac_try) 2>&5
37465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37466 (exit $ac_status); }; }; then
37467 ac_cv_lib_crypt_crypt=yes
37469 echo "$as_me: failed program was:" >&5
37470 sed 's/^/| /' conftest.$ac_ext >&5
37472 ac_cv_lib_crypt_crypt=no
37474 rm -f conftest.err conftest.$ac_objext \
37475 conftest$ac_exeext conftest.$ac_ext
37476 LIBS=$ac_check_lib_save_LIBS
37478 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37479 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37480 if test $ac_cv_lib_crypt_crypt = yes; then
37481 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37492 if test $have_crypt = yes ; then
37494 cat >>confdefs.h <<\_ACEOF
37495 #define HAVE_CRYPT 1
37499 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37500 echo "$as_me: WARNING: could not find crypt" >&2;}
37501 if test $ol_enable_crypt = yes ; then
37502 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37503 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37504 { (exit 1); exit 1; }; }
37507 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37508 echo "$as_me: WARNING: disabling crypt support" >&2;}
37513 if test $ol_enable_proctitle != no ; then
37514 echo "$as_me:$LINENO: checking for setproctitle" >&5
37515 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37516 if test "${ac_cv_func_setproctitle+set}" = set; then
37517 echo $ECHO_N "(cached) $ECHO_C" >&6
37519 cat >conftest.$ac_ext <<_ACEOF
37522 cat confdefs.h >>conftest.$ac_ext
37523 cat >>conftest.$ac_ext <<_ACEOF
37524 /* end confdefs.h. */
37525 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37527 #define setproctitle innocuous_setproctitle
37529 /* System header to define __stub macros and hopefully few prototypes,
37530 which can conflict with char setproctitle (); below.
37531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37532 <limits.h> exists even on freestanding compilers. */
37535 # include <limits.h>
37537 # include <assert.h>
37540 #undef setproctitle
37542 /* Override any gcc2 internal prototype to avoid an error. */
37547 /* We use char because int might match the return type of a gcc2
37548 builtin and then its argument prototype would still apply. */
37549 char setproctitle ();
37550 /* The GNU C library defines this for functions which it implements
37551 to always fail with ENOSYS. Some functions are actually named
37552 something starting with __ and the normal name is an alias. */
37553 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37556 char (*f) () = setproctitle;
37565 return f != setproctitle;
37570 rm -f conftest.$ac_objext conftest$ac_exeext
37571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37572 (eval $ac_link) 2>conftest.er1
37574 grep -v '^ *+' conftest.er1 >conftest.err
37576 cat conftest.err >&5
37577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37578 (exit $ac_status); } &&
37579 { ac_try='test -z "$ac_c_werror_flag"
37580 || test ! -s conftest.err'
37581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37582 (eval $ac_try) 2>&5
37584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37585 (exit $ac_status); }; } &&
37586 { ac_try='test -s conftest$ac_exeext'
37587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37588 (eval $ac_try) 2>&5
37590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591 (exit $ac_status); }; }; then
37592 ac_cv_func_setproctitle=yes
37594 echo "$as_me: failed program was:" >&5
37595 sed 's/^/| /' conftest.$ac_ext >&5
37597 ac_cv_func_setproctitle=no
37599 rm -f conftest.err conftest.$ac_objext \
37600 conftest$ac_exeext conftest.$ac_ext
37602 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37603 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37604 if test $ac_cv_func_setproctitle = yes; then
37605 have_setproctitle=yes
37608 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37609 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37610 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37611 echo $ECHO_N "(cached) $ECHO_C" >&6
37613 ac_check_lib_save_LIBS=$LIBS
37614 LIBS="-lutil $LIBS"
37615 cat >conftest.$ac_ext <<_ACEOF
37618 cat confdefs.h >>conftest.$ac_ext
37619 cat >>conftest.$ac_ext <<_ACEOF
37620 /* end confdefs.h. */
37622 /* Override any gcc2 internal prototype to avoid an error. */
37626 /* We use char because int might match the return type of a gcc2
37627 builtin and then its argument prototype would still apply. */
37628 char setproctitle ();
37637 rm -f conftest.$ac_objext conftest$ac_exeext
37638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37639 (eval $ac_link) 2>conftest.er1
37641 grep -v '^ *+' conftest.er1 >conftest.err
37643 cat conftest.err >&5
37644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37645 (exit $ac_status); } &&
37646 { ac_try='test -z "$ac_c_werror_flag"
37647 || test ! -s conftest.err'
37648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37649 (eval $ac_try) 2>&5
37651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37652 (exit $ac_status); }; } &&
37653 { ac_try='test -s conftest$ac_exeext'
37654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37655 (eval $ac_try) 2>&5
37657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658 (exit $ac_status); }; }; then
37659 ac_cv_lib_util_setproctitle=yes
37661 echo "$as_me: failed program was:" >&5
37662 sed 's/^/| /' conftest.$ac_ext >&5
37664 ac_cv_lib_util_setproctitle=no
37666 rm -f conftest.err conftest.$ac_objext \
37667 conftest$ac_exeext conftest.$ac_ext
37668 LIBS=$ac_check_lib_save_LIBS
37670 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37671 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37672 if test $ac_cv_lib_util_setproctitle = yes; then
37673 have_setproctitle=yes
37674 LUTIL_LIBS="$LUTIL_LIBS -lutil"
37676 have_setproctitle=no
37678 "setproctitle.$ac_objext" | \
37679 *" setproctitle.$ac_objext" | \
37680 "setproctitle.$ac_objext "* | \
37681 *" setproctitle.$ac_objext "* ) ;;
37682 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37685 LIBSRCS="$LIBSRCS setproctitle.c"
37691 if test $have_setproctitle = yes ; then
37693 cat >>confdefs.h <<\_ACEOF
37694 #define HAVE_SETPROCTITLE 1
37700 if test $ol_enable_slp != no ; then
37702 for ac_header in slp.h
37704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37706 echo "$as_me:$LINENO: checking for $ac_header" >&5
37707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37709 echo $ECHO_N "(cached) $ECHO_C" >&6
37711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37714 # Is the header compilable?
37715 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37717 cat >conftest.$ac_ext <<_ACEOF
37720 cat confdefs.h >>conftest.$ac_ext
37721 cat >>conftest.$ac_ext <<_ACEOF
37722 /* end confdefs.h. */
37723 $ac_includes_default
37724 #include <$ac_header>
37726 rm -f conftest.$ac_objext
37727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37728 (eval $ac_compile) 2>conftest.er1
37730 grep -v '^ *+' conftest.er1 >conftest.err
37732 cat conftest.err >&5
37733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37734 (exit $ac_status); } &&
37735 { ac_try='test -z "$ac_c_werror_flag"
37736 || test ! -s conftest.err'
37737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37738 (eval $ac_try) 2>&5
37740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741 (exit $ac_status); }; } &&
37742 { ac_try='test -s conftest.$ac_objext'
37743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37744 (eval $ac_try) 2>&5
37746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37747 (exit $ac_status); }; }; then
37748 ac_header_compiler=yes
37750 echo "$as_me: failed program was:" >&5
37751 sed 's/^/| /' conftest.$ac_ext >&5
37753 ac_header_compiler=no
37755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37757 echo "${ECHO_T}$ac_header_compiler" >&6
37759 # Is the header present?
37760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37762 cat >conftest.$ac_ext <<_ACEOF
37765 cat confdefs.h >>conftest.$ac_ext
37766 cat >>conftest.$ac_ext <<_ACEOF
37767 /* end confdefs.h. */
37768 #include <$ac_header>
37770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37773 grep -v '^ *+' conftest.er1 >conftest.err
37775 cat conftest.err >&5
37776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37777 (exit $ac_status); } >/dev/null; then
37778 if test -s conftest.err; then
37779 ac_cpp_err=$ac_c_preproc_warn_flag
37780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37787 if test -z "$ac_cpp_err"; then
37788 ac_header_preproc=yes
37790 echo "$as_me: failed program was:" >&5
37791 sed 's/^/| /' conftest.$ac_ext >&5
37793 ac_header_preproc=no
37795 rm -f conftest.err conftest.$ac_ext
37796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37797 echo "${ECHO_T}$ac_header_preproc" >&6
37799 # So? What about this header?
37800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37806 ac_header_preproc=yes
37809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37823 ## --------------------------------------------- ##
37824 ## Report this to <http://www.openldap.org/its/> ##
37825 ## --------------------------------------------- ##
37828 sed "s/^/$as_me: WARNING: /" >&2
37831 echo "$as_me:$LINENO: checking for $ac_header" >&5
37832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37834 echo $ECHO_N "(cached) $ECHO_C" >&6
37836 eval "$as_ac_Header=\$ac_header_preproc"
37838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37843 cat >>confdefs.h <<_ACEOF
37844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37852 if test $ac_cv_header_slp_h = yes ; then
37853 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
37854 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
37855 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
37856 echo $ECHO_N "(cached) $ECHO_C" >&6
37858 ac_check_lib_save_LIBS=$LIBS
37860 cat >conftest.$ac_ext <<_ACEOF
37863 cat confdefs.h >>conftest.$ac_ext
37864 cat >>conftest.$ac_ext <<_ACEOF
37865 /* end confdefs.h. */
37867 /* Override any gcc2 internal prototype to avoid an error. */
37871 /* We use char because int might match the return type of a gcc2
37872 builtin and then its argument prototype would still apply. */
37882 rm -f conftest.$ac_objext conftest$ac_exeext
37883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37884 (eval $ac_link) 2>conftest.er1
37886 grep -v '^ *+' conftest.er1 >conftest.err
37888 cat conftest.err >&5
37889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37890 (exit $ac_status); } &&
37891 { ac_try='test -z "$ac_c_werror_flag"
37892 || test ! -s conftest.err'
37893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37894 (eval $ac_try) 2>&5
37896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37897 (exit $ac_status); }; } &&
37898 { ac_try='test -s conftest$ac_exeext'
37899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37900 (eval $ac_try) 2>&5
37902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37903 (exit $ac_status); }; }; then
37904 ac_cv_lib_slp_SLPOpen=yes
37906 echo "$as_me: failed program was:" >&5
37907 sed 's/^/| /' conftest.$ac_ext >&5
37909 ac_cv_lib_slp_SLPOpen=no
37911 rm -f conftest.err conftest.$ac_objext \
37912 conftest$ac_exeext conftest.$ac_ext
37913 LIBS=$ac_check_lib_save_LIBS
37915 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
37916 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
37917 if test $ac_cv_lib_slp_SLPOpen = yes; then
37923 if test $have_slp = yes ; then
37925 cat >>confdefs.h <<\_ACEOF
37929 SLAPD_SLP_LIBS=-lslp
37932 elif test $ol_enable_slp = yes ; then
37933 { { echo "$as_me:$LINENO: error: SLP not found" >&5
37934 echo "$as_me: error: SLP not found" >&2;}
37935 { (exit 1); exit 1; }; }
37939 if test "$ol_with_multiple_precision" != "no" ; then
37945 for ac_header in openssl/bn.h bn.h
37947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37949 echo "$as_me:$LINENO: checking for $ac_header" >&5
37950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37952 echo $ECHO_N "(cached) $ECHO_C" >&6
37954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37957 # Is the header compilable?
37958 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37960 cat >conftest.$ac_ext <<_ACEOF
37963 cat confdefs.h >>conftest.$ac_ext
37964 cat >>conftest.$ac_ext <<_ACEOF
37965 /* end confdefs.h. */
37966 $ac_includes_default
37967 #include <$ac_header>
37969 rm -f conftest.$ac_objext
37970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37971 (eval $ac_compile) 2>conftest.er1
37973 grep -v '^ *+' conftest.er1 >conftest.err
37975 cat conftest.err >&5
37976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977 (exit $ac_status); } &&
37978 { ac_try='test -z "$ac_c_werror_flag"
37979 || test ! -s conftest.err'
37980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37981 (eval $ac_try) 2>&5
37983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37984 (exit $ac_status); }; } &&
37985 { ac_try='test -s conftest.$ac_objext'
37986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37987 (eval $ac_try) 2>&5
37989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37990 (exit $ac_status); }; }; then
37991 ac_header_compiler=yes
37993 echo "$as_me: failed program was:" >&5
37994 sed 's/^/| /' conftest.$ac_ext >&5
37996 ac_header_compiler=no
37998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38000 echo "${ECHO_T}$ac_header_compiler" >&6
38002 # Is the header present?
38003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38005 cat >conftest.$ac_ext <<_ACEOF
38008 cat confdefs.h >>conftest.$ac_ext
38009 cat >>conftest.$ac_ext <<_ACEOF
38010 /* end confdefs.h. */
38011 #include <$ac_header>
38013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38016 grep -v '^ *+' conftest.er1 >conftest.err
38018 cat conftest.err >&5
38019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38020 (exit $ac_status); } >/dev/null; then
38021 if test -s conftest.err; then
38022 ac_cpp_err=$ac_c_preproc_warn_flag
38023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38030 if test -z "$ac_cpp_err"; then
38031 ac_header_preproc=yes
38033 echo "$as_me: failed program was:" >&5
38034 sed 's/^/| /' conftest.$ac_ext >&5
38036 ac_header_preproc=no
38038 rm -f conftest.err conftest.$ac_ext
38039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38040 echo "${ECHO_T}$ac_header_preproc" >&6
38042 # So? What about this header?
38043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38048 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38049 ac_header_preproc=yes
38052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38053 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38055 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38056 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38057 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38058 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38059 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38062 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38063 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38066 ## --------------------------------------------- ##
38067 ## Report this to <http://www.openldap.org/its/> ##
38068 ## --------------------------------------------- ##
38071 sed "s/^/$as_me: WARNING: /" >&2
38074 echo "$as_me:$LINENO: checking for $ac_header" >&5
38075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38077 echo $ECHO_N "(cached) $ECHO_C" >&6
38079 eval "$as_ac_Header=\$ac_header_preproc"
38081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38086 cat >>confdefs.h <<_ACEOF
38087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38096 for ac_header in openssl/crypto.h crypto.h
38098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38100 echo "$as_me:$LINENO: checking for $ac_header" >&5
38101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38103 echo $ECHO_N "(cached) $ECHO_C" >&6
38105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38108 # Is the header compilable?
38109 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38111 cat >conftest.$ac_ext <<_ACEOF
38114 cat confdefs.h >>conftest.$ac_ext
38115 cat >>conftest.$ac_ext <<_ACEOF
38116 /* end confdefs.h. */
38117 $ac_includes_default
38118 #include <$ac_header>
38120 rm -f conftest.$ac_objext
38121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38122 (eval $ac_compile) 2>conftest.er1
38124 grep -v '^ *+' conftest.er1 >conftest.err
38126 cat conftest.err >&5
38127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128 (exit $ac_status); } &&
38129 { ac_try='test -z "$ac_c_werror_flag"
38130 || test ! -s conftest.err'
38131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38132 (eval $ac_try) 2>&5
38134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38135 (exit $ac_status); }; } &&
38136 { ac_try='test -s conftest.$ac_objext'
38137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38138 (eval $ac_try) 2>&5
38140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141 (exit $ac_status); }; }; then
38142 ac_header_compiler=yes
38144 echo "$as_me: failed program was:" >&5
38145 sed 's/^/| /' conftest.$ac_ext >&5
38147 ac_header_compiler=no
38149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38151 echo "${ECHO_T}$ac_header_compiler" >&6
38153 # Is the header present?
38154 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38156 cat >conftest.$ac_ext <<_ACEOF
38159 cat confdefs.h >>conftest.$ac_ext
38160 cat >>conftest.$ac_ext <<_ACEOF
38161 /* end confdefs.h. */
38162 #include <$ac_header>
38164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38167 grep -v '^ *+' conftest.er1 >conftest.err
38169 cat conftest.err >&5
38170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38171 (exit $ac_status); } >/dev/null; then
38172 if test -s conftest.err; then
38173 ac_cpp_err=$ac_c_preproc_warn_flag
38174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38181 if test -z "$ac_cpp_err"; then
38182 ac_header_preproc=yes
38184 echo "$as_me: failed program was:" >&5
38185 sed 's/^/| /' conftest.$ac_ext >&5
38187 ac_header_preproc=no
38189 rm -f conftest.err conftest.$ac_ext
38190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38191 echo "${ECHO_T}$ac_header_preproc" >&6
38193 # So? What about this header?
38194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38200 ac_header_preproc=yes
38203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38217 ## --------------------------------------------- ##
38218 ## Report this to <http://www.openldap.org/its/> ##
38219 ## --------------------------------------------- ##
38222 sed "s/^/$as_me: WARNING: /" >&2
38225 echo "$as_me:$LINENO: checking for $ac_header" >&5
38226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38228 echo $ECHO_N "(cached) $ECHO_C" >&6
38230 eval "$as_ac_Header=\$ac_header_preproc"
38232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38237 cat >>confdefs.h <<_ACEOF
38238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38246 for ac_header in gmp.h
38248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38250 echo "$as_me:$LINENO: checking for $ac_header" >&5
38251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38253 echo $ECHO_N "(cached) $ECHO_C" >&6
38255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38258 # Is the header compilable?
38259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38261 cat >conftest.$ac_ext <<_ACEOF
38264 cat confdefs.h >>conftest.$ac_ext
38265 cat >>conftest.$ac_ext <<_ACEOF
38266 /* end confdefs.h. */
38267 $ac_includes_default
38268 #include <$ac_header>
38270 rm -f conftest.$ac_objext
38271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38272 (eval $ac_compile) 2>conftest.er1
38274 grep -v '^ *+' conftest.er1 >conftest.err
38276 cat conftest.err >&5
38277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38278 (exit $ac_status); } &&
38279 { ac_try='test -z "$ac_c_werror_flag"
38280 || test ! -s conftest.err'
38281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38282 (eval $ac_try) 2>&5
38284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38285 (exit $ac_status); }; } &&
38286 { ac_try='test -s conftest.$ac_objext'
38287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38288 (eval $ac_try) 2>&5
38290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291 (exit $ac_status); }; }; then
38292 ac_header_compiler=yes
38294 echo "$as_me: failed program was:" >&5
38295 sed 's/^/| /' conftest.$ac_ext >&5
38297 ac_header_compiler=no
38299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38301 echo "${ECHO_T}$ac_header_compiler" >&6
38303 # Is the header present?
38304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38306 cat >conftest.$ac_ext <<_ACEOF
38309 cat confdefs.h >>conftest.$ac_ext
38310 cat >>conftest.$ac_ext <<_ACEOF
38311 /* end confdefs.h. */
38312 #include <$ac_header>
38314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38317 grep -v '^ *+' conftest.er1 >conftest.err
38319 cat conftest.err >&5
38320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38321 (exit $ac_status); } >/dev/null; then
38322 if test -s conftest.err; then
38323 ac_cpp_err=$ac_c_preproc_warn_flag
38324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38331 if test -z "$ac_cpp_err"; then
38332 ac_header_preproc=yes
38334 echo "$as_me: failed program was:" >&5
38335 sed 's/^/| /' conftest.$ac_ext >&5
38337 ac_header_preproc=no
38339 rm -f conftest.err conftest.$ac_ext
38340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38341 echo "${ECHO_T}$ac_header_preproc" >&6
38343 # So? What about this header?
38344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38350 ac_header_preproc=yes
38353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38367 ## --------------------------------------------- ##
38368 ## Report this to <http://www.openldap.org/its/> ##
38369 ## --------------------------------------------- ##
38372 sed "s/^/$as_me: WARNING: /" >&2
38375 echo "$as_me:$LINENO: checking for $ac_header" >&5
38376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38378 echo $ECHO_N "(cached) $ECHO_C" >&6
38380 eval "$as_ac_Header=\$ac_header_preproc"
38382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38387 cat >>confdefs.h <<_ACEOF
38388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38396 if test "$ol_with_tls" = "found" ; then
38398 ol_have_crypto_h=no
38400 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38401 test "$ac_cv_header_bn_h" = "yes" ; then
38405 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38406 test "$ac_cv_header_crypto_h" = "yes" ; then
38407 ol_have_crypto_h=yes
38410 if test "$ol_have_bn_h" = "yes" &&
38411 test "$ol_have_crypto_h" = "yes" ; then
38416 if test $ac_cv_header_gmp_h = yes ; then
38417 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38418 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38419 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38420 echo $ECHO_N "(cached) $ECHO_C" >&6
38422 ac_check_lib_save_LIBS=$LIBS
38424 cat >conftest.$ac_ext <<_ACEOF
38427 cat confdefs.h >>conftest.$ac_ext
38428 cat >>conftest.$ac_ext <<_ACEOF
38429 /* end confdefs.h. */
38431 /* Override any gcc2 internal prototype to avoid an error. */
38435 /* We use char because int might match the return type of a gcc2
38436 builtin and then its argument prototype would still apply. */
38437 char __gmpz_add_ui ();
38446 rm -f conftest.$ac_objext conftest$ac_exeext
38447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38448 (eval $ac_link) 2>conftest.er1
38450 grep -v '^ *+' conftest.er1 >conftest.err
38452 cat conftest.err >&5
38453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38454 (exit $ac_status); } &&
38455 { ac_try='test -z "$ac_c_werror_flag"
38456 || test ! -s conftest.err'
38457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38458 (eval $ac_try) 2>&5
38460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38461 (exit $ac_status); }; } &&
38462 { ac_try='test -s conftest$ac_exeext'
38463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38464 (eval $ac_try) 2>&5
38466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38467 (exit $ac_status); }; }; then
38468 ac_cv_lib_gmp___gmpz_add_ui=yes
38470 echo "$as_me: failed program was:" >&5
38471 sed 's/^/| /' conftest.$ac_ext >&5
38473 ac_cv_lib_gmp___gmpz_add_ui=no
38475 rm -f conftest.err conftest.$ac_objext \
38476 conftest$ac_exeext conftest.$ac_ext
38477 LIBS=$ac_check_lib_save_LIBS
38479 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38480 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38481 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38487 if test $have_gmp = yes ; then
38492 echo "$as_me:$LINENO: checking for multiple precision support" >&5
38493 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38495 ol_mp_support="none"
38496 case "$ol_with_multiple_precision" in
38498 if test "$ol_have_bignum" = "yes" ; then
38499 ol_mp_support="bignum"
38501 if test "$ol_have_gmp" = "yes" ; then
38502 ol_mp_support="gmp"
38507 if test "$ol_have_bignum" != "yes" ; then
38508 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38509 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38510 { (exit 1); exit 1; }; }
38512 ol_mp_support="bignum"
38515 if test "$ol_have_gmp" != "yes" ; then
38516 { { echo "$as_me:$LINENO: error: GMP not available" >&5
38517 echo "$as_me: error: GMP not available" >&2;}
38518 { (exit 1); exit 1; }; }
38520 ol_mp_support="gmp"
38523 if test "$ol_have_bignum" = "yes" ; then
38524 ol_mp_support="bignum"
38525 elif test "$ol_have_gmp" = "yes" ; then
38526 ol_mp_support="gmp"
38528 { { echo "$as_me:$LINENO: error: not available" >&5
38529 echo "$as_me: error: not available" >&2;}
38530 { (exit 1); exit 1; }; }
38535 case "$ol_mp_support" in
38538 cat >>confdefs.h <<\_ACEOF
38539 #define HAVE_BIGNUM 1
38545 cat >>confdefs.h <<\_ACEOF
38549 SLAPD_GMP_LIBS=-lgmp
38555 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38556 echo "${ECHO_T}$ol_mp_support" >&6
38560 echo "$as_me:$LINENO: checking for mode_t" >&5
38561 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38562 if test "${ac_cv_type_mode_t+set}" = set; then
38563 echo $ECHO_N "(cached) $ECHO_C" >&6
38565 cat >conftest.$ac_ext <<_ACEOF
38568 cat confdefs.h >>conftest.$ac_ext
38569 cat >>conftest.$ac_ext <<_ACEOF
38570 /* end confdefs.h. */
38571 $ac_includes_default
38577 if (sizeof (mode_t))
38583 rm -f conftest.$ac_objext
38584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38585 (eval $ac_compile) 2>conftest.er1
38587 grep -v '^ *+' conftest.er1 >conftest.err
38589 cat conftest.err >&5
38590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38591 (exit $ac_status); } &&
38592 { ac_try='test -z "$ac_c_werror_flag"
38593 || test ! -s conftest.err'
38594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38595 (eval $ac_try) 2>&5
38597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38598 (exit $ac_status); }; } &&
38599 { ac_try='test -s conftest.$ac_objext'
38600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38601 (eval $ac_try) 2>&5
38603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38604 (exit $ac_status); }; }; then
38605 ac_cv_type_mode_t=yes
38607 echo "$as_me: failed program was:" >&5
38608 sed 's/^/| /' conftest.$ac_ext >&5
38610 ac_cv_type_mode_t=no
38612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38614 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38615 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38616 if test $ac_cv_type_mode_t = yes; then
38620 cat >>confdefs.h <<_ACEOF
38626 echo "$as_me:$LINENO: checking for off_t" >&5
38627 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38628 if test "${ac_cv_type_off_t+set}" = set; then
38629 echo $ECHO_N "(cached) $ECHO_C" >&6
38631 cat >conftest.$ac_ext <<_ACEOF
38634 cat confdefs.h >>conftest.$ac_ext
38635 cat >>conftest.$ac_ext <<_ACEOF
38636 /* end confdefs.h. */
38637 $ac_includes_default
38643 if (sizeof (off_t))
38649 rm -f conftest.$ac_objext
38650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38651 (eval $ac_compile) 2>conftest.er1
38653 grep -v '^ *+' conftest.er1 >conftest.err
38655 cat conftest.err >&5
38656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38657 (exit $ac_status); } &&
38658 { ac_try='test -z "$ac_c_werror_flag"
38659 || test ! -s conftest.err'
38660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38661 (eval $ac_try) 2>&5
38663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664 (exit $ac_status); }; } &&
38665 { ac_try='test -s conftest.$ac_objext'
38666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38667 (eval $ac_try) 2>&5
38669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38670 (exit $ac_status); }; }; then
38671 ac_cv_type_off_t=yes
38673 echo "$as_me: failed program was:" >&5
38674 sed 's/^/| /' conftest.$ac_ext >&5
38676 ac_cv_type_off_t=no
38678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38680 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38681 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38682 if test $ac_cv_type_off_t = yes; then
38686 cat >>confdefs.h <<_ACEOF
38692 echo "$as_me:$LINENO: checking for pid_t" >&5
38693 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38694 if test "${ac_cv_type_pid_t+set}" = set; then
38695 echo $ECHO_N "(cached) $ECHO_C" >&6
38697 cat >conftest.$ac_ext <<_ACEOF
38700 cat confdefs.h >>conftest.$ac_ext
38701 cat >>conftest.$ac_ext <<_ACEOF
38702 /* end confdefs.h. */
38703 $ac_includes_default
38709 if (sizeof (pid_t))
38715 rm -f conftest.$ac_objext
38716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38717 (eval $ac_compile) 2>conftest.er1
38719 grep -v '^ *+' conftest.er1 >conftest.err
38721 cat conftest.err >&5
38722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38723 (exit $ac_status); } &&
38724 { ac_try='test -z "$ac_c_werror_flag"
38725 || test ! -s conftest.err'
38726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38727 (eval $ac_try) 2>&5
38729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38730 (exit $ac_status); }; } &&
38731 { ac_try='test -s conftest.$ac_objext'
38732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38733 (eval $ac_try) 2>&5
38735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38736 (exit $ac_status); }; }; then
38737 ac_cv_type_pid_t=yes
38739 echo "$as_me: failed program was:" >&5
38740 sed 's/^/| /' conftest.$ac_ext >&5
38742 ac_cv_type_pid_t=no
38744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38746 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38747 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38748 if test $ac_cv_type_pid_t = yes; then
38752 cat >>confdefs.h <<_ACEOF
38758 echo "$as_me:$LINENO: checking for ssize_t" >&5
38759 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38760 if test "${ac_cv_type_ssize_t+set}" = set; then
38761 echo $ECHO_N "(cached) $ECHO_C" >&6
38763 cat >conftest.$ac_ext <<_ACEOF
38766 cat confdefs.h >>conftest.$ac_ext
38767 cat >>conftest.$ac_ext <<_ACEOF
38768 /* end confdefs.h. */
38769 $ac_includes_default
38775 if (sizeof (ssize_t))
38781 rm -f conftest.$ac_objext
38782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38783 (eval $ac_compile) 2>conftest.er1
38785 grep -v '^ *+' conftest.er1 >conftest.err
38787 cat conftest.err >&5
38788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38789 (exit $ac_status); } &&
38790 { ac_try='test -z "$ac_c_werror_flag"
38791 || test ! -s conftest.err'
38792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38793 (eval $ac_try) 2>&5
38795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38796 (exit $ac_status); }; } &&
38797 { ac_try='test -s conftest.$ac_objext'
38798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38799 (eval $ac_try) 2>&5
38801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38802 (exit $ac_status); }; }; then
38803 ac_cv_type_ssize_t=yes
38805 echo "$as_me: failed program was:" >&5
38806 sed 's/^/| /' conftest.$ac_ext >&5
38808 ac_cv_type_ssize_t=no
38810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38812 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
38813 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
38814 if test $ac_cv_type_ssize_t = yes; then
38818 cat >>confdefs.h <<_ACEOF
38819 #define ssize_t signed int
38824 echo "$as_me:$LINENO: checking for caddr_t" >&5
38825 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
38826 if test "${ac_cv_type_caddr_t+set}" = set; then
38827 echo $ECHO_N "(cached) $ECHO_C" >&6
38829 cat >conftest.$ac_ext <<_ACEOF
38832 cat confdefs.h >>conftest.$ac_ext
38833 cat >>conftest.$ac_ext <<_ACEOF
38834 /* end confdefs.h. */
38835 $ac_includes_default
38841 if (sizeof (caddr_t))
38847 rm -f conftest.$ac_objext
38848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38849 (eval $ac_compile) 2>conftest.er1
38851 grep -v '^ *+' conftest.er1 >conftest.err
38853 cat conftest.err >&5
38854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855 (exit $ac_status); } &&
38856 { ac_try='test -z "$ac_c_werror_flag"
38857 || test ! -s conftest.err'
38858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38859 (eval $ac_try) 2>&5
38861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38862 (exit $ac_status); }; } &&
38863 { ac_try='test -s conftest.$ac_objext'
38864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38865 (eval $ac_try) 2>&5
38867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38868 (exit $ac_status); }; }; then
38869 ac_cv_type_caddr_t=yes
38871 echo "$as_me: failed program was:" >&5
38872 sed 's/^/| /' conftest.$ac_ext >&5
38874 ac_cv_type_caddr_t=no
38876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38878 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
38879 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
38880 if test $ac_cv_type_caddr_t = yes; then
38884 cat >>confdefs.h <<_ACEOF
38885 #define caddr_t char *
38890 echo "$as_me:$LINENO: checking for size_t" >&5
38891 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
38892 if test "${ac_cv_type_size_t+set}" = set; then
38893 echo $ECHO_N "(cached) $ECHO_C" >&6
38895 cat >conftest.$ac_ext <<_ACEOF
38898 cat confdefs.h >>conftest.$ac_ext
38899 cat >>conftest.$ac_ext <<_ACEOF
38900 /* end confdefs.h. */
38901 $ac_includes_default
38907 if (sizeof (size_t))
38913 rm -f conftest.$ac_objext
38914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38915 (eval $ac_compile) 2>conftest.er1
38917 grep -v '^ *+' conftest.er1 >conftest.err
38919 cat conftest.err >&5
38920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38921 (exit $ac_status); } &&
38922 { ac_try='test -z "$ac_c_werror_flag"
38923 || test ! -s conftest.err'
38924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38925 (eval $ac_try) 2>&5
38927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38928 (exit $ac_status); }; } &&
38929 { ac_try='test -s conftest.$ac_objext'
38930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38931 (eval $ac_try) 2>&5
38933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38934 (exit $ac_status); }; }; then
38935 ac_cv_type_size_t=yes
38937 echo "$as_me: failed program was:" >&5
38938 sed 's/^/| /' conftest.$ac_ext >&5
38940 ac_cv_type_size_t=no
38942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38944 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38945 echo "${ECHO_T}$ac_cv_type_size_t" >&6
38946 if test $ac_cv_type_size_t = yes; then
38950 cat >>confdefs.h <<_ACEOF
38951 #define size_t unsigned
38957 echo "$as_me:$LINENO: checking for long long" >&5
38958 echo $ECHO_N "checking for long long... $ECHO_C" >&6
38959 if test "${ac_cv_type_long_long+set}" = set; then
38960 echo $ECHO_N "(cached) $ECHO_C" >&6
38962 cat >conftest.$ac_ext <<_ACEOF
38965 cat confdefs.h >>conftest.$ac_ext
38966 cat >>conftest.$ac_ext <<_ACEOF
38967 /* end confdefs.h. */
38968 $ac_includes_default
38972 if ((long long *) 0)
38974 if (sizeof (long long))
38980 rm -f conftest.$ac_objext
38981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38982 (eval $ac_compile) 2>conftest.er1
38984 grep -v '^ *+' conftest.er1 >conftest.err
38986 cat conftest.err >&5
38987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38988 (exit $ac_status); } &&
38989 { ac_try='test -z "$ac_c_werror_flag"
38990 || test ! -s conftest.err'
38991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38992 (eval $ac_try) 2>&5
38994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38995 (exit $ac_status); }; } &&
38996 { ac_try='test -s conftest.$ac_objext'
38997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38998 (eval $ac_try) 2>&5
39000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39001 (exit $ac_status); }; }; then
39002 ac_cv_type_long_long=yes
39004 echo "$as_me: failed program was:" >&5
39005 sed 's/^/| /' conftest.$ac_ext >&5
39007 ac_cv_type_long_long=no
39009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39011 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39012 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39013 if test $ac_cv_type_long_long = yes; then
39015 cat >>confdefs.h <<_ACEOF
39016 #define HAVE_LONG_LONG 1
39022 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39023 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39024 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39025 echo $ECHO_N "(cached) $ECHO_C" >&6
39027 cat >conftest.$ac_ext <<_ACEOF
39030 cat confdefs.h >>conftest.$ac_ext
39031 cat >>conftest.$ac_ext <<_ACEOF
39032 /* end confdefs.h. */
39033 $ac_includes_default
39037 if ((ptrdiff_t *) 0)
39039 if (sizeof (ptrdiff_t))
39045 rm -f conftest.$ac_objext
39046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39047 (eval $ac_compile) 2>conftest.er1
39049 grep -v '^ *+' conftest.er1 >conftest.err
39051 cat conftest.err >&5
39052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39053 (exit $ac_status); } &&
39054 { ac_try='test -z "$ac_c_werror_flag"
39055 || test ! -s conftest.err'
39056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39057 (eval $ac_try) 2>&5
39059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39060 (exit $ac_status); }; } &&
39061 { ac_try='test -s conftest.$ac_objext'
39062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39063 (eval $ac_try) 2>&5
39065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39066 (exit $ac_status); }; }; then
39067 ac_cv_type_ptrdiff_t=yes
39069 echo "$as_me: failed program was:" >&5
39070 sed 's/^/| /' conftest.$ac_ext >&5
39072 ac_cv_type_ptrdiff_t=no
39074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39076 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39077 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39078 if test $ac_cv_type_ptrdiff_t = yes; then
39080 cat >>confdefs.h <<_ACEOF
39081 #define HAVE_PTRDIFF_T 1
39088 echo "$as_me:$LINENO: checking for socklen_t" >&5
39089 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39090 if test "${ac_cv_type_socklen_t+set}" = set; then
39091 echo $ECHO_N "(cached) $ECHO_C" >&6
39093 cat >conftest.$ac_ext <<_ACEOF
39096 cat confdefs.h >>conftest.$ac_ext
39097 cat >>conftest.$ac_ext <<_ACEOF
39098 /* end confdefs.h. */
39099 $ac_includes_default
39100 #ifdef HAVE_SYS_SOCKET_H
39101 #include <sys/socket.h>
39108 if ((socklen_t *) 0)
39110 if (sizeof (socklen_t))
39116 rm -f conftest.$ac_objext
39117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39118 (eval $ac_compile) 2>conftest.er1
39120 grep -v '^ *+' conftest.er1 >conftest.err
39122 cat conftest.err >&5
39123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39124 (exit $ac_status); } &&
39125 { ac_try='test -z "$ac_c_werror_flag"
39126 || test ! -s conftest.err'
39127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39128 (eval $ac_try) 2>&5
39130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39131 (exit $ac_status); }; } &&
39132 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
39138 ac_cv_type_socklen_t=yes
39140 echo "$as_me: failed program was:" >&5
39141 sed 's/^/| /' conftest.$ac_ext >&5
39143 ac_cv_type_socklen_t=no
39145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39147 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39148 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39149 if test $ac_cv_type_socklen_t = yes; then
39153 cat >>confdefs.h <<_ACEOF
39154 #define socklen_t int
39160 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39161 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39162 if test "${ac_cv_type_signal+set}" = set; then
39163 echo $ECHO_N "(cached) $ECHO_C" >&6
39165 cat >conftest.$ac_ext <<_ACEOF
39168 cat confdefs.h >>conftest.$ac_ext
39169 cat >>conftest.$ac_ext <<_ACEOF
39170 /* end confdefs.h. */
39171 #include <sys/types.h>
39172 #include <signal.h>
39177 extern "C" void (*signal (int, void (*)(int)))(int);
39179 void (*signal ()) ();
39190 rm -f conftest.$ac_objext
39191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39192 (eval $ac_compile) 2>conftest.er1
39194 grep -v '^ *+' conftest.er1 >conftest.err
39196 cat conftest.err >&5
39197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39198 (exit $ac_status); } &&
39199 { ac_try='test -z "$ac_c_werror_flag"
39200 || test ! -s conftest.err'
39201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39202 (eval $ac_try) 2>&5
39204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39205 (exit $ac_status); }; } &&
39206 { ac_try='test -s conftest.$ac_objext'
39207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39208 (eval $ac_try) 2>&5
39210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39211 (exit $ac_status); }; }; then
39212 ac_cv_type_signal=void
39214 echo "$as_me: failed program was:" >&5
39215 sed 's/^/| /' conftest.$ac_ext >&5
39217 ac_cv_type_signal=int
39219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39221 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39222 echo "${ECHO_T}$ac_cv_type_signal" >&6
39224 cat >>confdefs.h <<_ACEOF
39225 #define RETSIGTYPE $ac_cv_type_signal
39230 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39231 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39232 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39233 echo $ECHO_N "(cached) $ECHO_C" >&6
39235 cat >conftest.$ac_ext <<_ACEOF
39238 cat confdefs.h >>conftest.$ac_ext
39239 cat >>conftest.$ac_ext <<_ACEOF
39240 /* end confdefs.h. */
39241 $ac_includes_default
39242 #include <signal.h>
39248 if ((sig_atomic_t *) 0)
39250 if (sizeof (sig_atomic_t))
39256 rm -f conftest.$ac_objext
39257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39258 (eval $ac_compile) 2>conftest.er1
39260 grep -v '^ *+' conftest.er1 >conftest.err
39262 cat conftest.err >&5
39263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39264 (exit $ac_status); } &&
39265 { ac_try='test -z "$ac_c_werror_flag"
39266 || test ! -s conftest.err'
39267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39268 (eval $ac_try) 2>&5
39270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39271 (exit $ac_status); }; } &&
39272 { ac_try='test -s conftest.$ac_objext'
39273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39274 (eval $ac_try) 2>&5
39276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277 (exit $ac_status); }; }; then
39278 ac_cv_type_sig_atomic_t=yes
39280 echo "$as_me: failed program was:" >&5
39281 sed 's/^/| /' conftest.$ac_ext >&5
39283 ac_cv_type_sig_atomic_t=no
39285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39287 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39288 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39289 if test $ac_cv_type_sig_atomic_t = yes; then
39293 cat >>confdefs.h <<_ACEOF
39294 #define sig_atomic_t int
39300 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39301 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39302 if test "${ac_cv_type_uid_t+set}" = set; then
39303 echo $ECHO_N "(cached) $ECHO_C" >&6
39305 cat >conftest.$ac_ext <<_ACEOF
39308 cat confdefs.h >>conftest.$ac_ext
39309 cat >>conftest.$ac_ext <<_ACEOF
39310 /* end confdefs.h. */
39311 #include <sys/types.h>
39314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39315 $EGREP "uid_t" >/dev/null 2>&1; then
39316 ac_cv_type_uid_t=yes
39318 ac_cv_type_uid_t=no
39323 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39324 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39325 if test $ac_cv_type_uid_t = no; then
39327 cat >>confdefs.h <<\_ACEOF
39332 cat >>confdefs.h <<\_ACEOF
39339 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39340 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39341 if test "${ac_cv_header_time+set}" = set; then
39342 echo $ECHO_N "(cached) $ECHO_C" >&6
39344 cat >conftest.$ac_ext <<_ACEOF
39347 cat confdefs.h >>conftest.$ac_ext
39348 cat >>conftest.$ac_ext <<_ACEOF
39349 /* end confdefs.h. */
39350 #include <sys/types.h>
39351 #include <sys/time.h>
39357 if ((struct tm *) 0)
39363 rm -f conftest.$ac_objext
39364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39365 (eval $ac_compile) 2>conftest.er1
39367 grep -v '^ *+' conftest.er1 >conftest.err
39369 cat conftest.err >&5
39370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39371 (exit $ac_status); } &&
39372 { ac_try='test -z "$ac_c_werror_flag"
39373 || test ! -s conftest.err'
39374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39375 (eval $ac_try) 2>&5
39377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39378 (exit $ac_status); }; } &&
39379 { ac_try='test -s conftest.$ac_objext'
39380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39381 (eval $ac_try) 2>&5
39383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39384 (exit $ac_status); }; }; then
39385 ac_cv_header_time=yes
39387 echo "$as_me: failed program was:" >&5
39388 sed 's/^/| /' conftest.$ac_ext >&5
39390 ac_cv_header_time=no
39392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39394 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39395 echo "${ECHO_T}$ac_cv_header_time" >&6
39396 if test $ac_cv_header_time = yes; then
39398 cat >>confdefs.h <<\_ACEOF
39399 #define TIME_WITH_SYS_TIME 1
39404 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39405 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39406 if test "${ac_cv_struct_tm+set}" = set; then
39407 echo $ECHO_N "(cached) $ECHO_C" >&6
39409 cat >conftest.$ac_ext <<_ACEOF
39412 cat confdefs.h >>conftest.$ac_ext
39413 cat >>conftest.$ac_ext <<_ACEOF
39414 /* end confdefs.h. */
39415 #include <sys/types.h>
39421 struct tm *tp; tp->tm_sec;
39426 rm -f conftest.$ac_objext
39427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39428 (eval $ac_compile) 2>conftest.er1
39430 grep -v '^ *+' conftest.er1 >conftest.err
39432 cat conftest.err >&5
39433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39434 (exit $ac_status); } &&
39435 { ac_try='test -z "$ac_c_werror_flag"
39436 || test ! -s conftest.err'
39437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39438 (eval $ac_try) 2>&5
39440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39441 (exit $ac_status); }; } &&
39442 { ac_try='test -s conftest.$ac_objext'
39443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39444 (eval $ac_try) 2>&5
39446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39447 (exit $ac_status); }; }; then
39448 ac_cv_struct_tm=time.h
39450 echo "$as_me: failed program was:" >&5
39451 sed 's/^/| /' conftest.$ac_ext >&5
39453 ac_cv_struct_tm=sys/time.h
39455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39457 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39458 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39459 if test $ac_cv_struct_tm = sys/time.h; then
39461 cat >>confdefs.h <<\_ACEOF
39462 #define TM_IN_SYS_TIME 1
39467 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39468 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39469 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39470 echo $ECHO_N "(cached) $ECHO_C" >&6
39472 cat >conftest.$ac_ext <<_ACEOF
39475 cat confdefs.h >>conftest.$ac_ext
39476 cat >>conftest.$ac_ext <<_ACEOF
39477 /* end confdefs.h. */
39478 $ac_includes_default
39482 static struct stat ac_aggr;
39483 if (ac_aggr.st_blksize)
39489 rm -f conftest.$ac_objext
39490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39491 (eval $ac_compile) 2>conftest.er1
39493 grep -v '^ *+' conftest.er1 >conftest.err
39495 cat conftest.err >&5
39496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39497 (exit $ac_status); } &&
39498 { ac_try='test -z "$ac_c_werror_flag"
39499 || test ! -s conftest.err'
39500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39501 (eval $ac_try) 2>&5
39503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39504 (exit $ac_status); }; } &&
39505 { ac_try='test -s conftest.$ac_objext'
39506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39507 (eval $ac_try) 2>&5
39509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39510 (exit $ac_status); }; }; then
39511 ac_cv_member_struct_stat_st_blksize=yes
39513 echo "$as_me: failed program was:" >&5
39514 sed 's/^/| /' conftest.$ac_ext >&5
39516 cat >conftest.$ac_ext <<_ACEOF
39519 cat confdefs.h >>conftest.$ac_ext
39520 cat >>conftest.$ac_ext <<_ACEOF
39521 /* end confdefs.h. */
39522 $ac_includes_default
39526 static struct stat ac_aggr;
39527 if (sizeof ac_aggr.st_blksize)
39533 rm -f conftest.$ac_objext
39534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39535 (eval $ac_compile) 2>conftest.er1
39537 grep -v '^ *+' conftest.er1 >conftest.err
39539 cat conftest.err >&5
39540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541 (exit $ac_status); } &&
39542 { ac_try='test -z "$ac_c_werror_flag"
39543 || test ! -s conftest.err'
39544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39545 (eval $ac_try) 2>&5
39547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39548 (exit $ac_status); }; } &&
39549 { ac_try='test -s conftest.$ac_objext'
39550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39551 (eval $ac_try) 2>&5
39553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39554 (exit $ac_status); }; }; then
39555 ac_cv_member_struct_stat_st_blksize=yes
39557 echo "$as_me: failed program was:" >&5
39558 sed 's/^/| /' conftest.$ac_ext >&5
39560 ac_cv_member_struct_stat_st_blksize=no
39562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39566 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39567 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39568 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39570 cat >>confdefs.h <<_ACEOF
39571 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39577 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39578 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39579 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39580 echo $ECHO_N "(cached) $ECHO_C" >&6
39582 cat >conftest.$ac_ext <<_ACEOF
39585 cat confdefs.h >>conftest.$ac_ext
39586 cat >>conftest.$ac_ext <<_ACEOF
39587 /* end confdefs.h. */
39588 $ac_includes_default
39594 static struct passwd ac_aggr;
39595 if (ac_aggr.pw_gecos)
39601 rm -f conftest.$ac_objext
39602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39603 (eval $ac_compile) 2>conftest.er1
39605 grep -v '^ *+' conftest.er1 >conftest.err
39607 cat conftest.err >&5
39608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609 (exit $ac_status); } &&
39610 { ac_try='test -z "$ac_c_werror_flag"
39611 || test ! -s conftest.err'
39612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39613 (eval $ac_try) 2>&5
39615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39616 (exit $ac_status); }; } &&
39617 { ac_try='test -s conftest.$ac_objext'
39618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39619 (eval $ac_try) 2>&5
39621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622 (exit $ac_status); }; }; then
39623 ac_cv_member_struct_passwd_pw_gecos=yes
39625 echo "$as_me: failed program was:" >&5
39626 sed 's/^/| /' conftest.$ac_ext >&5
39628 cat >conftest.$ac_ext <<_ACEOF
39631 cat confdefs.h >>conftest.$ac_ext
39632 cat >>conftest.$ac_ext <<_ACEOF
39633 /* end confdefs.h. */
39634 $ac_includes_default
39640 static struct passwd ac_aggr;
39641 if (sizeof ac_aggr.pw_gecos)
39647 rm -f conftest.$ac_objext
39648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39649 (eval $ac_compile) 2>conftest.er1
39651 grep -v '^ *+' conftest.er1 >conftest.err
39653 cat conftest.err >&5
39654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39655 (exit $ac_status); } &&
39656 { ac_try='test -z "$ac_c_werror_flag"
39657 || test ! -s conftest.err'
39658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39659 (eval $ac_try) 2>&5
39661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39662 (exit $ac_status); }; } &&
39663 { ac_try='test -s conftest.$ac_objext'
39664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39665 (eval $ac_try) 2>&5
39667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39668 (exit $ac_status); }; }; then
39669 ac_cv_member_struct_passwd_pw_gecos=yes
39671 echo "$as_me: failed program was:" >&5
39672 sed 's/^/| /' conftest.$ac_ext >&5
39674 ac_cv_member_struct_passwd_pw_gecos=no
39676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39680 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39681 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39682 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39684 cat >>confdefs.h <<_ACEOF
39685 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39691 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39692 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39693 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39694 echo $ECHO_N "(cached) $ECHO_C" >&6
39696 cat >conftest.$ac_ext <<_ACEOF
39699 cat confdefs.h >>conftest.$ac_ext
39700 cat >>conftest.$ac_ext <<_ACEOF
39701 /* end confdefs.h. */
39702 $ac_includes_default
39708 static struct passwd ac_aggr;
39709 if (ac_aggr.pw_passwd)
39715 rm -f conftest.$ac_objext
39716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39717 (eval $ac_compile) 2>conftest.er1
39719 grep -v '^ *+' conftest.er1 >conftest.err
39721 cat conftest.err >&5
39722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39723 (exit $ac_status); } &&
39724 { ac_try='test -z "$ac_c_werror_flag"
39725 || test ! -s conftest.err'
39726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39727 (eval $ac_try) 2>&5
39729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39730 (exit $ac_status); }; } &&
39731 { ac_try='test -s conftest.$ac_objext'
39732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39733 (eval $ac_try) 2>&5
39735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736 (exit $ac_status); }; }; then
39737 ac_cv_member_struct_passwd_pw_passwd=yes
39739 echo "$as_me: failed program was:" >&5
39740 sed 's/^/| /' conftest.$ac_ext >&5
39742 cat >conftest.$ac_ext <<_ACEOF
39745 cat confdefs.h >>conftest.$ac_ext
39746 cat >>conftest.$ac_ext <<_ACEOF
39747 /* end confdefs.h. */
39748 $ac_includes_default
39754 static struct passwd ac_aggr;
39755 if (sizeof ac_aggr.pw_passwd)
39761 rm -f conftest.$ac_objext
39762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39763 (eval $ac_compile) 2>conftest.er1
39765 grep -v '^ *+' conftest.er1 >conftest.err
39767 cat conftest.err >&5
39768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39769 (exit $ac_status); } &&
39770 { ac_try='test -z "$ac_c_werror_flag"
39771 || test ! -s conftest.err'
39772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39773 (eval $ac_try) 2>&5
39775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39776 (exit $ac_status); }; } &&
39777 { ac_try='test -s conftest.$ac_objext'
39778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39779 (eval $ac_try) 2>&5
39781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39782 (exit $ac_status); }; }; then
39783 ac_cv_member_struct_passwd_pw_passwd=yes
39785 echo "$as_me: failed program was:" >&5
39786 sed 's/^/| /' conftest.$ac_ext >&5
39788 ac_cv_member_struct_passwd_pw_passwd=no
39790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39794 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
39795 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
39796 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
39798 cat >>confdefs.h <<_ACEOF
39799 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
39806 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
39807 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
39808 if test "${ol_cv_c_upper_lower+set}" = set; then
39809 echo $ECHO_N "(cached) $ECHO_C" >&6
39812 if test "$cross_compiling" = yes; then
39813 ol_cv_c_upper_lower=safe
39815 cat >conftest.$ac_ext <<_ACEOF
39818 cat confdefs.h >>conftest.$ac_ext
39819 cat >>conftest.$ac_ext <<_ACEOF
39820 /* end confdefs.h. */
39825 if ('C' == toupper('C'))
39831 rm -f conftest$ac_exeext
39832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39833 (eval $ac_link) 2>&5
39835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39838 (eval $ac_try) 2>&5
39840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39841 (exit $ac_status); }; }; then
39842 ol_cv_c_upper_lower=no
39844 echo "$as_me: program exited with status $ac_status" >&5
39845 echo "$as_me: failed program was:" >&5
39846 sed 's/^/| /' conftest.$ac_ext >&5
39848 ( exit $ac_status )
39849 ol_cv_c_upper_lower=yes
39851 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39854 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
39855 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
39856 if test $ol_cv_c_upper_lower != no ; then
39858 cat >>confdefs.h <<\_ACEOF
39859 #define C_UPPER_LOWER 1
39864 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
39865 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
39866 if test "${ac_cv_c_const+set}" = set; then
39867 echo $ECHO_N "(cached) $ECHO_C" >&6
39869 cat >conftest.$ac_ext <<_ACEOF
39872 cat confdefs.h >>conftest.$ac_ext
39873 cat >>conftest.$ac_ext <<_ACEOF
39874 /* end confdefs.h. */
39879 /* FIXME: Include the comments suggested by Paul. */
39880 #ifndef __cplusplus
39881 /* Ultrix mips cc rejects this. */
39882 typedef int charset[2];
39884 /* SunOS 4.1.1 cc rejects this. */
39885 char const *const *ccp;
39887 /* NEC SVR4.0.2 mips cc rejects this. */
39888 struct point {int x, y;};
39889 static struct point const zero = {0,0};
39890 /* AIX XL C 1.02.0.0 rejects this.
39891 It does not let you subtract one const X* pointer from another in
39892 an arm of an if-expression whose if-part is not a constant
39894 const char *g = "string";
39895 ccp = &g + (g ? g-g : 0);
39896 /* HPUX 7.0 cc rejects these. */
39899 ccp = (char const *const *) p;
39900 { /* SCO 3.2v4 cc rejects this. */
39902 char const *s = 0 ? (char *) 0 : (char const *) 0;
39906 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
39907 int x[] = {25, 17};
39908 const int *foo = &x[0];
39911 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
39912 typedef const int *iptr;
39916 { /* AIX XL C 1.02.0.0 rejects this saying
39917 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
39918 struct s { int j; const int *ap[3]; };
39919 struct s *b; b->j = 5;
39921 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
39922 const int foo = 10;
39930 rm -f conftest.$ac_objext
39931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39932 (eval $ac_compile) 2>conftest.er1
39934 grep -v '^ *+' conftest.er1 >conftest.err
39936 cat conftest.err >&5
39937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938 (exit $ac_status); } &&
39939 { ac_try='test -z "$ac_c_werror_flag"
39940 || test ! -s conftest.err'
39941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39942 (eval $ac_try) 2>&5
39944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39945 (exit $ac_status); }; } &&
39946 { ac_try='test -s conftest.$ac_objext'
39947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39948 (eval $ac_try) 2>&5
39950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39951 (exit $ac_status); }; }; then
39954 echo "$as_me: failed program was:" >&5
39955 sed 's/^/| /' conftest.$ac_ext >&5
39959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39961 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
39962 echo "${ECHO_T}$ac_cv_c_const" >&6
39963 if test $ac_cv_c_const = no; then
39965 cat >>confdefs.h <<\_ACEOF
39971 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
39972 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
39973 if test "${ol_cv_c_volatile+set}" = set; then
39974 echo $ECHO_N "(cached) $ECHO_C" >&6
39976 cat >conftest.$ac_ext <<_ACEOF
39979 cat confdefs.h >>conftest.$ac_ext
39980 cat >>conftest.$ac_ext <<_ACEOF
39981 /* end confdefs.h. */
39986 volatile int a; int * volatile b = x ? &y : &z;
39987 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
39993 rm -f conftest.$ac_objext
39994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39995 (eval $ac_compile) 2>conftest.er1
39997 grep -v '^ *+' conftest.er1 >conftest.err
39999 cat conftest.err >&5
40000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40001 (exit $ac_status); } &&
40002 { ac_try='test -z "$ac_c_werror_flag"
40003 || test ! -s conftest.err'
40004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40005 (eval $ac_try) 2>&5
40007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40008 (exit $ac_status); }; } &&
40009 { ac_try='test -s conftest.$ac_objext'
40010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40011 (eval $ac_try) 2>&5
40013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014 (exit $ac_status); }; }; then
40015 ol_cv_c_volatile=yes
40017 echo "$as_me: failed program was:" >&5
40018 sed 's/^/| /' conftest.$ac_ext >&5
40020 ol_cv_c_volatile=no
40022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40024 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40025 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40026 if test $ol_cv_c_volatile = yes; then
40030 cat >>confdefs.h <<\_ACEOF
40037 if test $cross_compiling = yes ; then
40038 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40039 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40041 cat >>confdefs.h <<\_ACEOF
40042 #define CROSS_COMPILING 1
40046 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40047 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40048 if test "${ac_cv_c_bigendian+set}" = set; then
40049 echo $ECHO_N "(cached) $ECHO_C" >&6
40051 # See if sys/param.h defines the BYTE_ORDER macro.
40052 cat >conftest.$ac_ext <<_ACEOF
40055 cat confdefs.h >>conftest.$ac_ext
40056 cat >>conftest.$ac_ext <<_ACEOF
40057 /* end confdefs.h. */
40058 #include <sys/types.h>
40059 #include <sys/param.h>
40064 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40065 bogus endian macros
40072 rm -f conftest.$ac_objext
40073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40074 (eval $ac_compile) 2>conftest.er1
40076 grep -v '^ *+' conftest.er1 >conftest.err
40078 cat conftest.err >&5
40079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080 (exit $ac_status); } &&
40081 { ac_try='test -z "$ac_c_werror_flag"
40082 || test ! -s conftest.err'
40083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40084 (eval $ac_try) 2>&5
40086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40087 (exit $ac_status); }; } &&
40088 { ac_try='test -s conftest.$ac_objext'
40089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40090 (eval $ac_try) 2>&5
40092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093 (exit $ac_status); }; }; then
40094 # It does; now see whether it defined to BIG_ENDIAN or not.
40095 cat >conftest.$ac_ext <<_ACEOF
40098 cat confdefs.h >>conftest.$ac_ext
40099 cat >>conftest.$ac_ext <<_ACEOF
40100 /* end confdefs.h. */
40101 #include <sys/types.h>
40102 #include <sys/param.h>
40107 #if BYTE_ORDER != BIG_ENDIAN
40115 rm -f conftest.$ac_objext
40116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40117 (eval $ac_compile) 2>conftest.er1
40119 grep -v '^ *+' conftest.er1 >conftest.err
40121 cat conftest.err >&5
40122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40123 (exit $ac_status); } &&
40124 { ac_try='test -z "$ac_c_werror_flag"
40125 || test ! -s conftest.err'
40126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40127 (eval $ac_try) 2>&5
40129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40130 (exit $ac_status); }; } &&
40131 { ac_try='test -s conftest.$ac_objext'
40132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40133 (eval $ac_try) 2>&5
40135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40136 (exit $ac_status); }; }; then
40137 ac_cv_c_bigendian=yes
40139 echo "$as_me: failed program was:" >&5
40140 sed 's/^/| /' conftest.$ac_ext >&5
40142 ac_cv_c_bigendian=no
40144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40146 echo "$as_me: failed program was:" >&5
40147 sed 's/^/| /' conftest.$ac_ext >&5
40149 # It does not; compile a test program.
40150 if test "$cross_compiling" = yes; then
40151 # try to guess the endianness by grepping values into an object file
40152 ac_cv_c_bigendian=unknown
40153 cat >conftest.$ac_ext <<_ACEOF
40156 cat confdefs.h >>conftest.$ac_ext
40157 cat >>conftest.$ac_ext <<_ACEOF
40158 /* end confdefs.h. */
40159 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40160 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40161 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40162 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40163 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40164 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40168 _ascii (); _ebcdic ();
40173 rm -f conftest.$ac_objext
40174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40175 (eval $ac_compile) 2>conftest.er1
40177 grep -v '^ *+' conftest.er1 >conftest.err
40179 cat conftest.err >&5
40180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40181 (exit $ac_status); } &&
40182 { ac_try='test -z "$ac_c_werror_flag"
40183 || test ! -s conftest.err'
40184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40185 (eval $ac_try) 2>&5
40187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40188 (exit $ac_status); }; } &&
40189 { ac_try='test -s conftest.$ac_objext'
40190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40191 (eval $ac_try) 2>&5
40193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40194 (exit $ac_status); }; }; then
40195 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40196 ac_cv_c_bigendian=yes
40198 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40199 if test "$ac_cv_c_bigendian" = unknown; then
40200 ac_cv_c_bigendian=no
40202 # finding both strings is unlikely to happen, but who knows?
40203 ac_cv_c_bigendian=unknown
40207 echo "$as_me: failed program was:" >&5
40208 sed 's/^/| /' conftest.$ac_ext >&5
40211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40213 cat >conftest.$ac_ext <<_ACEOF
40216 cat confdefs.h >>conftest.$ac_ext
40217 cat >>conftest.$ac_ext <<_ACEOF
40218 /* end confdefs.h. */
40222 /* Are we little or big endian? From Harbison&Steele. */
40226 char c[sizeof (long)];
40229 exit (u.c[sizeof (long) - 1] == 1);
40232 rm -f conftest$ac_exeext
40233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40234 (eval $ac_link) 2>&5
40236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40239 (eval $ac_try) 2>&5
40241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40242 (exit $ac_status); }; }; then
40243 ac_cv_c_bigendian=no
40245 echo "$as_me: program exited with status $ac_status" >&5
40246 echo "$as_me: failed program was:" >&5
40247 sed 's/^/| /' conftest.$ac_ext >&5
40249 ( exit $ac_status )
40250 ac_cv_c_bigendian=yes
40252 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40257 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40258 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40259 case $ac_cv_c_bigendian in
40262 cat >>confdefs.h <<\_ACEOF
40263 #define WORDS_BIGENDIAN 1
40269 { { echo "$as_me:$LINENO: error: unknown endianness
40270 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40271 echo "$as_me: error: unknown endianness
40272 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40273 { (exit 1); exit 1; }; } ;;
40278 echo "$as_me:$LINENO: checking for short" >&5
40279 echo $ECHO_N "checking for short... $ECHO_C" >&6
40280 if test "${ac_cv_type_short+set}" = set; then
40281 echo $ECHO_N "(cached) $ECHO_C" >&6
40283 cat >conftest.$ac_ext <<_ACEOF
40286 cat confdefs.h >>conftest.$ac_ext
40287 cat >>conftest.$ac_ext <<_ACEOF
40288 /* end confdefs.h. */
40289 $ac_includes_default
40295 if (sizeof (short))
40301 rm -f conftest.$ac_objext
40302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40303 (eval $ac_compile) 2>conftest.er1
40305 grep -v '^ *+' conftest.er1 >conftest.err
40307 cat conftest.err >&5
40308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40309 (exit $ac_status); } &&
40310 { ac_try='test -z "$ac_c_werror_flag"
40311 || test ! -s conftest.err'
40312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40313 (eval $ac_try) 2>&5
40315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316 (exit $ac_status); }; } &&
40317 { ac_try='test -s conftest.$ac_objext'
40318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40319 (eval $ac_try) 2>&5
40321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40322 (exit $ac_status); }; }; then
40323 ac_cv_type_short=yes
40325 echo "$as_me: failed program was:" >&5
40326 sed 's/^/| /' conftest.$ac_ext >&5
40328 ac_cv_type_short=no
40330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40332 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40333 echo "${ECHO_T}$ac_cv_type_short" >&6
40335 echo "$as_me:$LINENO: checking size of short" >&5
40336 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40337 if test "${ac_cv_sizeof_short+set}" = set; then
40338 echo $ECHO_N "(cached) $ECHO_C" >&6
40340 if test "$ac_cv_type_short" = yes; then
40341 # The cast to unsigned long works around a bug in the HP C Compiler
40342 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40343 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40344 # This bug is HP SR number 8606223364.
40345 if test "$cross_compiling" = yes; then
40346 # Depending upon the size, compute the lo and hi bounds.
40347 cat >conftest.$ac_ext <<_ACEOF
40350 cat confdefs.h >>conftest.$ac_ext
40351 cat >>conftest.$ac_ext <<_ACEOF
40352 /* end confdefs.h. */
40353 $ac_includes_default
40357 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40364 rm -f conftest.$ac_objext
40365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40366 (eval $ac_compile) 2>conftest.er1
40368 grep -v '^ *+' conftest.er1 >conftest.err
40370 cat conftest.err >&5
40371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40372 (exit $ac_status); } &&
40373 { ac_try='test -z "$ac_c_werror_flag"
40374 || test ! -s conftest.err'
40375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40376 (eval $ac_try) 2>&5
40378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40379 (exit $ac_status); }; } &&
40380 { ac_try='test -s conftest.$ac_objext'
40381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40382 (eval $ac_try) 2>&5
40384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40385 (exit $ac_status); }; }; then
40388 cat >conftest.$ac_ext <<_ACEOF
40391 cat confdefs.h >>conftest.$ac_ext
40392 cat >>conftest.$ac_ext <<_ACEOF
40393 /* end confdefs.h. */
40394 $ac_includes_default
40398 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40405 rm -f conftest.$ac_objext
40406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40407 (eval $ac_compile) 2>conftest.er1
40409 grep -v '^ *+' conftest.er1 >conftest.err
40411 cat conftest.err >&5
40412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40413 (exit $ac_status); } &&
40414 { ac_try='test -z "$ac_c_werror_flag"
40415 || test ! -s conftest.err'
40416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40417 (eval $ac_try) 2>&5
40419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420 (exit $ac_status); }; } &&
40421 { ac_try='test -s conftest.$ac_objext'
40422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40423 (eval $ac_try) 2>&5
40425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40426 (exit $ac_status); }; }; then
40427 ac_hi=$ac_mid; break
40429 echo "$as_me: failed program was:" >&5
40430 sed 's/^/| /' conftest.$ac_ext >&5
40432 ac_lo=`expr $ac_mid + 1`
40433 if test $ac_lo -le $ac_mid; then
40437 ac_mid=`expr 2 '*' $ac_mid + 1`
40439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40442 echo "$as_me: failed program was:" >&5
40443 sed 's/^/| /' conftest.$ac_ext >&5
40445 cat >conftest.$ac_ext <<_ACEOF
40448 cat confdefs.h >>conftest.$ac_ext
40449 cat >>conftest.$ac_ext <<_ACEOF
40450 /* end confdefs.h. */
40451 $ac_includes_default
40455 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40462 rm -f conftest.$ac_objext
40463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40464 (eval $ac_compile) 2>conftest.er1
40466 grep -v '^ *+' conftest.er1 >conftest.err
40468 cat conftest.err >&5
40469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40470 (exit $ac_status); } &&
40471 { ac_try='test -z "$ac_c_werror_flag"
40472 || test ! -s conftest.err'
40473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40474 (eval $ac_try) 2>&5
40476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40477 (exit $ac_status); }; } &&
40478 { ac_try='test -s conftest.$ac_objext'
40479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40480 (eval $ac_try) 2>&5
40482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40483 (exit $ac_status); }; }; then
40486 cat >conftest.$ac_ext <<_ACEOF
40489 cat confdefs.h >>conftest.$ac_ext
40490 cat >>conftest.$ac_ext <<_ACEOF
40491 /* end confdefs.h. */
40492 $ac_includes_default
40496 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40503 rm -f conftest.$ac_objext
40504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40505 (eval $ac_compile) 2>conftest.er1
40507 grep -v '^ *+' conftest.er1 >conftest.err
40509 cat conftest.err >&5
40510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40511 (exit $ac_status); } &&
40512 { ac_try='test -z "$ac_c_werror_flag"
40513 || test ! -s conftest.err'
40514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40515 (eval $ac_try) 2>&5
40517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40518 (exit $ac_status); }; } &&
40519 { ac_try='test -s conftest.$ac_objext'
40520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40521 (eval $ac_try) 2>&5
40523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40524 (exit $ac_status); }; }; then
40525 ac_lo=$ac_mid; break
40527 echo "$as_me: failed program was:" >&5
40528 sed 's/^/| /' conftest.$ac_ext >&5
40530 ac_hi=`expr '(' $ac_mid ')' - 1`
40531 if test $ac_mid -le $ac_hi; then
40535 ac_mid=`expr 2 '*' $ac_mid`
40537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40540 echo "$as_me: failed program was:" >&5
40541 sed 's/^/| /' conftest.$ac_ext >&5
40545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40548 # Binary search between lo and hi bounds.
40549 while test "x$ac_lo" != "x$ac_hi"; do
40550 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40551 cat >conftest.$ac_ext <<_ACEOF
40554 cat confdefs.h >>conftest.$ac_ext
40555 cat >>conftest.$ac_ext <<_ACEOF
40556 /* end confdefs.h. */
40557 $ac_includes_default
40561 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40568 rm -f conftest.$ac_objext
40569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40570 (eval $ac_compile) 2>conftest.er1
40572 grep -v '^ *+' conftest.er1 >conftest.err
40574 cat conftest.err >&5
40575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40576 (exit $ac_status); } &&
40577 { ac_try='test -z "$ac_c_werror_flag"
40578 || test ! -s conftest.err'
40579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40580 (eval $ac_try) 2>&5
40582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40583 (exit $ac_status); }; } &&
40584 { ac_try='test -s conftest.$ac_objext'
40585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40586 (eval $ac_try) 2>&5
40588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40589 (exit $ac_status); }; }; then
40592 echo "$as_me: failed program was:" >&5
40593 sed 's/^/| /' conftest.$ac_ext >&5
40595 ac_lo=`expr '(' $ac_mid ')' + 1`
40597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40600 ?*) ac_cv_sizeof_short=$ac_lo;;
40601 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40602 See \`config.log' for more details." >&5
40603 echo "$as_me: error: cannot compute sizeof (short), 77
40604 See \`config.log' for more details." >&2;}
40605 { (exit 1); exit 1; }; } ;;
40608 if test "$cross_compiling" = yes; then
40609 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40610 See \`config.log' for more details." >&5
40611 echo "$as_me: error: cannot run test program while cross compiling
40612 See \`config.log' for more details." >&2;}
40613 { (exit 1); exit 1; }; }
40615 cat >conftest.$ac_ext <<_ACEOF
40618 cat confdefs.h >>conftest.$ac_ext
40619 cat >>conftest.$ac_ext <<_ACEOF
40620 /* end confdefs.h. */
40621 $ac_includes_default
40622 long longval () { return (long) (sizeof (short)); }
40623 unsigned long ulongval () { return (long) (sizeof (short)); }
40625 #include <stdlib.h>
40630 FILE *f = fopen ("conftest.val", "w");
40633 if (((long) (sizeof (short))) < 0)
40635 long i = longval ();
40636 if (i != ((long) (sizeof (short))))
40638 fprintf (f, "%ld\n", i);
40642 unsigned long i = ulongval ();
40643 if (i != ((long) (sizeof (short))))
40645 fprintf (f, "%lu\n", i);
40647 exit (ferror (f) || fclose (f) != 0);
40653 rm -f conftest$ac_exeext
40654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40655 (eval $ac_link) 2>&5
40657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40660 (eval $ac_try) 2>&5
40662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40663 (exit $ac_status); }; }; then
40664 ac_cv_sizeof_short=`cat conftest.val`
40666 echo "$as_me: program exited with status $ac_status" >&5
40667 echo "$as_me: failed program was:" >&5
40668 sed 's/^/| /' conftest.$ac_ext >&5
40670 ( exit $ac_status )
40671 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40672 See \`config.log' for more details." >&5
40673 echo "$as_me: error: cannot compute sizeof (short), 77
40674 See \`config.log' for more details." >&2;}
40675 { (exit 1); exit 1; }; }
40677 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40682 ac_cv_sizeof_short=0
40685 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40686 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40687 cat >>confdefs.h <<_ACEOF
40688 #define SIZEOF_SHORT $ac_cv_sizeof_short
40692 echo "$as_me:$LINENO: checking for int" >&5
40693 echo $ECHO_N "checking for int... $ECHO_C" >&6
40694 if test "${ac_cv_type_int+set}" = set; then
40695 echo $ECHO_N "(cached) $ECHO_C" >&6
40697 cat >conftest.$ac_ext <<_ACEOF
40700 cat confdefs.h >>conftest.$ac_ext
40701 cat >>conftest.$ac_ext <<_ACEOF
40702 /* end confdefs.h. */
40703 $ac_includes_default
40715 rm -f conftest.$ac_objext
40716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40717 (eval $ac_compile) 2>conftest.er1
40719 grep -v '^ *+' conftest.er1 >conftest.err
40721 cat conftest.err >&5
40722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40723 (exit $ac_status); } &&
40724 { ac_try='test -z "$ac_c_werror_flag"
40725 || test ! -s conftest.err'
40726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40727 (eval $ac_try) 2>&5
40729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40730 (exit $ac_status); }; } &&
40731 { ac_try='test -s conftest.$ac_objext'
40732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40733 (eval $ac_try) 2>&5
40735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40736 (exit $ac_status); }; }; then
40739 echo "$as_me: failed program was:" >&5
40740 sed 's/^/| /' conftest.$ac_ext >&5
40744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40746 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40747 echo "${ECHO_T}$ac_cv_type_int" >&6
40749 echo "$as_me:$LINENO: checking size of int" >&5
40750 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40751 if test "${ac_cv_sizeof_int+set}" = set; then
40752 echo $ECHO_N "(cached) $ECHO_C" >&6
40754 if test "$ac_cv_type_int" = yes; then
40755 # The cast to unsigned long works around a bug in the HP C Compiler
40756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40758 # This bug is HP SR number 8606223364.
40759 if test "$cross_compiling" = yes; then
40760 # Depending upon the size, compute the lo and hi bounds.
40761 cat >conftest.$ac_ext <<_ACEOF
40764 cat confdefs.h >>conftest.$ac_ext
40765 cat >>conftest.$ac_ext <<_ACEOF
40766 /* end confdefs.h. */
40767 $ac_includes_default
40771 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
40778 rm -f conftest.$ac_objext
40779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40780 (eval $ac_compile) 2>conftest.er1
40782 grep -v '^ *+' conftest.er1 >conftest.err
40784 cat conftest.err >&5
40785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40786 (exit $ac_status); } &&
40787 { ac_try='test -z "$ac_c_werror_flag"
40788 || test ! -s conftest.err'
40789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40790 (eval $ac_try) 2>&5
40792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40793 (exit $ac_status); }; } &&
40794 { ac_try='test -s conftest.$ac_objext'
40795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40796 (eval $ac_try) 2>&5
40798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799 (exit $ac_status); }; }; then
40802 cat >conftest.$ac_ext <<_ACEOF
40805 cat confdefs.h >>conftest.$ac_ext
40806 cat >>conftest.$ac_ext <<_ACEOF
40807 /* end confdefs.h. */
40808 $ac_includes_default
40812 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40819 rm -f conftest.$ac_objext
40820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40821 (eval $ac_compile) 2>conftest.er1
40823 grep -v '^ *+' conftest.er1 >conftest.err
40825 cat conftest.err >&5
40826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40827 (exit $ac_status); } &&
40828 { ac_try='test -z "$ac_c_werror_flag"
40829 || test ! -s conftest.err'
40830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40831 (eval $ac_try) 2>&5
40833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40834 (exit $ac_status); }; } &&
40835 { ac_try='test -s conftest.$ac_objext'
40836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40837 (eval $ac_try) 2>&5
40839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40840 (exit $ac_status); }; }; then
40841 ac_hi=$ac_mid; break
40843 echo "$as_me: failed program was:" >&5
40844 sed 's/^/| /' conftest.$ac_ext >&5
40846 ac_lo=`expr $ac_mid + 1`
40847 if test $ac_lo -le $ac_mid; then
40851 ac_mid=`expr 2 '*' $ac_mid + 1`
40853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40856 echo "$as_me: failed program was:" >&5
40857 sed 's/^/| /' conftest.$ac_ext >&5
40859 cat >conftest.$ac_ext <<_ACEOF
40862 cat confdefs.h >>conftest.$ac_ext
40863 cat >>conftest.$ac_ext <<_ACEOF
40864 /* end confdefs.h. */
40865 $ac_includes_default
40869 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
40876 rm -f conftest.$ac_objext
40877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40878 (eval $ac_compile) 2>conftest.er1
40880 grep -v '^ *+' conftest.er1 >conftest.err
40882 cat conftest.err >&5
40883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40884 (exit $ac_status); } &&
40885 { ac_try='test -z "$ac_c_werror_flag"
40886 || test ! -s conftest.err'
40887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40888 (eval $ac_try) 2>&5
40890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40891 (exit $ac_status); }; } &&
40892 { ac_try='test -s conftest.$ac_objext'
40893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40894 (eval $ac_try) 2>&5
40896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40897 (exit $ac_status); }; }; then
40900 cat >conftest.$ac_ext <<_ACEOF
40903 cat confdefs.h >>conftest.$ac_ext
40904 cat >>conftest.$ac_ext <<_ACEOF
40905 /* end confdefs.h. */
40906 $ac_includes_default
40910 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
40917 rm -f conftest.$ac_objext
40918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40919 (eval $ac_compile) 2>conftest.er1
40921 grep -v '^ *+' conftest.er1 >conftest.err
40923 cat conftest.err >&5
40924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40925 (exit $ac_status); } &&
40926 { ac_try='test -z "$ac_c_werror_flag"
40927 || test ! -s conftest.err'
40928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40929 (eval $ac_try) 2>&5
40931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40932 (exit $ac_status); }; } &&
40933 { ac_try='test -s conftest.$ac_objext'
40934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40935 (eval $ac_try) 2>&5
40937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40938 (exit $ac_status); }; }; then
40939 ac_lo=$ac_mid; break
40941 echo "$as_me: failed program was:" >&5
40942 sed 's/^/| /' conftest.$ac_ext >&5
40944 ac_hi=`expr '(' $ac_mid ')' - 1`
40945 if test $ac_mid -le $ac_hi; then
40949 ac_mid=`expr 2 '*' $ac_mid`
40951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40954 echo "$as_me: failed program was:" >&5
40955 sed 's/^/| /' conftest.$ac_ext >&5
40959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40962 # Binary search between lo and hi bounds.
40963 while test "x$ac_lo" != "x$ac_hi"; do
40964 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40965 cat >conftest.$ac_ext <<_ACEOF
40968 cat confdefs.h >>conftest.$ac_ext
40969 cat >>conftest.$ac_ext <<_ACEOF
40970 /* end confdefs.h. */
40971 $ac_includes_default
40975 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40982 rm -f conftest.$ac_objext
40983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40984 (eval $ac_compile) 2>conftest.er1
40986 grep -v '^ *+' conftest.er1 >conftest.err
40988 cat conftest.err >&5
40989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40990 (exit $ac_status); } &&
40991 { ac_try='test -z "$ac_c_werror_flag"
40992 || test ! -s conftest.err'
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); }; } &&
40998 { ac_try='test -s conftest.$ac_objext'
40999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41000 (eval $ac_try) 2>&5
41002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41003 (exit $ac_status); }; }; then
41006 echo "$as_me: failed program was:" >&5
41007 sed 's/^/| /' conftest.$ac_ext >&5
41009 ac_lo=`expr '(' $ac_mid ')' + 1`
41011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41014 ?*) ac_cv_sizeof_int=$ac_lo;;
41015 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41016 See \`config.log' for more details." >&5
41017 echo "$as_me: error: cannot compute sizeof (int), 77
41018 See \`config.log' for more details." >&2;}
41019 { (exit 1); exit 1; }; } ;;
41022 if test "$cross_compiling" = yes; then
41023 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41024 See \`config.log' for more details." >&5
41025 echo "$as_me: error: cannot run test program while cross compiling
41026 See \`config.log' for more details." >&2;}
41027 { (exit 1); exit 1; }; }
41029 cat >conftest.$ac_ext <<_ACEOF
41032 cat confdefs.h >>conftest.$ac_ext
41033 cat >>conftest.$ac_ext <<_ACEOF
41034 /* end confdefs.h. */
41035 $ac_includes_default
41036 long longval () { return (long) (sizeof (int)); }
41037 unsigned long ulongval () { return (long) (sizeof (int)); }
41039 #include <stdlib.h>
41044 FILE *f = fopen ("conftest.val", "w");
41047 if (((long) (sizeof (int))) < 0)
41049 long i = longval ();
41050 if (i != ((long) (sizeof (int))))
41052 fprintf (f, "%ld\n", i);
41056 unsigned long i = ulongval ();
41057 if (i != ((long) (sizeof (int))))
41059 fprintf (f, "%lu\n", i);
41061 exit (ferror (f) || fclose (f) != 0);
41067 rm -f conftest$ac_exeext
41068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41069 (eval $ac_link) 2>&5
41071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41074 (eval $ac_try) 2>&5
41076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41077 (exit $ac_status); }; }; then
41078 ac_cv_sizeof_int=`cat conftest.val`
41080 echo "$as_me: program exited with status $ac_status" >&5
41081 echo "$as_me: failed program was:" >&5
41082 sed 's/^/| /' conftest.$ac_ext >&5
41084 ( exit $ac_status )
41085 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41086 See \`config.log' for more details." >&5
41087 echo "$as_me: error: cannot compute sizeof (int), 77
41088 See \`config.log' for more details." >&2;}
41089 { (exit 1); exit 1; }; }
41091 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41099 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41100 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41101 cat >>confdefs.h <<_ACEOF
41102 #define SIZEOF_INT $ac_cv_sizeof_int
41106 echo "$as_me:$LINENO: checking for long" >&5
41107 echo $ECHO_N "checking for long... $ECHO_C" >&6
41108 if test "${ac_cv_type_long+set}" = set; then
41109 echo $ECHO_N "(cached) $ECHO_C" >&6
41111 cat >conftest.$ac_ext <<_ACEOF
41114 cat confdefs.h >>conftest.$ac_ext
41115 cat >>conftest.$ac_ext <<_ACEOF
41116 /* end confdefs.h. */
41117 $ac_includes_default
41129 rm -f conftest.$ac_objext
41130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41131 (eval $ac_compile) 2>conftest.er1
41133 grep -v '^ *+' conftest.er1 >conftest.err
41135 cat conftest.err >&5
41136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41137 (exit $ac_status); } &&
41138 { ac_try='test -z "$ac_c_werror_flag"
41139 || test ! -s conftest.err'
41140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41141 (eval $ac_try) 2>&5
41143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41144 (exit $ac_status); }; } &&
41145 { ac_try='test -s conftest.$ac_objext'
41146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41147 (eval $ac_try) 2>&5
41149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41150 (exit $ac_status); }; }; then
41151 ac_cv_type_long=yes
41153 echo "$as_me: failed program was:" >&5
41154 sed 's/^/| /' conftest.$ac_ext >&5
41158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41160 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41161 echo "${ECHO_T}$ac_cv_type_long" >&6
41163 echo "$as_me:$LINENO: checking size of long" >&5
41164 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41165 if test "${ac_cv_sizeof_long+set}" = set; then
41166 echo $ECHO_N "(cached) $ECHO_C" >&6
41168 if test "$ac_cv_type_long" = yes; then
41169 # The cast to unsigned long works around a bug in the HP C Compiler
41170 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41171 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41172 # This bug is HP SR number 8606223364.
41173 if test "$cross_compiling" = yes; then
41174 # Depending upon the size, compute the lo and hi bounds.
41175 cat >conftest.$ac_ext <<_ACEOF
41178 cat confdefs.h >>conftest.$ac_ext
41179 cat >>conftest.$ac_ext <<_ACEOF
41180 /* end confdefs.h. */
41181 $ac_includes_default
41185 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41192 rm -f conftest.$ac_objext
41193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41194 (eval $ac_compile) 2>conftest.er1
41196 grep -v '^ *+' conftest.er1 >conftest.err
41198 cat conftest.err >&5
41199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41200 (exit $ac_status); } &&
41201 { ac_try='test -z "$ac_c_werror_flag"
41202 || test ! -s conftest.err'
41203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41204 (eval $ac_try) 2>&5
41206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41207 (exit $ac_status); }; } &&
41208 { ac_try='test -s conftest.$ac_objext'
41209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41210 (eval $ac_try) 2>&5
41212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41213 (exit $ac_status); }; }; then
41216 cat >conftest.$ac_ext <<_ACEOF
41219 cat confdefs.h >>conftest.$ac_ext
41220 cat >>conftest.$ac_ext <<_ACEOF
41221 /* end confdefs.h. */
41222 $ac_includes_default
41226 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41233 rm -f conftest.$ac_objext
41234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41235 (eval $ac_compile) 2>conftest.er1
41237 grep -v '^ *+' conftest.er1 >conftest.err
41239 cat conftest.err >&5
41240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41241 (exit $ac_status); } &&
41242 { ac_try='test -z "$ac_c_werror_flag"
41243 || test ! -s conftest.err'
41244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41245 (eval $ac_try) 2>&5
41247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41248 (exit $ac_status); }; } &&
41249 { ac_try='test -s conftest.$ac_objext'
41250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41251 (eval $ac_try) 2>&5
41253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254 (exit $ac_status); }; }; then
41255 ac_hi=$ac_mid; break
41257 echo "$as_me: failed program was:" >&5
41258 sed 's/^/| /' conftest.$ac_ext >&5
41260 ac_lo=`expr $ac_mid + 1`
41261 if test $ac_lo -le $ac_mid; then
41265 ac_mid=`expr 2 '*' $ac_mid + 1`
41267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41270 echo "$as_me: failed program was:" >&5
41271 sed 's/^/| /' conftest.$ac_ext >&5
41273 cat >conftest.$ac_ext <<_ACEOF
41276 cat confdefs.h >>conftest.$ac_ext
41277 cat >>conftest.$ac_ext <<_ACEOF
41278 /* end confdefs.h. */
41279 $ac_includes_default
41283 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41290 rm -f conftest.$ac_objext
41291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41292 (eval $ac_compile) 2>conftest.er1
41294 grep -v '^ *+' conftest.er1 >conftest.err
41296 cat conftest.err >&5
41297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41298 (exit $ac_status); } &&
41299 { ac_try='test -z "$ac_c_werror_flag"
41300 || test ! -s conftest.err'
41301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41302 (eval $ac_try) 2>&5
41304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41305 (exit $ac_status); }; } &&
41306 { ac_try='test -s conftest.$ac_objext'
41307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41308 (eval $ac_try) 2>&5
41310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41311 (exit $ac_status); }; }; then
41314 cat >conftest.$ac_ext <<_ACEOF
41317 cat confdefs.h >>conftest.$ac_ext
41318 cat >>conftest.$ac_ext <<_ACEOF
41319 /* end confdefs.h. */
41320 $ac_includes_default
41324 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41331 rm -f conftest.$ac_objext
41332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41333 (eval $ac_compile) 2>conftest.er1
41335 grep -v '^ *+' conftest.er1 >conftest.err
41337 cat conftest.err >&5
41338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41339 (exit $ac_status); } &&
41340 { ac_try='test -z "$ac_c_werror_flag"
41341 || test ! -s conftest.err'
41342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41343 (eval $ac_try) 2>&5
41345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41346 (exit $ac_status); }; } &&
41347 { ac_try='test -s conftest.$ac_objext'
41348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41349 (eval $ac_try) 2>&5
41351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41352 (exit $ac_status); }; }; then
41353 ac_lo=$ac_mid; break
41355 echo "$as_me: failed program was:" >&5
41356 sed 's/^/| /' conftest.$ac_ext >&5
41358 ac_hi=`expr '(' $ac_mid ')' - 1`
41359 if test $ac_mid -le $ac_hi; then
41363 ac_mid=`expr 2 '*' $ac_mid`
41365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41368 echo "$as_me: failed program was:" >&5
41369 sed 's/^/| /' conftest.$ac_ext >&5
41373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41376 # Binary search between lo and hi bounds.
41377 while test "x$ac_lo" != "x$ac_hi"; do
41378 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41379 cat >conftest.$ac_ext <<_ACEOF
41382 cat confdefs.h >>conftest.$ac_ext
41383 cat >>conftest.$ac_ext <<_ACEOF
41384 /* end confdefs.h. */
41385 $ac_includes_default
41389 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41396 rm -f conftest.$ac_objext
41397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41398 (eval $ac_compile) 2>conftest.er1
41400 grep -v '^ *+' conftest.er1 >conftest.err
41402 cat conftest.err >&5
41403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41404 (exit $ac_status); } &&
41405 { ac_try='test -z "$ac_c_werror_flag"
41406 || test ! -s conftest.err'
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); }; } &&
41412 { ac_try='test -s conftest.$ac_objext'
41413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41414 (eval $ac_try) 2>&5
41416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41417 (exit $ac_status); }; }; then
41420 echo "$as_me: failed program was:" >&5
41421 sed 's/^/| /' conftest.$ac_ext >&5
41423 ac_lo=`expr '(' $ac_mid ')' + 1`
41425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41428 ?*) ac_cv_sizeof_long=$ac_lo;;
41429 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41430 See \`config.log' for more details." >&5
41431 echo "$as_me: error: cannot compute sizeof (long), 77
41432 See \`config.log' for more details." >&2;}
41433 { (exit 1); exit 1; }; } ;;
41436 if test "$cross_compiling" = yes; then
41437 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41438 See \`config.log' for more details." >&5
41439 echo "$as_me: error: cannot run test program while cross compiling
41440 See \`config.log' for more details." >&2;}
41441 { (exit 1); exit 1; }; }
41443 cat >conftest.$ac_ext <<_ACEOF
41446 cat confdefs.h >>conftest.$ac_ext
41447 cat >>conftest.$ac_ext <<_ACEOF
41448 /* end confdefs.h. */
41449 $ac_includes_default
41450 long longval () { return (long) (sizeof (long)); }
41451 unsigned long ulongval () { return (long) (sizeof (long)); }
41453 #include <stdlib.h>
41458 FILE *f = fopen ("conftest.val", "w");
41461 if (((long) (sizeof (long))) < 0)
41463 long i = longval ();
41464 if (i != ((long) (sizeof (long))))
41466 fprintf (f, "%ld\n", i);
41470 unsigned long i = ulongval ();
41471 if (i != ((long) (sizeof (long))))
41473 fprintf (f, "%lu\n", i);
41475 exit (ferror (f) || fclose (f) != 0);
41481 rm -f conftest$ac_exeext
41482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41483 (eval $ac_link) 2>&5
41485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41488 (eval $ac_try) 2>&5
41490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41491 (exit $ac_status); }; }; then
41492 ac_cv_sizeof_long=`cat conftest.val`
41494 echo "$as_me: program exited with status $ac_status" >&5
41495 echo "$as_me: failed program was:" >&5
41496 sed 's/^/| /' conftest.$ac_ext >&5
41498 ( exit $ac_status )
41499 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41500 See \`config.log' for more details." >&5
41501 echo "$as_me: error: cannot compute sizeof (long), 77
41502 See \`config.log' for more details." >&2;}
41503 { (exit 1); exit 1; }; }
41505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41510 ac_cv_sizeof_long=0
41513 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41514 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41515 cat >>confdefs.h <<_ACEOF
41516 #define SIZEOF_LONG $ac_cv_sizeof_long
41520 echo "$as_me:$LINENO: checking for wchar_t" >&5
41521 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41522 if test "${ac_cv_type_wchar_t+set}" = set; then
41523 echo $ECHO_N "(cached) $ECHO_C" >&6
41525 cat >conftest.$ac_ext <<_ACEOF
41528 cat confdefs.h >>conftest.$ac_ext
41529 cat >>conftest.$ac_ext <<_ACEOF
41530 /* end confdefs.h. */
41531 $ac_includes_default
41537 if (sizeof (wchar_t))
41543 rm -f conftest.$ac_objext
41544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41545 (eval $ac_compile) 2>conftest.er1
41547 grep -v '^ *+' conftest.er1 >conftest.err
41549 cat conftest.err >&5
41550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41551 (exit $ac_status); } &&
41552 { ac_try='test -z "$ac_c_werror_flag"
41553 || test ! -s conftest.err'
41554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41555 (eval $ac_try) 2>&5
41557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41558 (exit $ac_status); }; } &&
41559 { ac_try='test -s conftest.$ac_objext'
41560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41561 (eval $ac_try) 2>&5
41563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41564 (exit $ac_status); }; }; then
41565 ac_cv_type_wchar_t=yes
41567 echo "$as_me: failed program was:" >&5
41568 sed 's/^/| /' conftest.$ac_ext >&5
41570 ac_cv_type_wchar_t=no
41572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41574 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41575 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41577 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41578 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41579 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41580 echo $ECHO_N "(cached) $ECHO_C" >&6
41582 if test "$ac_cv_type_wchar_t" = yes; then
41583 # The cast to unsigned long works around a bug in the HP C Compiler
41584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41585 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41586 # This bug is HP SR number 8606223364.
41587 if test "$cross_compiling" = yes; then
41588 # Depending upon the size, compute the lo and hi bounds.
41589 cat >conftest.$ac_ext <<_ACEOF
41592 cat confdefs.h >>conftest.$ac_ext
41593 cat >>conftest.$ac_ext <<_ACEOF
41594 /* end confdefs.h. */
41595 $ac_includes_default
41599 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41606 rm -f conftest.$ac_objext
41607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41608 (eval $ac_compile) 2>conftest.er1
41610 grep -v '^ *+' conftest.er1 >conftest.err
41612 cat conftest.err >&5
41613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41614 (exit $ac_status); } &&
41615 { ac_try='test -z "$ac_c_werror_flag"
41616 || test ! -s conftest.err'
41617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41618 (eval $ac_try) 2>&5
41620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41621 (exit $ac_status); }; } &&
41622 { ac_try='test -s conftest.$ac_objext'
41623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41624 (eval $ac_try) 2>&5
41626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41627 (exit $ac_status); }; }; then
41630 cat >conftest.$ac_ext <<_ACEOF
41633 cat confdefs.h >>conftest.$ac_ext
41634 cat >>conftest.$ac_ext <<_ACEOF
41635 /* end confdefs.h. */
41636 $ac_includes_default
41640 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41647 rm -f conftest.$ac_objext
41648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41649 (eval $ac_compile) 2>conftest.er1
41651 grep -v '^ *+' conftest.er1 >conftest.err
41653 cat conftest.err >&5
41654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41655 (exit $ac_status); } &&
41656 { ac_try='test -z "$ac_c_werror_flag"
41657 || test ! -s conftest.err'
41658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41659 (eval $ac_try) 2>&5
41661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41662 (exit $ac_status); }; } &&
41663 { ac_try='test -s conftest.$ac_objext'
41664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41665 (eval $ac_try) 2>&5
41667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41668 (exit $ac_status); }; }; then
41669 ac_hi=$ac_mid; break
41671 echo "$as_me: failed program was:" >&5
41672 sed 's/^/| /' conftest.$ac_ext >&5
41674 ac_lo=`expr $ac_mid + 1`
41675 if test $ac_lo -le $ac_mid; then
41679 ac_mid=`expr 2 '*' $ac_mid + 1`
41681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41684 echo "$as_me: failed program was:" >&5
41685 sed 's/^/| /' conftest.$ac_ext >&5
41687 cat >conftest.$ac_ext <<_ACEOF
41690 cat confdefs.h >>conftest.$ac_ext
41691 cat >>conftest.$ac_ext <<_ACEOF
41692 /* end confdefs.h. */
41693 $ac_includes_default
41697 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41704 rm -f conftest.$ac_objext
41705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41706 (eval $ac_compile) 2>conftest.er1
41708 grep -v '^ *+' conftest.er1 >conftest.err
41710 cat conftest.err >&5
41711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41712 (exit $ac_status); } &&
41713 { ac_try='test -z "$ac_c_werror_flag"
41714 || test ! -s conftest.err'
41715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41716 (eval $ac_try) 2>&5
41718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41719 (exit $ac_status); }; } &&
41720 { ac_try='test -s conftest.$ac_objext'
41721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41722 (eval $ac_try) 2>&5
41724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41725 (exit $ac_status); }; }; then
41728 cat >conftest.$ac_ext <<_ACEOF
41731 cat confdefs.h >>conftest.$ac_ext
41732 cat >>conftest.$ac_ext <<_ACEOF
41733 /* end confdefs.h. */
41734 $ac_includes_default
41738 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41745 rm -f conftest.$ac_objext
41746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41747 (eval $ac_compile) 2>conftest.er1
41749 grep -v '^ *+' conftest.er1 >conftest.err
41751 cat conftest.err >&5
41752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41753 (exit $ac_status); } &&
41754 { ac_try='test -z "$ac_c_werror_flag"
41755 || test ! -s conftest.err'
41756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41757 (eval $ac_try) 2>&5
41759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41760 (exit $ac_status); }; } &&
41761 { ac_try='test -s conftest.$ac_objext'
41762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41763 (eval $ac_try) 2>&5
41765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41766 (exit $ac_status); }; }; then
41767 ac_lo=$ac_mid; break
41769 echo "$as_me: failed program was:" >&5
41770 sed 's/^/| /' conftest.$ac_ext >&5
41772 ac_hi=`expr '(' $ac_mid ')' - 1`
41773 if test $ac_mid -le $ac_hi; then
41777 ac_mid=`expr 2 '*' $ac_mid`
41779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41782 echo "$as_me: failed program was:" >&5
41783 sed 's/^/| /' conftest.$ac_ext >&5
41787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41790 # Binary search between lo and hi bounds.
41791 while test "x$ac_lo" != "x$ac_hi"; do
41792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41793 cat >conftest.$ac_ext <<_ACEOF
41796 cat confdefs.h >>conftest.$ac_ext
41797 cat >>conftest.$ac_ext <<_ACEOF
41798 /* end confdefs.h. */
41799 $ac_includes_default
41803 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41810 rm -f conftest.$ac_objext
41811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41812 (eval $ac_compile) 2>conftest.er1
41814 grep -v '^ *+' conftest.er1 >conftest.err
41816 cat conftest.err >&5
41817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41818 (exit $ac_status); } &&
41819 { ac_try='test -z "$ac_c_werror_flag"
41820 || test ! -s conftest.err'
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); }; } &&
41826 { ac_try='test -s conftest.$ac_objext'
41827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41828 (eval $ac_try) 2>&5
41830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41831 (exit $ac_status); }; }; then
41834 echo "$as_me: failed program was:" >&5
41835 sed 's/^/| /' conftest.$ac_ext >&5
41837 ac_lo=`expr '(' $ac_mid ')' + 1`
41839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41842 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
41843 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
41844 See \`config.log' for more details." >&5
41845 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
41846 See \`config.log' for more details." >&2;}
41847 { (exit 1); exit 1; }; } ;;
41850 if test "$cross_compiling" = yes; then
41851 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41852 See \`config.log' for more details." >&5
41853 echo "$as_me: error: cannot run test program while cross compiling
41854 See \`config.log' for more details." >&2;}
41855 { (exit 1); exit 1; }; }
41857 cat >conftest.$ac_ext <<_ACEOF
41860 cat confdefs.h >>conftest.$ac_ext
41861 cat >>conftest.$ac_ext <<_ACEOF
41862 /* end confdefs.h. */
41863 $ac_includes_default
41864 long longval () { return (long) (sizeof (wchar_t)); }
41865 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
41867 #include <stdlib.h>
41872 FILE *f = fopen ("conftest.val", "w");
41875 if (((long) (sizeof (wchar_t))) < 0)
41877 long i = longval ();
41878 if (i != ((long) (sizeof (wchar_t))))
41880 fprintf (f, "%ld\n", i);
41884 unsigned long i = ulongval ();
41885 if (i != ((long) (sizeof (wchar_t))))
41887 fprintf (f, "%lu\n", i);
41889 exit (ferror (f) || fclose (f) != 0);
41895 rm -f conftest$ac_exeext
41896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41897 (eval $ac_link) 2>&5
41899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41902 (eval $ac_try) 2>&5
41904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41905 (exit $ac_status); }; }; then
41906 ac_cv_sizeof_wchar_t=`cat conftest.val`
41908 echo "$as_me: program exited with status $ac_status" >&5
41909 echo "$as_me: failed program was:" >&5
41910 sed 's/^/| /' conftest.$ac_ext >&5
41912 ( exit $ac_status )
41913 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
41914 See \`config.log' for more details." >&5
41915 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
41916 See \`config.log' for more details." >&2;}
41917 { (exit 1); exit 1; }; }
41919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41924 ac_cv_sizeof_wchar_t=0
41927 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
41928 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
41929 cat >>confdefs.h <<_ACEOF
41930 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
41935 if test "$ac_cv_sizeof_int" -lt 4 ; then
41936 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
41937 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
41940 cat >>confdefs.h <<\_ACEOF
41941 #define LBER_INT_T long
41946 cat >>confdefs.h <<\_ACEOF
41947 #define LBER_INT_T int
41953 cat >>confdefs.h <<\_ACEOF
41954 #define LBER_LEN_T long
41958 cat >>confdefs.h <<\_ACEOF
41959 #define LBER_SOCKET_T int
41963 cat >>confdefs.h <<\_ACEOF
41964 #define LBER_TAG_T long
41968 echo "$as_me:$LINENO: checking for working memcmp" >&5
41969 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
41970 if test "${ac_cv_func_memcmp_working+set}" = set; then
41971 echo $ECHO_N "(cached) $ECHO_C" >&6
41973 if test "$cross_compiling" = yes; then
41974 ac_cv_func_memcmp_working=no
41976 cat >conftest.$ac_ext <<_ACEOF
41979 cat confdefs.h >>conftest.$ac_ext
41980 cat >>conftest.$ac_ext <<_ACEOF
41981 /* end confdefs.h. */
41982 $ac_includes_default
41987 /* Some versions of memcmp are not 8-bit clean. */
41988 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
41989 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
41992 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
41993 or more and with at least one buffer not starting on a 4-byte boundary.
41994 William Lewis provided this test program. */
41999 for (i = 0; i < 4; i++)
42003 strcpy (a, "--------01111111");
42004 strcpy (b, "--------10000000");
42005 if (memcmp (a, b, 16) >= 0)
42015 rm -f conftest$ac_exeext
42016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42017 (eval $ac_link) 2>&5
42019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42022 (eval $ac_try) 2>&5
42024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42025 (exit $ac_status); }; }; then
42026 ac_cv_func_memcmp_working=yes
42028 echo "$as_me: program exited with status $ac_status" >&5
42029 echo "$as_me: failed program was:" >&5
42030 sed 's/^/| /' conftest.$ac_ext >&5
42032 ( exit $ac_status )
42033 ac_cv_func_memcmp_working=no
42035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42038 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42039 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42040 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42041 "memcmp.$ac_objext" | \
42042 *" memcmp.$ac_objext" | \
42043 "memcmp.$ac_objext "* | \
42044 *" memcmp.$ac_objext "* ) ;;
42045 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42050 if test $ac_cv_func_memcmp_working = no ; then
42052 cat >>confdefs.h <<\_ACEOF
42053 #define NEED_MEMCMP_REPLACEMENT 1
42059 for ac_func in strftime
42061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42062 echo "$as_me:$LINENO: checking for $ac_func" >&5
42063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42064 if eval "test \"\${$as_ac_var+set}\" = set"; then
42065 echo $ECHO_N "(cached) $ECHO_C" >&6
42067 cat >conftest.$ac_ext <<_ACEOF
42070 cat confdefs.h >>conftest.$ac_ext
42071 cat >>conftest.$ac_ext <<_ACEOF
42072 /* end confdefs.h. */
42073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42075 #define $ac_func innocuous_$ac_func
42077 /* System header to define __stub macros and hopefully few prototypes,
42078 which can conflict with char $ac_func (); below.
42079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42080 <limits.h> exists even on freestanding compilers. */
42083 # include <limits.h>
42085 # include <assert.h>
42090 /* Override any gcc2 internal prototype to avoid an error. */
42095 /* We use char because int might match the return type of a gcc2
42096 builtin and then its argument prototype would still apply. */
42098 /* The GNU C library defines this for functions which it implements
42099 to always fail with ENOSYS. Some functions are actually named
42100 something starting with __ and the normal name is an alias. */
42101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42104 char (*f) () = $ac_func;
42113 return f != $ac_func;
42118 rm -f conftest.$ac_objext conftest$ac_exeext
42119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42120 (eval $ac_link) 2>conftest.er1
42122 grep -v '^ *+' conftest.er1 >conftest.err
42124 cat conftest.err >&5
42125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42126 (exit $ac_status); } &&
42127 { ac_try='test -z "$ac_c_werror_flag"
42128 || test ! -s conftest.err'
42129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42130 (eval $ac_try) 2>&5
42132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42133 (exit $ac_status); }; } &&
42134 { ac_try='test -s conftest$ac_exeext'
42135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42136 (eval $ac_try) 2>&5
42138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42139 (exit $ac_status); }; }; then
42140 eval "$as_ac_var=yes"
42142 echo "$as_me: failed program was:" >&5
42143 sed 's/^/| /' conftest.$ac_ext >&5
42145 eval "$as_ac_var=no"
42147 rm -f conftest.err conftest.$ac_objext \
42148 conftest$ac_exeext conftest.$ac_ext
42150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42152 if test `eval echo '${'$as_ac_var'}'` = yes; then
42153 cat >>confdefs.h <<_ACEOF
42154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42158 # strftime is in -lintl on SCO UNIX.
42159 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42160 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42161 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42162 echo $ECHO_N "(cached) $ECHO_C" >&6
42164 ac_check_lib_save_LIBS=$LIBS
42165 LIBS="-lintl $LIBS"
42166 cat >conftest.$ac_ext <<_ACEOF
42169 cat confdefs.h >>conftest.$ac_ext
42170 cat >>conftest.$ac_ext <<_ACEOF
42171 /* end confdefs.h. */
42173 /* Override any gcc2 internal prototype to avoid an error. */
42177 /* We use char because int might match the return type of a gcc2
42178 builtin and then its argument prototype would still apply. */
42188 rm -f conftest.$ac_objext conftest$ac_exeext
42189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42190 (eval $ac_link) 2>conftest.er1
42192 grep -v '^ *+' conftest.er1 >conftest.err
42194 cat conftest.err >&5
42195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42196 (exit $ac_status); } &&
42197 { ac_try='test -z "$ac_c_werror_flag"
42198 || test ! -s conftest.err'
42199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42200 (eval $ac_try) 2>&5
42202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42203 (exit $ac_status); }; } &&
42204 { ac_try='test -s conftest$ac_exeext'
42205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42206 (eval $ac_try) 2>&5
42208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42209 (exit $ac_status); }; }; then
42210 ac_cv_lib_intl_strftime=yes
42212 echo "$as_me: failed program was:" >&5
42213 sed 's/^/| /' conftest.$ac_ext >&5
42215 ac_cv_lib_intl_strftime=no
42217 rm -f conftest.err conftest.$ac_objext \
42218 conftest$ac_exeext conftest.$ac_ext
42219 LIBS=$ac_check_lib_save_LIBS
42221 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42222 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42223 if test $ac_cv_lib_intl_strftime = yes; then
42224 cat >>confdefs.h <<\_ACEOF
42225 #define HAVE_STRFTIME 1
42228 LIBS="-lintl $LIBS"
42235 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42236 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42237 if test "${ol_cv_func_inet_aton+set}" = set; then
42238 echo $ECHO_N "(cached) $ECHO_C" >&6
42240 cat >conftest.$ac_ext <<_ACEOF
42243 cat confdefs.h >>conftest.$ac_ext
42244 cat >>conftest.$ac_ext <<_ACEOF
42245 /* end confdefs.h. */
42247 #ifdef HAVE_SYS_TYPES_H
42248 # include <sys/types.h>
42250 #ifdef HAVE_SYS_SOCKET_H
42251 # include <sys/socket.h>
42252 # ifdef HAVE_SYS_SELECT_H
42253 # include <sys/select.h>
42255 # include <netinet/in.h>
42256 # ifdef HAVE_ARPA_INET_H
42257 # include <arpa/inet.h>
42265 int rc = inet_aton( "255.255.255.255", &in );
42270 rm -f conftest.$ac_objext conftest$ac_exeext
42271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42272 (eval $ac_link) 2>conftest.er1
42274 grep -v '^ *+' conftest.er1 >conftest.err
42276 cat conftest.err >&5
42277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42278 (exit $ac_status); } &&
42279 { ac_try='test -z "$ac_c_werror_flag"
42280 || test ! -s conftest.err'
42281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42282 (eval $ac_try) 2>&5
42284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285 (exit $ac_status); }; } &&
42286 { ac_try='test -s conftest$ac_exeext'
42287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42288 (eval $ac_try) 2>&5
42290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42291 (exit $ac_status); }; }; then
42292 ol_cv_func_inet_aton=yes
42294 echo "$as_me: failed program was:" >&5
42295 sed 's/^/| /' conftest.$ac_ext >&5
42297 ol_cv_func_inet_aton=no
42299 rm -f conftest.err conftest.$ac_objext \
42300 conftest$ac_exeext conftest.$ac_ext
42302 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42303 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42304 if test $ol_cv_func_inet_aton != no; then
42306 cat >>confdefs.h <<\_ACEOF
42307 #define HAVE_INET_ATON 1
42313 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42314 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42315 if test "${ac_cv_func__spawnlp+set}" = set; then
42316 echo $ECHO_N "(cached) $ECHO_C" >&6
42318 cat >conftest.$ac_ext <<_ACEOF
42321 cat confdefs.h >>conftest.$ac_ext
42322 cat >>conftest.$ac_ext <<_ACEOF
42323 /* end confdefs.h. */
42324 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42326 #define _spawnlp innocuous__spawnlp
42328 /* System header to define __stub macros and hopefully few prototypes,
42329 which can conflict with char _spawnlp (); below.
42330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42331 <limits.h> exists even on freestanding compilers. */
42334 # include <limits.h>
42336 # include <assert.h>
42341 /* Override any gcc2 internal prototype to avoid an error. */
42346 /* We use char because int might match the return type of a gcc2
42347 builtin and then its argument prototype would still apply. */
42349 /* The GNU C library defines this for functions which it implements
42350 to always fail with ENOSYS. Some functions are actually named
42351 something starting with __ and the normal name is an alias. */
42352 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42355 char (*f) () = _spawnlp;
42364 return f != _spawnlp;
42369 rm -f conftest.$ac_objext conftest$ac_exeext
42370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42371 (eval $ac_link) 2>conftest.er1
42373 grep -v '^ *+' conftest.er1 >conftest.err
42375 cat conftest.err >&5
42376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42377 (exit $ac_status); } &&
42378 { ac_try='test -z "$ac_c_werror_flag"
42379 || test ! -s conftest.err'
42380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42381 (eval $ac_try) 2>&5
42383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42384 (exit $ac_status); }; } &&
42385 { ac_try='test -s conftest$ac_exeext'
42386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42387 (eval $ac_try) 2>&5
42389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42390 (exit $ac_status); }; }; then
42391 ac_cv_func__spawnlp=yes
42393 echo "$as_me: failed program was:" >&5
42394 sed 's/^/| /' conftest.$ac_ext >&5
42396 ac_cv_func__spawnlp=no
42398 rm -f conftest.err conftest.$ac_objext \
42399 conftest$ac_exeext conftest.$ac_ext
42401 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42402 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42403 if test $ac_cv_func__spawnlp = yes; then
42405 cat >>confdefs.h <<\_ACEOF
42406 #define HAVE_SPAWNLP 1
42412 echo "$as_me:$LINENO: checking for _snprintf" >&5
42413 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42414 if test "${ac_cv_func__snprintf+set}" = set; then
42415 echo $ECHO_N "(cached) $ECHO_C" >&6
42417 cat >conftest.$ac_ext <<_ACEOF
42420 cat confdefs.h >>conftest.$ac_ext
42421 cat >>conftest.$ac_ext <<_ACEOF
42422 /* end confdefs.h. */
42423 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42425 #define _snprintf innocuous__snprintf
42427 /* System header to define __stub macros and hopefully few prototypes,
42428 which can conflict with char _snprintf (); below.
42429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42430 <limits.h> exists even on freestanding compilers. */
42433 # include <limits.h>
42435 # include <assert.h>
42440 /* Override any gcc2 internal prototype to avoid an error. */
42445 /* We use char because int might match the return type of a gcc2
42446 builtin and then its argument prototype would still apply. */
42448 /* The GNU C library defines this for functions which it implements
42449 to always fail with ENOSYS. Some functions are actually named
42450 something starting with __ and the normal name is an alias. */
42451 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42454 char (*f) () = _snprintf;
42463 return f != _snprintf;
42468 rm -f conftest.$ac_objext conftest$ac_exeext
42469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42470 (eval $ac_link) 2>conftest.er1
42472 grep -v '^ *+' conftest.er1 >conftest.err
42474 cat conftest.err >&5
42475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42476 (exit $ac_status); } &&
42477 { ac_try='test -z "$ac_c_werror_flag"
42478 || test ! -s conftest.err'
42479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42480 (eval $ac_try) 2>&5
42482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42483 (exit $ac_status); }; } &&
42484 { ac_try='test -s conftest$ac_exeext'
42485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42486 (eval $ac_try) 2>&5
42488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42489 (exit $ac_status); }; }; then
42490 ac_cv_func__snprintf=yes
42492 echo "$as_me: failed program was:" >&5
42493 sed 's/^/| /' conftest.$ac_ext >&5
42495 ac_cv_func__snprintf=no
42497 rm -f conftest.err conftest.$ac_objext \
42498 conftest$ac_exeext conftest.$ac_ext
42500 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42501 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42502 if test $ac_cv_func__snprintf = yes; then
42503 ac_cv_func_snprintf=yes
42505 cat >>confdefs.h <<\_ACEOF
42506 #define snprintf _snprintf
42513 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42514 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42515 if test "${ac_cv_func__vsnprintf+set}" = set; then
42516 echo $ECHO_N "(cached) $ECHO_C" >&6
42518 cat >conftest.$ac_ext <<_ACEOF
42521 cat confdefs.h >>conftest.$ac_ext
42522 cat >>conftest.$ac_ext <<_ACEOF
42523 /* end confdefs.h. */
42524 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42526 #define _vsnprintf innocuous__vsnprintf
42528 /* System header to define __stub macros and hopefully few prototypes,
42529 which can conflict with char _vsnprintf (); below.
42530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42531 <limits.h> exists even on freestanding compilers. */
42534 # include <limits.h>
42536 # include <assert.h>
42541 /* Override any gcc2 internal prototype to avoid an error. */
42546 /* We use char because int might match the return type of a gcc2
42547 builtin and then its argument prototype would still apply. */
42548 char _vsnprintf ();
42549 /* The GNU C library defines this for functions which it implements
42550 to always fail with ENOSYS. Some functions are actually named
42551 something starting with __ and the normal name is an alias. */
42552 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42555 char (*f) () = _vsnprintf;
42564 return f != _vsnprintf;
42569 rm -f conftest.$ac_objext conftest$ac_exeext
42570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42571 (eval $ac_link) 2>conftest.er1
42573 grep -v '^ *+' conftest.er1 >conftest.err
42575 cat conftest.err >&5
42576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42577 (exit $ac_status); } &&
42578 { ac_try='test -z "$ac_c_werror_flag"
42579 || test ! -s conftest.err'
42580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42581 (eval $ac_try) 2>&5
42583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42584 (exit $ac_status); }; } &&
42585 { ac_try='test -s conftest$ac_exeext'
42586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42587 (eval $ac_try) 2>&5
42589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42590 (exit $ac_status); }; }; then
42591 ac_cv_func__vsnprintf=yes
42593 echo "$as_me: failed program was:" >&5
42594 sed 's/^/| /' conftest.$ac_ext >&5
42596 ac_cv_func__vsnprintf=no
42598 rm -f conftest.err conftest.$ac_objext \
42599 conftest$ac_exeext conftest.$ac_ext
42601 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42602 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42603 if test $ac_cv_func__vsnprintf = yes; then
42604 ac_cv_func_vsnprintf=yes
42606 cat >>confdefs.h <<\_ACEOF
42607 #define vsnprintf _vsnprintf
42615 for ac_func in vprintf
42617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42618 echo "$as_me:$LINENO: checking for $ac_func" >&5
42619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42620 if eval "test \"\${$as_ac_var+set}\" = set"; then
42621 echo $ECHO_N "(cached) $ECHO_C" >&6
42623 cat >conftest.$ac_ext <<_ACEOF
42626 cat confdefs.h >>conftest.$ac_ext
42627 cat >>conftest.$ac_ext <<_ACEOF
42628 /* end confdefs.h. */
42629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42631 #define $ac_func innocuous_$ac_func
42633 /* System header to define __stub macros and hopefully few prototypes,
42634 which can conflict with char $ac_func (); below.
42635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42636 <limits.h> exists even on freestanding compilers. */
42639 # include <limits.h>
42641 # include <assert.h>
42646 /* Override any gcc2 internal prototype to avoid an error. */
42651 /* We use char because int might match the return type of a gcc2
42652 builtin and then its argument prototype would still apply. */
42654 /* The GNU C library defines this for functions which it implements
42655 to always fail with ENOSYS. Some functions are actually named
42656 something starting with __ and the normal name is an alias. */
42657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42660 char (*f) () = $ac_func;
42669 return f != $ac_func;
42674 rm -f conftest.$ac_objext conftest$ac_exeext
42675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42676 (eval $ac_link) 2>conftest.er1
42678 grep -v '^ *+' conftest.er1 >conftest.err
42680 cat conftest.err >&5
42681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42682 (exit $ac_status); } &&
42683 { ac_try='test -z "$ac_c_werror_flag"
42684 || test ! -s conftest.err'
42685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42686 (eval $ac_try) 2>&5
42688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42689 (exit $ac_status); }; } &&
42690 { ac_try='test -s conftest$ac_exeext'
42691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42692 (eval $ac_try) 2>&5
42694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42695 (exit $ac_status); }; }; then
42696 eval "$as_ac_var=yes"
42698 echo "$as_me: failed program was:" >&5
42699 sed 's/^/| /' conftest.$ac_ext >&5
42701 eval "$as_ac_var=no"
42703 rm -f conftest.err conftest.$ac_objext \
42704 conftest$ac_exeext conftest.$ac_ext
42706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42708 if test `eval echo '${'$as_ac_var'}'` = yes; then
42709 cat >>confdefs.h <<_ACEOF
42710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42713 echo "$as_me:$LINENO: checking for _doprnt" >&5
42714 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
42715 if test "${ac_cv_func__doprnt+set}" = set; then
42716 echo $ECHO_N "(cached) $ECHO_C" >&6
42718 cat >conftest.$ac_ext <<_ACEOF
42721 cat confdefs.h >>conftest.$ac_ext
42722 cat >>conftest.$ac_ext <<_ACEOF
42723 /* end confdefs.h. */
42724 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
42725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42726 #define _doprnt innocuous__doprnt
42728 /* System header to define __stub macros and hopefully few prototypes,
42729 which can conflict with char _doprnt (); below.
42730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42731 <limits.h> exists even on freestanding compilers. */
42734 # include <limits.h>
42736 # include <assert.h>
42741 /* Override any gcc2 internal prototype to avoid an error. */
42746 /* We use char because int might match the return type of a gcc2
42747 builtin and then its argument prototype would still apply. */
42749 /* The GNU C library defines this for functions which it implements
42750 to always fail with ENOSYS. Some functions are actually named
42751 something starting with __ and the normal name is an alias. */
42752 #if defined (__stub__doprnt) || defined (__stub____doprnt)
42755 char (*f) () = _doprnt;
42764 return f != _doprnt;
42769 rm -f conftest.$ac_objext conftest$ac_exeext
42770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42771 (eval $ac_link) 2>conftest.er1
42773 grep -v '^ *+' conftest.er1 >conftest.err
42775 cat conftest.err >&5
42776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42777 (exit $ac_status); } &&
42778 { ac_try='test -z "$ac_c_werror_flag"
42779 || test ! -s conftest.err'
42780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42781 (eval $ac_try) 2>&5
42783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42784 (exit $ac_status); }; } &&
42785 { ac_try='test -s conftest$ac_exeext'
42786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42787 (eval $ac_try) 2>&5
42789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42790 (exit $ac_status); }; }; then
42791 ac_cv_func__doprnt=yes
42793 echo "$as_me: failed program was:" >&5
42794 sed 's/^/| /' conftest.$ac_ext >&5
42796 ac_cv_func__doprnt=no
42798 rm -f conftest.err conftest.$ac_objext \
42799 conftest$ac_exeext conftest.$ac_ext
42801 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
42802 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
42803 if test $ac_cv_func__doprnt = yes; then
42805 cat >>confdefs.h <<\_ACEOF
42806 #define HAVE_DOPRNT 1
42816 if test $ac_cv_func_vprintf = yes ; then
42819 for ac_func in snprintf vsnprintf
42821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42822 echo "$as_me:$LINENO: checking for $ac_func" >&5
42823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42824 if eval "test \"\${$as_ac_var+set}\" = set"; then
42825 echo $ECHO_N "(cached) $ECHO_C" >&6
42827 cat >conftest.$ac_ext <<_ACEOF
42830 cat confdefs.h >>conftest.$ac_ext
42831 cat >>conftest.$ac_ext <<_ACEOF
42832 /* end confdefs.h. */
42833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42835 #define $ac_func innocuous_$ac_func
42837 /* System header to define __stub macros and hopefully few prototypes,
42838 which can conflict with char $ac_func (); below.
42839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42840 <limits.h> exists even on freestanding compilers. */
42843 # include <limits.h>
42845 # include <assert.h>
42850 /* Override any gcc2 internal prototype to avoid an error. */
42855 /* We use char because int might match the return type of a gcc2
42856 builtin and then its argument prototype would still apply. */
42858 /* The GNU C library defines this for functions which it implements
42859 to always fail with ENOSYS. Some functions are actually named
42860 something starting with __ and the normal name is an alias. */
42861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42864 char (*f) () = $ac_func;
42873 return f != $ac_func;
42878 rm -f conftest.$ac_objext conftest$ac_exeext
42879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42880 (eval $ac_link) 2>conftest.er1
42882 grep -v '^ *+' conftest.er1 >conftest.err
42884 cat conftest.err >&5
42885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42886 (exit $ac_status); } &&
42887 { ac_try='test -z "$ac_c_werror_flag"
42888 || test ! -s conftest.err'
42889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42890 (eval $ac_try) 2>&5
42892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42893 (exit $ac_status); }; } &&
42894 { ac_try='test -s conftest$ac_exeext'
42895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42896 (eval $ac_try) 2>&5
42898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42899 (exit $ac_status); }; }; then
42900 eval "$as_ac_var=yes"
42902 echo "$as_me: failed program was:" >&5
42903 sed 's/^/| /' conftest.$ac_ext >&5
42905 eval "$as_ac_var=no"
42907 rm -f conftest.err conftest.$ac_objext \
42908 conftest$ac_exeext conftest.$ac_ext
42910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42912 if test `eval echo '${'$as_ac_var'}'` = yes; then
42913 cat >>confdefs.h <<_ACEOF
42914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43034 echo "$as_me:$LINENO: checking for $ac_func" >&5
43035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43036 if eval "test \"\${$as_ac_var+set}\" = set"; then
43037 echo $ECHO_N "(cached) $ECHO_C" >&6
43039 cat >conftest.$ac_ext <<_ACEOF
43042 cat confdefs.h >>conftest.$ac_ext
43043 cat >>conftest.$ac_ext <<_ACEOF
43044 /* end confdefs.h. */
43045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43047 #define $ac_func innocuous_$ac_func
43049 /* System header to define __stub macros and hopefully few prototypes,
43050 which can conflict with char $ac_func (); below.
43051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43052 <limits.h> exists even on freestanding compilers. */
43055 # include <limits.h>
43057 # include <assert.h>
43062 /* Override any gcc2 internal prototype to avoid an error. */
43067 /* We use char because int might match the return type of a gcc2
43068 builtin and then its argument prototype would still apply. */
43070 /* The GNU C library defines this for functions which it implements
43071 to always fail with ENOSYS. Some functions are actually named
43072 something starting with __ and the normal name is an alias. */
43073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43076 char (*f) () = $ac_func;
43085 return f != $ac_func;
43090 rm -f conftest.$ac_objext conftest$ac_exeext
43091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43092 (eval $ac_link) 2>conftest.er1
43094 grep -v '^ *+' conftest.er1 >conftest.err
43096 cat conftest.err >&5
43097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43098 (exit $ac_status); } &&
43099 { ac_try='test -z "$ac_c_werror_flag"
43100 || test ! -s conftest.err'
43101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43102 (eval $ac_try) 2>&5
43104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43105 (exit $ac_status); }; } &&
43106 { ac_try='test -s conftest$ac_exeext'
43107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43108 (eval $ac_try) 2>&5
43110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43111 (exit $ac_status); }; }; then
43112 eval "$as_ac_var=yes"
43114 echo "$as_me: failed program was:" >&5
43115 sed 's/^/| /' conftest.$ac_ext >&5
43117 eval "$as_ac_var=no"
43119 rm -f conftest.err conftest.$ac_objext \
43120 conftest$ac_exeext conftest.$ac_ext
43122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43124 if test `eval echo '${'$as_ac_var'}'` = yes; then
43125 cat >>confdefs.h <<_ACEOF
43126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43135 for ac_func in getopt getpeereid
43137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43138 echo "$as_me:$LINENO: checking for $ac_func" >&5
43139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43140 if eval "test \"\${$as_ac_var+set}\" = set"; then
43141 echo $ECHO_N "(cached) $ECHO_C" >&6
43143 cat >conftest.$ac_ext <<_ACEOF
43146 cat confdefs.h >>conftest.$ac_ext
43147 cat >>conftest.$ac_ext <<_ACEOF
43148 /* end confdefs.h. */
43149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43151 #define $ac_func innocuous_$ac_func
43153 /* System header to define __stub macros and hopefully few prototypes,
43154 which can conflict with char $ac_func (); below.
43155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43156 <limits.h> exists even on freestanding compilers. */
43159 # include <limits.h>
43161 # include <assert.h>
43166 /* Override any gcc2 internal prototype to avoid an error. */
43171 /* We use char because int might match the return type of a gcc2
43172 builtin and then its argument prototype would still apply. */
43174 /* The GNU C library defines this for functions which it implements
43175 to always fail with ENOSYS. Some functions are actually named
43176 something starting with __ and the normal name is an alias. */
43177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43180 char (*f) () = $ac_func;
43189 return f != $ac_func;
43194 rm -f conftest.$ac_objext conftest$ac_exeext
43195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43196 (eval $ac_link) 2>conftest.er1
43198 grep -v '^ *+' conftest.er1 >conftest.err
43200 cat conftest.err >&5
43201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43202 (exit $ac_status); } &&
43203 { ac_try='test -z "$ac_c_werror_flag"
43204 || test ! -s conftest.err'
43205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43206 (eval $ac_try) 2>&5
43208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43209 (exit $ac_status); }; } &&
43210 { ac_try='test -s conftest$ac_exeext'
43211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43212 (eval $ac_try) 2>&5
43214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43215 (exit $ac_status); }; }; then
43216 eval "$as_ac_var=yes"
43218 echo "$as_me: failed program was:" >&5
43219 sed 's/^/| /' conftest.$ac_ext >&5
43221 eval "$as_ac_var=no"
43223 rm -f conftest.err conftest.$ac_objext \
43224 conftest$ac_exeext conftest.$ac_ext
43226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43228 if test `eval echo '${'$as_ac_var'}'` = yes; then
43229 cat >>confdefs.h <<_ACEOF
43230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43235 "$ac_func.$ac_objext" | \
43236 *" $ac_func.$ac_objext" | \
43237 "$ac_func.$ac_objext "* | \
43238 *" $ac_func.$ac_objext "* ) ;;
43239 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43247 if test "$ac_cv_func_getopt" != yes; then
43248 LIBSRCS="$LIBSRCS getopt.c"
43250 if test "$ac_cv_func_getpeereid" != yes; then
43251 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43252 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43253 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43254 echo $ECHO_N "(cached) $ECHO_C" >&6
43256 cat >conftest.$ac_ext <<_ACEOF
43259 cat confdefs.h >>conftest.$ac_ext
43260 cat >>conftest.$ac_ext <<_ACEOF
43261 /* end confdefs.h. */
43262 $ac_includes_default
43263 #ifdef HAVE_SYS_SOCKET_H
43264 #include <sys/socket.h>
43270 static struct msghdr ac_aggr;
43271 if (ac_aggr.msg_accrightslen)
43277 rm -f conftest.$ac_objext
43278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43279 (eval $ac_compile) 2>conftest.er1
43281 grep -v '^ *+' conftest.er1 >conftest.err
43283 cat conftest.err >&5
43284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43285 (exit $ac_status); } &&
43286 { ac_try='test -z "$ac_c_werror_flag"
43287 || test ! -s conftest.err'
43288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43289 (eval $ac_try) 2>&5
43291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43292 (exit $ac_status); }; } &&
43293 { ac_try='test -s conftest.$ac_objext'
43294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43295 (eval $ac_try) 2>&5
43297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43298 (exit $ac_status); }; }; then
43299 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43301 echo "$as_me: failed program was:" >&5
43302 sed 's/^/| /' conftest.$ac_ext >&5
43304 cat >conftest.$ac_ext <<_ACEOF
43307 cat confdefs.h >>conftest.$ac_ext
43308 cat >>conftest.$ac_ext <<_ACEOF
43309 /* end confdefs.h. */
43310 $ac_includes_default
43311 #ifdef HAVE_SYS_SOCKET_H
43312 #include <sys/socket.h>
43318 static struct msghdr ac_aggr;
43319 if (sizeof ac_aggr.msg_accrightslen)
43325 rm -f conftest.$ac_objext
43326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43327 (eval $ac_compile) 2>conftest.er1
43329 grep -v '^ *+' conftest.er1 >conftest.err
43331 cat conftest.err >&5
43332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43333 (exit $ac_status); } &&
43334 { ac_try='test -z "$ac_c_werror_flag"
43335 || test ! -s conftest.err'
43336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43337 (eval $ac_try) 2>&5
43339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43340 (exit $ac_status); }; } &&
43341 { ac_try='test -s conftest.$ac_objext'
43342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43343 (eval $ac_try) 2>&5
43345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43346 (exit $ac_status); }; }; then
43347 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43349 echo "$as_me: failed program was:" >&5
43350 sed 's/^/| /' conftest.$ac_ext >&5
43352 ac_cv_member_struct_msghdr_msg_accrightslen=no
43354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43358 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43359 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43360 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43362 cat >>confdefs.h <<_ACEOF
43363 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43369 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43370 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43371 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43372 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43373 echo $ECHO_N "(cached) $ECHO_C" >&6
43375 cat >conftest.$ac_ext <<_ACEOF
43378 cat confdefs.h >>conftest.$ac_ext
43379 cat >>conftest.$ac_ext <<_ACEOF
43380 /* end confdefs.h. */
43381 $ac_includes_default
43382 #ifdef HAVE_SYS_SOCKET_H
43383 #include <sys/socket.h>
43389 static struct msghdr ac_aggr;
43390 if (ac_aggr.msg_control)
43396 rm -f conftest.$ac_objext
43397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43398 (eval $ac_compile) 2>conftest.er1
43400 grep -v '^ *+' conftest.er1 >conftest.err
43402 cat conftest.err >&5
43403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43404 (exit $ac_status); } &&
43405 { ac_try='test -z "$ac_c_werror_flag"
43406 || test ! -s conftest.err'
43407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43408 (eval $ac_try) 2>&5
43410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43411 (exit $ac_status); }; } &&
43412 { ac_try='test -s conftest.$ac_objext'
43413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43414 (eval $ac_try) 2>&5
43416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43417 (exit $ac_status); }; }; then
43418 ac_cv_member_struct_msghdr_msg_control=yes
43420 echo "$as_me: failed program was:" >&5
43421 sed 's/^/| /' conftest.$ac_ext >&5
43423 cat >conftest.$ac_ext <<_ACEOF
43426 cat confdefs.h >>conftest.$ac_ext
43427 cat >>conftest.$ac_ext <<_ACEOF
43428 /* end confdefs.h. */
43429 $ac_includes_default
43430 #ifdef HAVE_SYS_SOCKET_H
43431 #include <sys/socket.h>
43437 static struct msghdr ac_aggr;
43438 if (sizeof ac_aggr.msg_control)
43444 rm -f conftest.$ac_objext
43445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43446 (eval $ac_compile) 2>conftest.er1
43448 grep -v '^ *+' conftest.er1 >conftest.err
43450 cat conftest.err >&5
43451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43452 (exit $ac_status); } &&
43453 { ac_try='test -z "$ac_c_werror_flag"
43454 || test ! -s conftest.err'
43455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43456 (eval $ac_try) 2>&5
43458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43459 (exit $ac_status); }; } &&
43460 { ac_try='test -s conftest.$ac_objext'
43461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43462 (eval $ac_try) 2>&5
43464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43465 (exit $ac_status); }; }; then
43466 ac_cv_member_struct_msghdr_msg_control=yes
43468 echo "$as_me: failed program was:" >&5
43469 sed 's/^/| /' conftest.$ac_ext >&5
43471 ac_cv_member_struct_msghdr_msg_control=no
43473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43477 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43478 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43479 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43481 cat >>confdefs.h <<_ACEOF
43482 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43489 LIBSRCS="$LIBSRCS getpeereid.c"
43491 if test "$ac_cv_func_snprintf" != yes ||
43492 test "$ac_cv_func_vsnprintf" != yes; then
43493 if test "$ac_cv_func_snprintf" != yes; then
43495 cat >>confdefs.h <<\_ACEOF
43496 #define snprintf ber_pvt_snprintf
43500 if test "$ac_cv_func_vsnprintf" != yes; then
43502 cat >>confdefs.h <<\_ACEOF
43503 #define vsnprintf ber_pvt_vsnprintf
43510 if test "$ol_enable_slapi" != no ; then
43512 for ac_header in ltdl.h
43514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43516 echo "$as_me:$LINENO: checking for $ac_header" >&5
43517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43519 echo $ECHO_N "(cached) $ECHO_C" >&6
43521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43524 # Is the header compilable?
43525 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43527 cat >conftest.$ac_ext <<_ACEOF
43530 cat confdefs.h >>conftest.$ac_ext
43531 cat >>conftest.$ac_ext <<_ACEOF
43532 /* end confdefs.h. */
43533 $ac_includes_default
43534 #include <$ac_header>
43536 rm -f conftest.$ac_objext
43537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43538 (eval $ac_compile) 2>conftest.er1
43540 grep -v '^ *+' conftest.er1 >conftest.err
43542 cat conftest.err >&5
43543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43544 (exit $ac_status); } &&
43545 { ac_try='test -z "$ac_c_werror_flag"
43546 || test ! -s conftest.err'
43547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43548 (eval $ac_try) 2>&5
43550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43551 (exit $ac_status); }; } &&
43552 { ac_try='test -s conftest.$ac_objext'
43553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43554 (eval $ac_try) 2>&5
43556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43557 (exit $ac_status); }; }; then
43558 ac_header_compiler=yes
43560 echo "$as_me: failed program was:" >&5
43561 sed 's/^/| /' conftest.$ac_ext >&5
43563 ac_header_compiler=no
43565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43567 echo "${ECHO_T}$ac_header_compiler" >&6
43569 # Is the header present?
43570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43572 cat >conftest.$ac_ext <<_ACEOF
43575 cat confdefs.h >>conftest.$ac_ext
43576 cat >>conftest.$ac_ext <<_ACEOF
43577 /* end confdefs.h. */
43578 #include <$ac_header>
43580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43583 grep -v '^ *+' conftest.er1 >conftest.err
43585 cat conftest.err >&5
43586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43587 (exit $ac_status); } >/dev/null; then
43588 if test -s conftest.err; then
43589 ac_cpp_err=$ac_c_preproc_warn_flag
43590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43597 if test -z "$ac_cpp_err"; then
43598 ac_header_preproc=yes
43600 echo "$as_me: failed program was:" >&5
43601 sed 's/^/| /' conftest.$ac_ext >&5
43603 ac_header_preproc=no
43605 rm -f conftest.err conftest.$ac_ext
43606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43607 echo "${ECHO_T}$ac_header_preproc" >&6
43609 # So? What about this header?
43610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43616 ac_header_preproc=yes
43619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43633 ## --------------------------------------------- ##
43634 ## Report this to <http://www.openldap.org/its/> ##
43635 ## --------------------------------------------- ##
43638 sed "s/^/$as_me: WARNING: /" >&2
43641 echo "$as_me:$LINENO: checking for $ac_header" >&5
43642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43644 echo $ECHO_N "(cached) $ECHO_C" >&6
43646 eval "$as_ac_Header=\$ac_header_preproc"
43648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43653 cat >>confdefs.h <<_ACEOF
43654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43662 if test $ac_cv_header_ltdl_h != yes ; then
43663 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
43664 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
43665 { (exit 1); exit 1; }; }
43667 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
43668 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
43669 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
43670 echo $ECHO_N "(cached) $ECHO_C" >&6
43672 ac_check_lib_save_LIBS=$LIBS
43673 LIBS="-lltdl $LIBS"
43674 cat >conftest.$ac_ext <<_ACEOF
43677 cat confdefs.h >>conftest.$ac_ext
43678 cat >>conftest.$ac_ext <<_ACEOF
43679 /* end confdefs.h. */
43681 /* Override any gcc2 internal prototype to avoid an error. */
43685 /* We use char because int might match the return type of a gcc2
43686 builtin and then its argument prototype would still apply. */
43696 rm -f conftest.$ac_objext conftest$ac_exeext
43697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43698 (eval $ac_link) 2>conftest.er1
43700 grep -v '^ *+' conftest.er1 >conftest.err
43702 cat conftest.err >&5
43703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43704 (exit $ac_status); } &&
43705 { ac_try='test -z "$ac_c_werror_flag"
43706 || test ! -s conftest.err'
43707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43708 (eval $ac_try) 2>&5
43710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43711 (exit $ac_status); }; } &&
43712 { ac_try='test -s conftest$ac_exeext'
43713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43714 (eval $ac_try) 2>&5
43716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43717 (exit $ac_status); }; }; then
43718 ac_cv_lib_ltdl_lt_dlinit=yes
43720 echo "$as_me: failed program was:" >&5
43721 sed 's/^/| /' conftest.$ac_ext >&5
43723 ac_cv_lib_ltdl_lt_dlinit=no
43725 rm -f conftest.err conftest.$ac_objext \
43726 conftest$ac_exeext conftest.$ac_ext
43727 LIBS=$ac_check_lib_save_LIBS
43729 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
43730 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
43731 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
43734 LIBSLAPI=libslapi.a
43735 LIBSLAPITOOLS=../libslapi.a
43737 cat >>confdefs.h <<\_ACEOF
43738 #define HAVE_LIBLTDL 1
43743 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
43744 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
43745 { (exit 1); exit 1; }; }
43750 cat >>confdefs.h <<\_ACEOF
43751 #define LDAP_SLAPI 1
43756 if test "$ol_enable_debug" != no ; then
43758 cat >>confdefs.h <<\_ACEOF
43759 #define LDAP_DEBUG 1
43763 if test "$ol_enable_syslog" = yes ; then
43765 cat >>confdefs.h <<\_ACEOF
43766 #define LDAP_SYSLOG 1
43770 if test "$ol_link_kbind" != no ; then
43772 cat >>confdefs.h <<\_ACEOF
43773 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
43777 if test "$ol_enable_proctitle" != no ; then
43779 cat >>confdefs.h <<\_ACEOF
43780 #define LDAP_PROCTITLE 1
43784 if test "$ol_enable_referrals" != no ; then
43786 cat >>confdefs.h <<\_ACEOF
43787 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
43791 if test "$ol_enable_local" != no; then
43793 cat >>confdefs.h <<\_ACEOF
43794 #define LDAP_PF_LOCAL 1
43798 if test "$ol_link_ipv6" != no; then
43800 cat >>confdefs.h <<\_ACEOF
43801 #define LDAP_PF_INET6 1
43805 if test "$ol_enable_cleartext" != no ; then
43807 cat >>confdefs.h <<\_ACEOF
43808 #define SLAPD_CLEARTEXT 1
43812 if test "$ol_enable_crypt" != no ; then
43814 cat >>confdefs.h <<\_ACEOF
43815 #define SLAPD_CRYPT 1
43819 if test "$ol_link_spasswd" != no ; then
43821 cat >>confdefs.h <<\_ACEOF
43822 #define SLAPD_SPASSWD 1
43826 if test "$ol_enable_multimaster" != no ; then
43828 cat >>confdefs.h <<\_ACEOF
43829 #define SLAPD_MULTIMASTER 1
43833 if test "$ol_enable_rlookups" != no ; then
43835 cat >>confdefs.h <<\_ACEOF
43836 #define SLAPD_RLOOKUPS 1
43840 if test "$ol_enable_aci" != no ; then
43842 cat >>confdefs.h <<\_ACEOF
43843 #define SLAPD_ACI_ENABLED 1
43846 WITH_ACI_ENABLED=yes
43848 WITH_ACI_ENABLED=no
43851 if test "$ol_link_modules" != no ; then
43853 cat >>confdefs.h <<\_ACEOF
43854 #define SLAPD_MODULES 1
43858 SLAPD_MODULES_LDFLAGS="-dlopen self"
43862 cat >>confdefs.h <<\_ACEOF
43863 #define SLAPD_MOD_STATIC 1
43867 cat >>confdefs.h <<\_ACEOF
43868 #define SLAPD_MOD_DYNAMIC 2
43872 if test "$ol_enable_bdb" != no ; then
43874 BUILD_BDB=$ol_enable_bdb
43875 if test "$ol_enable_bdb" = mod ; then
43876 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
43877 MFLAG=SLAPD_MOD_DYNAMIC
43879 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
43880 MFLAG=SLAPD_MOD_STATIC
43883 cat >>confdefs.h <<_ACEOF
43884 #define SLAPD_BDB $MFLAG
43889 if test "$ol_enable_dnssrv" != no ; then
43891 BUILD_DNSSRV=$ol_enable_dnssrv
43892 if test "$ol_enable_dnssrv" = mod ; then
43893 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
43894 MFLAG=SLAPD_MOD_DYNAMIC
43896 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
43897 MFLAG=SLAPD_MOD_STATIC
43900 cat >>confdefs.h <<_ACEOF
43901 #define SLAPD_DNSSRV $MFLAG
43906 if test "$ol_enable_hdb" != no ; then
43908 BUILD_HDB=$ol_enable_hdb
43909 if test "$ol_enable_hdb" = mod ; then
43910 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
43911 MFLAG=SLAPD_MOD_DYNAMIC
43913 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
43914 MFLAG=SLAPD_MOD_STATIC
43917 cat >>confdefs.h <<_ACEOF
43918 #define SLAPD_HDB $MFLAG
43923 if test "$ol_enable_ldap" != no ; then
43925 BUILD_LDAP=$ol_enable_ldap
43926 if test "$ol_enable_ldap" = mod ; then
43927 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
43928 MFLAG=SLAPD_MOD_DYNAMIC
43930 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
43931 MFLAG=SLAPD_MOD_STATIC
43934 cat >>confdefs.h <<_ACEOF
43935 #define SLAPD_LDAP $MFLAG
43940 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
43942 BUILD_LDBM=$ol_enable_ldbm
43943 if test "$ol_enable_ldbm" = mod ; then
43944 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
43945 MFLAG=SLAPD_MOD_DYNAMIC
43947 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
43948 MFLAG=SLAPD_MOD_STATIC
43951 cat >>confdefs.h <<_ACEOF
43952 #define SLAPD_LDBM $MFLAG
43957 if test "$ol_enable_meta" != no ; then
43959 BUILD_META=$ol_enable_meta
43961 if test "$ol_enable_meta" = mod ; then
43962 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
43963 MFLAG=SLAPD_MOD_DYNAMIC
43965 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
43966 MFLAG=SLAPD_MOD_STATIC
43969 cat >>confdefs.h <<_ACEOF
43970 #define SLAPD_META $MFLAG
43975 if test "$ol_enable_monitor" != no ; then
43977 BUILD_MONITOR=$ol_enable_monitor
43978 if test "$ol_enable_monitor" = mod ; then
43979 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
43980 MFLAG=SLAPD_MOD_DYNAMIC
43982 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
43983 MFLAG=SLAPD_MOD_STATIC
43986 cat >>confdefs.h <<_ACEOF
43987 #define SLAPD_MONITOR $MFLAG
43992 if test "$ol_enable_null" != no ; then
43994 BUILD_NULL=$ol_enable_null
43995 if test "$ol_enable_null" = mod ; then
43996 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
43997 MFLAG=SLAPD_MOD_DYNAMIC
43999 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44000 MFLAG=SLAPD_MOD_STATIC
44003 cat >>confdefs.h <<_ACEOF
44004 #define SLAPD_NULL $MFLAG
44009 if test "$ol_enable_passwd" != no ; then
44011 BUILD_PASSWD=$ol_enable_passwd
44012 if test "$ol_enable_passwd" = mod ; then
44013 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44014 MFLAG=SLAPD_MOD_DYNAMIC
44016 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44017 MFLAG=SLAPD_MOD_STATIC
44020 cat >>confdefs.h <<_ACEOF
44021 #define SLAPD_PASSWD $MFLAG
44026 if test "$ol_link_perl" != no ; then
44028 BUILD_PERL=$ol_enable_perl
44029 if test "$ol_enable_perl" = mod ; then
44030 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44031 MFLAG=SLAPD_MOD_DYNAMIC
44033 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44034 MFLAG=SLAPD_MOD_STATIC
44037 cat >>confdefs.h <<_ACEOF
44038 #define SLAPD_PERL $MFLAG
44043 if test "$ol_enable_relay" != no ; then
44045 BUILD_RELAY=$ol_enable_relay
44046 if test "$ol_enable_relay" = mod ; then
44047 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44048 MFLAG=SLAPD_MOD_DYNAMIC
44050 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44051 MFLAG=SLAPD_MOD_STATIC
44054 cat >>confdefs.h <<_ACEOF
44055 #define SLAPD_RELAY $MFLAG
44060 if test "$ol_enable_shell" != no ; then
44061 if test "$ol_link_threads" != no ; then
44062 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44063 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44066 BUILD_SHELL=$ol_enable_shell
44067 if test "$ol_enable_shell" = mod ; then
44068 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44069 MFLAG=SLAPD_MOD_DYNAMIC
44071 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44072 MFLAG=SLAPD_MOD_STATIC
44075 cat >>confdefs.h <<_ACEOF
44076 #define SLAPD_SHELL $MFLAG
44081 if test "$ol_link_sql" != no ; then
44083 BUILD_SQL=$ol_enable_sql
44084 if test "$ol_enable_sql" = mod; then
44085 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44086 MFLAG=SLAPD_MOD_DYNAMIC
44088 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44089 MFLAG=SLAPD_MOD_STATIC
44092 cat >>confdefs.h <<_ACEOF
44093 #define SLAPD_SQL $MFLAG
44098 if test "$ol_enable_accesslog" != no ; then
44099 BUILD_ACCESSLOG=$ol_enable_accesslog
44100 if test "$ol_enable_accesslog" = mod ; then
44101 MFLAG=SLAPD_MOD_DYNAMIC
44102 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44104 MFLAG=SLAPD_MOD_STATIC
44105 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44108 cat >>confdefs.h <<_ACEOF
44109 #define SLAPD_OVER_ACCESSLOG $MFLAG
44114 if test "$ol_enable_denyop" != no ; then
44115 BUILD_DENYOP=$ol_enable_denyop
44116 if test "$ol_enable_denyop" = mod ; then
44117 MFLAG=SLAPD_MOD_DYNAMIC
44118 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44120 MFLAG=SLAPD_MOD_STATIC
44121 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44124 cat >>confdefs.h <<_ACEOF
44125 #define SLAPD_OVER_DENYOP $MFLAG
44130 if test "$ol_enable_dyngroup" != no ; then
44131 BUILD_DYNGROUP=$ol_enable_dyngroup
44132 if test "$ol_enable_dyngroup" = mod ; then
44133 MFLAG=SLAPD_MOD_DYNAMIC
44134 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44136 MFLAG=SLAPD_MOD_STATIC
44137 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44140 cat >>confdefs.h <<_ACEOF
44141 #define SLAPD_OVER_DYNGROUP $MFLAG
44146 if test "$ol_enable_dynlist" != no ; then
44147 BUILD_DYNLIST=$ol_enable_dynlist
44148 if test "$ol_enable_dynlist" = mod ; then
44149 MFLAG=SLAPD_MOD_DYNAMIC
44150 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44152 MFLAG=SLAPD_MOD_STATIC
44153 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44156 cat >>confdefs.h <<_ACEOF
44157 #define SLAPD_OVER_DYNLIST $MFLAG
44162 if test "$ol_enable_lastmod" != no ; then
44163 BUILD_LASTMOD=$ol_enable_lastmod
44164 if test "$ol_enable_lastmod" = mod ; then
44165 MFLAG=SLAPD_MOD_DYNAMIC
44166 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44168 MFLAG=SLAPD_MOD_STATIC
44169 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44172 cat >>confdefs.h <<_ACEOF
44173 #define SLAPD_OVER_LASTMOD $MFLAG
44178 if test "$ol_enable_ppolicy" != no ; then
44179 BUILD_PPOLICY=$ol_enable_ppolicy
44180 if test "$ol_enable_ppolicy" = mod ; then
44181 MFLAG=SLAPD_MOD_DYNAMIC
44182 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44184 MFLAG=SLAPD_MOD_STATIC
44185 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44188 cat >>confdefs.h <<_ACEOF
44189 #define SLAPD_OVER_PPOLICY $MFLAG
44194 if test "$ol_enable_proxycache" != no ; then
44195 BUILD_PROXYCACHE=$ol_enable_proxycache
44196 if test "$ol_enable_proxycache" = mod ; then
44197 MFLAG=SLAPD_MOD_DYNAMIC
44198 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44200 MFLAG=SLAPD_MOD_STATIC
44201 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44204 cat >>confdefs.h <<_ACEOF
44205 #define SLAPD_OVER_PROXYCACHE $MFLAG
44210 if test "$ol_enable_refint" != no ; then
44211 BUILD_REFINT=$ol_enable_refint
44212 if test "$ol_enable_refint" = mod ; then
44213 MFLAG=SLAPD_MOD_DYNAMIC
44214 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44216 MFLAG=SLAPD_MOD_STATIC
44217 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44220 cat >>confdefs.h <<_ACEOF
44221 #define SLAPD_OVER_REFINT $MFLAG
44226 if test "$ol_enable_retcode" != no ; then
44227 BUILD_RETCODE=$ol_enable_retcode
44228 if test "$ol_enable_retcode" = mod ; then
44229 MFLAG=SLAPD_MOD_DYNAMIC
44230 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44232 MFLAG=SLAPD_MOD_STATIC
44233 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44236 cat >>confdefs.h <<_ACEOF
44237 #define SLAPD_OVER_RETCODE $MFLAG
44242 if test "$ol_enable_rwm" != no ; then
44244 BUILD_RWM=$ol_enable_rwm
44245 if test "$ol_enable_rwm" = mod ; then
44246 MFLAG=SLAPD_MOD_DYNAMIC
44247 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44249 MFLAG=SLAPD_MOD_STATIC
44250 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44253 cat >>confdefs.h <<_ACEOF
44254 #define SLAPD_OVER_RWM $MFLAG
44259 if test "$ol_enable_syncprov" != no ; then
44260 BUILD_SYNCPROV=$ol_enable_syncprov
44261 if test "$ol_enable_syncprov" = mod ; then
44262 MFLAG=SLAPD_MOD_DYNAMIC
44263 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44265 MFLAG=SLAPD_MOD_STATIC
44266 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44269 cat >>confdefs.h <<_ACEOF
44270 #define SLAPD_OVER_SYNCPROV $MFLAG
44275 if test "$ol_enable_translucent" != no ; then
44276 BUILD_TRANSLUCENT=$ol_enable_translucent
44277 if test "$ol_enable_translucent" = mod ; then
44278 MFLAG=SLAPD_MOD_DYNAMIC
44279 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44281 MFLAG=SLAPD_MOD_STATIC
44282 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44285 cat >>confdefs.h <<_ACEOF
44286 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44291 if test "$ol_enable_unique" != no ; then
44292 BUILD_UNIQUE=$ol_enable_unique
44293 if test "$ol_enable_unique" = mod ; then
44294 MFLAG=SLAPD_MOD_DYNAMIC
44295 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44297 MFLAG=SLAPD_MOD_STATIC
44298 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44301 cat >>confdefs.h <<_ACEOF
44302 #define SLAPD_OVER_UNIQUE $MFLAG
44307 if test "$ol_enable_valsort" != no ; then
44308 BUILD_VALSORT=$ol_enable_valsort
44309 if test "$ol_enable_valsort" = mod ; then
44310 MFLAG=SLAPD_MOD_DYNAMIC
44311 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44313 MFLAG=SLAPD_MOD_STATIC
44314 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44317 cat >>confdefs.h <<_ACEOF
44318 #define SLAPD_OVER_VALSORT $MFLAG
44323 if test "$ol_enable_slurpd" != no &&
44324 test "$ol_link_threads" != no &&
44325 test $BUILD_SLAPD = yes ; then
44329 if test "$ol_enable_rewrite" != no ; then
44331 cat >>confdefs.h <<\_ACEOF
44332 #define ENABLE_REWRITE 1
44338 if test "$ol_enable_slapi" != no ; then
44340 cat >>confdefs.h <<\_ACEOF
44341 #define ENABLE_SLAPI 1
44345 SLAPD_SLAPI_DEPEND=libslapi.a
44350 if test "$ac_cv_mingw32" = yes ; then
44352 SLAPD_MODULES_LDFLAGS=
44437 # Check whether --with-xxinstall or --without-xxinstall was given.
44438 if test "${with_xxinstall+set}" = set; then
44439 withval="$with_xxinstall"
44444 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"
44447 ac_config_commands="$ac_config_commands default"
44451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44452 # Let make expand exec_prefix.
44453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44455 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44456 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44457 # trailing colons and then remove the whole line if VPATH becomes empty
44458 # (actually we leave an empty line to preserve line numbers).
44459 if test "x$srcdir" = x.; then
44460 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44461 s/:*\$(srcdir):*/:/;
44462 s/:*\${srcdir}:*/:/;
44464 s/^\([^=]*=[ ]*\):*/\1/;
44470 DEFS=-DHAVE_CONFIG_H
44474 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44475 # 1. Remove the extension, and $U if already installed.
44476 ac_i=`echo "$ac_i" |
44477 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44479 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44480 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44482 LIBOBJS=$ac_libobjs
44484 LTLIBOBJS=$ac_ltlibobjs
44487 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44488 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44489 Usually this means the macro was only invoked conditionally." >&5
44490 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44491 Usually this means the macro was only invoked conditionally." >&2;}
44492 { (exit 1); exit 1; }; }
44494 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44495 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44496 Usually this means the macro was only invoked conditionally." >&5
44497 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44498 Usually this means the macro was only invoked conditionally." >&2;}
44499 { (exit 1); exit 1; }; }
44501 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44502 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44503 Usually this means the macro was only invoked conditionally." >&5
44504 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44505 Usually this means the macro was only invoked conditionally." >&2;}
44506 { (exit 1); exit 1; }; }
44509 : ${CONFIG_STATUS=./config.status}
44510 ac_clean_files_save=$ac_clean_files
44511 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44512 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44513 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44514 cat >$CONFIG_STATUS <<_ACEOF
44516 # Generated by $as_me.
44517 # Run this file to recreate the current configuration.
44518 # Compiler output produced by configure, useful for debugging
44519 # configure, is in config.log if it exists.
44522 ac_cs_recheck=false
44524 SHELL=\${CONFIG_SHELL-$SHELL}
44527 cat >>$CONFIG_STATUS <<\_ACEOF
44528 ## --------------------- ##
44529 ## M4sh Initialization. ##
44530 ## --------------------- ##
44532 # Be Bourne compatible
44533 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44536 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44537 # is contrary to our usage. Disable this feature.
44538 alias -g '${1+"$@"}'='"$@"'
44539 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44542 DUALCASE=1; export DUALCASE # for MKS sh
44544 # Support unset when possible.
44545 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44552 # Work around bugs in pre-3.0 UWIN ksh.
44553 $as_unset ENV MAIL MAILPATH
44560 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44561 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44562 LC_TELEPHONE LC_TIME
44564 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44565 eval $as_var=C; export $as_var
44571 # Required to use basename.
44572 if expr a : '\(a\)' >/dev/null 2>&1; then
44578 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44579 as_basename=basename
44585 # Name of the executable.
44586 as_me=`$as_basename "$0" ||
44587 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44588 X"$0" : 'X\(//\)$' \| \
44589 X"$0" : 'X\(/\)$' \| \
44590 . : '\(.\)' 2>/dev/null ||
44592 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44593 /^X\/\(\/\/\)$/{ s//\1/; q; }
44594 /^X\/\(\/\).*/{ s//\1/; q; }
44598 # PATH needs CR, and LINENO needs CR and PATH.
44599 # Avoid depending upon Character Ranges.
44600 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44601 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44602 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44603 as_cr_digits='0123456789'
44604 as_cr_alnum=$as_cr_Letters$as_cr_digits
44606 # The user is always right.
44607 if test "${PATH_SEPARATOR+set}" != set; then
44608 echo "#! /bin/sh" >conf$$.sh
44609 echo "exit 0" >>conf$$.sh
44611 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44620 as_lineno_1=$LINENO
44621 as_lineno_2=$LINENO
44622 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44623 test "x$as_lineno_1" != "x$as_lineno_2" &&
44624 test "x$as_lineno_3" = "x$as_lineno_2" || {
44625 # Find who we are. Look in the path if we contain no path at all
44628 *[\\/]* ) as_myself=$0 ;;
44629 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44630 for as_dir in $PATH
44633 test -z "$as_dir" && as_dir=.
44634 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44639 # We did not find ourselves, most probably we were run as `sh COMMAND'
44640 # in which case we are not to be found in the path.
44641 if test "x$as_myself" = x; then
44644 if test ! -f "$as_myself"; then
44645 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44646 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44647 { (exit 1); exit 1; }; }
44649 case $CONFIG_SHELL in
44651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44652 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44655 test -z "$as_dir" && as_dir=.
44656 for as_base in sh bash ksh sh5; do
44659 if ("$as_dir/$as_base" -c '
44660 as_lineno_1=$LINENO
44661 as_lineno_2=$LINENO
44662 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44663 test "x$as_lineno_1" != "x$as_lineno_2" &&
44664 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
44665 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44666 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44667 CONFIG_SHELL=$as_dir/$as_base
44668 export CONFIG_SHELL
44669 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44677 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44678 # uniformly replaced by the line number. The first 'sed' inserts a
44679 # line-number line before each line; the second 'sed' does the real
44680 # work. The second script uses 'N' to pair each line-number line
44681 # with the numbered line, and appends trailing '-' during
44682 # substitution so that $LINENO is not a special case at line end.
44683 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44684 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44685 sed '=' <$as_myself |
44690 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44693 s,^['$as_cr_digits']*\n,,
44694 ' >$as_me.lineno &&
44695 chmod +x $as_me.lineno ||
44696 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44697 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44698 { (exit 1); exit 1; }; }
44700 # Don't try to exec as it changes $[0], causing all sort of problems
44701 # (the dirname of $[0] is not the place where we might find the
44702 # original and so on. Autoconf is especially sensible to this).
44704 # Exit status is that of the last command.
44709 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44710 *c*,-n*) ECHO_N= ECHO_C='
44712 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44713 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44716 if expr a : '\(a\)' >/dev/null 2>&1; then
44722 rm -f conf$$ conf$$.exe conf$$.file
44724 if ln -s conf$$.file conf$$ 2>/dev/null; then
44725 # We could just check for DJGPP; but this test a) works b) is more generic
44726 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44727 if test -f conf$$.exe; then
44728 # Don't use ln at all; we don't have any links
44733 elif ln conf$$.file conf$$ 2>/dev/null; then
44738 rm -f conf$$ conf$$.exe conf$$.file
44740 if mkdir -p . 2>/dev/null; then
44743 test -d ./-p && rmdir ./-p
44747 as_executable_p="test -f"
44749 # Sed expression to map a string onto a valid CPP name.
44750 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44752 # Sed expression to map a string onto a valid variable name.
44753 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44757 # We need space, tab and new line, in precisely that order.
44767 # Open the log real soon, to keep \$[0] and so on meaningful, and to
44768 # report actual input values of CONFIG_FILES etc. instead of their
44769 # values after options handling. Logging --version etc. is OK.
44773 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44774 ## Running $as_me. ##
44779 This file was extended by $as_me, which was
44780 generated by GNU Autoconf 2.59. Invocation command line was
44782 CONFIG_FILES = $CONFIG_FILES
44783 CONFIG_HEADERS = $CONFIG_HEADERS
44784 CONFIG_LINKS = $CONFIG_LINKS
44785 CONFIG_COMMANDS = $CONFIG_COMMANDS
44789 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44793 # Files that config.status was made for.
44794 if test -n "$ac_config_files"; then
44795 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44798 if test -n "$ac_config_headers"; then
44799 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44802 if test -n "$ac_config_links"; then
44803 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44806 if test -n "$ac_config_commands"; then
44807 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44810 cat >>$CONFIG_STATUS <<\_ACEOF
44813 \`$as_me' instantiates files from templates according to the
44814 current configuration.
44816 Usage: $0 [OPTIONS] [FILE]...
44818 -h, --help print this help, then exit
44819 -V, --version print version number, then exit
44820 -q, --quiet do not print progress messages
44821 -d, --debug don't remove temporary files
44822 --recheck update $as_me by reconfiguring in the same conditions
44823 --file=FILE[:TEMPLATE]
44824 instantiate the configuration file FILE
44825 --header=FILE[:TEMPLATE]
44826 instantiate the configuration header FILE
44828 Configuration files:
44831 Configuration headers:
44834 Configuration commands:
44837 Report bugs to <bug-autoconf@gnu.org>."
44840 cat >>$CONFIG_STATUS <<_ACEOF
44843 configured by $0, generated by GNU Autoconf 2.59,
44844 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44846 Copyright (C) 2003 Free Software Foundation, Inc.
44847 This config.status script is free software; the Free Software Foundation
44848 gives unlimited permission to copy, distribute and modify it."
44853 cat >>$CONFIG_STATUS <<\_ACEOF
44854 # If no file are specified by the user, then we need to provide default
44855 # value. By we need to know if files were specified by the user.
44861 ac_option=`expr "x$1" : 'x\([^=]*\)='`
44862 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44870 *) # This is not an option, so the user has probably given explicit
44873 ac_need_defaults=false;;
44877 # Handling of the options.
44879 cat >>$CONFIG_STATUS <<\_ACEOF
44880 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44882 --version | --vers* | -V )
44883 echo "$ac_cs_version"; exit 0 ;;
44885 # Conflict between --help and --header
44886 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44887 Try \`$0 --help' for more information." >&5
44888 echo "$as_me: error: ambiguous option: $1
44889 Try \`$0 --help' for more information." >&2;}
44890 { (exit 1); exit 1; }; };;
44891 --help | --hel | -h )
44892 echo "$ac_cs_usage"; exit 0 ;;
44893 --debug | --d* | -d )
44895 --file | --fil | --fi | --f )
44897 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44898 ac_need_defaults=false;;
44899 --header | --heade | --head | --hea )
44901 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44902 ac_need_defaults=false;;
44903 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44904 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44907 # This is an error.
44908 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44909 Try \`$0 --help' for more information." >&5
44910 echo "$as_me: error: unrecognized option: $1
44911 Try \`$0 --help' for more information." >&2;}
44912 { (exit 1); exit 1; }; } ;;
44914 *) ac_config_targets="$ac_config_targets $1" ;;
44920 ac_configure_extra_args=
44922 if $ac_cs_silent; then
44924 ac_configure_extra_args="$ac_configure_extra_args --silent"
44928 cat >>$CONFIG_STATUS <<_ACEOF
44929 if \$ac_cs_recheck; then
44930 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44931 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44936 cat >>$CONFIG_STATUS <<_ACEOF
44938 # INIT-COMMANDS section.
44941 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
44943 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
44944 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
44951 cat >>$CONFIG_STATUS <<\_ACEOF
44952 for ac_config_target in $ac_config_targets
44954 case "$ac_config_target" in
44955 # Handling of arguments.
44956 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
44957 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
44958 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
44959 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
44960 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
44961 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
44962 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
44963 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
44964 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
44965 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
44966 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
44967 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
44968 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
44969 "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" ;;
44970 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
44971 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
44972 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
44973 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
44974 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
44975 "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" ;;
44976 "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" ;;
44977 "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" ;;
44978 "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" ;;
44979 "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" ;;
44980 "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" ;;
44981 "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" ;;
44982 "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" ;;
44983 "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" ;;
44984 "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" ;;
44985 "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" ;;
44986 "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" ;;
44987 "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" ;;
44988 "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" ;;
44989 "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" ;;
44990 "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" ;;
44991 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
44992 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
44993 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
44994 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
44995 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
44996 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
44997 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
44998 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
44999 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45000 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45001 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45002 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45003 { (exit 1); exit 1; }; };;
45007 # If the user did not use the arguments to specify the items to instantiate,
45008 # then the envvar interface is used. Set only those that are not.
45009 # We use the long form for the default assignment because of an extremely
45010 # bizarre bug on SunOS 4.1.3.
45011 if $ac_need_defaults; then
45012 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45013 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45014 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45017 # Have a temporary directory for convenience. Make it in the build tree
45018 # simply because there is no reason to put it here, and in addition,
45019 # creating and moving files from /tmp can sometimes cause problems.
45020 # Create a temporary directory, and hook for its removal unless debugging.
45023 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45024 trap '{ (exit 1); exit 1; }' 1 2 13 15
45027 # Create a (secure) tmp directory for tmp files.
45030 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45031 test -n "$tmp" && test -d "$tmp"
45034 tmp=./confstat$$-$RANDOM
45035 (umask 077 && mkdir $tmp)
45038 echo "$me: cannot create a temporary directory in ." >&2
45039 { (exit 1); exit 1; }
45044 cat >>$CONFIG_STATUS <<_ACEOF
45047 # CONFIG_FILES section.
45050 # No need to generate the scripts if there are no CONFIG_FILES.
45051 # This happens for instance when ./config.status config.h
45052 if test -n "\$CONFIG_FILES"; then
45053 # Protect against being on the right side of a sed subst in config.status.
45054 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45055 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45056 s,@SHELL@,$SHELL,;t t
45057 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45058 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45059 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45060 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45061 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45062 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45063 s,@exec_prefix@,$exec_prefix,;t t
45064 s,@prefix@,$prefix,;t t
45065 s,@program_transform_name@,$program_transform_name,;t t
45066 s,@bindir@,$bindir,;t t
45067 s,@sbindir@,$sbindir,;t t
45068 s,@libexecdir@,$libexecdir,;t t
45069 s,@datadir@,$datadir,;t t
45070 s,@sysconfdir@,$sysconfdir,;t t
45071 s,@sharedstatedir@,$sharedstatedir,;t t
45072 s,@localstatedir@,$localstatedir,;t t
45073 s,@libdir@,$libdir,;t t
45074 s,@includedir@,$includedir,;t t
45075 s,@oldincludedir@,$oldincludedir,;t t
45076 s,@infodir@,$infodir,;t t
45077 s,@mandir@,$mandir,;t t
45078 s,@build_alias@,$build_alias,;t t
45079 s,@host_alias@,$host_alias,;t t
45080 s,@target_alias@,$target_alias,;t t
45081 s,@DEFS@,$DEFS,;t t
45082 s,@ECHO_C@,$ECHO_C,;t t
45083 s,@ECHO_N@,$ECHO_N,;t t
45084 s,@ECHO_T@,$ECHO_T,;t t
45085 s,@LIBS@,$LIBS,;t t
45086 s,@build@,$build,;t t
45087 s,@build_cpu@,$build_cpu,;t t
45088 s,@build_vendor@,$build_vendor,;t t
45089 s,@build_os@,$build_os,;t t
45090 s,@host@,$host,;t t
45091 s,@host_cpu@,$host_cpu,;t t
45092 s,@host_vendor@,$host_vendor,;t t
45093 s,@host_os@,$host_os,;t t
45094 s,@target@,$target,;t t
45095 s,@target_cpu@,$target_cpu,;t t
45096 s,@target_vendor@,$target_vendor,;t t
45097 s,@target_os@,$target_os,;t t
45098 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45099 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45100 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45101 s,@CYGPATH_W@,$CYGPATH_W,;t t
45102 s,@PACKAGE@,$PACKAGE,;t t
45103 s,@VERSION@,$VERSION,;t t
45104 s,@ACLOCAL@,$ACLOCAL,;t t
45105 s,@AUTOCONF@,$AUTOCONF,;t t
45106 s,@AUTOMAKE@,$AUTOMAKE,;t t
45107 s,@AUTOHEADER@,$AUTOHEADER,;t t
45108 s,@MAKEINFO@,$MAKEINFO,;t t
45109 s,@install_sh@,$install_sh,;t t
45110 s,@STRIP@,$STRIP,;t t
45111 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45112 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45113 s,@mkdir_p@,$mkdir_p,;t t
45115 s,@SET_MAKE@,$SET_MAKE,;t t
45116 s,@am__leading_dot@,$am__leading_dot,;t t
45117 s,@AMTAR@,$AMTAR,;t t
45118 s,@am__tar@,$am__tar,;t t
45119 s,@am__untar@,$am__untar,;t t
45120 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45121 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45122 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45123 s,@top_builddir@,$top_builddir,;t t
45124 s,@ldap_subdir@,$ldap_subdir,;t t
45127 s,@CFLAGS@,$CFLAGS,;t t
45128 s,@LDFLAGS@,$LDFLAGS,;t t
45129 s,@CPPFLAGS@,$CPPFLAGS,;t t
45130 s,@ac_ct_CC@,$ac_ct_CC,;t t
45131 s,@EXEEXT@,$EXEEXT,;t t
45132 s,@OBJEXT@,$OBJEXT,;t t
45133 s,@DEPDIR@,$DEPDIR,;t t
45134 s,@am__include@,$am__include,;t t
45135 s,@am__quote@,$am__quote,;t t
45136 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45137 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45138 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45139 s,@CCDEPMODE@,$CCDEPMODE,;t t
45140 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45141 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45142 s,@EGREP@,$EGREP,;t t
45143 s,@LN_S@,$LN_S,;t t
45144 s,@ECHO@,$ECHO,;t t
45145 s,@ac_ct_AR@,$ac_ct_AR,;t t
45146 s,@RANLIB@,$RANLIB,;t t
45147 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45148 s,@DLLTOOL@,$DLLTOOL,;t t
45149 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45151 s,@ac_ct_AS@,$ac_ct_AS,;t t
45152 s,@OBJDUMP@,$OBJDUMP,;t t
45153 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45155 s,@LIBTOOL@,$LIBTOOL,;t t
45156 s,@PERLBIN@,$PERLBIN,;t t
45157 s,@OL_MKDEP@,$OL_MKDEP,;t t
45158 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45159 s,@LTSTATIC@,$LTSTATIC,;t t
45160 s,@LIBOBJS@,$LIBOBJS,;t t
45161 s,@LIBSRCS@,$LIBSRCS,;t t
45162 s,@PLAT@,$PLAT,;t t
45163 s,@WITH_SASL@,$WITH_SASL,;t t
45164 s,@WITH_TLS@,$WITH_TLS,;t t
45165 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45166 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45167 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45168 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45169 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45170 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45171 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45172 s,@BUILD_BDB@,$BUILD_BDB,;t t
45173 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45174 s,@BUILD_HDB@,$BUILD_HDB,;t t
45175 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45176 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45177 s,@BUILD_META@,$BUILD_META,;t t
45178 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45179 s,@BUILD_NULL@,$BUILD_NULL,;t t
45180 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45181 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45182 s,@BUILD_PERL@,$BUILD_PERL,;t t
45183 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45184 s,@BUILD_SQL@,$BUILD_SQL,;t t
45185 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45186 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45187 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45188 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45189 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45190 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45191 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45192 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45193 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45194 s,@BUILD_RWM@,$BUILD_RWM,;t t
45195 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45196 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45197 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45198 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45199 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45200 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45201 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45202 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45203 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45204 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45205 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45206 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45207 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45208 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45209 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45210 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45211 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45212 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45213 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45214 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45215 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45216 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45217 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45218 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45219 s,@SASL_LIBS@,$SASL_LIBS,;t t
45220 s,@TLS_LIBS@,$TLS_LIBS,;t t
45221 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45222 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45223 s,@LIBSLAPI@,$LIBSLAPI,;t t
45224 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45225 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45226 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45227 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45228 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45229 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45230 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45231 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45236 cat >>$CONFIG_STATUS <<\_ACEOF
45237 # Split the substitutions into bite-sized pieces for seds with
45238 # small command number limits, like on Digital OSF/1 and HP-UX.
45239 ac_max_sed_lines=48
45240 ac_sed_frag=1 # Number of current file.
45241 ac_beg=1 # First line for current file.
45242 ac_end=$ac_max_sed_lines # Line after last line for current file.
45245 while $ac_more_lines; do
45246 if test $ac_beg -gt 1; then
45247 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45249 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45251 if test ! -s $tmp/subs.frag; then
45252 ac_more_lines=false
45254 # The purpose of the label and of the branching condition is to
45255 # speed up the sed processing (if there are no `@' at all, there
45256 # is no need to browse any of the substitutions).
45257 # These are the two extra sed commands mentioned above.
45259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45260 if test -z "$ac_sed_cmds"; then
45261 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45263 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45265 ac_sed_frag=`expr $ac_sed_frag + 1`
45267 ac_end=`expr $ac_end + $ac_max_sed_lines`
45270 if test -z "$ac_sed_cmds"; then
45273 fi # test -n "$CONFIG_FILES"
45276 cat >>$CONFIG_STATUS <<\_ACEOF
45277 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45278 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45280 - | *:- | *:-:* ) # input from stdin
45282 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45283 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45284 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45285 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45286 * ) ac_file_in=$ac_file.in ;;
45289 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45290 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45292 X"$ac_file" : 'X\(//\)[^/]' \| \
45293 X"$ac_file" : 'X\(//\)$' \| \
45294 X"$ac_file" : 'X\(/\)' \| \
45295 . : '\(.\)' 2>/dev/null ||
45297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45298 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45299 /^X\(\/\/\)$/{ s//\1/; q; }
45300 /^X\(\/\).*/{ s//\1/; q; }
45302 { if $as_mkdir_p; then
45307 while test ! -d "$as_dir"; do
45308 as_dirs="$as_dir $as_dirs"
45309 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45311 X"$as_dir" : 'X\(//\)[^/]' \| \
45312 X"$as_dir" : 'X\(//\)$' \| \
45313 X"$as_dir" : 'X\(/\)' \| \
45314 . : '\(.\)' 2>/dev/null ||
45316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45318 /^X\(\/\/\)$/{ s//\1/; q; }
45319 /^X\(\/\).*/{ s//\1/; q; }
45322 test ! -n "$as_dirs" || mkdir $as_dirs
45323 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45324 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45325 { (exit 1); exit 1; }; }; }
45329 if test "$ac_dir" != .; then
45330 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45331 # A "../" for each directory in $ac_dir_suffix.
45332 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45334 ac_dir_suffix= ac_top_builddir=
45338 .) # No --srcdir option. We are building in place.
45340 if test -z "$ac_top_builddir"; then
45343 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45345 [\\/]* | ?:[\\/]* ) # Absolute path.
45346 ac_srcdir=$srcdir$ac_dir_suffix;
45347 ac_top_srcdir=$srcdir ;;
45348 *) # Relative path.
45349 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45350 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45353 # Do not use `cd foo && pwd` to compute absolute paths, because
45354 # the directories may not exist.
45356 .) ac_abs_builddir="$ac_dir";;
45359 .) ac_abs_builddir=`pwd`;;
45360 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45361 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45364 case $ac_abs_builddir in
45365 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45367 case ${ac_top_builddir}. in
45368 .) ac_abs_top_builddir=$ac_abs_builddir;;
45369 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45370 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45373 case $ac_abs_builddir in
45374 .) ac_abs_srcdir=$ac_srcdir;;
45377 .) ac_abs_srcdir=$ac_abs_builddir;;
45378 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45379 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45382 case $ac_abs_builddir in
45383 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45385 case $ac_top_srcdir in
45386 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45387 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45388 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45394 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45395 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45398 if test x"$ac_file" != x-; then
45399 { echo "$as_me:$LINENO: creating $ac_file" >&5
45400 echo "$as_me: creating $ac_file" >&6;}
45403 # Let's still pretend it is `configure' which instantiates (i.e., don't
45404 # use $as_me), people would be surprised to read:
45405 # /* config.h. Generated by config.status. */
45406 if test x"$ac_file" = x-; then
45409 configure_input="$ac_file. "
45411 configure_input=$configure_input"Generated from `echo $ac_file_in |
45412 sed 's,.*/,,'` by configure."
45414 # First look for the input files in the build tree, otherwise in the
45416 ac_file_inputs=`IFS=:
45417 for f in $ac_file_in; do
45419 -) echo $tmp/stdin ;;
45421 # Absolute (can't be DOS-style, as IFS=:)
45422 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45423 echo "$as_me: error: cannot find input file: $f" >&2;}
45424 { (exit 1); exit 1; }; }
45427 if test -f "$f"; then
45430 elif test -f "$srcdir/$f"; then
45435 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45436 echo "$as_me: error: cannot find input file: $f" >&2;}
45437 { (exit 1); exit 1; }; }
45440 done` || { (exit 1); exit 1; }
45442 cat >>$CONFIG_STATUS <<_ACEOF
45446 cat >>$CONFIG_STATUS <<\_ACEOF
45448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45449 s,@configure_input@,$configure_input,;t t
45450 s,@srcdir@,$ac_srcdir,;t t
45451 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45452 s,@top_srcdir@,$ac_top_srcdir,;t t
45453 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45454 s,@builddir@,$ac_builddir,;t t
45455 s,@abs_builddir@,$ac_abs_builddir,;t t
45456 s,@top_builddir@,$ac_top_builddir,;t t
45457 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45458 s,@INSTALL@,$ac_INSTALL,;t t
45459 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45461 if test x"$ac_file" != x-; then
45462 mv $tmp/out $ac_file
45470 cat >>$CONFIG_STATUS <<\_ACEOF
45473 # CONFIG_HEADER section.
45476 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45477 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45479 # ac_d sets the value in "#define NAME VALUE" lines.
45480 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45481 ac_dB='[ ].*$,\1#\2'
45484 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45485 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
45486 ac_uB='$,\1#\2define\3'
45490 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45491 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45493 - | *:- | *:-:* ) # input from stdin
45495 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45496 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45497 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45498 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45499 * ) ac_file_in=$ac_file.in ;;
45502 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45503 echo "$as_me: creating $ac_file" >&6;}
45505 # First look for the input files in the build tree, otherwise in the
45507 ac_file_inputs=`IFS=:
45508 for f in $ac_file_in; do
45510 -) echo $tmp/stdin ;;
45512 # Absolute (can't be DOS-style, as IFS=:)
45513 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45514 echo "$as_me: error: cannot find input file: $f" >&2;}
45515 { (exit 1); exit 1; }; }
45516 # Do quote $f, to prevent DOS paths from being IFS'd.
45519 if test -f "$f"; then
45522 elif test -f "$srcdir/$f"; then
45527 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45528 echo "$as_me: error: cannot find input file: $f" >&2;}
45529 { (exit 1); exit 1; }; }
45532 done` || { (exit 1); exit 1; }
45533 # Remove the trailing spaces.
45534 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
45538 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45539 # `conftest.undefs', that substitutes the proper values into
45540 # config.h.in to produce config.h. The first handles `#define'
45541 # templates, and the second `#undef' templates.
45542 # And first: Protect against being on the right side of a sed subst in
45543 # config.status. Protect against being in an unquoted here document
45544 # in config.status.
45545 rm -f conftest.defines conftest.undefs
45546 # Using a here document instead of a string reduces the quoting nightmare.
45547 # Putting comments in sed scripts is not portable.
45549 # `end' is used to avoid that the second main sed command (meant for
45550 # 0-ary CPP macros) applies to n-ary macro definitions.
45551 # See the Autoconf documentation for `clear'.
45552 cat >confdef2sed.sed <<\_ACEOF
45557 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45559 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45562 # If some macros were called several times there might be several times
45563 # the same #defines, which is useless. Nevertheless, we may not want to
45564 # sort them, since we want the *last* AC-DEFINE to be honored.
45565 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45566 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45567 rm -f confdef2sed.sed
45569 # This sed command replaces #undef with comments. This is necessary, for
45570 # example, in the case of _POSIX_SOURCE, which is predefined and required
45571 # on some systems where configure will not decide to define it.
45572 cat >>conftest.undefs <<\_ACEOF
45573 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45576 # Break up conftest.defines because some shells have a limit on the size
45577 # of here documents, and old seds have small limits too (100 cmds).
45578 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
45579 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
45580 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45581 echo ' :' >>$CONFIG_STATUS
45582 rm -f conftest.tail
45583 while grep . conftest.defines >/dev/null
45585 # Write a limited-size here document to $tmp/defines.sed.
45586 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45587 # Speed up: don't consider the non `#define' lines.
45588 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
45589 # Work around the forget-to-reset-the-flag bug.
45590 echo 't clr' >>$CONFIG_STATUS
45591 echo ': clr' >>$CONFIG_STATUS
45592 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45594 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45596 mv $tmp/out $tmp/in
45598 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45599 rm -f conftest.defines
45600 mv conftest.tail conftest.defines
45602 rm -f conftest.defines
45603 echo ' fi # grep' >>$CONFIG_STATUS
45604 echo >>$CONFIG_STATUS
45606 # Break up conftest.undefs because some shells have a limit on the size
45607 # of here documents, and old seds have small limits too (100 cmds).
45608 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45609 rm -f conftest.tail
45610 while grep . conftest.undefs >/dev/null
45612 # Write a limited-size here document to $tmp/undefs.sed.
45613 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45614 # Speed up: don't consider the non `#undef'
45615 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
45616 # Work around the forget-to-reset-the-flag bug.
45617 echo 't clr' >>$CONFIG_STATUS
45618 echo ': clr' >>$CONFIG_STATUS
45619 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45621 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45623 mv $tmp/out $tmp/in
45625 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45626 rm -f conftest.undefs
45627 mv conftest.tail conftest.undefs
45629 rm -f conftest.undefs
45631 cat >>$CONFIG_STATUS <<\_ACEOF
45632 # Let's still pretend it is `configure' which instantiates (i.e., don't
45633 # use $as_me), people would be surprised to read:
45634 # /* config.h. Generated by config.status. */
45635 if test x"$ac_file" = x-; then
45636 echo "/* Generated by configure. */" >$tmp/config.h
45638 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45640 cat $tmp/in >>$tmp/config.h
45642 if test x"$ac_file" != x-; then
45643 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45644 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45645 echo "$as_me: $ac_file is unchanged" >&6;}
45647 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45649 X"$ac_file" : 'X\(//\)[^/]' \| \
45650 X"$ac_file" : 'X\(//\)$' \| \
45651 X"$ac_file" : 'X\(/\)' \| \
45652 . : '\(.\)' 2>/dev/null ||
45654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45655 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45656 /^X\(\/\/\)$/{ s//\1/; q; }
45657 /^X\(\/\).*/{ s//\1/; q; }
45659 { if $as_mkdir_p; then
45664 while test ! -d "$as_dir"; do
45665 as_dirs="$as_dir $as_dirs"
45666 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45667 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45668 X"$as_dir" : 'X\(//\)[^/]' \| \
45669 X"$as_dir" : 'X\(//\)$' \| \
45670 X"$as_dir" : 'X\(/\)' \| \
45671 . : '\(.\)' 2>/dev/null ||
45673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45675 /^X\(\/\/\)$/{ s//\1/; q; }
45676 /^X\(\/\).*/{ s//\1/; q; }
45679 test ! -n "$as_dirs" || mkdir $as_dirs
45680 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45681 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45682 { (exit 1); exit 1; }; }; }
45685 mv $tmp/config.h $ac_file
45689 rm -f $tmp/config.h
45691 # Compute $ac_file's index in $config_headers.
45693 for _am_header in $config_headers :; do
45694 case $_am_header in
45695 $ac_file | $ac_file:* )
45698 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
45701 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
45702 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45703 X$ac_file : 'X\(//\)[^/]' \| \
45704 X$ac_file : 'X\(//\)$' \| \
45705 X$ac_file : 'X\(/\)' \| \
45706 . : '\(.\)' 2>/dev/null ||
45708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45710 /^X\(\/\/\)$/{ s//\1/; q; }
45711 /^X\(\/\).*/{ s//\1/; q; }
45712 s/.*/./; q'`/stamp-h$_am_stamp_count
45715 cat >>$CONFIG_STATUS <<\_ACEOF
45718 # CONFIG_COMMANDS section.
45720 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45721 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45722 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45723 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45724 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45725 X"$ac_dest" : 'X\(//\)[^/]' \| \
45726 X"$ac_dest" : 'X\(//\)$' \| \
45727 X"$ac_dest" : 'X\(/\)' \| \
45728 . : '\(.\)' 2>/dev/null ||
45730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45732 /^X\(\/\/\)$/{ s//\1/; q; }
45733 /^X\(\/\).*/{ s//\1/; q; }
45735 { if $as_mkdir_p; then
45740 while test ! -d "$as_dir"; do
45741 as_dirs="$as_dir $as_dirs"
45742 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45743 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45744 X"$as_dir" : 'X\(//\)[^/]' \| \
45745 X"$as_dir" : 'X\(//\)$' \| \
45746 X"$as_dir" : 'X\(/\)' \| \
45747 . : '\(.\)' 2>/dev/null ||
45749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45751 /^X\(\/\/\)$/{ s//\1/; q; }
45752 /^X\(\/\).*/{ s//\1/; q; }
45755 test ! -n "$as_dirs" || mkdir $as_dirs
45756 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45757 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45758 { (exit 1); exit 1; }; }; }
45762 if test "$ac_dir" != .; then
45763 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45764 # A "../" for each directory in $ac_dir_suffix.
45765 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45767 ac_dir_suffix= ac_top_builddir=
45771 .) # No --srcdir option. We are building in place.
45773 if test -z "$ac_top_builddir"; then
45776 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45778 [\\/]* | ?:[\\/]* ) # Absolute path.
45779 ac_srcdir=$srcdir$ac_dir_suffix;
45780 ac_top_srcdir=$srcdir ;;
45781 *) # Relative path.
45782 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45783 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45786 # Do not use `cd foo && pwd` to compute absolute paths, because
45787 # the directories may not exist.
45789 .) ac_abs_builddir="$ac_dir";;
45792 .) ac_abs_builddir=`pwd`;;
45793 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45794 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45797 case $ac_abs_builddir in
45798 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45800 case ${ac_top_builddir}. in
45801 .) ac_abs_top_builddir=$ac_abs_builddir;;
45802 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45803 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45806 case $ac_abs_builddir in
45807 .) ac_abs_srcdir=$ac_srcdir;;
45810 .) ac_abs_srcdir=$ac_abs_builddir;;
45811 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45812 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45815 case $ac_abs_builddir in
45816 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45818 case $ac_top_srcdir in
45819 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45820 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45821 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45826 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45827 echo "$as_me: executing $ac_dest commands" >&6;}
45829 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
45830 # Strip MF so we end up with the name of the file.
45831 mf=`echo "$mf" | sed -e 's/:.*$//'`
45832 # Check whether this is an Automake generated Makefile or not.
45833 # We used to match only the files named `Makefile.in', but
45834 # some people rename them; so instead we look at the file content.
45835 # Grep'ing the first line is not enough: some people post-process
45836 # each Makefile.in and add a new line on top of each file to say so.
45837 # So let's grep whole file.
45838 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
45839 dirpart=`(dirname "$mf") 2>/dev/null ||
45840 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45841 X"$mf" : 'X\(//\)[^/]' \| \
45842 X"$mf" : 'X\(//\)$' \| \
45843 X"$mf" : 'X\(/\)' \| \
45844 . : '\(.\)' 2>/dev/null ||
45846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45848 /^X\(\/\/\)$/{ s//\1/; q; }
45849 /^X\(\/\).*/{ s//\1/; q; }
45854 # Extract the definition of DEPDIR, am__include, and am__quote
45855 # from the Makefile without running `make'.
45856 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
45857 test -z "$DEPDIR" && continue
45858 am__include=`sed -n 's/^am__include = //p' < "$mf"`
45859 test -z "am__include" && continue
45860 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
45861 # When using ansi2knr, U may be empty or an underscore; expand it
45862 U=`sed -n 's/^U = //p' < "$mf"`
45863 # Find all dependency output files, they are included files with
45864 # $(DEPDIR) in their names. We invoke sed twice because it is the
45865 # simplest approach to changing $(DEPDIR) to its actual value in the
45867 for file in `sed -n "
45868 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
45869 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
45870 # Make sure the directory exists.
45871 test -f "$dirpart/$file" && continue
45872 fdir=`(dirname "$file") 2>/dev/null ||
45873 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45874 X"$file" : 'X\(//\)[^/]' \| \
45875 X"$file" : 'X\(//\)$' \| \
45876 X"$file" : 'X\(/\)' \| \
45877 . : '\(.\)' 2>/dev/null ||
45879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45881 /^X\(\/\/\)$/{ s//\1/; q; }
45882 /^X\(\/\).*/{ s//\1/; q; }
45884 { if $as_mkdir_p; then
45885 mkdir -p $dirpart/$fdir
45887 as_dir=$dirpart/$fdir
45889 while test ! -d "$as_dir"; do
45890 as_dirs="$as_dir $as_dirs"
45891 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45893 X"$as_dir" : 'X\(//\)[^/]' \| \
45894 X"$as_dir" : 'X\(//\)$' \| \
45895 X"$as_dir" : 'X\(/\)' \| \
45896 . : '\(.\)' 2>/dev/null ||
45898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45900 /^X\(\/\/\)$/{ s//\1/; q; }
45901 /^X\(\/\).*/{ s//\1/; q; }
45904 test ! -n "$as_dirs" || mkdir $as_dirs
45905 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
45906 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
45907 { (exit 1); exit 1; }; }; }
45909 # echo "creating $dirpart/$file"
45910 echo '# dummy' > "$dirpart/$file"
45917 BACKENDSC="servers/slapd/backends.c"
45918 echo "Making $BACKENDSC"
45920 cat > $BACKENDSC << ENDX
45921 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
45923 * Copyright 1998-2006 The OpenLDAP Foundation.
45924 * All rights reserved.
45926 * Redistribution and use in source and binary forms, with or without
45927 * modification, are permitted only as authorized by the OpenLDAP
45930 * A copy of this license is available in the file LICENSE in the
45931 * top-level directory of the distribution or, alternatively, at
45932 * <http://www.OpenLDAP.org/license.html>.
45934 /* This file is automatically generated by configure; please do not edit. */
45936 #include "portable.h"
45940 if test "${STATIC_BACKENDS}"; then
45941 for b in config ${STATIC_BACKENDS}; do
45942 bb=`echo "${b}" | sed -e 's/back-//'`
45943 cat >> $BACKENDSC << ENDX
45944 extern BI_init ${bb}_back_initialize;
45948 cat >> $BACKENDSC << ENDX
45950 BackendInfo slap_binfo[] = {
45953 for b in config ${STATIC_BACKENDS}; do
45954 bb=`echo "${b}" | sed -e 's/back-//'`
45955 echo " Add ${bb} ..."
45956 cat >> $BACKENDSC << ENDX
45957 { "${bb}", ${bb}_back_initialize },
45961 cat >> $BACKENDSC << ENDX
45965 /* end of generated file */
45968 OVERLAYSC="servers/slapd/overlays/statover.c"
45969 echo "Making $OVERLAYSC"
45971 cat > $OVERLAYSC << ENDX
45972 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
45974 * Copyright 1998-2006 The OpenLDAP Foundation.
45975 * All rights reserved.
45977 * Redistribution and use in source and binary forms, with or without
45978 * modification, are permitted only as authorized by the OpenLDAP
45981 * A copy of this license is available in the file LICENSE in the
45982 * top-level directory of the distribution or, alternatively, at
45983 * <http://www.OpenLDAP.org/license.html>.
45985 /* This file is automatically generated by configure; please do not edit. */
45987 #include "portable.h"
45991 if test "${STATIC_OVERLAYS}"; then
45992 for o in ${STATIC_OVERLAYS}; do
45993 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
45994 cat >> $OVERLAYSC << ENDX
45995 extern OV_init ${oo}_initialize;
46000 cat >> $OVERLAYSC << ENDX
46002 OverlayInit slap_oinfo[] = {
46005 if test "${STATIC_OVERLAYS}"; then
46006 for o in ${STATIC_OVERLAYS}; do
46007 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46008 echo " Add ${oo} ..."
46009 cat >> $OVERLAYSC << ENDX
46010 { "${oo}", ${oo}_initialize },
46015 cat >> $OVERLAYSC << ENDX
46019 /* end of generated file */
46022 echo Please run \"make depend\" to build dependencies
46028 cat >>$CONFIG_STATUS <<\_ACEOF
46030 { (exit 0); exit 0; }
46032 chmod +x $CONFIG_STATUS
46033 ac_clean_files=$ac_clean_files_save
46036 # configure is writing to config.log, and then calls config.status.
46037 # config.status does its own redirection, appending to config.log.
46038 # Unfortunately, on DOS this fails, as config.log is still kept open
46039 # by configure, so config.status won't be able to write to it; its
46040 # output is simply discarded. So we exec the FD to /dev/null,
46041 # effectively closing config.log, so it can be properly (re)opened and
46042 # appended to by config.status. When coming back to configure, we
46043 # need to make the FD available again.
46044 if test "$no_create" != yes; then
46046 ac_config_status_args=
46047 test "$silent" = yes &&
46048 ac_config_status_args="$ac_config_status_args --quiet"
46050 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46052 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46053 # would make configure fail if this is the last instruction.
46054 $ac_cs_success || { (exit 1); exit 1; }