2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.560.2.29 2006/04/05 21:36:14 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_AUDITLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
931 # Report the --help message.
933 if test "$ac_init_help" = "long"; then
934 # Omit some internal or obsolete options to make the list less imposing.
935 # This message is too long to be a string in the A/UX 3.1 sh.
937 \`configure' configures this package to adapt to many kinds of systems.
939 Usage: $0 [OPTION]... [VAR=VALUE]...
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE. See below for descriptions of some of the useful variables.
944 Defaults for the options are specified in brackets.
947 -h, --help display this help and exit
948 --help=short display options specific to this package
949 --help=recursive display the short help of all the included packages
950 -V, --version display version information and exit
951 -q, --quiet, --silent do not print \`checking...' messages
952 --cache-file=FILE cache test results in FILE [disabled]
953 -C, --config-cache alias for \`--cache-file=config.cache'
954 -n, --no-create do not create output files
955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960 Installation directories:
961 --prefix=PREFIX install architecture-independent files in PREFIX
963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
971 For better control, use the options below.
973 Fine tuning of the installation directories:
974 --bindir=DIR user executables [EPREFIX/bin]
975 --sbindir=DIR system admin executables [EPREFIX/sbin]
976 --libexecdir=DIR program executables [EPREFIX/libexec]
977 --datadir=DIR read-only architecture-independent data [PREFIX/share]
978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
981 --libdir=DIR object code libraries [EPREFIX/lib]
982 --includedir=DIR C header files [PREFIX/include]
983 --oldincludedir=DIR C header files for non-gcc [/usr/include]
984 --infodir=DIR info documentation [PREFIX/info]
985 --mandir=DIR man documentation [PREFIX/man]
991 --program-prefix=PREFIX prepend PREFIX to installed program names
992 --program-suffix=SUFFIX append SUFFIX to installed program names
993 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996 --build=BUILD configure for building on BUILD [guessed]
997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
998 --target=TARGET configure for building compilers for TARGET [HOST]
1002 if test -n "$ac_init_help"; then
1007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1009 --enable-debug enable debugging [yes]
1010 --enable-dynamic enable linking built binaries with dynamic libs [no]
1011 --enable-syslog enable syslog support [auto]
1012 --enable-proctitle enable proctitle support [yes]
1013 --enable-ipv6 enable IPv6 support [auto]
1014 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1016 SLAPD (Standalone LDAP Daemon) Options:
1017 --enable-slapd enable building slapd [yes]
1018 --enable-aci enable per-object ACIs (experimental) [no]
1019 --enable-cleartext enable cleartext passwords [yes]
1020 --enable-crypt enable crypt(3) passwords [no]
1021 --enable-lmpasswd enable LAN Manager passwords [no]
1022 --enable-spasswd enable (Cyrus) SASL password verification [no]
1023 --enable-modules enable dynamic module support [no]
1024 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1025 --enable-rlookups enable reverse lookups of client hostnames [no]
1026 --enable-slapi enable SLAPI support (experimental) [no]
1027 --enable-slp enable SLPv2 support [no]
1028 --enable-wrappers enable tcp wrapper support [no]
1030 SLAPD Backend Options:
1031 --enable-backends enable all available backends no|yes|mod
1032 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1033 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1034 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1035 --enable-ldap enable ldap backend no|yes|mod [no]
1036 --enable-ldbm enable ldbm backend no|yes|mod [no]
1037 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1039 --enable-meta enable metadirectory backend no|yes|mod [no]
1040 --enable-monitor enable monitor backend no|yes|mod [yes]
1041 --enable-null enable null backend no|yes|mod [no]
1042 --enable-passwd enable passwd backend no|yes|mod [no]
1043 --enable-perl enable perl backend no|yes|mod [no]
1044 --enable-relay enable relay backend no|yes|mod [yes]
1045 --enable-shell enable shell backend no|yes|mod [no]
1046 --enable-sql enable sql backend no|yes|mod [no]
1048 SLAPD Overlay Options:
1049 --enable-overlays enable all available overlays no|yes|mod
1050 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1051 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1052 --enable-denyop Deny Operation overlay no|yes|mod [no]
1053 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1054 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1055 --enable-lastmod Last Modification overlay no|yes|mod [no]
1056 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1057 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1058 --enable-refint Referential Integrity overlay no|yes|mod [no]
1059 --enable-retcode Return Code testing overlay no|yes|mod [no]
1060 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1061 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1062 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1063 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1064 --enable-valsort Value Sorting overlay no|yes|mod [no]
1066 SLURPD (Replication Daemon) Options:
1067 --enable-slurpd enable building slurpd [auto]
1069 Library Generation & Linking Options
1070 --enable-static[=PKGS]
1071 build static libraries [default=yes]
1072 --enable-shared[=PKGS]
1073 build shared libraries [default=yes]
1074 --enable-fast-install[=PKGS]
1075 optimize for fast installation [default=yes]
1076 --disable-dependency-tracking speeds up one-time build
1077 --enable-dependency-tracking do not reject slow dependency extractors
1078 --disable-libtool-lock avoid locking (might break parallel builds)
1081 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1082 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1083 --with-subdir=DIR change default subdirectory used for installs
1084 --with-cyrus-sasl with Cyrus SASL support [auto]
1085 --with-fetch with fetch(3) URL support [auto]
1086 --with-threads with threads [auto]
1087 --with-tls with TLS/SSL support [auto]
1088 --with-yielding-select with implicitly yielding select [auto]
1089 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1091 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1092 --with-pic try to use only PIC/non-PIC objects [default=use
1095 include additional configurations [automatic]
1097 See INSTALL file for further details.
1099 Some influential environment variables:
1100 CC C compiler command
1101 CFLAGS C compiler flags
1102 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1103 nonstandard directory <lib dir>
1104 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1105 headers in a nonstandard directory <include dir>
1108 Use these variables to override the choices made by `configure' or to help
1109 it to find libraries and programs with nonstandard names/locations.
1114 if test "$ac_init_help" = "recursive"; then
1115 # If there are subdirs, report their specific --help.
1117 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1118 test -d $ac_dir || continue
1121 if test "$ac_dir" != .; then
1122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1123 # A "../" for each directory in $ac_dir_suffix.
1124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1126 ac_dir_suffix= ac_top_builddir=
1130 .) # No --srcdir option. We are building in place.
1132 if test -z "$ac_top_builddir"; then
1135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1137 [\\/]* | ?:[\\/]* ) # Absolute path.
1138 ac_srcdir=$srcdir$ac_dir_suffix;
1139 ac_top_srcdir=$srcdir ;;
1141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1142 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1145 # Do not use `cd foo && pwd` to compute absolute paths, because
1146 # the directories may not exist.
1148 .) ac_abs_builddir="$ac_dir";;
1151 .) ac_abs_builddir=`pwd`;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1153 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1156 case $ac_abs_builddir in
1157 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1159 case ${ac_top_builddir}. in
1160 .) ac_abs_top_builddir=$ac_abs_builddir;;
1161 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1162 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1165 case $ac_abs_builddir in
1166 .) ac_abs_srcdir=$ac_srcdir;;
1169 .) ac_abs_srcdir=$ac_abs_builddir;;
1170 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1171 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1174 case $ac_abs_builddir in
1175 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1177 case $ac_top_srcdir in
1178 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1179 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1180 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1185 # Check for guested configure; otherwise get Cygnus style configure.
1186 if test -f $ac_srcdir/configure.gnu; then
1188 $SHELL $ac_srcdir/configure.gnu --help=recursive
1189 elif test -f $ac_srcdir/configure; then
1191 $SHELL $ac_srcdir/configure --help=recursive
1192 elif test -f $ac_srcdir/configure.ac ||
1193 test -f $ac_srcdir/configure.in; then
1195 $ac_configure --help
1197 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1203 test -n "$ac_init_help" && exit 0
1204 if $ac_init_version; then
1207 Copyright (C) 2003 Free Software Foundation, Inc.
1208 This configure script is free software; the Free Software Foundation
1209 gives unlimited permission to copy, distribute and modify it.
1211 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1212 Restrictions apply, see COPYRIGHT and LICENSE files.
1218 This file contains any messages produced by compilers while
1219 running configure, to aid debugging if configure makes a mistake.
1221 It was created by $as_me, which was
1222 generated by GNU Autoconf 2.59. Invocation command line was
1233 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1234 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1235 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1236 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1237 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1239 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1240 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1242 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1243 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1244 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1245 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1246 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1247 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1248 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1256 test -z "$as_dir" && as_dir=.
1257 echo "PATH: $as_dir"
1272 # Keep a trace of the command line.
1273 # Strip out --no-create and --no-recursion so they do not pile up.
1274 # Strip out --silent because we don't want to record it for future runs.
1275 # Also quote any args containing shell meta-characters.
1276 # Make two passes to allow for proper duplicate-argument suppression.
1281 ac_must_keep_next=false
1287 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289 | -silent | --silent | --silen | --sile | --sil)
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1295 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1297 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1298 if test $ac_must_keep_next = true; then
1299 ac_must_keep_next=false # Got value, back to normal.
1302 *=* | --config-cache | -C | -disable-* | --disable-* \
1303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1305 | -with-* | --with-* | -without-* | --without-* | --x)
1306 case "$ac_configure_args0 " in
1307 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1310 -* ) ac_must_keep_next=true ;;
1313 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1314 # Get rid of the leading space.
1320 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1321 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1323 # When interrupted or exit'd, cleanup temporary files, and complete
1324 # config.log. We remove comments because anyway the quotes in there
1325 # would cause problems or look ugly.
1326 # WARNING: Be sure not to use single quotes in there, as some shells,
1327 # such as our DU 5.0 friend, will then `close' the trap.
1328 trap 'exit_status=$?
1329 # Save into config.log some information that might help in debugging.
1334 ## ---------------- ##
1335 ## Cache variables. ##
1336 ## ---------------- ##
1339 # The following way of writing the cache mishandles newlines in values,
1342 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1345 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1350 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1357 ## ----------------- ##
1358 ## Output variables. ##
1359 ## ----------------- ##
1362 for ac_var in $ac_subst_vars
1364 eval ac_val=$`echo $ac_var`
1365 echo "$ac_var='"'"'$ac_val'"'"'"
1369 if test -n "$ac_subst_files"; then
1376 for ac_var in $ac_subst_files
1378 eval ac_val=$`echo $ac_var`
1379 echo "$ac_var='"'"'$ac_val'"'"'"
1384 if test -s confdefs.h; then
1391 sed "/^$/d" confdefs.h | sort
1394 test "$ac_signal" != 0 &&
1395 echo "$as_me: caught signal $ac_signal"
1396 echo "$as_me: exit $exit_status"
1398 rm -f core *.core &&
1399 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1402 for ac_signal in 1 2 13 15; do
1403 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1408 rm -rf conftest* confdefs.h
1409 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1412 # Predefined preprocessor variables.
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_NAME "$PACKAGE_NAME"
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_STRING "$PACKAGE_STRING"
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1439 # Let the site file select an alternate cache file if it wants to.
1440 # Prefer explicitly selected file to automatically selected ones.
1441 if test -z "$CONFIG_SITE"; then
1442 if test "x$prefix" != xNONE; then
1443 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1445 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1448 for ac_site_file in $CONFIG_SITE; do
1449 if test -r "$ac_site_file"; then
1450 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1451 echo "$as_me: loading site script $ac_site_file" >&6;}
1452 sed 's/^/| /' "$ac_site_file" >&5
1458 # Check that the precious variables saved in the cache have kept the same
1460 ac_cache_corrupted=false
1461 for ac_var in `(set) 2>&1 |
1462 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1464 eval ac_new_set=\$ac_env_${ac_var}_set
1465 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1466 eval ac_new_val="\$ac_env_${ac_var}_value"
1467 case $ac_old_set,$ac_new_set in
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1470 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1473 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1474 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1475 ac_cache_corrupted=: ;;
1478 if test "x$ac_old_val" != "x$ac_new_val"; then
1479 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1480 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1481 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1482 echo "$as_me: former value: $ac_old_val" >&2;}
1483 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1484 echo "$as_me: current value: $ac_new_val" >&2;}
1485 ac_cache_corrupted=:
1488 # Pass precious variables to config.status.
1489 if test "$ac_new_set" = set; then
1491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1492 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1493 *) ac_arg=$ac_var=$ac_new_val ;;
1495 case " $ac_configure_args " in
1496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1497 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501 if $ac_cache_corrupted; then
1502 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1503 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1504 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1505 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1506 { (exit 1); exit 1; }; }
1510 ac_cpp='$CPP $CPPFLAGS'
1511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1558 for ac_dir in build $srcdir/build; do
1559 if test -f $ac_dir/install-sh; then
1561 ac_install_sh="$ac_aux_dir/install-sh -c"
1563 elif test -f $ac_dir/install.sh; then
1565 ac_install_sh="$ac_aux_dir/install.sh -c"
1567 elif test -f $ac_dir/shtool; then
1569 ac_install_sh="$ac_aux_dir/shtool install -c"
1573 if test -z "$ac_aux_dir"; then
1574 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1575 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1576 { (exit 1); exit 1; }; }
1578 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1582 eval `$ac_aux_dir/version.sh`
1583 if test -z "$OL_STRING"; then
1584 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1585 echo "$as_me: error: could not determine version" >&2;}
1586 { (exit 1); exit 1; }; }
1589 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1590 ac_cv_shtool="$ac_aux_dir/shtool"
1592 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1593 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1594 { (exit 1); exit 1; }; }
1597 SHTOOL="$ac_cv_shtool"
1599 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1600 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1603 if test -d $ac_aux_dir/CVS; then
1604 OPENLDAP_CVS="(from CVS sources) "
1607 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1609 # Make sure we can run config.sub.
1610 $ac_config_sub sun4 >/dev/null 2>&1 ||
1611 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1612 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1613 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: checking build system type" >&5
1616 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1617 if test "${ac_cv_build+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 ac_cv_build_alias=$build_alias
1621 test -z "$ac_cv_build_alias" &&
1622 ac_cv_build_alias=`$ac_config_guess`
1623 test -z "$ac_cv_build_alias" &&
1624 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1625 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1626 { (exit 1); exit 1; }; }
1627 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1634 echo "${ECHO_T}$ac_cv_build" >&6
1636 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1641 echo "$as_me:$LINENO: checking host system type" >&5
1642 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1643 if test "${ac_cv_host+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 ac_cv_host_alias=$host_alias
1647 test -z "$ac_cv_host_alias" &&
1648 ac_cv_host_alias=$ac_cv_build_alias
1649 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1650 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1651 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1652 { (exit 1); exit 1; }; }
1655 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1656 echo "${ECHO_T}$ac_cv_host" >&6
1658 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663 echo "$as_me:$LINENO: checking target system type" >&5
1664 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1665 if test "${ac_cv_target+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 ac_cv_target_alias=$target_alias
1669 test "x$ac_cv_target_alias" = "x" &&
1670 ac_cv_target_alias=$ac_cv_host_alias
1671 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1677 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1678 echo "${ECHO_T}$ac_cv_target" >&6
1679 target=$ac_cv_target
1680 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 # The aliases save the names the user supplied, while $host etc.
1686 # will get canonicalized.
1687 test -n "$target_alias" &&
1688 test "$program_prefix$program_suffix$program_transform_name" = \
1690 program_prefix=${target_alias}-
1692 am__api_version="1.9"
1693 # Find a good install program. We prefer a C program (faster),
1694 # so one script is as good as another. But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # OS/2's system install, which has a completely different semantic
1705 # ./install, which can be erroneously created by make from ./install.sh.
1706 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1707 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1708 if test -z "$INSTALL"; then
1709 if test "${ac_cv_path_install+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 test -z "$as_dir" && as_dir=.
1717 # Account for people who put trailing slashes in PATH elements.
1719 ./ | .// | /cC/* | \
1720 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1721 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1724 # OSF1 and SCO ODT 3.0 have their own names for install.
1725 # Don't use installbsd from OSF since it installs stuff as root
1727 for ac_prog in ginstall scoinst install; do
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1730 if test $ac_prog = install &&
1731 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732 # AIX install. It has an incompatible calling convention.
1734 elif test $ac_prog = install &&
1735 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736 # program-specific install script used by HP pwplus--don't use.
1739 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1751 if test "${ac_cv_path_install+set}" = set; then
1752 INSTALL=$ac_cv_path_install
1754 # As a last resort, use the slow shell script. We don't cache a
1755 # path for INSTALL within a source directory, because that will
1756 # break other packages using the cache if that directory is
1757 # removed, or if the path is relative.
1758 INSTALL=$ac_install_sh
1761 echo "$as_me:$LINENO: result: $INSTALL" >&5
1762 echo "${ECHO_T}$INSTALL" >&6
1764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1765 # It thinks the first close brace ends the variable substitution.
1766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1772 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1773 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1776 echo timestamp > conftest.file
1777 # Do `set' in a subshell so we don't clobber the current shell's
1778 # arguments. Must try -L first in case configure is actually a
1779 # symlink; some systems play weird games with the mod time of symlinks
1780 # (eg FreeBSD returns the mod time of the symlink's containing
1783 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1784 if test "$*" = "X"; then
1786 set X `ls -t $srcdir/configure conftest.file`
1789 if test "$*" != "X $srcdir/configure conftest.file" \
1790 && test "$*" != "X conftest.file $srcdir/configure"; then
1792 # If neither matched, then we have a broken ls. This can happen
1793 # if, for instance, CONFIG_SHELL is bash and it inherits a
1794 # broken ls alias from the environment. This has actually
1795 # happened. Such a system could not be considered "sane".
1796 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1797 alias in your environment" >&5
1798 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1799 alias in your environment" >&2;}
1800 { (exit 1); exit 1; }; }
1803 test "$2" = conftest.file
1809 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1810 Check your system clock" >&5
1811 echo "$as_me: error: newly created file is older than distributed files!
1812 Check your system clock" >&2;}
1813 { (exit 1); exit 1; }; }
1815 echo "$as_me:$LINENO: result: yes" >&5
1816 echo "${ECHO_T}yes" >&6
1817 test "$program_prefix" != NONE &&
1818 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1819 # Use a double $ so make ignores it.
1820 test "$program_suffix" != NONE &&
1821 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1822 # Double any \ or $. echo might interpret backslashes.
1823 # By default was `s,x,x', remove it if useless.
1824 cat <<\_ACEOF >conftest.sed
1825 s/[\\$]/&&/g;s/;s,x,x,$//
1827 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1830 # expand $ac_aux_dir to an absolute path
1831 am_aux_dir=`cd $ac_aux_dir && pwd`
1833 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1834 # Use eval to expand $SHELL
1835 if eval "$MISSING --run true"; then
1836 am_missing_run="$MISSING --run "
1839 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1840 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1843 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1844 # We used to keeping the `.' as first argument, in order to
1845 # allow $(mkdir_p) to be used without argument. As in
1846 # $(mkdir_p) $(somedir)
1847 # where $(somedir) is conditionally defined. However this is wrong
1849 # 1. if the package is installed by a user who cannot write `.'
1850 # make install will fail,
1851 # 2. the above comment should most certainly read
1852 # $(mkdir_p) $(DESTDIR)$(somedir)
1853 # so it does not work when $(somedir) is undefined and
1854 # $(DESTDIR) is not.
1855 # To support the latter case, we have to write
1856 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1857 # so the `.' trick is pointless.
1858 mkdir_p='mkdir -p --'
1860 # On NextStep and OpenStep, the `mkdir' command does not
1861 # recognize any option. It will interpret all options as
1862 # directories to create, and then abort because `.' already
1864 for d in ./-p ./--version;
1866 test -d $d && rmdir $d
1868 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1869 if test -f "$ac_aux_dir/mkinstalldirs"; then
1870 mkdir_p='$(mkinstalldirs)'
1872 mkdir_p='$(install_sh) -d'
1876 for ac_prog in gawk mawk nawk awk
1878 # Extract the first word of "$ac_prog", so it can be a program name with args.
1879 set dummy $ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_AWK+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$AWK"; then
1886 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_AWK="$ac_prog"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 if test -n "$AWK"; then
1906 echo "$as_me:$LINENO: result: $AWK" >&5
1907 echo "${ECHO_T}$AWK" >&6
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1913 test -n "$AWK" && break
1916 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1917 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1918 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1919 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 cat >conftest.make <<\_ACEOF
1924 @echo 'ac_maketemp="$(MAKE)"'
1926 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1927 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1928 if test -n "$ac_maketemp"; then
1929 eval ac_cv_prog_make_${ac_make}_set=yes
1931 eval ac_cv_prog_make_${ac_make}_set=no
1935 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1936 echo "$as_me:$LINENO: result: yes" >&5
1937 echo "${ECHO_T}yes" >&6
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 SET_MAKE="MAKE=${MAKE-make}"
1945 rm -rf .tst 2>/dev/null
1946 mkdir .tst 2>/dev/null
1947 if test -d .tst; then
1952 rmdir .tst 2>/dev/null
1954 # test to see if srcdir already configured
1955 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1956 test -f $srcdir/config.status; then
1957 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1958 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1959 { (exit 1); exit 1; }; }
1962 # test whether we have cygpath
1963 if test -z "$CYGPATH_W"; then
1964 if (cygpath --version) >/dev/null 2>/dev/null; then
1965 CYGPATH_W='cygpath -w'
1972 # Define the identity of the package.
1977 # Some tools Automake needs.
1979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1993 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1995 # Installed binaries are usually stripped using `strip' when the user
1996 # run `make install-strip'. However `strip' might not be the right
1997 # tool to use in cross-compilation environments, therefore Automake
1998 # will honor the `STRIP' environment variable to overrule this program.
1999 if test "$cross_compiling" != no; then
2000 if test -n "$ac_tool_prefix"; then
2001 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2002 set dummy ${ac_tool_prefix}strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_STRIP+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$STRIP"; then
2009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 STRIP=$ac_cv_prog_STRIP
2028 if test -n "$STRIP"; then
2029 echo "$as_me:$LINENO: result: $STRIP" >&5
2030 echo "${ECHO_T}$STRIP" >&6
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2037 if test -z "$ac_cv_prog_STRIP"; then
2039 # Extract the first word of "strip", so it can be a program name with args.
2040 set dummy strip; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 if test -n "$ac_ct_STRIP"; then
2047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056 ac_cv_prog_ac_ct_STRIP="strip"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2067 if test -n "$ac_ct_STRIP"; then
2068 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2069 echo "${ECHO_T}$ac_ct_STRIP" >&6
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2077 STRIP="$ac_cv_prog_STRIP"
2081 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2083 # We need awk for the "check" target. The system "awk" is bad on
2085 # Always define AMTAR for backward compatibility.
2087 AMTAR=${AMTAR-"${am_missing_run}tar"}
2089 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2095 cat >>confdefs.h <<_ACEOF
2096 #define OPENLDAP_PACKAGE "$PACKAGE"
2100 cat >>confdefs.h <<_ACEOF
2101 #define OPENLDAP_VERSION "$VERSION"
2106 cat >>confdefs.h <<_ACEOF
2107 #define LDAP_VENDOR_VERSION $OL_API_INC
2111 cat >>confdefs.h <<_ACEOF
2112 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2116 cat >>confdefs.h <<_ACEOF
2117 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2121 cat >>confdefs.h <<_ACEOF
2122 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2126 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2128 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2130 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2138 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2140 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2142 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2145 echo "$as_me:$LINENO: checking configure arguments" >&5
2146 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2151 ldap_subdir="/openldap"
2154 # Check whether --with-subdir or --without-subdir was given.
2155 if test "${with_subdir+set}" = set; then
2156 withval="$with_subdir"
2163 ldap_subdir="$withval"
2166 ldap_subdir="/$withval"
2172 # OpenLDAP --enable-debug
2174 # Check whether --enable-debug or --disable-debug was given.
2175 if test "${enable_debug+set}" = set; then
2176 enableval="$enable_debug"
2179 for ol_val in auto yes no ; do
2180 if test "$enableval" = "$ol_val" ; then
2184 if test "$ol_arg" = "invalid" ; then
2185 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2186 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2187 { (exit 1); exit 1; }; }
2189 ol_enable_debug="$ol_arg"
2194 # end --enable-debug
2195 # OpenLDAP --enable-dynamic
2197 # Check whether --enable-dynamic or --disable-dynamic was given.
2198 if test "${enable_dynamic+set}" = set; then
2199 enableval="$enable_dynamic"
2202 for ol_val in auto yes no ; do
2203 if test "$enableval" = "$ol_val" ; then
2207 if test "$ol_arg" = "invalid" ; then
2208 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2209 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2210 { (exit 1); exit 1; }; }
2212 ol_enable_dynamic="$ol_arg"
2215 ol_enable_dynamic=no
2217 # end --enable-dynamic
2218 # OpenLDAP --enable-syslog
2220 # Check whether --enable-syslog or --disable-syslog was given.
2221 if test "${enable_syslog+set}" = set; then
2222 enableval="$enable_syslog"
2225 for ol_val in auto yes no ; do
2226 if test "$enableval" = "$ol_val" ; then
2230 if test "$ol_arg" = "invalid" ; then
2231 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2232 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2233 { (exit 1); exit 1; }; }
2235 ol_enable_syslog="$ol_arg"
2238 ol_enable_syslog=auto
2240 # end --enable-syslog
2241 # OpenLDAP --enable-proctitle
2243 # Check whether --enable-proctitle or --disable-proctitle was given.
2244 if test "${enable_proctitle+set}" = set; then
2245 enableval="$enable_proctitle"
2248 for ol_val in auto yes no ; do
2249 if test "$enableval" = "$ol_val" ; then
2253 if test "$ol_arg" = "invalid" ; then
2254 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2255 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2256 { (exit 1); exit 1; }; }
2258 ol_enable_proctitle="$ol_arg"
2261 ol_enable_proctitle=yes
2263 # end --enable-proctitle
2264 ol_enable_referrals=${ol_enable_referrals-no}
2265 ol_enable_kbind=${ol_enable_kbind-no}
2266 # OpenLDAP --enable-ipv6
2268 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2269 if test "${enable_ipv6+set}" = set; then
2270 enableval="$enable_ipv6"
2273 for ol_val in auto yes no ; do
2274 if test "$enableval" = "$ol_val" ; then
2278 if test "$ol_arg" = "invalid" ; then
2279 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2280 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2281 { (exit 1); exit 1; }; }
2283 ol_enable_ipv6="$ol_arg"
2289 # OpenLDAP --enable-local
2291 # Check whether --enable-local or --disable-local was given.
2292 if test "${enable_local+set}" = set; then
2293 enableval="$enable_local"
2296 for ol_val in auto yes no ; do
2297 if test "$enableval" = "$ol_val" ; then
2301 if test "$ol_arg" = "invalid" ; then
2302 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2303 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2304 { (exit 1); exit 1; }; }
2306 ol_enable_local="$ol_arg"
2309 ol_enable_local=auto
2311 # end --enable-local
2313 # OpenLDAP --with-cyrus_sasl
2315 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2316 if test "${with_cyrus_sasl+set}" = set; then
2317 withval="$with_cyrus_sasl"
2320 for ol_val in auto yes no ; do
2321 if test "$withval" = "$ol_val" ; then
2325 if test "$ol_arg" = "invalid" ; then
2326 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2327 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2328 { (exit 1); exit 1; }; }
2330 ol_with_cyrus_sasl="$ol_arg"
2333 ol_with_cyrus_sasl="auto"
2334 fi; # end --with-cyrus_sasl
2336 # OpenLDAP --with-fetch
2338 # Check whether --with-fetch or --without-fetch was given.
2339 if test "${with_fetch+set}" = set; then
2340 withval="$with_fetch"
2343 for ol_val in auto yes no ; do
2344 if test "$withval" = "$ol_val" ; then
2348 if test "$ol_arg" = "invalid" ; then
2349 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2350 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2351 { (exit 1); exit 1; }; }
2353 ol_with_fetch="$ol_arg"
2356 ol_with_fetch="auto"
2357 fi; # end --with-fetch
2359 ol_with_kerberos=${ol_with_kerberos-auto}
2360 # OpenLDAP --with-threads
2362 # Check whether --with-threads or --without-threads was given.
2363 if test "${with_threads+set}" = set; then
2364 withval="$with_threads"
2367 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2368 if test "$withval" = "$ol_val" ; then
2372 if test "$ol_arg" = "invalid" ; then
2373 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2374 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2375 { (exit 1); exit 1; }; }
2377 ol_with_threads="$ol_arg"
2380 ol_with_threads="auto"
2381 fi; # end --with-threads
2383 # OpenLDAP --with-tls
2385 # Check whether --with-tls or --without-tls was given.
2386 if test "${with_tls+set}" = set; then
2390 for ol_val in auto openssl yes no ; do
2391 if test "$withval" = "$ol_val" ; then
2395 if test "$ol_arg" = "invalid" ; then
2396 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2397 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2398 { (exit 1); exit 1; }; }
2400 ol_with_tls="$ol_arg"
2404 fi; # end --with-tls
2406 # OpenLDAP --with-yielding_select
2408 # Check whether --with-yielding_select or --without-yielding_select was given.
2409 if test "${with_yielding_select+set}" = set; then
2410 withval="$with_yielding_select"
2413 for ol_val in auto yes no manual ; do
2414 if test "$withval" = "$ol_val" ; then
2418 if test "$ol_arg" = "invalid" ; then
2419 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2420 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2421 { (exit 1); exit 1; }; }
2423 ol_with_yielding_select="$ol_arg"
2426 ol_with_yielding_select="auto"
2427 fi; # end --with-yielding_select
2429 # OpenLDAP --with-mp
2431 # Check whether --with-mp or --without-mp was given.
2432 if test "${with_mp+set}" = set; then
2436 for ol_val in auto longlong long bignum gmp yes no ; do
2437 if test "$withval" = "$ol_val" ; then
2441 if test "$ol_arg" = "invalid" ; then
2442 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2443 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2444 { (exit 1); exit 1; }; }
2446 ol_with_mp="$ol_arg"
2454 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2455 if test "${enable_xxslapdoptions+set}" = set; then
2456 enableval="$enable_xxslapdoptions"
2459 # OpenLDAP --enable-slapd
2461 # Check whether --enable-slapd or --disable-slapd was given.
2462 if test "${enable_slapd+set}" = set; then
2463 enableval="$enable_slapd"
2466 for ol_val in auto yes no ; do
2467 if test "$enableval" = "$ol_val" ; then
2471 if test "$ol_arg" = "invalid" ; then
2472 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2473 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2474 { (exit 1); exit 1; }; }
2476 ol_enable_slapd="$ol_arg"
2481 # end --enable-slapd
2482 # OpenLDAP --enable-aci
2484 # Check whether --enable-aci or --disable-aci was given.
2485 if test "${enable_aci+set}" = set; then
2486 enableval="$enable_aci"
2489 for ol_val in auto yes no ; do
2490 if test "$enableval" = "$ol_val" ; then
2494 if test "$ol_arg" = "invalid" ; then
2495 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2496 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2497 { (exit 1); exit 1; }; }
2499 ol_enable_aci="$ol_arg"
2505 # OpenLDAP --enable-cleartext
2507 # Check whether --enable-cleartext or --disable-cleartext was given.
2508 if test "${enable_cleartext+set}" = set; then
2509 enableval="$enable_cleartext"
2512 for ol_val in auto yes no ; do
2513 if test "$enableval" = "$ol_val" ; then
2517 if test "$ol_arg" = "invalid" ; then
2518 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2519 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2520 { (exit 1); exit 1; }; }
2522 ol_enable_cleartext="$ol_arg"
2525 ol_enable_cleartext=yes
2527 # end --enable-cleartext
2528 # OpenLDAP --enable-crypt
2530 # Check whether --enable-crypt or --disable-crypt was given.
2531 if test "${enable_crypt+set}" = set; then
2532 enableval="$enable_crypt"
2535 for ol_val in auto yes no ; do
2536 if test "$enableval" = "$ol_val" ; then
2540 if test "$ol_arg" = "invalid" ; then
2541 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2542 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2543 { (exit 1); exit 1; }; }
2545 ol_enable_crypt="$ol_arg"
2550 # end --enable-crypt
2551 # OpenLDAP --enable-lmpasswd
2553 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2554 if test "${enable_lmpasswd+set}" = set; then
2555 enableval="$enable_lmpasswd"
2558 for ol_val in auto yes no ; do
2559 if test "$enableval" = "$ol_val" ; then
2563 if test "$ol_arg" = "invalid" ; then
2564 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2565 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2566 { (exit 1); exit 1; }; }
2568 ol_enable_lmpasswd="$ol_arg"
2571 ol_enable_lmpasswd=no
2573 # end --enable-lmpasswd
2574 # OpenLDAP --enable-spasswd
2576 # Check whether --enable-spasswd or --disable-spasswd was given.
2577 if test "${enable_spasswd+set}" = set; then
2578 enableval="$enable_spasswd"
2581 for ol_val in auto yes no ; do
2582 if test "$enableval" = "$ol_val" ; then
2586 if test "$ol_arg" = "invalid" ; then
2587 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2588 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2589 { (exit 1); exit 1; }; }
2591 ol_enable_spasswd="$ol_arg"
2594 ol_enable_spasswd=no
2596 # end --enable-spasswd
2597 # OpenLDAP --enable-modules
2599 # Check whether --enable-modules or --disable-modules was given.
2600 if test "${enable_modules+set}" = set; then
2601 enableval="$enable_modules"
2604 for ol_val in auto yes no ; do
2605 if test "$enableval" = "$ol_val" ; then
2609 if test "$ol_arg" = "invalid" ; then
2610 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2611 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2612 { (exit 1); exit 1; }; }
2614 ol_enable_modules="$ol_arg"
2617 ol_enable_modules=no
2619 # end --enable-modules
2620 ol_enable_multimaster=${ol_enable_multimaster-no}
2621 # OpenLDAP --enable-rewrite
2623 # Check whether --enable-rewrite or --disable-rewrite was given.
2624 if test "${enable_rewrite+set}" = set; then
2625 enableval="$enable_rewrite"
2628 for ol_val in auto yes no ; do
2629 if test "$enableval" = "$ol_val" ; then
2633 if test "$ol_arg" = "invalid" ; then
2634 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2635 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2636 { (exit 1); exit 1; }; }
2638 ol_enable_rewrite="$ol_arg"
2641 ol_enable_rewrite=auto
2643 # end --enable-rewrite
2644 # OpenLDAP --enable-rlookups
2646 # Check whether --enable-rlookups or --disable-rlookups was given.
2647 if test "${enable_rlookups+set}" = set; then
2648 enableval="$enable_rlookups"
2651 for ol_val in auto yes no ; do
2652 if test "$enableval" = "$ol_val" ; then
2656 if test "$ol_arg" = "invalid" ; then
2657 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2658 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2659 { (exit 1); exit 1; }; }
2661 ol_enable_rlookups="$ol_arg"
2664 ol_enable_rlookups=no
2666 # end --enable-rlookups
2667 # OpenLDAP --enable-slapi
2669 # Check whether --enable-slapi or --disable-slapi was given.
2670 if test "${enable_slapi+set}" = set; then
2671 enableval="$enable_slapi"
2674 for ol_val in auto yes no ; do
2675 if test "$enableval" = "$ol_val" ; then
2679 if test "$ol_arg" = "invalid" ; then
2680 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2681 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2682 { (exit 1); exit 1; }; }
2684 ol_enable_slapi="$ol_arg"
2689 # end --enable-slapi
2690 # OpenLDAP --enable-slp
2692 # Check whether --enable-slp or --disable-slp was given.
2693 if test "${enable_slp+set}" = set; then
2694 enableval="$enable_slp"
2697 for ol_val in auto yes no ; do
2698 if test "$enableval" = "$ol_val" ; then
2702 if test "$ol_arg" = "invalid" ; then
2703 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2704 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2705 { (exit 1); exit 1; }; }
2707 ol_enable_slp="$ol_arg"
2713 # OpenLDAP --enable-wrappers
2715 # Check whether --enable-wrappers or --disable-wrappers was given.
2716 if test "${enable_wrappers+set}" = set; then
2717 enableval="$enable_wrappers"
2720 for ol_val in auto yes no ; do
2721 if test "$enableval" = "$ol_val" ; then
2725 if test "$ol_arg" = "invalid" ; then
2726 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2727 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2728 { (exit 1); exit 1; }; }
2730 ol_enable_wrappers="$ol_arg"
2733 ol_enable_wrappers=no
2735 # end --enable-wrappers
2751 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2752 if test "${enable_xxslapbackends+set}" = set; then
2753 enableval="$enable_xxslapbackends"
2757 # OpenLDAP --enable-backends
2759 # Check whether --enable-backends or --disable-backends was given.
2760 if test "${enable_backends+set}" = set; then
2761 enableval="$enable_backends"
2764 for ol_val in no yes mod ; do
2765 if test "$enableval" = "$ol_val" ; then
2769 if test "$ol_arg" = "invalid" ; then
2770 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2771 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2772 { (exit 1); exit 1; }; }
2774 ol_enable_backends="$ol_arg"
2777 # end --enable-backends
2778 # OpenLDAP --enable-bdb
2780 # Check whether --enable-bdb or --disable-bdb was given.
2781 if test "${enable_bdb+set}" = set; then
2782 enableval="$enable_bdb"
2785 for ol_val in no yes mod ; do
2786 if test "$enableval" = "$ol_val" ; then
2790 if test "$ol_arg" = "invalid" ; then
2791 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2792 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2793 { (exit 1); exit 1; }; }
2795 ol_enable_bdb="$ol_arg"
2798 ol_enable_bdb=${ol_enable_backends:-yes}
2801 # OpenLDAP --enable-dnssrv
2803 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2804 if test "${enable_dnssrv+set}" = set; then
2805 enableval="$enable_dnssrv"
2808 for ol_val in no yes mod ; do
2809 if test "$enableval" = "$ol_val" ; then
2813 if test "$ol_arg" = "invalid" ; then
2814 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2815 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2816 { (exit 1); exit 1; }; }
2818 ol_enable_dnssrv="$ol_arg"
2821 ol_enable_dnssrv=${ol_enable_backends:-no}
2823 # end --enable-dnssrv
2824 # OpenLDAP --enable-hdb
2826 # Check whether --enable-hdb or --disable-hdb was given.
2827 if test "${enable_hdb+set}" = set; then
2828 enableval="$enable_hdb"
2831 for ol_val in no yes mod ; do
2832 if test "$enableval" = "$ol_val" ; then
2836 if test "$ol_arg" = "invalid" ; then
2837 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2838 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2839 { (exit 1); exit 1; }; }
2841 ol_enable_hdb="$ol_arg"
2844 ol_enable_hdb=${ol_enable_backends:-yes}
2847 # OpenLDAP --enable-ldap
2849 # Check whether --enable-ldap or --disable-ldap was given.
2850 if test "${enable_ldap+set}" = set; then
2851 enableval="$enable_ldap"
2854 for ol_val in no yes mod ; do
2855 if test "$enableval" = "$ol_val" ; then
2859 if test "$ol_arg" = "invalid" ; then
2860 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2861 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2862 { (exit 1); exit 1; }; }
2864 ol_enable_ldap="$ol_arg"
2867 ol_enable_ldap=${ol_enable_backends:-no}
2870 # OpenLDAP --enable-ldbm
2872 # Check whether --enable-ldbm or --disable-ldbm was given.
2873 if test "${enable_ldbm+set}" = set; then
2874 enableval="$enable_ldbm"
2877 for ol_val in no yes mod ; do
2878 if test "$enableval" = "$ol_val" ; then
2882 if test "$ol_arg" = "invalid" ; then
2883 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2884 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2885 { (exit 1); exit 1; }; }
2887 ol_enable_ldbm="$ol_arg"
2890 ol_enable_ldbm=${ol_enable_backends:-no}
2894 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2895 if test "${with_ldbm_api+set}" = set; then
2896 withval="$with_ldbm_api"
2898 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2899 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2900 enable_ldbm_api="$with_ldbm_api"
2902 # OpenLDAP --enable-ldbm_api
2904 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2905 if test "${enable_ldbm_api+set}" = set; then
2906 enableval="$enable_ldbm_api"
2909 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2910 if test "$enableval" = "$ol_val" ; then
2914 if test "$ol_arg" = "invalid" ; then
2915 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2916 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2917 { (exit 1); exit 1; }; }
2919 ol_enable_ldbm_api="$ol_arg"
2922 ol_enable_ldbm_api=auto
2924 # end --enable-ldbm_api
2927 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2928 if test "${with_ldbm_type+set}" = set; then
2929 withval="$with_ldbm_type"
2931 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2932 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2933 enable_ldbm_type="$with_ldbm_type"
2935 # OpenLDAP --enable-ldbm_type
2937 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2938 if test "${enable_ldbm_type+set}" = set; then
2939 enableval="$enable_ldbm_type"
2942 for ol_val in auto btree hash ; do
2943 if test "$enableval" = "$ol_val" ; then
2947 if test "$ol_arg" = "invalid" ; then
2948 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2949 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2950 { (exit 1); exit 1; }; }
2952 ol_enable_ldbm_type="$ol_arg"
2955 ol_enable_ldbm_type=auto
2957 # end --enable-ldbm_type
2959 # OpenLDAP --enable-meta
2961 # Check whether --enable-meta or --disable-meta was given.
2962 if test "${enable_meta+set}" = set; then
2963 enableval="$enable_meta"
2966 for ol_val in no yes mod ; do
2967 if test "$enableval" = "$ol_val" ; then
2971 if test "$ol_arg" = "invalid" ; then
2972 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2973 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2974 { (exit 1); exit 1; }; }
2976 ol_enable_meta="$ol_arg"
2979 ol_enable_meta=${ol_enable_backends:-no}
2982 # OpenLDAP --enable-monitor
2984 # Check whether --enable-monitor or --disable-monitor was given.
2985 if test "${enable_monitor+set}" = set; then
2986 enableval="$enable_monitor"
2989 for ol_val in no yes mod ; do
2990 if test "$enableval" = "$ol_val" ; then
2994 if test "$ol_arg" = "invalid" ; then
2995 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2996 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2997 { (exit 1); exit 1; }; }
2999 ol_enable_monitor="$ol_arg"
3002 ol_enable_monitor=${ol_enable_backends:-yes}
3004 # end --enable-monitor
3005 # OpenLDAP --enable-null
3007 # Check whether --enable-null or --disable-null was given.
3008 if test "${enable_null+set}" = set; then
3009 enableval="$enable_null"
3012 for ol_val in no yes mod ; do
3013 if test "$enableval" = "$ol_val" ; then
3017 if test "$ol_arg" = "invalid" ; then
3018 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3019 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3020 { (exit 1); exit 1; }; }
3022 ol_enable_null="$ol_arg"
3025 ol_enable_null=${ol_enable_backends:-no}
3028 # OpenLDAP --enable-passwd
3030 # Check whether --enable-passwd or --disable-passwd was given.
3031 if test "${enable_passwd+set}" = set; then
3032 enableval="$enable_passwd"
3035 for ol_val in no yes mod ; do
3036 if test "$enableval" = "$ol_val" ; then
3040 if test "$ol_arg" = "invalid" ; then
3041 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3042 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3043 { (exit 1); exit 1; }; }
3045 ol_enable_passwd="$ol_arg"
3048 ol_enable_passwd=${ol_enable_backends:-no}
3050 # end --enable-passwd
3051 # OpenLDAP --enable-perl
3053 # Check whether --enable-perl or --disable-perl was given.
3054 if test "${enable_perl+set}" = set; then
3055 enableval="$enable_perl"
3058 for ol_val in no yes mod ; do
3059 if test "$enableval" = "$ol_val" ; then
3063 if test "$ol_arg" = "invalid" ; then
3064 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3065 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3066 { (exit 1); exit 1; }; }
3068 ol_enable_perl="$ol_arg"
3071 ol_enable_perl=${ol_enable_backends:-no}
3074 # OpenLDAP --enable-relay
3076 # Check whether --enable-relay or --disable-relay was given.
3077 if test "${enable_relay+set}" = set; then
3078 enableval="$enable_relay"
3081 for ol_val in no yes mod ; do
3082 if test "$enableval" = "$ol_val" ; then
3086 if test "$ol_arg" = "invalid" ; then
3087 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3088 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3089 { (exit 1); exit 1; }; }
3091 ol_enable_relay="$ol_arg"
3094 ol_enable_relay=${ol_enable_backends:-yes}
3096 # end --enable-relay
3097 # OpenLDAP --enable-shell
3099 # Check whether --enable-shell or --disable-shell was given.
3100 if test "${enable_shell+set}" = set; then
3101 enableval="$enable_shell"
3104 for ol_val in no yes mod ; do
3105 if test "$enableval" = "$ol_val" ; then
3109 if test "$ol_arg" = "invalid" ; then
3110 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3111 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3112 { (exit 1); exit 1; }; }
3114 ol_enable_shell="$ol_arg"
3117 ol_enable_shell=${ol_enable_backends:-no}
3119 # end --enable-shell
3120 # OpenLDAP --enable-sql
3122 # Check whether --enable-sql or --disable-sql was given.
3123 if test "${enable_sql+set}" = set; then
3124 enableval="$enable_sql"
3127 for ol_val in no yes mod ; do
3128 if test "$enableval" = "$ol_val" ; then
3132 if test "$ol_arg" = "invalid" ; then
3133 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3134 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3135 { (exit 1); exit 1; }; }
3137 ol_enable_sql="$ol_arg"
3140 ol_enable_sql=${ol_enable_backends:-no}
3144 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-auditlog
3213 # Check whether --enable-auditlog or --disable-auditlog was given.
3214 if test "${enable_auditlog+set}" = set; then
3215 enableval="$enable_auditlog"
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-auditlog" >&5
3225 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3226 { (exit 1); exit 1; }; }
3228 ol_enable_auditlog="$ol_arg"
3231 ol_enable_auditlog=${ol_enable_overlays:-no}
3233 # end --enable-auditlog
3235 # OpenLDAP --enable-denyop
3237 # Check whether --enable-denyop or --disable-denyop was given.
3238 if test "${enable_denyop+set}" = set; then
3239 enableval="$enable_denyop"
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-denyop" >&5
3249 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3250 { (exit 1); exit 1; }; }
3252 ol_enable_denyop="$ol_arg"
3255 ol_enable_denyop=${ol_enable_overlays:-no}
3257 # end --enable-denyop
3259 # OpenLDAP --enable-dyngroup
3261 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3262 if test "${enable_dyngroup+set}" = set; then
3263 enableval="$enable_dyngroup"
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-dyngroup" >&5
3273 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3274 { (exit 1); exit 1; }; }
3276 ol_enable_dyngroup="$ol_arg"
3279 ol_enable_dyngroup=${ol_enable_overlays:-no}
3281 # end --enable-dyngroup
3283 # OpenLDAP --enable-dynlist
3285 # Check whether --enable-dynlist or --disable-dynlist was given.
3286 if test "${enable_dynlist+set}" = set; then
3287 enableval="$enable_dynlist"
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-dynlist" >&5
3297 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3298 { (exit 1); exit 1; }; }
3300 ol_enable_dynlist="$ol_arg"
3303 ol_enable_dynlist=${ol_enable_overlays:-no}
3305 # end --enable-dynlist
3307 # OpenLDAP --enable-lastmod
3309 # Check whether --enable-lastmod or --disable-lastmod was given.
3310 if test "${enable_lastmod+set}" = set; then
3311 enableval="$enable_lastmod"
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-lastmod" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3322 { (exit 1); exit 1; }; }
3324 ol_enable_lastmod="$ol_arg"
3327 ol_enable_lastmod=${ol_enable_overlays:-no}
3329 # end --enable-lastmod
3331 # OpenLDAP --enable-ppolicy
3333 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3334 if test "${enable_ppolicy+set}" = set; then
3335 enableval="$enable_ppolicy"
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-ppolicy" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3346 { (exit 1); exit 1; }; }
3348 ol_enable_ppolicy="$ol_arg"
3351 ol_enable_ppolicy=${ol_enable_overlays:-no}
3353 # end --enable-ppolicy
3355 # OpenLDAP --enable-proxycache
3357 # Check whether --enable-proxycache or --disable-proxycache was given.
3358 if test "${enable_proxycache+set}" = set; then
3359 enableval="$enable_proxycache"
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-proxycache" >&5
3369 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3370 { (exit 1); exit 1; }; }
3372 ol_enable_proxycache="$ol_arg"
3375 ol_enable_proxycache=${ol_enable_overlays:-no}
3377 # end --enable-proxycache
3379 # OpenLDAP --enable-refint
3381 # Check whether --enable-refint or --disable-refint was given.
3382 if test "${enable_refint+set}" = set; then
3383 enableval="$enable_refint"
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-refint" >&5
3393 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3394 { (exit 1); exit 1; }; }
3396 ol_enable_refint="$ol_arg"
3399 ol_enable_refint=${ol_enable_overlays:-no}
3401 # end --enable-refint
3403 # OpenLDAP --enable-retcode
3405 # Check whether --enable-retcode or --disable-retcode was given.
3406 if test "${enable_retcode+set}" = set; then
3407 enableval="$enable_retcode"
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-retcode" >&5
3417 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3418 { (exit 1); exit 1; }; }
3420 ol_enable_retcode="$ol_arg"
3423 ol_enable_retcode=${ol_enable_overlays:-no}
3425 # end --enable-retcode
3427 # OpenLDAP --enable-rwm
3429 # Check whether --enable-rwm or --disable-rwm was given.
3430 if test "${enable_rwm+set}" = set; then
3431 enableval="$enable_rwm"
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-rwm" >&5
3441 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3442 { (exit 1); exit 1; }; }
3444 ol_enable_rwm="$ol_arg"
3447 ol_enable_rwm=${ol_enable_overlays:-no}
3451 # OpenLDAP --enable-syncprov
3453 # Check whether --enable-syncprov or --disable-syncprov was given.
3454 if test "${enable_syncprov+set}" = set; then
3455 enableval="$enable_syncprov"
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-syncprov" >&5
3465 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3466 { (exit 1); exit 1; }; }
3468 ol_enable_syncprov="$ol_arg"
3471 ol_enable_syncprov=${ol_enable_overlays:-yes}
3473 # end --enable-syncprov
3475 # OpenLDAP --enable-translucent
3477 # Check whether --enable-translucent or --disable-translucent was given.
3478 if test "${enable_translucent+set}" = set; then
3479 enableval="$enable_translucent"
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-translucent" >&5
3489 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3490 { (exit 1); exit 1; }; }
3492 ol_enable_translucent="$ol_arg"
3495 ol_enable_translucent=${ol_enable_overlays:-no}
3497 # end --enable-translucent
3499 # OpenLDAP --enable-unique
3501 # Check whether --enable-unique or --disable-unique was given.
3502 if test "${enable_unique+set}" = set; then
3503 enableval="$enable_unique"
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-unique" >&5
3513 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3514 { (exit 1); exit 1; }; }
3516 ol_enable_unique="$ol_arg"
3519 ol_enable_unique=${ol_enable_overlays:-no}
3521 # end --enable-unique
3523 # OpenLDAP --enable-valsort
3525 # Check whether --enable-valsort or --disable-valsort was given.
3526 if test "${enable_valsort+set}" = set; then
3527 enableval="$enable_valsort"
3530 for ol_val in no yes mod ; do
3531 if test "$enableval" = "$ol_val" ; then
3535 if test "$ol_arg" = "invalid" ; then
3536 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3537 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3538 { (exit 1); exit 1; }; }
3540 ol_enable_valsort="$ol_arg"
3543 ol_enable_valsort=${ol_enable_overlays:-no}
3545 # end --enable-valsort
3548 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3549 if test "${enable_xxslurpdoptions+set}" = set; then
3550 enableval="$enable_xxslurpdoptions"
3553 # OpenLDAP --enable-slurpd
3555 # Check whether --enable-slurpd or --disable-slurpd was given.
3556 if test "${enable_slurpd+set}" = set; then
3557 enableval="$enable_slurpd"
3560 for ol_val in auto yes no ; do
3561 if test "$enableval" = "$ol_val" ; then
3565 if test "$ol_arg" = "invalid" ; then
3566 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3567 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3568 { (exit 1); exit 1; }; }
3570 ol_enable_slurpd="$ol_arg"
3573 ol_enable_slurpd=auto
3575 # end --enable-slurpd
3577 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3578 if test "${enable_xxliboptions+set}" = set; then
3579 enableval="$enable_xxliboptions"
3582 # Check whether --enable-static or --disable-static was given.
3583 if test "${enable_static+set}" = set; then
3584 enableval="$enable_static"
3585 p=${PACKAGE-default}
3587 yes) enable_static=yes ;;
3588 no) enable_static=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
3606 # Check whether --enable-shared or --disable-shared was given.
3607 if test "${enable_shared+set}" = set; then
3608 enableval="$enable_shared"
3609 p=${PACKAGE-default}
3611 yes) enable_shared=yes ;;
3612 no) enable_shared=no ;;
3615 # Look at the argument we got. We use all the common list separators.
3616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617 for pkg in $enableval; do
3619 if test "X$pkg" = "X$p"; then
3633 if test $ol_enable_slapd = no ; then
3634 if test $ol_enable_slapi = yes ; then
3635 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3636 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3638 case "$ol_enable_backends" in yes | mod)
3639 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3640 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3642 for i in $Backends; do
3643 eval "ol_tmp=\$ol_enable_$i"
3644 if test $ol_tmp != no ; then
3645 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3647 eval "ol_enable_$i=no"
3650 if test $ol_enable_modules = yes ; then
3651 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3652 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3654 if test $ol_enable_multimaster = yes ; then
3655 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3656 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3658 if test $ol_enable_wrappers = yes ; then
3659 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3662 if test $ol_enable_rlookups = yes ; then
3663 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3666 if test $ol_enable_aci = yes ; then
3667 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3668 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3670 if test $ol_enable_ldbm_api != auto ; then
3671 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3672 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3674 if test $ol_enable_ldbm_type != auto ; then
3675 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3676 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3678 if test $ol_enable_slurpd = yes ; then
3679 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3680 echo "$as_me: error: slurpd requires slapd" >&2;}
3681 { (exit 1); exit 1; }; }
3683 if test $ol_enable_rewrite = yes ; then
3684 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3685 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3687 case "$ol_enable_overlays" in yes | mod)
3688 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3689 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3691 for i in $Overlays; do
3692 eval "ol_tmp=\$ol_enable_$i"
3693 if test $ol_tmp != no ; then
3694 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3695 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3696 eval "ol_enable_$i=no"
3700 # force settings to no
3705 ol_enable_modules=no
3706 ol_enable_multimaster=no
3707 ol_enable_rlookups=no
3709 ol_enable_wrappers=no
3711 ol_enable_ldbm_api=no
3712 ol_enable_ldbm_type=no
3716 ol_enable_rewrite=no
3718 elif test $ol_enable_ldbm = no ; then
3720 if test $ol_enable_ldbm_api != auto ; then
3721 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3722 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3725 if test $ol_enable_ldbm_type != auto ; then
3726 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3727 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3730 if test $ol_enable_modules != yes &&
3731 test $ol_enable_bdb = no &&
3732 test $ol_enable_dnssrv = no &&
3733 test $ol_enable_hdb = no &&
3734 test $ol_enable_ldap = no &&
3735 test $ol_enable_meta = no &&
3736 test $ol_enable_monitor = no &&
3737 test $ol_enable_null = no &&
3738 test $ol_enable_passwd = no &&
3739 test $ol_enable_perl = no &&
3740 test $ol_enable_relay = no &&
3741 test $ol_enable_shell = no &&
3742 test $ol_enable_sql = no ; then
3744 if test $ol_enable_slapd = yes ; then
3745 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3746 echo "$as_me: error: slapd requires a backend" >&2;}
3747 { (exit 1); exit 1; }; }
3749 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3750 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3755 ol_enable_ldbm_api=no
3756 ol_enable_ldbm_type=no
3758 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3759 ol_enable_ldbm_api=berkeley
3763 if test $ol_enable_ldbm_api = gdbm &&
3764 test $ol_enable_ldbm_type = btree ; then
3765 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3766 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3767 { (exit 1); exit 1; }; }
3769 if test $ol_enable_ldbm_api = mdbm &&
3770 test $ol_enable_ldbm_type = btree ; then
3771 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3772 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3773 { (exit 1); exit 1; }; }
3775 if test $ol_enable_ldbm_api = ndbm &&
3776 test $ol_enable_ldbm_type = btree ; then
3777 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3778 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3779 { (exit 1); exit 1; }; }
3782 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3783 if test $ol_enable_ldbm_api = auto ; then
3784 ol_enable_ldbm_api=berkeley
3785 elif test $ol_enable_ldbm_api != berkeley ; then
3786 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3787 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3788 { (exit 1); exit 1; }; }
3793 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3794 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3795 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3796 { (exit 1); exit 1; }; }
3799 if test $ol_enable_slurpd = yes ; then
3800 if test $ol_with_threads = no ; then
3801 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3802 echo "$as_me: error: slurpd requires threads" >&2;}
3803 { (exit 1); exit 1; }; }
3807 if test $ol_enable_lmpasswd = yes ; then
3808 if test $ol_with_tls = no ; then
3809 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3810 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3811 { (exit 1); exit 1; }; }
3815 if test $ol_enable_kbind = yes ; then
3816 if test $ol_with_kerberos = no ; then
3817 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3818 echo "$as_me: error: options require --with-kerberos" >&2;}
3819 { (exit 1); exit 1; }; }
3820 elif test $ol_with_kerberos = auto ; then
3821 ol_with_kerberos=yes
3824 elif test $ol_enable_kbind = no ; then
3825 if test $ol_with_kerberos = auto ; then
3827 elif test $ol_with_kerberos != no ; then
3828 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3829 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3834 if test $ol_enable_spasswd = yes ; then
3835 if test $ol_with_cyrus_sasl = no ; then
3836 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3837 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3838 { (exit 1); exit 1; }; }
3840 ol_with_cyrus_sasl=yes
3843 echo "$as_me:$LINENO: result: done" >&5
3844 echo "${ECHO_T}done" >&6
3888 BUILD_TRANSLUCENT=no
3892 SLAPD_STATIC_OVERLAYS=
3893 SLAPD_DYNAMIC_OVERLAYS=
3895 SLAPD_MODULES_LDFLAGS=
3896 SLAPD_MODULES_CPPFLAGS=
3898 SLAPD_STATIC_BACKENDS=back-ldif
3899 SLAPD_DYNAMIC_BACKENDS=
3924 cat >>confdefs.h <<\_ACEOF
3925 #define HAVE_MKVERSION 1
3933 *-*-aix*) if test -z "$CC" ; then
3934 case "$ol_with_threads" in
3935 auto | yes | posix) ol_aix_threads=yes ;;
3941 if test $ol_aix_threads = yes ; then
3942 if test -z "${CC}" ; then
3943 for ac_prog in cc_r xlc_r cc
3945 # Extract the first word of "$ac_prog", so it can be a program name with args.
3946 set dummy $ac_prog; ac_word=$2
3947 echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_CC+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 if test -n "$CC"; then
3953 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_CC="$ac_prog"
3963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 if test -n "$CC"; then
3973 echo "$as_me:$LINENO: result: $CC" >&5
3974 echo "${ECHO_T}$CC" >&6
3976 echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3980 test -n "$CC" && break
3984 if test "$CC" = cc ; then
3985 if test $ol_with_threads != auto ; then
3986 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3987 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3988 { (exit 1); exit 1; }; }
3990 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3991 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3997 case ${CC} in cc_r | xlc_r)
3998 ol_with_threads=posix
3999 ol_cv_pthread_create=yes
4004 if test -z "${CC}"; then
4005 for ac_prog in cc gcc
4007 # Extract the first word of "$ac_prog", so it can be a program name with args.
4008 set dummy $ac_prog; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_CC+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_CC="$ac_prog"
4025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 if test -n "$CC"; then
4035 echo "$as_me:$LINENO: result: $CC" >&5
4036 echo "${ECHO_T}$CC" >&6
4038 echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6
4042 test -n "$CC" && break
4044 test -n "$CC" || CC="missing"
4047 if test "${CC}" = "missing" ; then
4048 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4049 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4050 { (exit 1); exit 1; }; }
4054 if test -z "${AR}"; then
4055 for ac_prog in ar gar
4057 # Extract the first word of "$ac_prog", so it can be a program name with args.
4058 set dummy $ac_prog; ac_word=$2
4059 echo "$as_me:$LINENO: checking for $ac_word" >&5
4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4061 if test "${ac_cv_prog_AR+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 if test -n "$AR"; then
4065 ac_cv_prog_AR="$AR" # Let the user override the test.
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 test -z "$as_dir" && as_dir=.
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074 ac_cv_prog_AR="$ac_prog"
4075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 if test -n "$AR"; then
4085 echo "$as_me:$LINENO: result: $AR" >&5
4086 echo "${ECHO_T}$AR" >&6
4088 echo "$as_me:$LINENO: result: no" >&5
4089 echo "${ECHO_T}no" >&6
4092 test -n "$AR" && break
4094 test -n "$AR" || AR="missing"
4097 if test "${AR}" = "missing" ; then
4098 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4099 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4100 { (exit 1); exit 1; }; }
4108 # Check whether --enable-fast-install or --disable-fast-install was given.
4109 if test "${enable_fast_install+set}" = set; then
4110 enableval="$enable_fast_install"
4111 p=${PACKAGE-default}
4113 yes) enable_fast_install=yes ;;
4114 no) enable_fast_install=no ;;
4116 enable_fast_install=no
4117 # Look at the argument we got. We use all the common list separators.
4118 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4119 for pkg in $enableval; do
4121 if test "X$pkg" = "X$p"; then
4122 enable_fast_install=yes
4129 enable_fast_install=yes
4132 DEPDIR="${am__leading_dot}deps"
4134 ac_config_commands="$ac_config_commands depfiles"
4137 am_make=${MAKE-make}
4138 cat > confinc << 'END'
4143 # If we don't find an include directive, just comment out the code.
4144 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4145 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4149 # First try GNU make style include.
4150 echo "include confinc" > confmf
4151 # We grep out `Entering directory' and `Leaving directory'
4152 # messages which can occur if `w' ends up in MAKEFLAGS.
4153 # In particular we don't look at `^make:' because GNU make might
4154 # be invoked under some other name (usually "gmake"), in which
4155 # case it prints its new name instead of `make'.
4156 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4161 # Now try BSD make style include.
4162 if test "$am__include" = "#"; then
4163 echo '.include "confinc"' > confmf
4164 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4165 am__include=.include
4172 echo "$as_me:$LINENO: result: $_am_result" >&5
4173 echo "${ECHO_T}$_am_result" >&6
4174 rm -f confinc confmf
4176 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4177 if test "${enable_dependency_tracking+set}" = set; then
4178 enableval="$enable_dependency_tracking"
4181 if test "x$enable_dependency_tracking" != xno; then
4182 am_depcomp="$ac_aux_dir/depcomp"
4187 if test "x$enable_dependency_tracking" != xno; then
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202 if test -n "$ac_tool_prefix"; then
4203 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4204 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_CC+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 if test -n "$CC"; then
4211 ac_cv_prog_CC="$CC" # Let the user override the test.
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 if test -n "$CC"; then
4231 echo "$as_me:$LINENO: result: $CC" >&5
4232 echo "${ECHO_T}$CC" >&6
4234 echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6
4239 if test -z "$ac_cv_prog_CC"; then
4241 # Extract the first word of "gcc", so it can be a program name with args.
4242 set dummy gcc; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 if test -n "$ac_ct_CC"; then
4249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_ac_ct_CC="gcc"
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4268 if test -n "$ac_ct_CC"; then
4269 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4270 echo "${ECHO_T}$ac_ct_CC" >&6
4272 echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6
4281 if test -z "$CC"; then
4282 if test -n "$ac_tool_prefix"; then
4283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4284 set dummy ${ac_tool_prefix}cc; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_CC+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 if test -n "$CC"; then
4291 ac_cv_prog_CC="$CC" # Let the user override the test.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_CC="${ac_tool_prefix}cc"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 if test -n "$CC"; then
4311 echo "$as_me:$LINENO: result: $CC" >&5
4312 echo "${ECHO_T}$CC" >&6
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4319 if test -z "$ac_cv_prog_CC"; then
4321 # Extract the first word of "cc", so it can be a program name with args.
4322 set dummy cc; ac_word=$2
4323 echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 if test -n "$ac_ct_CC"; then
4329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_ac_ct_CC="cc"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4348 if test -n "$ac_ct_CC"; then
4349 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4350 echo "${ECHO_T}$ac_ct_CC" >&6
4352 echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6
4362 if test -z "$CC"; then
4363 # Extract the first word of "cc", so it can be a program name with args.
4364 set dummy cc; ac_word=$2
4365 echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4367 if test "${ac_cv_prog_CC+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 if test -n "$CC"; then
4371 ac_cv_prog_CC="$CC" # Let the user override the test.
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4382 ac_prog_rejected=yes
4386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 if test $ac_prog_rejected = yes; then
4393 # We found a bogon in the path, so make sure we never use it.
4394 set dummy $ac_cv_prog_CC
4396 if test $# != 0; then
4397 # We chose a different compiler from the bogus one.
4398 # However, it has the same basename, so the bogon will be chosen
4399 # first if we set CC to just the basename; use the full file name.
4401 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4407 if test -n "$CC"; then
4408 echo "$as_me:$LINENO: result: $CC" >&5
4409 echo "${ECHO_T}$CC" >&6
4411 echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6
4416 if test -z "$CC"; then
4417 if test -n "$ac_tool_prefix"; then
4420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4422 echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4424 if test "${ac_cv_prog_CC+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 if test -n "$CC"; then
4428 ac_cv_prog_CC="$CC" # Let the user override the test.
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 if test -n "$CC"; then
4448 echo "$as_me:$LINENO: result: $CC" >&5
4449 echo "${ECHO_T}$CC" >&6
4451 echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6
4455 test -n "$CC" && break
4458 if test -z "$CC"; then
4462 # Extract the first word of "$ac_prog", so it can be a program name with args.
4463 set dummy $ac_prog; ac_word=$2
4464 echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 if test -n "$ac_ct_CC"; then
4470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4479 ac_cv_prog_ac_ct_CC="$ac_prog"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4489 if test -n "$ac_ct_CC"; then
4490 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4491 echo "${ECHO_T}$ac_ct_CC" >&6
4493 echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6
4497 test -n "$ac_ct_CC" && break
4506 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4507 See \`config.log' for more details." >&5
4508 echo "$as_me: error: no acceptable C compiler found in \$PATH
4509 See \`config.log' for more details." >&2;}
4510 { (exit 1); exit 1; }; }
4512 # Provide some information about the compiler.
4513 echo "$as_me:$LINENO:" \
4514 "checking for C compiler version" >&5
4515 ac_compiler=`set X $ac_compile; echo $2`
4516 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4517 (eval $ac_compiler --version </dev/null >&5) 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }
4521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4522 (eval $ac_compiler -v </dev/null >&5) 2>&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }
4526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4527 (eval $ac_compiler -V </dev/null >&5) 2>&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }
4532 cat >conftest.$ac_ext <<_ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4547 ac_clean_files_save=$ac_clean_files
4548 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4549 # Try to create an executable without -o first, disregard a.out.
4550 # It will help us diagnose broken compilers, and finding out an intuition
4552 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4553 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4554 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4555 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4556 (eval $ac_link_default) 2>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; then
4560 # Find the output, starting from the most likely. This scheme is
4561 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4564 # Be careful to initialize this variable, since it used to be cached.
4565 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4567 # b.out is created by i960 compilers.
4568 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4570 test -f "$ac_file" || continue
4572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4575 # This is the source file.
4578 # We found the default executable, but exeext='' is most
4582 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4583 # FIXME: I believe we export ac_cv_exeext for Libtool,
4584 # but it would be cool to find out if it's true. Does anybody
4585 # maintain Libtool? --akim.
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4597 See \`config.log' for more details." >&5
4598 echo "$as_me: error: C compiler cannot create executables
4599 See \`config.log' for more details." >&2;}
4600 { (exit 77); exit 77; }; }
4603 ac_exeext=$ac_cv_exeext
4604 echo "$as_me:$LINENO: result: $ac_file" >&5
4605 echo "${ECHO_T}$ac_file" >&6
4607 # Check the compiler produces executables we can run. If not, either
4608 # the compiler is broken, or we cross compile.
4609 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4610 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4611 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4612 # If not cross compiling, check that we can run a simple program.
4613 if test "$cross_compiling" != yes; then
4614 if { ac_try='./$ac_file'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4622 if test "$cross_compiling" = maybe; then
4625 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4626 If you meant to cross compile, use \`--host'.
4627 See \`config.log' for more details." >&5
4628 echo "$as_me: error: cannot run C compiled programs.
4629 If you meant to cross compile, use \`--host'.
4630 See \`config.log' for more details." >&2;}
4631 { (exit 1); exit 1; }; }
4635 echo "$as_me:$LINENO: result: yes" >&5
4636 echo "${ECHO_T}yes" >&6
4638 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4639 ac_clean_files=$ac_clean_files_save
4640 # Check the compiler produces executables we can run. If not, either
4641 # the compiler is broken, or we cross compile.
4642 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4643 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4644 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4645 echo "${ECHO_T}$cross_compiling" >&6
4647 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4648 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4650 (eval $ac_link) 2>&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; then
4654 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4655 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4656 # work properly (i.e., refer to `conftest.exe'), while it won't with
4658 for ac_file in conftest.exe conftest conftest.*; do
4659 test -f "$ac_file" || continue
4661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4662 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4669 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4670 See \`config.log' for more details." >&5
4671 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4672 See \`config.log' for more details." >&2;}
4673 { (exit 1); exit 1; }; }
4676 rm -f conftest$ac_cv_exeext
4677 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4678 echo "${ECHO_T}$ac_cv_exeext" >&6
4680 rm -f conftest.$ac_ext
4681 EXEEXT=$ac_cv_exeext
4683 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4684 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4685 if test "${ac_cv_objext+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 cat >conftest.$ac_ext <<_ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4703 rm -f conftest.o conftest.obj
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; then
4709 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4712 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4720 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4721 See \`config.log' for more details." >&5
4722 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4723 See \`config.log' for more details." >&2;}
4724 { (exit 1); exit 1; }; }
4727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4729 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4730 echo "${ECHO_T}$ac_cv_objext" >&6
4731 OBJEXT=$ac_cv_objext
4733 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4734 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4735 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 cat >conftest.$ac_ext <<_ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>conftest.er1
4760 grep -v '^ *+' conftest.er1 >conftest.err
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4789 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4790 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4791 GCC=`test $ac_compiler_gnu = yes && echo yes`
4792 ac_test_CFLAGS=${CFLAGS+set}
4793 ac_save_CFLAGS=$CFLAGS
4795 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4796 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4797 if test "${ac_cv_prog_cc_g+set}" = set; then
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 cat >conftest.$ac_ext <<_ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4815 rm -f conftest.$ac_objext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>conftest.er1
4819 grep -v '^ *+' conftest.er1 >conftest.err
4821 cat conftest.err >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } &&
4824 { ac_try='test -z "$ac_c_werror_flag"
4825 || test ! -s conftest.err'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; } &&
4831 { ac_try='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4847 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4848 if test "$ac_test_CFLAGS" = set; then
4849 CFLAGS=$ac_save_CFLAGS
4850 elif test $ac_cv_prog_cc_g = yes; then
4851 if test "$GCC" = yes; then
4857 if test "$GCC" = yes; then
4863 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4864 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4865 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 ac_cv_prog_cc_stdc=no
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4878 #include <sys/types.h>
4879 #include <sys/stat.h>
4880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4881 struct buf { int x; };
4882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4883 static char *e (p, i)
4889 static char *f (char * (*g) (char **, int), char **p, ...)
4894 s = g (p, va_arg (v,int));
4899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4900 function prototypes and stuff, but not '\xHH' hex character constants.
4901 These don't provoke an error unfortunately, instead are silently treated
4902 as 'x'. The following induces an error, until -std1 is added to get
4903 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4904 array size at least. It's necessary to write '\x00'==0 to get something
4905 that's true only with -std1. */
4906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4908 int test (int i, double x);
4909 struct s1 {int (*f) (int a);};
4910 struct s2 {int (*f) (double a);};
4911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4922 # Don't try gcc -ansi; that turns off useful extensions and
4923 # breaks some systems' header files.
4924 # AIX -qlanglvl=ansi
4925 # Ultrix and OSF/1 -std1
4926 # HP-UX 10.20 and later -Ae
4927 # HP-UX older versions -Aa -D_HPUX_SOURCE
4928 # SVR4 -Xc -D__EXTENSIONS__
4929 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4931 CC="$ac_save_CC $ac_arg"
4932 rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934 (eval $ac_compile) 2>conftest.er1
4936 grep -v '^ *+' conftest.er1 >conftest.err
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } &&
4941 { ac_try='test -z "$ac_c_werror_flag"
4942 || test ! -s conftest.err'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; } &&
4948 { ac_try='test -s conftest.$ac_objext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4954 ac_cv_prog_cc_stdc=$ac_arg
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4961 rm -f conftest.err conftest.$ac_objext
4963 rm -f conftest.$ac_ext conftest.$ac_objext
4968 case "x$ac_cv_prog_cc_stdc" in
4970 echo "$as_me:$LINENO: result: none needed" >&5
4971 echo "${ECHO_T}none needed" >&6 ;;
4973 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4974 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4975 CC="$CC $ac_cv_prog_cc_stdc" ;;
4978 # Some people use a C++ compiler to compile C. Since we use `exit',
4979 # in C++ we need to declare it. In case someone uses the same compiler
4980 # for both compiling C and C++ we need to have the C++ compiler decide
4981 # the declaration of exit, since it's the most demanding environment.
4982 cat >conftest.$ac_ext <<_ACEOF
4987 rm -f conftest.$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>conftest.er1
4991 grep -v '^ *+' conftest.er1 >conftest.err
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } &&
4996 { ac_try='test -z "$ac_c_werror_flag"
4997 || test ! -s conftest.err'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; } &&
5003 { ac_try='test -s conftest.$ac_objext'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5009 for ac_declaration in \
5011 'extern "C" void std::exit (int) throw (); using std::exit;' \
5012 'extern "C" void std::exit (int); using std::exit;' \
5013 'extern "C" void exit (int) throw ();' \
5014 'extern "C" void exit (int);' \
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5033 rm -f conftest.$ac_objext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035 (eval $ac_compile) 2>conftest.er1
5037 grep -v '^ *+' conftest.er1 >conftest.err
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } &&
5042 { ac_try='test -z "$ac_c_werror_flag"
5043 || test ! -s conftest.err'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; } &&
5049 { ac_try='test -s conftest.$ac_objext'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5063 cat >conftest.$ac_ext <<_ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5078 rm -f conftest.$ac_objext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5080 (eval $ac_compile) 2>conftest.er1
5082 grep -v '^ *+' conftest.er1 >conftest.err
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -z "$ac_c_werror_flag"
5088 || test ! -s conftest.err'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; } &&
5094 { ac_try='test -s conftest.$ac_objext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5109 if test -n "$ac_declaration"; then
5110 echo '#ifdef __cplusplus' >>confdefs.h
5111 echo $ac_declaration >>confdefs.h
5112 echo '#endif' >>confdefs.h
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5122 ac_cpp='$CPP $CPPFLAGS'
5123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5127 depcc="$CC" am_compiler_list=
5129 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5130 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5131 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5135 # We make a subdir and do the tests there. Otherwise we can end up
5136 # making bogus files that we don't know about and never remove. For
5137 # instance it was reported that on HP-UX the gcc test will end up
5138 # making a dummy file named `D' -- because `-MD' means `put the output
5141 # Copy depcomp to subdir because otherwise we won't find it if we're
5142 # using a relative directory.
5143 cp "$am_depcomp" conftest.dir
5145 # We will build objects and dependencies in a subdirectory because
5146 # it helps to detect inapplicable dependency modes. For instance
5147 # both Tru64's cc and ICC support -MD to output dependencies as a
5148 # side effect of compilation, but ICC will put the dependencies in
5149 # the current directory while Tru64 will put them in the object
5153 am_cv_CC_dependencies_compiler_type=none
5154 if test "$am_compiler_list" = ""; then
5155 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5157 for depmode in $am_compiler_list; do
5158 # Setup a source with many dependencies, because some compilers
5159 # like to wrap large dependency lists on column 80 (with \), and
5160 # we should not choose a depcomp mode which is confused by this.
5162 # We need to recreate these files for each test, as the compiler may
5163 # overwrite some of them when testing with obscure command lines.
5164 # This happens at least with the AIX C compiler.
5166 for i in 1 2 3 4 5 6; do
5167 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5168 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5169 # Solaris 8's {/usr,}/bin/sh.
5170 touch sub/conftst$i.h
5172 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5176 # after this tag, mechanisms are not by side-effect, so they'll
5177 # only be used when explicitly requested
5178 if test "x$enable_dependency_tracking" = xyes; then
5186 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5187 # mode. It turns out that the SunPro C++ compiler does not properly
5188 # handle `-M -o', and we need to detect this.
5189 if depmode=$depmode \
5190 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5191 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5192 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5193 >/dev/null 2>conftest.err &&
5194 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5195 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5196 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5197 # icc doesn't choke on unknown options, it will just issue warnings
5198 # or remarks (even with -Werror). So we grep stderr for any message
5199 # that says an option was ignored or not supported.
5200 # When given -MP, icc 7.0 and 7.1 complain thusly:
5201 # icc: Command line warning: ignoring option '-M'; no argument required
5202 # The diagnosis changed in icc 8.0:
5203 # icc: Command line remark: option '-MP' not supported
5204 if (grep 'ignoring option' conftest.err ||
5205 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5206 am_cv_CC_dependencies_compiler_type=$depmode
5215 am_cv_CC_dependencies_compiler_type=none
5219 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5220 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5221 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5226 test "x$enable_dependency_tracking" != xno \
5227 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5229 am__fastdepCC_FALSE='#'
5231 am__fastdepCC_TRUE='#'
5232 am__fastdepCC_FALSE=
5236 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5237 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5238 if test "${lt_cv_path_SED+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 # Loop through the user's path and test for sed and gsed.
5242 # Then use that list of sed's as ones to test for truncation.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir=.
5248 for lt_ac_prog in sed gsed; do
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5251 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5258 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5259 # along with /bin/sed that truncates output.
5260 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5261 test ! -f $lt_ac_sed && continue
5262 cat /dev/null > conftest.in
5264 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5265 # Check for GNU sed and select it if it is found.
5266 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5267 lt_cv_path_SED=$lt_ac_sed
5271 cat conftest.in conftest.in >conftest.tmp
5272 mv conftest.tmp conftest.in
5273 cp conftest.in conftest.nl
5275 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5276 cmp -s conftest.out conftest.nl || break
5277 # 10000 chars as input seems more than enough
5278 test $lt_ac_count -gt 10 && break
5279 lt_ac_count=`expr $lt_ac_count + 1`
5280 if test $lt_ac_count -gt $lt_ac_max; then
5281 lt_ac_max=$lt_ac_count
5282 lt_cv_path_SED=$lt_ac_sed
5290 echo "$as_me:$LINENO: result: $SED" >&5
5291 echo "${ECHO_T}$SED" >&6
5293 echo "$as_me:$LINENO: checking for egrep" >&5
5294 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5295 if test "${ac_cv_prog_egrep+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5299 then ac_cv_prog_egrep='grep -E'
5300 else ac_cv_prog_egrep='egrep'
5303 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5304 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5305 EGREP=$ac_cv_prog_egrep
5309 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5310 if test "${with_gnu_ld+set}" = set; then
5311 withval="$with_gnu_ld"
5312 test "$withval" = no || with_gnu_ld=yes
5317 if test "$GCC" = yes; then
5318 # Check if gcc -print-prog-name=ld gives a path.
5319 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5320 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5323 # gcc leaves a trailing carriage return which upsets mingw
5324 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5326 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5329 # Accept absolute paths.
5331 re_direlt='/[^/][^/]*/\.\./'
5332 # Canonicalize the pathname of ld
5333 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5334 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5335 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5337 test -z "$LD" && LD="$ac_prog"
5340 # If it fails, then pretend we aren't using GCC.
5344 # If it is relative, then search for the first ld in PATH.
5348 elif test "$with_gnu_ld" = yes; then
5349 echo "$as_me:$LINENO: checking for GNU ld" >&5
5350 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5352 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5353 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5355 if test "${lt_cv_path_LD+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 if test -z "$LD"; then
5359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5360 for ac_dir in $PATH; do
5362 test -z "$ac_dir" && ac_dir=.
5363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5364 lt_cv_path_LD="$ac_dir/$ac_prog"
5365 # Check to see if the program is GNU ld. I'd rather use --version,
5366 # but apparently some variants of GNU ld only accept -v.
5367 # Break only if it was the GNU/non-GNU ld that we prefer.
5368 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5369 *GNU* | *'with BFD'*)
5370 test "$with_gnu_ld" != no && break
5373 test "$with_gnu_ld" != yes && break
5380 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5385 if test -n "$LD"; then
5386 echo "$as_me:$LINENO: result: $LD" >&5
5387 echo "${ECHO_T}$LD" >&6
5389 echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6
5392 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5393 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5394 { (exit 1); exit 1; }; }
5395 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5396 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5397 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5401 case `$LD -v 2>&1 </dev/null` in
5402 *GNU* | *'with BFD'*)
5403 lt_cv_prog_gnu_ld=yes
5406 lt_cv_prog_gnu_ld=no
5410 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5411 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5412 with_gnu_ld=$lt_cv_prog_gnu_ld
5415 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5416 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5417 if test "${lt_cv_ld_reload_flag+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 lt_cv_ld_reload_flag='-r'
5422 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5423 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5424 reload_flag=$lt_cv_ld_reload_flag
5425 case $reload_flag in
5427 *) reload_flag=" $reload_flag" ;;
5429 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5432 if test "$GCC" = yes; then
5433 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5435 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5440 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5441 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5442 if test "${lt_cv_path_NM+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 if test -n "$NM"; then
5446 # Let the user override the test.
5449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5450 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5452 test -z "$ac_dir" && ac_dir=.
5453 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5454 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5455 # Check to see if the nm accepts a BSD-compat flag.
5456 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5457 # nm: unknown option "B" ignored
5458 # Tru64's nm complains that /dev/null is an invalid object file
5459 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5460 */dev/null* | *'Invalid file or object type'*)
5461 lt_cv_path_NM="$tmp_nm -B"
5465 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5467 lt_cv_path_NM="$tmp_nm -p"
5471 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5472 continue # so that we can try to find one that supports BSD flags
5479 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5482 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5483 echo "${ECHO_T}$lt_cv_path_NM" >&6
5486 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5487 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5489 if test "$LN_S" = "ln -s"; then
5490 echo "$as_me:$LINENO: result: yes" >&5
5491 echo "${ECHO_T}yes" >&6
5493 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5494 echo "${ECHO_T}no, using $LN_S" >&6
5497 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5498 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5499 if test "${lt_cv_deplibs_check_method+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 lt_cv_file_magic_cmd='$MAGIC_CMD'
5503 lt_cv_file_magic_test_file=
5504 lt_cv_deplibs_check_method='unknown'
5505 # Need to set the preceding variable on all platforms that support
5506 # interlibrary dependencies.
5507 # 'none' -- dependencies not supported.
5508 # `unknown' -- same as none, but documents that we really don't know.
5509 # 'pass_all' -- all dependencies passed with no checks.
5510 # 'test_compile' -- check by making test program.
5511 # 'file_magic [[regex]]' -- check by looking for files in library path
5512 # which responds to the $file_magic_cmd with a given extended regex.
5513 # If you have `file' or equivalent on your system and you're not sure
5514 # whether `pass_all' will *always* work, you probably want this one.
5518 lt_cv_deplibs_check_method=pass_all
5522 lt_cv_deplibs_check_method=pass_all
5526 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5527 lt_cv_file_magic_cmd='/usr/bin/file -L'
5528 lt_cv_file_magic_test_file=/shlib/libc.so
5532 # func_win32_libid is a shell function defined in ltmain.sh
5533 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5534 lt_cv_file_magic_cmd='func_win32_libid'
5538 # Base MSYS/MinGW do not provide the 'file' command needed by
5539 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5540 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5541 lt_cv_file_magic_cmd='$OBJDUMP -f'
5544 darwin* | rhapsody*)
5545 lt_cv_deplibs_check_method=pass_all
5548 freebsd* | kfreebsd*-gnu | dragonfly*)
5549 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5552 # Not sure whether the presence of OpenBSD here was a mistake.
5553 # Let's accept both of them until this is cleared up.
5554 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5555 lt_cv_file_magic_cmd=/usr/bin/file
5556 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5560 lt_cv_deplibs_check_method=pass_all
5565 lt_cv_deplibs_check_method=pass_all
5568 hpux10.20* | hpux11*)
5569 lt_cv_file_magic_cmd=/usr/bin/file
5572 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5573 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5576 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]'
5577 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5580 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5581 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5586 irix5* | irix6* | nonstopux*)
5588 *-32|*"-32 ") libmagic=32-bit;;
5589 *-n32|*"-n32 ") libmagic=N32;;
5590 *-64|*"-64 ") libmagic=64-bit;;
5591 *) libmagic=never-match;;
5593 lt_cv_deplibs_check_method=pass_all
5596 # This must be Linux ELF.
5598 lt_cv_deplibs_check_method=pass_all
5602 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5611 lt_cv_file_magic_cmd=/usr/bin/file
5612 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5616 lt_cv_deplibs_check_method=unknown
5620 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5627 osf3* | osf4* | osf5*)
5628 lt_cv_deplibs_check_method=pass_all
5632 lt_cv_deplibs_check_method=pass_all
5636 lt_cv_deplibs_check_method=pass_all
5639 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5640 case $host_vendor in
5642 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]'
5643 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5646 lt_cv_deplibs_check_method=pass_all
5649 lt_cv_file_magic_cmd='/bin/file'
5650 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5653 lt_cv_file_magic_cmd='/bin/file'
5654 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5655 lt_cv_file_magic_test_file=/lib/libc.so
5658 lt_cv_deplibs_check_method=pass_all
5663 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5664 lt_cv_deplibs_check_method=pass_all
5669 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5670 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5671 file_magic_cmd=$lt_cv_file_magic_cmd
5672 deplibs_check_method=$lt_cv_deplibs_check_method
5673 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5678 # If no C compiler was specified, use CC.
5681 # Allow CC to be a program name with arguments.
5685 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5686 if test "${enable_libtool_lock+set}" = set; then
5687 enableval="$enable_libtool_lock"
5690 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5692 # Some flags need to be propagated to the compiler or linker for good
5696 # Find out which ABI we are using.
5697 echo 'int i;' > conftest.$ac_ext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699 (eval $ac_compile) 2>&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; then
5703 case `/usr/bin/file conftest.$ac_objext` in
5715 # Find out which ABI we are using.
5716 echo '#line 5716 "configure"' > conftest.$ac_ext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718 (eval $ac_compile) 2>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; then
5722 if test "$lt_cv_prog_gnu_ld" = yes; then
5723 case `/usr/bin/file conftest.$ac_objext` in
5725 LD="${LD-ld} -melf32bsmip"
5728 LD="${LD-ld} -melf32bmipn32"
5731 LD="${LD-ld} -melf64bmip"
5735 case `/usr/bin/file conftest.$ac_objext` in
5751 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5752 # Find out which ABI we are using.
5753 echo 'int i;' > conftest.$ac_ext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; then
5759 case `/usr/bin/file conftest.o` in
5763 LD="${LD-ld} -m elf_i386"
5765 ppc64-*linux*|powerpc64-*linux*)
5766 LD="${LD-ld} -m elf32ppclinux"
5769 LD="${LD-ld} -m elf_s390"
5772 LD="${LD-ld} -m elf32_sparc"
5779 LD="${LD-ld} -m elf_x86_64"
5781 ppc*-*linux*|powerpc*-*linux*)
5782 LD="${LD-ld} -m elf64ppc"
5785 LD="${LD-ld} -m elf64_s390"
5788 LD="${LD-ld} -m elf64_sparc"
5798 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5799 SAVE_CFLAGS="$CFLAGS"
5800 CFLAGS="$CFLAGS -belf"
5801 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5802 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5803 if test "${lt_cv_cc_needs_belf+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 ac_cpp='$CPP $CPPFLAGS'
5808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5812 cat >conftest.$ac_ext <<_ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829 (eval $ac_link) 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_c_werror_flag"
5837 || test ! -s conftest.err'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; } &&
5843 { ac_try='test -s conftest$ac_exeext'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 lt_cv_cc_needs_belf=yes
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 lt_cv_cc_needs_belf=no
5856 rm -f conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5859 ac_cpp='$CPP $CPPFLAGS'
5860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5865 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5866 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5867 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5868 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5869 CFLAGS="$SAVE_CFLAGS"
5872 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5873 if test -n "$ac_tool_prefix"; then
5874 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 if test -n "$DLLTOOL"; then
5882 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 DLLTOOL=$ac_cv_prog_DLLTOOL
5901 if test -n "$DLLTOOL"; then
5902 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5903 echo "${ECHO_T}$DLLTOOL" >&6
5905 echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5910 if test -z "$ac_cv_prog_DLLTOOL"; then
5911 ac_ct_DLLTOOL=$DLLTOOL
5912 # Extract the first word of "dlltool", so it can be a program name with args.
5913 set dummy dlltool; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 if test -n "$ac_ct_DLLTOOL"; then
5920 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5939 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5940 if test -n "$ac_ct_DLLTOOL"; then
5941 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5942 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5944 echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5948 DLLTOOL=$ac_ct_DLLTOOL
5950 DLLTOOL="$ac_cv_prog_DLLTOOL"
5953 if test -n "$ac_tool_prefix"; then
5954 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5955 set dummy ${ac_tool_prefix}as; ac_word=$2
5956 echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5958 if test "${ac_cv_prog_AS+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 if test -n "$AS"; then
5962 ac_cv_prog_AS="$AS" # Let the user override the test.
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_AS="${ac_tool_prefix}as"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 if test -n "$AS"; then
5982 echo "$as_me:$LINENO: result: $AS" >&5
5983 echo "${ECHO_T}$AS" >&6
5985 echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6
5990 if test -z "$ac_cv_prog_AS"; then
5992 # Extract the first word of "as", so it can be a program name with args.
5993 set dummy as; ac_word=$2
5994 echo "$as_me:$LINENO: checking for $ac_word" >&5
5995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5996 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 if test -n "$ac_ct_AS"; then
6000 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009 ac_cv_prog_ac_ct_AS="as"
6010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6019 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6020 if test -n "$ac_ct_AS"; then
6021 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6022 echo "${ECHO_T}$ac_ct_AS" >&6
6024 echo "$as_me:$LINENO: result: no" >&5
6025 echo "${ECHO_T}no" >&6
6033 if test -n "$ac_tool_prefix"; then
6034 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6035 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6036 echo "$as_me:$LINENO: checking for $ac_word" >&5
6037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6038 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 if test -n "$OBJDUMP"; then
6042 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 OBJDUMP=$ac_cv_prog_OBJDUMP
6061 if test -n "$OBJDUMP"; then
6062 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6063 echo "${ECHO_T}$OBJDUMP" >&6
6065 echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6
6070 if test -z "$ac_cv_prog_OBJDUMP"; then
6071 ac_ct_OBJDUMP=$OBJDUMP
6072 # Extract the first word of "objdump", so it can be a program name with args.
6073 set dummy objdump; ac_word=$2
6074 echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6076 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 if test -n "$ac_ct_OBJDUMP"; then
6080 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6099 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6100 if test -n "$ac_ct_OBJDUMP"; then
6101 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6102 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6104 echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6
6108 OBJDUMP=$ac_ct_OBJDUMP
6110 OBJDUMP="$ac_cv_prog_OBJDUMP"
6117 need_locks="$enable_libtool_lock"
6121 ac_cpp='$CPP $CPPFLAGS'
6122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6125 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6126 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6127 # On Suns, sometimes $CPP names a directory.
6128 if test -n "$CPP" && test -d "$CPP"; then
6131 if test -z "$CPP"; then
6132 if test "${ac_cv_prog_CPP+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 # Double quotes because CPP needs to be expanded
6136 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6139 for ac_c_preproc_warn_flag in '' yes
6141 # Use a header file that comes with gcc, so configuring glibc
6142 # with a fresh cross-compiler works.
6143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6144 # <limits.h> exists even on freestanding compilers.
6145 # On the NeXT, cc -E runs the code through the compiler's parser,
6146 # not just through cpp. "Syntax error" is here to catch this case.
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6154 # include <limits.h>
6156 # include <assert.h>
6160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6163 grep -v '^ *+' conftest.er1 >conftest.err
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } >/dev/null; then
6168 if test -s conftest.err; then
6169 ac_cpp_err=$ac_c_preproc_warn_flag
6170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6177 if test -z "$ac_cpp_err"; then
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6183 # Broken: fails on valid input.
6186 rm -f conftest.err conftest.$ac_ext
6188 # OK, works on sane cases. Now check whether non-existent headers
6189 # can be detected and how.
6190 cat >conftest.$ac_ext <<_ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 #include <ac_nonexistent.h>
6198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6201 grep -v '^ *+' conftest.er1 >conftest.err
6203 cat conftest.err >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } >/dev/null; then
6206 if test -s conftest.err; then
6207 ac_cpp_err=$ac_c_preproc_warn_flag
6208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6215 if test -z "$ac_cpp_err"; then
6216 # Broken: success on invalid input.
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6222 # Passes both tests.
6226 rm -f conftest.err conftest.$ac_ext
6229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6230 rm -f conftest.err conftest.$ac_ext
6231 if $ac_preproc_ok; then
6243 echo "$as_me:$LINENO: result: $CPP" >&5
6244 echo "${ECHO_T}$CPP" >&6
6246 for ac_c_preproc_warn_flag in '' yes
6248 # Use a header file that comes with gcc, so configuring glibc
6249 # with a fresh cross-compiler works.
6250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6251 # <limits.h> exists even on freestanding compilers.
6252 # On the NeXT, cc -E runs the code through the compiler's parser,
6253 # not just through cpp. "Syntax error" is here to catch this case.
6254 cat >conftest.$ac_ext <<_ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6261 # include <limits.h>
6263 # include <assert.h>
6267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6270 grep -v '^ *+' conftest.er1 >conftest.err
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } >/dev/null; then
6275 if test -s conftest.err; then
6276 ac_cpp_err=$ac_c_preproc_warn_flag
6277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6284 if test -z "$ac_cpp_err"; then
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6290 # Broken: fails on valid input.
6293 rm -f conftest.err conftest.$ac_ext
6295 # OK, works on sane cases. Now check whether non-existent headers
6296 # can be detected and how.
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 #include <ac_nonexistent.h>
6305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6308 grep -v '^ *+' conftest.er1 >conftest.err
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } >/dev/null; then
6313 if test -s conftest.err; then
6314 ac_cpp_err=$ac_c_preproc_warn_flag
6315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6322 if test -z "$ac_cpp_err"; then
6323 # Broken: success on invalid input.
6326 echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6329 # Passes both tests.
6333 rm -f conftest.err conftest.$ac_ext
6336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6337 rm -f conftest.err conftest.$ac_ext
6338 if $ac_preproc_ok; then
6341 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6342 See \`config.log' for more details." >&5
6343 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6344 See \`config.log' for more details." >&2;}
6345 { (exit 1); exit 1; }; }
6349 ac_cpp='$CPP $CPPFLAGS'
6350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6355 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6356 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6357 if test "${ac_cv_header_stdc+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 cat >conftest.$ac_ext <<_ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6379 rm -f conftest.$ac_objext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6381 (eval $ac_compile) 2>conftest.er1
6383 grep -v '^ *+' conftest.er1 >conftest.err
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try='test -z "$ac_c_werror_flag"
6389 || test ! -s conftest.err'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6401 ac_cv_header_stdc=yes
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 ac_cv_header_stdc=no
6408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6410 if test $ac_cv_header_stdc = yes; then
6411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6412 cat >conftest.$ac_ext <<_ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h. */
6421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6422 $EGREP "memchr" >/dev/null 2>&1; then
6425 ac_cv_header_stdc=no
6431 if test $ac_cv_header_stdc = yes; then
6432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6433 cat >conftest.$ac_ext <<_ACEOF
6436 cat confdefs.h >>conftest.$ac_ext
6437 cat >>conftest.$ac_ext <<_ACEOF
6438 /* end confdefs.h. */
6442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6443 $EGREP "free" >/dev/null 2>&1; then
6446 ac_cv_header_stdc=no
6452 if test $ac_cv_header_stdc = yes; then
6453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6454 if test "$cross_compiling" = yes; then
6457 cat >conftest.$ac_ext <<_ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6464 #if ((' ' & 0x0FF) == 0x020)
6465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6468 # define ISLOWER(c) \
6469 (('a' <= (c) && (c) <= 'i') \
6470 || ('j' <= (c) && (c) <= 'r') \
6471 || ('s' <= (c) && (c) <= 'z'))
6472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6480 for (i = 0; i < 256; i++)
6481 if (XOR (islower (i), ISLOWER (i))
6482 || toupper (i) != TOUPPER (i))
6487 rm -f conftest$ac_exeext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6489 (eval $ac_link) 2>&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; }; then
6500 echo "$as_me: program exited with status $ac_status" >&5
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6505 ac_cv_header_stdc=no
6507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6511 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6512 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6513 if test $ac_cv_header_stdc = yes; then
6515 cat >>confdefs.h <<\_ACEOF
6516 #define STDC_HEADERS 1
6521 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6532 inttypes.h stdint.h unistd.h
6534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6535 echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 cat >conftest.$ac_ext <<_ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6548 #include <$ac_header>
6550 rm -f conftest.$ac_objext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552 (eval $ac_compile) 2>conftest.er1
6554 grep -v '^ *+' conftest.er1 >conftest.err
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } &&
6559 { ac_try='test -z "$ac_c_werror_flag"
6560 || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try='test -s conftest.$ac_objext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 eval "$as_ac_Header=yes"
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6577 eval "$as_ac_Header=no"
6579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6584 cat >>confdefs.h <<_ACEOF
6585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6594 for ac_header in dlfcn.h
6596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6598 echo "$as_me:$LINENO: checking for $ac_header" >&5
6599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6606 # Is the header compilable?
6607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6609 cat >conftest.$ac_ext <<_ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 $ac_includes_default
6616 #include <$ac_header>
6618 rm -f conftest.$ac_objext
6619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6620 (eval $ac_compile) 2>conftest.er1
6622 grep -v '^ *+' conftest.er1 >conftest.err
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try='test -z "$ac_c_werror_flag"
6628 || test ! -s conftest.err'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try='test -s conftest.$ac_objext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_header_compiler=yes
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6645 ac_header_compiler=no
6647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6649 echo "${ECHO_T}$ac_header_compiler" >&6
6651 # Is the header present?
6652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6654 cat >conftest.$ac_ext <<_ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 #include <$ac_header>
6662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6665 grep -v '^ *+' conftest.er1 >conftest.err
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } >/dev/null; then
6670 if test -s conftest.err; then
6671 ac_cpp_err=$ac_c_preproc_warn_flag
6672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6679 if test -z "$ac_cpp_err"; then
6680 ac_header_preproc=yes
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6685 ac_header_preproc=no
6687 rm -f conftest.err conftest.$ac_ext
6688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6689 echo "${ECHO_T}$ac_header_preproc" >&6
6691 # So? What about this header?
6692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6698 ac_header_preproc=yes
6701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6715 ## --------------------------------------------- ##
6716 ## Report this to <http://www.openldap.org/its/> ##
6717 ## --------------------------------------------- ##
6720 sed "s/^/$as_me: WARNING: /" >&2
6723 echo "$as_me:$LINENO: checking for $ac_header" >&5
6724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 eval "$as_ac_Header=\$ac_header_preproc"
6730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6735 cat >>confdefs.h <<_ACEOF
6736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6744 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6746 # find the maximum length of command line arguments
6747 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6748 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6749 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 # On DJGPP, this test can blow up pretty badly due to problems in libc
6758 # (any single argument exceeding 2000 bytes causes a buffer overrun
6759 # during glob expansion). Even if it were fixed, the result of this
6760 # check would be larger than it should be.
6761 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6765 # Under GNU Hurd, this test is not required because there is
6766 # no limit to the length of command line arguments.
6767 # Libtool will interpret -1 as no limit whatsoever
6768 lt_cv_sys_max_cmd_len=-1;
6772 # On Win9x/ME, this test blows up -- it succeeds, but takes
6773 # about 5 minutes as the teststring grows exponentially.
6774 # Worse, since 9x/ME are not pre-emptively multitasking,
6775 # you end up with a "frozen" computer, even though with patience
6776 # the test eventually succeeds (with a max line length of 256k).
6777 # Instead, let's just punt: use the minimum linelength reported by
6778 # all of the supported platforms: 8192 (on NT/2K/XP).
6779 lt_cv_sys_max_cmd_len=8192;
6783 # On AmigaOS with pdksh, this test takes hours, literally.
6784 # So we just punt and use a minimum line length of 8192.
6785 lt_cv_sys_max_cmd_len=8192;
6788 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6789 # This has been around since 386BSD, at least. Likely further.
6790 if test -x /sbin/sysctl; then
6791 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6792 elif test -x /usr/sbin/sysctl; then
6793 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6795 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6797 # And add a safety zone
6798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6802 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6803 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6804 # nice to cause kernel panics so lets avoid the loop below.
6805 # First set a reasonable default.
6806 lt_cv_sys_max_cmd_len=16384
6808 if test -x /sbin/sysconfig; then
6809 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6810 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6815 # If test is not a shell built-in, we'll probably end up computing a
6816 # maximum length that is only half of the actual maximum length, but
6818 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6819 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6820 = "XX$teststring") >/dev/null 2>&1 &&
6821 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6822 lt_cv_sys_max_cmd_len=$new_result &&
6823 test $i != 17 # 1/2 MB should be enough
6826 teststring=$teststring$teststring
6829 # Add a significant safety factor because C++ compilers can tack on massive
6830 # amounts of additional arguments before passing them to the linker.
6831 # It appears as though 1/2 is a usable value.
6832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6838 if test -n $lt_cv_sys_max_cmd_len ; then
6839 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6840 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6842 echo "$as_me:$LINENO: result: none" >&5
6843 echo "${ECHO_T}none" >&6
6849 # Check for command to grab the raw symbol name followed by C symbol from nm.
6850 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6851 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6852 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 # These are sane defaults that work on at least a few old systems.
6857 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6859 # Character class describing NM global symbol codes.
6860 symcode='[BCDEGRST]'
6862 # Regexp to match symbols that can be accessed directly from C.
6863 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6865 # Transform an extracted symbol line into a proper C declaration
6866 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6868 # Transform an extracted symbol line into symbol name and symbol address
6869 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'"
6871 # Define system-specific variables.
6876 cygwin* | mingw* | pw32*)
6877 symcode='[ABCDGISTW]'
6879 hpux*) # Its linker distinguishes data from code symbols
6880 if test "$host_cpu" = ia64; then
6881 symcode='[ABCDEGRST]'
6883 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6884 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'"
6887 if test "$host_cpu" = ia64; then
6888 symcode='[ABCDGIRSTW]'
6889 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6890 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'"
6894 symcode='[BCDEGRST]'
6897 symcode='[BCDEGQRST]'
6907 # Handle CRLF in mingw tool chain
6911 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6915 # If we're using GNU nm, then use its standard symbol codes.
6916 case `$NM -V 2>&1` in
6917 *GNU* | *'with BFD'*)
6918 symcode='[ABCDGIRSTW]' ;;
6921 # Try without a prefix undercore, then with it.
6922 for ac_symprfx in "" "_"; do
6924 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6925 symxfrm="\\1 $ac_symprfx\\2 \\2"
6927 # Write the raw and C identifiers.
6928 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6930 # Check to see that the pipe works correctly.
6934 cat > conftest.$ac_ext <<EOF
6939 void nm_test_func(){}
6943 int main(){nm_test_var='a';nm_test_func();return(0);}
6946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947 (eval $ac_compile) 2>&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; then
6951 # Now try to grab the symbols.
6953 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6954 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && test -s "$nlist"; then
6958 # Try sorting and uniquifying the output.
6959 if sort "$nlist" | uniq > "$nlist"T; then
6960 mv -f "$nlist"T "$nlist"
6965 # Make sure that we snagged all the symbols we need.
6966 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6967 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6968 cat <<EOF > conftest.$ac_ext
6974 # Now generate the symbol file.
6975 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6977 cat <<EOF >> conftest.$ac_ext
6978 #if defined (__STDC__) && __STDC__
6979 # define lt_ptr_t void *
6981 # define lt_ptr_t char *
6985 /* The mapping between symbol names and symbols. */
6990 lt_preloaded_symbols[] =
6993 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6994 cat <<\EOF >> conftest.$ac_ext
7002 # Now try linking the two files.
7003 mv conftest.$ac_objext conftstm.$ac_objext
7004 lt_save_LIBS="$LIBS"
7005 lt_save_CFLAGS="$CFLAGS"
7006 LIBS="conftstm.$ac_objext"
7007 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009 (eval $ac_link) 2>&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7015 LIBS="$lt_save_LIBS"
7016 CFLAGS="$lt_save_CFLAGS"
7018 echo "cannot find nm_test_func in $nlist" >&5
7021 echo "cannot find nm_test_var in $nlist" >&5
7024 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7027 echo "$progname: failed program was:" >&5
7028 cat conftest.$ac_ext >&5
7030 rm -f conftest* conftst*
7032 # Do not use the global_symbol_pipe unless it works.
7033 if test "$pipe_works" = yes; then
7036 lt_cv_sys_global_symbol_pipe=
7042 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7043 lt_cv_sys_global_symbol_to_cdecl=
7045 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7046 echo "$as_me:$LINENO: result: failed" >&5
7047 echo "${ECHO_T}failed" >&6
7049 echo "$as_me:$LINENO: result: ok" >&5
7050 echo "${ECHO_T}ok" >&6
7053 echo "$as_me:$LINENO: checking for objdir" >&5
7054 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7055 if test "${lt_cv_objdir+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 rm -f .libs 2>/dev/null
7059 mkdir .libs 2>/dev/null
7060 if test -d .libs; then
7063 # MS-DOS does not allow filenames that begin with a dot.
7066 rmdir .libs 2>/dev/null
7068 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7069 echo "${ECHO_T}$lt_cv_objdir" >&6
7070 objdir=$lt_cv_objdir
7078 # AIX sometimes has problems with the GCC collect2 program. For some
7079 # reason, if we set the COLLECT_NAMES environment variable, the problems
7080 # vanish in a puff of smoke.
7081 if test "X${COLLECT_NAMES+set}" != Xset; then
7083 export COLLECT_NAMES
7088 # Sed substitution that helps us do robust quoting. It backslashifies
7089 # metacharacters that are still active within double-quoted strings.
7090 Xsed='sed -e 1s/^X//'
7091 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7093 # Same as above, but do not quote variable references.
7094 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7096 # Sed substitution to delay expansion of an escaped shell variable in a
7097 # double_quote_subst'ed string.
7098 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7100 # Sed substitution to avoid accidental globbing in evaled expressions
7101 no_glob_subst='s/\*/\\\*/g'
7107 default_ofile=libtool
7108 can_build_shared=yes
7110 # All known linkers require a `.a' archive for static linking (except MSVC,
7111 # which needs '.lib').
7113 ltmain="$ac_aux_dir/ltmain.sh"
7114 ofile="$default_ofile"
7115 with_gnu_ld="$lt_cv_prog_gnu_ld"
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}ar; ac_word=$2
7120 echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122 if test "${ac_cv_prog_AR+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 if test -n "$AR"; then
7126 ac_cv_prog_AR="$AR" # Let the user override the test.
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_AR="${ac_tool_prefix}ar"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 if test -n "$AR"; then
7146 echo "$as_me:$LINENO: result: $AR" >&5
7147 echo "${ECHO_T}$AR" >&6
7149 echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6
7154 if test -z "$ac_cv_prog_AR"; then
7156 # Extract the first word of "ar", so it can be a program name with args.
7157 set dummy ar; ac_word=$2
7158 echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7160 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 if test -n "$ac_ct_AR"; then
7164 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_ac_ct_AR="ar"
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7183 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7184 if test -n "$ac_ct_AR"; then
7185 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7186 echo "${ECHO_T}$ac_ct_AR" >&6
7188 echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7197 if test -n "$ac_tool_prefix"; then
7198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7199 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7200 echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7202 if test "${ac_cv_prog_RANLIB+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 if test -n "$RANLIB"; then
7206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 RANLIB=$ac_cv_prog_RANLIB
7225 if test -n "$RANLIB"; then
7226 echo "$as_me:$LINENO: result: $RANLIB" >&5
7227 echo "${ECHO_T}$RANLIB" >&6
7229 echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6
7234 if test -z "$ac_cv_prog_RANLIB"; then
7235 ac_ct_RANLIB=$RANLIB
7236 # Extract the first word of "ranlib", so it can be a program name with args.
7237 set dummy ranlib; ac_word=$2
7238 echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7240 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 if test -n "$ac_ct_RANLIB"; then
7244 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_ac_ct_RANLIB="ranlib"
7254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7263 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7264 if test -n "$ac_ct_RANLIB"; then
7265 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7266 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7268 echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7272 RANLIB=$ac_ct_RANLIB
7274 RANLIB="$ac_cv_prog_RANLIB"
7277 if test -n "$ac_tool_prefix"; then
7278 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7279 set dummy ${ac_tool_prefix}strip; ac_word=$2
7280 echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7282 if test "${ac_cv_prog_STRIP+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 if test -n "$STRIP"; then
7286 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 STRIP=$ac_cv_prog_STRIP
7305 if test -n "$STRIP"; then
7306 echo "$as_me:$LINENO: result: $STRIP" >&5
7307 echo "${ECHO_T}$STRIP" >&6
7309 echo "$as_me:$LINENO: result: no" >&5
7310 echo "${ECHO_T}no" >&6
7314 if test -z "$ac_cv_prog_STRIP"; then
7316 # Extract the first word of "strip", so it can be a program name with args.
7317 set dummy strip; ac_word=$2
7318 echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7320 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 if test -n "$ac_ct_STRIP"; then
7324 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_ac_ct_STRIP="strip"
7334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7343 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7344 if test -n "$ac_ct_STRIP"; then
7345 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7346 echo "${ECHO_T}$ac_ct_STRIP" >&6
7348 echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6
7354 STRIP="$ac_cv_prog_STRIP"
7359 old_CFLAGS="$CFLAGS"
7361 # Set sane defaults for various variables
7362 test -z "$AR" && AR=ar
7363 test -z "$AR_FLAGS" && AR_FLAGS=cru
7364 test -z "$AS" && AS=as
7365 test -z "$CC" && CC=cc
7366 test -z "$LTCC" && LTCC=$CC
7367 test -z "$DLLTOOL" && DLLTOOL=dlltool
7368 test -z "$LD" && LD=ld
7369 test -z "$LN_S" && LN_S="ln -s"
7370 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7371 test -z "$NM" && NM=nm
7372 test -z "$SED" && SED=sed
7373 test -z "$OBJDUMP" && OBJDUMP=objdump
7374 test -z "$RANLIB" && RANLIB=:
7375 test -z "$STRIP" && STRIP=:
7376 test -z "$ac_objext" && ac_objext=o
7378 # Determine commands to create old-style static archives.
7379 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7380 old_postinstall_cmds='chmod 644 $oldlib'
7381 old_postuninstall_cmds=
7383 if test -n "$RANLIB"; then
7386 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7389 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7392 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7395 for cc_temp in $compiler""; do
7397 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7398 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7403 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7406 # Only perform the check for file, if the check method requires it
7407 case $deplibs_check_method in
7409 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7410 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7411 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7412 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7420 lt_save_MAGIC_CMD="$MAGIC_CMD"
7421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7422 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7423 for ac_dir in $ac_dummy; do
7425 test -z "$ac_dir" && ac_dir=.
7426 if test -f $ac_dir/${ac_tool_prefix}file; then
7427 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7428 if test -n "$file_magic_test_file"; then
7429 case $deplibs_check_method in
7431 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7432 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7433 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7434 $EGREP "$file_magic_regex" > /dev/null; then
7439 *** Warning: the command libtool uses to detect shared libraries,
7440 *** $file_magic_cmd, produces output that libtool cannot recognize.
7441 *** The result is that libtool may fail to recognize shared libraries
7442 *** as such. This will affect the creation of libtool libraries that
7443 *** depend on shared libraries, but programs linked with such libtool
7444 *** libraries will work regardless of this problem. Nevertheless, you
7445 *** may want to report the problem to your system manager and/or to
7446 *** bug-libtool@gnu.org
7456 MAGIC_CMD="$lt_save_MAGIC_CMD"
7461 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7462 if test -n "$MAGIC_CMD"; then
7463 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7464 echo "${ECHO_T}$MAGIC_CMD" >&6
7466 echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6
7470 if test -z "$lt_cv_path_MAGIC_CMD"; then
7471 if test -n "$ac_tool_prefix"; then
7472 echo "$as_me:$LINENO: checking for file" >&5
7473 echo $ECHO_N "checking for file... $ECHO_C" >&6
7474 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7482 lt_save_MAGIC_CMD="$MAGIC_CMD"
7483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7484 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7485 for ac_dir in $ac_dummy; do
7487 test -z "$ac_dir" && ac_dir=.
7488 if test -f $ac_dir/file; then
7489 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7490 if test -n "$file_magic_test_file"; then
7491 case $deplibs_check_method in
7493 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7495 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7496 $EGREP "$file_magic_regex" > /dev/null; then
7501 *** Warning: the command libtool uses to detect shared libraries,
7502 *** $file_magic_cmd, produces output that libtool cannot recognize.
7503 *** The result is that libtool may fail to recognize shared libraries
7504 *** as such. This will affect the creation of libtool libraries that
7505 *** depend on shared libraries, but programs linked with such libtool
7506 *** libraries will work regardless of this problem. Nevertheless, you
7507 *** may want to report the problem to your system manager and/or to
7508 *** bug-libtool@gnu.org
7518 MAGIC_CMD="$lt_save_MAGIC_CMD"
7523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7524 if test -n "$MAGIC_CMD"; then
7525 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7526 echo "${ECHO_T}$MAGIC_CMD" >&6
7528 echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7542 enable_win32_dll=yes
7544 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7545 if test "${enable_libtool_lock+set}" = set; then
7546 enableval="$enable_libtool_lock"
7549 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7552 # Check whether --with-pic or --without-pic was given.
7553 if test "${with_pic+set}" = set; then
7559 test -z "$pic_mode" && pic_mode=default
7561 # Use C for the default configuration in the libtool script
7565 ac_cpp='$CPP $CPPFLAGS'
7566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7571 # Source file extension for C test sources.
7574 # Object file extension for compiled C test sources.
7578 # Code to be used in simple compile tests
7579 lt_simple_compile_test_code="int some_variable = 0;\n"
7581 # Code to be used in simple link tests
7582 lt_simple_link_test_code='int main(){return(0);}\n'
7585 # If no C compiler was specified, use CC.
7588 # Allow CC to be a program name with arguments.
7592 # save warnings/boilerplate of simple test code
7593 ac_outfile=conftest.$ac_objext
7594 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7596 _lt_compiler_boilerplate=`cat conftest.err`
7599 ac_outfile=conftest.$ac_objext
7600 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7602 _lt_linker_boilerplate=`cat conftest.err`
7607 # Check for any special shared library compilation flags.
7610 if test "$GCC" = no; then
7613 lt_prog_cc_shlib='-belf'
7617 if test -n "$lt_prog_cc_shlib"; then
7618 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7619 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7620 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7622 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7623 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7624 lt_cv_prog_cc_can_build_shared=no
7630 # Check to make sure the static flag actually works.
7632 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7633 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7634 if test "${lt_prog_compiler_static_works+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 lt_prog_compiler_static_works=no
7638 save_LDFLAGS="$LDFLAGS"
7639 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7640 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7641 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7642 # The linker can only warn and ignore the option if not recognized
7643 # So say no if there are warnings
7644 if test -s conftest.err; then
7645 # Append any errors to the config.log.
7646 cat conftest.err 1>&5
7647 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7648 $SED '/^$/d' conftest.err >conftest.er2
7649 if diff conftest.exp conftest.er2 >/dev/null; then
7650 lt_prog_compiler_static_works=yes
7653 lt_prog_compiler_static_works=yes
7657 LDFLAGS="$save_LDFLAGS"
7660 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7661 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7663 if test x"$lt_prog_compiler_static_works" = xyes; then
7666 lt_prog_compiler_static=
7672 lt_prog_compiler_no_builtin_flag=
7674 if test "$GCC" = yes; then
7675 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7678 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7679 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7680 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 lt_cv_prog_compiler_rtti_exceptions=no
7684 ac_outfile=conftest.$ac_objext
7685 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7686 lt_compiler_flag="-fno-rtti -fno-exceptions"
7687 # Insert the option either (1) after the last *FLAGS variable, or
7688 # (2) before a word containing "conftest.", or (3) at the end.
7689 # Note that $ac_compile itself does not contain backslashes and begins
7690 # with a dollar sign (not a hyphen), so the echo should work correctly.
7691 # The option is referenced via a variable to avoid confusing sed.
7692 lt_compile=`echo "$ac_compile" | $SED \
7693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7695 -e 's:$: $lt_compiler_flag:'`
7696 (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
7697 (eval "$lt_compile" 2>conftest.err)
7699 cat conftest.err >&5
7700 echo "$as_me:7700: \$? = $ac_status" >&5
7701 if (exit $ac_status) && test -s "$ac_outfile"; then
7702 # The compiler can only warn and ignore the option if not recognized
7703 # So say no if there are warnings other than the usual output.
7704 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7705 $SED '/^$/d' conftest.err >conftest.er2
7706 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7707 lt_cv_prog_compiler_rtti_exceptions=yes
7713 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7714 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7716 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7717 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7724 lt_prog_compiler_wl=
7725 lt_prog_compiler_pic=
7726 lt_prog_compiler_static=
7728 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7729 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7731 if test "$GCC" = yes; then
7732 lt_prog_compiler_wl='-Wl,'
7733 lt_prog_compiler_static='-static'
7737 # All AIX code is PIC.
7738 if test "$host_cpu" = ia64; then
7739 # AIX 5 now supports IA64 processor
7740 lt_prog_compiler_static='-Bstatic'
7745 # FIXME: we need at least 68020 code to build shared libraries, but
7746 # adding the `-m68020' flag to GCC prevents building anything better,
7748 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7751 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7752 # PIC is the default for these OSes.
7755 mingw* | pw32* | os2*)
7756 # This hack is so that the source file can tell whether it is being
7757 # built for inclusion in a dll (and should export symbols for example).
7758 lt_prog_compiler_pic='-DDLL_EXPORT'
7761 darwin* | rhapsody*)
7762 # PIC is the default on this platform
7763 # Common symbols not allowed in MH_DYLIB files
7764 lt_prog_compiler_pic='-fno-common'
7768 # Just because we use GCC doesn't mean we suddenly get shared libraries
7769 # on systems that don't support them.
7770 lt_prog_compiler_can_build_shared=no
7775 if test -d /usr/nec; then
7776 lt_prog_compiler_pic=-Kconform_pic
7781 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7788 lt_prog_compiler_pic='-fPIC'
7794 lt_prog_compiler_pic='-fPIC'
7798 # PORTME Check for flag to pass linker flags through the system compiler.
7801 lt_prog_compiler_wl='-Wl,'
7802 if test "$host_cpu" = ia64; then
7803 # AIX 5 now supports IA64 processor
7804 lt_prog_compiler_static='-Bstatic'
7806 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7810 # PIC is the default on this platform
7811 # Common symbols not allowed in MH_DYLIB files
7812 case $cc_basename in
7814 lt_prog_compiler_pic='-qnocommon'
7815 lt_prog_compiler_wl='-Wl,'
7820 mingw* | pw32* | os2*)
7821 # This hack is so that the source file can tell whether it is being
7822 # built for inclusion in a dll (and should export symbols for example).
7823 lt_prog_compiler_pic='-DDLL_EXPORT'
7826 hpux9* | hpux10* | hpux11*)
7827 lt_prog_compiler_wl='-Wl,'
7828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7835 lt_prog_compiler_pic='+Z'
7838 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7839 lt_prog_compiler_static='${wl}-a ${wl}archive'
7842 irix5* | irix6* | nonstopux*)
7843 lt_prog_compiler_wl='-Wl,'
7844 # PIC (with -KPIC) is the default.
7845 lt_prog_compiler_static='-non_shared'
7849 lt_prog_compiler_pic='-KPIC'
7850 lt_prog_compiler_static='-Bstatic'
7854 case $cc_basename in
7856 lt_prog_compiler_wl='-Wl,'
7857 lt_prog_compiler_pic='-KPIC'
7858 lt_prog_compiler_static='-static'
7860 pgcc* | pgf77* | pgf90* | pgf95*)
7861 # Portland Group compilers (*not* the Pentium gcc compiler,
7862 # which looks to be a dead project)
7863 lt_prog_compiler_wl='-Wl,'
7864 lt_prog_compiler_pic='-fpic'
7865 lt_prog_compiler_static='-Bstatic'
7868 lt_prog_compiler_wl='-Wl,'
7869 # All Alpha code is PIC.
7870 lt_prog_compiler_static='-non_shared'
7875 osf3* | osf4* | osf5*)
7876 lt_prog_compiler_wl='-Wl,'
7877 # All OSF/1 code is PIC.
7878 lt_prog_compiler_static='-non_shared'
7882 lt_prog_compiler_pic='-Kpic'
7883 lt_prog_compiler_static='-dn'
7887 lt_prog_compiler_pic='-KPIC'
7888 lt_prog_compiler_static='-Bstatic'
7889 case $cc_basename in
7891 lt_prog_compiler_wl='-Qoption ld ';;
7893 lt_prog_compiler_wl='-Wl,';;
7898 lt_prog_compiler_wl='-Qoption ld '
7899 lt_prog_compiler_pic='-PIC'
7900 lt_prog_compiler_static='-Bstatic'
7903 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7904 lt_prog_compiler_wl='-Wl,'
7905 lt_prog_compiler_pic='-KPIC'
7906 lt_prog_compiler_static='-Bstatic'
7910 if test -d /usr/nec ;then
7911 lt_prog_compiler_pic='-Kconform_pic'
7912 lt_prog_compiler_static='-Bstatic'
7917 lt_prog_compiler_wl='-Wl,'
7918 lt_prog_compiler_can_build_shared=no
7922 lt_prog_compiler_pic='-pic'
7923 lt_prog_compiler_static='-Bstatic'
7927 lt_prog_compiler_can_build_shared=no
7932 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7933 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7936 # Check to make sure the PIC flag actually works.
7938 if test -n "$lt_prog_compiler_pic"; then
7940 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7941 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7942 if test "${lt_prog_compiler_pic_works+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 lt_prog_compiler_pic_works=no
7946 ac_outfile=conftest.$ac_objext
7947 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7948 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7949 # Insert the option either (1) after the last *FLAGS variable, or
7950 # (2) before a word containing "conftest.", or (3) at the end.
7951 # Note that $ac_compile itself does not contain backslashes and begins
7952 # with a dollar sign (not a hyphen), so the echo should work correctly.
7953 # The option is referenced via a variable to avoid confusing sed.
7954 lt_compile=`echo "$ac_compile" | $SED \
7955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7957 -e 's:$: $lt_compiler_flag:'`
7958 (eval echo "\"\$as_me:7958: $lt_compile\"" >&5)
7959 (eval "$lt_compile" 2>conftest.err)
7961 cat conftest.err >&5
7962 echo "$as_me:7962: \$? = $ac_status" >&5
7963 if (exit $ac_status) && test -s "$ac_outfile"; then
7964 # The compiler can only warn and ignore the option if not recognized
7965 # So say no if there are warnings other than the usual output.
7966 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7967 $SED '/^$/d' conftest.err >conftest.er2
7968 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7969 lt_prog_compiler_pic_works=yes
7975 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7976 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7978 if test x"$lt_prog_compiler_pic_works" = xyes; then
7979 case $lt_prog_compiler_pic in
7981 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7984 lt_prog_compiler_pic=
7985 lt_prog_compiler_can_build_shared=no
7990 # For platforms which do not support PIC, -DPIC is meaningless:
7992 lt_prog_compiler_pic=
7995 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7999 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8000 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8001 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 lt_cv_prog_compiler_c_o=no
8005 $rm -r conftest 2>/dev/null
8009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8011 lt_compiler_flag="-o out/conftest2.$ac_objext"
8012 # Insert the option either (1) after the last *FLAGS variable, or
8013 # (2) before a word containing "conftest.", or (3) at the end.
8014 # Note that $ac_compile itself does not contain backslashes and begins
8015 # with a dollar sign (not a hyphen), so the echo should work correctly.
8016 lt_compile=`echo "$ac_compile" | $SED \
8017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8019 -e 's:$: $lt_compiler_flag:'`
8020 (eval echo "\"\$as_me:8020: $lt_compile\"" >&5)
8021 (eval "$lt_compile" 2>out/conftest.err)
8023 cat out/conftest.err >&5
8024 echo "$as_me:8024: \$? = $ac_status" >&5
8025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8027 # The compiler can only warn and ignore the option if not recognized
8028 # So say no if there are warnings
8029 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8030 $SED '/^$/d' out/conftest.err >out/conftest.er2
8031 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8032 lt_cv_prog_compiler_c_o=yes
8037 # SGI C++ compiler will create directory out/ii_files/ for
8038 # template instantiation
8039 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8040 $rm out/* && rmdir out
8046 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8047 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8050 hard_links="nottested"
8051 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8052 # do not overwrite the value of need_locks provided by the user
8053 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8054 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8059 ln conftest.a conftest.b 2>&5 || hard_links=no
8060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8061 echo "$as_me:$LINENO: result: $hard_links" >&5
8062 echo "${ECHO_T}$hard_links" >&6
8063 if test "$hard_links" = no; then
8064 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8065 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8072 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8073 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8076 allow_undefined_flag=
8077 enable_shared_with_static_runtimes=no
8079 archive_expsym_cmds=
8080 old_archive_From_new_cmds=
8081 old_archive_from_expsyms_cmds=
8082 export_dynamic_flag_spec=
8083 whole_archive_flag_spec=
8084 thread_safe_flag_spec=
8085 hardcode_libdir_flag_spec=
8086 hardcode_libdir_flag_spec_ld=
8087 hardcode_libdir_separator=
8090 hardcode_shlibpath_var=unsupported
8091 link_all_deplibs=unknown
8092 hardcode_automatic=no
8095 always_export_symbols=no
8096 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8097 # include_expsyms should be a list of space-separated symbols to be *always*
8098 # included in the symbol list
8100 # exclude_expsyms can be an extended regexp of symbols to exclude
8101 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8102 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8103 # as well as any symbol that contains `d'.
8104 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8105 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8106 # platforms (ab)use it in PIC code, but their linkers get confused if
8107 # the symbol is explicitly referenced. Since portable code cannot
8108 # rely on this symbol name, it's probably fine to never include it in
8109 # preloaded symbol tables.
8110 extract_expsyms_cmds=
8111 # Just being paranoid about ensuring that cc_basename is set.
8112 for cc_temp in $compiler""; do
8114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8120 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8123 cygwin* | mingw* | pw32*)
8124 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8125 # When not using gcc, we currently assume that we are using
8126 # Microsoft Visual C++.
8127 if test "$GCC" != yes; then
8137 if test "$with_gnu_ld" = yes; then
8138 # If archive_cmds runs LD, not CC, wlarc should be empty
8141 # Set some defaults for GNU ld with shared library support. These
8142 # are reset later if shared libraries are not supported. Putting them
8143 # here allows them to be overridden if necessary.
8144 runpath_var=LD_RUN_PATH
8145 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8146 export_dynamic_flag_spec='${wl}--export-dynamic'
8147 # ancient GNU ld didn't support --whole-archive et. al.
8148 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8149 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8151 whole_archive_flag_spec=
8153 supports_anon_versioning=no
8154 case `$LD -v 2>/dev/null` in
8155 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8156 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8157 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8158 *\ 2.11.*) ;; # other 2.11 versions
8159 *) supports_anon_versioning=yes ;;
8162 # See if GNU ld supports shared libraries.
8164 aix3* | aix4* | aix5*)
8165 # On AIX/PPC, the GNU linker is very broken
8166 if test "$host_cpu" != ia64; then
8170 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8171 *** to be unable to reliably create shared libraries on AIX.
8172 *** Therefore, libtool is disabling shared libraries support. If you
8173 *** really care for shared libraries, you may want to modify your PATH
8174 *** so that a non-GNU linker is found, and then restart.
8181 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)'
8182 hardcode_libdir_flag_spec='-L$libdir'
8183 hardcode_minus_L=yes
8185 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8186 # that the semantics of dynamic libraries on AmigaOS, at least up
8187 # to version 4, is to share data among multiple programs linked
8188 # with the same dynamic library. Since this doesn't match the
8189 # behavior of shared libraries on other platforms, we can't use
8195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8196 allow_undefined_flag=unsupported
8197 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8198 # support --undefined. This deserves some investigation. FIXME
8199 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8205 cygwin* | mingw* | pw32*)
8206 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8207 # as there is no search path for DLLs.
8208 hardcode_libdir_flag_spec='-L$libdir'
8209 allow_undefined_flag=unsupported
8210 always_export_symbols=no
8211 enable_shared_with_static_runtimes=yes
8212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8214 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8216 # If the export-symbols file already is a .def file (1st line
8217 # is EXPORTS), use it as is; otherwise, prepend...
8218 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8219 cp $export_symbols $output_objdir/$soname.def;
8221 echo EXPORTS > $output_objdir/$soname.def;
8222 cat $export_symbols >> $output_objdir/$soname.def;
8224 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8231 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8233 case $cc_basename,$host_cpu in
8234 pgcc*) # Portland Group C compiler
8235 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'
8236 tmp_addflag=' $pic_flag'
8238 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8239 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'
8240 tmp_addflag=' $pic_flag -Mnomain' ;;
8241 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8242 tmp_addflag=' -i_dynamic' ;;
8243 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8244 tmp_addflag=' -i_dynamic -nofor_main' ;;
8245 ifc* | ifort*) # Intel Fortran compiler
8246 tmp_addflag=' -nofor_main' ;;
8248 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8250 if test $supports_anon_versioning = yes; then
8251 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8252 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8253 $echo "local: *; };" >> $output_objdir/$libname.ver~
8254 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8263 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8272 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8276 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8277 *** create shared libraries on Solaris systems. Therefore, libtool
8278 *** is disabling shared libraries support. We urge you to upgrade GNU
8279 *** binutils to release 2.9.1 or newer. Another option is to modify
8280 *** your PATH or compiler configuration so that the native linker is
8281 *** used, and then restart.
8284 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8293 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8296 hardcode_shlibpath_var=no
8300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8309 if test "$ld_shlibs" = no; then
8311 hardcode_libdir_flag_spec=
8312 export_dynamic_flag_spec=
8313 whole_archive_flag_spec=
8316 # PORTME fill in a description of your system's linker (not GNU ld)
8319 allow_undefined_flag=unsupported
8320 always_export_symbols=yes
8321 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'
8322 # Note: this linker hardcodes the directories in LIBPATH if there
8323 # are no directories specified by -L.
8324 hardcode_minus_L=yes
8325 if test "$GCC" = yes && test -z "$link_static_flag"; then
8326 # Neither direct hardcoding nor static linking is supported with a
8328 hardcode_direct=unsupported
8333 if test "$host_cpu" = ia64; then
8334 # On IA64, the linker does run time linking by default, so we don't
8335 # have to do anything special.
8336 aix_use_runtimelinking=no
8337 exp_sym_flag='-Bexport'
8340 # If we're using GNU nm, then we don't want the "-C" option.
8341 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8342 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8343 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'
8345 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'
8347 aix_use_runtimelinking=no
8349 # Test if we are trying to use run time linking or normal
8350 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8351 # need to do runtime linking.
8352 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8353 for ld_flag in $LDFLAGS; do
8354 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8355 aix_use_runtimelinking=yes
8361 exp_sym_flag='-bexport'
8362 no_entry_flag='-bnoentry'
8365 # When large executables or shared objects are built, AIX ld can
8366 # have problems creating the table of contents. If linking a library
8367 # or program results in "error TOC overflow" add -mminimal-toc to
8368 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8369 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8373 hardcode_libdir_separator=':'
8374 link_all_deplibs=yes
8376 if test "$GCC" = yes; then
8377 case $host_os in aix4.[012]|aix4.[012].*)
8378 # We only want to do this on AIX 4.2 and lower, the check
8379 # below for broken collect2 doesn't work under 4.3+
8380 collect2name=`${CC} -print-prog-name=collect2`
8381 if test -f "$collect2name" && \
8382 strings "$collect2name" | grep resolve_lib_name >/dev/null
8384 # We have reworked collect2
8387 # We have old collect2
8388 hardcode_direct=unsupported
8389 # It fails to find uninstalled libraries when the uninstalled
8390 # path is not listed in the libpath. Setting hardcode_minus_L
8391 # to unsupported forces relinking
8392 hardcode_minus_L=yes
8393 hardcode_libdir_flag_spec='-L$libdir'
8394 hardcode_libdir_separator=
8397 shared_flag='-shared'
8398 if test "$aix_use_runtimelinking" = yes; then
8399 shared_flag="$shared_flag "'${wl}-G'
8403 if test "$host_cpu" = ia64; then
8404 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8405 # chokes on -Wl,-G. The following line is correct:
8408 if test "$aix_use_runtimelinking" = yes; then
8409 shared_flag='${wl}-G'
8411 shared_flag='${wl}-bM:SRE'
8416 # It seems that -bexpall does not export symbols beginning with
8417 # underscore (_), so it is better to generate a list of symbols to export.
8418 always_export_symbols=yes
8419 if test "$aix_use_runtimelinking" = yes; then
8420 # Warning - without using the other runtime loading flags (-brtl),
8421 # -berok will link without error, but may produce a broken library.
8422 allow_undefined_flag='-berok'
8423 # Determine the default libpath from the value encoded in an empty executable.
8424 cat >conftest.$ac_ext <<_ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441 (eval $ac_link) 2>conftest.er1
8443 grep -v '^ *+' conftest.er1 >conftest.err
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -z "$ac_c_werror_flag"
8449 || test ! -s conftest.err'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest$ac_exeext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8464 # Check for a 64-bit object if we didn't find anything.
8465 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; }
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8472 rm -f conftest.err conftest.$ac_objext \
8473 conftest$ac_exeext conftest.$ac_ext
8474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8476 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8477 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"
8479 if test "$host_cpu" = ia64; then
8480 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8481 allow_undefined_flag="-z nodefs"
8482 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"
8484 # Determine the default libpath from the value encoded in an empty executable.
8485 cat >conftest.$ac_ext <<_ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8500 rm -f conftest.$ac_objext conftest$ac_exeext
8501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8502 (eval $ac_link) 2>conftest.er1
8504 grep -v '^ *+' conftest.er1 >conftest.err
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } &&
8509 { ac_try='test -z "$ac_c_werror_flag"
8510 || test ! -s conftest.err'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; } &&
8516 { ac_try='test -s conftest$ac_exeext'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
8523 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8525 # Check for a 64-bit object if we didn't find anything.
8526 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; }
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8533 rm -f conftest.err conftest.$ac_objext \
8534 conftest$ac_exeext conftest.$ac_ext
8535 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8537 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8538 # Warning - without using the other run time loading flags,
8539 # -berok will link without error, but may produce a broken library.
8540 no_undefined_flag=' ${wl}-bernotok'
8541 allow_undefined_flag=' ${wl}-berok'
8542 # -bexpall does not export symbols beginning with underscore (_)
8543 always_export_symbols=yes
8544 # Exported symbols can be pulled into shared objects from archives
8545 whole_archive_flag_spec=' '
8546 archive_cmds_need_lc=yes
8547 # This is similar to how AIX traditionally builds its shared libraries.
8548 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'
8554 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)'
8555 hardcode_libdir_flag_spec='-L$libdir'
8556 hardcode_minus_L=yes
8557 # see comment about different semantics on the GNU ld section
8562 export_dynamic_flag_spec=-rdynamic
8565 cygwin* | mingw* | pw32*)
8566 # When not using gcc, we currently assume that we are using
8567 # Microsoft Visual C++.
8568 # hardcode_libdir_flag_spec is actually meaningless, as there is
8569 # no search path for DLLs.
8570 hardcode_libdir_flag_spec=' '
8571 allow_undefined_flag=unsupported
8572 # Tell ltmain to make .lib files, not .a files.
8574 # Tell ltmain to make .dll files, not .so files.
8576 # FIXME: Setting linknames here is a bad hack.
8577 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8578 # The linker will automatically build a .lib file if we build a DLL.
8579 old_archive_From_new_cmds='true'
8580 # FIXME: Should let the user specify the lib program.
8581 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8582 fix_srcfile_path='`cygpath -w "$srcfile"`'
8583 enable_shared_with_static_runtimes=yes
8586 darwin* | rhapsody*)
8588 rhapsody* | darwin1.[012])
8589 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8592 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8593 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8595 case ${MACOSX_DEPLOYMENT_TARGET} in
8597 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8600 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8606 archive_cmds_need_lc=no
8608 hardcode_automatic=yes
8609 hardcode_shlibpath_var=unsupported
8610 whole_archive_flag_spec=''
8611 link_all_deplibs=yes
8612 if test "$GCC" = yes ; then
8613 output_verbose_link_cmd='echo'
8614 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8615 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8616 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8617 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}'
8618 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}'
8620 case $cc_basename in
8622 output_verbose_link_cmd='echo'
8623 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8624 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8625 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8626 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}'
8627 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}'
8637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8638 hardcode_libdir_flag_spec='-L$libdir'
8639 hardcode_shlibpath_var=no
8646 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8647 # support. Future versions do this automatically, but an explicit c++rt0.o
8648 # does not break anything, and helps significantly (at the cost of a little
8651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8652 hardcode_libdir_flag_spec='-R$libdir'
8654 hardcode_shlibpath_var=no
8657 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8661 hardcode_minus_L=yes
8662 hardcode_shlibpath_var=no
8665 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8666 freebsd* | kfreebsd*-gnu | dragonfly*)
8667 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8668 hardcode_libdir_flag_spec='-R$libdir'
8670 hardcode_shlibpath_var=no
8674 if test "$GCC" = yes; then
8675 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'
8677 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'
8679 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8680 hardcode_libdir_separator=:
8683 # hardcode_minus_L: Not really in the search PATH,
8684 # but as the default location of the library.
8685 hardcode_minus_L=yes
8686 export_dynamic_flag_spec='${wl}-E'
8690 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8693 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8696 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8702 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8705 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8709 if test "$with_gnu_ld" = no; then
8712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8713 hardcode_libdir_flag_spec_ld='+b $libdir'
8714 hardcode_libdir_separator=:
8716 hardcode_shlibpath_var=no
8719 hardcode_libdir_flag_spec='-L$libdir'
8721 hardcode_shlibpath_var=no
8723 # hardcode_minus_L: Not really in the search PATH,
8724 # but as the default location of the library.
8725 hardcode_minus_L=yes
8728 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8729 hardcode_libdir_separator=:
8731 export_dynamic_flag_spec='${wl}-E'
8733 # hardcode_minus_L: Not really in the search PATH,
8734 # but as the default location of the library.
8735 hardcode_minus_L=yes
8741 irix5* | irix6* | nonstopux*)
8742 if test "$GCC" = yes; then
8743 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'
8745 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'
8746 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8749 hardcode_libdir_separator=:
8750 link_all_deplibs=yes
8754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8757 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8759 hardcode_libdir_flag_spec='-R$libdir'
8761 hardcode_shlibpath_var=no
8765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768 hardcode_libdir_separator=:
8769 hardcode_shlibpath_var=no
8774 hardcode_shlibpath_var=no
8775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8777 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8778 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8779 export_dynamic_flag_spec='${wl}-E'
8782 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_libdir_flag_spec='-R$libdir'
8787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8788 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8795 hardcode_libdir_flag_spec='-L$libdir'
8796 hardcode_minus_L=yes
8797 allow_undefined_flag=unsupported
8798 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'
8799 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8803 if test "$GCC" = yes; then
8804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8805 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'
8807 allow_undefined_flag=' -expect_unresolved \*'
8808 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'
8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811 hardcode_libdir_separator=:
8814 osf4* | osf5*) # as osf3* with the addition of -msym flag
8815 if test "$GCC" = yes; then
8816 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8817 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'
8818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8820 allow_undefined_flag=' -expect_unresolved \*'
8821 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'
8822 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8823 $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'
8825 # Both c and cxx compiler support -rpath directly
8826 hardcode_libdir_flag_spec='-rpath $libdir'
8828 hardcode_libdir_separator=:
8832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8833 hardcode_shlibpath_var=no
8834 export_dynamic_flag_spec='${wl}-Bexport'
8835 runpath_var=LD_RUN_PATH
8836 hardcode_runpath_var=yes
8840 no_undefined_flag=' -z text'
8841 if test "$GCC" = yes; then
8843 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8844 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8845 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8848 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8850 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8852 hardcode_libdir_flag_spec='-R$libdir'
8853 hardcode_shlibpath_var=no
8855 solaris2.[0-5] | solaris2.[0-5].*) ;;
8857 # The compiler driver will combine linker options so we
8858 # cannot just pass the convience library names through
8859 # without $wl, iff we do not link with $LD.
8860 # Luckily, gcc supports the same syntax we need for Sun Studio.
8861 # Supported since Solaris 2.6 (maybe 2.5.1?)
8864 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8866 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' ;;
8869 link_all_deplibs=yes
8873 if test "x$host_vendor" = xsequent; then
8874 # Use $CC to link under sequent, because it throws in some extra .o
8875 # files that make .init and .fini sections work.
8876 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8878 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8880 hardcode_libdir_flag_spec='-L$libdir'
8882 hardcode_minus_L=yes
8883 hardcode_shlibpath_var=no
8887 case $host_vendor in
8889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890 hardcode_direct=yes # is this really true???
8893 ## LD is ld it makes a PLAMLIB
8894 ## CC just makes a GrossModule.
8895 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8896 reload_cmds='$CC -r -o $output$reload_objs'
8900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8901 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8904 runpath_var='LD_RUN_PATH'
8905 hardcode_shlibpath_var=no
8909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8910 hardcode_shlibpath_var=no
8911 export_dynamic_flag_spec='-Bexport'
8915 if test -d /usr/nec; then
8916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917 hardcode_shlibpath_var=no
8918 runpath_var=LD_RUN_PATH
8919 hardcode_runpath_var=yes
8925 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8928 hardcode_shlibpath_var=no
8929 hardcode_runpath_var=yes
8930 runpath_var=LD_RUN_PATH
8933 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8934 no_undefined_flag='${wl}-z ${wl}text'
8935 if test "$GCC" = yes; then
8936 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8938 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8940 runpath_var='LD_RUN_PATH'
8941 hardcode_shlibpath_var=no
8945 no_undefined_flag=' -z text'
8946 # $CC -shared without GNU ld will not create a library from C++
8947 # object files and a static libstdc++, better avoid it by now
8948 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8950 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8951 hardcode_libdir_flag_spec=
8952 hardcode_shlibpath_var=no
8953 runpath_var='LD_RUN_PATH'
8957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958 hardcode_libdir_flag_spec='-L$libdir'
8959 hardcode_shlibpath_var=no
8968 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8969 echo "${ECHO_T}$ld_shlibs" >&6
8970 test "$ld_shlibs" = no && can_build_shared=no
8972 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8973 if test "$GCC" = yes; then
8974 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8978 # Do we need to explicitly link libc?
8980 case "x$archive_cmds_need_lc" in
8982 # Assume -lc should be added
8983 archive_cmds_need_lc=yes
8985 if test "$enable_shared" = yes && test "$GCC" = yes; then
8986 case $archive_cmds in
8988 # FIXME: we may have to deal with multi-command sequences.
8991 # Test whether the compiler implicitly links with -lc since on some
8992 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8993 # to ld, don't add -lc before -lgcc.
8994 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8995 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000 (eval $ac_compile) 2>&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } 2>conftest.err; then
9006 libobjs=conftest.$ac_objext
9008 wl=$lt_prog_compiler_wl
9014 lt_save_allow_undefined_flag=$allow_undefined_flag
9015 allow_undefined_flag=
9016 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9017 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }
9022 archive_cmds_need_lc=no
9024 archive_cmds_need_lc=yes
9026 allow_undefined_flag=$lt_save_allow_undefined_flag
9028 cat conftest.err 1>&5
9031 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9032 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9039 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9040 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9042 libname_spec='lib$name'
9050 shlibpath_overrides_runpath=unknown
9052 dynamic_linker="$host_os ld.so"
9053 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9054 if test "$GCC" = yes; then
9055 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9056 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9057 # if the path contains ";" then we assume it to be the separator
9058 # otherwise default to the standard path separator (i.e. ":") - it is
9059 # assumed that no part of a normal pathname contains ";" but that should
9060 # okay in the real world where ";" in dirpaths is itself problematic.
9061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9066 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9068 need_lib_prefix=unknown
9069 hardcode_into_libs=no
9071 # when you set need_version to no, make sure it does not cause -set_version
9072 # flags to be left without arguments
9073 need_version=unknown
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9079 shlibpath_var=LIBPATH
9081 # AIX 3 has no versioning support, so we append a major version to the name.
9082 soname_spec='${libname}${release}${shared_ext}$major'
9089 hardcode_into_libs=yes
9090 if test "$host_cpu" = ia64; then
9091 # AIX 5 supports IA64
9092 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9093 shlibpath_var=LD_LIBRARY_PATH
9095 # With GCC up to 2.95.x, collect2 would create an import file
9096 # for dependence libraries. The import file would start with
9097 # the line `#! .'. This would cause the generated library to
9098 # depend on `.', always an invalid library. This was fixed in
9099 # development snapshots of GCC prior to 3.0.
9101 aix4 | aix4.[01] | aix4.[01].*)
9102 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9104 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9111 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9112 # soname into executable. Probably we can add versioning support to
9113 # collect2, so additional links can be useful in future.
9114 if test "$aix_use_runtimelinking" = yes; then
9115 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9116 # instead of lib<name>.a to let people know that these are not
9117 # typical AIX shared libraries.
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 # We preserve .a as extension for shared libraries through AIX4.2
9121 # and later when we are not doing run time linking.
9122 library_names_spec='${libname}${release}.a $libname.a'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9125 shlibpath_var=LIBPATH
9130 library_names_spec='$libname.ixlibrary $libname.a'
9131 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9132 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'
9136 library_names_spec='${libname}${shared_ext}'
9137 dynamic_linker="$host_os ld.so"
9138 shlibpath_var=LIBRARY_PATH
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9147 shlibpath_var=LD_LIBRARY_PATH
9148 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9149 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9150 # the default ld.so.conf also contains /usr/contrib/lib and
9151 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9152 # libtool to hard-code these into programs
9155 cygwin* | mingw* | pw32*)
9156 version_type=windows
9161 case $GCC,$host_os in
9162 yes,cygwin* | yes,mingw* | yes,pw32*)
9163 library_names_spec='$libname.dll.a'
9164 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9165 postinstall_cmds='base_file=`basename \${file}`~
9166 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9167 dldir=$destdir/`dirname \$dlpath`~
9168 test -d \$dldir || mkdir -p \$dldir~
9169 $install_prog $dir/$dlname \$dldir/$dlname~
9170 chmod a+x \$dldir/$dlname'
9171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9172 dlpath=$dir/\$dldll~
9174 shlibpath_overrides_runpath=yes
9178 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9179 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9180 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9183 # MinGW DLLs use traditional 'lib' prefix
9184 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9185 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9186 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9187 # It is most probably a Windows format PATH printed by
9188 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9189 # path with ; separators, and with drive letters. We can handle the
9190 # drive letters (cygwin fileutils understands them), so leave them,
9191 # especially as we might pass files found there to a mingw objdump,
9192 # which wouldn't understand a cygwinified path. Ahh.
9193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9199 # pw32 DLLs use 'pw' prefix rather than 'lib'
9200 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9206 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9209 dynamic_linker='Win32 ld.exe'
9210 # FIXME: first we should search . and the directory the executable is in
9214 darwin* | rhapsody*)
9215 dynamic_linker="$host_os dyld"
9219 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9220 soname_spec='${libname}${release}${major}$shared_ext'
9221 shlibpath_overrides_runpath=yes
9222 shlibpath_var=DYLD_LIBRARY_PATH
9223 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9224 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9225 if test "$GCC" = yes; then
9226 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"`
9228 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9230 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9239 shlibpath_var=LD_LIBRARY_PATH
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9251 soname_spec='${libname}${release}${shared_ext}$major'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 shlibpath_overrides_runpath=no
9254 hardcode_into_libs=yes
9255 dynamic_linker='GNU ld.so'
9258 freebsd* | dragonfly*)
9259 # DragonFly does not have aout. When/if they implement a new
9260 # versioning mechanism, adjust this.
9261 if test -x /usr/bin/objformat; then
9262 objformat=`/usr/bin/objformat`
9265 freebsd[123]*) objformat=aout ;;
9269 version_type=freebsd-$objformat
9270 case $version_type in
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9277 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9281 shlibpath_var=LD_LIBRARY_PATH
9284 shlibpath_overrides_runpath=yes
9286 freebsd3.[01]* | freebsdelf3.[01]*)
9287 shlibpath_overrides_runpath=yes
9288 hardcode_into_libs=yes
9291 shlibpath_overrides_runpath=no
9292 hardcode_into_libs=yes
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9302 soname_spec='${libname}${release}${shared_ext}$major'
9303 shlibpath_var=LD_LIBRARY_PATH
9304 hardcode_into_libs=yes
9307 hpux9* | hpux10* | hpux11*)
9308 # Give a soname corresponding to the major version so that dld.sl refuses to
9309 # link against other versions.
9316 hardcode_into_libs=yes
9317 dynamic_linker="$host_os dld.so"
9318 shlibpath_var=LD_LIBRARY_PATH
9319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
9322 if test "X$HPUX_IA64_MODE" = X32; then
9323 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9325 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9331 hardcode_into_libs=yes
9332 dynamic_linker="$host_os dld.sl"
9333 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9336 soname_spec='${libname}${release}${shared_ext}$major'
9337 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9342 dynamic_linker="$host_os dld.sl"
9343 shlibpath_var=SHLIB_PATH
9344 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9349 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9350 postinstall_cmds='chmod 555 $lib'
9353 irix5* | irix6* | nonstopux*)
9355 nonstopux*) version_type=nonstopux ;;
9357 if test "$lt_cv_prog_gnu_ld" = yes; then
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9368 irix5* | nonstopux*)
9372 case $LD in # libtool.m4 will add one of these switches to LD
9373 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9374 libsuff= shlibsuff= libmagic=32-bit;;
9375 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9376 libsuff=32 shlibsuff=N32 libmagic=N32;;
9377 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9378 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9379 *) libsuff= shlibsuff= libmagic=never-match;;
9383 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9384 shlibpath_overrides_runpath=no
9385 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9386 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9387 hardcode_into_libs=yes
9390 # No shared lib support for Linux oldld, aout, or coff.
9391 linux*oldld* | linux*aout* | linux*coff*)
9395 # This must be Linux ELF.
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9401 soname_spec='${libname}${release}${shared_ext}$major'
9402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 shlibpath_overrides_runpath=no
9405 # This implies no fast_install, which is unacceptable.
9406 # Some rework will be needed to allow for fast_install
9407 # before this can be enabled.
9408 hardcode_into_libs=yes
9410 # Append ld.so.conf contents to the search path
9411 if test -f /etc/ld.so.conf; then
9412 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' ' '`
9413 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9416 # We used to test for /lib/ld.so.1 and disable shared libraries on
9417 # powerpc, because MkLinux only supported shared libraries with the
9418 # GNU dynamic linker. Since this was broken with cross compilers,
9419 # most powerpc-linux boxes support dynamic linking these days and
9420 # people can always --disable-shared, the test was removed, and we
9421 # assume the GNU/Linux dynamic linker is in use.
9422 dynamic_linker='GNU/Linux ld.so'
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=no
9433 hardcode_into_libs=yes
9434 dynamic_linker='GNU ld.so'
9441 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9444 dynamic_linker='NetBSD (a.out) ld.so'
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9447 soname_spec='${libname}${release}${shared_ext}$major'
9448 dynamic_linker='NetBSD ld.elf_so'
9450 shlibpath_var=LD_LIBRARY_PATH
9451 shlibpath_overrides_runpath=yes
9452 hardcode_into_libs=yes
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath=yes
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 shlibpath_var=LD_LIBRARY_PATH
9469 shlibpath_overrides_runpath=yes
9475 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9477 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9478 *) need_version=no ;;
9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9482 shlibpath_var=LD_LIBRARY_PATH
9483 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9485 openbsd2.[89] | openbsd2.[89].*)
9486 shlibpath_overrides_runpath=no
9489 shlibpath_overrides_runpath=yes
9493 shlibpath_overrides_runpath=yes
9498 libname_spec='$name'
9501 library_names_spec='$libname${shared_ext} $libname.a'
9502 dynamic_linker='OS/2 ld.exe'
9503 shlibpath_var=LIBPATH
9506 osf3* | osf4* | osf5*)
9510 soname_spec='${libname}${release}${shared_ext}$major'
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9512 shlibpath_var=LD_LIBRARY_PATH
9513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9519 soname_spec='${libname}${release}${shared_ext}$major'
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521 shlibpath_var=LD_LIBRARY_PATH
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529 soname_spec='${libname}${release}${shared_ext}$major'
9530 shlibpath_var=LD_LIBRARY_PATH
9531 shlibpath_overrides_runpath=yes
9532 hardcode_into_libs=yes
9533 # ldd complains unless libraries are executable
9534 postinstall_cmds='chmod +x $lib'
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9540 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9541 shlibpath_var=LD_LIBRARY_PATH
9542 shlibpath_overrides_runpath=yes
9543 if test "$with_gnu_ld" = yes; then
9549 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 soname_spec='${libname}${release}${shared_ext}$major'
9553 shlibpath_var=LD_LIBRARY_PATH
9554 case $host_vendor in
9556 shlibpath_overrides_runpath=no
9558 export_dynamic_flag_spec='${wl}-Blargedynsym'
9559 runpath_var=LD_RUN_PATH
9567 shlibpath_overrides_runpath=no
9568 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9574 if test -d /usr/nec ;then
9576 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9577 soname_spec='$libname${shared_ext}.$major'
9578 shlibpath_var=LD_LIBRARY_PATH
9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585 soname_spec='${libname}${release}${shared_ext}$major'
9586 shlibpath_var=LD_LIBRARY_PATH
9593 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9594 echo "${ECHO_T}$dynamic_linker" >&6
9595 test "$dynamic_linker" = no && can_build_shared=no
9597 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9598 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9600 if test -n "$hardcode_libdir_flag_spec" || \
9601 test -n "$runpath_var" || \
9602 test "X$hardcode_automatic" = "Xyes" ; then
9604 # We can hardcode non-existant directories.
9605 if test "$hardcode_direct" != no &&
9606 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9607 # have to relink, otherwise we might link with an installed library
9608 # when we should be linking with a yet-to-be-installed one
9609 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9610 test "$hardcode_minus_L" != no; then
9611 # Linking always hardcodes the temporary library directory.
9612 hardcode_action=relink
9614 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9615 hardcode_action=immediate
9618 # We cannot hardcode anything, or else we can only hardcode existing
9620 hardcode_action=unsupported
9622 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9623 echo "${ECHO_T}$hardcode_action" >&6
9625 if test "$hardcode_action" = relink; then
9626 # Fast installation is not supported
9627 enable_fast_install=no
9628 elif test "$shlibpath_overrides_runpath" = yes ||
9629 test "$enable_shared" = no; then
9630 # Fast installation is not necessary
9631 enable_fast_install=needless
9636 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9637 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9638 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9641 echo "$as_me:$LINENO: result: yes" >&5
9642 echo "${ECHO_T}yes" >&6
9644 # FIXME - insert some real tests, host_os isn't really good enough
9647 if test -n "$STRIP" ; then
9648 striplib="$STRIP -x"
9649 echo "$as_me:$LINENO: result: yes" >&5
9650 echo "${ECHO_T}yes" >&6
9652 echo "$as_me:$LINENO: result: no" >&5
9653 echo "${ECHO_T}no" >&6
9657 echo "$as_me:$LINENO: result: no" >&5
9658 echo "${ECHO_T}no" >&6
9663 if test "x$enable_dlopen" != xyes; then
9664 enable_dlopen=unknown
9665 enable_dlopen_self=unknown
9666 enable_dlopen_self_static=unknown
9673 lt_cv_dlopen="load_add_on"
9675 lt_cv_dlopen_self=yes
9679 lt_cv_dlopen="LoadLibrary"
9684 lt_cv_dlopen="dlopen"
9689 # if libdl is installed we need to link against it
9690 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9691 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9692 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 ac_check_lib_save_LIBS=$LIBS
9697 cat >conftest.$ac_ext <<_ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9704 /* Override any gcc2 internal prototype to avoid an error. */
9708 /* We use char because int might match the return type of a gcc2
9709 builtin and then its argument prototype would still apply. */
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9721 (eval $ac_link) 2>conftest.er1
9723 grep -v '^ *+' conftest.er1 >conftest.err
9725 cat conftest.err >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } &&
9728 { ac_try='test -z "$ac_c_werror_flag"
9729 || test ! -s conftest.err'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; } &&
9735 { ac_try='test -s conftest$ac_exeext'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; }; then
9741 ac_cv_lib_dl_dlopen=yes
9743 echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9746 ac_cv_lib_dl_dlopen=no
9748 rm -f conftest.err conftest.$ac_objext \
9749 conftest$ac_exeext conftest.$ac_ext
9750 LIBS=$ac_check_lib_save_LIBS
9752 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9753 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9754 if test $ac_cv_lib_dl_dlopen = yes; then
9755 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9760 lt_cv_dlopen_self=yes
9767 echo "$as_me:$LINENO: checking for shl_load" >&5
9768 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9769 if test "${ac_cv_func_shl_load+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 cat >conftest.$ac_ext <<_ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9778 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9780 #define shl_load innocuous_shl_load
9782 /* System header to define __stub macros and hopefully few prototypes,
9783 which can conflict with char shl_load (); below.
9784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9785 <limits.h> exists even on freestanding compilers. */
9788 # include <limits.h>
9790 # include <assert.h>
9795 /* Override any gcc2 internal prototype to avoid an error. */
9800 /* We use char because int might match the return type of a gcc2
9801 builtin and then its argument prototype would still apply. */
9803 /* The GNU C library defines this for functions which it implements
9804 to always fail with ENOSYS. Some functions are actually named
9805 something starting with __ and the normal name is an alias. */
9806 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9809 char (*f) () = shl_load;
9818 return f != shl_load;
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825 (eval $ac_link) 2>conftest.er1
9827 grep -v '^ *+' conftest.er1 >conftest.err
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -z "$ac_c_werror_flag"
9833 || test ! -s conftest.err'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; } &&
9839 { ac_try='test -s conftest$ac_exeext'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 ac_cv_func_shl_load=yes
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_cv_func_shl_load=no
9852 rm -f conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9855 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9856 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9857 if test $ac_cv_func_shl_load = yes; then
9858 lt_cv_dlopen="shl_load"
9860 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9861 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9862 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 ac_check_lib_save_LIBS=$LIBS
9867 cat >conftest.$ac_ext <<_ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9874 /* Override any gcc2 internal prototype to avoid an error. */
9878 /* We use char because int might match the return type of a gcc2
9879 builtin and then its argument prototype would still apply. */
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>conftest.er1
9893 grep -v '^ *+' conftest.er1 >conftest.err
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -z "$ac_c_werror_flag"
9899 || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 ac_cv_lib_dld_shl_load=yes
9913 echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9916 ac_cv_lib_dld_shl_load=no
9918 rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920 LIBS=$ac_check_lib_save_LIBS
9922 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9923 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9924 if test $ac_cv_lib_dld_shl_load = yes; then
9925 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9927 echo "$as_me:$LINENO: checking for dlopen" >&5
9928 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9929 if test "${ac_cv_func_dlopen+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 cat >conftest.$ac_ext <<_ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9940 #define dlopen innocuous_dlopen
9942 /* System header to define __stub macros and hopefully few prototypes,
9943 which can conflict with char dlopen (); below.
9944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9945 <limits.h> exists even on freestanding compilers. */
9948 # include <limits.h>
9950 # include <assert.h>
9955 /* Override any gcc2 internal prototype to avoid an error. */
9960 /* We use char because int might match the return type of a gcc2
9961 builtin and then its argument prototype would still apply. */
9963 /* The GNU C library defines this for functions which it implements
9964 to always fail with ENOSYS. Some functions are actually named
9965 something starting with __ and the normal name is an alias. */
9966 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9969 char (*f) () = dlopen;
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985 (eval $ac_link) 2>conftest.er1
9987 grep -v '^ *+' conftest.er1 >conftest.err
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
9992 { ac_try='test -z "$ac_c_werror_flag"
9993 || test ! -s conftest.err'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; } &&
9999 { ac_try='test -s conftest$ac_exeext'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10005 ac_cv_func_dlopen=yes
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 ac_cv_func_dlopen=no
10012 rm -f conftest.err conftest.$ac_objext \
10013 conftest$ac_exeext conftest.$ac_ext
10015 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10016 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10017 if test $ac_cv_func_dlopen = yes; then
10018 lt_cv_dlopen="dlopen"
10020 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10021 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10022 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 ac_check_lib_save_LIBS=$LIBS
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10034 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051 (eval $ac_link) 2>conftest.er1
10053 grep -v '^ *+' conftest.er1 >conftest.err
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag"
10059 || test ! -s conftest.err'
10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; } &&
10065 { ac_try='test -s conftest$ac_exeext'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071 ac_cv_lib_dl_dlopen=yes
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 ac_cv_lib_dl_dlopen=no
10078 rm -f conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 LIBS=$ac_check_lib_save_LIBS
10082 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10083 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10084 if test $ac_cv_lib_dl_dlopen = yes; then
10085 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10087 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10088 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10089 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 ac_check_lib_save_LIBS=$LIBS
10093 LIBS="-lsvld $LIBS"
10094 cat >conftest.$ac_ext <<_ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10101 /* Override any gcc2 internal prototype to avoid an error. */
10105 /* We use char because int might match the return type of a gcc2
10106 builtin and then its argument prototype would still apply. */
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118 (eval $ac_link) 2>conftest.er1
10120 grep -v '^ *+' conftest.er1 >conftest.err
10122 cat conftest.err >&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } &&
10125 { ac_try='test -z "$ac_c_werror_flag"
10126 || test ! -s conftest.err'
10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; } &&
10132 { ac_try='test -s conftest$ac_exeext'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; }; then
10138 ac_cv_lib_svld_dlopen=yes
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10143 ac_cv_lib_svld_dlopen=no
10145 rm -f conftest.err conftest.$ac_objext \
10146 conftest$ac_exeext conftest.$ac_ext
10147 LIBS=$ac_check_lib_save_LIBS
10149 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10150 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10151 if test $ac_cv_lib_svld_dlopen = yes; then
10152 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10154 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10155 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10156 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 ac_check_lib_save_LIBS=$LIBS
10161 cat >conftest.$ac_ext <<_ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10168 /* Override any gcc2 internal prototype to avoid an error. */
10172 /* We use char because int might match the return type of a gcc2
10173 builtin and then its argument prototype would still apply. */
10183 rm -f conftest.$ac_objext conftest$ac_exeext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10185 (eval $ac_link) 2>conftest.er1
10187 grep -v '^ *+' conftest.er1 >conftest.err
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_c_werror_flag"
10193 || test ! -s conftest.err'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; } &&
10199 { ac_try='test -s conftest$ac_exeext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_cv_lib_dld_dld_link=yes
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ac_cv_lib_dld_dld_link=no
10212 rm -f conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10216 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10217 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10218 if test $ac_cv_lib_dld_dld_link = yes; then
10219 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10240 if test "x$lt_cv_dlopen" != xno; then
10246 case $lt_cv_dlopen in
10248 save_CPPFLAGS="$CPPFLAGS"
10249 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10251 save_LDFLAGS="$LDFLAGS"
10252 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10255 LIBS="$lt_cv_dlopen_libs $LIBS"
10257 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10258 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10259 if test "${lt_cv_dlopen_self+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 if test "$cross_compiling" = yes; then :
10263 lt_cv_dlopen_self=cross
10265 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10266 lt_status=$lt_dlunknown
10267 cat > conftest.$ac_ext <<EOF
10268 #line 10268 "configure"
10269 #include "confdefs.h"
10278 # define LT_DLGLOBAL RTLD_GLOBAL
10281 # define LT_DLGLOBAL DL_GLOBAL
10283 # define LT_DLGLOBAL 0
10287 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10288 find out it does not work in some platform. */
10289 #ifndef LT_DLLAZY_OR_NOW
10291 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10294 # define LT_DLLAZY_OR_NOW DL_LAZY
10297 # define LT_DLLAZY_OR_NOW RTLD_NOW
10300 # define LT_DLLAZY_OR_NOW DL_NOW
10302 # define LT_DLLAZY_OR_NOW 0
10310 extern "C" void exit (int);
10313 void fnord() { int i=42;}
10316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10317 int status = $lt_dlunknown;
10321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10322 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10323 /* dlclose (self); */
10329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10330 (eval $ac_link) 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10334 (./conftest; exit; ) >&5 2>/dev/null
10336 case x$lt_status in
10337 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10338 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10339 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10342 # compilation failed
10343 lt_cv_dlopen_self=no
10350 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10351 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10353 if test "x$lt_cv_dlopen_self" = xyes; then
10354 LDFLAGS="$LDFLAGS $link_static_flag"
10355 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10356 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10357 if test "${lt_cv_dlopen_self_static+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 if test "$cross_compiling" = yes; then :
10361 lt_cv_dlopen_self_static=cross
10363 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10364 lt_status=$lt_dlunknown
10365 cat > conftest.$ac_ext <<EOF
10366 #line 10366 "configure"
10367 #include "confdefs.h"
10376 # define LT_DLGLOBAL RTLD_GLOBAL
10379 # define LT_DLGLOBAL DL_GLOBAL
10381 # define LT_DLGLOBAL 0
10385 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10386 find out it does not work in some platform. */
10387 #ifndef LT_DLLAZY_OR_NOW
10389 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10392 # define LT_DLLAZY_OR_NOW DL_LAZY
10395 # define LT_DLLAZY_OR_NOW RTLD_NOW
10398 # define LT_DLLAZY_OR_NOW DL_NOW
10400 # define LT_DLLAZY_OR_NOW 0
10408 extern "C" void exit (int);
10411 void fnord() { int i=42;}
10414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10415 int status = $lt_dlunknown;
10419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10420 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10421 /* dlclose (self); */
10427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428 (eval $ac_link) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10432 (./conftest; exit; ) >&5 2>/dev/null
10434 case x$lt_status in
10435 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10436 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10437 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10440 # compilation failed
10441 lt_cv_dlopen_self_static=no
10448 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10449 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10452 CPPFLAGS="$save_CPPFLAGS"
10453 LDFLAGS="$save_LDFLAGS"
10458 case $lt_cv_dlopen_self in
10459 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10460 *) enable_dlopen_self=unknown ;;
10463 case $lt_cv_dlopen_self_static in
10464 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10465 *) enable_dlopen_self_static=unknown ;;
10470 # Report which librarie types wil actually be built
10471 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10472 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10473 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10474 echo "${ECHO_T}$can_build_shared" >&6
10476 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10477 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10478 test "$can_build_shared" = "no" && enable_shared=no
10480 # On AIX, shared libraries and static libraries use the same namespace, and
10481 # are all built from PIC.
10484 test "$enable_shared" = yes && enable_static=no
10485 if test -n "$RANLIB"; then
10486 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10487 postinstall_cmds='$RANLIB $lib'
10492 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10493 test "$enable_shared" = yes && enable_static=no
10497 echo "$as_me:$LINENO: result: $enable_shared" >&5
10498 echo "${ECHO_T}$enable_shared" >&6
10500 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10501 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10502 # Make sure either enable_shared or enable_static is yes.
10503 test "$enable_shared" = yes || enable_static=yes
10504 echo "$as_me:$LINENO: result: $enable_static" >&5
10505 echo "${ECHO_T}$enable_static" >&6
10507 # The else clause should only fire when bootstrapping the
10508 # libtool distribution, otherwise you forgot to ship ltmain.sh
10509 # with your package, and you will get complaints that there are
10510 # no rules to generate ltmain.sh.
10511 if test -f "$ltmain"; then
10512 # See if we are running on zsh, and set the options which allow our commands through
10513 # without removal of \ escapes.
10514 if test -n "${ZSH_VERSION+set}" ; then
10515 setopt NO_GLOB_SUBST
10517 # Now quote all the things that may contain metacharacters while being
10518 # careful not to overquote the AC_SUBSTed values. We take copies of the
10519 # variables and quote the copies for generation of the libtool script.
10520 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10522 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10523 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10524 deplibs_check_method reload_flag reload_cmds need_locks \
10525 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10526 lt_cv_sys_global_symbol_to_c_name_address \
10527 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10528 old_postinstall_cmds old_postuninstall_cmds \
10532 lt_prog_compiler_wl \
10533 lt_prog_compiler_pic \
10534 lt_prog_compiler_static \
10535 lt_prog_compiler_no_builtin_flag \
10536 export_dynamic_flag_spec \
10537 thread_safe_flag_spec \
10538 whole_archive_flag_spec \
10539 enable_shared_with_static_runtimes \
10541 old_archive_from_new_cmds \
10546 compiler_lib_search_path \
10548 archive_expsym_cmds \
10550 postuninstall_cmds \
10551 old_archive_from_expsyms_cmds \
10552 allow_undefined_flag \
10553 no_undefined_flag \
10554 export_symbols_cmds \
10555 hardcode_libdir_flag_spec \
10556 hardcode_libdir_flag_spec_ld \
10557 hardcode_libdir_separator \
10558 hardcode_automatic \
10560 module_expsym_cmds \
10561 lt_cv_prog_compiler_c_o \
10563 include_expsyms; do
10566 old_archive_cmds | \
10567 old_archive_from_new_cmds | \
10569 archive_expsym_cmds | \
10571 module_expsym_cmds | \
10572 old_archive_from_expsyms_cmds | \
10573 export_symbols_cmds | \
10574 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10575 postinstall_cmds | postuninstall_cmds | \
10576 old_postinstall_cmds | old_postuninstall_cmds | \
10577 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10578 # Double-quote double-evaled strings.
10579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10588 *'\$0 --fallback-echo"')
10589 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10593 cfgfile="${ofile}T"
10594 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10596 { echo "$as_me:$LINENO: creating $ofile" >&5
10597 echo "$as_me: creating $ofile" >&6;}
10599 cat <<__EOF__ >> "$cfgfile"
10602 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10603 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10604 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10606 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10607 # Free Software Foundation, Inc.
10609 # This file is part of GNU Libtool:
10610 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10612 # This program is free software; you can redistribute it and/or modify
10613 # it under the terms of the GNU General Public License as published by
10614 # the Free Software Foundation; either version 2 of the License, or
10615 # (at your option) any later version.
10617 # This program is distributed in the hope that it will be useful, but
10618 # WITHOUT ANY WARRANTY; without even the implied warranty of
10619 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10620 # General Public License for more details.
10622 # You should have received a copy of the GNU General Public License
10623 # along with this program; if not, write to the Free Software
10624 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10626 # As a special exception to the GNU General Public License, if you
10627 # distribute this file as part of a program that contains a
10628 # configuration script generated by Autoconf, you may include it under
10629 # the same distribution terms that you use for the rest of that program.
10631 # A sed program that does not truncate output.
10634 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10635 Xsed="$SED -e 1s/^X//"
10637 # The HP-UX ksh and POSIX shell print the target directory to stdout
10638 # if CDPATH is set.
10639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10641 # The names of the tagged configurations supported by this script.
10644 # ### BEGIN LIBTOOL CONFIG
10646 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10648 # Shell to use when invoking shell scripts.
10651 # Whether or not to build shared libraries.
10652 build_libtool_libs=$enable_shared
10654 # Whether or not to build static libraries.
10655 build_old_libs=$enable_static
10657 # Whether or not to add -lc for building shared libraries.
10658 build_libtool_need_lc=$archive_cmds_need_lc
10660 # Whether or not to disallow shared libs when runtime libs are static
10661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10663 # Whether or not to optimize for fast installation.
10664 fast_install=$enable_fast_install
10667 host_alias=$host_alias
10671 # The build system.
10672 build_alias=$build_alias
10676 # An echo program that does not interpret backslashes.
10681 AR_FLAGS=$lt_AR_FLAGS
10686 # A language-specific compiler.
10689 # Is the compiler the GNU C compiler?
10695 # The linker used to build libraries.
10698 # Whether we need hard or soft links.
10701 # A BSD-compatible nm program.
10704 # A symbol stripping program
10707 # Used to examine libraries when file_magic_cmd begins "file"
10708 MAGIC_CMD=$MAGIC_CMD
10710 # Used on cygwin: DLL creation program.
10713 # Used on cygwin: object dumper.
10716 # Used on cygwin: assembler.
10719 # The name of the directory that contains temporary libtool files.
10722 # How to create reloadable object files.
10723 reload_flag=$lt_reload_flag
10724 reload_cmds=$lt_reload_cmds
10726 # How to pass a linker flag through the compiler.
10727 wl=$lt_lt_prog_compiler_wl
10729 # Object file suffix (normally "o").
10730 objext="$ac_objext"
10732 # Old archive suffix (normally "a").
10735 # Shared library suffix (normally ".so").
10736 shrext_cmds='$shrext_cmds'
10738 # Executable file suffix (normally "").
10741 # Additional compiler flags for building library objects.
10742 pic_flag=$lt_lt_prog_compiler_pic
10745 # What is the maximum length of a command?
10746 max_cmd_len=$lt_cv_sys_max_cmd_len
10748 # Does compiler simultaneously support -c and -o options?
10749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10751 # Must we lock files when doing compilation?
10752 need_locks=$lt_need_locks
10754 # Do we need the lib prefix for modules?
10755 need_lib_prefix=$need_lib_prefix
10757 # Do we need a version for libraries?
10758 need_version=$need_version
10760 # Whether dlopen is supported.
10761 dlopen_support=$enable_dlopen
10763 # Whether dlopen of programs is supported.
10764 dlopen_self=$enable_dlopen_self
10766 # Whether dlopen of statically linked programs is supported.
10767 dlopen_self_static=$enable_dlopen_self_static
10769 # Compiler flag to prevent dynamic linking.
10770 link_static_flag=$lt_lt_prog_compiler_static
10772 # Compiler flag to turn off builtin functions.
10773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10775 # Compiler flag to allow reflexive dlopens.
10776 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10778 # Compiler flag to generate shared objects directly from archives.
10779 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10781 # Compiler flag to generate thread-safe objects.
10782 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10784 # Library versioning type.
10785 version_type=$version_type
10787 # Format of library name prefix.
10788 libname_spec=$lt_libname_spec
10790 # List of archive names. First name is the real one, the rest are links.
10791 # The last name is the one that the linker finds with -lNAME.
10792 library_names_spec=$lt_library_names_spec
10794 # The coded name of the library, if different from the real name.
10795 soname_spec=$lt_soname_spec
10797 # Commands used to build and install an old-style archive.
10799 old_archive_cmds=$lt_old_archive_cmds
10800 old_postinstall_cmds=$lt_old_postinstall_cmds
10801 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10803 # Create an old-style archive from a shared archive.
10804 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10806 # Create a temporary old-style archive to link instead of a shared archive.
10807 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10809 # Commands used to build and install a shared archive.
10810 archive_cmds=$lt_archive_cmds
10811 archive_expsym_cmds=$lt_archive_expsym_cmds
10812 postinstall_cmds=$lt_postinstall_cmds
10813 postuninstall_cmds=$lt_postuninstall_cmds
10815 # Commands used to build a loadable module (assumed same as above if empty)
10816 module_cmds=$lt_module_cmds
10817 module_expsym_cmds=$lt_module_expsym_cmds
10819 # Commands to strip libraries.
10820 old_striplib=$lt_old_striplib
10821 striplib=$lt_striplib
10823 # Dependencies to place before the objects being linked to create a
10825 predep_objects=$lt_predep_objects
10827 # Dependencies to place after the objects being linked to create a
10829 postdep_objects=$lt_postdep_objects
10831 # Dependencies to place before the objects being linked to create a
10833 predeps=$lt_predeps
10835 # Dependencies to place after the objects being linked to create a
10837 postdeps=$lt_postdeps
10839 # The library search path used internally by the compiler when linking
10840 # a shared library.
10841 compiler_lib_search_path=$lt_compiler_lib_search_path
10843 # Method to check whether dependent libraries are shared objects.
10844 deplibs_check_method=$lt_deplibs_check_method
10846 # Command to use when deplibs_check_method == file_magic.
10847 file_magic_cmd=$lt_file_magic_cmd
10849 # Flag that allows shared libraries with undefined symbols to be built.
10850 allow_undefined_flag=$lt_allow_undefined_flag
10852 # Flag that forces no undefined symbols.
10853 no_undefined_flag=$lt_no_undefined_flag
10855 # Commands used to finish a libtool library installation in a directory.
10856 finish_cmds=$lt_finish_cmds
10858 # Same as above, but a single script fragment to be evaled but not shown.
10859 finish_eval=$lt_finish_eval
10861 # Take the output of nm and produce a listing of raw symbols and C names.
10862 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10864 # Transform the output of nm in a proper C declaration
10865 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10867 # Transform the output of nm in a C name address pair
10868 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10870 # This is the shared library runtime path variable.
10871 runpath_var=$runpath_var
10873 # This is the shared library path variable.
10874 shlibpath_var=$shlibpath_var
10876 # Is shlibpath searched before the hard-coded library search path?
10877 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10879 # How to hardcode a shared library path into an executable.
10880 hardcode_action=$hardcode_action
10882 # Whether we should hardcode library paths into libraries.
10883 hardcode_into_libs=$hardcode_into_libs
10885 # Flag to hardcode \$libdir into a binary during linking.
10886 # This must work even if \$libdir does not exist.
10887 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10889 # If ld is used when linking, flag to hardcode \$libdir into
10890 # a binary during linking. This must work even if \$libdir does
10892 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10894 # Whether we need a single -rpath flag with a separated argument.
10895 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10897 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10898 # resulting binary.
10899 hardcode_direct=$hardcode_direct
10901 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10902 # resulting binary.
10903 hardcode_minus_L=$hardcode_minus_L
10905 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10906 # the resulting binary.
10907 hardcode_shlibpath_var=$hardcode_shlibpath_var
10909 # Set to yes if building a shared library automatically hardcodes DIR into the library
10910 # and all subsequent libraries and executables linked against it.
10911 hardcode_automatic=$hardcode_automatic
10913 # Variables whose values should be saved in libtool wrapper scripts and
10914 # restored at relink time.
10915 variables_saved_for_relink="$variables_saved_for_relink"
10917 # Whether libtool must link a program against all its dependency libraries.
10918 link_all_deplibs=$link_all_deplibs
10920 # Compile-time system search path for libraries
10921 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10923 # Run-time system search path for libraries
10924 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10926 # Fix the shell variable \$srcfile for the compiler.
10927 fix_srcfile_path="$fix_srcfile_path"
10929 # Set to yes if exported symbols are required.
10930 always_export_symbols=$always_export_symbols
10932 # The commands to list exported symbols.
10933 export_symbols_cmds=$lt_export_symbols_cmds
10935 # The commands to extract the exported symbol list from a shared archive.
10936 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10938 # Symbols that should not be listed in the preloaded symbols.
10939 exclude_expsyms=$lt_exclude_expsyms
10941 # Symbols that must always be exported.
10942 include_expsyms=$lt_include_expsyms
10944 # ### END LIBTOOL CONFIG
10951 cat <<\EOF >> "$cfgfile"
10953 # AIX sometimes has problems with the GCC collect2 program. For some
10954 # reason, if we set the COLLECT_NAMES environment variable, the problems
10955 # vanish in a puff of smoke.
10956 if test "X${COLLECT_NAMES+set}" != Xset; then
10958 export COLLECT_NAMES
10964 # We use sed instead of cat because bash on DJGPP gets confused if
10965 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10966 # text mode, it properly converts lines to CR/LF. This bash problem
10967 # is reportedly fixed, but why not run on old versions too?
10968 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10970 mv -f "$cfgfile" "$ofile" || \
10971 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10975 # If there is no Makefile yet, we rely on a make rule to execute
10976 # `config.status --recheck' to rerun these tests and create the
10977 # libtool script then.
10978 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10979 if test -f "$ltmain_in"; then
10980 test -f Makefile && make "$ltmain"
10986 ac_cpp='$CPP $CPPFLAGS'
10987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10994 # Check whether --with-tags or --without-tags was given.
10995 if test "${with_tags+set}" = set; then
10996 withval="$with_tags"
10997 tagnames="$withval"
11000 if test -f "$ltmain" && test -n "$tagnames"; then
11001 if test ! -f "${ofile}"; then
11002 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11003 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11006 if test -z "$LTCC"; then
11007 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11008 if test -z "$LTCC"; then
11009 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11010 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11012 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11013 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11017 # Extract list of available tagged configurations in $ofile.
11018 # Note that this assumes the entire list is on one line.
11019 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11022 for tagname in $tagnames; do
11024 # Check whether tagname contains only valid characters
11025 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11027 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11028 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11029 { (exit 1); exit 1; }; }
11033 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11035 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11036 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11037 { (exit 1); exit 1; }; }
11040 # Update the list of available tags.
11041 if test -n "$tagname"; then
11042 echo appending configuration tag \"$tagname\" to $ofile
11046 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11047 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11048 (test "X$CXX" != "Xg++"))) ; then
11056 if test -n "$F77" && test "X$F77" != "Xno"; then
11064 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11075 # Source file extension for RC test sources.
11078 # Object file extension for compiled RC test sources.
11082 # Code to be used in simple compile tests
11083 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11085 # Code to be used in simple link tests
11086 lt_simple_link_test_code="$lt_simple_compile_test_code"
11088 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11090 # If no C compiler was specified, use CC.
11093 # Allow CC to be a program name with arguments.
11097 # save warnings/boilerplate of simple test code
11098 ac_outfile=conftest.$ac_objext
11099 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11100 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11101 _lt_compiler_boilerplate=`cat conftest.err`
11104 ac_outfile=conftest.$ac_objext
11105 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11106 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11107 _lt_linker_boilerplate=`cat conftest.err`
11111 # Allow CC to be a program name with arguments.
11116 for cc_temp in $compiler""; do
11118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11124 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11126 lt_cv_prog_compiler_c_o_RC=yes
11128 # The else clause should only fire when bootstrapping the
11129 # libtool distribution, otherwise you forgot to ship ltmain.sh
11130 # with your package, and you will get complaints that there are
11131 # no rules to generate ltmain.sh.
11132 if test -f "$ltmain"; then
11133 # See if we are running on zsh, and set the options which allow our commands through
11134 # without removal of \ escapes.
11135 if test -n "${ZSH_VERSION+set}" ; then
11136 setopt NO_GLOB_SUBST
11138 # Now quote all the things that may contain metacharacters while being
11139 # careful not to overquote the AC_SUBSTed values. We take copies of the
11140 # variables and quote the copies for generation of the libtool script.
11141 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11143 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11144 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11145 deplibs_check_method reload_flag reload_cmds need_locks \
11146 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11147 lt_cv_sys_global_symbol_to_c_name_address \
11148 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11149 old_postinstall_cmds old_postuninstall_cmds \
11153 lt_prog_compiler_wl_RC \
11154 lt_prog_compiler_pic_RC \
11155 lt_prog_compiler_static_RC \
11156 lt_prog_compiler_no_builtin_flag_RC \
11157 export_dynamic_flag_spec_RC \
11158 thread_safe_flag_spec_RC \
11159 whole_archive_flag_spec_RC \
11160 enable_shared_with_static_runtimes_RC \
11161 old_archive_cmds_RC \
11162 old_archive_from_new_cmds_RC \
11163 predep_objects_RC \
11164 postdep_objects_RC \
11167 compiler_lib_search_path_RC \
11169 archive_expsym_cmds_RC \
11170 postinstall_cmds_RC \
11171 postuninstall_cmds_RC \
11172 old_archive_from_expsyms_cmds_RC \
11173 allow_undefined_flag_RC \
11174 no_undefined_flag_RC \
11175 export_symbols_cmds_RC \
11176 hardcode_libdir_flag_spec_RC \
11177 hardcode_libdir_flag_spec_ld_RC \
11178 hardcode_libdir_separator_RC \
11179 hardcode_automatic_RC \
11181 module_expsym_cmds_RC \
11182 lt_cv_prog_compiler_c_o_RC \
11183 exclude_expsyms_RC \
11184 include_expsyms_RC; do
11187 old_archive_cmds_RC | \
11188 old_archive_from_new_cmds_RC | \
11189 archive_cmds_RC | \
11190 archive_expsym_cmds_RC | \
11192 module_expsym_cmds_RC | \
11193 old_archive_from_expsyms_cmds_RC | \
11194 export_symbols_cmds_RC | \
11195 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11196 postinstall_cmds | postuninstall_cmds | \
11197 old_postinstall_cmds | old_postuninstall_cmds | \
11198 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11199 # Double-quote double-evaled strings.
11200 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11203 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11209 *'\$0 --fallback-echo"')
11210 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11216 cat <<__EOF__ >> "$cfgfile"
11217 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11219 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11221 # Shell to use when invoking shell scripts.
11224 # Whether or not to build shared libraries.
11225 build_libtool_libs=$enable_shared
11227 # Whether or not to build static libraries.
11228 build_old_libs=$enable_static
11230 # Whether or not to add -lc for building shared libraries.
11231 build_libtool_need_lc=$archive_cmds_need_lc_RC
11233 # Whether or not to disallow shared libs when runtime libs are static
11234 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11236 # Whether or not to optimize for fast installation.
11237 fast_install=$enable_fast_install
11240 host_alias=$host_alias
11244 # The build system.
11245 build_alias=$build_alias
11249 # An echo program that does not interpret backslashes.
11254 AR_FLAGS=$lt_AR_FLAGS
11259 # A language-specific compiler.
11262 # Is the compiler the GNU C compiler?
11268 # The linker used to build libraries.
11271 # Whether we need hard or soft links.
11274 # A BSD-compatible nm program.
11277 # A symbol stripping program
11280 # Used to examine libraries when file_magic_cmd begins "file"
11281 MAGIC_CMD=$MAGIC_CMD
11283 # Used on cygwin: DLL creation program.
11286 # Used on cygwin: object dumper.
11289 # Used on cygwin: assembler.
11292 # The name of the directory that contains temporary libtool files.
11295 # How to create reloadable object files.
11296 reload_flag=$lt_reload_flag
11297 reload_cmds=$lt_reload_cmds
11299 # How to pass a linker flag through the compiler.
11300 wl=$lt_lt_prog_compiler_wl_RC
11302 # Object file suffix (normally "o").
11303 objext="$ac_objext"
11305 # Old archive suffix (normally "a").
11308 # Shared library suffix (normally ".so").
11309 shrext_cmds='$shrext_cmds'
11311 # Executable file suffix (normally "").
11314 # Additional compiler flags for building library objects.
11315 pic_flag=$lt_lt_prog_compiler_pic_RC
11318 # What is the maximum length of a command?
11319 max_cmd_len=$lt_cv_sys_max_cmd_len
11321 # Does compiler simultaneously support -c and -o options?
11322 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11324 # Must we lock files when doing compilation?
11325 need_locks=$lt_need_locks
11327 # Do we need the lib prefix for modules?
11328 need_lib_prefix=$need_lib_prefix
11330 # Do we need a version for libraries?
11331 need_version=$need_version
11333 # Whether dlopen is supported.
11334 dlopen_support=$enable_dlopen
11336 # Whether dlopen of programs is supported.
11337 dlopen_self=$enable_dlopen_self
11339 # Whether dlopen of statically linked programs is supported.
11340 dlopen_self_static=$enable_dlopen_self_static
11342 # Compiler flag to prevent dynamic linking.
11343 link_static_flag=$lt_lt_prog_compiler_static_RC
11345 # Compiler flag to turn off builtin functions.
11346 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11348 # Compiler flag to allow reflexive dlopens.
11349 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11351 # Compiler flag to generate shared objects directly from archives.
11352 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11354 # Compiler flag to generate thread-safe objects.
11355 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11357 # Library versioning type.
11358 version_type=$version_type
11360 # Format of library name prefix.
11361 libname_spec=$lt_libname_spec
11363 # List of archive names. First name is the real one, the rest are links.
11364 # The last name is the one that the linker finds with -lNAME.
11365 library_names_spec=$lt_library_names_spec
11367 # The coded name of the library, if different from the real name.
11368 soname_spec=$lt_soname_spec
11370 # Commands used to build and install an old-style archive.
11372 old_archive_cmds=$lt_old_archive_cmds_RC
11373 old_postinstall_cmds=$lt_old_postinstall_cmds
11374 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11376 # Create an old-style archive from a shared archive.
11377 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11379 # Create a temporary old-style archive to link instead of a shared archive.
11380 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11382 # Commands used to build and install a shared archive.
11383 archive_cmds=$lt_archive_cmds_RC
11384 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11385 postinstall_cmds=$lt_postinstall_cmds
11386 postuninstall_cmds=$lt_postuninstall_cmds
11388 # Commands used to build a loadable module (assumed same as above if empty)
11389 module_cmds=$lt_module_cmds_RC
11390 module_expsym_cmds=$lt_module_expsym_cmds_RC
11392 # Commands to strip libraries.
11393 old_striplib=$lt_old_striplib
11394 striplib=$lt_striplib
11396 # Dependencies to place before the objects being linked to create a
11398 predep_objects=$lt_predep_objects_RC
11400 # Dependencies to place after the objects being linked to create a
11402 postdep_objects=$lt_postdep_objects_RC
11404 # Dependencies to place before the objects being linked to create a
11406 predeps=$lt_predeps_RC
11408 # Dependencies to place after the objects being linked to create a
11410 postdeps=$lt_postdeps_RC
11412 # The library search path used internally by the compiler when linking
11413 # a shared library.
11414 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11416 # Method to check whether dependent libraries are shared objects.
11417 deplibs_check_method=$lt_deplibs_check_method
11419 # Command to use when deplibs_check_method == file_magic.
11420 file_magic_cmd=$lt_file_magic_cmd
11422 # Flag that allows shared libraries with undefined symbols to be built.
11423 allow_undefined_flag=$lt_allow_undefined_flag_RC
11425 # Flag that forces no undefined symbols.
11426 no_undefined_flag=$lt_no_undefined_flag_RC
11428 # Commands used to finish a libtool library installation in a directory.
11429 finish_cmds=$lt_finish_cmds
11431 # Same as above, but a single script fragment to be evaled but not shown.
11432 finish_eval=$lt_finish_eval
11434 # Take the output of nm and produce a listing of raw symbols and C names.
11435 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11437 # Transform the output of nm in a proper C declaration
11438 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11440 # Transform the output of nm in a C name address pair
11441 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11443 # This is the shared library runtime path variable.
11444 runpath_var=$runpath_var
11446 # This is the shared library path variable.
11447 shlibpath_var=$shlibpath_var
11449 # Is shlibpath searched before the hard-coded library search path?
11450 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11452 # How to hardcode a shared library path into an executable.
11453 hardcode_action=$hardcode_action_RC
11455 # Whether we should hardcode library paths into libraries.
11456 hardcode_into_libs=$hardcode_into_libs
11458 # Flag to hardcode \$libdir into a binary during linking.
11459 # This must work even if \$libdir does not exist.
11460 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11462 # If ld is used when linking, flag to hardcode \$libdir into
11463 # a binary during linking. This must work even if \$libdir does
11465 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11467 # Whether we need a single -rpath flag with a separated argument.
11468 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11470 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11471 # resulting binary.
11472 hardcode_direct=$hardcode_direct_RC
11474 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11475 # resulting binary.
11476 hardcode_minus_L=$hardcode_minus_L_RC
11478 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11479 # the resulting binary.
11480 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11482 # Set to yes if building a shared library automatically hardcodes DIR into the library
11483 # and all subsequent libraries and executables linked against it.
11484 hardcode_automatic=$hardcode_automatic_RC
11486 # Variables whose values should be saved in libtool wrapper scripts and
11487 # restored at relink time.
11488 variables_saved_for_relink="$variables_saved_for_relink"
11490 # Whether libtool must link a program against all its dependency libraries.
11491 link_all_deplibs=$link_all_deplibs_RC
11493 # Compile-time system search path for libraries
11494 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11496 # Run-time system search path for libraries
11497 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11499 # Fix the shell variable \$srcfile for the compiler.
11500 fix_srcfile_path="$fix_srcfile_path_RC"
11502 # Set to yes if exported symbols are required.
11503 always_export_symbols=$always_export_symbols_RC
11505 # The commands to list exported symbols.
11506 export_symbols_cmds=$lt_export_symbols_cmds_RC
11508 # The commands to extract the exported symbol list from a shared archive.
11509 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11511 # Symbols that should not be listed in the preloaded symbols.
11512 exclude_expsyms=$lt_exclude_expsyms_RC
11514 # Symbols that must always be exported.
11515 include_expsyms=$lt_include_expsyms_RC
11517 # ### END LIBTOOL TAG CONFIG: $tagname
11523 # If there is no Makefile yet, we rely on a make rule to execute
11524 # `config.status --recheck' to rerun these tests and create the
11525 # libtool script then.
11526 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11527 if test -f "$ltmain_in"; then
11528 test -f Makefile && make "$ltmain"
11534 ac_cpp='$CPP $CPPFLAGS'
11535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11544 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11545 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11546 { (exit 1); exit 1; }; }
11550 # Append the new tag name to the list of available tags.
11551 if test -n "$tagname" ; then
11552 available_tags="$available_tags $tagname"
11558 # Now substitute the updated list of available tags.
11559 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11560 mv "${ofile}T" "$ofile"
11564 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11565 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11566 { (exit 1); exit 1; }; }
11572 # This can be used to rebuild libtool when needed
11573 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11575 # Always use our own libtool.
11576 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11578 # Prevent multiple expansion
11590 if test $ol_enable_perl != no ; then
11591 # Extract the first word of "perl", so it can be a program name with args.
11592 set dummy perl; ac_word=$2
11593 echo "$as_me:$LINENO: checking for $ac_word" >&5
11594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11595 if test "${ac_cv_path_PERLBIN+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604 for as_dir in $PATH
11607 test -z "$as_dir" && as_dir=.
11608 for ac_exec_ext in '' $ac_executable_extensions; do
11609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11610 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11621 PERLBIN=$ac_cv_path_PERLBIN
11623 if test -n "$PERLBIN"; then
11624 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11625 echo "${ECHO_T}$PERLBIN" >&6
11627 echo "$as_me:$LINENO: result: no" >&5
11628 echo "${ECHO_T}no" >&6
11632 if test "no$PERLBIN" = "no" ; then
11633 if test $ol_enable_perl = yes ; then
11634 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11635 echo "$as_me: error: could not locate perl" >&2;}
11636 { (exit 1); exit 1; }; }
11640 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11641 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11643 if test x"$ol_enable_perl" = "xyes" ; then
11644 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11646 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11653 ac_cpp='$CPP $CPPFLAGS'
11654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11657 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11658 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11659 # On Suns, sometimes $CPP names a directory.
11660 if test -n "$CPP" && test -d "$CPP"; then
11663 if test -z "$CPP"; then
11664 if test "${ac_cv_prog_CPP+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11667 # Double quotes because CPP needs to be expanded
11668 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11670 ac_preproc_ok=false
11671 for ac_c_preproc_warn_flag in '' yes
11673 # Use a header file that comes with gcc, so configuring glibc
11674 # with a fresh cross-compiler works.
11675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11676 # <limits.h> exists even on freestanding compilers.
11677 # On the NeXT, cc -E runs the code through the compiler's parser,
11678 # not just through cpp. "Syntax error" is here to catch this case.
11679 cat >conftest.$ac_ext <<_ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11686 # include <limits.h>
11688 # include <assert.h>
11692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11695 grep -v '^ *+' conftest.er1 >conftest.err
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } >/dev/null; then
11700 if test -s conftest.err; then
11701 ac_cpp_err=$ac_c_preproc_warn_flag
11702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11709 if test -z "$ac_cpp_err"; then
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 # Broken: fails on valid input.
11718 rm -f conftest.err conftest.$ac_ext
11720 # OK, works on sane cases. Now check whether non-existent headers
11721 # can be detected and how.
11722 cat >conftest.$ac_ext <<_ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11728 #include <ac_nonexistent.h>
11730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11733 grep -v '^ *+' conftest.er1 >conftest.err
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } >/dev/null; then
11738 if test -s conftest.err; then
11739 ac_cpp_err=$ac_c_preproc_warn_flag
11740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11747 if test -z "$ac_cpp_err"; then
11748 # Broken: success on invalid input.
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11754 # Passes both tests.
11758 rm -f conftest.err conftest.$ac_ext
11761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11762 rm -f conftest.err conftest.$ac_ext
11763 if $ac_preproc_ok; then
11768 ac_cv_prog_CPP=$CPP
11771 CPP=$ac_cv_prog_CPP
11773 ac_cv_prog_CPP=$CPP
11775 echo "$as_me:$LINENO: result: $CPP" >&5
11776 echo "${ECHO_T}$CPP" >&6
11777 ac_preproc_ok=false
11778 for ac_c_preproc_warn_flag in '' yes
11780 # Use a header file that comes with gcc, so configuring glibc
11781 # with a fresh cross-compiler works.
11782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783 # <limits.h> exists even on freestanding compilers.
11784 # On the NeXT, cc -E runs the code through the compiler's parser,
11785 # not just through cpp. "Syntax error" is here to catch this case.
11786 cat >conftest.$ac_ext <<_ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11793 # include <limits.h>
11795 # include <assert.h>
11799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11802 grep -v '^ *+' conftest.er1 >conftest.err
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } >/dev/null; then
11807 if test -s conftest.err; then
11808 ac_cpp_err=$ac_c_preproc_warn_flag
11809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11816 if test -z "$ac_cpp_err"; then
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11822 # Broken: fails on valid input.
11825 rm -f conftest.err conftest.$ac_ext
11827 # OK, works on sane cases. Now check whether non-existent headers
11828 # can be detected and how.
11829 cat >conftest.$ac_ext <<_ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 #include <ac_nonexistent.h>
11837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11840 grep -v '^ *+' conftest.er1 >conftest.err
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } >/dev/null; then
11845 if test -s conftest.err; then
11846 ac_cpp_err=$ac_c_preproc_warn_flag
11847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11854 if test -z "$ac_cpp_err"; then
11855 # Broken: success on invalid input.
11858 echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11861 # Passes both tests.
11865 rm -f conftest.err conftest.$ac_ext
11868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11869 rm -f conftest.err conftest.$ac_ext
11870 if $ac_preproc_ok; then
11873 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11874 See \`config.log' for more details." >&5
11875 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11876 See \`config.log' for more details." >&2;}
11877 { (exit 1); exit 1; }; }
11881 ac_cpp='$CPP $CPPFLAGS'
11882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11888 *mingw32* ) ac_cv_mingw32=yes ;;
11889 *cygwin* ) ac_cv_cygwin=yes ;;
11895 cat >>confdefs.h <<_ACEOF
11896 #define EXEEXT "${EXEEXT}"
11900 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11901 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11902 if test "${ac_cv_lib_be_be_app+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 ac_check_lib_save_LIBS=$LIBS
11906 LIBS="-lbe -lroot -lnet $LIBS"
11907 cat >conftest.$ac_ext <<_ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11914 /* Override any gcc2 internal prototype to avoid an error. */
11918 /* We use char because int might match the return type of a gcc2
11919 builtin and then its argument prototype would still apply. */
11929 rm -f conftest.$ac_objext conftest$ac_exeext
11930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11931 (eval $ac_link) 2>conftest.er1
11933 grep -v '^ *+' conftest.er1 >conftest.err
11935 cat conftest.err >&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try='test -z "$ac_c_werror_flag"
11939 || test ! -s conftest.err'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; } &&
11945 { ac_try='test -s conftest$ac_exeext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 ac_cv_lib_be_be_app=yes
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11956 ac_cv_lib_be_be_app=no
11958 rm -f conftest.err conftest.$ac_objext \
11959 conftest$ac_exeext conftest.$ac_ext
11960 LIBS=$ac_check_lib_save_LIBS
11962 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11963 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11964 if test $ac_cv_lib_be_be_app = yes; then
11965 LIBS="$LIBS -lbe -lroot -lnet"
11972 ac_cpp='$CPP $CPPFLAGS'
11973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11976 if test -n "$ac_tool_prefix"; then
11977 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11978 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11979 echo "$as_me:$LINENO: checking for $ac_word" >&5
11980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11981 if test "${ac_cv_prog_CC+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 if test -n "$CC"; then
11985 ac_cv_prog_CC="$CC" # Let the user override the test.
11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988 for as_dir in $PATH
11991 test -z "$as_dir" && as_dir=.
11992 for ac_exec_ext in '' $ac_executable_extensions; do
11993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11994 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 if test -n "$CC"; then
12005 echo "$as_me:$LINENO: result: $CC" >&5
12006 echo "${ECHO_T}$CC" >&6
12008 echo "$as_me:$LINENO: result: no" >&5
12009 echo "${ECHO_T}no" >&6
12013 if test -z "$ac_cv_prog_CC"; then
12015 # Extract the first word of "gcc", so it can be a program name with args.
12016 set dummy gcc; ac_word=$2
12017 echo "$as_me:$LINENO: checking for $ac_word" >&5
12018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 if test -n "$ac_ct_CC"; then
12023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026 for as_dir in $PATH
12029 test -z "$as_dir" && as_dir=.
12030 for ac_exec_ext in '' $ac_executable_extensions; do
12031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12032 ac_cv_prog_ac_ct_CC="gcc"
12033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12042 if test -n "$ac_ct_CC"; then
12043 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12044 echo "${ECHO_T}$ac_ct_CC" >&6
12046 echo "$as_me:$LINENO: result: no" >&5
12047 echo "${ECHO_T}no" >&6
12052 CC="$ac_cv_prog_CC"
12055 if test -z "$CC"; then
12056 if test -n "$ac_tool_prefix"; then
12057 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12058 set dummy ${ac_tool_prefix}cc; ac_word=$2
12059 echo "$as_me:$LINENO: checking for $ac_word" >&5
12060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12061 if test "${ac_cv_prog_CC+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 if test -n "$CC"; then
12065 ac_cv_prog_CC="$CC" # Let the user override the test.
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12071 test -z "$as_dir" && as_dir=.
12072 for ac_exec_ext in '' $ac_executable_extensions; do
12073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12074 ac_cv_prog_CC="${ac_tool_prefix}cc"
12075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12084 if test -n "$CC"; then
12085 echo "$as_me:$LINENO: result: $CC" >&5
12086 echo "${ECHO_T}$CC" >&6
12088 echo "$as_me:$LINENO: result: no" >&5
12089 echo "${ECHO_T}no" >&6
12093 if test -z "$ac_cv_prog_CC"; then
12095 # Extract the first word of "cc", so it can be a program name with args.
12096 set dummy cc; ac_word=$2
12097 echo "$as_me:$LINENO: checking for $ac_word" >&5
12098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 if test -n "$ac_ct_CC"; then
12103 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106 for as_dir in $PATH
12109 test -z "$as_dir" && as_dir=.
12110 for ac_exec_ext in '' $ac_executable_extensions; do
12111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12112 ac_cv_prog_ac_ct_CC="cc"
12113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12122 if test -n "$ac_ct_CC"; then
12123 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12124 echo "${ECHO_T}$ac_ct_CC" >&6
12126 echo "$as_me:$LINENO: result: no" >&5
12127 echo "${ECHO_T}no" >&6
12132 CC="$ac_cv_prog_CC"
12136 if test -z "$CC"; then
12137 # Extract the first word of "cc", so it can be a program name with args.
12138 set dummy cc; ac_word=$2
12139 echo "$as_me:$LINENO: checking for $ac_word" >&5
12140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12141 if test "${ac_cv_prog_CC+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12144 if test -n "$CC"; then
12145 ac_cv_prog_CC="$CC" # Let the user override the test.
12147 ac_prog_rejected=no
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12152 test -z "$as_dir" && as_dir=.
12153 for ac_exec_ext in '' $ac_executable_extensions; do
12154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12156 ac_prog_rejected=yes
12160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12166 if test $ac_prog_rejected = yes; then
12167 # We found a bogon in the path, so make sure we never use it.
12168 set dummy $ac_cv_prog_CC
12170 if test $# != 0; then
12171 # We chose a different compiler from the bogus one.
12172 # However, it has the same basename, so the bogon will be chosen
12173 # first if we set CC to just the basename; use the full file name.
12175 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12181 if test -n "$CC"; then
12182 echo "$as_me:$LINENO: result: $CC" >&5
12183 echo "${ECHO_T}$CC" >&6
12185 echo "$as_me:$LINENO: result: no" >&5
12186 echo "${ECHO_T}no" >&6
12190 if test -z "$CC"; then
12191 if test -n "$ac_tool_prefix"; then
12194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12196 echo "$as_me:$LINENO: checking for $ac_word" >&5
12197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12198 if test "${ac_cv_prog_CC+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 if test -n "$CC"; then
12202 ac_cv_prog_CC="$CC" # Let the user override the test.
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 if test -n "$CC"; then
12222 echo "$as_me:$LINENO: result: $CC" >&5
12223 echo "${ECHO_T}$CC" >&6
12225 echo "$as_me:$LINENO: result: no" >&5
12226 echo "${ECHO_T}no" >&6
12229 test -n "$CC" && break
12232 if test -z "$CC"; then
12236 # Extract the first word of "$ac_prog", so it can be a program name with args.
12237 set dummy $ac_prog; ac_word=$2
12238 echo "$as_me:$LINENO: checking for $ac_word" >&5
12239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 if test -n "$ac_ct_CC"; then
12244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_prog_ac_ct_CC="$ac_prog"
12254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12263 if test -n "$ac_ct_CC"; then
12264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12265 echo "${ECHO_T}$ac_ct_CC" >&6
12267 echo "$as_me:$LINENO: result: no" >&5
12268 echo "${ECHO_T}no" >&6
12271 test -n "$ac_ct_CC" && break
12280 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12281 See \`config.log' for more details." >&5
12282 echo "$as_me: error: no acceptable C compiler found in \$PATH
12283 See \`config.log' for more details." >&2;}
12284 { (exit 1); exit 1; }; }
12286 # Provide some information about the compiler.
12287 echo "$as_me:$LINENO:" \
12288 "checking for C compiler version" >&5
12289 ac_compiler=`set X $ac_compile; echo $2`
12290 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12291 (eval $ac_compiler --version </dev/null >&5) 2>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }
12295 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12296 (eval $ac_compiler -v </dev/null >&5) 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }
12300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12301 (eval $ac_compiler -V </dev/null >&5) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }
12306 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12307 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12308 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12329 rm -f conftest.$ac_objext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12331 (eval $ac_compile) 2>conftest.er1
12333 grep -v '^ *+' conftest.er1 >conftest.err
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -z "$ac_c_werror_flag"
12339 || test ! -s conftest.err'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; } &&
12345 { ac_try='test -s conftest.$ac_objext'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
12351 ac_compiler_gnu=yes
12353 echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12359 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12362 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12363 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12364 GCC=`test $ac_compiler_gnu = yes && echo yes`
12365 ac_test_CFLAGS=${CFLAGS+set}
12366 ac_save_CFLAGS=$CFLAGS
12368 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12369 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12370 if test "${ac_cv_prog_cc_g+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 cat >conftest.$ac_ext <<_ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12388 rm -f conftest.$ac_objext
12389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12390 (eval $ac_compile) 2>conftest.er1
12392 grep -v '^ *+' conftest.er1 >conftest.err
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try='test -z "$ac_c_werror_flag"
12398 || test ! -s conftest.err'
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; } &&
12404 { ac_try='test -s conftest.$ac_objext'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12410 ac_cv_prog_cc_g=yes
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12419 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12420 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12421 if test "$ac_test_CFLAGS" = set; then
12422 CFLAGS=$ac_save_CFLAGS
12423 elif test $ac_cv_prog_cc_g = yes; then
12424 if test "$GCC" = yes; then
12430 if test "$GCC" = yes; then
12436 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12437 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12438 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 ac_cv_prog_cc_stdc=no
12443 cat >conftest.$ac_ext <<_ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12449 #include <stdarg.h>
12451 #include <sys/types.h>
12452 #include <sys/stat.h>
12453 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12454 struct buf { int x; };
12455 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12456 static char *e (p, i)
12462 static char *f (char * (*g) (char **, int), char **p, ...)
12467 s = g (p, va_arg (v,int));
12472 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12473 function prototypes and stuff, but not '\xHH' hex character constants.
12474 These don't provoke an error unfortunately, instead are silently treated
12475 as 'x'. The following induces an error, until -std1 is added to get
12476 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12477 array size at least. It's necessary to write '\x00'==0 to get something
12478 that's true only with -std1. */
12479 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12481 int test (int i, double x);
12482 struct s1 {int (*f) (int a);};
12483 struct s2 {int (*f) (double a);};
12484 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12490 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12495 # Don't try gcc -ansi; that turns off useful extensions and
12496 # breaks some systems' header files.
12497 # AIX -qlanglvl=ansi
12498 # Ultrix and OSF/1 -std1
12499 # HP-UX 10.20 and later -Ae
12500 # HP-UX older versions -Aa -D_HPUX_SOURCE
12501 # SVR4 -Xc -D__EXTENSIONS__
12502 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12504 CC="$ac_save_CC $ac_arg"
12505 rm -f conftest.$ac_objext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12507 (eval $ac_compile) 2>conftest.er1
12509 grep -v '^ *+' conftest.er1 >conftest.err
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try='test -z "$ac_c_werror_flag"
12515 || test ! -s conftest.err'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; } &&
12521 { ac_try='test -s conftest.$ac_objext'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527 ac_cv_prog_cc_stdc=$ac_arg
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12534 rm -f conftest.err conftest.$ac_objext
12536 rm -f conftest.$ac_ext conftest.$ac_objext
12541 case "x$ac_cv_prog_cc_stdc" in
12543 echo "$as_me:$LINENO: result: none needed" >&5
12544 echo "${ECHO_T}none needed" >&6 ;;
12546 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12547 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12548 CC="$CC $ac_cv_prog_cc_stdc" ;;
12551 # Some people use a C++ compiler to compile C. Since we use `exit',
12552 # in C++ we need to declare it. In case someone uses the same compiler
12553 # for both compiling C and C++ we need to have the C++ compiler decide
12554 # the declaration of exit, since it's the most demanding environment.
12555 cat >conftest.$ac_ext <<_ACEOF
12556 #ifndef __cplusplus
12560 rm -f conftest.$ac_objext
12561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12562 (eval $ac_compile) 2>conftest.er1
12564 grep -v '^ *+' conftest.er1 >conftest.err
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -z "$ac_c_werror_flag"
12570 || test ! -s conftest.err'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; } &&
12576 { ac_try='test -s conftest.$ac_objext'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12582 for ac_declaration in \
12584 'extern "C" void std::exit (int) throw (); using std::exit;' \
12585 'extern "C" void std::exit (int); using std::exit;' \
12586 'extern "C" void exit (int) throw ();' \
12587 'extern "C" void exit (int);' \
12590 cat >conftest.$ac_ext <<_ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12597 #include <stdlib.h>
12606 rm -f conftest.$ac_objext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608 (eval $ac_compile) 2>conftest.er1
12610 grep -v '^ *+' conftest.er1 >conftest.err
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } &&
12615 { ac_try='test -z "$ac_c_werror_flag"
12616 || test ! -s conftest.err'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try='test -s conftest.$ac_objext'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12636 cat >conftest.$ac_ext <<_ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12651 rm -f conftest.$ac_objext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653 (eval $ac_compile) 2>conftest.er1
12655 grep -v '^ *+' conftest.er1 >conftest.err
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
12660 { ac_try='test -z "$ac_c_werror_flag"
12661 || test ! -s conftest.err'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; } &&
12667 { ac_try='test -s conftest.$ac_objext'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12675 echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12682 if test -n "$ac_declaration"; then
12683 echo '#ifdef __cplusplus' >>confdefs.h
12684 echo $ac_declaration >>confdefs.h
12685 echo '#endif' >>confdefs.h
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12695 ac_cpp='$CPP $CPPFLAGS'
12696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12700 depcc="$CC" am_compiler_list=
12702 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12703 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12704 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12707 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12708 # We make a subdir and do the tests there. Otherwise we can end up
12709 # making bogus files that we don't know about and never remove. For
12710 # instance it was reported that on HP-UX the gcc test will end up
12711 # making a dummy file named `D' -- because `-MD' means `put the output
12714 # Copy depcomp to subdir because otherwise we won't find it if we're
12715 # using a relative directory.
12716 cp "$am_depcomp" conftest.dir
12718 # We will build objects and dependencies in a subdirectory because
12719 # it helps to detect inapplicable dependency modes. For instance
12720 # both Tru64's cc and ICC support -MD to output dependencies as a
12721 # side effect of compilation, but ICC will put the dependencies in
12722 # the current directory while Tru64 will put them in the object
12726 am_cv_CC_dependencies_compiler_type=none
12727 if test "$am_compiler_list" = ""; then
12728 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12730 for depmode in $am_compiler_list; do
12731 # Setup a source with many dependencies, because some compilers
12732 # like to wrap large dependency lists on column 80 (with \), and
12733 # we should not choose a depcomp mode which is confused by this.
12735 # We need to recreate these files for each test, as the compiler may
12736 # overwrite some of them when testing with obscure command lines.
12737 # This happens at least with the AIX C compiler.
12739 for i in 1 2 3 4 5 6; do
12740 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12741 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12742 # Solaris 8's {/usr,}/bin/sh.
12743 touch sub/conftst$i.h
12745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12749 # after this tag, mechanisms are not by side-effect, so they'll
12750 # only be used when explicitly requested
12751 if test "x$enable_dependency_tracking" = xyes; then
12759 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12760 # mode. It turns out that the SunPro C++ compiler does not properly
12761 # handle `-M -o', and we need to detect this.
12762 if depmode=$depmode \
12763 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12764 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12765 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12766 >/dev/null 2>conftest.err &&
12767 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12768 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12769 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12770 # icc doesn't choke on unknown options, it will just issue warnings
12771 # or remarks (even with -Werror). So we grep stderr for any message
12772 # that says an option was ignored or not supported.
12773 # When given -MP, icc 7.0 and 7.1 complain thusly:
12774 # icc: Command line warning: ignoring option '-M'; no argument required
12775 # The diagnosis changed in icc 8.0:
12776 # icc: Command line remark: option '-MP' not supported
12777 if (grep 'ignoring option' conftest.err ||
12778 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12779 am_cv_CC_dependencies_compiler_type=$depmode
12786 rm -rf conftest.dir
12788 am_cv_CC_dependencies_compiler_type=none
12792 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12793 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12794 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12799 test "x$enable_dependency_tracking" != xno \
12800 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12801 am__fastdepCC_TRUE=
12802 am__fastdepCC_FALSE='#'
12804 am__fastdepCC_TRUE='#'
12805 am__fastdepCC_FALSE=
12809 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12810 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12811 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12812 { (exit 1); exit 1; }; }
12815 # test for make depend flag
12818 if test -z "${MKDEP}"; then
12819 OL_MKDEP="${CC-cc}"
12820 if test -z "${MKDEP_FLAGS}"; then
12821 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12822 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12823 if test "${ol_cv_mkdep+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 for flag in "-M" "-xM"; do
12829 cat > conftest.c <<EOF
12832 if { ac_try='$OL_MKDEP $flag conftest.c'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } \
12838 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12840 if test ! -f conftest."${ac_object}" ; then
12842 OL_MKDEP_FLAGS="$flag"
12850 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12851 echo "${ECHO_T}$ol_cv_mkdep" >&6
12854 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12858 OL_MKDEP="${MKDEP}"
12859 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12864 if test "${ol_cv_mkdep}" = no ; then
12865 # this will soon become an error
12866 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12867 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12870 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12871 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12872 if test "${ac_cv_lib_s_afopen+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 ac_check_lib_save_LIBS=$LIBS
12877 cat >conftest.$ac_ext <<_ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12884 /* Override any gcc2 internal prototype to avoid an error. */
12888 /* We use char because int might match the return type of a gcc2
12889 builtin and then its argument prototype would still apply. */
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12901 (eval $ac_link) 2>conftest.er1
12903 grep -v '^ *+' conftest.er1 >conftest.err
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -z "$ac_c_werror_flag"
12909 || test ! -s conftest.err'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest$ac_exeext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 ac_cv_lib_s_afopen=yes
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12926 ac_cv_lib_s_afopen=no
12928 rm -f conftest.err conftest.$ac_objext \
12929 conftest$ac_exeext conftest.$ac_ext
12930 LIBS=$ac_check_lib_save_LIBS
12932 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12933 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12934 if test $ac_cv_lib_s_afopen = yes; then
12938 cat >>confdefs.h <<\_ACEOF
12939 #define HAVE_AIX_SECURITY 1
12948 ac_cv_func_getopt=no
12950 cat >>confdefs.h <<\_ACEOF
12951 #define BOTH_STRINGS_H 1
12958 WITH_MODULES_ENABLED=no
12959 if test $ol_enable_modules != no ; then
12961 for ac_header in ltdl.h
12963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12965 echo "$as_me:$LINENO: checking for $ac_header" >&5
12966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12973 # Is the header compilable?
12974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12976 cat >conftest.$ac_ext <<_ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h. */
12982 $ac_includes_default
12983 #include <$ac_header>
12985 rm -f conftest.$ac_objext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987 (eval $ac_compile) 2>conftest.er1
12989 grep -v '^ *+' conftest.er1 >conftest.err
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
12994 { ac_try='test -z "$ac_c_werror_flag"
12995 || test ! -s conftest.err'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; } &&
13001 { ac_try='test -s conftest.$ac_objext'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; }; then
13007 ac_header_compiler=yes
13009 echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13012 ac_header_compiler=no
13014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13016 echo "${ECHO_T}$ac_header_compiler" >&6
13018 # Is the header present?
13019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13021 cat >conftest.$ac_ext <<_ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13027 #include <$ac_header>
13029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13032 grep -v '^ *+' conftest.er1 >conftest.err
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } >/dev/null; then
13037 if test -s conftest.err; then
13038 ac_cpp_err=$ac_c_preproc_warn_flag
13039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13046 if test -z "$ac_cpp_err"; then
13047 ac_header_preproc=yes
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13052 ac_header_preproc=no
13054 rm -f conftest.err conftest.$ac_ext
13055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13056 echo "${ECHO_T}$ac_header_preproc" >&6
13058 # So? What about this header?
13059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13065 ac_header_preproc=yes
13068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13082 ## --------------------------------------------- ##
13083 ## Report this to <http://www.openldap.org/its/> ##
13084 ## --------------------------------------------- ##
13087 sed "s/^/$as_me: WARNING: /" >&2
13090 echo "$as_me:$LINENO: checking for $ac_header" >&5
13091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 eval "$as_ac_Header=\$ac_header_preproc"
13097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13102 cat >>confdefs.h <<_ACEOF
13103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13111 if test $ac_cv_header_ltdl_h = no ; then
13112 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13113 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13114 { (exit 1); exit 1; }; }
13117 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13118 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13119 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 ac_check_lib_save_LIBS=$LIBS
13123 LIBS="-lltdl $LIBS"
13124 cat >conftest.$ac_ext <<_ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13131 /* Override any gcc2 internal prototype to avoid an error. */
13135 /* We use char because int might match the return type of a gcc2
13136 builtin and then its argument prototype would still apply. */
13146 rm -f conftest.$ac_objext conftest$ac_exeext
13147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13148 (eval $ac_link) 2>conftest.er1
13150 grep -v '^ *+' conftest.er1 >conftest.err
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try='test -z "$ac_c_werror_flag"
13156 || test ! -s conftest.err'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest$ac_exeext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 ac_cv_lib_ltdl_lt_dlinit=yes
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13173 ac_cv_lib_ltdl_lt_dlinit=no
13175 rm -f conftest.err conftest.$ac_objext \
13176 conftest$ac_exeext conftest.$ac_ext
13177 LIBS=$ac_check_lib_save_LIBS
13179 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13180 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13181 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13183 MODULES_LIBS=-lltdl
13185 cat >>confdefs.h <<\_ACEOF
13186 #define HAVE_LIBLTDL 1
13193 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13194 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13195 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13196 { (exit 1); exit 1; }; }
13198 ol_link_modules=yes
13199 WITH_MODULES_ENABLED=yes
13202 for i in $Backends; do
13203 eval "ol_tmp=\$ol_enable_$i"
13204 if test $ol_tmp = mod ; then
13205 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13206 echo "$as_me: WARNING: building static $i backend" >&2;}
13207 eval "ol_enable_$i=yes"
13210 for i in $Overlays; do
13211 eval "ol_tmp=\$ol_enable_$i"
13212 if test $ol_tmp = mod ; then
13213 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13214 echo "$as_me: WARNING: building static $i overlay" >&2;}
13215 eval "ol_enable_$i=yes"
13221 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13222 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13223 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 cat >conftest.$ac_ext <<_ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13235 #include <__ASCII__/generate_error.h>
13239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } >/dev/null; then
13247 if test -s conftest.err; then
13248 ac_cpp_err=$ac_c_preproc_warn_flag
13249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13256 if test -z "$ac_cpp_err"; then
13257 ol_cv_cpp_ebcdic=yes
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13262 ol_cv_cpp_ebcdic=no
13264 rm -f conftest.err conftest.$ac_ext
13266 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13267 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13268 if test $ol_cv_cpp_ebcdic = yes ; then
13270 cat >>confdefs.h <<\_ACEOF
13271 #define HAVE_EBCDIC 1
13276 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13278 if test "${ol_cv_header_stdc+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 cat >conftest.$ac_ext <<_ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 #include <stdlib.h>
13288 #include <stdarg.h>
13289 #include <string.h>
13292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13295 grep -v '^ *+' conftest.er1 >conftest.err
13297 cat conftest.err >&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } >/dev/null; then
13300 if test -s conftest.err; then
13301 ac_cpp_err=$ac_c_preproc_warn_flag
13302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13309 if test -z "$ac_cpp_err"; then
13310 ol_cv_header_stdc=yes
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13315 ol_cv_header_stdc=no
13317 rm -f conftest.err conftest.$ac_ext
13319 if test $ol_cv_header_stdc = yes; then
13320 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13321 cat >conftest.$ac_ext <<_ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327 #include <string.h>
13330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13331 $EGREP "memchr" >/dev/null 2>&1; then
13334 ol_cv_header_stdc=no
13340 if test $ol_cv_header_stdc = yes; then
13341 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13342 cat >conftest.$ac_ext <<_ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13348 #include <stdlib.h>
13351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13352 $EGREP "free" >/dev/null 2>&1; then
13355 ol_cv_header_stdc=no
13361 if test $ol_cv_header_stdc = yes; then
13362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13363 if test "$cross_compiling" = yes; then
13366 cat >conftest.$ac_ext <<_ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13373 #ifndef HAVE_EBCDIC
13374 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13375 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13377 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13378 || ('j' <= (c) && (c) <= 'r') \
13379 || ('s' <= (c) && (c) <= 'z'))
13380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13383 int main () { int i; for (i = 0; i < 256; i++)
13384 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13388 rm -f conftest$ac_exeext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13390 (eval $ac_link) 2>&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13401 echo "$as_me: program exited with status $ac_status" >&5
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13405 ( exit $ac_status )
13406 ol_cv_header_stdc=no
13408 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13412 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13413 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13414 if test $ol_cv_header_stdc = yes; then
13415 cat >>confdefs.h <<\_ACEOF
13416 #define STDC_HEADERS 1
13420 ac_cv_header_stdc=disable
13423 if test $ol_cv_header_stdc != yes; then
13424 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13425 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13433 ac_header_dirent=no
13434 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13435 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13436 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13437 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 cat >conftest.$ac_ext <<_ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h. */
13447 #include <sys/types.h>
13459 rm -f conftest.$ac_objext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13461 (eval $ac_compile) 2>conftest.er1
13463 grep -v '^ *+' conftest.er1 >conftest.err
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -z "$ac_c_werror_flag"
13469 || test ! -s conftest.err'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; } &&
13475 { ac_try='test -s conftest.$ac_objext'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }; then
13481 eval "$as_ac_Header=yes"
13483 echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13486 eval "$as_ac_Header=no"
13488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13493 cat >>confdefs.h <<_ACEOF
13494 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13497 ac_header_dirent=$ac_hdr; break
13501 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13502 if test $ac_header_dirent = dirent.h; then
13503 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13504 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13505 if test "${ac_cv_search_opendir+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 ac_func_search_save_LIBS=$LIBS
13509 ac_cv_search_opendir=no
13510 cat >conftest.$ac_ext <<_ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13517 /* Override any gcc2 internal prototype to avoid an error. */
13521 /* We use char because int might match the return type of a gcc2
13522 builtin and then its argument prototype would still apply. */
13532 rm -f conftest.$ac_objext conftest$ac_exeext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13534 (eval $ac_link) 2>conftest.er1
13536 grep -v '^ *+' conftest.er1 >conftest.err
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -z "$ac_c_werror_flag"
13542 || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest$ac_exeext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 ac_cv_search_opendir="none required"
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13560 rm -f conftest.err conftest.$ac_objext \
13561 conftest$ac_exeext conftest.$ac_ext
13562 if test "$ac_cv_search_opendir" = no; then
13563 for ac_lib in dir; do
13564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13565 cat >conftest.$ac_ext <<_ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13572 /* Override any gcc2 internal prototype to avoid an error. */
13576 /* We use char because int might match the return type of a gcc2
13577 builtin and then its argument prototype would still apply. */
13587 rm -f conftest.$ac_objext conftest$ac_exeext
13588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13589 (eval $ac_link) 2>conftest.er1
13591 grep -v '^ *+' conftest.er1 >conftest.err
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try='test -z "$ac_c_werror_flag"
13597 || test ! -s conftest.err'
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; } &&
13603 { ac_try='test -s conftest$ac_exeext'
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 ac_cv_search_opendir="-l$ac_lib"
13612 echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13616 rm -f conftest.err conftest.$ac_objext \
13617 conftest$ac_exeext conftest.$ac_ext
13620 LIBS=$ac_func_search_save_LIBS
13622 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13623 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13624 if test "$ac_cv_search_opendir" != no; then
13625 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13630 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13631 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13632 if test "${ac_cv_search_opendir+set}" = set; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 ac_func_search_save_LIBS=$LIBS
13636 ac_cv_search_opendir=no
13637 cat >conftest.$ac_ext <<_ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13644 /* Override any gcc2 internal prototype to avoid an error. */
13648 /* We use char because int might match the return type of a gcc2
13649 builtin and then its argument prototype would still apply. */
13659 rm -f conftest.$ac_objext conftest$ac_exeext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13661 (eval $ac_link) 2>conftest.er1
13663 grep -v '^ *+' conftest.er1 >conftest.err
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -z "$ac_c_werror_flag"
13669 || test ! -s conftest.err'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest$ac_exeext'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_cv_search_opendir="none required"
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13687 rm -f conftest.err conftest.$ac_objext \
13688 conftest$ac_exeext conftest.$ac_ext
13689 if test "$ac_cv_search_opendir" = no; then
13690 for ac_lib in x; do
13691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13692 cat >conftest.$ac_ext <<_ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13699 /* Override any gcc2 internal prototype to avoid an error. */
13703 /* We use char because int might match the return type of a gcc2
13704 builtin and then its argument prototype would still apply. */
13714 rm -f conftest.$ac_objext conftest$ac_exeext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13716 (eval $ac_link) 2>conftest.er1
13718 grep -v '^ *+' conftest.er1 >conftest.err
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -z "$ac_c_werror_flag"
13724 || test ! -s conftest.err'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; } &&
13730 { ac_try='test -s conftest$ac_exeext'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 ac_cv_search_opendir="-l$ac_lib"
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13743 rm -f conftest.err conftest.$ac_objext \
13744 conftest$ac_exeext conftest.$ac_ext
13747 LIBS=$ac_func_search_save_LIBS
13749 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13750 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13751 if test "$ac_cv_search_opendir" != no; then
13752 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13758 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13759 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13760 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 cat >conftest.$ac_ext <<_ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13769 #include <sys/types.h>
13770 #include <sys/wait.h>
13771 #ifndef WEXITSTATUS
13772 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13775 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13783 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13788 rm -f conftest.$ac_objext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13790 (eval $ac_compile) 2>conftest.er1
13792 grep -v '^ *+' conftest.er1 >conftest.err
13794 cat conftest.err >&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } &&
13797 { ac_try='test -z "$ac_c_werror_flag"
13798 || test ! -s conftest.err'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; } &&
13804 { ac_try='test -s conftest.$ac_objext'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13810 ac_cv_header_sys_wait_h=yes
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13815 ac_cv_header_sys_wait_h=no
13817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13819 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13820 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13821 if test $ac_cv_header_sys_wait_h = yes; then
13823 cat >>confdefs.h <<\_ACEOF
13824 #define HAVE_SYS_WAIT_H 1
13829 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13830 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13831 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13832 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 cat >conftest.$ac_ext <<_ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13840 #include <sys/types.h>
13841 #include <termios.h>
13847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13848 $EGREP "yes" >/dev/null 2>&1; then
13849 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13851 ac_cv_sys_tiocgwinsz_in_termios_h=no
13856 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13857 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13859 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13860 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13861 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13862 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 cat >conftest.$ac_ext <<_ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13871 #include <sys/types.h>
13872 #include <sys/ioctl.h>
13878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13879 $EGREP "yes" >/dev/null 2>&1; then
13880 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13882 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13887 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13888 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13890 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13892 cat >>confdefs.h <<\_ACEOF
13893 #define GWINSZ_IN_SYS_IOCTL 1
13995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13997 echo "$as_me:$LINENO: checking for $ac_header" >&5
13998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14005 # Is the header compilable?
14006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14008 cat >conftest.$ac_ext <<_ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14014 $ac_includes_default
14015 #include <$ac_header>
14017 rm -f conftest.$ac_objext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019 (eval $ac_compile) 2>conftest.er1
14021 grep -v '^ *+' conftest.er1 >conftest.err
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
14026 { ac_try='test -z "$ac_c_werror_flag"
14027 || test ! -s conftest.err'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; } &&
14033 { ac_try='test -s conftest.$ac_objext'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 ac_header_compiler=yes
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 ac_header_compiler=no
14046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14048 echo "${ECHO_T}$ac_header_compiler" >&6
14050 # Is the header present?
14051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14053 cat >conftest.$ac_ext <<_ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14059 #include <$ac_header>
14061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14064 grep -v '^ *+' conftest.er1 >conftest.err
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } >/dev/null; then
14069 if test -s conftest.err; then
14070 ac_cpp_err=$ac_c_preproc_warn_flag
14071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14078 if test -z "$ac_cpp_err"; then
14079 ac_header_preproc=yes
14081 echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14084 ac_header_preproc=no
14086 rm -f conftest.err conftest.$ac_ext
14087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14088 echo "${ECHO_T}$ac_header_preproc" >&6
14090 # So? What about this header?
14091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14097 ac_header_preproc=yes
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14114 ## --------------------------------------------- ##
14115 ## Report this to <http://www.openldap.org/its/> ##
14116 ## --------------------------------------------- ##
14119 sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
14129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14134 cat >>confdefs.h <<_ACEOF
14135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14144 for ac_header in resolv.h
14146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14147 echo "$as_me:$LINENO: checking for $ac_header" >&5
14148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 cat >conftest.$ac_ext <<_ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 $ac_includes_default
14159 #include <netinet/in.h>
14162 #include <$ac_header>
14164 rm -f conftest.$ac_objext
14165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14166 (eval $ac_compile) 2>conftest.er1
14168 grep -v '^ *+' conftest.er1 >conftest.err
14170 cat conftest.err >&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } &&
14173 { ac_try='test -z "$ac_c_werror_flag"
14174 || test ! -s conftest.err'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest.$ac_objext'
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
14186 eval "$as_ac_Header=yes"
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14191 eval "$as_ac_Header=no"
14193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14198 cat >>confdefs.h <<_ACEOF
14199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14208 for ac_header in netinet/tcp.h
14210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14211 echo "$as_me:$LINENO: checking for $ac_header" >&5
14212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 cat >conftest.$ac_ext <<_ACEOF
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h. */
14222 $ac_includes_default
14223 #include <netinet/in.h>
14226 #include <$ac_header>
14228 rm -f conftest.$ac_objext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230 (eval $ac_compile) 2>conftest.er1
14232 grep -v '^ *+' conftest.er1 >conftest.err
14234 cat conftest.err >&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try='test -z "$ac_c_werror_flag"
14238 || test ! -s conftest.err'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; } &&
14244 { ac_try='test -s conftest.$ac_objext'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }; then
14250 eval "$as_ac_Header=yes"
14252 echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14255 eval "$as_ac_Header=no"
14257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14262 cat >>confdefs.h <<_ACEOF
14263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14272 for ac_header in sys/ucred.h
14274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14275 echo "$as_me:$LINENO: checking for $ac_header" >&5
14276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 cat >conftest.$ac_ext <<_ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 $ac_includes_default
14287 #ifdef HAVE_SYS_PARAM_H
14288 #include <sys/param.h>
14292 #include <$ac_header>
14294 rm -f conftest.$ac_objext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14296 (eval $ac_compile) 2>conftest.er1
14298 grep -v '^ *+' conftest.er1 >conftest.err
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } &&
14303 { ac_try='test -z "$ac_c_werror_flag"
14304 || test ! -s conftest.err'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; } &&
14310 { ac_try='test -s conftest.$ac_objext'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
14316 eval "$as_ac_Header=yes"
14318 echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14321 eval "$as_ac_Header=no"
14323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14328 cat >>confdefs.h <<_ACEOF
14329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14340 for ac_func in sigaction sigset
14342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14343 echo "$as_me:$LINENO: checking for $ac_func" >&5
14344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14345 if eval "test \"\${$as_ac_var+set}\" = set"; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 cat >conftest.$ac_ext <<_ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14356 #define $ac_func innocuous_$ac_func
14358 /* System header to define __stub macros and hopefully few prototypes,
14359 which can conflict with char $ac_func (); below.
14360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14361 <limits.h> exists even on freestanding compilers. */
14364 # include <limits.h>
14366 # include <assert.h>
14371 /* Override any gcc2 internal prototype to avoid an error. */
14376 /* We use char because int might match the return type of a gcc2
14377 builtin and then its argument prototype would still apply. */
14379 /* The GNU C library defines this for functions which it implements
14380 to always fail with ENOSYS. Some functions are actually named
14381 something starting with __ and the normal name is an alias. */
14382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14385 char (*f) () = $ac_func;
14394 return f != $ac_func;
14399 rm -f conftest.$ac_objext conftest$ac_exeext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14401 (eval $ac_link) 2>conftest.er1
14403 grep -v '^ *+' conftest.er1 >conftest.err
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try='test -z "$ac_c_werror_flag"
14409 || test ! -s conftest.err'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; } &&
14415 { ac_try='test -s conftest$ac_exeext'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 eval "$as_ac_var=yes"
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 eval "$as_ac_var=no"
14428 rm -f conftest.err conftest.$ac_objext \
14429 conftest$ac_exeext conftest.$ac_ext
14431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14433 if test `eval echo '${'$as_ac_var'}'` = yes; then
14434 cat >>confdefs.h <<_ACEOF
14435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14442 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14444 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14445 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14446 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 ac_check_lib_save_LIBS=$LIBS
14451 cat >conftest.$ac_ext <<_ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h. */
14458 /* Override any gcc2 internal prototype to avoid an error. */
14462 /* We use char because int might match the return type of a gcc2
14463 builtin and then its argument prototype would still apply. */
14473 rm -f conftest.$ac_objext conftest$ac_exeext
14474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14475 (eval $ac_link) 2>conftest.er1
14477 grep -v '^ *+' conftest.er1 >conftest.err
14479 cat conftest.err >&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } &&
14482 { ac_try='test -z "$ac_c_werror_flag"
14483 || test ! -s conftest.err'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; } &&
14489 { ac_try='test -s conftest$ac_exeext'
14490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491 (eval $ac_try) 2>&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; }; then
14495 ac_cv_lib_V3_sigset=yes
14497 echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14500 ac_cv_lib_V3_sigset=no
14502 rm -f conftest.err conftest.$ac_objext \
14503 conftest$ac_exeext conftest.$ac_ext
14504 LIBS=$ac_check_lib_save_LIBS
14506 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14507 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14508 if test $ac_cv_lib_V3_sigset = yes; then
14509 cat >>confdefs.h <<_ACEOF
14510 #define HAVE_LIBV3 1
14519 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14520 echo "$as_me:$LINENO: checking for winsock" >&5
14521 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14522 if test "${ol_cv_winsock+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 for curlib in ws2_32 wsock32; do
14527 LIBS="$LIBS -l$curlib"
14528 cat >conftest.$ac_ext <<_ACEOF
14531 cat confdefs.h >>conftest.$ac_ext
14532 cat >>conftest.$ac_ext <<_ACEOF
14533 /* end confdefs.h. */
14534 #include <winsock.h>
14541 select(0,NULL,NULL,NULL,NULL);
14543 gethostname(NULL,0);
14549 rm -f conftest.$ac_objext conftest$ac_exeext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14551 (eval $ac_link) 2>conftest.er1
14553 grep -v '^ *+' conftest.er1 >conftest.err
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } &&
14558 { ac_try='test -z "$ac_c_werror_flag"
14559 || test ! -s conftest.err'
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; } &&
14565 { ac_try='test -s conftest$ac_exeext'
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; }; then
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14578 rm -f conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext conftest.$ac_ext
14581 if test $ol_cv_winsock = yes; then
14583 cat >>confdefs.h <<\_ACEOF
14584 #define HAVE_WINSOCK 1
14587 ac_cv_func_socket=yes
14588 ac_cv_func_select=yes
14589 ac_cv_func_closesocket=yes
14590 ac_cv_func_gethostname=yes
14591 if test $curlib = ws2_32; then
14592 ol_cv_winsock=winsock2
14594 cat >>confdefs.h <<\_ACEOF
14595 #define HAVE_WINSOCK2 1
14604 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14605 echo "${ECHO_T}$ol_cv_winsock" >&6
14609 echo "$as_me:$LINENO: checking for socket" >&5
14610 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14611 if test "${ac_cv_func_socket+set}" = set; then
14612 echo $ECHO_N "(cached) $ECHO_C" >&6
14614 cat >conftest.$ac_ext <<_ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14620 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14622 #define socket innocuous_socket
14624 /* System header to define __stub macros and hopefully few prototypes,
14625 which can conflict with char socket (); below.
14626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14627 <limits.h> exists even on freestanding compilers. */
14630 # include <limits.h>
14632 # include <assert.h>
14637 /* Override any gcc2 internal prototype to avoid an error. */
14642 /* We use char because int might match the return type of a gcc2
14643 builtin and then its argument prototype would still apply. */
14645 /* The GNU C library defines this for functions which it implements
14646 to always fail with ENOSYS. Some functions are actually named
14647 something starting with __ and the normal name is an alias. */
14648 #if defined (__stub_socket) || defined (__stub___socket)
14651 char (*f) () = socket;
14660 return f != socket;
14665 rm -f conftest.$ac_objext conftest$ac_exeext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14667 (eval $ac_link) 2>conftest.er1
14669 grep -v '^ *+' conftest.er1 >conftest.err
14671 cat conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
14674 { ac_try='test -z "$ac_c_werror_flag"
14675 || test ! -s conftest.err'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; } &&
14681 { ac_try='test -s conftest$ac_exeext'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 ac_cv_func_socket=yes
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14692 ac_cv_func_socket=no
14694 rm -f conftest.err conftest.$ac_objext \
14695 conftest$ac_exeext conftest.$ac_ext
14697 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14698 echo "${ECHO_T}$ac_cv_func_socket" >&6
14699 if test $ac_cv_func_socket = yes; then
14704 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14705 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14706 if test "${ac_cv_lib_socket_main+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14709 ac_check_lib_save_LIBS=$LIBS
14710 LIBS="-lsocket $LIBS"
14711 cat >conftest.$ac_ext <<_ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h. */
14727 rm -f conftest.$ac_objext conftest$ac_exeext
14728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14729 (eval $ac_link) 2>conftest.er1
14731 grep -v '^ *+' conftest.er1 >conftest.err
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try='test -z "$ac_c_werror_flag"
14737 || test ! -s conftest.err'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; } &&
14743 { ac_try='test -s conftest$ac_exeext'
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; }; then
14749 ac_cv_lib_socket_main=yes
14751 echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14754 ac_cv_lib_socket_main=no
14756 rm -f conftest.err conftest.$ac_objext \
14757 conftest$ac_exeext conftest.$ac_ext
14758 LIBS=$ac_check_lib_save_LIBS
14760 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14761 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14762 if test $ac_cv_lib_socket_main = yes; then
14763 cat >>confdefs.h <<_ACEOF
14764 #define HAVE_LIBSOCKET 1
14767 LIBS="-lsocket $LIBS"
14772 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14773 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14774 if test "${ac_cv_lib_net_main+set}" = set; then
14775 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 ac_check_lib_save_LIBS=$LIBS
14779 cat >conftest.$ac_ext <<_ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14795 rm -f conftest.$ac_objext conftest$ac_exeext
14796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14797 (eval $ac_link) 2>conftest.er1
14799 grep -v '^ *+' conftest.er1 >conftest.err
14801 cat conftest.err >&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -z "$ac_c_werror_flag"
14805 || test ! -s conftest.err'
14806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807 (eval $ac_try) 2>&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; } &&
14811 { ac_try='test -s conftest$ac_exeext'
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 ac_cv_lib_net_main=yes
14819 echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14822 ac_cv_lib_net_main=no
14824 rm -f conftest.err conftest.$ac_objext \
14825 conftest$ac_exeext conftest.$ac_ext
14826 LIBS=$ac_check_lib_save_LIBS
14828 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14829 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14830 if test $ac_cv_lib_net_main = yes; then
14831 cat >>confdefs.h <<_ACEOF
14832 #define HAVE_LIBNET 1
14840 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14841 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14842 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14845 ac_check_lib_save_LIBS=$LIBS
14846 LIBS="-lnsl_s $LIBS"
14847 cat >conftest.$ac_ext <<_ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14863 rm -f conftest.$ac_objext conftest$ac_exeext
14864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14865 (eval $ac_link) 2>conftest.er1
14867 grep -v '^ *+' conftest.er1 >conftest.err
14869 cat conftest.err >&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); } &&
14872 { ac_try='test -z "$ac_c_werror_flag"
14873 || test ! -s conftest.err'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; } &&
14879 { ac_try='test -s conftest$ac_exeext'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 ac_cv_lib_nsl_s_main=yes
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 ac_cv_lib_nsl_s_main=no
14892 rm -f conftest.err conftest.$ac_objext \
14893 conftest$ac_exeext conftest.$ac_ext
14894 LIBS=$ac_check_lib_save_LIBS
14896 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14897 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14898 if test $ac_cv_lib_nsl_s_main = yes; then
14899 cat >>confdefs.h <<_ACEOF
14900 #define HAVE_LIBNSL_S 1
14903 LIBS="-lnsl_s $LIBS"
14908 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14909 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14910 if test "${ac_cv_lib_nsl_main+set}" = set; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 ac_check_lib_save_LIBS=$LIBS
14915 cat >conftest.$ac_ext <<_ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14931 rm -f conftest.$ac_objext conftest$ac_exeext
14932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14933 (eval $ac_link) 2>conftest.er1
14935 grep -v '^ *+' conftest.er1 >conftest.err
14937 cat conftest.err >&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } &&
14940 { ac_try='test -z "$ac_c_werror_flag"
14941 || test ! -s conftest.err'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; } &&
14947 { ac_try='test -s conftest$ac_exeext'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; }; then
14953 ac_cv_lib_nsl_main=yes
14955 echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14958 ac_cv_lib_nsl_main=no
14960 rm -f conftest.err conftest.$ac_objext \
14961 conftest$ac_exeext conftest.$ac_ext
14962 LIBS=$ac_check_lib_save_LIBS
14964 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14965 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14966 if test $ac_cv_lib_nsl_main = yes; then
14967 cat >>confdefs.h <<_ACEOF
14968 #define HAVE_LIBNSL 1
14976 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14977 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14978 if test "${ac_cv_lib_inet_socket+set}" = set; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14981 ac_check_lib_save_LIBS=$LIBS
14982 LIBS="-linet $LIBS"
14983 cat >conftest.$ac_ext <<_ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h. */
14990 /* Override any gcc2 internal prototype to avoid an error. */
14994 /* We use char because int might match the return type of a gcc2
14995 builtin and then its argument prototype would still apply. */
15005 rm -f conftest.$ac_objext conftest$ac_exeext
15006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15007 (eval $ac_link) 2>conftest.er1
15009 grep -v '^ *+' conftest.er1 >conftest.err
15011 cat conftest.err >&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } &&
15014 { ac_try='test -z "$ac_c_werror_flag"
15015 || test ! -s conftest.err'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; } &&
15021 { ac_try='test -s conftest$ac_exeext'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
15027 ac_cv_lib_inet_socket=yes
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15032 ac_cv_lib_inet_socket=no
15034 rm -f conftest.err conftest.$ac_objext \
15035 conftest$ac_exeext conftest.$ac_ext
15036 LIBS=$ac_check_lib_save_LIBS
15038 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15039 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15040 if test $ac_cv_lib_inet_socket = yes; then
15041 cat >>confdefs.h <<_ACEOF
15042 #define HAVE_LIBINET 1
15045 LIBS="-linet $LIBS"
15050 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15051 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15052 if test "${ac_cv_lib_gen_main+set}" = set; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 ac_check_lib_save_LIBS=$LIBS
15057 cat >conftest.$ac_ext <<_ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15073 rm -f conftest.$ac_objext conftest$ac_exeext
15074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15075 (eval $ac_link) 2>conftest.er1
15077 grep -v '^ *+' conftest.er1 >conftest.err
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
15082 { ac_try='test -z "$ac_c_werror_flag"
15083 || test ! -s conftest.err'
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; } &&
15089 { ac_try='test -s conftest$ac_exeext'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 ac_cv_lib_gen_main=yes
15097 echo "$as_me: failed program was:" >&5
15098 sed 's/^/| /' conftest.$ac_ext >&5
15100 ac_cv_lib_gen_main=no
15102 rm -f conftest.err conftest.$ac_objext \
15103 conftest$ac_exeext conftest.$ac_ext
15104 LIBS=$ac_check_lib_save_LIBS
15106 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15107 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15108 if test $ac_cv_lib_gen_main = yes; then
15109 cat >>confdefs.h <<_ACEOF
15110 #define HAVE_LIBGEN 1
15121 echo "$as_me:$LINENO: checking for select" >&5
15122 echo $ECHO_N "checking for select... $ECHO_C" >&6
15123 if test "${ac_cv_func_select+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15126 cat >conftest.$ac_ext <<_ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15132 /* Define select to an innocuous variant, in case <limits.h> declares select.
15133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15134 #define select innocuous_select
15136 /* System header to define __stub macros and hopefully few prototypes,
15137 which can conflict with char select (); below.
15138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15139 <limits.h> exists even on freestanding compilers. */
15142 # include <limits.h>
15144 # include <assert.h>
15149 /* Override any gcc2 internal prototype to avoid an error. */
15154 /* We use char because int might match the return type of a gcc2
15155 builtin and then its argument prototype would still apply. */
15157 /* The GNU C library defines this for functions which it implements
15158 to always fail with ENOSYS. Some functions are actually named
15159 something starting with __ and the normal name is an alias. */
15160 #if defined (__stub_select) || defined (__stub___select)
15163 char (*f) () = select;
15172 return f != select;
15177 rm -f conftest.$ac_objext conftest$ac_exeext
15178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15179 (eval $ac_link) 2>conftest.er1
15181 grep -v '^ *+' conftest.er1 >conftest.err
15183 cat conftest.err >&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); } &&
15186 { ac_try='test -z "$ac_c_werror_flag"
15187 || test ! -s conftest.err'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; } &&
15193 { ac_try='test -s conftest$ac_exeext'
15194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195 (eval $ac_try) 2>&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; }; then
15199 ac_cv_func_select=yes
15201 echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15204 ac_cv_func_select=no
15206 rm -f conftest.err conftest.$ac_objext \
15207 conftest$ac_exeext conftest.$ac_ext
15209 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15210 echo "${ECHO_T}$ac_cv_func_select" >&6
15211 if test $ac_cv_func_select = yes; then
15214 { { echo "$as_me:$LINENO: error: select() required." >&5
15215 echo "$as_me: error: select() required." >&2;}
15216 { (exit 1); exit 1; }; }
15220 if test "${ac_cv_header_winsock_h}" != yes; then
15223 for ac_header in sys/select.h sys/socket.h
15225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15227 echo "$as_me:$LINENO: checking for $ac_header" >&5
15228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15235 # Is the header compilable?
15236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15238 cat >conftest.$ac_ext <<_ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15244 $ac_includes_default
15245 #include <$ac_header>
15247 rm -f conftest.$ac_objext
15248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15249 (eval $ac_compile) 2>conftest.er1
15251 grep -v '^ *+' conftest.er1 >conftest.err
15253 cat conftest.err >&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
15256 { ac_try='test -z "$ac_c_werror_flag"
15257 || test ! -s conftest.err'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; } &&
15263 { ac_try='test -s conftest.$ac_objext'
15264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265 (eval $ac_try) 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_header_compiler=yes
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ac_header_compiler=no
15276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15278 echo "${ECHO_T}$ac_header_compiler" >&6
15280 # Is the header present?
15281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15283 cat >conftest.$ac_ext <<_ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15289 #include <$ac_header>
15291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15294 grep -v '^ *+' conftest.er1 >conftest.err
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } >/dev/null; then
15299 if test -s conftest.err; then
15300 ac_cpp_err=$ac_c_preproc_warn_flag
15301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15308 if test -z "$ac_cpp_err"; then
15309 ac_header_preproc=yes
15311 echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15314 ac_header_preproc=no
15316 rm -f conftest.err conftest.$ac_ext
15317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15318 echo "${ECHO_T}$ac_header_preproc" >&6
15320 # So? What about this header?
15321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15327 ac_header_preproc=yes
15330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15344 ## --------------------------------------------- ##
15345 ## Report this to <http://www.openldap.org/its/> ##
15346 ## --------------------------------------------- ##
15349 sed "s/^/$as_me: WARNING: /" >&2
15352 echo "$as_me:$LINENO: checking for $ac_header" >&5
15353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 eval "$as_ac_Header=\$ac_header_preproc"
15359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15364 cat >>confdefs.h <<_ACEOF
15365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15372 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15373 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15374 if test "${ac_cv_func_select_args+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15378 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15379 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15380 cat >conftest.$ac_ext <<_ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 $ac_includes_default
15387 #if HAVE_SYS_SELECT_H
15388 # include <sys/select.h>
15390 #if HAVE_SYS_SOCKET_H
15391 # include <sys/socket.h>
15397 extern int select ($ac_arg1,
15398 $ac_arg234, $ac_arg234, $ac_arg234,
15404 rm -f conftest.$ac_objext
15405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15406 (eval $ac_compile) 2>conftest.er1
15408 grep -v '^ *+' conftest.er1 >conftest.err
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try='test -z "$ac_c_werror_flag"
15414 || test ! -s conftest.err'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; } &&
15420 { ac_try='test -s conftest.$ac_objext'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15436 # Provide a safe default value.
15437 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15440 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15441 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15442 ac_save_IFS=$IFS; IFS=','
15443 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15447 cat >>confdefs.h <<_ACEOF
15448 #define SELECT_TYPE_ARG1 $1
15452 cat >>confdefs.h <<_ACEOF
15453 #define SELECT_TYPE_ARG234 ($2)
15457 cat >>confdefs.h <<_ACEOF
15458 #define SELECT_TYPE_ARG5 ($3)
15467 for ac_func in poll
15469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15470 echo "$as_me:$LINENO: checking for $ac_func" >&5
15471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15472 if eval "test \"\${$as_ac_var+set}\" = set"; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 cat >conftest.$ac_ext <<_ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15483 #define $ac_func innocuous_$ac_func
15485 /* System header to define __stub macros and hopefully few prototypes,
15486 which can conflict with char $ac_func (); below.
15487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15488 <limits.h> exists even on freestanding compilers. */
15491 # include <limits.h>
15493 # include <assert.h>
15498 /* Override any gcc2 internal prototype to avoid an error. */
15503 /* We use char because int might match the return type of a gcc2
15504 builtin and then its argument prototype would still apply. */
15506 /* The GNU C library defines this for functions which it implements
15507 to always fail with ENOSYS. Some functions are actually named
15508 something starting with __ and the normal name is an alias. */
15509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15512 char (*f) () = $ac_func;
15521 return f != $ac_func;
15526 rm -f conftest.$ac_objext conftest$ac_exeext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15528 (eval $ac_link) 2>conftest.er1
15530 grep -v '^ *+' conftest.er1 >conftest.err
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -z "$ac_c_werror_flag"
15536 || test ! -s conftest.err'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest$ac_exeext'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 eval "$as_ac_var=yes"
15550 echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15553 eval "$as_ac_var=no"
15555 rm -f conftest.err conftest.$ac_objext \
15556 conftest$ac_exeext conftest.$ac_ext
15558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15560 if test `eval echo '${'$as_ac_var'}'` = yes; then
15561 cat >>confdefs.h <<_ACEOF
15562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15569 for ac_header in poll.h
15571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15573 echo "$as_me:$LINENO: checking for $ac_header" >&5
15574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15581 # Is the header compilable?
15582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15584 cat >conftest.$ac_ext <<_ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15590 $ac_includes_default
15591 #include <$ac_header>
15593 rm -f conftest.$ac_objext
15594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15595 (eval $ac_compile) 2>conftest.er1
15597 grep -v '^ *+' conftest.er1 >conftest.err
15599 cat conftest.err >&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
15602 { ac_try='test -z "$ac_c_werror_flag"
15603 || test ! -s conftest.err'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; } &&
15609 { ac_try='test -s conftest.$ac_objext'
15610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611 (eval $ac_try) 2>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; }; then
15615 ac_header_compiler=yes
15617 echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15620 ac_header_compiler=no
15622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15624 echo "${ECHO_T}$ac_header_compiler" >&6
15626 # Is the header present?
15627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15629 cat >conftest.$ac_ext <<_ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h. */
15635 #include <$ac_header>
15637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15640 grep -v '^ *+' conftest.er1 >conftest.err
15642 cat conftest.err >&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } >/dev/null; then
15645 if test -s conftest.err; then
15646 ac_cpp_err=$ac_c_preproc_warn_flag
15647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15654 if test -z "$ac_cpp_err"; then
15655 ac_header_preproc=yes
15657 echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15660 ac_header_preproc=no
15662 rm -f conftest.err conftest.$ac_ext
15663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15664 echo "${ECHO_T}$ac_header_preproc" >&6
15666 # So? What about this header?
15667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15673 ac_header_preproc=yes
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15690 ## --------------------------------------------- ##
15691 ## Report this to <http://www.openldap.org/its/> ##
15692 ## --------------------------------------------- ##
15695 sed "s/^/$as_me: WARNING: /" >&2
15698 echo "$as_me:$LINENO: checking for $ac_header" >&5
15699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 eval "$as_ac_Header=\$ac_header_preproc"
15705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15710 cat >>confdefs.h <<_ACEOF
15711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15720 for ac_header in sys/epoll.h
15722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15724 echo "$as_me:$LINENO: checking for $ac_header" >&5
15725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15732 # Is the header compilable?
15733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15735 cat >conftest.$ac_ext <<_ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 $ac_includes_default
15742 #include <$ac_header>
15744 rm -f conftest.$ac_objext
15745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15746 (eval $ac_compile) 2>conftest.er1
15748 grep -v '^ *+' conftest.er1 >conftest.err
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } &&
15753 { ac_try='test -z "$ac_c_werror_flag"
15754 || test ! -s conftest.err'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; } &&
15760 { ac_try='test -s conftest.$ac_objext'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }; then
15766 ac_header_compiler=yes
15768 echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 ac_header_compiler=no
15773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15775 echo "${ECHO_T}$ac_header_compiler" >&6
15777 # Is the header present?
15778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15780 cat >conftest.$ac_ext <<_ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 #include <$ac_header>
15788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15791 grep -v '^ *+' conftest.er1 >conftest.err
15793 cat conftest.err >&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } >/dev/null; then
15796 if test -s conftest.err; then
15797 ac_cpp_err=$ac_c_preproc_warn_flag
15798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15805 if test -z "$ac_cpp_err"; then
15806 ac_header_preproc=yes
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15811 ac_header_preproc=no
15813 rm -f conftest.err conftest.$ac_ext
15814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15815 echo "${ECHO_T}$ac_header_preproc" >&6
15817 # So? What about this header?
15818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15824 ac_header_preproc=yes
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15841 ## --------------------------------------------- ##
15842 ## Report this to <http://www.openldap.org/its/> ##
15843 ## --------------------------------------------- ##
15846 sed "s/^/$as_me: WARNING: /" >&2
15849 echo "$as_me:$LINENO: checking for $ac_header" >&5
15850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15854 eval "$as_ac_Header=\$ac_header_preproc"
15856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15861 cat >>confdefs.h <<_ACEOF
15862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15869 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15870 echo "$as_me:$LINENO: checking for epoll system call" >&5
15871 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15872 if test "$cross_compiling" = yes; then
15873 echo "$as_me:$LINENO: result: no" >&5
15874 echo "${ECHO_T}no" >&6
15876 cat >conftest.$ac_ext <<_ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 int main(int argc, char *argv)
15884 int epfd = epoll_create(256);
15885 exit (epfd == -1 ? 1 : 0);
15888 rm -f conftest$ac_exeext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15890 (eval $ac_link) 2>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 echo "$as_me:$LINENO: result: yes" >&5
15900 echo "${ECHO_T}yes" >&6
15902 cat >>confdefs.h <<\_ACEOF
15903 #define HAVE_EPOLL 1
15907 echo "$as_me: program exited with status $ac_status" >&5
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15911 ( exit $ac_status )
15912 echo "$as_me:$LINENO: result: no" >&5
15913 echo "${ECHO_T}no" >&6
15915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15920 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15921 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15922 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15926 cat >conftest.$ac_ext <<_ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h. */
15934 #include <sys/types.h>
15937 #include <stdlib.h>
15942 char *c = (char *) *sys_errlist
15947 rm -f conftest.$ac_objext
15948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15949 (eval $ac_compile) 2>conftest.er1
15951 grep -v '^ *+' conftest.er1 >conftest.err
15953 cat conftest.err >&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } &&
15956 { ac_try='test -z "$ac_c_werror_flag"
15957 || test ! -s conftest.err'
15958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959 (eval $ac_try) 2>&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; } &&
15963 { ac_try='test -s conftest.$ac_objext'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 ol_cv_dcl_sys_errlist=yes
15970 ol_cv_have_sys_errlist=yes
15972 echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15975 ol_cv_dcl_sys_errlist=no
15977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15979 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15980 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15982 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15983 if test $ol_cv_dcl_sys_errlist = no ; then
15985 cat >>confdefs.h <<\_ACEOF
15986 #define DECL_SYS_ERRLIST 1
15990 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15991 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15992 if test "${ol_cv_have_sys_errlist+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 cat >conftest.$ac_ext <<_ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16006 char *c = (char *) *sys_errlist
16011 rm -f conftest.$ac_objext conftest$ac_exeext
16012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16013 (eval $ac_link) 2>conftest.er1
16015 grep -v '^ *+' conftest.er1 >conftest.err
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
16020 { ac_try='test -z "$ac_c_werror_flag"
16021 || test ! -s conftest.err'
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; } &&
16027 { ac_try='test -s conftest$ac_exeext'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 ol_cv_have_sys_errlist=yes
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16038 ol_cv_have_sys_errlist=no
16040 rm -f conftest.err conftest.$ac_objext \
16041 conftest$ac_exeext conftest.$ac_ext
16043 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16044 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16046 if test $ol_cv_have_sys_errlist = yes ; then
16048 cat >>confdefs.h <<\_ACEOF
16049 #define HAVE_SYS_ERRLIST 1
16055 for ac_func in strerror strerror_r
16057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16058 echo "$as_me:$LINENO: checking for $ac_func" >&5
16059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16060 if eval "test \"\${$as_ac_var+set}\" = set"; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 cat >conftest.$ac_ext <<_ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16071 #define $ac_func innocuous_$ac_func
16073 /* System header to define __stub macros and hopefully few prototypes,
16074 which can conflict with char $ac_func (); below.
16075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16076 <limits.h> exists even on freestanding compilers. */
16079 # include <limits.h>
16081 # include <assert.h>
16086 /* Override any gcc2 internal prototype to avoid an error. */
16091 /* We use char because int might match the return type of a gcc2
16092 builtin and then its argument prototype would still apply. */
16094 /* The GNU C library defines this for functions which it implements
16095 to always fail with ENOSYS. Some functions are actually named
16096 something starting with __ and the normal name is an alias. */
16097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16100 char (*f) () = $ac_func;
16109 return f != $ac_func;
16114 rm -f conftest.$ac_objext conftest$ac_exeext
16115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16116 (eval $ac_link) 2>conftest.er1
16118 grep -v '^ *+' conftest.er1 >conftest.err
16120 cat conftest.err >&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } &&
16123 { ac_try='test -z "$ac_c_werror_flag"
16124 || test ! -s conftest.err'
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; } &&
16130 { ac_try='test -s conftest$ac_exeext'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; }; then
16136 eval "$as_ac_var=yes"
16138 echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16141 eval "$as_ac_var=no"
16143 rm -f conftest.err conftest.$ac_objext \
16144 conftest$ac_exeext conftest.$ac_ext
16146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16148 if test `eval echo '${'$as_ac_var'}'` = yes; then
16149 cat >>confdefs.h <<_ACEOF
16150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16156 ol_cv_func_strerror_r=no
16157 if test "${ac_cv_func_strerror_r}" = yes ; then
16158 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16159 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16160 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 cat >conftest.$ac_ext <<_ACEOF
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h. */
16170 #include <string.h>
16172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16173 $EGREP "strerror_r" >/dev/null 2>&1; then
16174 ol_decl_strerror_r=yes
16176 ol_decl_strerror_r=no
16180 if test $ol_decl_strerror_r = yes ; then
16181 cat >conftest.$ac_ext <<_ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 #include <string.h>
16191 /* from autoconf 2.59 */
16193 char x = *strerror_r (0, buf, sizeof buf);
16194 char *p = strerror_r (0, buf, sizeof buf);
16200 rm -f conftest.$ac_objext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16202 (eval $ac_compile) 2>conftest.er1
16204 grep -v '^ *+' conftest.er1 >conftest.err
16206 cat conftest.err >&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } &&
16209 { ac_try='test -z "$ac_c_werror_flag"
16210 || test ! -s conftest.err'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; } &&
16216 { ac_try='test -s conftest.$ac_objext'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; }; then
16222 ol_cv_nonposix_strerror_r=yes
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16227 ol_cv_nonposix_strerror_r=no
16229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16231 if test "$cross_compiling" = yes; then
16232 ol_cv_nonposix_strerror=no
16234 cat >conftest.$ac_ext <<_ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16244 strerror_r( 1, buf, sizeof buf );
16245 exit( buf[0] == 0 );
16249 rm -f conftest$ac_exeext
16250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16251 (eval $ac_link) 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 ol_cv_nonposix_strerror_r=yes
16262 echo "$as_me: program exited with status $ac_status" >&5
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 ( exit $ac_status )
16267 ol_cv_nonposix_strerror=no
16269 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16274 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16275 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16276 if test $ol_cv_nonposix_strerror_r = yes ; then
16278 cat >>confdefs.h <<\_ACEOF
16279 #define HAVE_NONPOSIX_STRERROR_R 1
16284 elif test "${ac_cv_func_strerror}" = no ; then
16285 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16286 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16287 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16291 cat >conftest.$ac_ext <<_ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16299 #include <sys/types.h>
16302 #include <stdlib.h>
16307 char *c = (char *) *sys_errlist
16312 rm -f conftest.$ac_objext
16313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16314 (eval $ac_compile) 2>conftest.er1
16316 grep -v '^ *+' conftest.er1 >conftest.err
16318 cat conftest.err >&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } &&
16321 { ac_try='test -z "$ac_c_werror_flag"
16322 || test ! -s conftest.err'
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; } &&
16328 { ac_try='test -s conftest.$ac_objext'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ol_cv_dcl_sys_errlist=yes
16335 ol_cv_have_sys_errlist=yes
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 ol_cv_dcl_sys_errlist=no
16342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16344 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16345 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16347 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16348 if test $ol_cv_dcl_sys_errlist = no ; then
16350 cat >>confdefs.h <<\_ACEOF
16351 #define DECL_SYS_ERRLIST 1
16355 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16356 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16357 if test "${ol_cv_have_sys_errlist+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 cat >conftest.$ac_ext <<_ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h. */
16371 char *c = (char *) *sys_errlist
16376 rm -f conftest.$ac_objext conftest$ac_exeext
16377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16378 (eval $ac_link) 2>conftest.er1
16380 grep -v '^ *+' conftest.er1 >conftest.err
16382 cat conftest.err >&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } &&
16385 { ac_try='test -z "$ac_c_werror_flag"
16386 || test ! -s conftest.err'
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; } &&
16392 { ac_try='test -s conftest$ac_exeext'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16398 ol_cv_have_sys_errlist=yes
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 ol_cv_have_sys_errlist=no
16405 rm -f conftest.err conftest.$ac_objext \
16406 conftest$ac_exeext conftest.$ac_ext
16408 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16409 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16411 if test $ol_cv_have_sys_errlist = yes ; then
16413 cat >>confdefs.h <<\_ACEOF
16414 #define HAVE_SYS_ERRLIST 1
16423 for ac_header in regex.h
16425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16427 echo "$as_me:$LINENO: checking for $ac_header" >&5
16428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16430 echo $ECHO_N "(cached) $ECHO_C" >&6
16432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16435 # Is the header compilable?
16436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16438 cat >conftest.$ac_ext <<_ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16444 $ac_includes_default
16445 #include <$ac_header>
16447 rm -f conftest.$ac_objext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16449 (eval $ac_compile) 2>conftest.er1
16451 grep -v '^ *+' conftest.er1 >conftest.err
16453 cat conftest.err >&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); } &&
16456 { ac_try='test -z "$ac_c_werror_flag"
16457 || test ! -s conftest.err'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; } &&
16463 { ac_try='test -s conftest.$ac_objext'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 ac_header_compiler=yes
16471 echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16474 ac_header_compiler=no
16476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16478 echo "${ECHO_T}$ac_header_compiler" >&6
16480 # Is the header present?
16481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16483 cat >conftest.$ac_ext <<_ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16489 #include <$ac_header>
16491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16494 grep -v '^ *+' conftest.er1 >conftest.err
16496 cat conftest.err >&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } >/dev/null; then
16499 if test -s conftest.err; then
16500 ac_cpp_err=$ac_c_preproc_warn_flag
16501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16508 if test -z "$ac_cpp_err"; then
16509 ac_header_preproc=yes
16511 echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16514 ac_header_preproc=no
16516 rm -f conftest.err conftest.$ac_ext
16517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16518 echo "${ECHO_T}$ac_header_preproc" >&6
16520 # So? What about this header?
16521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16527 ac_header_preproc=yes
16530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16544 ## --------------------------------------------- ##
16545 ## Report this to <http://www.openldap.org/its/> ##
16546 ## --------------------------------------------- ##
16549 sed "s/^/$as_me: WARNING: /" >&2
16552 echo "$as_me:$LINENO: checking for $ac_header" >&5
16553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 eval "$as_ac_Header=\$ac_header_preproc"
16559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16564 cat >>confdefs.h <<_ACEOF
16565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16572 if test "$ac_cv_header_regex_h" != yes ; then
16573 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16574 echo "$as_me: error: POSIX regex.h required." >&2;}
16575 { (exit 1); exit 1; }; }
16577 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16578 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16579 if test "${ac_cv_search_regfree+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16582 ac_func_search_save_LIBS=$LIBS
16583 ac_cv_search_regfree=no
16584 cat >conftest.$ac_ext <<_ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16591 /* Override any gcc2 internal prototype to avoid an error. */
16595 /* We use char because int might match the return type of a gcc2
16596 builtin and then its argument prototype would still apply. */
16606 rm -f conftest.$ac_objext conftest$ac_exeext
16607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16608 (eval $ac_link) 2>conftest.er1
16610 grep -v '^ *+' conftest.er1 >conftest.err
16612 cat conftest.err >&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } &&
16615 { ac_try='test -z "$ac_c_werror_flag"
16616 || test ! -s conftest.err'
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; } &&
16622 { ac_try='test -s conftest$ac_exeext'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_search_regfree="none required"
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16634 rm -f conftest.err conftest.$ac_objext \
16635 conftest$ac_exeext conftest.$ac_ext
16636 if test "$ac_cv_search_regfree" = no; then
16637 for ac_lib in regex gnuregex; do
16638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16639 cat >conftest.$ac_ext <<_ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h. */
16646 /* Override any gcc2 internal prototype to avoid an error. */
16650 /* We use char because int might match the return type of a gcc2
16651 builtin and then its argument prototype would still apply. */
16661 rm -f conftest.$ac_objext conftest$ac_exeext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16663 (eval $ac_link) 2>conftest.er1
16665 grep -v '^ *+' conftest.er1 >conftest.err
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -z "$ac_c_werror_flag"
16671 || test ! -s conftest.err'
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; } &&
16677 { ac_try='test -s conftest$ac_exeext'
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_cv_search_regfree="-l$ac_lib"
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16690 rm -f conftest.err conftest.$ac_objext \
16691 conftest$ac_exeext conftest.$ac_ext
16694 LIBS=$ac_func_search_save_LIBS
16696 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16697 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16698 if test "$ac_cv_search_regfree" != no; then
16699 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16702 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16703 echo "$as_me: error: POSIX regex required." >&2;}
16704 { (exit 1); exit 1; }; }
16709 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16710 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16711 if test "${ol_cv_c_posix_regex+set}" = set; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 if test "$cross_compiling" = yes; then
16716 ol_cv_c_posix_regex=cross
16718 cat >conftest.$ac_ext <<_ACEOF
16721 cat confdefs.h >>conftest.$ac_ext
16722 cat >>conftest.$ac_ext <<_ACEOF
16723 /* end confdefs.h. */
16725 #include <sys/types.h>
16727 static char *pattern, *string;
16735 if(regcomp(&re, pattern, 0)) {
16739 string = "ALL MATCH";
16741 rc = regexec(&re, string, 0, (void*)0, 0);
16748 rm -f conftest$ac_exeext
16749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16750 (eval $ac_link) 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; }; then
16759 ol_cv_c_posix_regex=yes
16761 echo "$as_me: program exited with status $ac_status" >&5
16762 echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16765 ( exit $ac_status )
16766 ol_cv_c_posix_regex=no
16768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16771 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16772 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16774 if test "$ol_cv_c_posix_regex" = no ; then
16775 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16776 echo "$as_me: error: broken POSIX regex!" >&2;}
16777 { (exit 1); exit 1; }; }
16783 for ac_header in sys/uuid.h
16785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16787 echo "$as_me:$LINENO: checking for $ac_header" >&5
16788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6
16792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16795 # Is the header compilable?
16796 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16798 cat >conftest.$ac_ext <<_ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 $ac_includes_default
16805 #include <$ac_header>
16807 rm -f conftest.$ac_objext
16808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16809 (eval $ac_compile) 2>conftest.er1
16811 grep -v '^ *+' conftest.er1 >conftest.err
16813 cat conftest.err >&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -z "$ac_c_werror_flag"
16817 || test ! -s conftest.err'
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; } &&
16823 { ac_try='test -s conftest.$ac_objext'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 ac_header_compiler=yes
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 ac_header_compiler=no
16836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16838 echo "${ECHO_T}$ac_header_compiler" >&6
16840 # Is the header present?
16841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16843 cat >conftest.$ac_ext <<_ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 #include <$ac_header>
16851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16854 grep -v '^ *+' conftest.er1 >conftest.err
16856 cat conftest.err >&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } >/dev/null; then
16859 if test -s conftest.err; then
16860 ac_cpp_err=$ac_c_preproc_warn_flag
16861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16868 if test -z "$ac_cpp_err"; then
16869 ac_header_preproc=yes
16871 echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16874 ac_header_preproc=no
16876 rm -f conftest.err conftest.$ac_ext
16877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16878 echo "${ECHO_T}$ac_header_preproc" >&6
16880 # So? What about this header?
16881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16887 ac_header_preproc=yes
16890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16904 ## --------------------------------------------- ##
16905 ## Report this to <http://www.openldap.org/its/> ##
16906 ## --------------------------------------------- ##
16909 sed "s/^/$as_me: WARNING: /" >&2
16912 echo "$as_me:$LINENO: checking for $ac_header" >&5
16913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16915 echo $ECHO_N "(cached) $ECHO_C" >&6
16917 eval "$as_ac_Header=\$ac_header_preproc"
16919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16924 cat >>confdefs.h <<_ACEOF
16925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16932 if test $ac_cv_header_sys_uuid_h = yes ; then
16934 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16935 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16936 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16939 ac_func_search_save_LIBS=$LIBS
16940 ac_cv_search_uuid_to_str=no
16941 cat >conftest.$ac_ext <<_ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16948 /* Override any gcc2 internal prototype to avoid an error. */
16952 /* We use char because int might match the return type of a gcc2
16953 builtin and then its argument prototype would still apply. */
16954 char uuid_to_str ();
16963 rm -f conftest.$ac_objext conftest$ac_exeext
16964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16965 (eval $ac_link) 2>conftest.er1
16967 grep -v '^ *+' conftest.er1 >conftest.err
16969 cat conftest.err >&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); } &&
16972 { ac_try='test -z "$ac_c_werror_flag"
16973 || test ! -s conftest.err'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; } &&
16979 { ac_try='test -s conftest$ac_exeext'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; }; then
16985 ac_cv_search_uuid_to_str="none required"
16987 echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16991 rm -f conftest.err conftest.$ac_objext \
16992 conftest$ac_exeext conftest.$ac_ext
16993 if test "$ac_cv_search_uuid_to_str" = no; then
16994 for ac_lib in uuid; do
16995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16996 cat >conftest.$ac_ext <<_ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17003 /* Override any gcc2 internal prototype to avoid an error. */
17007 /* We use char because int might match the return type of a gcc2
17008 builtin and then its argument prototype would still apply. */
17009 char uuid_to_str ();
17018 rm -f conftest.$ac_objext conftest$ac_exeext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17020 (eval $ac_link) 2>conftest.er1
17022 grep -v '^ *+' conftest.er1 >conftest.err
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -z "$ac_c_werror_flag"
17028 || test ! -s conftest.err'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest$ac_exeext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_cv_search_uuid_to_str="-l$ac_lib"
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17047 rm -f conftest.err conftest.$ac_objext \
17048 conftest$ac_exeext conftest.$ac_ext
17051 LIBS=$ac_func_search_save_LIBS
17053 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17054 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17055 if test "$ac_cv_search_uuid_to_str" != no; then
17056 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17064 if test have_uuid = yes ; then
17066 cat >>confdefs.h <<\_ACEOF
17067 #define HAVE_UUID_TO_STR 1
17071 test "$ac_cv_search_uuid_to_str" = "none required" || \
17072 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17076 if test $have_uuid = no ; then
17077 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17078 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17080 LIBS="$LIBS -lrpcrt4"
17081 cat >conftest.$ac_ext <<_ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17088 int __stdcall UuidCreate(void *);
17089 int __stdcall UuidToStringA(void *,void **);
17096 UuidToStringA(0,0);
17102 rm -f conftest.$ac_objext conftest$ac_exeext
17103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17104 (eval $ac_link) 2>conftest.er1
17106 grep -v '^ *+' conftest.er1 >conftest.err
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
17111 { ac_try='test -z "$ac_c_werror_flag"
17112 || test ! -s conftest.err'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } &&
17118 { ac_try='test -s conftest$ac_exeext'
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17131 rm -f conftest.err conftest.$ac_objext \
17132 conftest$ac_exeext conftest.$ac_ext
17133 if test $need_rpcrt = yes; then
17134 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17137 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17138 echo "${ECHO_T}$need_rpcrt" >&6
17141 ol_cv_lib_resolver=no
17142 if test $ol_cv_lib_resolver = no ; then
17143 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17144 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17145 if test "${ol_cv_resolver_none+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 LIBS="$ol_RESOLVER_LIB $LIBS"
17153 cat >conftest.$ac_ext <<_ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17160 #ifdef HAVE_SYS_TYPES_H
17161 # include <sys/types.h>
17163 #include <netinet/in.h>
17164 #ifdef HAVE_ARPA_NAMESER_H
17165 # include <arpa/nameser.h>
17167 #ifdef HAVE_RESOLV_H
17168 # include <resolv.h>
17176 char *request = NULL;
17177 unsigned char reply[64*1024];
17178 unsigned char host[64*1024];
17182 /* Bind 8/9 interface */
17183 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17185 /* Bind 4 interface */
17189 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17193 /* Bind 8/9 interface */
17195 #elif defined(HFIXEDSZ)
17196 /* Bind 4 interface w/ HFIXEDSZ */
17199 /* Bind 4 interface w/o HFIXEDSZ */
17200 p += sizeof(HEADER);
17202 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17210 (eval $ac_link) 2>conftest.er1
17212 grep -v '^ *+' conftest.er1 >conftest.err
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try='test -z "$ac_c_werror_flag"
17218 || test ! -s conftest.err'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; } &&
17224 { ac_try='test -s conftest$ac_exeext'
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; }; then
17230 ol_cv_resolver_none=yes
17232 echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17235 ol_cv_resolver_none=no
17237 rm -f conftest.err conftest.$ac_objext \
17238 conftest$ac_exeext conftest.$ac_ext
17243 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17244 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17246 if test $ol_cv_resolver_none = yes ; then
17247 ol_cv_lib_resolver=yes
17251 if test $ol_cv_lib_resolver = no ; then
17252 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17253 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17254 if test "${ol_cv_resolver_resolv+set}" = set; then
17255 echo $ECHO_N "(cached) $ECHO_C" >&6
17258 ol_RESOLVER_LIB=-lresolv
17260 LIBS="$ol_RESOLVER_LIB $LIBS"
17262 cat >conftest.$ac_ext <<_ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17269 #ifdef HAVE_SYS_TYPES_H
17270 # include <sys/types.h>
17272 #include <netinet/in.h>
17273 #ifdef HAVE_ARPA_NAMESER_H
17274 # include <arpa/nameser.h>
17276 #ifdef HAVE_RESOLV_H
17277 # include <resolv.h>
17285 char *request = NULL;
17286 unsigned char reply[64*1024];
17287 unsigned char host[64*1024];
17291 /* Bind 8/9 interface */
17292 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17294 /* Bind 4 interface */
17298 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17302 /* Bind 8/9 interface */
17304 #elif defined(HFIXEDSZ)
17305 /* Bind 4 interface w/ HFIXEDSZ */
17308 /* Bind 4 interface w/o HFIXEDSZ */
17309 p += sizeof(HEADER);
17311 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17317 rm -f conftest.$ac_objext conftest$ac_exeext
17318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17319 (eval $ac_link) 2>conftest.er1
17321 grep -v '^ *+' conftest.er1 >conftest.err
17323 cat conftest.err >&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } &&
17326 { ac_try='test -z "$ac_c_werror_flag"
17327 || test ! -s conftest.err'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; } &&
17333 { ac_try='test -s conftest$ac_exeext'
17334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335 (eval $ac_try) 2>&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; }; then
17339 ol_cv_resolver_resolv=yes
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17344 ol_cv_resolver_resolv=no
17346 rm -f conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
17352 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17353 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17355 if test $ol_cv_resolver_resolv = yes ; then
17356 ol_cv_lib_resolver=-lresolv
17360 if test $ol_cv_lib_resolver = no ; then
17361 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17362 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17363 if test "${ol_cv_resolver_bind+set}" = set; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 ol_RESOLVER_LIB=-lbind
17369 LIBS="$ol_RESOLVER_LIB $LIBS"
17371 cat >conftest.$ac_ext <<_ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17378 #ifdef HAVE_SYS_TYPES_H
17379 # include <sys/types.h>
17381 #include <netinet/in.h>
17382 #ifdef HAVE_ARPA_NAMESER_H
17383 # include <arpa/nameser.h>
17385 #ifdef HAVE_RESOLV_H
17386 # include <resolv.h>
17394 char *request = NULL;
17395 unsigned char reply[64*1024];
17396 unsigned char host[64*1024];
17400 /* Bind 8/9 interface */
17401 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17403 /* Bind 4 interface */
17407 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17411 /* Bind 8/9 interface */
17413 #elif defined(HFIXEDSZ)
17414 /* Bind 4 interface w/ HFIXEDSZ */
17417 /* Bind 4 interface w/o HFIXEDSZ */
17418 p += sizeof(HEADER);
17420 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17426 rm -f conftest.$ac_objext conftest$ac_exeext
17427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17428 (eval $ac_link) 2>conftest.er1
17430 grep -v '^ *+' conftest.er1 >conftest.err
17432 cat conftest.err >&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } &&
17435 { ac_try='test -z "$ac_c_werror_flag"
17436 || test ! -s conftest.err'
17437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438 (eval $ac_try) 2>&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest$ac_exeext'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; }; then
17448 ol_cv_resolver_bind=yes
17450 echo "$as_me: failed program was:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17453 ol_cv_resolver_bind=no
17455 rm -f conftest.err conftest.$ac_objext \
17456 conftest$ac_exeext conftest.$ac_ext
17461 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17462 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17464 if test $ol_cv_resolver_bind = yes ; then
17465 ol_cv_lib_resolver=-lbind
17472 if test "$ol_cv_lib_resolver" != no ; then
17474 cat >>confdefs.h <<\_ACEOF
17475 #define HAVE_RES_QUERY 1
17479 if test "$ol_enable_dnssrv" != no ; then
17483 if test "$ol_cv_lib_resolver" != yes ; then
17484 LIBS="$ol_cv_lib_resolver $LIBS"
17488 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17489 if test "$ol_link_dnssrv" = no ; then
17490 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17491 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17492 { (exit 1); exit 1; }; }
17495 ol_enable_dnssrv=no
17499 for ac_func in hstrerror
17501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17502 echo "$as_me:$LINENO: checking for $ac_func" >&5
17503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17504 if eval "test \"\${$as_ac_var+set}\" = set"; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
17507 cat >conftest.$ac_ext <<_ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h. */
17513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17515 #define $ac_func innocuous_$ac_func
17517 /* System header to define __stub macros and hopefully few prototypes,
17518 which can conflict with char $ac_func (); below.
17519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17520 <limits.h> exists even on freestanding compilers. */
17523 # include <limits.h>
17525 # include <assert.h>
17530 /* Override any gcc2 internal prototype to avoid an error. */
17535 /* We use char because int might match the return type of a gcc2
17536 builtin and then its argument prototype would still apply. */
17538 /* The GNU C library defines this for functions which it implements
17539 to always fail with ENOSYS. Some functions are actually named
17540 something starting with __ and the normal name is an alias. */
17541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17544 char (*f) () = $ac_func;
17553 return f != $ac_func;
17558 rm -f conftest.$ac_objext conftest$ac_exeext
17559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17560 (eval $ac_link) 2>conftest.er1
17562 grep -v '^ *+' conftest.er1 >conftest.err
17564 cat conftest.err >&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); } &&
17567 { ac_try='test -z "$ac_c_werror_flag"
17568 || test ! -s conftest.err'
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; } &&
17574 { ac_try='test -s conftest$ac_exeext'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 eval "$as_ac_var=yes"
17582 echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17585 eval "$as_ac_var=no"
17587 rm -f conftest.err conftest.$ac_objext \
17588 conftest$ac_exeext conftest.$ac_ext
17590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17592 if test `eval echo '${'$as_ac_var'}'` = yes; then
17593 cat >>confdefs.h <<_ACEOF
17594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17605 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17608 echo "$as_me:$LINENO: checking for $ac_func" >&5
17609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17610 if eval "test \"\${$as_ac_var+set}\" = set"; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 cat >conftest.$ac_ext <<_ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17621 #define $ac_func innocuous_$ac_func
17623 /* System header to define __stub macros and hopefully few prototypes,
17624 which can conflict with char $ac_func (); below.
17625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17626 <limits.h> exists even on freestanding compilers. */
17629 # include <limits.h>
17631 # include <assert.h>
17636 /* Override any gcc2 internal prototype to avoid an error. */
17641 /* We use char because int might match the return type of a gcc2
17642 builtin and then its argument prototype would still apply. */
17644 /* The GNU C library defines this for functions which it implements
17645 to always fail with ENOSYS. Some functions are actually named
17646 something starting with __ and the normal name is an alias. */
17647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17650 char (*f) () = $ac_func;
17659 return f != $ac_func;
17664 rm -f conftest.$ac_objext conftest$ac_exeext
17665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17666 (eval $ac_link) 2>conftest.er1
17668 grep -v '^ *+' conftest.er1 >conftest.err
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } &&
17673 { ac_try='test -z "$ac_c_werror_flag"
17674 || test ! -s conftest.err'
17675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676 (eval $ac_try) 2>&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; } &&
17680 { ac_try='test -s conftest$ac_exeext'
17681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
17686 eval "$as_ac_var=yes"
17688 echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17691 eval "$as_ac_var=no"
17693 rm -f conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
17696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17698 if test `eval echo '${'$as_ac_var'}'` = yes; then
17699 cat >>confdefs.h <<_ACEOF
17700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17708 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17709 if test $ol_enable_ipv6 = yes ; then
17710 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17711 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17712 { (exit 1); exit 1; }; }
17714 elif test $ol_enable_ipv6 != no ; then
17715 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17716 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17717 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17721 cat >conftest.$ac_ext <<_ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h. */
17728 # include <netinet/in.h>
17729 # ifdef INET6_ADDRSTRLEN
17730 __has_inet6_addrstrlen__;
17734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17735 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17736 ol_cv_inet6_addrstrlen=yes
17738 ol_cv_inet6_addrstrlen=no
17743 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17744 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17747 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17748 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17749 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17753 cat >conftest.$ac_ext <<_ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17760 #include <sys/types.h>
17761 #include <sys/socket.h>
17767 struct sockaddr_storage ss;
17773 rm -f conftest.$ac_objext
17774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17775 (eval $ac_compile) 2>conftest.er1
17777 grep -v '^ *+' conftest.er1 >conftest.err
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
17782 { ac_try='test -z "$ac_c_werror_flag"
17783 || test ! -s conftest.err'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; } &&
17789 { ac_try='test -s conftest.$ac_objext'
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 ol_cv_struct_sockaddr_storage=yes
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 ol_cv_struct_sockaddr_storage=no
17802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17804 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17805 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17807 if test $ol_cv_inet6_addrstrlen = yes &&
17808 test $ol_cv_struct_sockaddr_storage = yes ; then
17810 elif test $ol_enable_ipv6 = yes &&
17811 test $ol_cv_inet6_addrstrlen = no ; then
17812 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17813 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17814 { (exit 1); exit 1; }; }
17815 elif test $ol_enable_ipv6 = yes &&
17816 test $ol_cv_struct_sockaddr_storage = no ; then
17817 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17818 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17819 { (exit 1); exit 1; }; }
17823 if test $ol_enable_local != no ; then
17825 for ac_header in sys/un.h
17827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17829 echo "$as_me:$LINENO: checking for $ac_header" >&5
17830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17832 echo $ECHO_N "(cached) $ECHO_C" >&6
17834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17837 # Is the header compilable?
17838 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17840 cat >conftest.$ac_ext <<_ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h. */
17846 $ac_includes_default
17847 #include <$ac_header>
17849 rm -f conftest.$ac_objext
17850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17851 (eval $ac_compile) 2>conftest.er1
17853 grep -v '^ *+' conftest.er1 >conftest.err
17855 cat conftest.err >&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); } &&
17858 { ac_try='test -z "$ac_c_werror_flag"
17859 || test ! -s conftest.err'
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; } &&
17865 { ac_try='test -s conftest.$ac_objext'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; }; then
17871 ac_header_compiler=yes
17873 echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17876 ac_header_compiler=no
17878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17880 echo "${ECHO_T}$ac_header_compiler" >&6
17882 # Is the header present?
17883 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17885 cat >conftest.$ac_ext <<_ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17891 #include <$ac_header>
17893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17896 grep -v '^ *+' conftest.er1 >conftest.err
17898 cat conftest.err >&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } >/dev/null; then
17901 if test -s conftest.err; then
17902 ac_cpp_err=$ac_c_preproc_warn_flag
17903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17910 if test -z "$ac_cpp_err"; then
17911 ac_header_preproc=yes
17913 echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.$ac_ext >&5
17916 ac_header_preproc=no
17918 rm -f conftest.err conftest.$ac_ext
17919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17920 echo "${ECHO_T}$ac_header_preproc" >&6
17922 # So? What about this header?
17923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17929 ac_header_preproc=yes
17932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17946 ## --------------------------------------------- ##
17947 ## Report this to <http://www.openldap.org/its/> ##
17948 ## --------------------------------------------- ##
17951 sed "s/^/$as_me: WARNING: /" >&2
17954 echo "$as_me:$LINENO: checking for $ac_header" >&5
17955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 eval "$as_ac_Header=\$ac_header_preproc"
17961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17966 cat >>confdefs.h <<_ACEOF
17967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17975 if test $ol_enable_local = auto ; then
17976 ol_enable_local=$ac_cv_header_sys_un_h
17977 elif test $ac_cv_header_sys_un_h = no ; then
17978 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17979 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17980 { (exit 1); exit 1; }; }
17988 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17991 for ac_header in krb5.h
17993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17995 echo "$as_me:$LINENO: checking for $ac_header" >&5
17996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
18000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18003 # Is the header compilable?
18004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18006 cat >conftest.$ac_ext <<_ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 $ac_includes_default
18013 #include <$ac_header>
18015 rm -f conftest.$ac_objext
18016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18017 (eval $ac_compile) 2>conftest.er1
18019 grep -v '^ *+' conftest.er1 >conftest.err
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } &&
18024 { ac_try='test -z "$ac_c_werror_flag"
18025 || test ! -s conftest.err'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; } &&
18031 { ac_try='test -s conftest.$ac_objext'
18032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033 (eval $ac_try) 2>&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; }; then
18037 ac_header_compiler=yes
18039 echo "$as_me: failed program was:" >&5
18040 sed 's/^/| /' conftest.$ac_ext >&5
18042 ac_header_compiler=no
18044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18046 echo "${ECHO_T}$ac_header_compiler" >&6
18048 # Is the header present?
18049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18051 cat >conftest.$ac_ext <<_ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18057 #include <$ac_header>
18059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18062 grep -v '^ *+' conftest.er1 >conftest.err
18064 cat conftest.err >&5
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); } >/dev/null; then
18067 if test -s conftest.err; then
18068 ac_cpp_err=$ac_c_preproc_warn_flag
18069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18076 if test -z "$ac_cpp_err"; then
18077 ac_header_preproc=yes
18079 echo "$as_me: failed program was:" >&5
18080 sed 's/^/| /' conftest.$ac_ext >&5
18082 ac_header_preproc=no
18084 rm -f conftest.err conftest.$ac_ext
18085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18086 echo "${ECHO_T}$ac_header_preproc" >&6
18088 # So? What about this header?
18089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18095 ac_header_preproc=yes
18098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18112 ## --------------------------------------------- ##
18113 ## Report this to <http://www.openldap.org/its/> ##
18114 ## --------------------------------------------- ##
18117 sed "s/^/$as_me: WARNING: /" >&2
18120 echo "$as_me:$LINENO: checking for $ac_header" >&5
18121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18125 eval "$as_ac_Header=\$ac_header_preproc"
18127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18132 cat >>confdefs.h <<_ACEOF
18133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18141 if test $ac_cv_header_krb5_h = yes ; then
18143 for ac_header in heim_err.h
18145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18147 echo "$as_me:$LINENO: checking for $ac_header" >&5
18148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18155 # Is the header compilable?
18156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18158 cat >conftest.$ac_ext <<_ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 $ac_includes_default
18165 #include <$ac_header>
18167 rm -f conftest.$ac_objext
18168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18169 (eval $ac_compile) 2>conftest.er1
18171 grep -v '^ *+' conftest.er1 >conftest.err
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
18176 { ac_try='test -z "$ac_c_werror_flag"
18177 || test ! -s conftest.err'
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; } &&
18183 { ac_try='test -s conftest.$ac_objext'
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; }; then
18189 ac_header_compiler=yes
18191 echo "$as_me: failed program was:" >&5
18192 sed 's/^/| /' conftest.$ac_ext >&5
18194 ac_header_compiler=no
18196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18198 echo "${ECHO_T}$ac_header_compiler" >&6
18200 # Is the header present?
18201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18203 cat >conftest.$ac_ext <<_ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h. */
18209 #include <$ac_header>
18211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18214 grep -v '^ *+' conftest.er1 >conftest.err
18216 cat conftest.err >&5
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } >/dev/null; then
18219 if test -s conftest.err; then
18220 ac_cpp_err=$ac_c_preproc_warn_flag
18221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18228 if test -z "$ac_cpp_err"; then
18229 ac_header_preproc=yes
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18234 ac_header_preproc=no
18236 rm -f conftest.err conftest.$ac_ext
18237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18238 echo "${ECHO_T}$ac_header_preproc" >&6
18240 # So? What about this header?
18241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18247 ac_header_preproc=yes
18250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18264 ## --------------------------------------------- ##
18265 ## Report this to <http://www.openldap.org/its/> ##
18266 ## --------------------------------------------- ##
18269 sed "s/^/$as_me: WARNING: /" >&2
18272 echo "$as_me:$LINENO: checking for $ac_header" >&5
18273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18277 eval "$as_ac_Header=\$ac_header_preproc"
18279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18284 cat >>confdefs.h <<_ACEOF
18285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18292 if test $ac_cv_header_heim_err_h = yes ; then
18298 if test $krb5_impl = mit; then
18299 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18300 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18301 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18304 ac_check_lib_save_LIBS=$LIBS
18305 LIBS="-lk5crypto $LIBS"
18306 cat >conftest.$ac_ext <<_ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18322 rm -f conftest.$ac_objext conftest$ac_exeext
18323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18324 (eval $ac_link) 2>conftest.er1
18326 grep -v '^ *+' conftest.er1 >conftest.err
18328 cat conftest.err >&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } &&
18331 { ac_try='test -z "$ac_c_werror_flag"
18332 || test ! -s conftest.err'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest$ac_exeext'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_cv_lib_k5crypto_main=yes
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18349 ac_cv_lib_k5crypto_main=no
18351 rm -f conftest.err conftest.$ac_objext \
18352 conftest$ac_exeext conftest.$ac_ext
18353 LIBS=$ac_check_lib_save_LIBS
18355 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18356 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18357 if test $ac_cv_lib_k5crypto_main = yes; then
18358 krb5crypto=k5crypto
18364 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18365 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18366 if test "${ac_cv_lib_krb5_main+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 ac_check_lib_save_LIBS=$LIBS
18370 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18371 cat >conftest.$ac_ext <<_ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18389 (eval $ac_link) 2>conftest.er1
18391 grep -v '^ *+' conftest.er1 >conftest.err
18393 cat conftest.err >&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try='test -z "$ac_c_werror_flag"
18397 || test ! -s conftest.err'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; } &&
18403 { ac_try='test -s conftest$ac_exeext'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 ac_cv_lib_krb5_main=yes
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 ac_cv_lib_krb5_main=no
18416 rm -f conftest.err conftest.$ac_objext \
18417 conftest$ac_exeext conftest.$ac_ext
18418 LIBS=$ac_check_lib_save_LIBS
18420 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18421 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18422 if test $ac_cv_lib_krb5_main = yes; then
18424 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18430 elif test $krb5_impl = heimdal; then
18431 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18432 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18433 if test "${ac_cv_lib_des_main+set}" = set; then
18434 echo $ECHO_N "(cached) $ECHO_C" >&6
18436 ac_check_lib_save_LIBS=$LIBS
18438 cat >conftest.$ac_ext <<_ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h. */
18454 rm -f conftest.$ac_objext conftest$ac_exeext
18455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18456 (eval $ac_link) 2>conftest.er1
18458 grep -v '^ *+' conftest.er1 >conftest.err
18460 cat conftest.err >&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
18463 { ac_try='test -z "$ac_c_werror_flag"
18464 || test ! -s conftest.err'
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try='test -s conftest$ac_exeext'
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 ac_cv_lib_des_main=yes
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 ac_cv_lib_des_main=no
18483 rm -f conftest.err conftest.$ac_objext \
18484 conftest$ac_exeext conftest.$ac_ext
18485 LIBS=$ac_check_lib_save_LIBS
18487 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18488 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18489 if test $ac_cv_lib_des_main = yes; then
18496 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18497 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18498 if test "${ac_cv_lib_krb5_main+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18501 ac_check_lib_save_LIBS=$LIBS
18502 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18503 cat >conftest.$ac_ext <<_ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18519 rm -f conftest.$ac_objext conftest$ac_exeext
18520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18521 (eval $ac_link) 2>conftest.er1
18523 grep -v '^ *+' conftest.er1 >conftest.err
18525 cat conftest.err >&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); } &&
18528 { ac_try='test -z "$ac_c_werror_flag"
18529 || test ! -s conftest.err'
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; } &&
18535 { ac_try='test -s conftest$ac_exeext'
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 ac_cv_lib_krb5_main=yes
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 ac_cv_lib_krb5_main=no
18548 rm -f conftest.err conftest.$ac_objext \
18549 conftest$ac_exeext conftest.$ac_ext
18550 LIBS=$ac_check_lib_save_LIBS
18552 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18553 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18554 if test $ac_cv_lib_krb5_main = yes; then
18556 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18563 cat >>confdefs.h <<\_ACEOF
18564 #define HAVE_HEIMDAL_KERBEROS 1
18570 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18571 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18574 if test $have_krb5 = yes ; then
18578 cat >>confdefs.h <<\_ACEOF
18579 #define HAVE_KRB5 1
18583 if test $ol_with_kerberos = k5only ; then
18584 ol_with_kerberos=found
18587 elif test $ol_with_kerberos != auto ; then
18588 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18589 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18590 { (exit 1); exit 1; }; }
18597 if test $ol_link_krb5 = yes &&
18598 { test $ol_with_kerberos = yes ||
18599 test $ol_with_kerberos = auto ||
18600 test $ol_with_kerberos = k425; }; then
18604 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18608 echo "$as_me:$LINENO: checking for $ac_header" >&5
18609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18611 echo $ECHO_N "(cached) $ECHO_C" >&6
18613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18616 # Is the header compilable?
18617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18619 cat >conftest.$ac_ext <<_ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18625 $ac_includes_default
18626 #include <$ac_header>
18628 rm -f conftest.$ac_objext
18629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18630 (eval $ac_compile) 2>conftest.er1
18632 grep -v '^ *+' conftest.er1 >conftest.err
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
18637 { ac_try='test -z "$ac_c_werror_flag"
18638 || test ! -s conftest.err'
18639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640 (eval $ac_try) 2>&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; } &&
18644 { ac_try='test -s conftest.$ac_objext'
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_header_compiler=yes
18652 echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18655 ac_header_compiler=no
18657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18659 echo "${ECHO_T}$ac_header_compiler" >&6
18661 # Is the header present?
18662 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18664 cat >conftest.$ac_ext <<_ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h. */
18670 #include <$ac_header>
18672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18675 grep -v '^ *+' conftest.er1 >conftest.err
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } >/dev/null; then
18680 if test -s conftest.err; then
18681 ac_cpp_err=$ac_c_preproc_warn_flag
18682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18689 if test -z "$ac_cpp_err"; then
18690 ac_header_preproc=yes
18692 echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18695 ac_header_preproc=no
18697 rm -f conftest.err conftest.$ac_ext
18698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18699 echo "${ECHO_T}$ac_header_preproc" >&6
18701 # So? What about this header?
18702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18708 ac_header_preproc=yes
18711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18718 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18725 ## --------------------------------------------- ##
18726 ## Report this to <http://www.openldap.org/its/> ##
18727 ## --------------------------------------------- ##
18730 sed "s/^/$as_me: WARNING: /" >&2
18733 echo "$as_me:$LINENO: checking for $ac_header" >&5
18734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18738 eval "$as_ac_Header=\$ac_header_preproc"
18740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18745 cat >>confdefs.h <<_ACEOF
18746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18754 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18755 if test $krb5_impl = mit; then
18756 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18757 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18758 if test "${ac_cv_lib_krb4_main+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 ac_check_lib_save_LIBS=$LIBS
18762 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18763 cat >conftest.$ac_ext <<_ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18779 rm -f conftest.$ac_objext conftest$ac_exeext
18780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18781 (eval $ac_link) 2>conftest.er1
18783 grep -v '^ *+' conftest.er1 >conftest.err
18785 cat conftest.err >&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } &&
18788 { ac_try='test -z "$ac_c_werror_flag"
18789 || test ! -s conftest.err'
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest$ac_exeext'
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 ac_cv_lib_krb4_main=yes
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_cv_lib_krb4_main=no
18808 rm -f conftest.err conftest.$ac_objext \
18809 conftest$ac_exeext conftest.$ac_ext
18810 LIBS=$ac_check_lib_save_LIBS
18812 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18813 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18814 if test $ac_cv_lib_krb4_main = yes; then
18816 KRB4_LIBS="-lkrb4 -ldes425"
18822 elif test $krb5_impl = heimdal; then
18823 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18824 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18825 if test "${ac_cv_lib_krb4_main+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 ac_check_lib_save_LIBS=$LIBS
18829 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18830 cat >conftest.$ac_ext <<_ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18846 rm -f conftest.$ac_objext conftest$ac_exeext
18847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18848 (eval $ac_link) 2>conftest.er1
18850 grep -v '^ *+' conftest.er1 >conftest.err
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } &&
18855 { ac_try='test -z "$ac_c_werror_flag"
18856 || test ! -s conftest.err'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; } &&
18862 { ac_try='test -s conftest$ac_exeext'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 ac_cv_lib_krb4_main=yes
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 ac_cv_lib_krb4_main=no
18875 rm -f conftest.err conftest.$ac_objext \
18876 conftest$ac_exeext conftest.$ac_ext
18877 LIBS=$ac_check_lib_save_LIBS
18879 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18880 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18881 if test $ac_cv_lib_krb4_main = yes; then
18891 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18892 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18895 if test $have_k425 = yes ; then
18896 ol_with_kerberos=found
18900 cat >>confdefs.h <<\_ACEOF
18901 #define HAVE_KRB425 1
18905 cat >>confdefs.h <<\_ACEOF
18906 #define HAVE_KRB4 1
18910 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18911 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18912 if test "${ol_cv_var_des_debug+set}" = set; then
18913 echo $ECHO_N "(cached) $ECHO_C" >&6
18917 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18918 cat >conftest.$ac_ext <<_ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h. */
18925 #include <kerberosIV/krb.h>
18926 #include <kerberosIV/des.h>
18927 extern int des_debug;
18939 rm -f conftest.$ac_objext conftest$ac_exeext
18940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18941 (eval $ac_link) 2>conftest.er1
18943 grep -v '^ *+' conftest.er1 >conftest.err
18945 cat conftest.err >&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
18948 { ac_try='test -z "$ac_c_werror_flag"
18949 || test ! -s conftest.err'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; } &&
18955 { ac_try='test -s conftest$ac_exeext'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18961 ol_cv_var_des_debug=yes
18963 echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18966 ol_cv_var_des_debug=no
18968 rm -f conftest.err conftest.$ac_objext \
18969 conftest$ac_exeext conftest.$ac_ext
18973 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18974 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18976 if test $ol_cv_var_des_debug = yes ; then
18978 cat >>confdefs.h <<\_ACEOF
18979 #define HAVE_DES_DEBUG 1
18989 if test $ol_link_krb5 = yes ; then
18990 ol_with_kerberos=found
18993 case $ol_with_kerberos in yes | auto | k4 | kth)
18998 for ac_header in krb.h des.h krb-archaeology.h
19000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19002 echo "$as_me:$LINENO: checking for $ac_header" >&5
19003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19005 echo $ECHO_N "(cached) $ECHO_C" >&6
19007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19010 # Is the header compilable?
19011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19013 cat >conftest.$ac_ext <<_ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h. */
19019 $ac_includes_default
19020 #include <$ac_header>
19022 rm -f conftest.$ac_objext
19023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19024 (eval $ac_compile) 2>conftest.er1
19026 grep -v '^ *+' conftest.er1 >conftest.err
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } &&
19031 { ac_try='test -z "$ac_c_werror_flag"
19032 || test ! -s conftest.err'
19033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19034 (eval $ac_try) 2>&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; } &&
19038 { ac_try='test -s conftest.$ac_objext'
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; }; then
19044 ac_header_compiler=yes
19046 echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19049 ac_header_compiler=no
19051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19053 echo "${ECHO_T}$ac_header_compiler" >&6
19055 # Is the header present?
19056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19058 cat >conftest.$ac_ext <<_ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 #include <$ac_header>
19066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19069 grep -v '^ *+' conftest.er1 >conftest.err
19071 cat conftest.err >&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } >/dev/null; then
19074 if test -s conftest.err; then
19075 ac_cpp_err=$ac_c_preproc_warn_flag
19076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19083 if test -z "$ac_cpp_err"; then
19084 ac_header_preproc=yes
19086 echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19089 ac_header_preproc=no
19091 rm -f conftest.err conftest.$ac_ext
19092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19093 echo "${ECHO_T}$ac_header_preproc" >&6
19095 # So? What about this header?
19096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19102 ac_header_preproc=yes
19105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19119 ## --------------------------------------------- ##
19120 ## Report this to <http://www.openldap.org/its/> ##
19121 ## --------------------------------------------- ##
19124 sed "s/^/$as_me: WARNING: /" >&2
19127 echo "$as_me:$LINENO: checking for $ac_header" >&5
19128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19132 eval "$as_ac_Header=\$ac_header_preproc"
19134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19139 cat >>confdefs.h <<_ACEOF
19140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19148 if test $ac_cv_header_krb_h = yes ; then
19149 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19150 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19151 if test "${ac_cv_lib_krb_main+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 ac_check_lib_save_LIBS=$LIBS
19155 LIBS="-lkrb -ldes $LIBS"
19156 cat >conftest.$ac_ext <<_ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19172 rm -f conftest.$ac_objext conftest$ac_exeext
19173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19174 (eval $ac_link) 2>conftest.er1
19176 grep -v '^ *+' conftest.er1 >conftest.err
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
19181 { ac_try='test -z "$ac_c_werror_flag"
19182 || test ! -s conftest.err'
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; } &&
19188 { ac_try='test -s conftest$ac_exeext'
19189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19194 ac_cv_lib_krb_main=yes
19196 echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19199 ac_cv_lib_krb_main=no
19201 rm -f conftest.err conftest.$ac_objext \
19202 conftest$ac_exeext conftest.$ac_ext
19203 LIBS=$ac_check_lib_save_LIBS
19205 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19206 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19207 if test $ac_cv_lib_krb_main = yes; then
19214 if test $have_k4 = yes ; then
19215 ol_with_kerberos=found
19219 cat >>confdefs.h <<\_ACEOF
19220 #define HAVE_KRB4 1
19224 KRB4_LIBS="-lkrb -ldes"
19226 if test $ac_cv_header_krb_archaeology_h = yes ; then
19228 cat >>confdefs.h <<\_ACEOF
19229 #define HAVE_KTH_KERBEROS 1
19238 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19241 elif test $ol_enable_kbind = yes ; then
19242 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19243 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19244 { (exit 1); exit 1; }; }
19247 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19249 cat >>confdefs.h <<\_ACEOF
19250 #define HAVE_KERBEROS 1
19254 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19255 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19256 echo "$as_me: error: Kerberos detection failed" >&2;}
19257 { (exit 1); exit 1; }; }
19262 if test $ol_with_tls != no ; then
19264 for ac_header in openssl/ssl.h
19266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19268 echo "$as_me:$LINENO: checking for $ac_header" >&5
19269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19271 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19276 # Is the header compilable?
19277 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19279 cat >conftest.$ac_ext <<_ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19285 $ac_includes_default
19286 #include <$ac_header>
19288 rm -f conftest.$ac_objext
19289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19290 (eval $ac_compile) 2>conftest.er1
19292 grep -v '^ *+' conftest.er1 >conftest.err
19294 cat conftest.err >&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } &&
19297 { ac_try='test -z "$ac_c_werror_flag"
19298 || test ! -s conftest.err'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; } &&
19304 { ac_try='test -s conftest.$ac_objext'
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 ac_header_compiler=yes
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19315 ac_header_compiler=no
19317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19319 echo "${ECHO_T}$ac_header_compiler" >&6
19321 # Is the header present?
19322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19324 cat >conftest.$ac_ext <<_ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19330 #include <$ac_header>
19332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19335 grep -v '^ *+' conftest.er1 >conftest.err
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } >/dev/null; then
19340 if test -s conftest.err; then
19341 ac_cpp_err=$ac_c_preproc_warn_flag
19342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19349 if test -z "$ac_cpp_err"; then
19350 ac_header_preproc=yes
19352 echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19355 ac_header_preproc=no
19357 rm -f conftest.err conftest.$ac_ext
19358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19359 echo "${ECHO_T}$ac_header_preproc" >&6
19361 # So? What about this header?
19362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19368 ac_header_preproc=yes
19371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19385 ## --------------------------------------------- ##
19386 ## Report this to <http://www.openldap.org/its/> ##
19387 ## --------------------------------------------- ##
19390 sed "s/^/$as_me: WARNING: /" >&2
19393 echo "$as_me:$LINENO: checking for $ac_header" >&5
19394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 eval "$as_ac_Header=\$ac_header_preproc"
19400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19405 cat >>confdefs.h <<_ACEOF
19406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19414 if test $ac_cv_header_openssl_ssl_h = yes ; then
19415 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19416 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19417 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19420 ac_check_lib_save_LIBS=$LIBS
19421 LIBS="-lssl -lcrypto $LIBS"
19422 cat >conftest.$ac_ext <<_ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19429 /* Override any gcc2 internal prototype to avoid an error. */
19433 /* We use char because int might match the return type of a gcc2
19434 builtin and then its argument prototype would still apply. */
19435 char SSL_library_init ();
19439 SSL_library_init ();
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19446 (eval $ac_link) 2>conftest.er1
19448 grep -v '^ *+' conftest.er1 >conftest.err
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_c_werror_flag"
19454 || test ! -s conftest.err'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; } &&
19460 { ac_try='test -s conftest$ac_exeext'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
19466 ac_cv_lib_ssl_SSL_library_init=yes
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19471 ac_cv_lib_ssl_SSL_library_init=no
19473 rm -f conftest.err conftest.$ac_objext \
19474 conftest$ac_exeext conftest.$ac_ext
19475 LIBS=$ac_check_lib_save_LIBS
19477 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19478 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19479 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19487 if test $have_openssl = no ; then
19488 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19489 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19490 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19493 ac_check_lib_save_LIBS=$LIBS
19494 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19495 cat >conftest.$ac_ext <<_ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h. */
19502 /* Override any gcc2 internal prototype to avoid an error. */
19506 /* We use char because int might match the return type of a gcc2
19507 builtin and then its argument prototype would still apply. */
19508 char ssl3_accept ();
19517 rm -f conftest.$ac_objext conftest$ac_exeext
19518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19519 (eval $ac_link) 2>conftest.er1
19521 grep -v '^ *+' conftest.er1 >conftest.err
19523 cat conftest.err >&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } &&
19526 { ac_try='test -z "$ac_c_werror_flag"
19527 || test ! -s conftest.err'
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; } &&
19533 { ac_try='test -s conftest$ac_exeext'
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; }; then
19539 ac_cv_lib_ssl_ssl3_accept=yes
19541 echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 ac_cv_lib_ssl_ssl3_accept=no
19546 rm -f conftest.err conftest.$ac_objext \
19547 conftest$ac_exeext conftest.$ac_ext
19548 LIBS=$ac_check_lib_save_LIBS
19550 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19551 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19552 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19561 if test $have_openssl = yes ; then
19566 cat >>confdefs.h <<\_ACEOF
19567 #define HAVE_OPENSSL 1
19571 if test $need_rsaref = yes; then
19573 cat >>confdefs.h <<\_ACEOF
19574 #define HAVE_RSAREF 1
19578 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19580 TLS_LIBS="-lssl -lcrypto"
19583 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19584 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19585 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19589 cat >conftest.$ac_ext <<_ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h. */
19596 #ifdef HAVE_OPENSSL_SSL_H
19597 #include <openssl/ssl.h>
19602 /* Require 0.9.7d+ */
19603 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19604 char *__ssl_compat = "0.9.7d";
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19610 ol_cv_ssl_crl_compat=yes
19612 ol_cv_ssl_crl_compat=no
19617 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19618 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19620 if test $ol_cv_ssl_crl_compat = no ; then
19624 cat >>confdefs.h <<\_ACEOF
19625 #define HAVE_OPENSSL_CRL 1
19632 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19633 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19637 if test $ol_link_tls = yes ; then
19639 cat >>confdefs.h <<\_ACEOF
19645 elif test $ol_with_tls = auto ; then
19646 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19647 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19648 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19649 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19651 elif test $ol_with_tls != no ; then
19652 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19653 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19654 { (exit 1); exit 1; }; }
19657 if test $ol_enable_lmpasswd != no; then
19658 if test $ol_link_tls != yes ; then
19659 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19660 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19661 { (exit 1); exit 1; }; }
19665 cat >>confdefs.h <<\_ACEOF
19666 #define SLAPD_LMHASH 1
19673 case $ol_with_threads in auto | yes | nt)
19676 echo "$as_me:$LINENO: checking for _beginthread" >&5
19677 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19678 if test "${ac_cv_func__beginthread+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19681 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19689 #define _beginthread innocuous__beginthread
19691 /* System header to define __stub macros and hopefully few prototypes,
19692 which can conflict with char _beginthread (); below.
19693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19694 <limits.h> exists even on freestanding compilers. */
19697 # include <limits.h>
19699 # include <assert.h>
19702 #undef _beginthread
19704 /* Override any gcc2 internal prototype to avoid an error. */
19709 /* We use char because int might match the return type of a gcc2
19710 builtin and then its argument prototype would still apply. */
19711 char _beginthread ();
19712 /* The GNU C library defines this for functions which it implements
19713 to always fail with ENOSYS. Some functions are actually named
19714 something starting with __ and the normal name is an alias. */
19715 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19718 char (*f) () = _beginthread;
19727 return f != _beginthread;
19732 rm -f conftest.$ac_objext conftest$ac_exeext
19733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19734 (eval $ac_link) 2>conftest.er1
19736 grep -v '^ *+' conftest.er1 >conftest.err
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } &&
19741 { ac_try='test -z "$ac_c_werror_flag"
19742 || test ! -s conftest.err'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; } &&
19748 { ac_try='test -s conftest$ac_exeext'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; }; then
19754 ac_cv_func__beginthread=yes
19756 echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19759 ac_cv_func__beginthread=no
19761 rm -f conftest.err conftest.$ac_objext \
19762 conftest$ac_exeext conftest.$ac_ext
19764 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19765 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19768 if test $ac_cv_func__beginthread = yes ; then
19770 cat >>confdefs.h <<\_ACEOF
19771 #define HAVE_NT_THREADS 1
19774 ol_cv_nt_threads=yes
19778 if test "$ol_cv_nt_threads" = yes ; then
19780 ol_with_threads=found
19781 ol_with_yielding_select=yes
19784 cat >>confdefs.h <<\_ACEOF
19785 #define HAVE_NT_SERVICE_MANAGER 1
19789 cat >>confdefs.h <<\_ACEOF
19790 #define HAVE_NT_EVENT_LOG 1
19795 if test $ol_with_threads = nt ; then
19796 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19797 echo "$as_me: error: could not locate NT Threads" >&2;}
19798 { (exit 1); exit 1; }; }
19803 case $ol_with_threads in auto | yes | posix)
19806 for ac_header in pthread.h
19808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19810 echo "$as_me:$LINENO: checking for $ac_header" >&5
19811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19818 # Is the header compilable?
19819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19821 cat >conftest.$ac_ext <<_ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h. */
19827 $ac_includes_default
19828 #include <$ac_header>
19830 rm -f conftest.$ac_objext
19831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19832 (eval $ac_compile) 2>conftest.er1
19834 grep -v '^ *+' conftest.er1 >conftest.err
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } &&
19839 { ac_try='test -z "$ac_c_werror_flag"
19840 || test ! -s conftest.err'
19841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842 (eval $ac_try) 2>&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; } &&
19846 { ac_try='test -s conftest.$ac_objext'
19847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19848 (eval $ac_try) 2>&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }; }; then
19852 ac_header_compiler=yes
19854 echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19857 ac_header_compiler=no
19859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19861 echo "${ECHO_T}$ac_header_compiler" >&6
19863 # Is the header present?
19864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19866 cat >conftest.$ac_ext <<_ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 #include <$ac_header>
19874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19877 grep -v '^ *+' conftest.er1 >conftest.err
19879 cat conftest.err >&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } >/dev/null; then
19882 if test -s conftest.err; then
19883 ac_cpp_err=$ac_c_preproc_warn_flag
19884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19891 if test -z "$ac_cpp_err"; then
19892 ac_header_preproc=yes
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19897 ac_header_preproc=no
19899 rm -f conftest.err conftest.$ac_ext
19900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19901 echo "${ECHO_T}$ac_header_preproc" >&6
19903 # So? What about this header?
19904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19910 ac_header_preproc=yes
19913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19927 ## --------------------------------------------- ##
19928 ## Report this to <http://www.openldap.org/its/> ##
19929 ## --------------------------------------------- ##
19932 sed "s/^/$as_me: WARNING: /" >&2
19935 echo "$as_me:$LINENO: checking for $ac_header" >&5
19936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 eval "$as_ac_Header=\$ac_header_preproc"
19942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19947 cat >>confdefs.h <<_ACEOF
19948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19956 if test $ac_cv_header_pthread_h = yes ; then
19957 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19958 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19959 if test "${ol_cv_pthread_version+set}" = set; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 cat >conftest.$ac_ext <<_ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19970 # include <pthread.h>
19976 int i = PTHREAD_CREATE_JOINABLE;
19982 rm -f conftest.$ac_objext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19984 (eval $ac_compile) 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
19991 { ac_try='test -z "$ac_c_werror_flag"
19992 || test ! -s conftest.err'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; } &&
19998 { ac_try='test -s conftest.$ac_objext'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20005 cat >conftest.$ac_ext <<_ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20011 #include <pthread.h>
20014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20015 $EGREP "pthread_detach" >/dev/null 2>&1; then
20016 ol_cv_pthread_version=10
20018 ol_cv_pthread_version=8
20023 echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20027 cat >conftest.$ac_ext <<_ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20034 # include <pthread.h>
20035 # ifdef PTHREAD_CREATE_UNDETACHED
20040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20041 $EGREP "draft7" >/dev/null 2>&1; then
20042 ol_cv_pthread_version=7
20045 cat >conftest.$ac_ext <<_ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 #include <pthread.h>
20054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20055 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20056 ol_cv_pthread_version=6
20059 cat >conftest.$ac_ext <<_ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20066 # include <pthread.h>
20067 #ifdef PTHREAD_MUTEX_INITIALIZER
20072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20073 $EGREP "draft5" >/dev/null 2>&1; then
20074 ol_cv_pthread_version=5
20076 ol_cv_pthread_version=4
20087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20090 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20091 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20094 if test $ol_cv_pthread_version != 0 ; then
20096 cat >>confdefs.h <<_ACEOF
20097 #define HAVE_PTHREADS $ol_cv_pthread_version
20101 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20102 echo "$as_me: error: unknown pthread version" >&2;}
20103 { (exit 1); exit 1; }; }
20106 # consider threads found
20107 ol_with_threads=found
20110 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20111 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20112 if test "${ol_cv_header_linux_threads+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 cat >conftest.$ac_ext <<_ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20121 #include <pthread.h>
20123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20124 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20125 ol_cv_header_linux_threads=yes
20127 ol_cv_header_linux_threads=no
20133 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20134 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20135 if test $ol_cv_header_linux_threads = yes; then
20137 cat >>confdefs.h <<\_ACEOF
20138 #define HAVE_LINUX_THREADS 1
20144 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20145 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20146 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 cat >conftest.$ac_ext <<_ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 #include <pthread.h>
20156 #ifdef _POSIX_THREAD_IS_GNU_PTH
20161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20162 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20163 ol_cv_header_gnu_pth_pthread_h=yes
20165 ol_cv_header_gnu_pth_pthread_h=no
20171 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20172 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20175 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20177 for ac_header in sched.h
20179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20181 echo "$as_me:$LINENO: checking for $ac_header" >&5
20182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20189 # Is the header compilable?
20190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20192 cat >conftest.$ac_ext <<_ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20198 $ac_includes_default
20199 #include <$ac_header>
20201 rm -f conftest.$ac_objext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20203 (eval $ac_compile) 2>conftest.er1
20205 grep -v '^ *+' conftest.er1 >conftest.err
20207 cat conftest.err >&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } &&
20210 { ac_try='test -z "$ac_c_werror_flag"
20211 || test ! -s conftest.err'
20212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213 (eval $ac_try) 2>&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; } &&
20217 { ac_try='test -s conftest.$ac_objext'
20218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; }; then
20223 ac_header_compiler=yes
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20228 ac_header_compiler=no
20230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20232 echo "${ECHO_T}$ac_header_compiler" >&6
20234 # Is the header present?
20235 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20237 cat >conftest.$ac_ext <<_ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20243 #include <$ac_header>
20245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20248 grep -v '^ *+' conftest.er1 >conftest.err
20250 cat conftest.err >&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); } >/dev/null; then
20253 if test -s conftest.err; then
20254 ac_cpp_err=$ac_c_preproc_warn_flag
20255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20262 if test -z "$ac_cpp_err"; then
20263 ac_header_preproc=yes
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20268 ac_header_preproc=no
20270 rm -f conftest.err conftest.$ac_ext
20271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20272 echo "${ECHO_T}$ac_header_preproc" >&6
20274 # So? What about this header?
20275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20281 ac_header_preproc=yes
20284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20291 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20298 ## --------------------------------------------- ##
20299 ## Report this to <http://www.openldap.org/its/> ##
20300 ## --------------------------------------------- ##
20303 sed "s/^/$as_me: WARNING: /" >&2
20306 echo "$as_me:$LINENO: checking for $ac_header" >&5
20307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20309 echo $ECHO_N "(cached) $ECHO_C" >&6
20311 eval "$as_ac_Header=\$ac_header_preproc"
20313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20318 cat >>confdefs.h <<_ACEOF
20319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20329 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20330 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20331 if test "${ol_cv_pthread_create+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20335 if test "$cross_compiling" = yes; then
20336 cat >conftest.$ac_ext <<_ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h. */
20343 /* pthread test headers */
20344 #include <pthread.h>
20345 #if HAVE_PTHREADS < 7
20349 #define NULL (void*)0
20352 static void *task(p)
20355 return (void *) (p == NULL);
20362 /* pthread test function */
20363 #ifndef PTHREAD_CREATE_DETACHED
20364 #define PTHREAD_CREATE_DETACHED 1
20368 int detach = PTHREAD_CREATE_DETACHED;
20370 #if HAVE_PTHREADS > 4
20371 /* Final pthreads */
20372 pthread_attr_t attr;
20374 status = pthread_attr_init(&attr);
20375 if( status ) return status;
20377 #if HAVE_PTHREADS < 7
20378 status = pthread_attr_setdetachstate(&attr, &detach);
20379 if( status < 0 ) status = errno;
20381 status = pthread_attr_setdetachstate(&attr, detach);
20383 if( status ) return status;
20384 status = pthread_create( &t, &attr, task, NULL );
20385 #if HAVE_PTHREADS < 7
20386 if( status < 0 ) status = errno;
20388 if( status ) return status;
20390 /* Draft 4 pthreads */
20391 status = pthread_create( &t, pthread_attr_default, task, NULL );
20392 if( status ) return errno;
20394 /* give thread a chance to complete */
20395 /* it should remain joinable and hence detachable */
20398 status = pthread_detach( &t );
20399 if( status ) return errno;
20402 #ifdef HAVE_LINUX_THREADS
20403 pthread_kill_other_threads_np();
20412 rm -f conftest.$ac_objext conftest$ac_exeext
20413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20414 (eval $ac_link) 2>conftest.er1
20416 grep -v '^ *+' conftest.er1 >conftest.err
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } &&
20421 { ac_try='test -z "$ac_c_werror_flag"
20422 || test ! -s conftest.err'
20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; } &&
20428 { ac_try='test -s conftest$ac_exeext'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
20434 ol_cv_pthread_create=yes
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ol_cv_pthread_create=no
20441 rm -f conftest.err conftest.$ac_objext \
20442 conftest$ac_exeext conftest.$ac_ext
20444 cat >conftest.$ac_ext <<_ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20451 /* pthread test headers */
20452 #include <pthread.h>
20453 #if HAVE_PTHREADS < 7
20457 #define NULL (void*)0
20460 static void *task(p)
20463 return (void *) (p == NULL);
20467 int main(argc, argv)
20472 /* pthread test function */
20473 #ifndef PTHREAD_CREATE_DETACHED
20474 #define PTHREAD_CREATE_DETACHED 1
20478 int detach = PTHREAD_CREATE_DETACHED;
20480 #if HAVE_PTHREADS > 4
20481 /* Final pthreads */
20482 pthread_attr_t attr;
20484 status = pthread_attr_init(&attr);
20485 if( status ) return status;
20487 #if HAVE_PTHREADS < 7
20488 status = pthread_attr_setdetachstate(&attr, &detach);
20489 if( status < 0 ) status = errno;
20491 status = pthread_attr_setdetachstate(&attr, detach);
20493 if( status ) return status;
20494 status = pthread_create( &t, &attr, task, NULL );
20495 #if HAVE_PTHREADS < 7
20496 if( status < 0 ) status = errno;
20498 if( status ) return status;
20500 /* Draft 4 pthreads */
20501 status = pthread_create( &t, pthread_attr_default, task, NULL );
20502 if( status ) return errno;
20504 /* give thread a chance to complete */
20505 /* it should remain joinable and hence detachable */
20508 status = pthread_detach( &t );
20509 if( status ) return errno;
20512 #ifdef HAVE_LINUX_THREADS
20513 pthread_kill_other_threads_np();
20521 rm -f conftest$ac_exeext
20522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20523 (eval $ac_link) 2>&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20532 ol_cv_pthread_create=yes
20534 echo "$as_me: program exited with status $ac_status" >&5
20535 echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20538 ( exit $ac_status )
20539 ol_cv_pthread_create=no
20541 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20544 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20545 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20547 if test $ol_cv_pthread_create != no ; then
20548 ol_link_threads=posix
20549 ol_link_pthreads=""
20552 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20553 if test "$ol_link_threads" = no ; then
20555 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20556 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20557 if test "${ol_cv_pthread_kthread+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 LIBS="-kthread $LIBS"
20565 if test "$cross_compiling" = yes; then
20566 cat >conftest.$ac_ext <<_ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h. */
20573 /* pthread test headers */
20574 #include <pthread.h>
20575 #if HAVE_PTHREADS < 7
20579 #define NULL (void*)0
20582 static void *task(p)
20585 return (void *) (p == NULL);
20592 /* pthread test function */
20593 #ifndef PTHREAD_CREATE_DETACHED
20594 #define PTHREAD_CREATE_DETACHED 1
20598 int detach = PTHREAD_CREATE_DETACHED;
20600 #if HAVE_PTHREADS > 4
20601 /* Final pthreads */
20602 pthread_attr_t attr;
20604 status = pthread_attr_init(&attr);
20605 if( status ) return status;
20607 #if HAVE_PTHREADS < 7
20608 status = pthread_attr_setdetachstate(&attr, &detach);
20609 if( status < 0 ) status = errno;
20611 status = pthread_attr_setdetachstate(&attr, detach);
20613 if( status ) return status;
20614 status = pthread_create( &t, &attr, task, NULL );
20615 #if HAVE_PTHREADS < 7
20616 if( status < 0 ) status = errno;
20618 if( status ) return status;
20620 /* Draft 4 pthreads */
20621 status = pthread_create( &t, pthread_attr_default, task, NULL );
20622 if( status ) return errno;
20624 /* give thread a chance to complete */
20625 /* it should remain joinable and hence detachable */
20628 status = pthread_detach( &t );
20629 if( status ) return errno;
20632 #ifdef HAVE_LINUX_THREADS
20633 pthread_kill_other_threads_np();
20642 rm -f conftest.$ac_objext conftest$ac_exeext
20643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20644 (eval $ac_link) 2>conftest.er1
20646 grep -v '^ *+' conftest.er1 >conftest.err
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } &&
20651 { ac_try='test -z "$ac_c_werror_flag"
20652 || test ! -s conftest.err'
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; } &&
20658 { ac_try='test -s conftest$ac_exeext'
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; }; then
20664 ol_cv_pthread_kthread=yes
20666 echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20669 ol_cv_pthread_kthread=no
20671 rm -f conftest.err conftest.$ac_objext \
20672 conftest$ac_exeext conftest.$ac_ext
20674 cat >conftest.$ac_ext <<_ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20681 /* pthread test headers */
20682 #include <pthread.h>
20683 #if HAVE_PTHREADS < 7
20687 #define NULL (void*)0
20690 static void *task(p)
20693 return (void *) (p == NULL);
20697 int main(argc, argv)
20702 /* pthread test function */
20703 #ifndef PTHREAD_CREATE_DETACHED
20704 #define PTHREAD_CREATE_DETACHED 1
20708 int detach = PTHREAD_CREATE_DETACHED;
20710 #if HAVE_PTHREADS > 4
20711 /* Final pthreads */
20712 pthread_attr_t attr;
20714 status = pthread_attr_init(&attr);
20715 if( status ) return status;
20717 #if HAVE_PTHREADS < 7
20718 status = pthread_attr_setdetachstate(&attr, &detach);
20719 if( status < 0 ) status = errno;
20721 status = pthread_attr_setdetachstate(&attr, detach);
20723 if( status ) return status;
20724 status = pthread_create( &t, &attr, task, NULL );
20725 #if HAVE_PTHREADS < 7
20726 if( status < 0 ) status = errno;
20728 if( status ) return status;
20730 /* Draft 4 pthreads */
20731 status = pthread_create( &t, pthread_attr_default, task, NULL );
20732 if( status ) return errno;
20734 /* give thread a chance to complete */
20735 /* it should remain joinable and hence detachable */
20738 status = pthread_detach( &t );
20739 if( status ) return errno;
20742 #ifdef HAVE_LINUX_THREADS
20743 pthread_kill_other_threads_np();
20751 rm -f conftest$ac_exeext
20752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20753 (eval $ac_link) 2>&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758 (eval $ac_try) 2>&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; }; then
20762 ol_cv_pthread_kthread=yes
20764 echo "$as_me: program exited with status $ac_status" >&5
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20768 ( exit $ac_status )
20769 ol_cv_pthread_kthread=no
20771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20778 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20779 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20781 if test $ol_cv_pthread_kthread = yes ; then
20782 ol_link_pthreads="-kthread"
20783 ol_link_threads=posix
20787 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20788 if test "$ol_link_threads" = no ; then
20790 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20791 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20792 if test "${ol_cv_pthread_pthread+set}" = set; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20798 LIBS="-pthread $LIBS"
20800 if test "$cross_compiling" = yes; then
20801 cat >conftest.$ac_ext <<_ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20808 /* pthread test headers */
20809 #include <pthread.h>
20810 #if HAVE_PTHREADS < 7
20814 #define NULL (void*)0
20817 static void *task(p)
20820 return (void *) (p == NULL);
20827 /* pthread test function */
20828 #ifndef PTHREAD_CREATE_DETACHED
20829 #define PTHREAD_CREATE_DETACHED 1
20833 int detach = PTHREAD_CREATE_DETACHED;
20835 #if HAVE_PTHREADS > 4
20836 /* Final pthreads */
20837 pthread_attr_t attr;
20839 status = pthread_attr_init(&attr);
20840 if( status ) return status;
20842 #if HAVE_PTHREADS < 7
20843 status = pthread_attr_setdetachstate(&attr, &detach);
20844 if( status < 0 ) status = errno;
20846 status = pthread_attr_setdetachstate(&attr, detach);
20848 if( status ) return status;
20849 status = pthread_create( &t, &attr, task, NULL );
20850 #if HAVE_PTHREADS < 7
20851 if( status < 0 ) status = errno;
20853 if( status ) return status;
20855 /* Draft 4 pthreads */
20856 status = pthread_create( &t, pthread_attr_default, task, NULL );
20857 if( status ) return errno;
20859 /* give thread a chance to complete */
20860 /* it should remain joinable and hence detachable */
20863 status = pthread_detach( &t );
20864 if( status ) return errno;
20867 #ifdef HAVE_LINUX_THREADS
20868 pthread_kill_other_threads_np();
20877 rm -f conftest.$ac_objext conftest$ac_exeext
20878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20879 (eval $ac_link) 2>conftest.er1
20881 grep -v '^ *+' conftest.er1 >conftest.err
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -z "$ac_c_werror_flag"
20887 || test ! -s conftest.err'
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try='test -s conftest$ac_exeext'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 ol_cv_pthread_pthread=yes
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20904 ol_cv_pthread_pthread=no
20906 rm -f conftest.err conftest.$ac_objext \
20907 conftest$ac_exeext conftest.$ac_ext
20909 cat >conftest.$ac_ext <<_ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20916 /* pthread test headers */
20917 #include <pthread.h>
20918 #if HAVE_PTHREADS < 7
20922 #define NULL (void*)0
20925 static void *task(p)
20928 return (void *) (p == NULL);
20932 int main(argc, argv)
20937 /* pthread test function */
20938 #ifndef PTHREAD_CREATE_DETACHED
20939 #define PTHREAD_CREATE_DETACHED 1
20943 int detach = PTHREAD_CREATE_DETACHED;
20945 #if HAVE_PTHREADS > 4
20946 /* Final pthreads */
20947 pthread_attr_t attr;
20949 status = pthread_attr_init(&attr);
20950 if( status ) return status;
20952 #if HAVE_PTHREADS < 7
20953 status = pthread_attr_setdetachstate(&attr, &detach);
20954 if( status < 0 ) status = errno;
20956 status = pthread_attr_setdetachstate(&attr, detach);
20958 if( status ) return status;
20959 status = pthread_create( &t, &attr, task, NULL );
20960 #if HAVE_PTHREADS < 7
20961 if( status < 0 ) status = errno;
20963 if( status ) return status;
20965 /* Draft 4 pthreads */
20966 status = pthread_create( &t, pthread_attr_default, task, NULL );
20967 if( status ) return errno;
20969 /* give thread a chance to complete */
20970 /* it should remain joinable and hence detachable */
20973 status = pthread_detach( &t );
20974 if( status ) return errno;
20977 #ifdef HAVE_LINUX_THREADS
20978 pthread_kill_other_threads_np();
20986 rm -f conftest$ac_exeext
20987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20988 (eval $ac_link) 2>&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 ol_cv_pthread_pthread=yes
20999 echo "$as_me: program exited with status $ac_status" >&5
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 ( exit $ac_status )
21004 ol_cv_pthread_pthread=no
21006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21013 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21014 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21016 if test $ol_cv_pthread_pthread = yes ; then
21017 ol_link_pthreads="-pthread"
21018 ol_link_threads=posix
21022 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21023 if test "$ol_link_threads" = no ; then
21025 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21026 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21027 if test "${ol_cv_pthread_pthreads+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 LIBS="-pthreads $LIBS"
21035 if test "$cross_compiling" = yes; then
21036 cat >conftest.$ac_ext <<_ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21043 /* pthread test headers */
21044 #include <pthread.h>
21045 #if HAVE_PTHREADS < 7
21049 #define NULL (void*)0
21052 static void *task(p)
21055 return (void *) (p == NULL);
21062 /* pthread test function */
21063 #ifndef PTHREAD_CREATE_DETACHED
21064 #define PTHREAD_CREATE_DETACHED 1
21068 int detach = PTHREAD_CREATE_DETACHED;
21070 #if HAVE_PTHREADS > 4
21071 /* Final pthreads */
21072 pthread_attr_t attr;
21074 status = pthread_attr_init(&attr);
21075 if( status ) return status;
21077 #if HAVE_PTHREADS < 7
21078 status = pthread_attr_setdetachstate(&attr, &detach);
21079 if( status < 0 ) status = errno;
21081 status = pthread_attr_setdetachstate(&attr, detach);
21083 if( status ) return status;
21084 status = pthread_create( &t, &attr, task, NULL );
21085 #if HAVE_PTHREADS < 7
21086 if( status < 0 ) status = errno;
21088 if( status ) return status;
21090 /* Draft 4 pthreads */
21091 status = pthread_create( &t, pthread_attr_default, task, NULL );
21092 if( status ) return errno;
21094 /* give thread a chance to complete */
21095 /* it should remain joinable and hence detachable */
21098 status = pthread_detach( &t );
21099 if( status ) return errno;
21102 #ifdef HAVE_LINUX_THREADS
21103 pthread_kill_other_threads_np();
21112 rm -f conftest.$ac_objext conftest$ac_exeext
21113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21114 (eval $ac_link) 2>conftest.er1
21116 grep -v '^ *+' conftest.er1 >conftest.err
21118 cat conftest.err >&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } &&
21121 { ac_try='test -z "$ac_c_werror_flag"
21122 || test ! -s conftest.err'
21123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124 (eval $ac_try) 2>&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; } &&
21128 { ac_try='test -s conftest$ac_exeext'
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; }; then
21134 ol_cv_pthread_pthreads=yes
21136 echo "$as_me: failed program was:" >&5
21137 sed 's/^/| /' conftest.$ac_ext >&5
21139 ol_cv_pthread_pthreads=no
21141 rm -f conftest.err conftest.$ac_objext \
21142 conftest$ac_exeext conftest.$ac_ext
21144 cat >conftest.$ac_ext <<_ACEOF
21147 cat confdefs.h >>conftest.$ac_ext
21148 cat >>conftest.$ac_ext <<_ACEOF
21149 /* end confdefs.h. */
21151 /* pthread test headers */
21152 #include <pthread.h>
21153 #if HAVE_PTHREADS < 7
21157 #define NULL (void*)0
21160 static void *task(p)
21163 return (void *) (p == NULL);
21167 int main(argc, argv)
21172 /* pthread test function */
21173 #ifndef PTHREAD_CREATE_DETACHED
21174 #define PTHREAD_CREATE_DETACHED 1
21178 int detach = PTHREAD_CREATE_DETACHED;
21180 #if HAVE_PTHREADS > 4
21181 /* Final pthreads */
21182 pthread_attr_t attr;
21184 status = pthread_attr_init(&attr);
21185 if( status ) return status;
21187 #if HAVE_PTHREADS < 7
21188 status = pthread_attr_setdetachstate(&attr, &detach);
21189 if( status < 0 ) status = errno;
21191 status = pthread_attr_setdetachstate(&attr, detach);
21193 if( status ) return status;
21194 status = pthread_create( &t, &attr, task, NULL );
21195 #if HAVE_PTHREADS < 7
21196 if( status < 0 ) status = errno;
21198 if( status ) return status;
21200 /* Draft 4 pthreads */
21201 status = pthread_create( &t, pthread_attr_default, task, NULL );
21202 if( status ) return errno;
21204 /* give thread a chance to complete */
21205 /* it should remain joinable and hence detachable */
21208 status = pthread_detach( &t );
21209 if( status ) return errno;
21212 #ifdef HAVE_LINUX_THREADS
21213 pthread_kill_other_threads_np();
21221 rm -f conftest$ac_exeext
21222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21223 (eval $ac_link) 2>&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21228 (eval $ac_try) 2>&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); }; }; then
21232 ol_cv_pthread_pthreads=yes
21234 echo "$as_me: program exited with status $ac_status" >&5
21235 echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21238 ( exit $ac_status )
21239 ol_cv_pthread_pthreads=no
21241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21248 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21249 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21251 if test $ol_cv_pthread_pthreads = yes ; then
21252 ol_link_pthreads="-pthreads"
21253 ol_link_threads=posix
21257 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21258 if test "$ol_link_threads" = no ; then
21260 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21261 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21262 if test "${ol_cv_pthread_mthreads+set}" = set; then
21263 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 LIBS="-mthreads $LIBS"
21270 if test "$cross_compiling" = yes; then
21271 cat >conftest.$ac_ext <<_ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21278 /* pthread test headers */
21279 #include <pthread.h>
21280 #if HAVE_PTHREADS < 7
21284 #define NULL (void*)0
21287 static void *task(p)
21290 return (void *) (p == NULL);
21297 /* pthread test function */
21298 #ifndef PTHREAD_CREATE_DETACHED
21299 #define PTHREAD_CREATE_DETACHED 1
21303 int detach = PTHREAD_CREATE_DETACHED;
21305 #if HAVE_PTHREADS > 4
21306 /* Final pthreads */
21307 pthread_attr_t attr;
21309 status = pthread_attr_init(&attr);
21310 if( status ) return status;
21312 #if HAVE_PTHREADS < 7
21313 status = pthread_attr_setdetachstate(&attr, &detach);
21314 if( status < 0 ) status = errno;
21316 status = pthread_attr_setdetachstate(&attr, detach);
21318 if( status ) return status;
21319 status = pthread_create( &t, &attr, task, NULL );
21320 #if HAVE_PTHREADS < 7
21321 if( status < 0 ) status = errno;
21323 if( status ) return status;
21325 /* Draft 4 pthreads */
21326 status = pthread_create( &t, pthread_attr_default, task, NULL );
21327 if( status ) return errno;
21329 /* give thread a chance to complete */
21330 /* it should remain joinable and hence detachable */
21333 status = pthread_detach( &t );
21334 if( status ) return errno;
21337 #ifdef HAVE_LINUX_THREADS
21338 pthread_kill_other_threads_np();
21347 rm -f conftest.$ac_objext conftest$ac_exeext
21348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21349 (eval $ac_link) 2>conftest.er1
21351 grep -v '^ *+' conftest.er1 >conftest.err
21353 cat conftest.err >&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } &&
21356 { ac_try='test -z "$ac_c_werror_flag"
21357 || test ! -s conftest.err'
21358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359 (eval $ac_try) 2>&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); }; } &&
21363 { ac_try='test -s conftest$ac_exeext'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369 ol_cv_pthread_mthreads=yes
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21374 ol_cv_pthread_mthreads=no
21376 rm -f conftest.err conftest.$ac_objext \
21377 conftest$ac_exeext conftest.$ac_ext
21379 cat >conftest.$ac_ext <<_ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h. */
21386 /* pthread test headers */
21387 #include <pthread.h>
21388 #if HAVE_PTHREADS < 7
21392 #define NULL (void*)0
21395 static void *task(p)
21398 return (void *) (p == NULL);
21402 int main(argc, argv)
21407 /* pthread test function */
21408 #ifndef PTHREAD_CREATE_DETACHED
21409 #define PTHREAD_CREATE_DETACHED 1
21413 int detach = PTHREAD_CREATE_DETACHED;
21415 #if HAVE_PTHREADS > 4
21416 /* Final pthreads */
21417 pthread_attr_t attr;
21419 status = pthread_attr_init(&attr);
21420 if( status ) return status;
21422 #if HAVE_PTHREADS < 7
21423 status = pthread_attr_setdetachstate(&attr, &detach);
21424 if( status < 0 ) status = errno;
21426 status = pthread_attr_setdetachstate(&attr, detach);
21428 if( status ) return status;
21429 status = pthread_create( &t, &attr, task, NULL );
21430 #if HAVE_PTHREADS < 7
21431 if( status < 0 ) status = errno;
21433 if( status ) return status;
21435 /* Draft 4 pthreads */
21436 status = pthread_create( &t, pthread_attr_default, task, NULL );
21437 if( status ) return errno;
21439 /* give thread a chance to complete */
21440 /* it should remain joinable and hence detachable */
21443 status = pthread_detach( &t );
21444 if( status ) return errno;
21447 #ifdef HAVE_LINUX_THREADS
21448 pthread_kill_other_threads_np();
21456 rm -f conftest$ac_exeext
21457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21458 (eval $ac_link) 2>&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463 (eval $ac_try) 2>&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; }; then
21467 ol_cv_pthread_mthreads=yes
21469 echo "$as_me: program exited with status $ac_status" >&5
21470 echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21473 ( exit $ac_status )
21474 ol_cv_pthread_mthreads=no
21476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21483 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21484 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21486 if test $ol_cv_pthread_mthreads = yes ; then
21487 ol_link_pthreads="-mthreads"
21488 ol_link_threads=posix
21492 # Pthread try link: -thread (ol_cv_pthread_thread)
21493 if test "$ol_link_threads" = no ; then
21495 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21496 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21497 if test "${ol_cv_pthread_thread+set}" = set; then
21498 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 LIBS="-thread $LIBS"
21505 if test "$cross_compiling" = yes; then
21506 cat >conftest.$ac_ext <<_ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21513 /* pthread test headers */
21514 #include <pthread.h>
21515 #if HAVE_PTHREADS < 7
21519 #define NULL (void*)0
21522 static void *task(p)
21525 return (void *) (p == NULL);
21532 /* pthread test function */
21533 #ifndef PTHREAD_CREATE_DETACHED
21534 #define PTHREAD_CREATE_DETACHED 1
21538 int detach = PTHREAD_CREATE_DETACHED;
21540 #if HAVE_PTHREADS > 4
21541 /* Final pthreads */
21542 pthread_attr_t attr;
21544 status = pthread_attr_init(&attr);
21545 if( status ) return status;
21547 #if HAVE_PTHREADS < 7
21548 status = pthread_attr_setdetachstate(&attr, &detach);
21549 if( status < 0 ) status = errno;
21551 status = pthread_attr_setdetachstate(&attr, detach);
21553 if( status ) return status;
21554 status = pthread_create( &t, &attr, task, NULL );
21555 #if HAVE_PTHREADS < 7
21556 if( status < 0 ) status = errno;
21558 if( status ) return status;
21560 /* Draft 4 pthreads */
21561 status = pthread_create( &t, pthread_attr_default, task, NULL );
21562 if( status ) return errno;
21564 /* give thread a chance to complete */
21565 /* it should remain joinable and hence detachable */
21568 status = pthread_detach( &t );
21569 if( status ) return errno;
21572 #ifdef HAVE_LINUX_THREADS
21573 pthread_kill_other_threads_np();
21582 rm -f conftest.$ac_objext conftest$ac_exeext
21583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21584 (eval $ac_link) 2>conftest.er1
21586 grep -v '^ *+' conftest.er1 >conftest.err
21588 cat conftest.err >&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } &&
21591 { ac_try='test -z "$ac_c_werror_flag"
21592 || test ! -s conftest.err'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; } &&
21598 { ac_try='test -s conftest$ac_exeext'
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; }; then
21604 ol_cv_pthread_thread=yes
21606 echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21609 ol_cv_pthread_thread=no
21611 rm -f conftest.err conftest.$ac_objext \
21612 conftest$ac_exeext conftest.$ac_ext
21614 cat >conftest.$ac_ext <<_ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21621 /* pthread test headers */
21622 #include <pthread.h>
21623 #if HAVE_PTHREADS < 7
21627 #define NULL (void*)0
21630 static void *task(p)
21633 return (void *) (p == NULL);
21637 int main(argc, argv)
21642 /* pthread test function */
21643 #ifndef PTHREAD_CREATE_DETACHED
21644 #define PTHREAD_CREATE_DETACHED 1
21648 int detach = PTHREAD_CREATE_DETACHED;
21650 #if HAVE_PTHREADS > 4
21651 /* Final pthreads */
21652 pthread_attr_t attr;
21654 status = pthread_attr_init(&attr);
21655 if( status ) return status;
21657 #if HAVE_PTHREADS < 7
21658 status = pthread_attr_setdetachstate(&attr, &detach);
21659 if( status < 0 ) status = errno;
21661 status = pthread_attr_setdetachstate(&attr, detach);
21663 if( status ) return status;
21664 status = pthread_create( &t, &attr, task, NULL );
21665 #if HAVE_PTHREADS < 7
21666 if( status < 0 ) status = errno;
21668 if( status ) return status;
21670 /* Draft 4 pthreads */
21671 status = pthread_create( &t, pthread_attr_default, task, NULL );
21672 if( status ) return errno;
21674 /* give thread a chance to complete */
21675 /* it should remain joinable and hence detachable */
21678 status = pthread_detach( &t );
21679 if( status ) return errno;
21682 #ifdef HAVE_LINUX_THREADS
21683 pthread_kill_other_threads_np();
21691 rm -f conftest$ac_exeext
21692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21693 (eval $ac_link) 2>&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698 (eval $ac_try) 2>&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; }; then
21702 ol_cv_pthread_thread=yes
21704 echo "$as_me: program exited with status $ac_status" >&5
21705 echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21708 ( exit $ac_status )
21709 ol_cv_pthread_thread=no
21711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21718 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21719 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21721 if test $ol_cv_pthread_thread = yes ; then
21722 ol_link_pthreads="-thread"
21723 ol_link_threads=posix
21728 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21729 if test "$ol_link_threads" = no ; then
21730 # try -lpthread -lmach -lexc -lc_r
21731 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21732 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21733 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21739 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21741 if test "$cross_compiling" = yes; then
21742 cat >conftest.$ac_ext <<_ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21749 /* pthread test headers */
21750 #include <pthread.h>
21751 #if HAVE_PTHREADS < 7
21755 #define NULL (void*)0
21758 static void *task(p)
21761 return (void *) (p == NULL);
21768 /* pthread test function */
21769 #ifndef PTHREAD_CREATE_DETACHED
21770 #define PTHREAD_CREATE_DETACHED 1
21774 int detach = PTHREAD_CREATE_DETACHED;
21776 #if HAVE_PTHREADS > 4
21777 /* Final pthreads */
21778 pthread_attr_t attr;
21780 status = pthread_attr_init(&attr);
21781 if( status ) return status;
21783 #if HAVE_PTHREADS < 7
21784 status = pthread_attr_setdetachstate(&attr, &detach);
21785 if( status < 0 ) status = errno;
21787 status = pthread_attr_setdetachstate(&attr, detach);
21789 if( status ) return status;
21790 status = pthread_create( &t, &attr, task, NULL );
21791 #if HAVE_PTHREADS < 7
21792 if( status < 0 ) status = errno;
21794 if( status ) return status;
21796 /* Draft 4 pthreads */
21797 status = pthread_create( &t, pthread_attr_default, task, NULL );
21798 if( status ) return errno;
21800 /* give thread a chance to complete */
21801 /* it should remain joinable and hence detachable */
21804 status = pthread_detach( &t );
21805 if( status ) return errno;
21808 #ifdef HAVE_LINUX_THREADS
21809 pthread_kill_other_threads_np();
21818 rm -f conftest.$ac_objext conftest$ac_exeext
21819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21820 (eval $ac_link) 2>conftest.er1
21822 grep -v '^ *+' conftest.er1 >conftest.err
21824 cat conftest.err >&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } &&
21827 { ac_try='test -z "$ac_c_werror_flag"
21828 || test ! -s conftest.err'
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; } &&
21834 { ac_try='test -s conftest$ac_exeext'
21835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21836 (eval $ac_try) 2>&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); }; }; then
21840 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21842 echo "$as_me: failed program was:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21845 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21847 rm -f conftest.err conftest.$ac_objext \
21848 conftest$ac_exeext conftest.$ac_ext
21850 cat >conftest.$ac_ext <<_ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h. */
21857 /* pthread test headers */
21858 #include <pthread.h>
21859 #if HAVE_PTHREADS < 7
21863 #define NULL (void*)0
21866 static void *task(p)
21869 return (void *) (p == NULL);
21873 int main(argc, argv)
21878 /* pthread test function */
21879 #ifndef PTHREAD_CREATE_DETACHED
21880 #define PTHREAD_CREATE_DETACHED 1
21884 int detach = PTHREAD_CREATE_DETACHED;
21886 #if HAVE_PTHREADS > 4
21887 /* Final pthreads */
21888 pthread_attr_t attr;
21890 status = pthread_attr_init(&attr);
21891 if( status ) return status;
21893 #if HAVE_PTHREADS < 7
21894 status = pthread_attr_setdetachstate(&attr, &detach);
21895 if( status < 0 ) status = errno;
21897 status = pthread_attr_setdetachstate(&attr, detach);
21899 if( status ) return status;
21900 status = pthread_create( &t, &attr, task, NULL );
21901 #if HAVE_PTHREADS < 7
21902 if( status < 0 ) status = errno;
21904 if( status ) return status;
21906 /* Draft 4 pthreads */
21907 status = pthread_create( &t, pthread_attr_default, task, NULL );
21908 if( status ) return errno;
21910 /* give thread a chance to complete */
21911 /* it should remain joinable and hence detachable */
21914 status = pthread_detach( &t );
21915 if( status ) return errno;
21918 #ifdef HAVE_LINUX_THREADS
21919 pthread_kill_other_threads_np();
21927 rm -f conftest$ac_exeext
21928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21929 (eval $ac_link) 2>&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; }; then
21938 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21940 echo "$as_me: program exited with status $ac_status" >&5
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 ( exit $ac_status )
21945 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21954 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21955 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21957 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21958 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21959 ol_link_threads=posix
21963 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21964 if test "$ol_link_threads" = no ; then
21965 # try -lpthread -lmach -lexc
21966 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21967 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21968 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21974 LIBS="-lpthread -lmach -lexc $LIBS"
21976 if test "$cross_compiling" = yes; then
21977 cat >conftest.$ac_ext <<_ACEOF
21980 cat confdefs.h >>conftest.$ac_ext
21981 cat >>conftest.$ac_ext <<_ACEOF
21982 /* end confdefs.h. */
21984 /* pthread test headers */
21985 #include <pthread.h>
21986 #if HAVE_PTHREADS < 7
21990 #define NULL (void*)0
21993 static void *task(p)
21996 return (void *) (p == NULL);
22003 /* pthread test function */
22004 #ifndef PTHREAD_CREATE_DETACHED
22005 #define PTHREAD_CREATE_DETACHED 1
22009 int detach = PTHREAD_CREATE_DETACHED;
22011 #if HAVE_PTHREADS > 4
22012 /* Final pthreads */
22013 pthread_attr_t attr;
22015 status = pthread_attr_init(&attr);
22016 if( status ) return status;
22018 #if HAVE_PTHREADS < 7
22019 status = pthread_attr_setdetachstate(&attr, &detach);
22020 if( status < 0 ) status = errno;
22022 status = pthread_attr_setdetachstate(&attr, detach);
22024 if( status ) return status;
22025 status = pthread_create( &t, &attr, task, NULL );
22026 #if HAVE_PTHREADS < 7
22027 if( status < 0 ) status = errno;
22029 if( status ) return status;
22031 /* Draft 4 pthreads */
22032 status = pthread_create( &t, pthread_attr_default, task, NULL );
22033 if( status ) return errno;
22035 /* give thread a chance to complete */
22036 /* it should remain joinable and hence detachable */
22039 status = pthread_detach( &t );
22040 if( status ) return errno;
22043 #ifdef HAVE_LINUX_THREADS
22044 pthread_kill_other_threads_np();
22053 rm -f conftest.$ac_objext conftest$ac_exeext
22054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22055 (eval $ac_link) 2>conftest.er1
22057 grep -v '^ *+' conftest.er1 >conftest.err
22059 cat conftest.err >&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); } &&
22062 { ac_try='test -z "$ac_c_werror_flag"
22063 || test ! -s conftest.err'
22064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22065 (eval $ac_try) 2>&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); }; } &&
22069 { ac_try='test -s conftest$ac_exeext'
22070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071 (eval $ac_try) 2>&5
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; }; then
22075 ol_cv_pthread_lpthread_lmach_lexc=yes
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080 ol_cv_pthread_lpthread_lmach_lexc=no
22082 rm -f conftest.err conftest.$ac_objext \
22083 conftest$ac_exeext conftest.$ac_ext
22085 cat >conftest.$ac_ext <<_ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h. */
22092 /* pthread test headers */
22093 #include <pthread.h>
22094 #if HAVE_PTHREADS < 7
22098 #define NULL (void*)0
22101 static void *task(p)
22104 return (void *) (p == NULL);
22108 int main(argc, argv)
22113 /* pthread test function */
22114 #ifndef PTHREAD_CREATE_DETACHED
22115 #define PTHREAD_CREATE_DETACHED 1
22119 int detach = PTHREAD_CREATE_DETACHED;
22121 #if HAVE_PTHREADS > 4
22122 /* Final pthreads */
22123 pthread_attr_t attr;
22125 status = pthread_attr_init(&attr);
22126 if( status ) return status;
22128 #if HAVE_PTHREADS < 7
22129 status = pthread_attr_setdetachstate(&attr, &detach);
22130 if( status < 0 ) status = errno;
22132 status = pthread_attr_setdetachstate(&attr, detach);
22134 if( status ) return status;
22135 status = pthread_create( &t, &attr, task, NULL );
22136 #if HAVE_PTHREADS < 7
22137 if( status < 0 ) status = errno;
22139 if( status ) return status;
22141 /* Draft 4 pthreads */
22142 status = pthread_create( &t, pthread_attr_default, task, NULL );
22143 if( status ) return errno;
22145 /* give thread a chance to complete */
22146 /* it should remain joinable and hence detachable */
22149 status = pthread_detach( &t );
22150 if( status ) return errno;
22153 #ifdef HAVE_LINUX_THREADS
22154 pthread_kill_other_threads_np();
22162 rm -f conftest$ac_exeext
22163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22164 (eval $ac_link) 2>&5
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169 (eval $ac_try) 2>&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); }; }; then
22173 ol_cv_pthread_lpthread_lmach_lexc=yes
22175 echo "$as_me: program exited with status $ac_status" >&5
22176 echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22179 ( exit $ac_status )
22180 ol_cv_pthread_lpthread_lmach_lexc=no
22182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22189 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22190 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22192 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22193 ol_link_pthreads="-lpthread -lmach -lexc"
22194 ol_link_threads=posix
22199 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22200 if test "$ol_link_threads" = no ; then
22201 # try -lpthread -Wl,-woff,85
22202 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22203 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22204 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
22210 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22212 if test "$cross_compiling" = yes; then
22213 cat >conftest.$ac_ext <<_ACEOF
22216 cat confdefs.h >>conftest.$ac_ext
22217 cat >>conftest.$ac_ext <<_ACEOF
22218 /* end confdefs.h. */
22220 /* pthread test headers */
22221 #include <pthread.h>
22222 #if HAVE_PTHREADS < 7
22226 #define NULL (void*)0
22229 static void *task(p)
22232 return (void *) (p == NULL);
22239 /* pthread test function */
22240 #ifndef PTHREAD_CREATE_DETACHED
22241 #define PTHREAD_CREATE_DETACHED 1
22245 int detach = PTHREAD_CREATE_DETACHED;
22247 #if HAVE_PTHREADS > 4
22248 /* Final pthreads */
22249 pthread_attr_t attr;
22251 status = pthread_attr_init(&attr);
22252 if( status ) return status;
22254 #if HAVE_PTHREADS < 7
22255 status = pthread_attr_setdetachstate(&attr, &detach);
22256 if( status < 0 ) status = errno;
22258 status = pthread_attr_setdetachstate(&attr, detach);
22260 if( status ) return status;
22261 status = pthread_create( &t, &attr, task, NULL );
22262 #if HAVE_PTHREADS < 7
22263 if( status < 0 ) status = errno;
22265 if( status ) return status;
22267 /* Draft 4 pthreads */
22268 status = pthread_create( &t, pthread_attr_default, task, NULL );
22269 if( status ) return errno;
22271 /* give thread a chance to complete */
22272 /* it should remain joinable and hence detachable */
22275 status = pthread_detach( &t );
22276 if( status ) return errno;
22279 #ifdef HAVE_LINUX_THREADS
22280 pthread_kill_other_threads_np();
22289 rm -f conftest.$ac_objext conftest$ac_exeext
22290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22291 (eval $ac_link) 2>conftest.er1
22293 grep -v '^ *+' conftest.er1 >conftest.err
22295 cat conftest.err >&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } &&
22298 { ac_try='test -z "$ac_c_werror_flag"
22299 || test ! -s conftest.err'
22300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301 (eval $ac_try) 2>&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); }; } &&
22305 { ac_try='test -s conftest$ac_exeext'
22306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307 (eval $ac_try) 2>&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); }; }; then
22311 ol_cv_pthread_lib_lpthread_woff=yes
22313 echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22316 ol_cv_pthread_lib_lpthread_woff=no
22318 rm -f conftest.err conftest.$ac_objext \
22319 conftest$ac_exeext conftest.$ac_ext
22321 cat >conftest.$ac_ext <<_ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h. */
22328 /* pthread test headers */
22329 #include <pthread.h>
22330 #if HAVE_PTHREADS < 7
22334 #define NULL (void*)0
22337 static void *task(p)
22340 return (void *) (p == NULL);
22344 int main(argc, argv)
22349 /* pthread test function */
22350 #ifndef PTHREAD_CREATE_DETACHED
22351 #define PTHREAD_CREATE_DETACHED 1
22355 int detach = PTHREAD_CREATE_DETACHED;
22357 #if HAVE_PTHREADS > 4
22358 /* Final pthreads */
22359 pthread_attr_t attr;
22361 status = pthread_attr_init(&attr);
22362 if( status ) return status;
22364 #if HAVE_PTHREADS < 7
22365 status = pthread_attr_setdetachstate(&attr, &detach);
22366 if( status < 0 ) status = errno;
22368 status = pthread_attr_setdetachstate(&attr, detach);
22370 if( status ) return status;
22371 status = pthread_create( &t, &attr, task, NULL );
22372 #if HAVE_PTHREADS < 7
22373 if( status < 0 ) status = errno;
22375 if( status ) return status;
22377 /* Draft 4 pthreads */
22378 status = pthread_create( &t, pthread_attr_default, task, NULL );
22379 if( status ) return errno;
22381 /* give thread a chance to complete */
22382 /* it should remain joinable and hence detachable */
22385 status = pthread_detach( &t );
22386 if( status ) return errno;
22389 #ifdef HAVE_LINUX_THREADS
22390 pthread_kill_other_threads_np();
22398 rm -f conftest$ac_exeext
22399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22400 (eval $ac_link) 2>&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405 (eval $ac_try) 2>&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); }; }; then
22409 ol_cv_pthread_lib_lpthread_woff=yes
22411 echo "$as_me: program exited with status $ac_status" >&5
22412 echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 ( exit $ac_status )
22416 ol_cv_pthread_lib_lpthread_woff=no
22418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22425 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22426 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22428 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22429 ol_link_pthreads="-lpthread -Wl,-woff,85"
22430 ol_link_threads=posix
22435 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22436 if test "$ol_link_threads" = no ; then
22438 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22439 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22440 if test "${ol_cv_pthread_lpthread+set}" = set; then
22441 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 LIBS="-lpthread $LIBS"
22448 if test "$cross_compiling" = yes; then
22449 cat >conftest.$ac_ext <<_ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h. */
22456 /* pthread test headers */
22457 #include <pthread.h>
22458 #if HAVE_PTHREADS < 7
22462 #define NULL (void*)0
22465 static void *task(p)
22468 return (void *) (p == NULL);
22475 /* pthread test function */
22476 #ifndef PTHREAD_CREATE_DETACHED
22477 #define PTHREAD_CREATE_DETACHED 1
22481 int detach = PTHREAD_CREATE_DETACHED;
22483 #if HAVE_PTHREADS > 4
22484 /* Final pthreads */
22485 pthread_attr_t attr;
22487 status = pthread_attr_init(&attr);
22488 if( status ) return status;
22490 #if HAVE_PTHREADS < 7
22491 status = pthread_attr_setdetachstate(&attr, &detach);
22492 if( status < 0 ) status = errno;
22494 status = pthread_attr_setdetachstate(&attr, detach);
22496 if( status ) return status;
22497 status = pthread_create( &t, &attr, task, NULL );
22498 #if HAVE_PTHREADS < 7
22499 if( status < 0 ) status = errno;
22501 if( status ) return status;
22503 /* Draft 4 pthreads */
22504 status = pthread_create( &t, pthread_attr_default, task, NULL );
22505 if( status ) return errno;
22507 /* give thread a chance to complete */
22508 /* it should remain joinable and hence detachable */
22511 status = pthread_detach( &t );
22512 if( status ) return errno;
22515 #ifdef HAVE_LINUX_THREADS
22516 pthread_kill_other_threads_np();
22525 rm -f conftest.$ac_objext conftest$ac_exeext
22526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22527 (eval $ac_link) 2>conftest.er1
22529 grep -v '^ *+' conftest.er1 >conftest.err
22531 cat conftest.err >&5
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); } &&
22534 { ac_try='test -z "$ac_c_werror_flag"
22535 || test ! -s conftest.err'
22536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537 (eval $ac_try) 2>&5
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); }; } &&
22541 { ac_try='test -s conftest$ac_exeext'
22542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543 (eval $ac_try) 2>&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }; }; then
22547 ol_cv_pthread_lpthread=yes
22549 echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22552 ol_cv_pthread_lpthread=no
22554 rm -f conftest.err conftest.$ac_objext \
22555 conftest$ac_exeext conftest.$ac_ext
22557 cat >conftest.$ac_ext <<_ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h. */
22564 /* pthread test headers */
22565 #include <pthread.h>
22566 #if HAVE_PTHREADS < 7
22570 #define NULL (void*)0
22573 static void *task(p)
22576 return (void *) (p == NULL);
22580 int main(argc, argv)
22585 /* pthread test function */
22586 #ifndef PTHREAD_CREATE_DETACHED
22587 #define PTHREAD_CREATE_DETACHED 1
22591 int detach = PTHREAD_CREATE_DETACHED;
22593 #if HAVE_PTHREADS > 4
22594 /* Final pthreads */
22595 pthread_attr_t attr;
22597 status = pthread_attr_init(&attr);
22598 if( status ) return status;
22600 #if HAVE_PTHREADS < 7
22601 status = pthread_attr_setdetachstate(&attr, &detach);
22602 if( status < 0 ) status = errno;
22604 status = pthread_attr_setdetachstate(&attr, detach);
22606 if( status ) return status;
22607 status = pthread_create( &t, &attr, task, NULL );
22608 #if HAVE_PTHREADS < 7
22609 if( status < 0 ) status = errno;
22611 if( status ) return status;
22613 /* Draft 4 pthreads */
22614 status = pthread_create( &t, pthread_attr_default, task, NULL );
22615 if( status ) return errno;
22617 /* give thread a chance to complete */
22618 /* it should remain joinable and hence detachable */
22621 status = pthread_detach( &t );
22622 if( status ) return errno;
22625 #ifdef HAVE_LINUX_THREADS
22626 pthread_kill_other_threads_np();
22634 rm -f conftest$ac_exeext
22635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22636 (eval $ac_link) 2>&5
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641 (eval $ac_try) 2>&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); }; }; then
22645 ol_cv_pthread_lpthread=yes
22647 echo "$as_me: program exited with status $ac_status" >&5
22648 echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22651 ( exit $ac_status )
22652 ol_cv_pthread_lpthread=no
22654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22661 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22662 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22664 if test $ol_cv_pthread_lpthread = yes ; then
22665 ol_link_pthreads="-lpthread"
22666 ol_link_threads=posix
22670 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22671 if test "$ol_link_threads" = no ; then
22673 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22674 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22675 if test "${ol_cv_pthread_lc_r+set}" = set; then
22676 echo $ECHO_N "(cached) $ECHO_C" >&6
22683 if test "$cross_compiling" = yes; then
22684 cat >conftest.$ac_ext <<_ACEOF
22687 cat confdefs.h >>conftest.$ac_ext
22688 cat >>conftest.$ac_ext <<_ACEOF
22689 /* end confdefs.h. */
22691 /* pthread test headers */
22692 #include <pthread.h>
22693 #if HAVE_PTHREADS < 7
22697 #define NULL (void*)0
22700 static void *task(p)
22703 return (void *) (p == NULL);
22710 /* pthread test function */
22711 #ifndef PTHREAD_CREATE_DETACHED
22712 #define PTHREAD_CREATE_DETACHED 1
22716 int detach = PTHREAD_CREATE_DETACHED;
22718 #if HAVE_PTHREADS > 4
22719 /* Final pthreads */
22720 pthread_attr_t attr;
22722 status = pthread_attr_init(&attr);
22723 if( status ) return status;
22725 #if HAVE_PTHREADS < 7
22726 status = pthread_attr_setdetachstate(&attr, &detach);
22727 if( status < 0 ) status = errno;
22729 status = pthread_attr_setdetachstate(&attr, detach);
22731 if( status ) return status;
22732 status = pthread_create( &t, &attr, task, NULL );
22733 #if HAVE_PTHREADS < 7
22734 if( status < 0 ) status = errno;
22736 if( status ) return status;
22738 /* Draft 4 pthreads */
22739 status = pthread_create( &t, pthread_attr_default, task, NULL );
22740 if( status ) return errno;
22742 /* give thread a chance to complete */
22743 /* it should remain joinable and hence detachable */
22746 status = pthread_detach( &t );
22747 if( status ) return errno;
22750 #ifdef HAVE_LINUX_THREADS
22751 pthread_kill_other_threads_np();
22760 rm -f conftest.$ac_objext conftest$ac_exeext
22761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22762 (eval $ac_link) 2>conftest.er1
22764 grep -v '^ *+' conftest.er1 >conftest.err
22766 cat conftest.err >&5
22767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); } &&
22769 { ac_try='test -z "$ac_c_werror_flag"
22770 || test ! -s conftest.err'
22771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22772 (eval $ac_try) 2>&5
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); }; } &&
22776 { ac_try='test -s conftest$ac_exeext'
22777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22778 (eval $ac_try) 2>&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); }; }; then
22782 ol_cv_pthread_lc_r=yes
22784 echo "$as_me: failed program was:" >&5
22785 sed 's/^/| /' conftest.$ac_ext >&5
22787 ol_cv_pthread_lc_r=no
22789 rm -f conftest.err conftest.$ac_objext \
22790 conftest$ac_exeext conftest.$ac_ext
22792 cat >conftest.$ac_ext <<_ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h. */
22799 /* pthread test headers */
22800 #include <pthread.h>
22801 #if HAVE_PTHREADS < 7
22805 #define NULL (void*)0
22808 static void *task(p)
22811 return (void *) (p == NULL);
22815 int main(argc, argv)
22820 /* pthread test function */
22821 #ifndef PTHREAD_CREATE_DETACHED
22822 #define PTHREAD_CREATE_DETACHED 1
22826 int detach = PTHREAD_CREATE_DETACHED;
22828 #if HAVE_PTHREADS > 4
22829 /* Final pthreads */
22830 pthread_attr_t attr;
22832 status = pthread_attr_init(&attr);
22833 if( status ) return status;
22835 #if HAVE_PTHREADS < 7
22836 status = pthread_attr_setdetachstate(&attr, &detach);
22837 if( status < 0 ) status = errno;
22839 status = pthread_attr_setdetachstate(&attr, detach);
22841 if( status ) return status;
22842 status = pthread_create( &t, &attr, task, NULL );
22843 #if HAVE_PTHREADS < 7
22844 if( status < 0 ) status = errno;
22846 if( status ) return status;
22848 /* Draft 4 pthreads */
22849 status = pthread_create( &t, pthread_attr_default, task, NULL );
22850 if( status ) return errno;
22852 /* give thread a chance to complete */
22853 /* it should remain joinable and hence detachable */
22856 status = pthread_detach( &t );
22857 if( status ) return errno;
22860 #ifdef HAVE_LINUX_THREADS
22861 pthread_kill_other_threads_np();
22869 rm -f conftest$ac_exeext
22870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22871 (eval $ac_link) 2>&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22876 (eval $ac_try) 2>&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); }; }; then
22880 ol_cv_pthread_lc_r=yes
22882 echo "$as_me: program exited with status $ac_status" >&5
22883 echo "$as_me: failed program was:" >&5
22884 sed 's/^/| /' conftest.$ac_ext >&5
22886 ( exit $ac_status )
22887 ol_cv_pthread_lc_r=no
22889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22896 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22897 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22899 if test $ol_cv_pthread_lc_r = yes ; then
22900 ol_link_pthreads="-lc_r"
22901 ol_link_threads=posix
22906 # Pthread try link: -threads (ol_cv_pthread_threads)
22907 if test "$ol_link_threads" = no ; then
22909 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22910 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22911 if test "${ol_cv_pthread_threads+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22917 LIBS="-threads $LIBS"
22919 if test "$cross_compiling" = yes; then
22920 cat >conftest.$ac_ext <<_ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h. */
22927 /* pthread test headers */
22928 #include <pthread.h>
22929 #if HAVE_PTHREADS < 7
22933 #define NULL (void*)0
22936 static void *task(p)
22939 return (void *) (p == NULL);
22946 /* pthread test function */
22947 #ifndef PTHREAD_CREATE_DETACHED
22948 #define PTHREAD_CREATE_DETACHED 1
22952 int detach = PTHREAD_CREATE_DETACHED;
22954 #if HAVE_PTHREADS > 4
22955 /* Final pthreads */
22956 pthread_attr_t attr;
22958 status = pthread_attr_init(&attr);
22959 if( status ) return status;
22961 #if HAVE_PTHREADS < 7
22962 status = pthread_attr_setdetachstate(&attr, &detach);
22963 if( status < 0 ) status = errno;
22965 status = pthread_attr_setdetachstate(&attr, detach);
22967 if( status ) return status;
22968 status = pthread_create( &t, &attr, task, NULL );
22969 #if HAVE_PTHREADS < 7
22970 if( status < 0 ) status = errno;
22972 if( status ) return status;
22974 /* Draft 4 pthreads */
22975 status = pthread_create( &t, pthread_attr_default, task, NULL );
22976 if( status ) return errno;
22978 /* give thread a chance to complete */
22979 /* it should remain joinable and hence detachable */
22982 status = pthread_detach( &t );
22983 if( status ) return errno;
22986 #ifdef HAVE_LINUX_THREADS
22987 pthread_kill_other_threads_np();
22996 rm -f conftest.$ac_objext conftest$ac_exeext
22997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22998 (eval $ac_link) 2>conftest.er1
23000 grep -v '^ *+' conftest.er1 >conftest.err
23002 cat conftest.err >&5
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); } &&
23005 { ac_try='test -z "$ac_c_werror_flag"
23006 || test ! -s conftest.err'
23007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23008 (eval $ac_try) 2>&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); }; } &&
23012 { ac_try='test -s conftest$ac_exeext'
23013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014 (eval $ac_try) 2>&5
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); }; }; then
23018 ol_cv_pthread_threads=yes
23020 echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23023 ol_cv_pthread_threads=no
23025 rm -f conftest.err conftest.$ac_objext \
23026 conftest$ac_exeext conftest.$ac_ext
23028 cat >conftest.$ac_ext <<_ACEOF
23031 cat confdefs.h >>conftest.$ac_ext
23032 cat >>conftest.$ac_ext <<_ACEOF
23033 /* end confdefs.h. */
23035 /* pthread test headers */
23036 #include <pthread.h>
23037 #if HAVE_PTHREADS < 7
23041 #define NULL (void*)0
23044 static void *task(p)
23047 return (void *) (p == NULL);
23051 int main(argc, argv)
23056 /* pthread test function */
23057 #ifndef PTHREAD_CREATE_DETACHED
23058 #define PTHREAD_CREATE_DETACHED 1
23062 int detach = PTHREAD_CREATE_DETACHED;
23064 #if HAVE_PTHREADS > 4
23065 /* Final pthreads */
23066 pthread_attr_t attr;
23068 status = pthread_attr_init(&attr);
23069 if( status ) return status;
23071 #if HAVE_PTHREADS < 7
23072 status = pthread_attr_setdetachstate(&attr, &detach);
23073 if( status < 0 ) status = errno;
23075 status = pthread_attr_setdetachstate(&attr, detach);
23077 if( status ) return status;
23078 status = pthread_create( &t, &attr, task, NULL );
23079 #if HAVE_PTHREADS < 7
23080 if( status < 0 ) status = errno;
23082 if( status ) return status;
23084 /* Draft 4 pthreads */
23085 status = pthread_create( &t, pthread_attr_default, task, NULL );
23086 if( status ) return errno;
23088 /* give thread a chance to complete */
23089 /* it should remain joinable and hence detachable */
23092 status = pthread_detach( &t );
23093 if( status ) return errno;
23096 #ifdef HAVE_LINUX_THREADS
23097 pthread_kill_other_threads_np();
23105 rm -f conftest$ac_exeext
23106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23107 (eval $ac_link) 2>&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23112 (eval $ac_try) 2>&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); }; }; then
23116 ol_cv_pthread_threads=yes
23118 echo "$as_me: program exited with status $ac_status" >&5
23119 echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23122 ( exit $ac_status )
23123 ol_cv_pthread_threads=no
23125 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23132 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23133 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23135 if test $ol_cv_pthread_threads = yes ; then
23136 ol_link_pthreads="-threads"
23137 ol_link_threads=posix
23142 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23143 if test "$ol_link_threads" = no ; then
23144 # try -lpthreads -lmach -lexc -lc_r
23145 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23146 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23147 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23148 echo $ECHO_N "(cached) $ECHO_C" >&6
23153 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23155 if test "$cross_compiling" = yes; then
23156 cat >conftest.$ac_ext <<_ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h. */
23163 /* pthread test headers */
23164 #include <pthread.h>
23165 #if HAVE_PTHREADS < 7
23169 #define NULL (void*)0
23172 static void *task(p)
23175 return (void *) (p == NULL);
23182 /* pthread test function */
23183 #ifndef PTHREAD_CREATE_DETACHED
23184 #define PTHREAD_CREATE_DETACHED 1
23188 int detach = PTHREAD_CREATE_DETACHED;
23190 #if HAVE_PTHREADS > 4
23191 /* Final pthreads */
23192 pthread_attr_t attr;
23194 status = pthread_attr_init(&attr);
23195 if( status ) return status;
23197 #if HAVE_PTHREADS < 7
23198 status = pthread_attr_setdetachstate(&attr, &detach);
23199 if( status < 0 ) status = errno;
23201 status = pthread_attr_setdetachstate(&attr, detach);
23203 if( status ) return status;
23204 status = pthread_create( &t, &attr, task, NULL );
23205 #if HAVE_PTHREADS < 7
23206 if( status < 0 ) status = errno;
23208 if( status ) return status;
23210 /* Draft 4 pthreads */
23211 status = pthread_create( &t, pthread_attr_default, task, NULL );
23212 if( status ) return errno;
23214 /* give thread a chance to complete */
23215 /* it should remain joinable and hence detachable */
23218 status = pthread_detach( &t );
23219 if( status ) return errno;
23222 #ifdef HAVE_LINUX_THREADS
23223 pthread_kill_other_threads_np();
23232 rm -f conftest.$ac_objext conftest$ac_exeext
23233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23234 (eval $ac_link) 2>conftest.er1
23236 grep -v '^ *+' conftest.er1 >conftest.err
23238 cat conftest.err >&5
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); } &&
23241 { ac_try='test -z "$ac_c_werror_flag"
23242 || test ! -s conftest.err'
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; } &&
23248 { ac_try='test -s conftest$ac_exeext'
23249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23250 (eval $ac_try) 2>&5
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); }; }; then
23254 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23256 echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23259 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23261 rm -f conftest.err conftest.$ac_objext \
23262 conftest$ac_exeext conftest.$ac_ext
23264 cat >conftest.$ac_ext <<_ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h. */
23271 /* pthread test headers */
23272 #include <pthread.h>
23273 #if HAVE_PTHREADS < 7
23277 #define NULL (void*)0
23280 static void *task(p)
23283 return (void *) (p == NULL);
23287 int main(argc, argv)
23292 /* pthread test function */
23293 #ifndef PTHREAD_CREATE_DETACHED
23294 #define PTHREAD_CREATE_DETACHED 1
23298 int detach = PTHREAD_CREATE_DETACHED;
23300 #if HAVE_PTHREADS > 4
23301 /* Final pthreads */
23302 pthread_attr_t attr;
23304 status = pthread_attr_init(&attr);
23305 if( status ) return status;
23307 #if HAVE_PTHREADS < 7
23308 status = pthread_attr_setdetachstate(&attr, &detach);
23309 if( status < 0 ) status = errno;
23311 status = pthread_attr_setdetachstate(&attr, detach);
23313 if( status ) return status;
23314 status = pthread_create( &t, &attr, task, NULL );
23315 #if HAVE_PTHREADS < 7
23316 if( status < 0 ) status = errno;
23318 if( status ) return status;
23320 /* Draft 4 pthreads */
23321 status = pthread_create( &t, pthread_attr_default, task, NULL );
23322 if( status ) return errno;
23324 /* give thread a chance to complete */
23325 /* it should remain joinable and hence detachable */
23328 status = pthread_detach( &t );
23329 if( status ) return errno;
23332 #ifdef HAVE_LINUX_THREADS
23333 pthread_kill_other_threads_np();
23341 rm -f conftest$ac_exeext
23342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23343 (eval $ac_link) 2>&5
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23348 (eval $ac_try) 2>&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); }; }; then
23352 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23354 echo "$as_me: program exited with status $ac_status" >&5
23355 echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23358 ( exit $ac_status )
23359 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23368 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23369 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23371 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23372 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23373 ol_link_threads=posix
23377 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23378 if test "$ol_link_threads" = no ; then
23379 # try -lpthreads -lmach -lexc
23380 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23381 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23382 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23383 echo $ECHO_N "(cached) $ECHO_C" >&6
23388 LIBS="-lpthreads -lmach -lexc $LIBS"
23390 if test "$cross_compiling" = yes; then
23391 cat >conftest.$ac_ext <<_ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23398 /* pthread test headers */
23399 #include <pthread.h>
23400 #if HAVE_PTHREADS < 7
23404 #define NULL (void*)0
23407 static void *task(p)
23410 return (void *) (p == NULL);
23417 /* pthread test function */
23418 #ifndef PTHREAD_CREATE_DETACHED
23419 #define PTHREAD_CREATE_DETACHED 1
23423 int detach = PTHREAD_CREATE_DETACHED;
23425 #if HAVE_PTHREADS > 4
23426 /* Final pthreads */
23427 pthread_attr_t attr;
23429 status = pthread_attr_init(&attr);
23430 if( status ) return status;
23432 #if HAVE_PTHREADS < 7
23433 status = pthread_attr_setdetachstate(&attr, &detach);
23434 if( status < 0 ) status = errno;
23436 status = pthread_attr_setdetachstate(&attr, detach);
23438 if( status ) return status;
23439 status = pthread_create( &t, &attr, task, NULL );
23440 #if HAVE_PTHREADS < 7
23441 if( status < 0 ) status = errno;
23443 if( status ) return status;
23445 /* Draft 4 pthreads */
23446 status = pthread_create( &t, pthread_attr_default, task, NULL );
23447 if( status ) return errno;
23449 /* give thread a chance to complete */
23450 /* it should remain joinable and hence detachable */
23453 status = pthread_detach( &t );
23454 if( status ) return errno;
23457 #ifdef HAVE_LINUX_THREADS
23458 pthread_kill_other_threads_np();
23467 rm -f conftest.$ac_objext conftest$ac_exeext
23468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23469 (eval $ac_link) 2>conftest.er1
23471 grep -v '^ *+' conftest.er1 >conftest.err
23473 cat conftest.err >&5
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } &&
23476 { ac_try='test -z "$ac_c_werror_flag"
23477 || test ! -s conftest.err'
23478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479 (eval $ac_try) 2>&5
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); }; } &&
23483 { ac_try='test -s conftest$ac_exeext'
23484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23485 (eval $ac_try) 2>&5
23487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488 (exit $ac_status); }; }; then
23489 ol_cv_pthread_lpthreads_lmach_lexc=yes
23491 echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23494 ol_cv_pthread_lpthreads_lmach_lexc=no
23496 rm -f conftest.err conftest.$ac_objext \
23497 conftest$ac_exeext conftest.$ac_ext
23499 cat >conftest.$ac_ext <<_ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23506 /* pthread test headers */
23507 #include <pthread.h>
23508 #if HAVE_PTHREADS < 7
23512 #define NULL (void*)0
23515 static void *task(p)
23518 return (void *) (p == NULL);
23522 int main(argc, argv)
23527 /* pthread test function */
23528 #ifndef PTHREAD_CREATE_DETACHED
23529 #define PTHREAD_CREATE_DETACHED 1
23533 int detach = PTHREAD_CREATE_DETACHED;
23535 #if HAVE_PTHREADS > 4
23536 /* Final pthreads */
23537 pthread_attr_t attr;
23539 status = pthread_attr_init(&attr);
23540 if( status ) return status;
23542 #if HAVE_PTHREADS < 7
23543 status = pthread_attr_setdetachstate(&attr, &detach);
23544 if( status < 0 ) status = errno;
23546 status = pthread_attr_setdetachstate(&attr, detach);
23548 if( status ) return status;
23549 status = pthread_create( &t, &attr, task, NULL );
23550 #if HAVE_PTHREADS < 7
23551 if( status < 0 ) status = errno;
23553 if( status ) return status;
23555 /* Draft 4 pthreads */
23556 status = pthread_create( &t, pthread_attr_default, task, NULL );
23557 if( status ) return errno;
23559 /* give thread a chance to complete */
23560 /* it should remain joinable and hence detachable */
23563 status = pthread_detach( &t );
23564 if( status ) return errno;
23567 #ifdef HAVE_LINUX_THREADS
23568 pthread_kill_other_threads_np();
23576 rm -f conftest$ac_exeext
23577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23578 (eval $ac_link) 2>&5
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583 (eval $ac_try) 2>&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); }; }; then
23587 ol_cv_pthread_lpthreads_lmach_lexc=yes
23589 echo "$as_me: program exited with status $ac_status" >&5
23590 echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23593 ( exit $ac_status )
23594 ol_cv_pthread_lpthreads_lmach_lexc=no
23596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23603 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23604 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23606 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23607 ol_link_pthreads="-lpthreads -lmach -lexc"
23608 ol_link_threads=posix
23612 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23613 if test "$ol_link_threads" = no ; then
23614 # try -lpthreads -lexc
23615 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23616 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23617 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23618 echo $ECHO_N "(cached) $ECHO_C" >&6
23623 LIBS="-lpthreads -lexc $LIBS"
23625 if test "$cross_compiling" = yes; then
23626 cat >conftest.$ac_ext <<_ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h. */
23633 /* pthread test headers */
23634 #include <pthread.h>
23635 #if HAVE_PTHREADS < 7
23639 #define NULL (void*)0
23642 static void *task(p)
23645 return (void *) (p == NULL);
23652 /* pthread test function */
23653 #ifndef PTHREAD_CREATE_DETACHED
23654 #define PTHREAD_CREATE_DETACHED 1
23658 int detach = PTHREAD_CREATE_DETACHED;
23660 #if HAVE_PTHREADS > 4
23661 /* Final pthreads */
23662 pthread_attr_t attr;
23664 status = pthread_attr_init(&attr);
23665 if( status ) return status;
23667 #if HAVE_PTHREADS < 7
23668 status = pthread_attr_setdetachstate(&attr, &detach);
23669 if( status < 0 ) status = errno;
23671 status = pthread_attr_setdetachstate(&attr, detach);
23673 if( status ) return status;
23674 status = pthread_create( &t, &attr, task, NULL );
23675 #if HAVE_PTHREADS < 7
23676 if( status < 0 ) status = errno;
23678 if( status ) return status;
23680 /* Draft 4 pthreads */
23681 status = pthread_create( &t, pthread_attr_default, task, NULL );
23682 if( status ) return errno;
23684 /* give thread a chance to complete */
23685 /* it should remain joinable and hence detachable */
23688 status = pthread_detach( &t );
23689 if( status ) return errno;
23692 #ifdef HAVE_LINUX_THREADS
23693 pthread_kill_other_threads_np();
23702 rm -f conftest.$ac_objext conftest$ac_exeext
23703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23704 (eval $ac_link) 2>conftest.er1
23706 grep -v '^ *+' conftest.er1 >conftest.err
23708 cat conftest.err >&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); } &&
23711 { ac_try='test -z "$ac_c_werror_flag"
23712 || test ! -s conftest.err'
23713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23714 (eval $ac_try) 2>&5
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); }; } &&
23718 { ac_try='test -s conftest$ac_exeext'
23719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23720 (eval $ac_try) 2>&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); }; }; then
23724 ol_cv_pthread_lpthreads_lexc=yes
23726 echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.$ac_ext >&5
23729 ol_cv_pthread_lpthreads_lexc=no
23731 rm -f conftest.err conftest.$ac_objext \
23732 conftest$ac_exeext conftest.$ac_ext
23734 cat >conftest.$ac_ext <<_ACEOF
23737 cat confdefs.h >>conftest.$ac_ext
23738 cat >>conftest.$ac_ext <<_ACEOF
23739 /* end confdefs.h. */
23741 /* pthread test headers */
23742 #include <pthread.h>
23743 #if HAVE_PTHREADS < 7
23747 #define NULL (void*)0
23750 static void *task(p)
23753 return (void *) (p == NULL);
23757 int main(argc, argv)
23762 /* pthread test function */
23763 #ifndef PTHREAD_CREATE_DETACHED
23764 #define PTHREAD_CREATE_DETACHED 1
23768 int detach = PTHREAD_CREATE_DETACHED;
23770 #if HAVE_PTHREADS > 4
23771 /* Final pthreads */
23772 pthread_attr_t attr;
23774 status = pthread_attr_init(&attr);
23775 if( status ) return status;
23777 #if HAVE_PTHREADS < 7
23778 status = pthread_attr_setdetachstate(&attr, &detach);
23779 if( status < 0 ) status = errno;
23781 status = pthread_attr_setdetachstate(&attr, detach);
23783 if( status ) return status;
23784 status = pthread_create( &t, &attr, task, NULL );
23785 #if HAVE_PTHREADS < 7
23786 if( status < 0 ) status = errno;
23788 if( status ) return status;
23790 /* Draft 4 pthreads */
23791 status = pthread_create( &t, pthread_attr_default, task, NULL );
23792 if( status ) return errno;
23794 /* give thread a chance to complete */
23795 /* it should remain joinable and hence detachable */
23798 status = pthread_detach( &t );
23799 if( status ) return errno;
23802 #ifdef HAVE_LINUX_THREADS
23803 pthread_kill_other_threads_np();
23811 rm -f conftest$ac_exeext
23812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23813 (eval $ac_link) 2>&5
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23818 (eval $ac_try) 2>&5
23820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821 (exit $ac_status); }; }; then
23822 ol_cv_pthread_lpthreads_lexc=yes
23824 echo "$as_me: program exited with status $ac_status" >&5
23825 echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23828 ( exit $ac_status )
23829 ol_cv_pthread_lpthreads_lexc=no
23831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23838 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23839 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23841 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23842 ol_link_pthreads="-lpthreads -lexc"
23843 ol_link_threads=posix
23848 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23849 if test "$ol_link_threads" = no ; then
23851 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23852 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23853 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23854 echo $ECHO_N "(cached) $ECHO_C" >&6
23859 LIBS="-lpthreads $LIBS"
23861 if test "$cross_compiling" = yes; then
23862 cat >conftest.$ac_ext <<_ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h. */
23869 /* pthread test headers */
23870 #include <pthread.h>
23871 #if HAVE_PTHREADS < 7
23875 #define NULL (void*)0
23878 static void *task(p)
23881 return (void *) (p == NULL);
23888 /* pthread test function */
23889 #ifndef PTHREAD_CREATE_DETACHED
23890 #define PTHREAD_CREATE_DETACHED 1
23894 int detach = PTHREAD_CREATE_DETACHED;
23896 #if HAVE_PTHREADS > 4
23897 /* Final pthreads */
23898 pthread_attr_t attr;
23900 status = pthread_attr_init(&attr);
23901 if( status ) return status;
23903 #if HAVE_PTHREADS < 7
23904 status = pthread_attr_setdetachstate(&attr, &detach);
23905 if( status < 0 ) status = errno;
23907 status = pthread_attr_setdetachstate(&attr, detach);
23909 if( status ) return status;
23910 status = pthread_create( &t, &attr, task, NULL );
23911 #if HAVE_PTHREADS < 7
23912 if( status < 0 ) status = errno;
23914 if( status ) return status;
23916 /* Draft 4 pthreads */
23917 status = pthread_create( &t, pthread_attr_default, task, NULL );
23918 if( status ) return errno;
23920 /* give thread a chance to complete */
23921 /* it should remain joinable and hence detachable */
23924 status = pthread_detach( &t );
23925 if( status ) return errno;
23928 #ifdef HAVE_LINUX_THREADS
23929 pthread_kill_other_threads_np();
23938 rm -f conftest.$ac_objext conftest$ac_exeext
23939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23940 (eval $ac_link) 2>conftest.er1
23942 grep -v '^ *+' conftest.er1 >conftest.err
23944 cat conftest.err >&5
23945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); } &&
23947 { ac_try='test -z "$ac_c_werror_flag"
23948 || test ! -s conftest.err'
23949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23950 (eval $ac_try) 2>&5
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); }; } &&
23954 { ac_try='test -s conftest$ac_exeext'
23955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956 (eval $ac_try) 2>&5
23958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959 (exit $ac_status); }; }; then
23960 ol_cv_pthread_lib_lpthreads=yes
23962 echo "$as_me: failed program was:" >&5
23963 sed 's/^/| /' conftest.$ac_ext >&5
23965 ol_cv_pthread_lib_lpthreads=no
23967 rm -f conftest.err conftest.$ac_objext \
23968 conftest$ac_exeext conftest.$ac_ext
23970 cat >conftest.$ac_ext <<_ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23977 /* pthread test headers */
23978 #include <pthread.h>
23979 #if HAVE_PTHREADS < 7
23983 #define NULL (void*)0
23986 static void *task(p)
23989 return (void *) (p == NULL);
23993 int main(argc, argv)
23998 /* pthread test function */
23999 #ifndef PTHREAD_CREATE_DETACHED
24000 #define PTHREAD_CREATE_DETACHED 1
24004 int detach = PTHREAD_CREATE_DETACHED;
24006 #if HAVE_PTHREADS > 4
24007 /* Final pthreads */
24008 pthread_attr_t attr;
24010 status = pthread_attr_init(&attr);
24011 if( status ) return status;
24013 #if HAVE_PTHREADS < 7
24014 status = pthread_attr_setdetachstate(&attr, &detach);
24015 if( status < 0 ) status = errno;
24017 status = pthread_attr_setdetachstate(&attr, detach);
24019 if( status ) return status;
24020 status = pthread_create( &t, &attr, task, NULL );
24021 #if HAVE_PTHREADS < 7
24022 if( status < 0 ) status = errno;
24024 if( status ) return status;
24026 /* Draft 4 pthreads */
24027 status = pthread_create( &t, pthread_attr_default, task, NULL );
24028 if( status ) return errno;
24030 /* give thread a chance to complete */
24031 /* it should remain joinable and hence detachable */
24034 status = pthread_detach( &t );
24035 if( status ) return errno;
24038 #ifdef HAVE_LINUX_THREADS
24039 pthread_kill_other_threads_np();
24047 rm -f conftest$ac_exeext
24048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24049 (eval $ac_link) 2>&5
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24054 (eval $ac_try) 2>&5
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); }; }; then
24058 ol_cv_pthread_lib_lpthreads=yes
24060 echo "$as_me: program exited with status $ac_status" >&5
24061 echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24064 ( exit $ac_status )
24065 ol_cv_pthread_lib_lpthreads=no
24067 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24074 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24075 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24077 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24078 ol_link_pthreads="-lpthreads"
24079 ol_link_threads=posix
24084 if test $ol_link_threads != no ; then
24085 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24087 save_CPPFLAGS="$CPPFLAGS"
24089 LIBS="$LTHREAD_LIBS $LIBS"
24094 for ac_func in sched_yield pthread_yield thr_yield
24096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24097 echo "$as_me:$LINENO: checking for $ac_func" >&5
24098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24099 if eval "test \"\${$as_ac_var+set}\" = set"; then
24100 echo $ECHO_N "(cached) $ECHO_C" >&6
24102 cat >conftest.$ac_ext <<_ACEOF
24105 cat confdefs.h >>conftest.$ac_ext
24106 cat >>conftest.$ac_ext <<_ACEOF
24107 /* end confdefs.h. */
24108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24110 #define $ac_func innocuous_$ac_func
24112 /* System header to define __stub macros and hopefully few prototypes,
24113 which can conflict with char $ac_func (); below.
24114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24115 <limits.h> exists even on freestanding compilers. */
24118 # include <limits.h>
24120 # include <assert.h>
24125 /* Override any gcc2 internal prototype to avoid an error. */
24130 /* We use char because int might match the return type of a gcc2
24131 builtin and then its argument prototype would still apply. */
24133 /* The GNU C library defines this for functions which it implements
24134 to always fail with ENOSYS. Some functions are actually named
24135 something starting with __ and the normal name is an alias. */
24136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24139 char (*f) () = $ac_func;
24148 return f != $ac_func;
24153 rm -f conftest.$ac_objext conftest$ac_exeext
24154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24155 (eval $ac_link) 2>conftest.er1
24157 grep -v '^ *+' conftest.er1 >conftest.err
24159 cat conftest.err >&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } &&
24162 { ac_try='test -z "$ac_c_werror_flag"
24163 || test ! -s conftest.err'
24164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24165 (eval $ac_try) 2>&5
24167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); }; } &&
24169 { ac_try='test -s conftest$ac_exeext'
24170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171 (eval $ac_try) 2>&5
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); }; }; then
24175 eval "$as_ac_var=yes"
24177 echo "$as_me: failed program was:" >&5
24178 sed 's/^/| /' conftest.$ac_ext >&5
24180 eval "$as_ac_var=no"
24182 rm -f conftest.err conftest.$ac_objext \
24183 conftest$ac_exeext conftest.$ac_ext
24185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24187 if test `eval echo '${'$as_ac_var'}'` = yes; then
24188 cat >>confdefs.h <<_ACEOF
24189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24196 if test $ac_cv_func_sched_yield = no &&
24197 test $ac_cv_func_pthread_yield = no &&
24198 test $ac_cv_func_thr_yield = no ; then
24199 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24200 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24201 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24202 echo $ECHO_N "(cached) $ECHO_C" >&6
24204 ac_check_lib_save_LIBS=$LIBS
24206 cat >conftest.$ac_ext <<_ACEOF
24209 cat confdefs.h >>conftest.$ac_ext
24210 cat >>conftest.$ac_ext <<_ACEOF
24211 /* end confdefs.h. */
24213 /* Override any gcc2 internal prototype to avoid an error. */
24217 /* We use char because int might match the return type of a gcc2
24218 builtin and then its argument prototype would still apply. */
24219 char sched_yield ();
24228 rm -f conftest.$ac_objext conftest$ac_exeext
24229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24230 (eval $ac_link) 2>conftest.er1
24232 grep -v '^ *+' conftest.er1 >conftest.err
24234 cat conftest.err >&5
24235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); } &&
24237 { ac_try='test -z "$ac_c_werror_flag"
24238 || test ! -s conftest.err'
24239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24240 (eval $ac_try) 2>&5
24242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243 (exit $ac_status); }; } &&
24244 { ac_try='test -s conftest$ac_exeext'
24245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24246 (eval $ac_try) 2>&5
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); }; }; then
24250 ac_cv_lib_rt_sched_yield=yes
24252 echo "$as_me: failed program was:" >&5
24253 sed 's/^/| /' conftest.$ac_ext >&5
24255 ac_cv_lib_rt_sched_yield=no
24257 rm -f conftest.err conftest.$ac_objext \
24258 conftest$ac_exeext conftest.$ac_ext
24259 LIBS=$ac_check_lib_save_LIBS
24261 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24262 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24263 if test $ac_cv_lib_rt_sched_yield = yes; then
24264 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24266 cat >>confdefs.h <<\_ACEOF
24267 #define HAVE_SCHED_YIELD 1
24270 ac_cv_func_sched_yield=yes
24272 ac_cv_func_sched_yield=no
24276 if test $ac_cv_func_sched_yield = no &&
24277 test $ac_cv_func_pthread_yield = no &&
24278 test "$ac_cv_func_thr_yield" = no ; then
24279 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24280 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24285 for ac_func in pthread_kill pthread_rwlock_destroy
24287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24288 echo "$as_me:$LINENO: checking for $ac_func" >&5
24289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24290 if eval "test \"\${$as_ac_var+set}\" = set"; then
24291 echo $ECHO_N "(cached) $ECHO_C" >&6
24293 cat >conftest.$ac_ext <<_ACEOF
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h. */
24299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24301 #define $ac_func innocuous_$ac_func
24303 /* System header to define __stub macros and hopefully few prototypes,
24304 which can conflict with char $ac_func (); below.
24305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24306 <limits.h> exists even on freestanding compilers. */
24309 # include <limits.h>
24311 # include <assert.h>
24316 /* Override any gcc2 internal prototype to avoid an error. */
24321 /* We use char because int might match the return type of a gcc2
24322 builtin and then its argument prototype would still apply. */
24324 /* The GNU C library defines this for functions which it implements
24325 to always fail with ENOSYS. Some functions are actually named
24326 something starting with __ and the normal name is an alias. */
24327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24330 char (*f) () = $ac_func;
24339 return f != $ac_func;
24344 rm -f conftest.$ac_objext conftest$ac_exeext
24345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24346 (eval $ac_link) 2>conftest.er1
24348 grep -v '^ *+' conftest.er1 >conftest.err
24350 cat conftest.err >&5
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } &&
24353 { ac_try='test -z "$ac_c_werror_flag"
24354 || test ! -s conftest.err'
24355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24356 (eval $ac_try) 2>&5
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); }; } &&
24360 { ac_try='test -s conftest$ac_exeext'
24361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24362 (eval $ac_try) 2>&5
24364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365 (exit $ac_status); }; }; then
24366 eval "$as_ac_var=yes"
24368 echo "$as_me: failed program was:" >&5
24369 sed 's/^/| /' conftest.$ac_ext >&5
24371 eval "$as_ac_var=no"
24373 rm -f conftest.err conftest.$ac_objext \
24374 conftest$ac_exeext conftest.$ac_ext
24376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24378 if test `eval echo '${'$as_ac_var'}'` = yes; then
24379 cat >>confdefs.h <<_ACEOF
24380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24387 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24388 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24389 if test "${ol_cv_func_pthread_detach+set}" = set; then
24390 echo $ECHO_N "(cached) $ECHO_C" >&6
24393 cat >conftest.$ac_ext <<_ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h. */
24400 #include <pthread.h>
24402 #define NULL (void*)0
24408 pthread_detach(NULL);
24413 rm -f conftest.$ac_objext conftest$ac_exeext
24414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24415 (eval $ac_link) 2>conftest.er1
24417 grep -v '^ *+' conftest.er1 >conftest.err
24419 cat conftest.err >&5
24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); } &&
24422 { ac_try='test -z "$ac_c_werror_flag"
24423 || test ! -s conftest.err'
24424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24425 (eval $ac_try) 2>&5
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); }; } &&
24429 { ac_try='test -s conftest$ac_exeext'
24430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24431 (eval $ac_try) 2>&5
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); }; }; then
24435 ol_cv_func_pthread_detach=yes
24437 echo "$as_me: failed program was:" >&5
24438 sed 's/^/| /' conftest.$ac_ext >&5
24440 ol_cv_func_pthread_detach=no
24442 rm -f conftest.err conftest.$ac_objext \
24443 conftest$ac_exeext conftest.$ac_ext
24446 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24447 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24449 if test $ol_cv_func_pthread_detach = no ; then
24450 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24451 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24452 { (exit 1); exit 1; }; }
24456 cat >>confdefs.h <<\_ACEOF
24457 #define HAVE_PTHREAD_DETACH 1
24466 pthread_setconcurrency \
24467 pthread_getconcurrency \
24468 thr_setconcurrency \
24469 thr_getconcurrency \
24472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24473 echo "$as_me:$LINENO: checking for $ac_func" >&5
24474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24475 if eval "test \"\${$as_ac_var+set}\" = set"; then
24476 echo $ECHO_N "(cached) $ECHO_C" >&6
24478 cat >conftest.$ac_ext <<_ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24486 #define $ac_func innocuous_$ac_func
24488 /* System header to define __stub macros and hopefully few prototypes,
24489 which can conflict with char $ac_func (); below.
24490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24491 <limits.h> exists even on freestanding compilers. */
24494 # include <limits.h>
24496 # include <assert.h>
24501 /* Override any gcc2 internal prototype to avoid an error. */
24506 /* We use char because int might match the return type of a gcc2
24507 builtin and then its argument prototype would still apply. */
24509 /* The GNU C library defines this for functions which it implements
24510 to always fail with ENOSYS. Some functions are actually named
24511 something starting with __ and the normal name is an alias. */
24512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24515 char (*f) () = $ac_func;
24524 return f != $ac_func;
24529 rm -f conftest.$ac_objext conftest$ac_exeext
24530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24531 (eval $ac_link) 2>conftest.er1
24533 grep -v '^ *+' conftest.er1 >conftest.err
24535 cat conftest.err >&5
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); } &&
24538 { ac_try='test -z "$ac_c_werror_flag"
24539 || test ! -s conftest.err'
24540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541 (eval $ac_try) 2>&5
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); }; } &&
24545 { ac_try='test -s conftest$ac_exeext'
24546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24547 (eval $ac_try) 2>&5
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); }; }; then
24551 eval "$as_ac_var=yes"
24553 echo "$as_me: failed program was:" >&5
24554 sed 's/^/| /' conftest.$ac_ext >&5
24556 eval "$as_ac_var=no"
24558 rm -f conftest.err conftest.$ac_objext \
24559 conftest$ac_exeext conftest.$ac_ext
24561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24563 if test `eval echo '${'$as_ac_var'}'` = yes; then
24564 cat >>confdefs.h <<_ACEOF
24565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24574 for ac_func in pthread_kill_other_threads_np
24576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24577 echo "$as_me:$LINENO: checking for $ac_func" >&5
24578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24579 if eval "test \"\${$as_ac_var+set}\" = set"; then
24580 echo $ECHO_N "(cached) $ECHO_C" >&6
24582 cat >conftest.$ac_ext <<_ACEOF
24585 cat confdefs.h >>conftest.$ac_ext
24586 cat >>conftest.$ac_ext <<_ACEOF
24587 /* end confdefs.h. */
24588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24590 #define $ac_func innocuous_$ac_func
24592 /* System header to define __stub macros and hopefully few prototypes,
24593 which can conflict with char $ac_func (); below.
24594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24595 <limits.h> exists even on freestanding compilers. */
24598 # include <limits.h>
24600 # include <assert.h>
24605 /* Override any gcc2 internal prototype to avoid an error. */
24610 /* We use char because int might match the return type of a gcc2
24611 builtin and then its argument prototype would still apply. */
24613 /* The GNU C library defines this for functions which it implements
24614 to always fail with ENOSYS. Some functions are actually named
24615 something starting with __ and the normal name is an alias. */
24616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24619 char (*f) () = $ac_func;
24628 return f != $ac_func;
24633 rm -f conftest.$ac_objext conftest$ac_exeext
24634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24635 (eval $ac_link) 2>conftest.er1
24637 grep -v '^ *+' conftest.er1 >conftest.err
24639 cat conftest.err >&5
24640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); } &&
24642 { ac_try='test -z "$ac_c_werror_flag"
24643 || test ! -s conftest.err'
24644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24645 (eval $ac_try) 2>&5
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); }; } &&
24649 { ac_try='test -s conftest$ac_exeext'
24650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24651 (eval $ac_try) 2>&5
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); }; }; then
24655 eval "$as_ac_var=yes"
24657 echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24660 eval "$as_ac_var=no"
24662 rm -f conftest.err conftest.$ac_objext \
24663 conftest$ac_exeext conftest.$ac_ext
24665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24667 if test `eval echo '${'$as_ac_var'}'` = yes; then
24668 cat >>confdefs.h <<_ACEOF
24669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24675 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24676 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24677 if test "${ol_cv_sys_linux_threads+set}" = set; then
24678 echo $ECHO_N "(cached) $ECHO_C" >&6
24680 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24682 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24683 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24688 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24689 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24690 if test "${ol_cv_linux_threads+set}" = set; then
24691 echo $ECHO_N "(cached) $ECHO_C" >&6
24694 if test $ol_cv_header_linux_threads = yes &&
24695 test $ol_cv_sys_linux_threads = yes; then
24696 ol_cv_linux_threads=yes
24697 elif test $ol_cv_header_linux_threads = no &&
24698 test $ol_cv_sys_linux_threads = no; then
24699 ol_cv_linux_threads=no
24701 ol_cv_linux_threads=error
24705 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24706 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24709 if test $ol_cv_linux_threads = error; then
24710 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24711 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24712 { (exit 1); exit 1; }; };
24715 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24716 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24717 if test "${ol_cv_pthread_create_works+set}" = set; then
24718 echo $ECHO_N "(cached) $ECHO_C" >&6
24721 if test "$cross_compiling" = yes; then
24722 ol_cv_pthread_create_works=yes
24724 cat >conftest.$ac_ext <<_ACEOF
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h. */
24731 /* pthread test headers */
24732 #include <pthread.h>
24733 #if HAVE_PTHREADS < 7
24737 #define NULL (void*)0
24740 static void *task(p)
24743 return (void *) (p == NULL);
24747 int main(argc, argv)
24752 /* pthread test function */
24753 #ifndef PTHREAD_CREATE_DETACHED
24754 #define PTHREAD_CREATE_DETACHED 1
24758 int detach = PTHREAD_CREATE_DETACHED;
24760 #if HAVE_PTHREADS > 4
24761 /* Final pthreads */
24762 pthread_attr_t attr;
24764 status = pthread_attr_init(&attr);
24765 if( status ) return status;
24767 #if HAVE_PTHREADS < 7
24768 status = pthread_attr_setdetachstate(&attr, &detach);
24769 if( status < 0 ) status = errno;
24771 status = pthread_attr_setdetachstate(&attr, detach);
24773 if( status ) return status;
24774 status = pthread_create( &t, &attr, task, NULL );
24775 #if HAVE_PTHREADS < 7
24776 if( status < 0 ) status = errno;
24778 if( status ) return status;
24780 /* Draft 4 pthreads */
24781 status = pthread_create( &t, pthread_attr_default, task, NULL );
24782 if( status ) return errno;
24784 /* give thread a chance to complete */
24785 /* it should remain joinable and hence detachable */
24788 status = pthread_detach( &t );
24789 if( status ) return errno;
24792 #ifdef HAVE_LINUX_THREADS
24793 pthread_kill_other_threads_np();
24801 rm -f conftest$ac_exeext
24802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24803 (eval $ac_link) 2>&5
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808 (eval $ac_try) 2>&5
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); }; }; then
24812 ol_cv_pthread_create_works=yes
24814 echo "$as_me: program exited with status $ac_status" >&5
24815 echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24818 ( exit $ac_status )
24819 ol_cv_pthread_create_works=no
24821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24824 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24825 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24827 if test $ol_cv_pthread_create_works = no ; then
24828 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24829 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24830 { (exit 1); exit 1; }; }
24833 ol_replace_broken_yield=no
24835 if test $ol_replace_broken_yield = yes ; then
24837 cat >>confdefs.h <<\_ACEOF
24838 #define REPLACE_BROKEN_YIELD 1
24843 if test $ol_with_yielding_select = auto ; then
24844 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24845 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24846 if test "${ol_cv_pthread_select_yields+set}" = set; then
24847 echo $ECHO_N "(cached) $ECHO_C" >&6
24850 if test "$cross_compiling" = yes; then
24851 ol_cv_pthread_select_yields=cross
24853 cat >conftest.$ac_ext <<_ACEOF
24856 cat confdefs.h >>conftest.$ac_ext
24857 cat >>conftest.$ac_ext <<_ACEOF
24858 /* end confdefs.h. */
24860 #include <sys/types.h>
24861 #include <sys/time.h>
24862 #include <unistd.h>
24863 #include <pthread.h>
24865 #define NULL (void*) 0
24868 static int fildes[2];
24870 static void *task(p)
24882 FD_SET(fildes[0], &rfds);
24884 /* we're not interested in any fds */
24885 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24892 exit(0); /* if we exit here, the select blocked the whole process */
24895 int main(argc, argv)
24901 /* create a pipe to select */
24902 if(pipe(&fildes[0])) {
24907 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24908 (void) pthread_setconcurrency(2);
24910 #ifdef HAVE_THR_SETCONCURRENCY
24911 /* Set Solaris LWP concurrency to 2 */
24912 thr_setconcurrency(2);
24916 #if HAVE_PTHREADS < 6
24917 pthread_create(&t, pthread_attr_default, task, NULL);
24919 pthread_create(&t, NULL, task, NULL);
24922 /* make sure task runs first */
24925 #elif defined( HAVE_SCHED_YIELD )
24927 #elif defined( HAVE_PTHREAD_YIELD )
24934 rm -f conftest$ac_exeext
24935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24936 (eval $ac_link) 2>&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941 (eval $ac_try) 2>&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
24945 ol_cv_pthread_select_yields=no
24947 echo "$as_me: program exited with status $ac_status" >&5
24948 echo "$as_me: failed program was:" >&5
24949 sed 's/^/| /' conftest.$ac_ext >&5
24951 ( exit $ac_status )
24952 ol_cv_pthread_select_yields=yes
24954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24957 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24958 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24960 if test $ol_cv_pthread_select_yields = cross ; then
24961 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24962 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24963 { (exit 1); exit 1; }; }
24966 if test $ol_cv_pthread_select_yields = yes ; then
24967 ol_with_yielding_select=yes
24971 CPPFLAGS="$save_CPPFLAGS"
24974 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24975 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24976 { (exit 1); exit 1; }; }
24980 if test $ol_with_threads = posix ; then
24981 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24982 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24983 { (exit 1); exit 1; }; }
24988 case $ol_with_threads in auto | yes | mach)
24992 for ac_header in mach/cthreads.h cthreads.h
24994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24996 echo "$as_me:$LINENO: checking for $ac_header" >&5
24997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24999 echo $ECHO_N "(cached) $ECHO_C" >&6
25001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25004 # Is the header compilable?
25005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25007 cat >conftest.$ac_ext <<_ACEOF
25010 cat confdefs.h >>conftest.$ac_ext
25011 cat >>conftest.$ac_ext <<_ACEOF
25012 /* end confdefs.h. */
25013 $ac_includes_default
25014 #include <$ac_header>
25016 rm -f conftest.$ac_objext
25017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25018 (eval $ac_compile) 2>conftest.er1
25020 grep -v '^ *+' conftest.er1 >conftest.err
25022 cat conftest.err >&5
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); } &&
25025 { ac_try='test -z "$ac_c_werror_flag"
25026 || test ! -s conftest.err'
25027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25028 (eval $ac_try) 2>&5
25030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031 (exit $ac_status); }; } &&
25032 { ac_try='test -s conftest.$ac_objext'
25033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25034 (eval $ac_try) 2>&5
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); }; }; then
25038 ac_header_compiler=yes
25040 echo "$as_me: failed program was:" >&5
25041 sed 's/^/| /' conftest.$ac_ext >&5
25043 ac_header_compiler=no
25045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25047 echo "${ECHO_T}$ac_header_compiler" >&6
25049 # Is the header present?
25050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25052 cat >conftest.$ac_ext <<_ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h. */
25058 #include <$ac_header>
25060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25063 grep -v '^ *+' conftest.er1 >conftest.err
25065 cat conftest.err >&5
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); } >/dev/null; then
25068 if test -s conftest.err; then
25069 ac_cpp_err=$ac_c_preproc_warn_flag
25070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25077 if test -z "$ac_cpp_err"; then
25078 ac_header_preproc=yes
25080 echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25083 ac_header_preproc=no
25085 rm -f conftest.err conftest.$ac_ext
25086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25087 echo "${ECHO_T}$ac_header_preproc" >&6
25089 # So? What about this header?
25090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25096 ac_header_preproc=yes
25099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25113 ## --------------------------------------------- ##
25114 ## Report this to <http://www.openldap.org/its/> ##
25115 ## --------------------------------------------- ##
25118 sed "s/^/$as_me: WARNING: /" >&2
25121 echo "$as_me:$LINENO: checking for $ac_header" >&5
25122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25124 echo $ECHO_N "(cached) $ECHO_C" >&6
25126 eval "$as_ac_Header=\$ac_header_preproc"
25128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25133 cat >>confdefs.h <<_ACEOF
25134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25141 if test $ac_cv_header_mach_cthreads_h = yes ; then
25142 ol_with_threads=found
25144 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25145 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25146 if test "${ac_cv_func_cthread_fork+set}" = set; then
25147 echo $ECHO_N "(cached) $ECHO_C" >&6
25149 cat >conftest.$ac_ext <<_ACEOF
25152 cat confdefs.h >>conftest.$ac_ext
25153 cat >>conftest.$ac_ext <<_ACEOF
25154 /* end confdefs.h. */
25155 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25157 #define cthread_fork innocuous_cthread_fork
25159 /* System header to define __stub macros and hopefully few prototypes,
25160 which can conflict with char cthread_fork (); below.
25161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25162 <limits.h> exists even on freestanding compilers. */
25165 # include <limits.h>
25167 # include <assert.h>
25170 #undef cthread_fork
25172 /* Override any gcc2 internal prototype to avoid an error. */
25177 /* We use char because int might match the return type of a gcc2
25178 builtin and then its argument prototype would still apply. */
25179 char cthread_fork ();
25180 /* The GNU C library defines this for functions which it implements
25181 to always fail with ENOSYS. Some functions are actually named
25182 something starting with __ and the normal name is an alias. */
25183 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25186 char (*f) () = cthread_fork;
25195 return f != cthread_fork;
25200 rm -f conftest.$ac_objext conftest$ac_exeext
25201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25202 (eval $ac_link) 2>conftest.er1
25204 grep -v '^ *+' conftest.er1 >conftest.err
25206 cat conftest.err >&5
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); } &&
25209 { ac_try='test -z "$ac_c_werror_flag"
25210 || test ! -s conftest.err'
25211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212 (eval $ac_try) 2>&5
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); }; } &&
25216 { ac_try='test -s conftest$ac_exeext'
25217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218 (eval $ac_try) 2>&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); }; }; then
25222 ac_cv_func_cthread_fork=yes
25224 echo "$as_me: failed program was:" >&5
25225 sed 's/^/| /' conftest.$ac_ext >&5
25227 ac_cv_func_cthread_fork=no
25229 rm -f conftest.err conftest.$ac_objext \
25230 conftest$ac_exeext conftest.$ac_ext
25232 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25233 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25234 if test $ac_cv_func_cthread_fork = yes; then
25235 ol_link_threads=yes
25239 if test $ol_link_threads = no ; then
25240 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25241 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25242 if test "${ol_cv_cthread_all_load+set}" = set; then
25243 echo $ECHO_N "(cached) $ECHO_C" >&6
25247 LIBS="-all_load $LIBS"
25248 cat >conftest.$ac_ext <<_ACEOF
25251 cat confdefs.h >>conftest.$ac_ext
25252 cat >>conftest.$ac_ext <<_ACEOF
25253 /* end confdefs.h. */
25254 #include <mach/cthreads.h>
25259 cthread_fork((void *)0, (void *)0);
25265 rm -f conftest.$ac_objext conftest$ac_exeext
25266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25267 (eval $ac_link) 2>conftest.er1
25269 grep -v '^ *+' conftest.er1 >conftest.err
25271 cat conftest.err >&5
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); } &&
25274 { ac_try='test -z "$ac_c_werror_flag"
25275 || test ! -s conftest.err'
25276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25277 (eval $ac_try) 2>&5
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); }; } &&
25281 { ac_try='test -s conftest$ac_exeext'
25282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283 (eval $ac_try) 2>&5
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); }; }; then
25287 ol_cv_cthread_all_load=yes
25289 echo "$as_me: failed program was:" >&5
25290 sed 's/^/| /' conftest.$ac_ext >&5
25292 ol_cv_cthread_all_load=no
25294 rm -f conftest.err conftest.$ac_objext \
25295 conftest$ac_exeext conftest.$ac_ext
25299 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25300 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25302 if test $ol_cv_cthread_all_load = yes ; then
25303 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25304 ol_link_threads=mach
25305 ol_with_threads=found
25309 elif test $ac_cv_header_cthreads_h = yes ; then
25311 ol_with_threads=found
25314 LIBS="$LIBS -lthreads"
25315 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25316 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25317 if test "${ac_cv_func_cthread_fork+set}" = set; then
25318 echo $ECHO_N "(cached) $ECHO_C" >&6
25320 cat >conftest.$ac_ext <<_ACEOF
25323 cat confdefs.h >>conftest.$ac_ext
25324 cat >>conftest.$ac_ext <<_ACEOF
25325 /* end confdefs.h. */
25326 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25328 #define cthread_fork innocuous_cthread_fork
25330 /* System header to define __stub macros and hopefully few prototypes,
25331 which can conflict with char cthread_fork (); below.
25332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25333 <limits.h> exists even on freestanding compilers. */
25336 # include <limits.h>
25338 # include <assert.h>
25341 #undef cthread_fork
25343 /* Override any gcc2 internal prototype to avoid an error. */
25348 /* We use char because int might match the return type of a gcc2
25349 builtin and then its argument prototype would still apply. */
25350 char cthread_fork ();
25351 /* The GNU C library defines this for functions which it implements
25352 to always fail with ENOSYS. Some functions are actually named
25353 something starting with __ and the normal name is an alias. */
25354 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25357 char (*f) () = cthread_fork;
25366 return f != cthread_fork;
25371 rm -f conftest.$ac_objext conftest$ac_exeext
25372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25373 (eval $ac_link) 2>conftest.er1
25375 grep -v '^ *+' conftest.er1 >conftest.err
25377 cat conftest.err >&5
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); } &&
25380 { ac_try='test -z "$ac_c_werror_flag"
25381 || test ! -s conftest.err'
25382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25383 (eval $ac_try) 2>&5
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); }; } &&
25387 { ac_try='test -s conftest$ac_exeext'
25388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25389 (eval $ac_try) 2>&5
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); }; }; then
25393 ac_cv_func_cthread_fork=yes
25395 echo "$as_me: failed program was:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25398 ac_cv_func_cthread_fork=no
25400 rm -f conftest.err conftest.$ac_objext \
25401 conftest$ac_exeext conftest.$ac_ext
25403 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25404 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25405 if test $ac_cv_func_cthread_fork = yes; then
25406 ol_link_threads=yes
25411 if test $ol_link_threads = yes ; then
25412 LTHREAD_LIBS="-lthreads"
25413 ol_link_threads=mach
25414 ol_with_threads=found
25416 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25417 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25418 { (exit 1); exit 1; }; }
25421 elif test $ol_with_threads = mach ; then
25422 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25423 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25424 { (exit 1); exit 1; }; }
25427 if test $ol_link_threads = mach ; then
25429 cat >>confdefs.h <<\_ACEOF
25430 #define HAVE_MACH_CTHREADS 1
25433 elif test $ol_with_threads = found ; then
25434 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25435 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25436 { (exit 1); exit 1; }; }
25441 case $ol_with_threads in auto | yes | pth)
25444 for ac_header in pth.h
25446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25448 echo "$as_me:$LINENO: checking for $ac_header" >&5
25449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25451 echo $ECHO_N "(cached) $ECHO_C" >&6
25453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25456 # Is the header compilable?
25457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25459 cat >conftest.$ac_ext <<_ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h. */
25465 $ac_includes_default
25466 #include <$ac_header>
25468 rm -f conftest.$ac_objext
25469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25470 (eval $ac_compile) 2>conftest.er1
25472 grep -v '^ *+' conftest.er1 >conftest.err
25474 cat conftest.err >&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } &&
25477 { ac_try='test -z "$ac_c_werror_flag"
25478 || test ! -s conftest.err'
25479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480 (eval $ac_try) 2>&5
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); }; } &&
25484 { ac_try='test -s conftest.$ac_objext'
25485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486 (eval $ac_try) 2>&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }; }; then
25490 ac_header_compiler=yes
25492 echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25495 ac_header_compiler=no
25497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25499 echo "${ECHO_T}$ac_header_compiler" >&6
25501 # Is the header present?
25502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25504 cat >conftest.$ac_ext <<_ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h. */
25510 #include <$ac_header>
25512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25515 grep -v '^ *+' conftest.er1 >conftest.err
25517 cat conftest.err >&5
25518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519 (exit $ac_status); } >/dev/null; then
25520 if test -s conftest.err; then
25521 ac_cpp_err=$ac_c_preproc_warn_flag
25522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25529 if test -z "$ac_cpp_err"; then
25530 ac_header_preproc=yes
25532 echo "$as_me: failed program was:" >&5
25533 sed 's/^/| /' conftest.$ac_ext >&5
25535 ac_header_preproc=no
25537 rm -f conftest.err conftest.$ac_ext
25538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25539 echo "${ECHO_T}$ac_header_preproc" >&6
25541 # So? What about this header?
25542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25548 ac_header_preproc=yes
25551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25565 ## --------------------------------------------- ##
25566 ## Report this to <http://www.openldap.org/its/> ##
25567 ## --------------------------------------------- ##
25570 sed "s/^/$as_me: WARNING: /" >&2
25573 echo "$as_me:$LINENO: checking for $ac_header" >&5
25574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25576 echo $ECHO_N "(cached) $ECHO_C" >&6
25578 eval "$as_ac_Header=\$ac_header_preproc"
25580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25585 cat >>confdefs.h <<_ACEOF
25586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25594 if test $ac_cv_header_pth_h = yes ; then
25595 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25596 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25597 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25598 echo $ECHO_N "(cached) $ECHO_C" >&6
25600 ac_check_lib_save_LIBS=$LIBS
25602 cat >conftest.$ac_ext <<_ACEOF
25605 cat confdefs.h >>conftest.$ac_ext
25606 cat >>conftest.$ac_ext <<_ACEOF
25607 /* end confdefs.h. */
25609 /* Override any gcc2 internal prototype to avoid an error. */
25613 /* We use char because int might match the return type of a gcc2
25614 builtin and then its argument prototype would still apply. */
25615 char pth_version ();
25624 rm -f conftest.$ac_objext conftest$ac_exeext
25625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25626 (eval $ac_link) 2>conftest.er1
25628 grep -v '^ *+' conftest.er1 >conftest.err
25630 cat conftest.err >&5
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); } &&
25633 { ac_try='test -z "$ac_c_werror_flag"
25634 || test ! -s conftest.err'
25635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25636 (eval $ac_try) 2>&5
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); }; } &&
25640 { ac_try='test -s conftest$ac_exeext'
25641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25642 (eval $ac_try) 2>&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); }; }; then
25646 ac_cv_lib_pth_pth_version=yes
25648 echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25651 ac_cv_lib_pth_pth_version=no
25653 rm -f conftest.err conftest.$ac_objext \
25654 conftest$ac_exeext conftest.$ac_ext
25655 LIBS=$ac_check_lib_save_LIBS
25657 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25658 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25659 if test $ac_cv_lib_pth_pth_version = yes; then
25666 if test $have_pth = yes ; then
25668 cat >>confdefs.h <<\_ACEOF
25669 #define HAVE_GNU_PTH 1
25672 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25673 ol_link_threads=pth
25674 ol_with_threads=found
25676 if test $ol_with_yielding_select = auto ; then
25677 ol_with_yielding_select=yes
25684 case $ol_with_threads in auto | yes | lwp)
25688 for ac_header in thread.h synch.h
25690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25692 echo "$as_me:$LINENO: checking for $ac_header" >&5
25693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25695 echo $ECHO_N "(cached) $ECHO_C" >&6
25697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25700 # Is the header compilable?
25701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25703 cat >conftest.$ac_ext <<_ACEOF
25706 cat confdefs.h >>conftest.$ac_ext
25707 cat >>conftest.$ac_ext <<_ACEOF
25708 /* end confdefs.h. */
25709 $ac_includes_default
25710 #include <$ac_header>
25712 rm -f conftest.$ac_objext
25713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25714 (eval $ac_compile) 2>conftest.er1
25716 grep -v '^ *+' conftest.er1 >conftest.err
25718 cat conftest.err >&5
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); } &&
25721 { ac_try='test -z "$ac_c_werror_flag"
25722 || test ! -s conftest.err'
25723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25724 (eval $ac_try) 2>&5
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); }; } &&
25728 { ac_try='test -s conftest.$ac_objext'
25729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25730 (eval $ac_try) 2>&5
25732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733 (exit $ac_status); }; }; then
25734 ac_header_compiler=yes
25736 echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25739 ac_header_compiler=no
25741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25743 echo "${ECHO_T}$ac_header_compiler" >&6
25745 # Is the header present?
25746 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25748 cat >conftest.$ac_ext <<_ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h. */
25754 #include <$ac_header>
25756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25759 grep -v '^ *+' conftest.er1 >conftest.err
25761 cat conftest.err >&5
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); } >/dev/null; then
25764 if test -s conftest.err; then
25765 ac_cpp_err=$ac_c_preproc_warn_flag
25766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25773 if test -z "$ac_cpp_err"; then
25774 ac_header_preproc=yes
25776 echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25779 ac_header_preproc=no
25781 rm -f conftest.err conftest.$ac_ext
25782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25783 echo "${ECHO_T}$ac_header_preproc" >&6
25785 # So? What about this header?
25786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25792 ac_header_preproc=yes
25795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25809 ## --------------------------------------------- ##
25810 ## Report this to <http://www.openldap.org/its/> ##
25811 ## --------------------------------------------- ##
25814 sed "s/^/$as_me: WARNING: /" >&2
25817 echo "$as_me:$LINENO: checking for $ac_header" >&5
25818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25820 echo $ECHO_N "(cached) $ECHO_C" >&6
25822 eval "$as_ac_Header=\$ac_header_preproc"
25824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25829 cat >>confdefs.h <<_ACEOF
25830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25837 if test $ac_cv_header_thread_h = yes &&
25838 test $ac_cv_header_synch_h = yes ; then
25839 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25840 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25841 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25842 echo $ECHO_N "(cached) $ECHO_C" >&6
25844 ac_check_lib_save_LIBS=$LIBS
25845 LIBS="-lthread $LIBS"
25846 cat >conftest.$ac_ext <<_ACEOF
25849 cat confdefs.h >>conftest.$ac_ext
25850 cat >>conftest.$ac_ext <<_ACEOF
25851 /* end confdefs.h. */
25853 /* Override any gcc2 internal prototype to avoid an error. */
25857 /* We use char because int might match the return type of a gcc2
25858 builtin and then its argument prototype would still apply. */
25859 char thr_create ();
25868 rm -f conftest.$ac_objext conftest$ac_exeext
25869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25870 (eval $ac_link) 2>conftest.er1
25872 grep -v '^ *+' conftest.er1 >conftest.err
25874 cat conftest.err >&5
25875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); } &&
25877 { ac_try='test -z "$ac_c_werror_flag"
25878 || test ! -s conftest.err'
25879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25880 (eval $ac_try) 2>&5
25882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883 (exit $ac_status); }; } &&
25884 { ac_try='test -s conftest$ac_exeext'
25885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886 (eval $ac_try) 2>&5
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); }; }; then
25890 ac_cv_lib_thread_thr_create=yes
25892 echo "$as_me: failed program was:" >&5
25893 sed 's/^/| /' conftest.$ac_ext >&5
25895 ac_cv_lib_thread_thr_create=no
25897 rm -f conftest.err conftest.$ac_objext \
25898 conftest$ac_exeext conftest.$ac_ext
25899 LIBS=$ac_check_lib_save_LIBS
25901 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25902 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25903 if test $ac_cv_lib_thread_thr_create = yes; then
25910 if test $have_thr = yes ; then
25912 cat >>confdefs.h <<\_ACEOF
25916 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25917 ol_link_threads=thr
25919 if test $ol_with_yielding_select = auto ; then
25920 ol_with_yielding_select=yes
25926 thr_setconcurrency \
25927 thr_getconcurrency \
25930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25931 echo "$as_me:$LINENO: checking for $ac_func" >&5
25932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25933 if eval "test \"\${$as_ac_var+set}\" = set"; then
25934 echo $ECHO_N "(cached) $ECHO_C" >&6
25936 cat >conftest.$ac_ext <<_ACEOF
25939 cat confdefs.h >>conftest.$ac_ext
25940 cat >>conftest.$ac_ext <<_ACEOF
25941 /* end confdefs.h. */
25942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25944 #define $ac_func innocuous_$ac_func
25946 /* System header to define __stub macros and hopefully few prototypes,
25947 which can conflict with char $ac_func (); below.
25948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25949 <limits.h> exists even on freestanding compilers. */
25952 # include <limits.h>
25954 # include <assert.h>
25959 /* Override any gcc2 internal prototype to avoid an error. */
25964 /* We use char because int might match the return type of a gcc2
25965 builtin and then its argument prototype would still apply. */
25967 /* The GNU C library defines this for functions which it implements
25968 to always fail with ENOSYS. Some functions are actually named
25969 something starting with __ and the normal name is an alias. */
25970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25973 char (*f) () = $ac_func;
25982 return f != $ac_func;
25987 rm -f conftest.$ac_objext conftest$ac_exeext
25988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25989 (eval $ac_link) 2>conftest.er1
25991 grep -v '^ *+' conftest.er1 >conftest.err
25993 cat conftest.err >&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); } &&
25996 { ac_try='test -z "$ac_c_werror_flag"
25997 || test ! -s conftest.err'
25998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25999 (eval $ac_try) 2>&5
26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); }; } &&
26003 { ac_try='test -s conftest$ac_exeext'
26004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26005 (eval $ac_try) 2>&5
26007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); }; }; then
26009 eval "$as_ac_var=yes"
26011 echo "$as_me: failed program was:" >&5
26012 sed 's/^/| /' conftest.$ac_ext >&5
26014 eval "$as_ac_var=no"
26016 rm -f conftest.err conftest.$ac_objext \
26017 conftest$ac_exeext conftest.$ac_ext
26019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26021 if test `eval echo '${'$as_ac_var'}'` = yes; then
26022 cat >>confdefs.h <<_ACEOF
26023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26033 for ac_header in lwp/lwp.h
26035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26037 echo "$as_me:$LINENO: checking for $ac_header" >&5
26038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26040 echo $ECHO_N "(cached) $ECHO_C" >&6
26042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26045 # Is the header compilable?
26046 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26048 cat >conftest.$ac_ext <<_ACEOF
26051 cat confdefs.h >>conftest.$ac_ext
26052 cat >>conftest.$ac_ext <<_ACEOF
26053 /* end confdefs.h. */
26054 $ac_includes_default
26055 #include <$ac_header>
26057 rm -f conftest.$ac_objext
26058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26059 (eval $ac_compile) 2>conftest.er1
26061 grep -v '^ *+' conftest.er1 >conftest.err
26063 cat conftest.err >&5
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); } &&
26066 { ac_try='test -z "$ac_c_werror_flag"
26067 || test ! -s conftest.err'
26068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069 (eval $ac_try) 2>&5
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); }; } &&
26073 { ac_try='test -s conftest.$ac_objext'
26074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26075 (eval $ac_try) 2>&5
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); }; }; then
26079 ac_header_compiler=yes
26081 echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26084 ac_header_compiler=no
26086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26088 echo "${ECHO_T}$ac_header_compiler" >&6
26090 # Is the header present?
26091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26093 cat >conftest.$ac_ext <<_ACEOF
26096 cat confdefs.h >>conftest.$ac_ext
26097 cat >>conftest.$ac_ext <<_ACEOF
26098 /* end confdefs.h. */
26099 #include <$ac_header>
26101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26104 grep -v '^ *+' conftest.er1 >conftest.err
26106 cat conftest.err >&5
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); } >/dev/null; then
26109 if test -s conftest.err; then
26110 ac_cpp_err=$ac_c_preproc_warn_flag
26111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26118 if test -z "$ac_cpp_err"; then
26119 ac_header_preproc=yes
26121 echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26124 ac_header_preproc=no
26126 rm -f conftest.err conftest.$ac_ext
26127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26128 echo "${ECHO_T}$ac_header_preproc" >&6
26130 # So? What about this header?
26131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26137 ac_header_preproc=yes
26140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26147 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26154 ## --------------------------------------------- ##
26155 ## Report this to <http://www.openldap.org/its/> ##
26156 ## --------------------------------------------- ##
26159 sed "s/^/$as_me: WARNING: /" >&2
26162 echo "$as_me:$LINENO: checking for $ac_header" >&5
26163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26165 echo $ECHO_N "(cached) $ECHO_C" >&6
26167 eval "$as_ac_Header=\$ac_header_preproc"
26169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26174 cat >>confdefs.h <<_ACEOF
26175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26182 if test $ac_cv_header_lwp_lwp_h = yes ; then
26183 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26184 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26185 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26186 echo $ECHO_N "(cached) $ECHO_C" >&6
26188 ac_check_lib_save_LIBS=$LIBS
26190 cat >conftest.$ac_ext <<_ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h. */
26197 /* Override any gcc2 internal prototype to avoid an error. */
26201 /* We use char because int might match the return type of a gcc2
26202 builtin and then its argument prototype would still apply. */
26203 char lwp_create ();
26212 rm -f conftest.$ac_objext conftest$ac_exeext
26213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26214 (eval $ac_link) 2>conftest.er1
26216 grep -v '^ *+' conftest.er1 >conftest.err
26218 cat conftest.err >&5
26219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220 (exit $ac_status); } &&
26221 { ac_try='test -z "$ac_c_werror_flag"
26222 || test ! -s conftest.err'
26223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26224 (eval $ac_try) 2>&5
26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); }; } &&
26228 { ac_try='test -s conftest$ac_exeext'
26229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26230 (eval $ac_try) 2>&5
26232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233 (exit $ac_status); }; }; then
26234 ac_cv_lib_lwp_lwp_create=yes
26236 echo "$as_me: failed program was:" >&5
26237 sed 's/^/| /' conftest.$ac_ext >&5
26239 ac_cv_lib_lwp_lwp_create=no
26241 rm -f conftest.err conftest.$ac_objext \
26242 conftest$ac_exeext conftest.$ac_ext
26243 LIBS=$ac_check_lib_save_LIBS
26245 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26246 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26247 if test $ac_cv_lib_lwp_lwp_create = yes; then
26254 if test $have_lwp = yes ; then
26256 cat >>confdefs.h <<\_ACEOF
26260 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26261 ol_link_threads=lwp
26263 if test $ol_with_yielding_select = auto ; then
26264 ol_with_yielding_select=no
26271 if test $ol_with_yielding_select = yes ; then
26273 cat >>confdefs.h <<\_ACEOF
26274 #define HAVE_YIELDING_SELECT 1
26279 if test $ol_with_threads = manual ; then
26280 ol_link_threads=yes
26282 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26283 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26287 for ac_header in pthread.h sched.h
26289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26291 echo "$as_me:$LINENO: checking for $ac_header" >&5
26292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26294 echo $ECHO_N "(cached) $ECHO_C" >&6
26296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26299 # Is the header compilable?
26300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26302 cat >conftest.$ac_ext <<_ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h. */
26308 $ac_includes_default
26309 #include <$ac_header>
26311 rm -f conftest.$ac_objext
26312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26313 (eval $ac_compile) 2>conftest.er1
26315 grep -v '^ *+' conftest.er1 >conftest.err
26317 cat conftest.err >&5
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); } &&
26320 { ac_try='test -z "$ac_c_werror_flag"
26321 || test ! -s conftest.err'
26322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26323 (eval $ac_try) 2>&5
26325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326 (exit $ac_status); }; } &&
26327 { ac_try='test -s conftest.$ac_objext'
26328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26329 (eval $ac_try) 2>&5
26331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332 (exit $ac_status); }; }; then
26333 ac_header_compiler=yes
26335 echo "$as_me: failed program was:" >&5
26336 sed 's/^/| /' conftest.$ac_ext >&5
26338 ac_header_compiler=no
26340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26342 echo "${ECHO_T}$ac_header_compiler" >&6
26344 # Is the header present?
26345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26347 cat >conftest.$ac_ext <<_ACEOF
26350 cat confdefs.h >>conftest.$ac_ext
26351 cat >>conftest.$ac_ext <<_ACEOF
26352 /* end confdefs.h. */
26353 #include <$ac_header>
26355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26358 grep -v '^ *+' conftest.er1 >conftest.err
26360 cat conftest.err >&5
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); } >/dev/null; then
26363 if test -s conftest.err; then
26364 ac_cpp_err=$ac_c_preproc_warn_flag
26365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26372 if test -z "$ac_cpp_err"; then
26373 ac_header_preproc=yes
26375 echo "$as_me: failed program was:" >&5
26376 sed 's/^/| /' conftest.$ac_ext >&5
26378 ac_header_preproc=no
26380 rm -f conftest.err conftest.$ac_ext
26381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26382 echo "${ECHO_T}$ac_header_preproc" >&6
26384 # So? What about this header?
26385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26391 ac_header_preproc=yes
26394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26408 ## --------------------------------------------- ##
26409 ## Report this to <http://www.openldap.org/its/> ##
26410 ## --------------------------------------------- ##
26413 sed "s/^/$as_me: WARNING: /" >&2
26416 echo "$as_me:$LINENO: checking for $ac_header" >&5
26417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26419 echo $ECHO_N "(cached) $ECHO_C" >&6
26421 eval "$as_ac_Header=\$ac_header_preproc"
26423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26428 cat >>confdefs.h <<_ACEOF
26429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26438 for ac_func in sched_yield pthread_yield
26440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26441 echo "$as_me:$LINENO: checking for $ac_func" >&5
26442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26443 if eval "test \"\${$as_ac_var+set}\" = set"; then
26444 echo $ECHO_N "(cached) $ECHO_C" >&6
26446 cat >conftest.$ac_ext <<_ACEOF
26449 cat confdefs.h >>conftest.$ac_ext
26450 cat >>conftest.$ac_ext <<_ACEOF
26451 /* end confdefs.h. */
26452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26454 #define $ac_func innocuous_$ac_func
26456 /* System header to define __stub macros and hopefully few prototypes,
26457 which can conflict with char $ac_func (); below.
26458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26459 <limits.h> exists even on freestanding compilers. */
26462 # include <limits.h>
26464 # include <assert.h>
26469 /* Override any gcc2 internal prototype to avoid an error. */
26474 /* We use char because int might match the return type of a gcc2
26475 builtin and then its argument prototype would still apply. */
26477 /* The GNU C library defines this for functions which it implements
26478 to always fail with ENOSYS. Some functions are actually named
26479 something starting with __ and the normal name is an alias. */
26480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26483 char (*f) () = $ac_func;
26492 return f != $ac_func;
26497 rm -f conftest.$ac_objext conftest$ac_exeext
26498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26499 (eval $ac_link) 2>conftest.er1
26501 grep -v '^ *+' conftest.er1 >conftest.err
26503 cat conftest.err >&5
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); } &&
26506 { ac_try='test -z "$ac_c_werror_flag"
26507 || test ! -s conftest.err'
26508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26509 (eval $ac_try) 2>&5
26511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512 (exit $ac_status); }; } &&
26513 { ac_try='test -s conftest$ac_exeext'
26514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26515 (eval $ac_try) 2>&5
26517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518 (exit $ac_status); }; }; then
26519 eval "$as_ac_var=yes"
26521 echo "$as_me: failed program was:" >&5
26522 sed 's/^/| /' conftest.$ac_ext >&5
26524 eval "$as_ac_var=no"
26526 rm -f conftest.err conftest.$ac_objext \
26527 conftest$ac_exeext conftest.$ac_ext
26529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26531 if test `eval echo '${'$as_ac_var'}'` = yes; then
26532 cat >>confdefs.h <<_ACEOF
26533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26540 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26541 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26542 if test "${ol_cv_header_linux_threads+set}" = set; then
26543 echo $ECHO_N "(cached) $ECHO_C" >&6
26545 cat >conftest.$ac_ext <<_ACEOF
26548 cat confdefs.h >>conftest.$ac_ext
26549 cat >>conftest.$ac_ext <<_ACEOF
26550 /* end confdefs.h. */
26551 #include <pthread.h>
26553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26554 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26555 ol_cv_header_linux_threads=yes
26557 ol_cv_header_linux_threads=no
26563 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26564 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26565 if test $ol_cv_header_linux_threads = yes; then
26567 cat >>confdefs.h <<\_ACEOF
26568 #define HAVE_LINUX_THREADS 1
26575 for ac_header in mach/cthreads.h
26577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26579 echo "$as_me:$LINENO: checking for $ac_header" >&5
26580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26582 echo $ECHO_N "(cached) $ECHO_C" >&6
26584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26587 # Is the header compilable?
26588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26590 cat >conftest.$ac_ext <<_ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h. */
26596 $ac_includes_default
26597 #include <$ac_header>
26599 rm -f conftest.$ac_objext
26600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26601 (eval $ac_compile) 2>conftest.er1
26603 grep -v '^ *+' conftest.er1 >conftest.err
26605 cat conftest.err >&5
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); } &&
26608 { ac_try='test -z "$ac_c_werror_flag"
26609 || test ! -s conftest.err'
26610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26611 (eval $ac_try) 2>&5
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); }; } &&
26615 { ac_try='test -s conftest.$ac_objext'
26616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617 (eval $ac_try) 2>&5
26619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); }; }; then
26621 ac_header_compiler=yes
26623 echo "$as_me: failed program was:" >&5
26624 sed 's/^/| /' conftest.$ac_ext >&5
26626 ac_header_compiler=no
26628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26630 echo "${ECHO_T}$ac_header_compiler" >&6
26632 # Is the header present?
26633 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26635 cat >conftest.$ac_ext <<_ACEOF
26638 cat confdefs.h >>conftest.$ac_ext
26639 cat >>conftest.$ac_ext <<_ACEOF
26640 /* end confdefs.h. */
26641 #include <$ac_header>
26643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26646 grep -v '^ *+' conftest.er1 >conftest.err
26648 cat conftest.err >&5
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); } >/dev/null; then
26651 if test -s conftest.err; then
26652 ac_cpp_err=$ac_c_preproc_warn_flag
26653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26660 if test -z "$ac_cpp_err"; then
26661 ac_header_preproc=yes
26663 echo "$as_me: failed program was:" >&5
26664 sed 's/^/| /' conftest.$ac_ext >&5
26666 ac_header_preproc=no
26668 rm -f conftest.err conftest.$ac_ext
26669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26670 echo "${ECHO_T}$ac_header_preproc" >&6
26672 # So? What about this header?
26673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26679 ac_header_preproc=yes
26682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26689 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26696 ## --------------------------------------------- ##
26697 ## Report this to <http://www.openldap.org/its/> ##
26698 ## --------------------------------------------- ##
26701 sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
26711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26716 cat >>confdefs.h <<_ACEOF
26717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26725 for ac_header in lwp/lwp.h
26727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26729 echo "$as_me:$LINENO: checking for $ac_header" >&5
26730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26732 echo $ECHO_N "(cached) $ECHO_C" >&6
26734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26737 # Is the header compilable?
26738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26740 cat >conftest.$ac_ext <<_ACEOF
26743 cat confdefs.h >>conftest.$ac_ext
26744 cat >>conftest.$ac_ext <<_ACEOF
26745 /* end confdefs.h. */
26746 $ac_includes_default
26747 #include <$ac_header>
26749 rm -f conftest.$ac_objext
26750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26751 (eval $ac_compile) 2>conftest.er1
26753 grep -v '^ *+' conftest.er1 >conftest.err
26755 cat conftest.err >&5
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); } &&
26758 { ac_try='test -z "$ac_c_werror_flag"
26759 || test ! -s conftest.err'
26760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26761 (eval $ac_try) 2>&5
26763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764 (exit $ac_status); }; } &&
26765 { ac_try='test -s conftest.$ac_objext'
26766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26767 (eval $ac_try) 2>&5
26769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); }; }; then
26771 ac_header_compiler=yes
26773 echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26776 ac_header_compiler=no
26778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26780 echo "${ECHO_T}$ac_header_compiler" >&6
26782 # Is the header present?
26783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26785 cat >conftest.$ac_ext <<_ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h. */
26791 #include <$ac_header>
26793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26796 grep -v '^ *+' conftest.er1 >conftest.err
26798 cat conftest.err >&5
26799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800 (exit $ac_status); } >/dev/null; then
26801 if test -s conftest.err; then
26802 ac_cpp_err=$ac_c_preproc_warn_flag
26803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26810 if test -z "$ac_cpp_err"; then
26811 ac_header_preproc=yes
26813 echo "$as_me: failed program was:" >&5
26814 sed 's/^/| /' conftest.$ac_ext >&5
26816 ac_header_preproc=no
26818 rm -f conftest.err conftest.$ac_ext
26819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26820 echo "${ECHO_T}$ac_header_preproc" >&6
26822 # So? What about this header?
26823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26829 ac_header_preproc=yes
26832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26846 ## --------------------------------------------- ##
26847 ## Report this to <http://www.openldap.org/its/> ##
26848 ## --------------------------------------------- ##
26851 sed "s/^/$as_me: WARNING: /" >&2
26854 echo "$as_me:$LINENO: checking for $ac_header" >&5
26855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26857 echo $ECHO_N "(cached) $ECHO_C" >&6
26859 eval "$as_ac_Header=\$ac_header_preproc"
26861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26866 cat >>confdefs.h <<_ACEOF
26867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26876 for ac_header in thread.h synch.h
26878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26880 echo "$as_me:$LINENO: checking for $ac_header" >&5
26881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26883 echo $ECHO_N "(cached) $ECHO_C" >&6
26885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26888 # Is the header compilable?
26889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26891 cat >conftest.$ac_ext <<_ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h. */
26897 $ac_includes_default
26898 #include <$ac_header>
26900 rm -f conftest.$ac_objext
26901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26902 (eval $ac_compile) 2>conftest.er1
26904 grep -v '^ *+' conftest.er1 >conftest.err
26906 cat conftest.err >&5
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); } &&
26909 { ac_try='test -z "$ac_c_werror_flag"
26910 || test ! -s conftest.err'
26911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26912 (eval $ac_try) 2>&5
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); }; } &&
26916 { ac_try='test -s conftest.$ac_objext'
26917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26918 (eval $ac_try) 2>&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; }; then
26922 ac_header_compiler=yes
26924 echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.$ac_ext >&5
26927 ac_header_compiler=no
26929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26931 echo "${ECHO_T}$ac_header_compiler" >&6
26933 # Is the header present?
26934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26936 cat >conftest.$ac_ext <<_ACEOF
26939 cat confdefs.h >>conftest.$ac_ext
26940 cat >>conftest.$ac_ext <<_ACEOF
26941 /* end confdefs.h. */
26942 #include <$ac_header>
26944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26947 grep -v '^ *+' conftest.er1 >conftest.err
26949 cat conftest.err >&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); } >/dev/null; then
26952 if test -s conftest.err; then
26953 ac_cpp_err=$ac_c_preproc_warn_flag
26954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26961 if test -z "$ac_cpp_err"; then
26962 ac_header_preproc=yes
26964 echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.$ac_ext >&5
26967 ac_header_preproc=no
26969 rm -f conftest.err conftest.$ac_ext
26970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26971 echo "${ECHO_T}$ac_header_preproc" >&6
26973 # So? What about this header?
26974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26980 ac_header_preproc=yes
26983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26997 ## --------------------------------------------- ##
26998 ## Report this to <http://www.openldap.org/its/> ##
26999 ## --------------------------------------------- ##
27002 sed "s/^/$as_me: WARNING: /" >&2
27005 echo "$as_me:$LINENO: checking for $ac_header" >&5
27006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27008 echo $ECHO_N "(cached) $ECHO_C" >&6
27010 eval "$as_ac_Header=\$ac_header_preproc"
27012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27017 cat >>confdefs.h <<_ACEOF
27018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27027 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27028 cat >>confdefs.h <<\_ACEOF
27029 #define REENTRANT 1
27032 cat >>confdefs.h <<\_ACEOF
27033 #define _REENTRANT 1
27036 cat >>confdefs.h <<\_ACEOF
27037 #define THREAD_SAFE 1
27040 cat >>confdefs.h <<\_ACEOF
27041 #define _THREAD_SAFE 1
27044 cat >>confdefs.h <<\_ACEOF
27045 #define THREADSAFE 1
27048 cat >>confdefs.h <<\_ACEOF
27049 #define _THREADSAFE 1
27052 cat >>confdefs.h <<\_ACEOF
27053 #define _SGI_MP_SOURCE 1
27057 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27058 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27059 if test "${ol_cv_errno_thread_specific+set}" = set; then
27060 echo $ECHO_N "(cached) $ECHO_C" >&6
27063 cat >conftest.$ac_ext <<_ACEOF
27066 cat confdefs.h >>conftest.$ac_ext
27067 cat >>conftest.$ac_ext <<_ACEOF
27068 /* end confdefs.h. */
27078 rm -f conftest.$ac_objext conftest$ac_exeext
27079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27080 (eval $ac_link) 2>conftest.er1
27082 grep -v '^ *+' conftest.er1 >conftest.err
27084 cat conftest.err >&5
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); } &&
27087 { ac_try='test -z "$ac_c_werror_flag"
27088 || test ! -s conftest.err'
27089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27090 (eval $ac_try) 2>&5
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); }; } &&
27094 { ac_try='test -s conftest$ac_exeext'
27095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27096 (eval $ac_try) 2>&5
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); }; }; then
27100 ol_cv_errno_thread_specific=yes
27102 echo "$as_me: failed program was:" >&5
27103 sed 's/^/| /' conftest.$ac_ext >&5
27105 ol_cv_errno_thread_specific=no
27107 rm -f conftest.err conftest.$ac_objext \
27108 conftest$ac_exeext conftest.$ac_ext
27111 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27112 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27114 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27115 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27116 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27117 echo $ECHO_N "(cached) $ECHO_C" >&6
27120 cat >conftest.$ac_ext <<_ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h. */
27135 rm -f conftest.$ac_objext conftest$ac_exeext
27136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27137 (eval $ac_link) 2>conftest.er1
27139 grep -v '^ *+' conftest.er1 >conftest.err
27141 cat conftest.err >&5
27142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); } &&
27144 { ac_try='test -z "$ac_c_werror_flag"
27145 || test ! -s conftest.err'
27146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27147 (eval $ac_try) 2>&5
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; } &&
27151 { ac_try='test -s conftest$ac_exeext'
27152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27153 (eval $ac_try) 2>&5
27155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156 (exit $ac_status); }; }; then
27157 ol_cv_h_errno_thread_specific=yes
27159 echo "$as_me: failed program was:" >&5
27160 sed 's/^/| /' conftest.$ac_ext >&5
27162 ol_cv_h_errno_thread_specific=no
27164 rm -f conftest.err conftest.$ac_objext \
27165 conftest$ac_exeext conftest.$ac_ext
27168 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27169 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27171 if test $ol_cv_errno_thread_specific != yes ||
27172 test $ol_cv_h_errno_thread_specific != yes ; then
27173 LIBS="$LTHREAD_LIBS $LIBS"
27179 if test $ol_link_threads = no ; then
27180 if test $ol_with_threads = yes ; then
27181 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27182 echo "$as_me: error: no suitable thread support" >&2;}
27183 { (exit 1); exit 1; }; }
27186 if test $ol_with_threads = auto ; then
27187 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27188 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27193 cat >>confdefs.h <<\_ACEOF
27194 #define NO_THREADS 1
27203 if test $ol_link_threads != no ; then
27205 cat >>confdefs.h <<\_ACEOF
27206 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27216 gethostbyname_r gethostbyaddr_r \
27219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27220 echo "$as_me:$LINENO: checking for $ac_func" >&5
27221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27222 if eval "test \"\${$as_ac_var+set}\" = set"; then
27223 echo $ECHO_N "(cached) $ECHO_C" >&6
27225 cat >conftest.$ac_ext <<_ACEOF
27228 cat confdefs.h >>conftest.$ac_ext
27229 cat >>conftest.$ac_ext <<_ACEOF
27230 /* end confdefs.h. */
27231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27233 #define $ac_func innocuous_$ac_func
27235 /* System header to define __stub macros and hopefully few prototypes,
27236 which can conflict with char $ac_func (); below.
27237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27238 <limits.h> exists even on freestanding compilers. */
27241 # include <limits.h>
27243 # include <assert.h>
27248 /* Override any gcc2 internal prototype to avoid an error. */
27253 /* We use char because int might match the return type of a gcc2
27254 builtin and then its argument prototype would still apply. */
27256 /* The GNU C library defines this for functions which it implements
27257 to always fail with ENOSYS. Some functions are actually named
27258 something starting with __ and the normal name is an alias. */
27259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27262 char (*f) () = $ac_func;
27271 return f != $ac_func;
27276 rm -f conftest.$ac_objext conftest$ac_exeext
27277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27278 (eval $ac_link) 2>conftest.er1
27280 grep -v '^ *+' conftest.er1 >conftest.err
27282 cat conftest.err >&5
27283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284 (exit $ac_status); } &&
27285 { ac_try='test -z "$ac_c_werror_flag"
27286 || test ! -s conftest.err'
27287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27288 (eval $ac_try) 2>&5
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); }; } &&
27292 { ac_try='test -s conftest$ac_exeext'
27293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27294 (eval $ac_try) 2>&5
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); }; }; then
27298 eval "$as_ac_var=yes"
27300 echo "$as_me: failed program was:" >&5
27301 sed 's/^/| /' conftest.$ac_ext >&5
27303 eval "$as_ac_var=no"
27305 rm -f conftest.err conftest.$ac_objext \
27306 conftest$ac_exeext conftest.$ac_ext
27308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27310 if test `eval echo '${'$as_ac_var'}'` = yes; then
27311 cat >>confdefs.h <<_ACEOF
27312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27319 if test "$ac_cv_func_ctime_r" = no ; then
27320 ol_cv_func_ctime_r_nargs=0
27322 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27323 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27324 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27325 echo $ECHO_N "(cached) $ECHO_C" >&6
27327 cat >conftest.$ac_ext <<_ACEOF
27330 cat confdefs.h >>conftest.$ac_ext
27331 cat >>conftest.$ac_ext <<_ACEOF
27332 /* end confdefs.h. */
27337 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27342 rm -f conftest.$ac_objext
27343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27344 (eval $ac_compile) 2>conftest.er1
27346 grep -v '^ *+' conftest.er1 >conftest.err
27348 cat conftest.err >&5
27349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350 (exit $ac_status); } &&
27351 { ac_try='test -z "$ac_c_werror_flag"
27352 || test ! -s conftest.err'
27353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27354 (eval $ac_try) 2>&5
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); }; } &&
27358 { ac_try='test -s conftest.$ac_objext'
27359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27360 (eval $ac_try) 2>&5
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); }; }; then
27364 ol_cv_func_ctime_r_nargs3=yes
27366 echo "$as_me: failed program was:" >&5
27367 sed 's/^/| /' conftest.$ac_ext >&5
27369 ol_cv_func_ctime_r_nargs3=no
27371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27373 cat >conftest.$ac_ext <<_ACEOF
27376 cat confdefs.h >>conftest.$ac_ext
27377 cat >>conftest.$ac_ext <<_ACEOF
27378 /* end confdefs.h. */
27383 time_t ti; char *buffer; ctime_r(&ti,buffer);
27388 rm -f conftest.$ac_objext
27389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27390 (eval $ac_compile) 2>conftest.er1
27392 grep -v '^ *+' conftest.er1 >conftest.err
27394 cat conftest.err >&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); } &&
27397 { ac_try='test -z "$ac_c_werror_flag"
27398 || test ! -s conftest.err'
27399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27400 (eval $ac_try) 2>&5
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); }; } &&
27404 { ac_try='test -s conftest.$ac_objext'
27405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27406 (eval $ac_try) 2>&5
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); }; }; then
27410 ol_cv_func_ctime_r_nargs2=yes
27412 echo "$as_me: failed program was:" >&5
27413 sed 's/^/| /' conftest.$ac_ext >&5
27415 ol_cv_func_ctime_r_nargs2=no
27417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27419 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27420 test $ol_cv_func_ctime_r_nargs2 = no ; then
27422 ol_cv_func_ctime_r_nargs=3
27424 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27425 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27427 ol_cv_func_ctime_r_nargs=2
27430 ol_cv_func_ctime_r_nargs=0
27434 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27435 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27437 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27439 cat >>confdefs.h <<_ACEOF
27440 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27447 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27448 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27449 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27450 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27451 echo $ECHO_N "(cached) $ECHO_C" >&6
27453 cat >conftest.$ac_ext <<_ACEOF
27456 cat confdefs.h >>conftest.$ac_ext
27457 cat >>conftest.$ac_ext <<_ACEOF
27458 /* end confdefs.h. */
27459 #include <sys/types.h>
27460 #include <sys/socket.h>
27461 #include <netinet/in.h>
27463 #define BUFSIZE (sizeof(struct hostent)+10)
27467 struct hostent hent; char buffer[BUFSIZE];
27468 int bufsize=BUFSIZE;int h_errno;
27469 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27470 buffer, bufsize, &h_errno);
27475 rm -f conftest.$ac_objext
27476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27477 (eval $ac_compile) 2>conftest.er1
27479 grep -v '^ *+' conftest.er1 >conftest.err
27481 cat conftest.err >&5
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); } &&
27484 { ac_try='test -z "$ac_c_werror_flag"
27485 || test ! -s conftest.err'
27486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27487 (eval $ac_try) 2>&5
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); }; } &&
27491 { ac_try='test -s conftest.$ac_objext'
27492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27493 (eval $ac_try) 2>&5
27495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); }; }; then
27497 ol_cv_func_gethostbyname_r_nargs5=yes
27499 echo "$as_me: failed program was:" >&5
27500 sed 's/^/| /' conftest.$ac_ext >&5
27502 ol_cv_func_gethostbyname_r_nargs5=no
27504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27506 cat >conftest.$ac_ext <<_ACEOF
27509 cat confdefs.h >>conftest.$ac_ext
27510 cat >>conftest.$ac_ext <<_ACEOF
27511 /* end confdefs.h. */
27512 #include <sys/types.h>
27513 #include <sys/socket.h>
27514 #include <netinet/in.h>
27516 #define BUFSIZE (sizeof(struct hostent)+10)
27520 struct hostent hent;struct hostent *rhent;
27521 char buffer[BUFSIZE];
27522 int bufsize=BUFSIZE;int h_errno;
27523 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27529 rm -f conftest.$ac_objext
27530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27531 (eval $ac_compile) 2>conftest.er1
27533 grep -v '^ *+' conftest.er1 >conftest.err
27535 cat conftest.err >&5
27536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 (exit $ac_status); } &&
27538 { ac_try='test -z "$ac_c_werror_flag"
27539 || test ! -s conftest.err'
27540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27541 (eval $ac_try) 2>&5
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); }; } &&
27545 { ac_try='test -s conftest.$ac_objext'
27546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27547 (eval $ac_try) 2>&5
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; }; then
27551 ol_cv_func_gethostbyname_r_nargs6=yes
27553 echo "$as_me: failed program was:" >&5
27554 sed 's/^/| /' conftest.$ac_ext >&5
27556 ol_cv_func_gethostbyname_r_nargs6=no
27558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27560 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27561 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27563 ol_cv_func_gethostbyname_r_nargs=5
27565 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27566 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27568 ol_cv_func_gethostbyname_r_nargs=6
27571 ol_cv_func_gethostbyname_r_nargs=0
27575 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27576 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27577 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27579 cat >>confdefs.h <<_ACEOF
27580 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27586 ol_cv_func_gethostbyname_r_nargs=0
27589 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27590 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27591 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27592 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27593 echo $ECHO_N "(cached) $ECHO_C" >&6
27595 cat >conftest.$ac_ext <<_ACEOF
27598 cat confdefs.h >>conftest.$ac_ext
27599 cat >>conftest.$ac_ext <<_ACEOF
27600 /* end confdefs.h. */
27601 #include <sys/types.h>
27602 #include <sys/socket.h>
27603 #include <netinet/in.h>
27605 #define BUFSIZE (sizeof(struct hostent)+10)
27609 struct hostent hent; char buffer[BUFSIZE];
27610 struct in_addr add;
27611 size_t alen=sizeof(struct in_addr);
27612 int bufsize=BUFSIZE;int h_errno;
27613 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27614 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27619 rm -f conftest.$ac_objext
27620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27621 (eval $ac_compile) 2>conftest.er1
27623 grep -v '^ *+' conftest.er1 >conftest.err
27625 cat conftest.err >&5
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); } &&
27628 { ac_try='test -z "$ac_c_werror_flag"
27629 || test ! -s conftest.err'
27630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27631 (eval $ac_try) 2>&5
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); }; } &&
27635 { ac_try='test -s conftest.$ac_objext'
27636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27637 (eval $ac_try) 2>&5
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); }; }; then
27641 ol_cv_func_gethostbyaddr_r_nargs7=yes
27643 echo "$as_me: failed program was:" >&5
27644 sed 's/^/| /' conftest.$ac_ext >&5
27646 ol_cv_func_gethostbyaddr_r_nargs7=no
27648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27650 cat >conftest.$ac_ext <<_ACEOF
27653 cat confdefs.h >>conftest.$ac_ext
27654 cat >>conftest.$ac_ext <<_ACEOF
27655 /* end confdefs.h. */
27656 #include <sys/types.h>
27657 #include <sys/socket.h>
27658 #include <netinet/in.h>
27660 #define BUFSIZE (sizeof(struct hostent)+10)
27664 struct hostent hent;
27665 struct hostent *rhent; char buffer[BUFSIZE];
27666 struct in_addr add;
27667 size_t alen=sizeof(struct in_addr);
27668 int bufsize=BUFSIZE;int h_errno;
27669 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27670 alen, AF_INET, &hent, buffer, bufsize,
27676 rm -f conftest.$ac_objext
27677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27678 (eval $ac_compile) 2>conftest.er1
27680 grep -v '^ *+' conftest.er1 >conftest.err
27682 cat conftest.err >&5
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684 (exit $ac_status); } &&
27685 { ac_try='test -z "$ac_c_werror_flag"
27686 || test ! -s conftest.err'
27687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27688 (eval $ac_try) 2>&5
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); }; } &&
27692 { ac_try='test -s conftest.$ac_objext'
27693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694 (eval $ac_try) 2>&5
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); }; }; then
27698 ol_cv_func_gethostbyaddr_r_nargs8=yes
27700 echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.$ac_ext >&5
27703 ol_cv_func_gethostbyaddr_r_nargs8=no
27705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27707 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27708 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27710 ol_cv_func_gethostbyaddr_r_nargs=7
27712 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27713 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27715 ol_cv_func_gethostbyaddr_r_nargs=8
27718 ol_cv_func_gethostbyaddr_r_nargs=0
27722 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27723 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27724 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27726 cat >>confdefs.h <<_ACEOF
27727 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27733 ol_cv_func_gethostbyaddr_r_nargs=0
27738 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27740 if test $ol_enable_ldbm_api = bcompat; then \
27743 for ac_header in db_185.h db.h
27745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27747 echo "$as_me:$LINENO: checking for $ac_header" >&5
27748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27750 echo $ECHO_N "(cached) $ECHO_C" >&6
27752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27755 # Is the header compilable?
27756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27758 cat >conftest.$ac_ext <<_ACEOF
27761 cat confdefs.h >>conftest.$ac_ext
27762 cat >>conftest.$ac_ext <<_ACEOF
27763 /* end confdefs.h. */
27764 $ac_includes_default
27765 #include <$ac_header>
27767 rm -f conftest.$ac_objext
27768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27769 (eval $ac_compile) 2>conftest.er1
27771 grep -v '^ *+' conftest.er1 >conftest.err
27773 cat conftest.err >&5
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); } &&
27776 { ac_try='test -z "$ac_c_werror_flag"
27777 || test ! -s conftest.err'
27778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27779 (eval $ac_try) 2>&5
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; } &&
27783 { ac_try='test -s conftest.$ac_objext'
27784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27785 (eval $ac_try) 2>&5
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); }; }; then
27789 ac_header_compiler=yes
27791 echo "$as_me: failed program was:" >&5
27792 sed 's/^/| /' conftest.$ac_ext >&5
27794 ac_header_compiler=no
27796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27798 echo "${ECHO_T}$ac_header_compiler" >&6
27800 # Is the header present?
27801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27803 cat >conftest.$ac_ext <<_ACEOF
27806 cat confdefs.h >>conftest.$ac_ext
27807 cat >>conftest.$ac_ext <<_ACEOF
27808 /* end confdefs.h. */
27809 #include <$ac_header>
27811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27814 grep -v '^ *+' conftest.er1 >conftest.err
27816 cat conftest.err >&5
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); } >/dev/null; then
27819 if test -s conftest.err; then
27820 ac_cpp_err=$ac_c_preproc_warn_flag
27821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27828 if test -z "$ac_cpp_err"; then
27829 ac_header_preproc=yes
27831 echo "$as_me: failed program was:" >&5
27832 sed 's/^/| /' conftest.$ac_ext >&5
27834 ac_header_preproc=no
27836 rm -f conftest.err conftest.$ac_ext
27837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27838 echo "${ECHO_T}$ac_header_preproc" >&6
27840 # So? What about this header?
27841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27847 ac_header_preproc=yes
27850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27864 ## --------------------------------------------- ##
27865 ## Report this to <http://www.openldap.org/its/> ##
27866 ## --------------------------------------------- ##
27869 sed "s/^/$as_me: WARNING: /" >&2
27872 echo "$as_me:$LINENO: checking for $ac_header" >&5
27873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27875 echo $ECHO_N "(cached) $ECHO_C" >&6
27877 eval "$as_ac_Header=\$ac_header_preproc"
27879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27884 cat >>confdefs.h <<_ACEOF
27885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27892 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27893 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27894 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27895 if test "${ol_cv_header_db1+set}" = set; then
27896 echo $ECHO_N "(cached) $ECHO_C" >&6
27899 cat >conftest.$ac_ext <<_ACEOF
27902 cat confdefs.h >>conftest.$ac_ext
27903 cat >>conftest.$ac_ext <<_ACEOF
27904 /* end confdefs.h. */
27907 # include <db_185.h>
27912 /* this check could be improved */
27913 #ifndef DB_VERSION_MAJOR
27914 # define DB_VERSION_MAJOR 1
27917 #if DB_VERSION_MAJOR == 1
27922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27923 $EGREP "__db_version_1" >/dev/null 2>&1; then
27924 ol_cv_header_db1=yes
27926 ol_cv_header_db1=no
27931 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27932 echo "${ECHO_T}$ol_cv_header_db1" >&6
27934 if test $ol_cv_header_db1 = yes ; then
27937 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27938 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27939 if test "${ol_cv_bdb_major+set}" = set; then
27940 echo $ECHO_N "(cached) $ECHO_C" >&6
27944 if test $ol_cv_bdb_major = 0 ; then
27945 cat >conftest.$ac_ext <<_ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h. */
27953 #ifndef DB_VERSION_MAJOR
27954 # define DB_VERSION_MAJOR 1
27956 #if DB_VERSION_MAJOR == 4
27961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27962 $EGREP "__db_version" >/dev/null 2>&1; then
27970 if test $ol_cv_bdb_major = 0 ; then
27971 cat >conftest.$ac_ext <<_ACEOF
27974 cat confdefs.h >>conftest.$ac_ext
27975 cat >>conftest.$ac_ext <<_ACEOF
27976 /* end confdefs.h. */
27979 #ifndef DB_VERSION_MAJOR
27980 # define DB_VERSION_MAJOR 1
27982 #if DB_VERSION_MAJOR == 3
27987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27988 $EGREP "__db_version" >/dev/null 2>&1; then
27996 if test $ol_cv_bdb_major = 0 ; then
27997 cat >conftest.$ac_ext <<_ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h. */
28005 #ifndef DB_VERSION_MAJOR
28006 # define DB_VERSION_MAJOR 1
28008 #if DB_VERSION_MAJOR == 2
28013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28014 $EGREP "__db_version" >/dev/null 2>&1; then
28022 if test $ol_cv_bdb_major = 0 ; then
28023 cat >conftest.$ac_ext <<_ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h. */
28031 #ifndef DB_VERSION_MAJOR
28032 # define DB_VERSION_MAJOR 1
28034 #if DB_VERSION_MAJOR == 1
28039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28040 $EGREP "__db_version" >/dev/null 2>&1; then
28049 if test $ol_cv_bdb_major = 0 ; then
28050 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28051 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28052 { (exit 1); exit 1; }; }
28056 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28057 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28059 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28060 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28061 if test "${ol_cv_bdb_minor+set}" = set; then
28062 echo $ECHO_N "(cached) $ECHO_C" >&6
28066 if test $ol_cv_bdb_minor = 0 ; then
28067 cat >conftest.$ac_ext <<_ACEOF
28070 cat confdefs.h >>conftest.$ac_ext
28071 cat >>conftest.$ac_ext <<_ACEOF
28072 /* end confdefs.h. */
28075 #ifndef DB_VERSION_MINOR
28076 # define DB_VERSION_MINOR 0
28078 #if DB_VERSION_MINOR == 9
28083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28084 $EGREP "__db_version" >/dev/null 2>&1; then
28092 if test $ol_cv_bdb_minor = 0 ; then
28093 cat >conftest.$ac_ext <<_ACEOF
28096 cat confdefs.h >>conftest.$ac_ext
28097 cat >>conftest.$ac_ext <<_ACEOF
28098 /* end confdefs.h. */
28101 #ifndef DB_VERSION_MINOR
28102 # define DB_VERSION_MINOR 0
28104 #if DB_VERSION_MINOR == 8
28109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28110 $EGREP "__db_version" >/dev/null 2>&1; then
28118 if test $ol_cv_bdb_minor = 0 ; then
28119 cat >conftest.$ac_ext <<_ACEOF
28122 cat confdefs.h >>conftest.$ac_ext
28123 cat >>conftest.$ac_ext <<_ACEOF
28124 /* end confdefs.h. */
28127 #ifndef DB_VERSION_MINOR
28128 # define DB_VERSION_MINOR 0
28130 #if DB_VERSION_MINOR == 7
28135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28136 $EGREP "__db_version" >/dev/null 2>&1; then
28144 if test $ol_cv_bdb_minor = 0 ; then
28145 cat >conftest.$ac_ext <<_ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h. */
28153 #ifndef DB_VERSION_MINOR
28154 # define DB_VERSION_MINOR 0
28156 #if DB_VERSION_MINOR == 6
28161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28162 $EGREP "__db_version" >/dev/null 2>&1; then
28170 if test $ol_cv_bdb_minor = 0 ; then
28171 cat >conftest.$ac_ext <<_ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h. */
28179 #ifndef DB_VERSION_MINOR
28180 # define DB_VERSION_MINOR 0
28182 #if DB_VERSION_MINOR == 5
28187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28188 $EGREP "__db_version" >/dev/null 2>&1; then
28196 if test $ol_cv_bdb_minor = 0 ; then
28197 cat >conftest.$ac_ext <<_ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h. */
28205 #ifndef DB_VERSION_MINOR
28206 # define DB_VERSION_MINOR 0
28208 #if DB_VERSION_MINOR == 4
28213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28214 $EGREP "__db_version" >/dev/null 2>&1; then
28222 if test $ol_cv_bdb_minor = 0 ; then
28223 cat >conftest.$ac_ext <<_ACEOF
28226 cat confdefs.h >>conftest.$ac_ext
28227 cat >>conftest.$ac_ext <<_ACEOF
28228 /* end confdefs.h. */
28231 #ifndef DB_VERSION_MINOR
28232 # define DB_VERSION_MINOR 0
28234 #if DB_VERSION_MINOR == 3
28239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28240 $EGREP "__db_version" >/dev/null 2>&1; then
28248 if test $ol_cv_bdb_minor = 0 ; then
28249 cat >conftest.$ac_ext <<_ACEOF
28252 cat confdefs.h >>conftest.$ac_ext
28253 cat >>conftest.$ac_ext <<_ACEOF
28254 /* end confdefs.h. */
28257 #ifndef DB_VERSION_MINOR
28258 # define DB_VERSION_MINOR 0
28260 #if DB_VERSION_MINOR == 2
28265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28266 $EGREP "__db_version" >/dev/null 2>&1; then
28274 if test $ol_cv_bdb_minor = 0 ; then
28275 cat >conftest.$ac_ext <<_ACEOF
28278 cat confdefs.h >>conftest.$ac_ext
28279 cat >>conftest.$ac_ext <<_ACEOF
28280 /* end confdefs.h. */
28283 #ifndef DB_VERSION_MINOR
28284 # define DB_VERSION_MINOR 0
28286 #if DB_VERSION_MINOR == 1
28291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28292 $EGREP "__db_version" >/dev/null 2>&1; then
28302 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28303 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28305 if test $ol_cv_bdb_major = 4 ; then
28306 if test $ol_cv_bdb_minor = 4 ; then
28307 if test $ol_cv_lib_db = no ; then
28308 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28309 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28310 if test "${ol_cv_db_db44+set}" = set; then
28311 echo $ECHO_N "(cached) $ECHO_C" >&6
28316 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28318 cat >conftest.$ac_ext <<_ACEOF
28321 cat confdefs.h >>conftest.$ac_ext
28322 cat >>conftest.$ac_ext <<_ACEOF
28323 /* end confdefs.h. */
28325 #ifdef HAVE_DB_185_H
28326 # include <db_185.h>
28331 #ifndef DB_VERSION_MAJOR
28332 # define DB_VERSION_MAJOR 1
28336 #define NULL ((void*)0)
28343 #if DB_VERSION_MAJOR > 1
28346 int major, minor, patch;
28348 version = db_version( &major, &minor, &patch );
28350 if( major != DB_VERSION_MAJOR ||
28351 minor < DB_VERSION_MINOR )
28353 printf("Berkeley DB version mismatch\n"
28354 "\theader: %s\n\tlibrary: %s\n",
28355 DB_VERSION_STRING, version);
28361 #if DB_VERSION_MAJOR > 2
28362 db_env_create( NULL, 0 );
28363 #elif DB_VERSION_MAJOR > 1
28364 db_appexit( NULL );
28366 (void) dbopen( NULL, 0, 0, 0, NULL);
28373 rm -f conftest.$ac_objext conftest$ac_exeext
28374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28375 (eval $ac_link) 2>conftest.er1
28377 grep -v '^ *+' conftest.er1 >conftest.err
28379 cat conftest.err >&5
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); } &&
28382 { ac_try='test -z "$ac_c_werror_flag"
28383 || test ! -s conftest.err'
28384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28385 (eval $ac_try) 2>&5
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); }; } &&
28389 { ac_try='test -s conftest$ac_exeext'
28390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28391 (eval $ac_try) 2>&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); }; }; then
28397 echo "$as_me: failed program was:" >&5
28398 sed 's/^/| /' conftest.$ac_ext >&5
28402 rm -f conftest.err conftest.$ac_objext \
28403 conftest$ac_exeext conftest.$ac_ext
28408 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28409 echo "${ECHO_T}$ol_cv_db_db44" >&6
28411 if test $ol_cv_db_db44 = yes ; then
28412 ol_cv_lib_db=-ldb44
28416 if test $ol_cv_lib_db = no ; then
28417 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28418 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28419 if test "${ol_cv_db_db_44+set}" = set; then
28420 echo $ECHO_N "(cached) $ECHO_C" >&6
28425 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28427 cat >conftest.$ac_ext <<_ACEOF
28430 cat confdefs.h >>conftest.$ac_ext
28431 cat >>conftest.$ac_ext <<_ACEOF
28432 /* end confdefs.h. */
28434 #ifdef HAVE_DB_185_H
28435 # include <db_185.h>
28440 #ifndef DB_VERSION_MAJOR
28441 # define DB_VERSION_MAJOR 1
28445 #define NULL ((void*)0)
28452 #if DB_VERSION_MAJOR > 1
28455 int major, minor, patch;
28457 version = db_version( &major, &minor, &patch );
28459 if( major != DB_VERSION_MAJOR ||
28460 minor < DB_VERSION_MINOR )
28462 printf("Berkeley DB version mismatch\n"
28463 "\theader: %s\n\tlibrary: %s\n",
28464 DB_VERSION_STRING, version);
28470 #if DB_VERSION_MAJOR > 2
28471 db_env_create( NULL, 0 );
28472 #elif DB_VERSION_MAJOR > 1
28473 db_appexit( NULL );
28475 (void) dbopen( NULL, 0, 0, 0, NULL);
28482 rm -f conftest.$ac_objext conftest$ac_exeext
28483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28484 (eval $ac_link) 2>conftest.er1
28486 grep -v '^ *+' conftest.er1 >conftest.err
28488 cat conftest.err >&5
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); } &&
28491 { ac_try='test -z "$ac_c_werror_flag"
28492 || test ! -s conftest.err'
28493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494 (eval $ac_try) 2>&5
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); }; } &&
28498 { ac_try='test -s conftest$ac_exeext'
28499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28500 (eval $ac_try) 2>&5
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); }; }; then
28506 echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28511 rm -f conftest.err conftest.$ac_objext \
28512 conftest$ac_exeext conftest.$ac_ext
28517 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28518 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28520 if test $ol_cv_db_db_44 = yes ; then
28521 ol_cv_lib_db=-ldb-44
28525 if test $ol_cv_lib_db = no ; then
28526 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28527 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28528 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28529 echo $ECHO_N "(cached) $ECHO_C" >&6
28534 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28536 cat >conftest.$ac_ext <<_ACEOF
28539 cat confdefs.h >>conftest.$ac_ext
28540 cat >>conftest.$ac_ext <<_ACEOF
28541 /* end confdefs.h. */
28543 #ifdef HAVE_DB_185_H
28544 # include <db_185.h>
28549 #ifndef DB_VERSION_MAJOR
28550 # define DB_VERSION_MAJOR 1
28554 #define NULL ((void*)0)
28561 #if DB_VERSION_MAJOR > 1
28564 int major, minor, patch;
28566 version = db_version( &major, &minor, &patch );
28568 if( major != DB_VERSION_MAJOR ||
28569 minor < DB_VERSION_MINOR )
28571 printf("Berkeley DB version mismatch\n"
28572 "\theader: %s\n\tlibrary: %s\n",
28573 DB_VERSION_STRING, version);
28579 #if DB_VERSION_MAJOR > 2
28580 db_env_create( NULL, 0 );
28581 #elif DB_VERSION_MAJOR > 1
28582 db_appexit( NULL );
28584 (void) dbopen( NULL, 0, 0, 0, NULL);
28591 rm -f conftest.$ac_objext conftest$ac_exeext
28592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28593 (eval $ac_link) 2>conftest.er1
28595 grep -v '^ *+' conftest.er1 >conftest.err
28597 cat conftest.err >&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); } &&
28600 { ac_try='test -z "$ac_c_werror_flag"
28601 || test ! -s conftest.err'
28602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28603 (eval $ac_try) 2>&5
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); }; } &&
28607 { ac_try='test -s conftest$ac_exeext'
28608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609 (eval $ac_try) 2>&5
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); }; }; then
28613 ol_cv_db_db_4_dot_4=yes
28615 echo "$as_me: failed program was:" >&5
28616 sed 's/^/| /' conftest.$ac_ext >&5
28618 ol_cv_db_db_4_dot_4=no
28620 rm -f conftest.err conftest.$ac_objext \
28621 conftest$ac_exeext conftest.$ac_ext
28626 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28627 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28629 if test $ol_cv_db_db_4_dot_4 = yes ; then
28630 ol_cv_lib_db=-ldb-4.4
28634 if test $ol_cv_lib_db = no ; then
28635 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28636 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28637 if test "${ol_cv_db_db_4_4+set}" = set; then
28638 echo $ECHO_N "(cached) $ECHO_C" >&6
28643 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28645 cat >conftest.$ac_ext <<_ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h. */
28652 #ifdef HAVE_DB_185_H
28653 # include <db_185.h>
28658 #ifndef DB_VERSION_MAJOR
28659 # define DB_VERSION_MAJOR 1
28663 #define NULL ((void*)0)
28670 #if DB_VERSION_MAJOR > 1
28673 int major, minor, patch;
28675 version = db_version( &major, &minor, &patch );
28677 if( major != DB_VERSION_MAJOR ||
28678 minor < DB_VERSION_MINOR )
28680 printf("Berkeley DB version mismatch\n"
28681 "\theader: %s\n\tlibrary: %s\n",
28682 DB_VERSION_STRING, version);
28688 #if DB_VERSION_MAJOR > 2
28689 db_env_create( NULL, 0 );
28690 #elif DB_VERSION_MAJOR > 1
28691 db_appexit( NULL );
28693 (void) dbopen( NULL, 0, 0, 0, NULL);
28700 rm -f conftest.$ac_objext conftest$ac_exeext
28701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28702 (eval $ac_link) 2>conftest.er1
28704 grep -v '^ *+' conftest.er1 >conftest.err
28706 cat conftest.err >&5
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); } &&
28709 { ac_try='test -z "$ac_c_werror_flag"
28710 || test ! -s conftest.err'
28711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28712 (eval $ac_try) 2>&5
28714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715 (exit $ac_status); }; } &&
28716 { ac_try='test -s conftest$ac_exeext'
28717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718 (eval $ac_try) 2>&5
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; }; then
28722 ol_cv_db_db_4_4=yes
28724 echo "$as_me: failed program was:" >&5
28725 sed 's/^/| /' conftest.$ac_ext >&5
28729 rm -f conftest.err conftest.$ac_objext \
28730 conftest$ac_exeext conftest.$ac_ext
28735 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28736 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28738 if test $ol_cv_db_db_4_4 = yes ; then
28739 ol_cv_lib_db=-ldb-4-4
28743 elif test $ol_cv_bdb_minor = 3 ; then
28744 if test $ol_cv_lib_db = no ; then
28745 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28746 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28747 if test "${ol_cv_db_db43+set}" = set; then
28748 echo $ECHO_N "(cached) $ECHO_C" >&6
28753 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28755 cat >conftest.$ac_ext <<_ACEOF
28758 cat confdefs.h >>conftest.$ac_ext
28759 cat >>conftest.$ac_ext <<_ACEOF
28760 /* end confdefs.h. */
28762 #ifdef HAVE_DB_185_H
28763 # include <db_185.h>
28768 #ifndef DB_VERSION_MAJOR
28769 # define DB_VERSION_MAJOR 1
28773 #define NULL ((void*)0)
28780 #if DB_VERSION_MAJOR > 1
28783 int major, minor, patch;
28785 version = db_version( &major, &minor, &patch );
28787 if( major != DB_VERSION_MAJOR ||
28788 minor < DB_VERSION_MINOR )
28790 printf("Berkeley DB version mismatch\n"
28791 "\theader: %s\n\tlibrary: %s\n",
28792 DB_VERSION_STRING, version);
28798 #if DB_VERSION_MAJOR > 2
28799 db_env_create( NULL, 0 );
28800 #elif DB_VERSION_MAJOR > 1
28801 db_appexit( NULL );
28803 (void) dbopen( NULL, 0, 0, 0, NULL);
28810 rm -f conftest.$ac_objext conftest$ac_exeext
28811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28812 (eval $ac_link) 2>conftest.er1
28814 grep -v '^ *+' conftest.er1 >conftest.err
28816 cat conftest.err >&5
28817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 (exit $ac_status); } &&
28819 { ac_try='test -z "$ac_c_werror_flag"
28820 || test ! -s conftest.err'
28821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28822 (eval $ac_try) 2>&5
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825 (exit $ac_status); }; } &&
28826 { ac_try='test -s conftest$ac_exeext'
28827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28828 (eval $ac_try) 2>&5
28830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831 (exit $ac_status); }; }; then
28834 echo "$as_me: failed program was:" >&5
28835 sed 's/^/| /' conftest.$ac_ext >&5
28839 rm -f conftest.err conftest.$ac_objext \
28840 conftest$ac_exeext conftest.$ac_ext
28845 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28846 echo "${ECHO_T}$ol_cv_db_db43" >&6
28848 if test $ol_cv_db_db43 = yes ; then
28849 ol_cv_lib_db=-ldb43
28853 if test $ol_cv_lib_db = no ; then
28854 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28855 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28856 if test "${ol_cv_db_db_43+set}" = set; then
28857 echo $ECHO_N "(cached) $ECHO_C" >&6
28862 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28864 cat >conftest.$ac_ext <<_ACEOF
28867 cat confdefs.h >>conftest.$ac_ext
28868 cat >>conftest.$ac_ext <<_ACEOF
28869 /* end confdefs.h. */
28871 #ifdef HAVE_DB_185_H
28872 # include <db_185.h>
28877 #ifndef DB_VERSION_MAJOR
28878 # define DB_VERSION_MAJOR 1
28882 #define NULL ((void*)0)
28889 #if DB_VERSION_MAJOR > 1
28892 int major, minor, patch;
28894 version = db_version( &major, &minor, &patch );
28896 if( major != DB_VERSION_MAJOR ||
28897 minor < DB_VERSION_MINOR )
28899 printf("Berkeley DB version mismatch\n"
28900 "\theader: %s\n\tlibrary: %s\n",
28901 DB_VERSION_STRING, version);
28907 #if DB_VERSION_MAJOR > 2
28908 db_env_create( NULL, 0 );
28909 #elif DB_VERSION_MAJOR > 1
28910 db_appexit( NULL );
28912 (void) dbopen( NULL, 0, 0, 0, NULL);
28919 rm -f conftest.$ac_objext conftest$ac_exeext
28920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28921 (eval $ac_link) 2>conftest.er1
28923 grep -v '^ *+' conftest.er1 >conftest.err
28925 cat conftest.err >&5
28926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); } &&
28928 { ac_try='test -z "$ac_c_werror_flag"
28929 || test ! -s conftest.err'
28930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28931 (eval $ac_try) 2>&5
28933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934 (exit $ac_status); }; } &&
28935 { ac_try='test -s conftest$ac_exeext'
28936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28937 (eval $ac_try) 2>&5
28939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); }; }; then
28943 echo "$as_me: failed program was:" >&5
28944 sed 's/^/| /' conftest.$ac_ext >&5
28948 rm -f conftest.err conftest.$ac_objext \
28949 conftest$ac_exeext conftest.$ac_ext
28954 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28955 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28957 if test $ol_cv_db_db_43 = yes ; then
28958 ol_cv_lib_db=-ldb-43
28962 if test $ol_cv_lib_db = no ; then
28963 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28964 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28965 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28966 echo $ECHO_N "(cached) $ECHO_C" >&6
28971 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28973 cat >conftest.$ac_ext <<_ACEOF
28976 cat confdefs.h >>conftest.$ac_ext
28977 cat >>conftest.$ac_ext <<_ACEOF
28978 /* end confdefs.h. */
28980 #ifdef HAVE_DB_185_H
28981 # include <db_185.h>
28986 #ifndef DB_VERSION_MAJOR
28987 # define DB_VERSION_MAJOR 1
28991 #define NULL ((void*)0)
28998 #if DB_VERSION_MAJOR > 1
29001 int major, minor, patch;
29003 version = db_version( &major, &minor, &patch );
29005 if( major != DB_VERSION_MAJOR ||
29006 minor < DB_VERSION_MINOR )
29008 printf("Berkeley DB version mismatch\n"
29009 "\theader: %s\n\tlibrary: %s\n",
29010 DB_VERSION_STRING, version);
29016 #if DB_VERSION_MAJOR > 2
29017 db_env_create( NULL, 0 );
29018 #elif DB_VERSION_MAJOR > 1
29019 db_appexit( NULL );
29021 (void) dbopen( NULL, 0, 0, 0, NULL);
29028 rm -f conftest.$ac_objext conftest$ac_exeext
29029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29030 (eval $ac_link) 2>conftest.er1
29032 grep -v '^ *+' conftest.er1 >conftest.err
29034 cat conftest.err >&5
29035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036 (exit $ac_status); } &&
29037 { ac_try='test -z "$ac_c_werror_flag"
29038 || test ! -s conftest.err'
29039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29040 (eval $ac_try) 2>&5
29042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 (exit $ac_status); }; } &&
29044 { ac_try='test -s conftest$ac_exeext'
29045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29046 (eval $ac_try) 2>&5
29048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); }; }; then
29050 ol_cv_db_db_4_dot_3=yes
29052 echo "$as_me: failed program was:" >&5
29053 sed 's/^/| /' conftest.$ac_ext >&5
29055 ol_cv_db_db_4_dot_3=no
29057 rm -f conftest.err conftest.$ac_objext \
29058 conftest$ac_exeext conftest.$ac_ext
29063 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29064 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29066 if test $ol_cv_db_db_4_dot_3 = yes ; then
29067 ol_cv_lib_db=-ldb-4.3
29071 if test $ol_cv_lib_db = no ; then
29072 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29073 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29074 if test "${ol_cv_db_db_4_3+set}" = set; then
29075 echo $ECHO_N "(cached) $ECHO_C" >&6
29080 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29082 cat >conftest.$ac_ext <<_ACEOF
29085 cat confdefs.h >>conftest.$ac_ext
29086 cat >>conftest.$ac_ext <<_ACEOF
29087 /* end confdefs.h. */
29089 #ifdef HAVE_DB_185_H
29090 # include <db_185.h>
29095 #ifndef DB_VERSION_MAJOR
29096 # define DB_VERSION_MAJOR 1
29100 #define NULL ((void*)0)
29107 #if DB_VERSION_MAJOR > 1
29110 int major, minor, patch;
29112 version = db_version( &major, &minor, &patch );
29114 if( major != DB_VERSION_MAJOR ||
29115 minor < DB_VERSION_MINOR )
29117 printf("Berkeley DB version mismatch\n"
29118 "\theader: %s\n\tlibrary: %s\n",
29119 DB_VERSION_STRING, version);
29125 #if DB_VERSION_MAJOR > 2
29126 db_env_create( NULL, 0 );
29127 #elif DB_VERSION_MAJOR > 1
29128 db_appexit( NULL );
29130 (void) dbopen( NULL, 0, 0, 0, NULL);
29137 rm -f conftest.$ac_objext conftest$ac_exeext
29138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29139 (eval $ac_link) 2>conftest.er1
29141 grep -v '^ *+' conftest.er1 >conftest.err
29143 cat conftest.err >&5
29144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145 (exit $ac_status); } &&
29146 { ac_try='test -z "$ac_c_werror_flag"
29147 || test ! -s conftest.err'
29148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29149 (eval $ac_try) 2>&5
29151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152 (exit $ac_status); }; } &&
29153 { ac_try='test -s conftest$ac_exeext'
29154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155 (eval $ac_try) 2>&5
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); }; }; then
29159 ol_cv_db_db_4_3=yes
29161 echo "$as_me: failed program was:" >&5
29162 sed 's/^/| /' conftest.$ac_ext >&5
29166 rm -f conftest.err conftest.$ac_objext \
29167 conftest$ac_exeext conftest.$ac_ext
29172 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29173 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29175 if test $ol_cv_db_db_4_3 = yes ; then
29176 ol_cv_lib_db=-ldb-4-3
29180 elif test $ol_cv_bdb_minor = 2 ; then
29181 if test $ol_cv_lib_db = no ; then
29182 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29183 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29184 if test "${ol_cv_db_db42+set}" = set; then
29185 echo $ECHO_N "(cached) $ECHO_C" >&6
29190 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29192 cat >conftest.$ac_ext <<_ACEOF
29195 cat confdefs.h >>conftest.$ac_ext
29196 cat >>conftest.$ac_ext <<_ACEOF
29197 /* end confdefs.h. */
29199 #ifdef HAVE_DB_185_H
29200 # include <db_185.h>
29205 #ifndef DB_VERSION_MAJOR
29206 # define DB_VERSION_MAJOR 1
29210 #define NULL ((void*)0)
29217 #if DB_VERSION_MAJOR > 1
29220 int major, minor, patch;
29222 version = db_version( &major, &minor, &patch );
29224 if( major != DB_VERSION_MAJOR ||
29225 minor < DB_VERSION_MINOR )
29227 printf("Berkeley DB version mismatch\n"
29228 "\theader: %s\n\tlibrary: %s\n",
29229 DB_VERSION_STRING, version);
29235 #if DB_VERSION_MAJOR > 2
29236 db_env_create( NULL, 0 );
29237 #elif DB_VERSION_MAJOR > 1
29238 db_appexit( NULL );
29240 (void) dbopen( NULL, 0, 0, 0, NULL);
29247 rm -f conftest.$ac_objext conftest$ac_exeext
29248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29249 (eval $ac_link) 2>conftest.er1
29251 grep -v '^ *+' conftest.er1 >conftest.err
29253 cat conftest.err >&5
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); } &&
29256 { ac_try='test -z "$ac_c_werror_flag"
29257 || test ! -s conftest.err'
29258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259 (eval $ac_try) 2>&5
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); }; } &&
29263 { ac_try='test -s conftest$ac_exeext'
29264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265 (eval $ac_try) 2>&5
29267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268 (exit $ac_status); }; }; then
29271 echo "$as_me: failed program was:" >&5
29272 sed 's/^/| /' conftest.$ac_ext >&5
29276 rm -f conftest.err conftest.$ac_objext \
29277 conftest$ac_exeext conftest.$ac_ext
29282 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29283 echo "${ECHO_T}$ol_cv_db_db42" >&6
29285 if test $ol_cv_db_db42 = yes ; then
29286 ol_cv_lib_db=-ldb42
29290 if test $ol_cv_lib_db = no ; then
29291 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29292 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29293 if test "${ol_cv_db_db_42+set}" = set; then
29294 echo $ECHO_N "(cached) $ECHO_C" >&6
29299 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29301 cat >conftest.$ac_ext <<_ACEOF
29304 cat confdefs.h >>conftest.$ac_ext
29305 cat >>conftest.$ac_ext <<_ACEOF
29306 /* end confdefs.h. */
29308 #ifdef HAVE_DB_185_H
29309 # include <db_185.h>
29314 #ifndef DB_VERSION_MAJOR
29315 # define DB_VERSION_MAJOR 1
29319 #define NULL ((void*)0)
29326 #if DB_VERSION_MAJOR > 1
29329 int major, minor, patch;
29331 version = db_version( &major, &minor, &patch );
29333 if( major != DB_VERSION_MAJOR ||
29334 minor < DB_VERSION_MINOR )
29336 printf("Berkeley DB version mismatch\n"
29337 "\theader: %s\n\tlibrary: %s\n",
29338 DB_VERSION_STRING, version);
29344 #if DB_VERSION_MAJOR > 2
29345 db_env_create( NULL, 0 );
29346 #elif DB_VERSION_MAJOR > 1
29347 db_appexit( NULL );
29349 (void) dbopen( NULL, 0, 0, 0, NULL);
29356 rm -f conftest.$ac_objext conftest$ac_exeext
29357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29358 (eval $ac_link) 2>conftest.er1
29360 grep -v '^ *+' conftest.er1 >conftest.err
29362 cat conftest.err >&5
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); } &&
29365 { ac_try='test -z "$ac_c_werror_flag"
29366 || test ! -s conftest.err'
29367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29368 (eval $ac_try) 2>&5
29370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371 (exit $ac_status); }; } &&
29372 { ac_try='test -s conftest$ac_exeext'
29373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29374 (eval $ac_try) 2>&5
29376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377 (exit $ac_status); }; }; then
29380 echo "$as_me: failed program was:" >&5
29381 sed 's/^/| /' conftest.$ac_ext >&5
29385 rm -f conftest.err conftest.$ac_objext \
29386 conftest$ac_exeext conftest.$ac_ext
29391 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29392 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29394 if test $ol_cv_db_db_42 = yes ; then
29395 ol_cv_lib_db=-ldb-42
29399 if test $ol_cv_lib_db = no ; then
29400 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29401 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29402 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29403 echo $ECHO_N "(cached) $ECHO_C" >&6
29408 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29410 cat >conftest.$ac_ext <<_ACEOF
29413 cat confdefs.h >>conftest.$ac_ext
29414 cat >>conftest.$ac_ext <<_ACEOF
29415 /* end confdefs.h. */
29417 #ifdef HAVE_DB_185_H
29418 # include <db_185.h>
29423 #ifndef DB_VERSION_MAJOR
29424 # define DB_VERSION_MAJOR 1
29428 #define NULL ((void*)0)
29435 #if DB_VERSION_MAJOR > 1
29438 int major, minor, patch;
29440 version = db_version( &major, &minor, &patch );
29442 if( major != DB_VERSION_MAJOR ||
29443 minor < DB_VERSION_MINOR )
29445 printf("Berkeley DB version mismatch\n"
29446 "\theader: %s\n\tlibrary: %s\n",
29447 DB_VERSION_STRING, version);
29453 #if DB_VERSION_MAJOR > 2
29454 db_env_create( NULL, 0 );
29455 #elif DB_VERSION_MAJOR > 1
29456 db_appexit( NULL );
29458 (void) dbopen( NULL, 0, 0, 0, NULL);
29465 rm -f conftest.$ac_objext conftest$ac_exeext
29466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29467 (eval $ac_link) 2>conftest.er1
29469 grep -v '^ *+' conftest.er1 >conftest.err
29471 cat conftest.err >&5
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); } &&
29474 { ac_try='test -z "$ac_c_werror_flag"
29475 || test ! -s conftest.err'
29476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29477 (eval $ac_try) 2>&5
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); }; } &&
29481 { ac_try='test -s conftest$ac_exeext'
29482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29483 (eval $ac_try) 2>&5
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); }; }; then
29487 ol_cv_db_db_4_dot_2=yes
29489 echo "$as_me: failed program was:" >&5
29490 sed 's/^/| /' conftest.$ac_ext >&5
29492 ol_cv_db_db_4_dot_2=no
29494 rm -f conftest.err conftest.$ac_objext \
29495 conftest$ac_exeext conftest.$ac_ext
29500 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29501 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29503 if test $ol_cv_db_db_4_dot_2 = yes ; then
29504 ol_cv_lib_db=-ldb-4.2
29508 if test $ol_cv_lib_db = no ; then
29509 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29510 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29511 if test "${ol_cv_db_db_4_2+set}" = set; then
29512 echo $ECHO_N "(cached) $ECHO_C" >&6
29517 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29519 cat >conftest.$ac_ext <<_ACEOF
29522 cat confdefs.h >>conftest.$ac_ext
29523 cat >>conftest.$ac_ext <<_ACEOF
29524 /* end confdefs.h. */
29526 #ifdef HAVE_DB_185_H
29527 # include <db_185.h>
29532 #ifndef DB_VERSION_MAJOR
29533 # define DB_VERSION_MAJOR 1
29537 #define NULL ((void*)0)
29544 #if DB_VERSION_MAJOR > 1
29547 int major, minor, patch;
29549 version = db_version( &major, &minor, &patch );
29551 if( major != DB_VERSION_MAJOR ||
29552 minor < DB_VERSION_MINOR )
29554 printf("Berkeley DB version mismatch\n"
29555 "\theader: %s\n\tlibrary: %s\n",
29556 DB_VERSION_STRING, version);
29562 #if DB_VERSION_MAJOR > 2
29563 db_env_create( NULL, 0 );
29564 #elif DB_VERSION_MAJOR > 1
29565 db_appexit( NULL );
29567 (void) dbopen( NULL, 0, 0, 0, NULL);
29574 rm -f conftest.$ac_objext conftest$ac_exeext
29575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29576 (eval $ac_link) 2>conftest.er1
29578 grep -v '^ *+' conftest.er1 >conftest.err
29580 cat conftest.err >&5
29581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582 (exit $ac_status); } &&
29583 { ac_try='test -z "$ac_c_werror_flag"
29584 || test ! -s conftest.err'
29585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29586 (eval $ac_try) 2>&5
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); }; } &&
29590 { ac_try='test -s conftest$ac_exeext'
29591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29592 (eval $ac_try) 2>&5
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); }; }; then
29596 ol_cv_db_db_4_2=yes
29598 echo "$as_me: failed program was:" >&5
29599 sed 's/^/| /' conftest.$ac_ext >&5
29603 rm -f conftest.err conftest.$ac_objext \
29604 conftest$ac_exeext conftest.$ac_ext
29609 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29610 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29612 if test $ol_cv_db_db_4_2 = yes ; then
29613 ol_cv_lib_db=-ldb-4-2
29617 elif test $ol_cv_bdb_minor = 1 ; then
29618 if test $ol_cv_lib_db = no ; then
29619 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29620 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29621 if test "${ol_cv_db_db41+set}" = set; then
29622 echo $ECHO_N "(cached) $ECHO_C" >&6
29627 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29629 cat >conftest.$ac_ext <<_ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h. */
29636 #ifdef HAVE_DB_185_H
29637 # include <db_185.h>
29642 #ifndef DB_VERSION_MAJOR
29643 # define DB_VERSION_MAJOR 1
29647 #define NULL ((void*)0)
29654 #if DB_VERSION_MAJOR > 1
29657 int major, minor, patch;
29659 version = db_version( &major, &minor, &patch );
29661 if( major != DB_VERSION_MAJOR ||
29662 minor < DB_VERSION_MINOR )
29664 printf("Berkeley DB version mismatch\n"
29665 "\theader: %s\n\tlibrary: %s\n",
29666 DB_VERSION_STRING, version);
29672 #if DB_VERSION_MAJOR > 2
29673 db_env_create( NULL, 0 );
29674 #elif DB_VERSION_MAJOR > 1
29675 db_appexit( NULL );
29677 (void) dbopen( NULL, 0, 0, 0, NULL);
29684 rm -f conftest.$ac_objext conftest$ac_exeext
29685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29686 (eval $ac_link) 2>conftest.er1
29688 grep -v '^ *+' conftest.er1 >conftest.err
29690 cat conftest.err >&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); } &&
29693 { ac_try='test -z "$ac_c_werror_flag"
29694 || test ! -s conftest.err'
29695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29696 (eval $ac_try) 2>&5
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); }; } &&
29700 { ac_try='test -s conftest$ac_exeext'
29701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29702 (eval $ac_try) 2>&5
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); }; }; then
29708 echo "$as_me: failed program was:" >&5
29709 sed 's/^/| /' conftest.$ac_ext >&5
29713 rm -f conftest.err conftest.$ac_objext \
29714 conftest$ac_exeext conftest.$ac_ext
29719 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29720 echo "${ECHO_T}$ol_cv_db_db41" >&6
29722 if test $ol_cv_db_db41 = yes ; then
29723 ol_cv_lib_db=-ldb41
29727 if test $ol_cv_lib_db = no ; then
29728 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29729 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29730 if test "${ol_cv_db_db_41+set}" = set; then
29731 echo $ECHO_N "(cached) $ECHO_C" >&6
29736 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29738 cat >conftest.$ac_ext <<_ACEOF
29741 cat confdefs.h >>conftest.$ac_ext
29742 cat >>conftest.$ac_ext <<_ACEOF
29743 /* end confdefs.h. */
29745 #ifdef HAVE_DB_185_H
29746 # include <db_185.h>
29751 #ifndef DB_VERSION_MAJOR
29752 # define DB_VERSION_MAJOR 1
29756 #define NULL ((void*)0)
29763 #if DB_VERSION_MAJOR > 1
29766 int major, minor, patch;
29768 version = db_version( &major, &minor, &patch );
29770 if( major != DB_VERSION_MAJOR ||
29771 minor < DB_VERSION_MINOR )
29773 printf("Berkeley DB version mismatch\n"
29774 "\theader: %s\n\tlibrary: %s\n",
29775 DB_VERSION_STRING, version);
29781 #if DB_VERSION_MAJOR > 2
29782 db_env_create( NULL, 0 );
29783 #elif DB_VERSION_MAJOR > 1
29784 db_appexit( NULL );
29786 (void) dbopen( NULL, 0, 0, 0, NULL);
29793 rm -f conftest.$ac_objext conftest$ac_exeext
29794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29795 (eval $ac_link) 2>conftest.er1
29797 grep -v '^ *+' conftest.er1 >conftest.err
29799 cat conftest.err >&5
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); } &&
29802 { ac_try='test -z "$ac_c_werror_flag"
29803 || test ! -s conftest.err'
29804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29805 (eval $ac_try) 2>&5
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); }; } &&
29809 { ac_try='test -s conftest$ac_exeext'
29810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29811 (eval $ac_try) 2>&5
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); }; }; then
29817 echo "$as_me: failed program was:" >&5
29818 sed 's/^/| /' conftest.$ac_ext >&5
29822 rm -f conftest.err conftest.$ac_objext \
29823 conftest$ac_exeext conftest.$ac_ext
29828 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29829 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29831 if test $ol_cv_db_db_41 = yes ; then
29832 ol_cv_lib_db=-ldb-41
29836 if test $ol_cv_lib_db = no ; then
29837 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29838 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29839 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29840 echo $ECHO_N "(cached) $ECHO_C" >&6
29845 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29847 cat >conftest.$ac_ext <<_ACEOF
29850 cat confdefs.h >>conftest.$ac_ext
29851 cat >>conftest.$ac_ext <<_ACEOF
29852 /* end confdefs.h. */
29854 #ifdef HAVE_DB_185_H
29855 # include <db_185.h>
29860 #ifndef DB_VERSION_MAJOR
29861 # define DB_VERSION_MAJOR 1
29865 #define NULL ((void*)0)
29872 #if DB_VERSION_MAJOR > 1
29875 int major, minor, patch;
29877 version = db_version( &major, &minor, &patch );
29879 if( major != DB_VERSION_MAJOR ||
29880 minor < DB_VERSION_MINOR )
29882 printf("Berkeley DB version mismatch\n"
29883 "\theader: %s\n\tlibrary: %s\n",
29884 DB_VERSION_STRING, version);
29890 #if DB_VERSION_MAJOR > 2
29891 db_env_create( NULL, 0 );
29892 #elif DB_VERSION_MAJOR > 1
29893 db_appexit( NULL );
29895 (void) dbopen( NULL, 0, 0, 0, NULL);
29902 rm -f conftest.$ac_objext conftest$ac_exeext
29903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29904 (eval $ac_link) 2>conftest.er1
29906 grep -v '^ *+' conftest.er1 >conftest.err
29908 cat conftest.err >&5
29909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910 (exit $ac_status); } &&
29911 { ac_try='test -z "$ac_c_werror_flag"
29912 || test ! -s conftest.err'
29913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29914 (eval $ac_try) 2>&5
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); }; } &&
29918 { ac_try='test -s conftest$ac_exeext'
29919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29920 (eval $ac_try) 2>&5
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); }; }; then
29924 ol_cv_db_db_4_dot_1=yes
29926 echo "$as_me: failed program was:" >&5
29927 sed 's/^/| /' conftest.$ac_ext >&5
29929 ol_cv_db_db_4_dot_1=no
29931 rm -f conftest.err conftest.$ac_objext \
29932 conftest$ac_exeext conftest.$ac_ext
29937 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29938 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29940 if test $ol_cv_db_db_4_dot_1 = yes ; then
29941 ol_cv_lib_db=-ldb-4.1
29945 if test $ol_cv_lib_db = no ; then
29946 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29947 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29948 if test "${ol_cv_db_db_4_1+set}" = set; then
29949 echo $ECHO_N "(cached) $ECHO_C" >&6
29954 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29956 cat >conftest.$ac_ext <<_ACEOF
29959 cat confdefs.h >>conftest.$ac_ext
29960 cat >>conftest.$ac_ext <<_ACEOF
29961 /* end confdefs.h. */
29963 #ifdef HAVE_DB_185_H
29964 # include <db_185.h>
29969 #ifndef DB_VERSION_MAJOR
29970 # define DB_VERSION_MAJOR 1
29974 #define NULL ((void*)0)
29981 #if DB_VERSION_MAJOR > 1
29984 int major, minor, patch;
29986 version = db_version( &major, &minor, &patch );
29988 if( major != DB_VERSION_MAJOR ||
29989 minor < DB_VERSION_MINOR )
29991 printf("Berkeley DB version mismatch\n"
29992 "\theader: %s\n\tlibrary: %s\n",
29993 DB_VERSION_STRING, version);
29999 #if DB_VERSION_MAJOR > 2
30000 db_env_create( NULL, 0 );
30001 #elif DB_VERSION_MAJOR > 1
30002 db_appexit( NULL );
30004 (void) dbopen( NULL, 0, 0, 0, NULL);
30011 rm -f conftest.$ac_objext conftest$ac_exeext
30012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30013 (eval $ac_link) 2>conftest.er1
30015 grep -v '^ *+' conftest.er1 >conftest.err
30017 cat conftest.err >&5
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); } &&
30020 { ac_try='test -z "$ac_c_werror_flag"
30021 || test ! -s conftest.err'
30022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30023 (eval $ac_try) 2>&5
30025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026 (exit $ac_status); }; } &&
30027 { ac_try='test -s conftest$ac_exeext'
30028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30029 (eval $ac_try) 2>&5
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); }; }; then
30033 ol_cv_db_db_4_1=yes
30035 echo "$as_me: failed program was:" >&5
30036 sed 's/^/| /' conftest.$ac_ext >&5
30040 rm -f conftest.err conftest.$ac_objext \
30041 conftest$ac_exeext conftest.$ac_ext
30046 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30047 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30049 if test $ol_cv_db_db_4_1 = yes ; then
30050 ol_cv_lib_db=-ldb-4-1
30055 if test $ol_cv_lib_db = no ; then
30056 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30057 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30058 if test "${ol_cv_db_db_4+set}" = set; then
30059 echo $ECHO_N "(cached) $ECHO_C" >&6
30064 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30066 cat >conftest.$ac_ext <<_ACEOF
30069 cat confdefs.h >>conftest.$ac_ext
30070 cat >>conftest.$ac_ext <<_ACEOF
30071 /* end confdefs.h. */
30073 #ifdef HAVE_DB_185_H
30074 # include <db_185.h>
30079 #ifndef DB_VERSION_MAJOR
30080 # define DB_VERSION_MAJOR 1
30084 #define NULL ((void*)0)
30091 #if DB_VERSION_MAJOR > 1
30094 int major, minor, patch;
30096 version = db_version( &major, &minor, &patch );
30098 if( major != DB_VERSION_MAJOR ||
30099 minor < DB_VERSION_MINOR )
30101 printf("Berkeley DB version mismatch\n"
30102 "\theader: %s\n\tlibrary: %s\n",
30103 DB_VERSION_STRING, version);
30109 #if DB_VERSION_MAJOR > 2
30110 db_env_create( NULL, 0 );
30111 #elif DB_VERSION_MAJOR > 1
30112 db_appexit( NULL );
30114 (void) dbopen( NULL, 0, 0, 0, NULL);
30121 rm -f conftest.$ac_objext conftest$ac_exeext
30122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30123 (eval $ac_link) 2>conftest.er1
30125 grep -v '^ *+' conftest.er1 >conftest.err
30127 cat conftest.err >&5
30128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129 (exit $ac_status); } &&
30130 { ac_try='test -z "$ac_c_werror_flag"
30131 || test ! -s conftest.err'
30132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30133 (eval $ac_try) 2>&5
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); }; } &&
30137 { ac_try='test -s conftest$ac_exeext'
30138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30139 (eval $ac_try) 2>&5
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); }; }; then
30145 echo "$as_me: failed program was:" >&5
30146 sed 's/^/| /' conftest.$ac_ext >&5
30150 rm -f conftest.err conftest.$ac_objext \
30151 conftest$ac_exeext conftest.$ac_ext
30156 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30157 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30159 if test $ol_cv_db_db_4 = yes ; then
30160 ol_cv_lib_db=-ldb-4
30164 if test $ol_cv_lib_db = no ; then
30165 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30166 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30167 if test "${ol_cv_db_db4+set}" = set; then
30168 echo $ECHO_N "(cached) $ECHO_C" >&6
30173 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30175 cat >conftest.$ac_ext <<_ACEOF
30178 cat confdefs.h >>conftest.$ac_ext
30179 cat >>conftest.$ac_ext <<_ACEOF
30180 /* end confdefs.h. */
30182 #ifdef HAVE_DB_185_H
30183 # include <db_185.h>
30188 #ifndef DB_VERSION_MAJOR
30189 # define DB_VERSION_MAJOR 1
30193 #define NULL ((void*)0)
30200 #if DB_VERSION_MAJOR > 1
30203 int major, minor, patch;
30205 version = db_version( &major, &minor, &patch );
30207 if( major != DB_VERSION_MAJOR ||
30208 minor < DB_VERSION_MINOR )
30210 printf("Berkeley DB version mismatch\n"
30211 "\theader: %s\n\tlibrary: %s\n",
30212 DB_VERSION_STRING, version);
30218 #if DB_VERSION_MAJOR > 2
30219 db_env_create( NULL, 0 );
30220 #elif DB_VERSION_MAJOR > 1
30221 db_appexit( NULL );
30223 (void) dbopen( NULL, 0, 0, 0, NULL);
30230 rm -f conftest.$ac_objext conftest$ac_exeext
30231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30232 (eval $ac_link) 2>conftest.er1
30234 grep -v '^ *+' conftest.er1 >conftest.err
30236 cat conftest.err >&5
30237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238 (exit $ac_status); } &&
30239 { ac_try='test -z "$ac_c_werror_flag"
30240 || test ! -s conftest.err'
30241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30242 (eval $ac_try) 2>&5
30244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245 (exit $ac_status); }; } &&
30246 { ac_try='test -s conftest$ac_exeext'
30247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30248 (eval $ac_try) 2>&5
30250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251 (exit $ac_status); }; }; then
30254 echo "$as_me: failed program was:" >&5
30255 sed 's/^/| /' conftest.$ac_ext >&5
30259 rm -f conftest.err conftest.$ac_objext \
30260 conftest$ac_exeext conftest.$ac_ext
30265 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30266 echo "${ECHO_T}$ol_cv_db_db4" >&6
30268 if test $ol_cv_db_db4 = yes ; then
30273 if test $ol_cv_lib_db = no ; then
30274 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30275 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30276 if test "${ol_cv_db_db+set}" = set; then
30277 echo $ECHO_N "(cached) $ECHO_C" >&6
30282 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30284 cat >conftest.$ac_ext <<_ACEOF
30287 cat confdefs.h >>conftest.$ac_ext
30288 cat >>conftest.$ac_ext <<_ACEOF
30289 /* end confdefs.h. */
30291 #ifdef HAVE_DB_185_H
30292 # include <db_185.h>
30297 #ifndef DB_VERSION_MAJOR
30298 # define DB_VERSION_MAJOR 1
30302 #define NULL ((void*)0)
30309 #if DB_VERSION_MAJOR > 1
30312 int major, minor, patch;
30314 version = db_version( &major, &minor, &patch );
30316 if( major != DB_VERSION_MAJOR ||
30317 minor < DB_VERSION_MINOR )
30319 printf("Berkeley DB version mismatch\n"
30320 "\theader: %s\n\tlibrary: %s\n",
30321 DB_VERSION_STRING, version);
30327 #if DB_VERSION_MAJOR > 2
30328 db_env_create( NULL, 0 );
30329 #elif DB_VERSION_MAJOR > 1
30330 db_appexit( NULL );
30332 (void) dbopen( NULL, 0, 0, 0, NULL);
30339 rm -f conftest.$ac_objext conftest$ac_exeext
30340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30341 (eval $ac_link) 2>conftest.er1
30343 grep -v '^ *+' conftest.er1 >conftest.err
30345 cat conftest.err >&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); } &&
30348 { ac_try='test -z "$ac_c_werror_flag"
30349 || test ! -s conftest.err'
30350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30351 (eval $ac_try) 2>&5
30353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354 (exit $ac_status); }; } &&
30355 { ac_try='test -s conftest$ac_exeext'
30356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30357 (eval $ac_try) 2>&5
30359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360 (exit $ac_status); }; }; then
30363 echo "$as_me: failed program was:" >&5
30364 sed 's/^/| /' conftest.$ac_ext >&5
30368 rm -f conftest.err conftest.$ac_objext \
30369 conftest$ac_exeext conftest.$ac_ext
30374 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30375 echo "${ECHO_T}$ol_cv_db_db" >&6
30377 if test $ol_cv_db_db = yes ; then
30383 elif test $ol_cv_bdb_major = 3 ; then
30384 if test $ol_cv_lib_db = no ; then
30385 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30386 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30387 if test "${ol_cv_db_db3+set}" = set; then
30388 echo $ECHO_N "(cached) $ECHO_C" >&6
30393 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30395 cat >conftest.$ac_ext <<_ACEOF
30398 cat confdefs.h >>conftest.$ac_ext
30399 cat >>conftest.$ac_ext <<_ACEOF
30400 /* end confdefs.h. */
30402 #ifdef HAVE_DB_185_H
30403 # include <db_185.h>
30408 #ifndef DB_VERSION_MAJOR
30409 # define DB_VERSION_MAJOR 1
30413 #define NULL ((void*)0)
30420 #if DB_VERSION_MAJOR > 1
30423 int major, minor, patch;
30425 version = db_version( &major, &minor, &patch );
30427 if( major != DB_VERSION_MAJOR ||
30428 minor < DB_VERSION_MINOR )
30430 printf("Berkeley DB version mismatch\n"
30431 "\theader: %s\n\tlibrary: %s\n",
30432 DB_VERSION_STRING, version);
30438 #if DB_VERSION_MAJOR > 2
30439 db_env_create( NULL, 0 );
30440 #elif DB_VERSION_MAJOR > 1
30441 db_appexit( NULL );
30443 (void) dbopen( NULL, 0, 0, 0, NULL);
30450 rm -f conftest.$ac_objext conftest$ac_exeext
30451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30452 (eval $ac_link) 2>conftest.er1
30454 grep -v '^ *+' conftest.er1 >conftest.err
30456 cat conftest.err >&5
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); } &&
30459 { ac_try='test -z "$ac_c_werror_flag"
30460 || test ! -s conftest.err'
30461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30462 (eval $ac_try) 2>&5
30464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465 (exit $ac_status); }; } &&
30466 { ac_try='test -s conftest$ac_exeext'
30467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30468 (eval $ac_try) 2>&5
30470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30471 (exit $ac_status); }; }; then
30474 echo "$as_me: failed program was:" >&5
30475 sed 's/^/| /' conftest.$ac_ext >&5
30479 rm -f conftest.err conftest.$ac_objext \
30480 conftest$ac_exeext conftest.$ac_ext
30485 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30486 echo "${ECHO_T}$ol_cv_db_db3" >&6
30488 if test $ol_cv_db_db3 = yes ; then
30493 if test $ol_cv_lib_db = no ; then
30494 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30495 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30496 if test "${ol_cv_db_db_3+set}" = set; then
30497 echo $ECHO_N "(cached) $ECHO_C" >&6
30502 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30504 cat >conftest.$ac_ext <<_ACEOF
30507 cat confdefs.h >>conftest.$ac_ext
30508 cat >>conftest.$ac_ext <<_ACEOF
30509 /* end confdefs.h. */
30511 #ifdef HAVE_DB_185_H
30512 # include <db_185.h>
30517 #ifndef DB_VERSION_MAJOR
30518 # define DB_VERSION_MAJOR 1
30522 #define NULL ((void*)0)
30529 #if DB_VERSION_MAJOR > 1
30532 int major, minor, patch;
30534 version = db_version( &major, &minor, &patch );
30536 if( major != DB_VERSION_MAJOR ||
30537 minor < DB_VERSION_MINOR )
30539 printf("Berkeley DB version mismatch\n"
30540 "\theader: %s\n\tlibrary: %s\n",
30541 DB_VERSION_STRING, version);
30547 #if DB_VERSION_MAJOR > 2
30548 db_env_create( NULL, 0 );
30549 #elif DB_VERSION_MAJOR > 1
30550 db_appexit( NULL );
30552 (void) dbopen( NULL, 0, 0, 0, NULL);
30559 rm -f conftest.$ac_objext conftest$ac_exeext
30560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30561 (eval $ac_link) 2>conftest.er1
30563 grep -v '^ *+' conftest.er1 >conftest.err
30565 cat conftest.err >&5
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); } &&
30568 { ac_try='test -z "$ac_c_werror_flag"
30569 || test ! -s conftest.err'
30570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30571 (eval $ac_try) 2>&5
30573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574 (exit $ac_status); }; } &&
30575 { ac_try='test -s conftest$ac_exeext'
30576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30577 (eval $ac_try) 2>&5
30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580 (exit $ac_status); }; }; then
30583 echo "$as_me: failed program was:" >&5
30584 sed 's/^/| /' conftest.$ac_ext >&5
30588 rm -f conftest.err conftest.$ac_objext \
30589 conftest$ac_exeext conftest.$ac_ext
30594 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30595 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30597 if test $ol_cv_db_db_3 = yes ; then
30598 ol_cv_lib_db=-ldb-3
30603 elif test $ol_cv_bdb_major = 2 ; then
30604 if test $ol_cv_lib_db = no ; then
30605 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30606 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30607 if test "${ol_cv_db_db2+set}" = set; then
30608 echo $ECHO_N "(cached) $ECHO_C" >&6
30613 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30615 cat >conftest.$ac_ext <<_ACEOF
30618 cat confdefs.h >>conftest.$ac_ext
30619 cat >>conftest.$ac_ext <<_ACEOF
30620 /* end confdefs.h. */
30622 #ifdef HAVE_DB_185_H
30623 # include <db_185.h>
30628 #ifndef DB_VERSION_MAJOR
30629 # define DB_VERSION_MAJOR 1
30633 #define NULL ((void*)0)
30640 #if DB_VERSION_MAJOR > 1
30643 int major, minor, patch;
30645 version = db_version( &major, &minor, &patch );
30647 if( major != DB_VERSION_MAJOR ||
30648 minor < DB_VERSION_MINOR )
30650 printf("Berkeley DB version mismatch\n"
30651 "\theader: %s\n\tlibrary: %s\n",
30652 DB_VERSION_STRING, version);
30658 #if DB_VERSION_MAJOR > 2
30659 db_env_create( NULL, 0 );
30660 #elif DB_VERSION_MAJOR > 1
30661 db_appexit( NULL );
30663 (void) dbopen( NULL, 0, 0, 0, NULL);
30670 rm -f conftest.$ac_objext conftest$ac_exeext
30671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30672 (eval $ac_link) 2>conftest.er1
30674 grep -v '^ *+' conftest.er1 >conftest.err
30676 cat conftest.err >&5
30677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678 (exit $ac_status); } &&
30679 { ac_try='test -z "$ac_c_werror_flag"
30680 || test ! -s conftest.err'
30681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30682 (eval $ac_try) 2>&5
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); }; } &&
30686 { ac_try='test -s conftest$ac_exeext'
30687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30688 (eval $ac_try) 2>&5
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); }; }; then
30694 echo "$as_me: failed program was:" >&5
30695 sed 's/^/| /' conftest.$ac_ext >&5
30699 rm -f conftest.err conftest.$ac_objext \
30700 conftest$ac_exeext conftest.$ac_ext
30705 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30706 echo "${ECHO_T}$ol_cv_db_db2" >&6
30708 if test $ol_cv_db_db2 = yes ; then
30713 if test $ol_cv_lib_db = no ; then
30714 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30715 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30716 if test "${ol_cv_db_db_2+set}" = set; then
30717 echo $ECHO_N "(cached) $ECHO_C" >&6
30722 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30724 cat >conftest.$ac_ext <<_ACEOF
30727 cat confdefs.h >>conftest.$ac_ext
30728 cat >>conftest.$ac_ext <<_ACEOF
30729 /* end confdefs.h. */
30731 #ifdef HAVE_DB_185_H
30732 # include <db_185.h>
30737 #ifndef DB_VERSION_MAJOR
30738 # define DB_VERSION_MAJOR 1
30742 #define NULL ((void*)0)
30749 #if DB_VERSION_MAJOR > 1
30752 int major, minor, patch;
30754 version = db_version( &major, &minor, &patch );
30756 if( major != DB_VERSION_MAJOR ||
30757 minor < DB_VERSION_MINOR )
30759 printf("Berkeley DB version mismatch\n"
30760 "\theader: %s\n\tlibrary: %s\n",
30761 DB_VERSION_STRING, version);
30767 #if DB_VERSION_MAJOR > 2
30768 db_env_create( NULL, 0 );
30769 #elif DB_VERSION_MAJOR > 1
30770 db_appexit( NULL );
30772 (void) dbopen( NULL, 0, 0, 0, NULL);
30779 rm -f conftest.$ac_objext conftest$ac_exeext
30780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30781 (eval $ac_link) 2>conftest.er1
30783 grep -v '^ *+' conftest.er1 >conftest.err
30785 cat conftest.err >&5
30786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 (exit $ac_status); } &&
30788 { ac_try='test -z "$ac_c_werror_flag"
30789 || test ! -s conftest.err'
30790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30791 (eval $ac_try) 2>&5
30793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); }; } &&
30795 { ac_try='test -s conftest$ac_exeext'
30796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30797 (eval $ac_try) 2>&5
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); }; }; then
30803 echo "$as_me: failed program was:" >&5
30804 sed 's/^/| /' conftest.$ac_ext >&5
30808 rm -f conftest.err conftest.$ac_objext \
30809 conftest$ac_exeext conftest.$ac_ext
30814 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30815 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30817 if test $ol_cv_db_db_2 = yes ; then
30818 ol_cv_lib_db=-ldb-2
30823 elif test $ol_cv_bdb_major = 1 ; then
30824 if test $ol_cv_lib_db = no ; then
30825 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30826 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30827 if test "${ol_cv_db_db1+set}" = set; then
30828 echo $ECHO_N "(cached) $ECHO_C" >&6
30833 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30835 cat >conftest.$ac_ext <<_ACEOF
30838 cat confdefs.h >>conftest.$ac_ext
30839 cat >>conftest.$ac_ext <<_ACEOF
30840 /* end confdefs.h. */
30842 #ifdef HAVE_DB_185_H
30843 # include <db_185.h>
30848 #ifndef DB_VERSION_MAJOR
30849 # define DB_VERSION_MAJOR 1
30853 #define NULL ((void*)0)
30860 #if DB_VERSION_MAJOR > 1
30863 int major, minor, patch;
30865 version = db_version( &major, &minor, &patch );
30867 if( major != DB_VERSION_MAJOR ||
30868 minor < DB_VERSION_MINOR )
30870 printf("Berkeley DB version mismatch\n"
30871 "\theader: %s\n\tlibrary: %s\n",
30872 DB_VERSION_STRING, version);
30878 #if DB_VERSION_MAJOR > 2
30879 db_env_create( NULL, 0 );
30880 #elif DB_VERSION_MAJOR > 1
30881 db_appexit( NULL );
30883 (void) dbopen( NULL, 0, 0, 0, NULL);
30890 rm -f conftest.$ac_objext conftest$ac_exeext
30891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30892 (eval $ac_link) 2>conftest.er1
30894 grep -v '^ *+' conftest.er1 >conftest.err
30896 cat conftest.err >&5
30897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); } &&
30899 { ac_try='test -z "$ac_c_werror_flag"
30900 || test ! -s conftest.err'
30901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30902 (eval $ac_try) 2>&5
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); }; } &&
30906 { ac_try='test -s conftest$ac_exeext'
30907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30908 (eval $ac_try) 2>&5
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); }; }; then
30914 echo "$as_me: failed program was:" >&5
30915 sed 's/^/| /' conftest.$ac_ext >&5
30919 rm -f conftest.err conftest.$ac_objext \
30920 conftest$ac_exeext conftest.$ac_ext
30925 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30926 echo "${ECHO_T}$ol_cv_db_db1" >&6
30928 if test $ol_cv_db_db1 = yes ; then
30933 if test $ol_cv_lib_db = no ; then
30934 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30935 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30936 if test "${ol_cv_db_db_1+set}" = set; then
30937 echo $ECHO_N "(cached) $ECHO_C" >&6
30942 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30944 cat >conftest.$ac_ext <<_ACEOF
30947 cat confdefs.h >>conftest.$ac_ext
30948 cat >>conftest.$ac_ext <<_ACEOF
30949 /* end confdefs.h. */
30951 #ifdef HAVE_DB_185_H
30952 # include <db_185.h>
30957 #ifndef DB_VERSION_MAJOR
30958 # define DB_VERSION_MAJOR 1
30962 #define NULL ((void*)0)
30969 #if DB_VERSION_MAJOR > 1
30972 int major, minor, patch;
30974 version = db_version( &major, &minor, &patch );
30976 if( major != DB_VERSION_MAJOR ||
30977 minor < DB_VERSION_MINOR )
30979 printf("Berkeley DB version mismatch\n"
30980 "\theader: %s\n\tlibrary: %s\n",
30981 DB_VERSION_STRING, version);
30987 #if DB_VERSION_MAJOR > 2
30988 db_env_create( NULL, 0 );
30989 #elif DB_VERSION_MAJOR > 1
30990 db_appexit( NULL );
30992 (void) dbopen( NULL, 0, 0, 0, NULL);
30999 rm -f conftest.$ac_objext conftest$ac_exeext
31000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31001 (eval $ac_link) 2>conftest.er1
31003 grep -v '^ *+' conftest.er1 >conftest.err
31005 cat conftest.err >&5
31006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31007 (exit $ac_status); } &&
31008 { ac_try='test -z "$ac_c_werror_flag"
31009 || test ! -s conftest.err'
31010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31011 (eval $ac_try) 2>&5
31013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31014 (exit $ac_status); }; } &&
31015 { ac_try='test -s conftest$ac_exeext'
31016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31017 (eval $ac_try) 2>&5
31019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31020 (exit $ac_status); }; }; then
31023 echo "$as_me: failed program was:" >&5
31024 sed 's/^/| /' conftest.$ac_ext >&5
31028 rm -f conftest.err conftest.$ac_objext \
31029 conftest$ac_exeext conftest.$ac_ext
31034 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31035 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31037 if test $ol_cv_db_db_1 = yes ; then
31038 ol_cv_lib_db=-ldb-1
31043 if test $ol_cv_lib_db = no ; then
31044 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31045 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31046 if test "${ol_cv_db_none+set}" = set; then
31047 echo $ECHO_N "(cached) $ECHO_C" >&6
31052 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31054 cat >conftest.$ac_ext <<_ACEOF
31057 cat confdefs.h >>conftest.$ac_ext
31058 cat >>conftest.$ac_ext <<_ACEOF
31059 /* end confdefs.h. */
31061 #ifdef HAVE_DB_185_H
31062 # include <db_185.h>
31067 #ifndef DB_VERSION_MAJOR
31068 # define DB_VERSION_MAJOR 1
31072 #define NULL ((void*)0)
31079 #if DB_VERSION_MAJOR > 1
31082 int major, minor, patch;
31084 version = db_version( &major, &minor, &patch );
31086 if( major != DB_VERSION_MAJOR ||
31087 minor < DB_VERSION_MINOR )
31089 printf("Berkeley DB version mismatch\n"
31090 "\theader: %s\n\tlibrary: %s\n",
31091 DB_VERSION_STRING, version);
31097 #if DB_VERSION_MAJOR > 2
31098 db_env_create( NULL, 0 );
31099 #elif DB_VERSION_MAJOR > 1
31100 db_appexit( NULL );
31102 (void) dbopen( NULL, 0, 0, 0, NULL);
31109 rm -f conftest.$ac_objext conftest$ac_exeext
31110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31111 (eval $ac_link) 2>conftest.er1
31113 grep -v '^ *+' conftest.er1 >conftest.err
31115 cat conftest.err >&5
31116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31117 (exit $ac_status); } &&
31118 { ac_try='test -z "$ac_c_werror_flag"
31119 || test ! -s conftest.err'
31120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31121 (eval $ac_try) 2>&5
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); }; } &&
31125 { ac_try='test -s conftest$ac_exeext'
31126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31127 (eval $ac_try) 2>&5
31129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130 (exit $ac_status); }; }; then
31133 echo "$as_me: failed program was:" >&5
31134 sed 's/^/| /' conftest.$ac_ext >&5
31138 rm -f conftest.err conftest.$ac_objext \
31139 conftest$ac_exeext conftest.$ac_ext
31144 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31145 echo "${ECHO_T}$ol_cv_db_none" >&6
31147 if test $ol_cv_db_none = yes ; then
31153 if test "$ol_cv_lib_db" != no ; then
31154 ol_cv_berkeley_db=yes
31160 ol_cv_berkeley_db=no
31162 for ac_header in db.h
31164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31166 echo "$as_me:$LINENO: checking for $ac_header" >&5
31167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31169 echo $ECHO_N "(cached) $ECHO_C" >&6
31171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31174 # Is the header compilable?
31175 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31177 cat >conftest.$ac_ext <<_ACEOF
31180 cat confdefs.h >>conftest.$ac_ext
31181 cat >>conftest.$ac_ext <<_ACEOF
31182 /* end confdefs.h. */
31183 $ac_includes_default
31184 #include <$ac_header>
31186 rm -f conftest.$ac_objext
31187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31188 (eval $ac_compile) 2>conftest.er1
31190 grep -v '^ *+' conftest.er1 >conftest.err
31192 cat conftest.err >&5
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); } &&
31195 { ac_try='test -z "$ac_c_werror_flag"
31196 || test ! -s conftest.err'
31197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31198 (eval $ac_try) 2>&5
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); }; } &&
31202 { ac_try='test -s conftest.$ac_objext'
31203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31204 (eval $ac_try) 2>&5
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; }; then
31208 ac_header_compiler=yes
31210 echo "$as_me: failed program was:" >&5
31211 sed 's/^/| /' conftest.$ac_ext >&5
31213 ac_header_compiler=no
31215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31217 echo "${ECHO_T}$ac_header_compiler" >&6
31219 # Is the header present?
31220 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31222 cat >conftest.$ac_ext <<_ACEOF
31225 cat confdefs.h >>conftest.$ac_ext
31226 cat >>conftest.$ac_ext <<_ACEOF
31227 /* end confdefs.h. */
31228 #include <$ac_header>
31230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31233 grep -v '^ *+' conftest.er1 >conftest.err
31235 cat conftest.err >&5
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); } >/dev/null; then
31238 if test -s conftest.err; then
31239 ac_cpp_err=$ac_c_preproc_warn_flag
31240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31247 if test -z "$ac_cpp_err"; then
31248 ac_header_preproc=yes
31250 echo "$as_me: failed program was:" >&5
31251 sed 's/^/| /' conftest.$ac_ext >&5
31253 ac_header_preproc=no
31255 rm -f conftest.err conftest.$ac_ext
31256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31257 echo "${ECHO_T}$ac_header_preproc" >&6
31259 # So? What about this header?
31260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31262 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31265 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31266 ac_header_preproc=yes
31269 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31270 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31271 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31272 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31273 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31274 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31275 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31276 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31279 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31280 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31283 ## --------------------------------------------- ##
31284 ## Report this to <http://www.openldap.org/its/> ##
31285 ## --------------------------------------------- ##
31288 sed "s/^/$as_me: WARNING: /" >&2
31291 echo "$as_me:$LINENO: checking for $ac_header" >&5
31292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31294 echo $ECHO_N "(cached) $ECHO_C" >&6
31296 eval "$as_ac_Header=\$ac_header_preproc"
31298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31303 cat >>confdefs.h <<_ACEOF
31304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31311 if test $ac_cv_header_db_h = yes; then
31314 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31315 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31316 if test "${ol_cv_bdb_major+set}" = set; then
31317 echo $ECHO_N "(cached) $ECHO_C" >&6
31321 if test $ol_cv_bdb_major = 0 ; then
31322 cat >conftest.$ac_ext <<_ACEOF
31325 cat confdefs.h >>conftest.$ac_ext
31326 cat >>conftest.$ac_ext <<_ACEOF
31327 /* end confdefs.h. */
31330 #ifndef DB_VERSION_MAJOR
31331 # define DB_VERSION_MAJOR 1
31333 #if DB_VERSION_MAJOR == 4
31338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31339 $EGREP "__db_version" >/dev/null 2>&1; then
31347 if test $ol_cv_bdb_major = 0 ; then
31348 cat >conftest.$ac_ext <<_ACEOF
31351 cat confdefs.h >>conftest.$ac_ext
31352 cat >>conftest.$ac_ext <<_ACEOF
31353 /* end confdefs.h. */
31356 #ifndef DB_VERSION_MAJOR
31357 # define DB_VERSION_MAJOR 1
31359 #if DB_VERSION_MAJOR == 3
31364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31365 $EGREP "__db_version" >/dev/null 2>&1; then
31373 if test $ol_cv_bdb_major = 0 ; then
31374 cat >conftest.$ac_ext <<_ACEOF
31377 cat confdefs.h >>conftest.$ac_ext
31378 cat >>conftest.$ac_ext <<_ACEOF
31379 /* end confdefs.h. */
31382 #ifndef DB_VERSION_MAJOR
31383 # define DB_VERSION_MAJOR 1
31385 #if DB_VERSION_MAJOR == 2
31390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31391 $EGREP "__db_version" >/dev/null 2>&1; then
31399 if test $ol_cv_bdb_major = 0 ; then
31400 cat >conftest.$ac_ext <<_ACEOF
31403 cat confdefs.h >>conftest.$ac_ext
31404 cat >>conftest.$ac_ext <<_ACEOF
31405 /* end confdefs.h. */
31408 #ifndef DB_VERSION_MAJOR
31409 # define DB_VERSION_MAJOR 1
31411 #if DB_VERSION_MAJOR == 1
31416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31417 $EGREP "__db_version" >/dev/null 2>&1; then
31426 if test $ol_cv_bdb_major = 0 ; then
31427 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31428 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31429 { (exit 1); exit 1; }; }
31433 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31434 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31436 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31437 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31438 if test "${ol_cv_bdb_minor+set}" = set; then
31439 echo $ECHO_N "(cached) $ECHO_C" >&6
31443 if test $ol_cv_bdb_minor = 0 ; then
31444 cat >conftest.$ac_ext <<_ACEOF
31447 cat confdefs.h >>conftest.$ac_ext
31448 cat >>conftest.$ac_ext <<_ACEOF
31449 /* end confdefs.h. */
31452 #ifndef DB_VERSION_MINOR
31453 # define DB_VERSION_MINOR 0
31455 #if DB_VERSION_MINOR == 9
31460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31461 $EGREP "__db_version" >/dev/null 2>&1; then
31469 if test $ol_cv_bdb_minor = 0 ; then
31470 cat >conftest.$ac_ext <<_ACEOF
31473 cat confdefs.h >>conftest.$ac_ext
31474 cat >>conftest.$ac_ext <<_ACEOF
31475 /* end confdefs.h. */
31478 #ifndef DB_VERSION_MINOR
31479 # define DB_VERSION_MINOR 0
31481 #if DB_VERSION_MINOR == 8
31486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31487 $EGREP "__db_version" >/dev/null 2>&1; then
31495 if test $ol_cv_bdb_minor = 0 ; then
31496 cat >conftest.$ac_ext <<_ACEOF
31499 cat confdefs.h >>conftest.$ac_ext
31500 cat >>conftest.$ac_ext <<_ACEOF
31501 /* end confdefs.h. */
31504 #ifndef DB_VERSION_MINOR
31505 # define DB_VERSION_MINOR 0
31507 #if DB_VERSION_MINOR == 7
31512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31513 $EGREP "__db_version" >/dev/null 2>&1; then
31521 if test $ol_cv_bdb_minor = 0 ; then
31522 cat >conftest.$ac_ext <<_ACEOF
31525 cat confdefs.h >>conftest.$ac_ext
31526 cat >>conftest.$ac_ext <<_ACEOF
31527 /* end confdefs.h. */
31530 #ifndef DB_VERSION_MINOR
31531 # define DB_VERSION_MINOR 0
31533 #if DB_VERSION_MINOR == 6
31538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31539 $EGREP "__db_version" >/dev/null 2>&1; then
31547 if test $ol_cv_bdb_minor = 0 ; then
31548 cat >conftest.$ac_ext <<_ACEOF
31551 cat confdefs.h >>conftest.$ac_ext
31552 cat >>conftest.$ac_ext <<_ACEOF
31553 /* end confdefs.h. */
31556 #ifndef DB_VERSION_MINOR
31557 # define DB_VERSION_MINOR 0
31559 #if DB_VERSION_MINOR == 5
31564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31565 $EGREP "__db_version" >/dev/null 2>&1; then
31573 if test $ol_cv_bdb_minor = 0 ; then
31574 cat >conftest.$ac_ext <<_ACEOF
31577 cat confdefs.h >>conftest.$ac_ext
31578 cat >>conftest.$ac_ext <<_ACEOF
31579 /* end confdefs.h. */
31582 #ifndef DB_VERSION_MINOR
31583 # define DB_VERSION_MINOR 0
31585 #if DB_VERSION_MINOR == 4
31590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31591 $EGREP "__db_version" >/dev/null 2>&1; then
31599 if test $ol_cv_bdb_minor = 0 ; then
31600 cat >conftest.$ac_ext <<_ACEOF
31603 cat confdefs.h >>conftest.$ac_ext
31604 cat >>conftest.$ac_ext <<_ACEOF
31605 /* end confdefs.h. */
31608 #ifndef DB_VERSION_MINOR
31609 # define DB_VERSION_MINOR 0
31611 #if DB_VERSION_MINOR == 3
31616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31617 $EGREP "__db_version" >/dev/null 2>&1; then
31625 if test $ol_cv_bdb_minor = 0 ; then
31626 cat >conftest.$ac_ext <<_ACEOF
31629 cat confdefs.h >>conftest.$ac_ext
31630 cat >>conftest.$ac_ext <<_ACEOF
31631 /* end confdefs.h. */
31634 #ifndef DB_VERSION_MINOR
31635 # define DB_VERSION_MINOR 0
31637 #if DB_VERSION_MINOR == 2
31642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31643 $EGREP "__db_version" >/dev/null 2>&1; then
31651 if test $ol_cv_bdb_minor = 0 ; then
31652 cat >conftest.$ac_ext <<_ACEOF
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h. */
31660 #ifndef DB_VERSION_MINOR
31661 # define DB_VERSION_MINOR 0
31663 #if DB_VERSION_MINOR == 1
31668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31669 $EGREP "__db_version" >/dev/null 2>&1; then
31679 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31680 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31682 if test $ol_cv_bdb_major = 4 ; then
31683 if test $ol_cv_bdb_minor = 4 ; then
31684 if test $ol_cv_lib_db = no ; then
31685 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31686 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31687 if test "${ol_cv_db_db44+set}" = set; then
31688 echo $ECHO_N "(cached) $ECHO_C" >&6
31693 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31695 cat >conftest.$ac_ext <<_ACEOF
31698 cat confdefs.h >>conftest.$ac_ext
31699 cat >>conftest.$ac_ext <<_ACEOF
31700 /* end confdefs.h. */
31702 #ifdef HAVE_DB_185_H
31703 # include <db_185.h>
31708 #ifndef DB_VERSION_MAJOR
31709 # define DB_VERSION_MAJOR 1
31713 #define NULL ((void*)0)
31720 #if DB_VERSION_MAJOR > 1
31723 int major, minor, patch;
31725 version = db_version( &major, &minor, &patch );
31727 if( major != DB_VERSION_MAJOR ||
31728 minor < DB_VERSION_MINOR )
31730 printf("Berkeley DB version mismatch\n"
31731 "\theader: %s\n\tlibrary: %s\n",
31732 DB_VERSION_STRING, version);
31738 #if DB_VERSION_MAJOR > 2
31739 db_env_create( NULL, 0 );
31740 #elif DB_VERSION_MAJOR > 1
31741 db_appexit( NULL );
31743 (void) dbopen( NULL, 0, 0, 0, NULL);
31750 rm -f conftest.$ac_objext conftest$ac_exeext
31751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31752 (eval $ac_link) 2>conftest.er1
31754 grep -v '^ *+' conftest.er1 >conftest.err
31756 cat conftest.err >&5
31757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758 (exit $ac_status); } &&
31759 { ac_try='test -z "$ac_c_werror_flag"
31760 || test ! -s conftest.err'
31761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31762 (eval $ac_try) 2>&5
31764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31765 (exit $ac_status); }; } &&
31766 { ac_try='test -s conftest$ac_exeext'
31767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31768 (eval $ac_try) 2>&5
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); }; }; then
31774 echo "$as_me: failed program was:" >&5
31775 sed 's/^/| /' conftest.$ac_ext >&5
31779 rm -f conftest.err conftest.$ac_objext \
31780 conftest$ac_exeext conftest.$ac_ext
31785 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31786 echo "${ECHO_T}$ol_cv_db_db44" >&6
31788 if test $ol_cv_db_db44 = yes ; then
31789 ol_cv_lib_db=-ldb44
31793 if test $ol_cv_lib_db = no ; then
31794 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31795 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31796 if test "${ol_cv_db_db_44+set}" = set; then
31797 echo $ECHO_N "(cached) $ECHO_C" >&6
31802 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31804 cat >conftest.$ac_ext <<_ACEOF
31807 cat confdefs.h >>conftest.$ac_ext
31808 cat >>conftest.$ac_ext <<_ACEOF
31809 /* end confdefs.h. */
31811 #ifdef HAVE_DB_185_H
31812 # include <db_185.h>
31817 #ifndef DB_VERSION_MAJOR
31818 # define DB_VERSION_MAJOR 1
31822 #define NULL ((void*)0)
31829 #if DB_VERSION_MAJOR > 1
31832 int major, minor, patch;
31834 version = db_version( &major, &minor, &patch );
31836 if( major != DB_VERSION_MAJOR ||
31837 minor < DB_VERSION_MINOR )
31839 printf("Berkeley DB version mismatch\n"
31840 "\theader: %s\n\tlibrary: %s\n",
31841 DB_VERSION_STRING, version);
31847 #if DB_VERSION_MAJOR > 2
31848 db_env_create( NULL, 0 );
31849 #elif DB_VERSION_MAJOR > 1
31850 db_appexit( NULL );
31852 (void) dbopen( NULL, 0, 0, 0, NULL);
31859 rm -f conftest.$ac_objext conftest$ac_exeext
31860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31861 (eval $ac_link) 2>conftest.er1
31863 grep -v '^ *+' conftest.er1 >conftest.err
31865 cat conftest.err >&5
31866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867 (exit $ac_status); } &&
31868 { ac_try='test -z "$ac_c_werror_flag"
31869 || test ! -s conftest.err'
31870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31871 (eval $ac_try) 2>&5
31873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874 (exit $ac_status); }; } &&
31875 { ac_try='test -s conftest$ac_exeext'
31876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31877 (eval $ac_try) 2>&5
31879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880 (exit $ac_status); }; }; then
31883 echo "$as_me: failed program was:" >&5
31884 sed 's/^/| /' conftest.$ac_ext >&5
31888 rm -f conftest.err conftest.$ac_objext \
31889 conftest$ac_exeext conftest.$ac_ext
31894 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31895 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31897 if test $ol_cv_db_db_44 = yes ; then
31898 ol_cv_lib_db=-ldb-44
31902 if test $ol_cv_lib_db = no ; then
31903 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31904 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31905 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31906 echo $ECHO_N "(cached) $ECHO_C" >&6
31911 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31913 cat >conftest.$ac_ext <<_ACEOF
31916 cat confdefs.h >>conftest.$ac_ext
31917 cat >>conftest.$ac_ext <<_ACEOF
31918 /* end confdefs.h. */
31920 #ifdef HAVE_DB_185_H
31921 # include <db_185.h>
31926 #ifndef DB_VERSION_MAJOR
31927 # define DB_VERSION_MAJOR 1
31931 #define NULL ((void*)0)
31938 #if DB_VERSION_MAJOR > 1
31941 int major, minor, patch;
31943 version = db_version( &major, &minor, &patch );
31945 if( major != DB_VERSION_MAJOR ||
31946 minor < DB_VERSION_MINOR )
31948 printf("Berkeley DB version mismatch\n"
31949 "\theader: %s\n\tlibrary: %s\n",
31950 DB_VERSION_STRING, version);
31956 #if DB_VERSION_MAJOR > 2
31957 db_env_create( NULL, 0 );
31958 #elif DB_VERSION_MAJOR > 1
31959 db_appexit( NULL );
31961 (void) dbopen( NULL, 0, 0, 0, NULL);
31968 rm -f conftest.$ac_objext conftest$ac_exeext
31969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31970 (eval $ac_link) 2>conftest.er1
31972 grep -v '^ *+' conftest.er1 >conftest.err
31974 cat conftest.err >&5
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); } &&
31977 { ac_try='test -z "$ac_c_werror_flag"
31978 || test ! -s conftest.err'
31979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31980 (eval $ac_try) 2>&5
31982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983 (exit $ac_status); }; } &&
31984 { ac_try='test -s conftest$ac_exeext'
31985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31986 (eval $ac_try) 2>&5
31988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989 (exit $ac_status); }; }; then
31990 ol_cv_db_db_4_dot_4=yes
31992 echo "$as_me: failed program was:" >&5
31993 sed 's/^/| /' conftest.$ac_ext >&5
31995 ol_cv_db_db_4_dot_4=no
31997 rm -f conftest.err conftest.$ac_objext \
31998 conftest$ac_exeext conftest.$ac_ext
32003 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
32004 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
32006 if test $ol_cv_db_db_4_dot_4 = yes ; then
32007 ol_cv_lib_db=-ldb-4.4
32011 if test $ol_cv_lib_db = no ; then
32012 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
32013 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
32014 if test "${ol_cv_db_db_4_4+set}" = set; then
32015 echo $ECHO_N "(cached) $ECHO_C" >&6
32020 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32022 cat >conftest.$ac_ext <<_ACEOF
32025 cat confdefs.h >>conftest.$ac_ext
32026 cat >>conftest.$ac_ext <<_ACEOF
32027 /* end confdefs.h. */
32029 #ifdef HAVE_DB_185_H
32030 # include <db_185.h>
32035 #ifndef DB_VERSION_MAJOR
32036 # define DB_VERSION_MAJOR 1
32040 #define NULL ((void*)0)
32047 #if DB_VERSION_MAJOR > 1
32050 int major, minor, patch;
32052 version = db_version( &major, &minor, &patch );
32054 if( major != DB_VERSION_MAJOR ||
32055 minor < DB_VERSION_MINOR )
32057 printf("Berkeley DB version mismatch\n"
32058 "\theader: %s\n\tlibrary: %s\n",
32059 DB_VERSION_STRING, version);
32065 #if DB_VERSION_MAJOR > 2
32066 db_env_create( NULL, 0 );
32067 #elif DB_VERSION_MAJOR > 1
32068 db_appexit( NULL );
32070 (void) dbopen( NULL, 0, 0, 0, NULL);
32077 rm -f conftest.$ac_objext conftest$ac_exeext
32078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32079 (eval $ac_link) 2>conftest.er1
32081 grep -v '^ *+' conftest.er1 >conftest.err
32083 cat conftest.err >&5
32084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085 (exit $ac_status); } &&
32086 { ac_try='test -z "$ac_c_werror_flag"
32087 || test ! -s conftest.err'
32088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32089 (eval $ac_try) 2>&5
32091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092 (exit $ac_status); }; } &&
32093 { ac_try='test -s conftest$ac_exeext'
32094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32095 (eval $ac_try) 2>&5
32097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098 (exit $ac_status); }; }; then
32099 ol_cv_db_db_4_4=yes
32101 echo "$as_me: failed program was:" >&5
32102 sed 's/^/| /' conftest.$ac_ext >&5
32106 rm -f conftest.err conftest.$ac_objext \
32107 conftest$ac_exeext conftest.$ac_ext
32112 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32113 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32115 if test $ol_cv_db_db_4_4 = yes ; then
32116 ol_cv_lib_db=-ldb-4-4
32120 elif test $ol_cv_bdb_minor = 3 ; then
32121 if test $ol_cv_lib_db = no ; then
32122 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32123 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32124 if test "${ol_cv_db_db43+set}" = set; then
32125 echo $ECHO_N "(cached) $ECHO_C" >&6
32130 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32132 cat >conftest.$ac_ext <<_ACEOF
32135 cat confdefs.h >>conftest.$ac_ext
32136 cat >>conftest.$ac_ext <<_ACEOF
32137 /* end confdefs.h. */
32139 #ifdef HAVE_DB_185_H
32140 # include <db_185.h>
32145 #ifndef DB_VERSION_MAJOR
32146 # define DB_VERSION_MAJOR 1
32150 #define NULL ((void*)0)
32157 #if DB_VERSION_MAJOR > 1
32160 int major, minor, patch;
32162 version = db_version( &major, &minor, &patch );
32164 if( major != DB_VERSION_MAJOR ||
32165 minor < DB_VERSION_MINOR )
32167 printf("Berkeley DB version mismatch\n"
32168 "\theader: %s\n\tlibrary: %s\n",
32169 DB_VERSION_STRING, version);
32175 #if DB_VERSION_MAJOR > 2
32176 db_env_create( NULL, 0 );
32177 #elif DB_VERSION_MAJOR > 1
32178 db_appexit( NULL );
32180 (void) dbopen( NULL, 0, 0, 0, NULL);
32187 rm -f conftest.$ac_objext conftest$ac_exeext
32188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32189 (eval $ac_link) 2>conftest.er1
32191 grep -v '^ *+' conftest.er1 >conftest.err
32193 cat conftest.err >&5
32194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195 (exit $ac_status); } &&
32196 { ac_try='test -z "$ac_c_werror_flag"
32197 || test ! -s conftest.err'
32198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32199 (eval $ac_try) 2>&5
32201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202 (exit $ac_status); }; } &&
32203 { ac_try='test -s conftest$ac_exeext'
32204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32205 (eval $ac_try) 2>&5
32207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208 (exit $ac_status); }; }; then
32211 echo "$as_me: failed program was:" >&5
32212 sed 's/^/| /' conftest.$ac_ext >&5
32216 rm -f conftest.err conftest.$ac_objext \
32217 conftest$ac_exeext conftest.$ac_ext
32222 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32223 echo "${ECHO_T}$ol_cv_db_db43" >&6
32225 if test $ol_cv_db_db43 = yes ; then
32226 ol_cv_lib_db=-ldb43
32230 if test $ol_cv_lib_db = no ; then
32231 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32232 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32233 if test "${ol_cv_db_db_43+set}" = set; then
32234 echo $ECHO_N "(cached) $ECHO_C" >&6
32239 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32241 cat >conftest.$ac_ext <<_ACEOF
32244 cat confdefs.h >>conftest.$ac_ext
32245 cat >>conftest.$ac_ext <<_ACEOF
32246 /* end confdefs.h. */
32248 #ifdef HAVE_DB_185_H
32249 # include <db_185.h>
32254 #ifndef DB_VERSION_MAJOR
32255 # define DB_VERSION_MAJOR 1
32259 #define NULL ((void*)0)
32266 #if DB_VERSION_MAJOR > 1
32269 int major, minor, patch;
32271 version = db_version( &major, &minor, &patch );
32273 if( major != DB_VERSION_MAJOR ||
32274 minor < DB_VERSION_MINOR )
32276 printf("Berkeley DB version mismatch\n"
32277 "\theader: %s\n\tlibrary: %s\n",
32278 DB_VERSION_STRING, version);
32284 #if DB_VERSION_MAJOR > 2
32285 db_env_create( NULL, 0 );
32286 #elif DB_VERSION_MAJOR > 1
32287 db_appexit( NULL );
32289 (void) dbopen( NULL, 0, 0, 0, NULL);
32296 rm -f conftest.$ac_objext conftest$ac_exeext
32297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32298 (eval $ac_link) 2>conftest.er1
32300 grep -v '^ *+' conftest.er1 >conftest.err
32302 cat conftest.err >&5
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); } &&
32305 { ac_try='test -z "$ac_c_werror_flag"
32306 || test ! -s conftest.err'
32307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32308 (eval $ac_try) 2>&5
32310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32311 (exit $ac_status); }; } &&
32312 { ac_try='test -s conftest$ac_exeext'
32313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32314 (eval $ac_try) 2>&5
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); }; }; then
32320 echo "$as_me: failed program was:" >&5
32321 sed 's/^/| /' conftest.$ac_ext >&5
32325 rm -f conftest.err conftest.$ac_objext \
32326 conftest$ac_exeext conftest.$ac_ext
32331 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32332 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32334 if test $ol_cv_db_db_43 = yes ; then
32335 ol_cv_lib_db=-ldb-43
32339 if test $ol_cv_lib_db = no ; then
32340 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32341 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32342 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32343 echo $ECHO_N "(cached) $ECHO_C" >&6
32348 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32350 cat >conftest.$ac_ext <<_ACEOF
32353 cat confdefs.h >>conftest.$ac_ext
32354 cat >>conftest.$ac_ext <<_ACEOF
32355 /* end confdefs.h. */
32357 #ifdef HAVE_DB_185_H
32358 # include <db_185.h>
32363 #ifndef DB_VERSION_MAJOR
32364 # define DB_VERSION_MAJOR 1
32368 #define NULL ((void*)0)
32375 #if DB_VERSION_MAJOR > 1
32378 int major, minor, patch;
32380 version = db_version( &major, &minor, &patch );
32382 if( major != DB_VERSION_MAJOR ||
32383 minor < DB_VERSION_MINOR )
32385 printf("Berkeley DB version mismatch\n"
32386 "\theader: %s\n\tlibrary: %s\n",
32387 DB_VERSION_STRING, version);
32393 #if DB_VERSION_MAJOR > 2
32394 db_env_create( NULL, 0 );
32395 #elif DB_VERSION_MAJOR > 1
32396 db_appexit( NULL );
32398 (void) dbopen( NULL, 0, 0, 0, NULL);
32405 rm -f conftest.$ac_objext conftest$ac_exeext
32406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32407 (eval $ac_link) 2>conftest.er1
32409 grep -v '^ *+' conftest.er1 >conftest.err
32411 cat conftest.err >&5
32412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413 (exit $ac_status); } &&
32414 { ac_try='test -z "$ac_c_werror_flag"
32415 || test ! -s conftest.err'
32416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32417 (eval $ac_try) 2>&5
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); }; } &&
32421 { ac_try='test -s conftest$ac_exeext'
32422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32423 (eval $ac_try) 2>&5
32425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426 (exit $ac_status); }; }; then
32427 ol_cv_db_db_4_dot_3=yes
32429 echo "$as_me: failed program was:" >&5
32430 sed 's/^/| /' conftest.$ac_ext >&5
32432 ol_cv_db_db_4_dot_3=no
32434 rm -f conftest.err conftest.$ac_objext \
32435 conftest$ac_exeext conftest.$ac_ext
32440 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32441 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32443 if test $ol_cv_db_db_4_dot_3 = yes ; then
32444 ol_cv_lib_db=-ldb-4.3
32448 if test $ol_cv_lib_db = no ; then
32449 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32450 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32451 if test "${ol_cv_db_db_4_3+set}" = set; then
32452 echo $ECHO_N "(cached) $ECHO_C" >&6
32457 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32459 cat >conftest.$ac_ext <<_ACEOF
32462 cat confdefs.h >>conftest.$ac_ext
32463 cat >>conftest.$ac_ext <<_ACEOF
32464 /* end confdefs.h. */
32466 #ifdef HAVE_DB_185_H
32467 # include <db_185.h>
32472 #ifndef DB_VERSION_MAJOR
32473 # define DB_VERSION_MAJOR 1
32477 #define NULL ((void*)0)
32484 #if DB_VERSION_MAJOR > 1
32487 int major, minor, patch;
32489 version = db_version( &major, &minor, &patch );
32491 if( major != DB_VERSION_MAJOR ||
32492 minor < DB_VERSION_MINOR )
32494 printf("Berkeley DB version mismatch\n"
32495 "\theader: %s\n\tlibrary: %s\n",
32496 DB_VERSION_STRING, version);
32502 #if DB_VERSION_MAJOR > 2
32503 db_env_create( NULL, 0 );
32504 #elif DB_VERSION_MAJOR > 1
32505 db_appexit( NULL );
32507 (void) dbopen( NULL, 0, 0, 0, NULL);
32514 rm -f conftest.$ac_objext conftest$ac_exeext
32515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32516 (eval $ac_link) 2>conftest.er1
32518 grep -v '^ *+' conftest.er1 >conftest.err
32520 cat conftest.err >&5
32521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522 (exit $ac_status); } &&
32523 { ac_try='test -z "$ac_c_werror_flag"
32524 || test ! -s conftest.err'
32525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32526 (eval $ac_try) 2>&5
32528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529 (exit $ac_status); }; } &&
32530 { ac_try='test -s conftest$ac_exeext'
32531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32532 (eval $ac_try) 2>&5
32534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); }; }; then
32536 ol_cv_db_db_4_3=yes
32538 echo "$as_me: failed program was:" >&5
32539 sed 's/^/| /' conftest.$ac_ext >&5
32543 rm -f conftest.err conftest.$ac_objext \
32544 conftest$ac_exeext conftest.$ac_ext
32549 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32550 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32552 if test $ol_cv_db_db_4_3 = yes ; then
32553 ol_cv_lib_db=-ldb-4-3
32557 elif test $ol_cv_bdb_minor = 2 ; then
32558 if test $ol_cv_lib_db = no ; then
32559 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32560 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32561 if test "${ol_cv_db_db42+set}" = set; then
32562 echo $ECHO_N "(cached) $ECHO_C" >&6
32567 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32569 cat >conftest.$ac_ext <<_ACEOF
32572 cat confdefs.h >>conftest.$ac_ext
32573 cat >>conftest.$ac_ext <<_ACEOF
32574 /* end confdefs.h. */
32576 #ifdef HAVE_DB_185_H
32577 # include <db_185.h>
32582 #ifndef DB_VERSION_MAJOR
32583 # define DB_VERSION_MAJOR 1
32587 #define NULL ((void*)0)
32594 #if DB_VERSION_MAJOR > 1
32597 int major, minor, patch;
32599 version = db_version( &major, &minor, &patch );
32601 if( major != DB_VERSION_MAJOR ||
32602 minor < DB_VERSION_MINOR )
32604 printf("Berkeley DB version mismatch\n"
32605 "\theader: %s\n\tlibrary: %s\n",
32606 DB_VERSION_STRING, version);
32612 #if DB_VERSION_MAJOR > 2
32613 db_env_create( NULL, 0 );
32614 #elif DB_VERSION_MAJOR > 1
32615 db_appexit( NULL );
32617 (void) dbopen( NULL, 0, 0, 0, NULL);
32624 rm -f conftest.$ac_objext conftest$ac_exeext
32625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32626 (eval $ac_link) 2>conftest.er1
32628 grep -v '^ *+' conftest.er1 >conftest.err
32630 cat conftest.err >&5
32631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632 (exit $ac_status); } &&
32633 { ac_try='test -z "$ac_c_werror_flag"
32634 || test ! -s conftest.err'
32635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32636 (eval $ac_try) 2>&5
32638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639 (exit $ac_status); }; } &&
32640 { ac_try='test -s conftest$ac_exeext'
32641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32642 (eval $ac_try) 2>&5
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; }; then
32648 echo "$as_me: failed program was:" >&5
32649 sed 's/^/| /' conftest.$ac_ext >&5
32653 rm -f conftest.err conftest.$ac_objext \
32654 conftest$ac_exeext conftest.$ac_ext
32659 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32660 echo "${ECHO_T}$ol_cv_db_db42" >&6
32662 if test $ol_cv_db_db42 = yes ; then
32663 ol_cv_lib_db=-ldb42
32667 if test $ol_cv_lib_db = no ; then
32668 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32669 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32670 if test "${ol_cv_db_db_42+set}" = set; then
32671 echo $ECHO_N "(cached) $ECHO_C" >&6
32676 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32678 cat >conftest.$ac_ext <<_ACEOF
32681 cat confdefs.h >>conftest.$ac_ext
32682 cat >>conftest.$ac_ext <<_ACEOF
32683 /* end confdefs.h. */
32685 #ifdef HAVE_DB_185_H
32686 # include <db_185.h>
32691 #ifndef DB_VERSION_MAJOR
32692 # define DB_VERSION_MAJOR 1
32696 #define NULL ((void*)0)
32703 #if DB_VERSION_MAJOR > 1
32706 int major, minor, patch;
32708 version = db_version( &major, &minor, &patch );
32710 if( major != DB_VERSION_MAJOR ||
32711 minor < DB_VERSION_MINOR )
32713 printf("Berkeley DB version mismatch\n"
32714 "\theader: %s\n\tlibrary: %s\n",
32715 DB_VERSION_STRING, version);
32721 #if DB_VERSION_MAJOR > 2
32722 db_env_create( NULL, 0 );
32723 #elif DB_VERSION_MAJOR > 1
32724 db_appexit( NULL );
32726 (void) dbopen( NULL, 0, 0, 0, NULL);
32733 rm -f conftest.$ac_objext conftest$ac_exeext
32734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32735 (eval $ac_link) 2>conftest.er1
32737 grep -v '^ *+' conftest.er1 >conftest.err
32739 cat conftest.err >&5
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); } &&
32742 { ac_try='test -z "$ac_c_werror_flag"
32743 || test ! -s conftest.err'
32744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32745 (eval $ac_try) 2>&5
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); }; } &&
32749 { ac_try='test -s conftest$ac_exeext'
32750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32751 (eval $ac_try) 2>&5
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); }; }; then
32757 echo "$as_me: failed program was:" >&5
32758 sed 's/^/| /' conftest.$ac_ext >&5
32762 rm -f conftest.err conftest.$ac_objext \
32763 conftest$ac_exeext conftest.$ac_ext
32768 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32769 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32771 if test $ol_cv_db_db_42 = yes ; then
32772 ol_cv_lib_db=-ldb-42
32776 if test $ol_cv_lib_db = no ; then
32777 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32778 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32779 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32780 echo $ECHO_N "(cached) $ECHO_C" >&6
32785 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32787 cat >conftest.$ac_ext <<_ACEOF
32790 cat confdefs.h >>conftest.$ac_ext
32791 cat >>conftest.$ac_ext <<_ACEOF
32792 /* end confdefs.h. */
32794 #ifdef HAVE_DB_185_H
32795 # include <db_185.h>
32800 #ifndef DB_VERSION_MAJOR
32801 # define DB_VERSION_MAJOR 1
32805 #define NULL ((void*)0)
32812 #if DB_VERSION_MAJOR > 1
32815 int major, minor, patch;
32817 version = db_version( &major, &minor, &patch );
32819 if( major != DB_VERSION_MAJOR ||
32820 minor < DB_VERSION_MINOR )
32822 printf("Berkeley DB version mismatch\n"
32823 "\theader: %s\n\tlibrary: %s\n",
32824 DB_VERSION_STRING, version);
32830 #if DB_VERSION_MAJOR > 2
32831 db_env_create( NULL, 0 );
32832 #elif DB_VERSION_MAJOR > 1
32833 db_appexit( NULL );
32835 (void) dbopen( NULL, 0, 0, 0, NULL);
32842 rm -f conftest.$ac_objext conftest$ac_exeext
32843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32844 (eval $ac_link) 2>conftest.er1
32846 grep -v '^ *+' conftest.er1 >conftest.err
32848 cat conftest.err >&5
32849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850 (exit $ac_status); } &&
32851 { ac_try='test -z "$ac_c_werror_flag"
32852 || test ! -s conftest.err'
32853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32854 (eval $ac_try) 2>&5
32856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857 (exit $ac_status); }; } &&
32858 { ac_try='test -s conftest$ac_exeext'
32859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32860 (eval $ac_try) 2>&5
32862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863 (exit $ac_status); }; }; then
32864 ol_cv_db_db_4_dot_2=yes
32866 echo "$as_me: failed program was:" >&5
32867 sed 's/^/| /' conftest.$ac_ext >&5
32869 ol_cv_db_db_4_dot_2=no
32871 rm -f conftest.err conftest.$ac_objext \
32872 conftest$ac_exeext conftest.$ac_ext
32877 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32878 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32880 if test $ol_cv_db_db_4_dot_2 = yes ; then
32881 ol_cv_lib_db=-ldb-4.2
32885 if test $ol_cv_lib_db = no ; then
32886 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32887 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32888 if test "${ol_cv_db_db_4_2+set}" = set; then
32889 echo $ECHO_N "(cached) $ECHO_C" >&6
32894 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32896 cat >conftest.$ac_ext <<_ACEOF
32899 cat confdefs.h >>conftest.$ac_ext
32900 cat >>conftest.$ac_ext <<_ACEOF
32901 /* end confdefs.h. */
32903 #ifdef HAVE_DB_185_H
32904 # include <db_185.h>
32909 #ifndef DB_VERSION_MAJOR
32910 # define DB_VERSION_MAJOR 1
32914 #define NULL ((void*)0)
32921 #if DB_VERSION_MAJOR > 1
32924 int major, minor, patch;
32926 version = db_version( &major, &minor, &patch );
32928 if( major != DB_VERSION_MAJOR ||
32929 minor < DB_VERSION_MINOR )
32931 printf("Berkeley DB version mismatch\n"
32932 "\theader: %s\n\tlibrary: %s\n",
32933 DB_VERSION_STRING, version);
32939 #if DB_VERSION_MAJOR > 2
32940 db_env_create( NULL, 0 );
32941 #elif DB_VERSION_MAJOR > 1
32942 db_appexit( NULL );
32944 (void) dbopen( NULL, 0, 0, 0, NULL);
32951 rm -f conftest.$ac_objext conftest$ac_exeext
32952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32953 (eval $ac_link) 2>conftest.er1
32955 grep -v '^ *+' conftest.er1 >conftest.err
32957 cat conftest.err >&5
32958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32959 (exit $ac_status); } &&
32960 { ac_try='test -z "$ac_c_werror_flag"
32961 || test ! -s conftest.err'
32962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32963 (eval $ac_try) 2>&5
32965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966 (exit $ac_status); }; } &&
32967 { ac_try='test -s conftest$ac_exeext'
32968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32969 (eval $ac_try) 2>&5
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); }; }; then
32973 ol_cv_db_db_4_2=yes
32975 echo "$as_me: failed program was:" >&5
32976 sed 's/^/| /' conftest.$ac_ext >&5
32980 rm -f conftest.err conftest.$ac_objext \
32981 conftest$ac_exeext conftest.$ac_ext
32986 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32987 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
32989 if test $ol_cv_db_db_4_2 = yes ; then
32990 ol_cv_lib_db=-ldb-4-2
32994 elif test $ol_cv_bdb_minor = 1 ; then
32995 if test $ol_cv_lib_db = no ; then
32996 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32997 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
32998 if test "${ol_cv_db_db41+set}" = set; then
32999 echo $ECHO_N "(cached) $ECHO_C" >&6
33004 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33006 cat >conftest.$ac_ext <<_ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h. */
33013 #ifdef HAVE_DB_185_H
33014 # include <db_185.h>
33019 #ifndef DB_VERSION_MAJOR
33020 # define DB_VERSION_MAJOR 1
33024 #define NULL ((void*)0)
33031 #if DB_VERSION_MAJOR > 1
33034 int major, minor, patch;
33036 version = db_version( &major, &minor, &patch );
33038 if( major != DB_VERSION_MAJOR ||
33039 minor < DB_VERSION_MINOR )
33041 printf("Berkeley DB version mismatch\n"
33042 "\theader: %s\n\tlibrary: %s\n",
33043 DB_VERSION_STRING, version);
33049 #if DB_VERSION_MAJOR > 2
33050 db_env_create( NULL, 0 );
33051 #elif DB_VERSION_MAJOR > 1
33052 db_appexit( NULL );
33054 (void) dbopen( NULL, 0, 0, 0, NULL);
33061 rm -f conftest.$ac_objext conftest$ac_exeext
33062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33063 (eval $ac_link) 2>conftest.er1
33065 grep -v '^ *+' conftest.er1 >conftest.err
33067 cat conftest.err >&5
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); } &&
33070 { ac_try='test -z "$ac_c_werror_flag"
33071 || test ! -s conftest.err'
33072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33073 (eval $ac_try) 2>&5
33075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076 (exit $ac_status); }; } &&
33077 { ac_try='test -s conftest$ac_exeext'
33078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33079 (eval $ac_try) 2>&5
33081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082 (exit $ac_status); }; }; then
33085 echo "$as_me: failed program was:" >&5
33086 sed 's/^/| /' conftest.$ac_ext >&5
33090 rm -f conftest.err conftest.$ac_objext \
33091 conftest$ac_exeext conftest.$ac_ext
33096 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33097 echo "${ECHO_T}$ol_cv_db_db41" >&6
33099 if test $ol_cv_db_db41 = yes ; then
33100 ol_cv_lib_db=-ldb41
33104 if test $ol_cv_lib_db = no ; then
33105 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33106 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33107 if test "${ol_cv_db_db_41+set}" = set; then
33108 echo $ECHO_N "(cached) $ECHO_C" >&6
33113 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33115 cat >conftest.$ac_ext <<_ACEOF
33118 cat confdefs.h >>conftest.$ac_ext
33119 cat >>conftest.$ac_ext <<_ACEOF
33120 /* end confdefs.h. */
33122 #ifdef HAVE_DB_185_H
33123 # include <db_185.h>
33128 #ifndef DB_VERSION_MAJOR
33129 # define DB_VERSION_MAJOR 1
33133 #define NULL ((void*)0)
33140 #if DB_VERSION_MAJOR > 1
33143 int major, minor, patch;
33145 version = db_version( &major, &minor, &patch );
33147 if( major != DB_VERSION_MAJOR ||
33148 minor < DB_VERSION_MINOR )
33150 printf("Berkeley DB version mismatch\n"
33151 "\theader: %s\n\tlibrary: %s\n",
33152 DB_VERSION_STRING, version);
33158 #if DB_VERSION_MAJOR > 2
33159 db_env_create( NULL, 0 );
33160 #elif DB_VERSION_MAJOR > 1
33161 db_appexit( NULL );
33163 (void) dbopen( NULL, 0, 0, 0, NULL);
33170 rm -f conftest.$ac_objext conftest$ac_exeext
33171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33172 (eval $ac_link) 2>conftest.er1
33174 grep -v '^ *+' conftest.er1 >conftest.err
33176 cat conftest.err >&5
33177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33178 (exit $ac_status); } &&
33179 { ac_try='test -z "$ac_c_werror_flag"
33180 || test ! -s conftest.err'
33181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33182 (eval $ac_try) 2>&5
33184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); }; } &&
33186 { ac_try='test -s conftest$ac_exeext'
33187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33188 (eval $ac_try) 2>&5
33190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33191 (exit $ac_status); }; }; then
33194 echo "$as_me: failed program was:" >&5
33195 sed 's/^/| /' conftest.$ac_ext >&5
33199 rm -f conftest.err conftest.$ac_objext \
33200 conftest$ac_exeext conftest.$ac_ext
33205 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33206 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33208 if test $ol_cv_db_db_41 = yes ; then
33209 ol_cv_lib_db=-ldb-41
33213 if test $ol_cv_lib_db = no ; then
33214 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33215 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33216 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33217 echo $ECHO_N "(cached) $ECHO_C" >&6
33222 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33224 cat >conftest.$ac_ext <<_ACEOF
33227 cat confdefs.h >>conftest.$ac_ext
33228 cat >>conftest.$ac_ext <<_ACEOF
33229 /* end confdefs.h. */
33231 #ifdef HAVE_DB_185_H
33232 # include <db_185.h>
33237 #ifndef DB_VERSION_MAJOR
33238 # define DB_VERSION_MAJOR 1
33242 #define NULL ((void*)0)
33249 #if DB_VERSION_MAJOR > 1
33252 int major, minor, patch;
33254 version = db_version( &major, &minor, &patch );
33256 if( major != DB_VERSION_MAJOR ||
33257 minor < DB_VERSION_MINOR )
33259 printf("Berkeley DB version mismatch\n"
33260 "\theader: %s\n\tlibrary: %s\n",
33261 DB_VERSION_STRING, version);
33267 #if DB_VERSION_MAJOR > 2
33268 db_env_create( NULL, 0 );
33269 #elif DB_VERSION_MAJOR > 1
33270 db_appexit( NULL );
33272 (void) dbopen( NULL, 0, 0, 0, NULL);
33279 rm -f conftest.$ac_objext conftest$ac_exeext
33280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33281 (eval $ac_link) 2>conftest.er1
33283 grep -v '^ *+' conftest.er1 >conftest.err
33285 cat conftest.err >&5
33286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 (exit $ac_status); } &&
33288 { ac_try='test -z "$ac_c_werror_flag"
33289 || test ! -s conftest.err'
33290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33291 (eval $ac_try) 2>&5
33293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33294 (exit $ac_status); }; } &&
33295 { ac_try='test -s conftest$ac_exeext'
33296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33297 (eval $ac_try) 2>&5
33299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300 (exit $ac_status); }; }; then
33301 ol_cv_db_db_4_dot_1=yes
33303 echo "$as_me: failed program was:" >&5
33304 sed 's/^/| /' conftest.$ac_ext >&5
33306 ol_cv_db_db_4_dot_1=no
33308 rm -f conftest.err conftest.$ac_objext \
33309 conftest$ac_exeext conftest.$ac_ext
33314 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33315 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33317 if test $ol_cv_db_db_4_dot_1 = yes ; then
33318 ol_cv_lib_db=-ldb-4.1
33322 if test $ol_cv_lib_db = no ; then
33323 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33324 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33325 if test "${ol_cv_db_db_4_1+set}" = set; then
33326 echo $ECHO_N "(cached) $ECHO_C" >&6
33331 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33333 cat >conftest.$ac_ext <<_ACEOF
33336 cat confdefs.h >>conftest.$ac_ext
33337 cat >>conftest.$ac_ext <<_ACEOF
33338 /* end confdefs.h. */
33340 #ifdef HAVE_DB_185_H
33341 # include <db_185.h>
33346 #ifndef DB_VERSION_MAJOR
33347 # define DB_VERSION_MAJOR 1
33351 #define NULL ((void*)0)
33358 #if DB_VERSION_MAJOR > 1
33361 int major, minor, patch;
33363 version = db_version( &major, &minor, &patch );
33365 if( major != DB_VERSION_MAJOR ||
33366 minor < DB_VERSION_MINOR )
33368 printf("Berkeley DB version mismatch\n"
33369 "\theader: %s\n\tlibrary: %s\n",
33370 DB_VERSION_STRING, version);
33376 #if DB_VERSION_MAJOR > 2
33377 db_env_create( NULL, 0 );
33378 #elif DB_VERSION_MAJOR > 1
33379 db_appexit( NULL );
33381 (void) dbopen( NULL, 0, 0, 0, NULL);
33388 rm -f conftest.$ac_objext conftest$ac_exeext
33389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33390 (eval $ac_link) 2>conftest.er1
33392 grep -v '^ *+' conftest.er1 >conftest.err
33394 cat conftest.err >&5
33395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); } &&
33397 { ac_try='test -z "$ac_c_werror_flag"
33398 || test ! -s conftest.err'
33399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33400 (eval $ac_try) 2>&5
33402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403 (exit $ac_status); }; } &&
33404 { ac_try='test -s conftest$ac_exeext'
33405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33406 (eval $ac_try) 2>&5
33408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); }; }; then
33410 ol_cv_db_db_4_1=yes
33412 echo "$as_me: failed program was:" >&5
33413 sed 's/^/| /' conftest.$ac_ext >&5
33417 rm -f conftest.err conftest.$ac_objext \
33418 conftest$ac_exeext conftest.$ac_ext
33423 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33424 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33426 if test $ol_cv_db_db_4_1 = yes ; then
33427 ol_cv_lib_db=-ldb-4-1
33432 if test $ol_cv_lib_db = no ; then
33433 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33434 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33435 if test "${ol_cv_db_db_4+set}" = set; then
33436 echo $ECHO_N "(cached) $ECHO_C" >&6
33441 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33443 cat >conftest.$ac_ext <<_ACEOF
33446 cat confdefs.h >>conftest.$ac_ext
33447 cat >>conftest.$ac_ext <<_ACEOF
33448 /* end confdefs.h. */
33450 #ifdef HAVE_DB_185_H
33451 # include <db_185.h>
33456 #ifndef DB_VERSION_MAJOR
33457 # define DB_VERSION_MAJOR 1
33461 #define NULL ((void*)0)
33468 #if DB_VERSION_MAJOR > 1
33471 int major, minor, patch;
33473 version = db_version( &major, &minor, &patch );
33475 if( major != DB_VERSION_MAJOR ||
33476 minor < DB_VERSION_MINOR )
33478 printf("Berkeley DB version mismatch\n"
33479 "\theader: %s\n\tlibrary: %s\n",
33480 DB_VERSION_STRING, version);
33486 #if DB_VERSION_MAJOR > 2
33487 db_env_create( NULL, 0 );
33488 #elif DB_VERSION_MAJOR > 1
33489 db_appexit( NULL );
33491 (void) dbopen( NULL, 0, 0, 0, NULL);
33498 rm -f conftest.$ac_objext conftest$ac_exeext
33499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33500 (eval $ac_link) 2>conftest.er1
33502 grep -v '^ *+' conftest.er1 >conftest.err
33504 cat conftest.err >&5
33505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33506 (exit $ac_status); } &&
33507 { ac_try='test -z "$ac_c_werror_flag"
33508 || test ! -s conftest.err'
33509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33510 (eval $ac_try) 2>&5
33512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33513 (exit $ac_status); }; } &&
33514 { ac_try='test -s conftest$ac_exeext'
33515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33516 (eval $ac_try) 2>&5
33518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33519 (exit $ac_status); }; }; then
33522 echo "$as_me: failed program was:" >&5
33523 sed 's/^/| /' conftest.$ac_ext >&5
33527 rm -f conftest.err conftest.$ac_objext \
33528 conftest$ac_exeext conftest.$ac_ext
33533 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33534 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33536 if test $ol_cv_db_db_4 = yes ; then
33537 ol_cv_lib_db=-ldb-4
33541 if test $ol_cv_lib_db = no ; then
33542 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33543 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33544 if test "${ol_cv_db_db4+set}" = set; then
33545 echo $ECHO_N "(cached) $ECHO_C" >&6
33550 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33552 cat >conftest.$ac_ext <<_ACEOF
33555 cat confdefs.h >>conftest.$ac_ext
33556 cat >>conftest.$ac_ext <<_ACEOF
33557 /* end confdefs.h. */
33559 #ifdef HAVE_DB_185_H
33560 # include <db_185.h>
33565 #ifndef DB_VERSION_MAJOR
33566 # define DB_VERSION_MAJOR 1
33570 #define NULL ((void*)0)
33577 #if DB_VERSION_MAJOR > 1
33580 int major, minor, patch;
33582 version = db_version( &major, &minor, &patch );
33584 if( major != DB_VERSION_MAJOR ||
33585 minor < DB_VERSION_MINOR )
33587 printf("Berkeley DB version mismatch\n"
33588 "\theader: %s\n\tlibrary: %s\n",
33589 DB_VERSION_STRING, version);
33595 #if DB_VERSION_MAJOR > 2
33596 db_env_create( NULL, 0 );
33597 #elif DB_VERSION_MAJOR > 1
33598 db_appexit( NULL );
33600 (void) dbopen( NULL, 0, 0, 0, NULL);
33607 rm -f conftest.$ac_objext conftest$ac_exeext
33608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33609 (eval $ac_link) 2>conftest.er1
33611 grep -v '^ *+' conftest.er1 >conftest.err
33613 cat conftest.err >&5
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); } &&
33616 { ac_try='test -z "$ac_c_werror_flag"
33617 || test ! -s conftest.err'
33618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33619 (eval $ac_try) 2>&5
33621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622 (exit $ac_status); }; } &&
33623 { ac_try='test -s conftest$ac_exeext'
33624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33625 (eval $ac_try) 2>&5
33627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628 (exit $ac_status); }; }; then
33631 echo "$as_me: failed program was:" >&5
33632 sed 's/^/| /' conftest.$ac_ext >&5
33636 rm -f conftest.err conftest.$ac_objext \
33637 conftest$ac_exeext conftest.$ac_ext
33642 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33643 echo "${ECHO_T}$ol_cv_db_db4" >&6
33645 if test $ol_cv_db_db4 = yes ; then
33650 if test $ol_cv_lib_db = no ; then
33651 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33652 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33653 if test "${ol_cv_db_db+set}" = set; then
33654 echo $ECHO_N "(cached) $ECHO_C" >&6
33659 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33661 cat >conftest.$ac_ext <<_ACEOF
33664 cat confdefs.h >>conftest.$ac_ext
33665 cat >>conftest.$ac_ext <<_ACEOF
33666 /* end confdefs.h. */
33668 #ifdef HAVE_DB_185_H
33669 # include <db_185.h>
33674 #ifndef DB_VERSION_MAJOR
33675 # define DB_VERSION_MAJOR 1
33679 #define NULL ((void*)0)
33686 #if DB_VERSION_MAJOR > 1
33689 int major, minor, patch;
33691 version = db_version( &major, &minor, &patch );
33693 if( major != DB_VERSION_MAJOR ||
33694 minor < DB_VERSION_MINOR )
33696 printf("Berkeley DB version mismatch\n"
33697 "\theader: %s\n\tlibrary: %s\n",
33698 DB_VERSION_STRING, version);
33704 #if DB_VERSION_MAJOR > 2
33705 db_env_create( NULL, 0 );
33706 #elif DB_VERSION_MAJOR > 1
33707 db_appexit( NULL );
33709 (void) dbopen( NULL, 0, 0, 0, NULL);
33716 rm -f conftest.$ac_objext conftest$ac_exeext
33717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33718 (eval $ac_link) 2>conftest.er1
33720 grep -v '^ *+' conftest.er1 >conftest.err
33722 cat conftest.err >&5
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); } &&
33725 { ac_try='test -z "$ac_c_werror_flag"
33726 || test ! -s conftest.err'
33727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33728 (eval $ac_try) 2>&5
33730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); }; } &&
33732 { ac_try='test -s conftest$ac_exeext'
33733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33734 (eval $ac_try) 2>&5
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); }; }; then
33740 echo "$as_me: failed program was:" >&5
33741 sed 's/^/| /' conftest.$ac_ext >&5
33745 rm -f conftest.err conftest.$ac_objext \
33746 conftest$ac_exeext conftest.$ac_ext
33751 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33752 echo "${ECHO_T}$ol_cv_db_db" >&6
33754 if test $ol_cv_db_db = yes ; then
33760 elif test $ol_cv_bdb_major = 3 ; then
33761 if test $ol_cv_lib_db = no ; then
33762 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33763 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33764 if test "${ol_cv_db_db3+set}" = set; then
33765 echo $ECHO_N "(cached) $ECHO_C" >&6
33770 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33772 cat >conftest.$ac_ext <<_ACEOF
33775 cat confdefs.h >>conftest.$ac_ext
33776 cat >>conftest.$ac_ext <<_ACEOF
33777 /* end confdefs.h. */
33779 #ifdef HAVE_DB_185_H
33780 # include <db_185.h>
33785 #ifndef DB_VERSION_MAJOR
33786 # define DB_VERSION_MAJOR 1
33790 #define NULL ((void*)0)
33797 #if DB_VERSION_MAJOR > 1
33800 int major, minor, patch;
33802 version = db_version( &major, &minor, &patch );
33804 if( major != DB_VERSION_MAJOR ||
33805 minor < DB_VERSION_MINOR )
33807 printf("Berkeley DB version mismatch\n"
33808 "\theader: %s\n\tlibrary: %s\n",
33809 DB_VERSION_STRING, version);
33815 #if DB_VERSION_MAJOR > 2
33816 db_env_create( NULL, 0 );
33817 #elif DB_VERSION_MAJOR > 1
33818 db_appexit( NULL );
33820 (void) dbopen( NULL, 0, 0, 0, NULL);
33827 rm -f conftest.$ac_objext conftest$ac_exeext
33828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33829 (eval $ac_link) 2>conftest.er1
33831 grep -v '^ *+' conftest.er1 >conftest.err
33833 cat conftest.err >&5
33834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835 (exit $ac_status); } &&
33836 { ac_try='test -z "$ac_c_werror_flag"
33837 || test ! -s conftest.err'
33838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33839 (eval $ac_try) 2>&5
33841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842 (exit $ac_status); }; } &&
33843 { ac_try='test -s conftest$ac_exeext'
33844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33845 (eval $ac_try) 2>&5
33847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33848 (exit $ac_status); }; }; then
33851 echo "$as_me: failed program was:" >&5
33852 sed 's/^/| /' conftest.$ac_ext >&5
33856 rm -f conftest.err conftest.$ac_objext \
33857 conftest$ac_exeext conftest.$ac_ext
33862 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33863 echo "${ECHO_T}$ol_cv_db_db3" >&6
33865 if test $ol_cv_db_db3 = yes ; then
33870 if test $ol_cv_lib_db = no ; then
33871 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33872 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33873 if test "${ol_cv_db_db_3+set}" = set; then
33874 echo $ECHO_N "(cached) $ECHO_C" >&6
33879 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33881 cat >conftest.$ac_ext <<_ACEOF
33884 cat confdefs.h >>conftest.$ac_ext
33885 cat >>conftest.$ac_ext <<_ACEOF
33886 /* end confdefs.h. */
33888 #ifdef HAVE_DB_185_H
33889 # include <db_185.h>
33894 #ifndef DB_VERSION_MAJOR
33895 # define DB_VERSION_MAJOR 1
33899 #define NULL ((void*)0)
33906 #if DB_VERSION_MAJOR > 1
33909 int major, minor, patch;
33911 version = db_version( &major, &minor, &patch );
33913 if( major != DB_VERSION_MAJOR ||
33914 minor < DB_VERSION_MINOR )
33916 printf("Berkeley DB version mismatch\n"
33917 "\theader: %s\n\tlibrary: %s\n",
33918 DB_VERSION_STRING, version);
33924 #if DB_VERSION_MAJOR > 2
33925 db_env_create( NULL, 0 );
33926 #elif DB_VERSION_MAJOR > 1
33927 db_appexit( NULL );
33929 (void) dbopen( NULL, 0, 0, 0, NULL);
33936 rm -f conftest.$ac_objext conftest$ac_exeext
33937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33938 (eval $ac_link) 2>conftest.er1
33940 grep -v '^ *+' conftest.er1 >conftest.err
33942 cat conftest.err >&5
33943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33944 (exit $ac_status); } &&
33945 { ac_try='test -z "$ac_c_werror_flag"
33946 || test ! -s conftest.err'
33947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33948 (eval $ac_try) 2>&5
33950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951 (exit $ac_status); }; } &&
33952 { ac_try='test -s conftest$ac_exeext'
33953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33954 (eval $ac_try) 2>&5
33956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957 (exit $ac_status); }; }; then
33960 echo "$as_me: failed program was:" >&5
33961 sed 's/^/| /' conftest.$ac_ext >&5
33965 rm -f conftest.err conftest.$ac_objext \
33966 conftest$ac_exeext conftest.$ac_ext
33971 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33972 echo "${ECHO_T}$ol_cv_db_db_3" >&6
33974 if test $ol_cv_db_db_3 = yes ; then
33975 ol_cv_lib_db=-ldb-3
33980 elif test $ol_cv_bdb_major = 2 ; then
33981 if test $ol_cv_lib_db = no ; then
33982 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33983 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
33984 if test "${ol_cv_db_db2+set}" = set; then
33985 echo $ECHO_N "(cached) $ECHO_C" >&6
33990 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33992 cat >conftest.$ac_ext <<_ACEOF
33995 cat confdefs.h >>conftest.$ac_ext
33996 cat >>conftest.$ac_ext <<_ACEOF
33997 /* end confdefs.h. */
33999 #ifdef HAVE_DB_185_H
34000 # include <db_185.h>
34005 #ifndef DB_VERSION_MAJOR
34006 # define DB_VERSION_MAJOR 1
34010 #define NULL ((void*)0)
34017 #if DB_VERSION_MAJOR > 1
34020 int major, minor, patch;
34022 version = db_version( &major, &minor, &patch );
34024 if( major != DB_VERSION_MAJOR ||
34025 minor < DB_VERSION_MINOR )
34027 printf("Berkeley DB version mismatch\n"
34028 "\theader: %s\n\tlibrary: %s\n",
34029 DB_VERSION_STRING, version);
34035 #if DB_VERSION_MAJOR > 2
34036 db_env_create( NULL, 0 );
34037 #elif DB_VERSION_MAJOR > 1
34038 db_appexit( NULL );
34040 (void) dbopen( NULL, 0, 0, 0, NULL);
34047 rm -f conftest.$ac_objext conftest$ac_exeext
34048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34049 (eval $ac_link) 2>conftest.er1
34051 grep -v '^ *+' conftest.er1 >conftest.err
34053 cat conftest.err >&5
34054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055 (exit $ac_status); } &&
34056 { ac_try='test -z "$ac_c_werror_flag"
34057 || test ! -s conftest.err'
34058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34059 (eval $ac_try) 2>&5
34061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062 (exit $ac_status); }; } &&
34063 { ac_try='test -s conftest$ac_exeext'
34064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34065 (eval $ac_try) 2>&5
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); }; }; then
34071 echo "$as_me: failed program was:" >&5
34072 sed 's/^/| /' conftest.$ac_ext >&5
34076 rm -f conftest.err conftest.$ac_objext \
34077 conftest$ac_exeext conftest.$ac_ext
34082 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34083 echo "${ECHO_T}$ol_cv_db_db2" >&6
34085 if test $ol_cv_db_db2 = yes ; then
34090 if test $ol_cv_lib_db = no ; then
34091 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34092 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34093 if test "${ol_cv_db_db_2+set}" = set; then
34094 echo $ECHO_N "(cached) $ECHO_C" >&6
34099 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34101 cat >conftest.$ac_ext <<_ACEOF
34104 cat confdefs.h >>conftest.$ac_ext
34105 cat >>conftest.$ac_ext <<_ACEOF
34106 /* end confdefs.h. */
34108 #ifdef HAVE_DB_185_H
34109 # include <db_185.h>
34114 #ifndef DB_VERSION_MAJOR
34115 # define DB_VERSION_MAJOR 1
34119 #define NULL ((void*)0)
34126 #if DB_VERSION_MAJOR > 1
34129 int major, minor, patch;
34131 version = db_version( &major, &minor, &patch );
34133 if( major != DB_VERSION_MAJOR ||
34134 minor < DB_VERSION_MINOR )
34136 printf("Berkeley DB version mismatch\n"
34137 "\theader: %s\n\tlibrary: %s\n",
34138 DB_VERSION_STRING, version);
34144 #if DB_VERSION_MAJOR > 2
34145 db_env_create( NULL, 0 );
34146 #elif DB_VERSION_MAJOR > 1
34147 db_appexit( NULL );
34149 (void) dbopen( NULL, 0, 0, 0, NULL);
34156 rm -f conftest.$ac_objext conftest$ac_exeext
34157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34158 (eval $ac_link) 2>conftest.er1
34160 grep -v '^ *+' conftest.er1 >conftest.err
34162 cat conftest.err >&5
34163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34164 (exit $ac_status); } &&
34165 { ac_try='test -z "$ac_c_werror_flag"
34166 || test ! -s conftest.err'
34167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34168 (eval $ac_try) 2>&5
34170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34171 (exit $ac_status); }; } &&
34172 { ac_try='test -s conftest$ac_exeext'
34173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34174 (eval $ac_try) 2>&5
34176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177 (exit $ac_status); }; }; then
34180 echo "$as_me: failed program was:" >&5
34181 sed 's/^/| /' conftest.$ac_ext >&5
34185 rm -f conftest.err conftest.$ac_objext \
34186 conftest$ac_exeext conftest.$ac_ext
34191 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34192 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34194 if test $ol_cv_db_db_2 = yes ; then
34195 ol_cv_lib_db=-ldb-2
34200 elif test $ol_cv_bdb_major = 1 ; then
34201 if test $ol_cv_lib_db = no ; then
34202 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34203 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34204 if test "${ol_cv_db_db1+set}" = set; then
34205 echo $ECHO_N "(cached) $ECHO_C" >&6
34210 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34212 cat >conftest.$ac_ext <<_ACEOF
34215 cat confdefs.h >>conftest.$ac_ext
34216 cat >>conftest.$ac_ext <<_ACEOF
34217 /* end confdefs.h. */
34219 #ifdef HAVE_DB_185_H
34220 # include <db_185.h>
34225 #ifndef DB_VERSION_MAJOR
34226 # define DB_VERSION_MAJOR 1
34230 #define NULL ((void*)0)
34237 #if DB_VERSION_MAJOR > 1
34240 int major, minor, patch;
34242 version = db_version( &major, &minor, &patch );
34244 if( major != DB_VERSION_MAJOR ||
34245 minor < DB_VERSION_MINOR )
34247 printf("Berkeley DB version mismatch\n"
34248 "\theader: %s\n\tlibrary: %s\n",
34249 DB_VERSION_STRING, version);
34255 #if DB_VERSION_MAJOR > 2
34256 db_env_create( NULL, 0 );
34257 #elif DB_VERSION_MAJOR > 1
34258 db_appexit( NULL );
34260 (void) dbopen( NULL, 0, 0, 0, NULL);
34267 rm -f conftest.$ac_objext conftest$ac_exeext
34268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34269 (eval $ac_link) 2>conftest.er1
34271 grep -v '^ *+' conftest.er1 >conftest.err
34273 cat conftest.err >&5
34274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34275 (exit $ac_status); } &&
34276 { ac_try='test -z "$ac_c_werror_flag"
34277 || test ! -s conftest.err'
34278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34279 (eval $ac_try) 2>&5
34281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34282 (exit $ac_status); }; } &&
34283 { ac_try='test -s conftest$ac_exeext'
34284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34285 (eval $ac_try) 2>&5
34287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34288 (exit $ac_status); }; }; then
34291 echo "$as_me: failed program was:" >&5
34292 sed 's/^/| /' conftest.$ac_ext >&5
34296 rm -f conftest.err conftest.$ac_objext \
34297 conftest$ac_exeext conftest.$ac_ext
34302 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34303 echo "${ECHO_T}$ol_cv_db_db1" >&6
34305 if test $ol_cv_db_db1 = yes ; then
34310 if test $ol_cv_lib_db = no ; then
34311 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34312 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34313 if test "${ol_cv_db_db_1+set}" = set; then
34314 echo $ECHO_N "(cached) $ECHO_C" >&6
34319 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34321 cat >conftest.$ac_ext <<_ACEOF
34324 cat confdefs.h >>conftest.$ac_ext
34325 cat >>conftest.$ac_ext <<_ACEOF
34326 /* end confdefs.h. */
34328 #ifdef HAVE_DB_185_H
34329 # include <db_185.h>
34334 #ifndef DB_VERSION_MAJOR
34335 # define DB_VERSION_MAJOR 1
34339 #define NULL ((void*)0)
34346 #if DB_VERSION_MAJOR > 1
34349 int major, minor, patch;
34351 version = db_version( &major, &minor, &patch );
34353 if( major != DB_VERSION_MAJOR ||
34354 minor < DB_VERSION_MINOR )
34356 printf("Berkeley DB version mismatch\n"
34357 "\theader: %s\n\tlibrary: %s\n",
34358 DB_VERSION_STRING, version);
34364 #if DB_VERSION_MAJOR > 2
34365 db_env_create( NULL, 0 );
34366 #elif DB_VERSION_MAJOR > 1
34367 db_appexit( NULL );
34369 (void) dbopen( NULL, 0, 0, 0, NULL);
34376 rm -f conftest.$ac_objext conftest$ac_exeext
34377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34378 (eval $ac_link) 2>conftest.er1
34380 grep -v '^ *+' conftest.er1 >conftest.err
34382 cat conftest.err >&5
34383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); } &&
34385 { ac_try='test -z "$ac_c_werror_flag"
34386 || test ! -s conftest.err'
34387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34388 (eval $ac_try) 2>&5
34390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391 (exit $ac_status); }; } &&
34392 { ac_try='test -s conftest$ac_exeext'
34393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34394 (eval $ac_try) 2>&5
34396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397 (exit $ac_status); }; }; then
34400 echo "$as_me: failed program was:" >&5
34401 sed 's/^/| /' conftest.$ac_ext >&5
34405 rm -f conftest.err conftest.$ac_objext \
34406 conftest$ac_exeext conftest.$ac_ext
34411 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34412 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34414 if test $ol_cv_db_db_1 = yes ; then
34415 ol_cv_lib_db=-ldb-1
34420 if test $ol_cv_lib_db = no ; then
34421 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34422 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34423 if test "${ol_cv_db_none+set}" = set; then
34424 echo $ECHO_N "(cached) $ECHO_C" >&6
34429 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34431 cat >conftest.$ac_ext <<_ACEOF
34434 cat confdefs.h >>conftest.$ac_ext
34435 cat >>conftest.$ac_ext <<_ACEOF
34436 /* end confdefs.h. */
34438 #ifdef HAVE_DB_185_H
34439 # include <db_185.h>
34444 #ifndef DB_VERSION_MAJOR
34445 # define DB_VERSION_MAJOR 1
34449 #define NULL ((void*)0)
34456 #if DB_VERSION_MAJOR > 1
34459 int major, minor, patch;
34461 version = db_version( &major, &minor, &patch );
34463 if( major != DB_VERSION_MAJOR ||
34464 minor < DB_VERSION_MINOR )
34466 printf("Berkeley DB version mismatch\n"
34467 "\theader: %s\n\tlibrary: %s\n",
34468 DB_VERSION_STRING, version);
34474 #if DB_VERSION_MAJOR > 2
34475 db_env_create( NULL, 0 );
34476 #elif DB_VERSION_MAJOR > 1
34477 db_appexit( NULL );
34479 (void) dbopen( NULL, 0, 0, 0, NULL);
34486 rm -f conftest.$ac_objext conftest$ac_exeext
34487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34488 (eval $ac_link) 2>conftest.er1
34490 grep -v '^ *+' conftest.er1 >conftest.err
34492 cat conftest.err >&5
34493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494 (exit $ac_status); } &&
34495 { ac_try='test -z "$ac_c_werror_flag"
34496 || test ! -s conftest.err'
34497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34498 (eval $ac_try) 2>&5
34500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34501 (exit $ac_status); }; } &&
34502 { ac_try='test -s conftest$ac_exeext'
34503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34504 (eval $ac_try) 2>&5
34506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34507 (exit $ac_status); }; }; then
34510 echo "$as_me: failed program was:" >&5
34511 sed 's/^/| /' conftest.$ac_ext >&5
34515 rm -f conftest.err conftest.$ac_objext \
34516 conftest$ac_exeext conftest.$ac_ext
34521 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34522 echo "${ECHO_T}$ol_cv_db_none" >&6
34524 if test $ol_cv_db_none = yes ; then
34530 if test "$ol_cv_lib_db" != no ; then
34531 ol_cv_berkeley_db=yes
34532 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34533 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34534 if test "${ol_cv_berkeley_db_version+set}" = set; then
34535 echo $ECHO_N "(cached) $ECHO_C" >&6
34539 LIBS="$LTHREAD_LIBS $LIBS"
34540 if test $ol_cv_lib_db != yes ; then
34541 LIBS="$ol_cv_lib_db $LIBS"
34544 if test "$cross_compiling" = yes; then
34545 ol_cv_berkeley_db_version=cross
34547 cat >conftest.$ac_ext <<_ACEOF
34550 cat confdefs.h >>conftest.$ac_ext
34551 cat >>conftest.$ac_ext <<_ACEOF
34552 /* end confdefs.h. */
34554 #ifdef HAVE_DB_185_H
34559 #ifndef DB_VERSION_MAJOR
34560 # define DB_VERSION_MAJOR 1
34563 #define NULL ((void *)0)
34567 #if DB_VERSION_MAJOR > 1
34569 int major, minor, patch;
34571 version = db_version( &major, &minor, &patch );
34573 if( major != DB_VERSION_MAJOR ||
34574 minor != DB_VERSION_MINOR ||
34575 patch != DB_VERSION_PATCH )
34577 printf("Berkeley DB version mismatch\n"
34578 "\theader: %s\n\tlibrary: %s\n",
34579 DB_VERSION_STRING, version);
34587 rm -f conftest$ac_exeext
34588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34589 (eval $ac_link) 2>&5
34591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34594 (eval $ac_try) 2>&5
34596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597 (exit $ac_status); }; }; then
34598 ol_cv_berkeley_db_version=yes
34600 echo "$as_me: program exited with status $ac_status" >&5
34601 echo "$as_me: failed program was:" >&5
34602 sed 's/^/| /' conftest.$ac_ext >&5
34604 ( exit $ac_status )
34605 ol_cv_berkeley_db_version=no
34607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34613 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34614 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34616 if test $ol_cv_berkeley_db_version = no ; then
34617 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34618 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34619 { (exit 1); exit 1; }; }
34622 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34623 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34624 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34625 echo $ECHO_N "(cached) $ECHO_C" >&6
34629 LIBS="$LTHREAD_LIBS $LIBS"
34630 if test $ol_cv_lib_db != yes ; then
34631 LIBS="$ol_cv_lib_db $LIBS"
34634 if test "$cross_compiling" = yes; then
34635 ol_cv_berkeley_db_thread=cross
34637 cat >conftest.$ac_ext <<_ACEOF
34640 cat confdefs.h >>conftest.$ac_ext
34641 cat >>conftest.$ac_ext <<_ACEOF
34642 /* end confdefs.h. */
34644 #ifdef HAVE_DB_185_H
34650 #define NULL ((void *)0)
34655 u_int32_t flags = DB_CREATE |
34661 #if DB_VERSION_MAJOR > 2
34662 DB_ENV *env = NULL;
34664 rc = db_env_create( &env, 0 );
34666 flags |= DB_INIT_MPOOL;
34667 #ifdef DB_MPOOL_PRIVATE
34668 flags |= DB_MPOOL_PRIVATE;
34672 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34676 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34677 rc = env->open( env, NULL, flags, 0 );
34679 rc = env->open( env, NULL, NULL, flags, 0 );
34683 rc = env->close( env, 0 );
34687 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34693 memset( &env, '\0', sizeof(env) );
34695 rc = db_appinit( NULL, NULL, &env, flags );
34698 db_appexit( &env );
34701 unlink("__db_mpool.share");
34702 unlink("__db_lock.share");
34708 rm -f conftest$ac_exeext
34709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34710 (eval $ac_link) 2>&5
34712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34715 (eval $ac_try) 2>&5
34717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718 (exit $ac_status); }; }; then
34719 ol_cv_berkeley_db_thread=yes
34721 echo "$as_me: program exited with status $ac_status" >&5
34722 echo "$as_me: failed program was:" >&5
34723 sed 's/^/| /' conftest.$ac_ext >&5
34725 ( exit $ac_status )
34726 ol_cv_berkeley_db_thread=no
34728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34734 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34735 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34737 if test $ol_cv_berkeley_db_thread != no ; then
34739 cat >>confdefs.h <<\_ACEOF
34740 #define HAVE_BERKELEY_DB_THREAD 1
34750 if test $ol_cv_berkeley_db != no ; then
34752 cat >>confdefs.h <<\_ACEOF
34753 #define HAVE_BERKELEY_DB 1
34757 ol_link_ldbm=berkeley
34758 ol_enable_ldbm_api=berkeley
34760 if test $ol_enable_ldbm_type = hash ; then
34762 cat >>confdefs.h <<\_ACEOF
34763 #define LDBM_USE_DBHASH 1
34768 cat >>confdefs.h <<\_ACEOF
34769 #define LDBM_USE_DBBTREE 1
34774 if test $ol_cv_lib_db != yes ; then
34775 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34781 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34782 if test $ol_link_ldbm != berkeley ; then
34783 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34784 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34785 { (exit 1); exit 1; }; }
34787 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34788 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34789 if test "${ol_cv_bdb_compat+set}" = set; then
34790 echo $ECHO_N "(cached) $ECHO_C" >&6
34793 cat >conftest.$ac_ext <<_ACEOF
34796 cat confdefs.h >>conftest.$ac_ext
34797 cat >>conftest.$ac_ext <<_ACEOF
34798 /* end confdefs.h. */
34802 /* this check could be improved */
34803 #ifndef DB_VERSION_MAJOR
34804 # define DB_VERSION_MAJOR 1
34806 #ifndef DB_VERSION_MINOR
34807 # define DB_VERSION_MINOR 0
34810 /* require 4.2 or later */
34811 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34812 __db_version_compat
34816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34817 $EGREP "__db_version_compat" >/dev/null 2>&1; then
34818 ol_cv_bdb_compat=yes
34820 ol_cv_bdb_compat=no
34825 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34826 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34829 if test $ol_cv_bdb_compat != yes ; then
34830 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34831 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34832 { (exit 1); exit 1; }; }
34837 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34838 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34839 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34840 ol_enable_ldbm_api=none
34843 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34844 echo "$as_me:$LINENO: checking for MDBM library" >&5
34845 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34846 if test "${ol_cv_lib_mdbm+set}" = set; then
34847 echo $ECHO_N "(cached) $ECHO_C" >&6
34850 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34851 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34852 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34853 echo $ECHO_N "(cached) $ECHO_C" >&6
34855 cat >conftest.$ac_ext <<_ACEOF
34858 cat confdefs.h >>conftest.$ac_ext
34859 cat >>conftest.$ac_ext <<_ACEOF
34860 /* end confdefs.h. */
34861 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34863 #define mdbm_set_chain innocuous_mdbm_set_chain
34865 /* System header to define __stub macros and hopefully few prototypes,
34866 which can conflict with char mdbm_set_chain (); below.
34867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34868 <limits.h> exists even on freestanding compilers. */
34871 # include <limits.h>
34873 # include <assert.h>
34876 #undef mdbm_set_chain
34878 /* Override any gcc2 internal prototype to avoid an error. */
34883 /* We use char because int might match the return type of a gcc2
34884 builtin and then its argument prototype would still apply. */
34885 char mdbm_set_chain ();
34886 /* The GNU C library defines this for functions which it implements
34887 to always fail with ENOSYS. Some functions are actually named
34888 something starting with __ and the normal name is an alias. */
34889 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34892 char (*f) () = mdbm_set_chain;
34901 return f != mdbm_set_chain;
34906 rm -f conftest.$ac_objext conftest$ac_exeext
34907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34908 (eval $ac_link) 2>conftest.er1
34910 grep -v '^ *+' conftest.er1 >conftest.err
34912 cat conftest.err >&5
34913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914 (exit $ac_status); } &&
34915 { ac_try='test -z "$ac_c_werror_flag"
34916 || test ! -s conftest.err'
34917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34918 (eval $ac_try) 2>&5
34920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34921 (exit $ac_status); }; } &&
34922 { ac_try='test -s conftest$ac_exeext'
34923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34924 (eval $ac_try) 2>&5
34926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927 (exit $ac_status); }; }; then
34928 ac_cv_func_mdbm_set_chain=yes
34930 echo "$as_me: failed program was:" >&5
34931 sed 's/^/| /' conftest.$ac_ext >&5
34933 ac_cv_func_mdbm_set_chain=no
34935 rm -f conftest.err conftest.$ac_objext \
34936 conftest$ac_exeext conftest.$ac_ext
34938 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34939 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34940 if test $ac_cv_func_mdbm_set_chain = yes; then
34944 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34945 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34946 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34947 echo $ECHO_N "(cached) $ECHO_C" >&6
34949 ac_check_lib_save_LIBS=$LIBS
34950 LIBS="-lmdbm $LIBS"
34951 cat >conftest.$ac_ext <<_ACEOF
34954 cat confdefs.h >>conftest.$ac_ext
34955 cat >>conftest.$ac_ext <<_ACEOF
34956 /* end confdefs.h. */
34958 /* Override any gcc2 internal prototype to avoid an error. */
34962 /* We use char because int might match the return type of a gcc2
34963 builtin and then its argument prototype would still apply. */
34964 char mdbm_set_chain ();
34973 rm -f conftest.$ac_objext conftest$ac_exeext
34974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34975 (eval $ac_link) 2>conftest.er1
34977 grep -v '^ *+' conftest.er1 >conftest.err
34979 cat conftest.err >&5
34980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981 (exit $ac_status); } &&
34982 { ac_try='test -z "$ac_c_werror_flag"
34983 || test ! -s conftest.err'
34984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34985 (eval $ac_try) 2>&5
34987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34988 (exit $ac_status); }; } &&
34989 { ac_try='test -s conftest$ac_exeext'
34990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34991 (eval $ac_try) 2>&5
34993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994 (exit $ac_status); }; }; then
34995 ac_cv_lib_mdbm_mdbm_set_chain=yes
34997 echo "$as_me: failed program was:" >&5
34998 sed 's/^/| /' conftest.$ac_ext >&5
35000 ac_cv_lib_mdbm_mdbm_set_chain=no
35002 rm -f conftest.err conftest.$ac_objext \
35003 conftest$ac_exeext conftest.$ac_ext
35004 LIBS=$ac_check_lib_save_LIBS
35006 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
35007 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
35008 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
35009 ol_cv_lib_mdbm=-lmdbm
35020 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
35021 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
35025 for ac_header in mdbm.h
35027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35029 echo "$as_me:$LINENO: checking for $ac_header" >&5
35030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35032 echo $ECHO_N "(cached) $ECHO_C" >&6
35034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35037 # Is the header compilable?
35038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35040 cat >conftest.$ac_ext <<_ACEOF
35043 cat confdefs.h >>conftest.$ac_ext
35044 cat >>conftest.$ac_ext <<_ACEOF
35045 /* end confdefs.h. */
35046 $ac_includes_default
35047 #include <$ac_header>
35049 rm -f conftest.$ac_objext
35050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35051 (eval $ac_compile) 2>conftest.er1
35053 grep -v '^ *+' conftest.er1 >conftest.err
35055 cat conftest.err >&5
35056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35057 (exit $ac_status); } &&
35058 { ac_try='test -z "$ac_c_werror_flag"
35059 || test ! -s conftest.err'
35060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35061 (eval $ac_try) 2>&5
35063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35064 (exit $ac_status); }; } &&
35065 { ac_try='test -s conftest.$ac_objext'
35066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35067 (eval $ac_try) 2>&5
35069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070 (exit $ac_status); }; }; then
35071 ac_header_compiler=yes
35073 echo "$as_me: failed program was:" >&5
35074 sed 's/^/| /' conftest.$ac_ext >&5
35076 ac_header_compiler=no
35078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35080 echo "${ECHO_T}$ac_header_compiler" >&6
35082 # Is the header present?
35083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35085 cat >conftest.$ac_ext <<_ACEOF
35088 cat confdefs.h >>conftest.$ac_ext
35089 cat >>conftest.$ac_ext <<_ACEOF
35090 /* end confdefs.h. */
35091 #include <$ac_header>
35093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35096 grep -v '^ *+' conftest.er1 >conftest.err
35098 cat conftest.err >&5
35099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100 (exit $ac_status); } >/dev/null; then
35101 if test -s conftest.err; then
35102 ac_cpp_err=$ac_c_preproc_warn_flag
35103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35110 if test -z "$ac_cpp_err"; then
35111 ac_header_preproc=yes
35113 echo "$as_me: failed program was:" >&5
35114 sed 's/^/| /' conftest.$ac_ext >&5
35116 ac_header_preproc=no
35118 rm -f conftest.err conftest.$ac_ext
35119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35120 echo "${ECHO_T}$ac_header_preproc" >&6
35122 # So? What about this header?
35123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35129 ac_header_preproc=yes
35132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35146 ## --------------------------------------------- ##
35147 ## Report this to <http://www.openldap.org/its/> ##
35148 ## --------------------------------------------- ##
35151 sed "s/^/$as_me: WARNING: /" >&2
35154 echo "$as_me:$LINENO: checking for $ac_header" >&5
35155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35157 echo $ECHO_N "(cached) $ECHO_C" >&6
35159 eval "$as_ac_Header=\$ac_header_preproc"
35161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35166 cat >>confdefs.h <<_ACEOF
35167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35174 echo "$as_me:$LINENO: checking for db" >&5
35175 echo $ECHO_N "checking for db... $ECHO_C" >&6
35176 if test "${ol_cv_mdbm+set}" = set; then
35177 echo $ECHO_N "(cached) $ECHO_C" >&6
35180 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35187 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35188 echo "${ECHO_T}$ol_cv_mdbm" >&6
35189 if test $ol_cv_mdbm = yes ; then
35191 cat >>confdefs.h <<\_ACEOF
35192 #define HAVE_MDBM 1
35198 if test $ol_cv_mdbm = yes ; then
35200 ol_enable_ldbm_api=mdbm
35201 if test $ol_cv_lib_mdbm != yes ; then
35202 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35207 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35208 echo "$as_me:$LINENO: checking for GDBM library" >&5
35209 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35210 if test "${ol_cv_lib_gdbm+set}" = set; then
35211 echo $ECHO_N "(cached) $ECHO_C" >&6
35214 echo "$as_me:$LINENO: checking for gdbm_open" >&5
35215 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35216 if test "${ac_cv_func_gdbm_open+set}" = set; then
35217 echo $ECHO_N "(cached) $ECHO_C" >&6
35219 cat >conftest.$ac_ext <<_ACEOF
35222 cat confdefs.h >>conftest.$ac_ext
35223 cat >>conftest.$ac_ext <<_ACEOF
35224 /* end confdefs.h. */
35225 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35227 #define gdbm_open innocuous_gdbm_open
35229 /* System header to define __stub macros and hopefully few prototypes,
35230 which can conflict with char gdbm_open (); below.
35231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35232 <limits.h> exists even on freestanding compilers. */
35235 # include <limits.h>
35237 # include <assert.h>
35242 /* Override any gcc2 internal prototype to avoid an error. */
35247 /* We use char because int might match the return type of a gcc2
35248 builtin and then its argument prototype would still apply. */
35250 /* The GNU C library defines this for functions which it implements
35251 to always fail with ENOSYS. Some functions are actually named
35252 something starting with __ and the normal name is an alias. */
35253 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35256 char (*f) () = gdbm_open;
35265 return f != gdbm_open;
35270 rm -f conftest.$ac_objext conftest$ac_exeext
35271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35272 (eval $ac_link) 2>conftest.er1
35274 grep -v '^ *+' conftest.er1 >conftest.err
35276 cat conftest.err >&5
35277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278 (exit $ac_status); } &&
35279 { ac_try='test -z "$ac_c_werror_flag"
35280 || test ! -s conftest.err'
35281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35282 (eval $ac_try) 2>&5
35284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285 (exit $ac_status); }; } &&
35286 { ac_try='test -s conftest$ac_exeext'
35287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35288 (eval $ac_try) 2>&5
35290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291 (exit $ac_status); }; }; then
35292 ac_cv_func_gdbm_open=yes
35294 echo "$as_me: failed program was:" >&5
35295 sed 's/^/| /' conftest.$ac_ext >&5
35297 ac_cv_func_gdbm_open=no
35299 rm -f conftest.err conftest.$ac_objext \
35300 conftest$ac_exeext conftest.$ac_ext
35302 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35303 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35304 if test $ac_cv_func_gdbm_open = yes; then
35308 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35309 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35310 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35311 echo $ECHO_N "(cached) $ECHO_C" >&6
35313 ac_check_lib_save_LIBS=$LIBS
35314 LIBS="-lgdbm $LIBS"
35315 cat >conftest.$ac_ext <<_ACEOF
35318 cat confdefs.h >>conftest.$ac_ext
35319 cat >>conftest.$ac_ext <<_ACEOF
35320 /* end confdefs.h. */
35322 /* Override any gcc2 internal prototype to avoid an error. */
35326 /* We use char because int might match the return type of a gcc2
35327 builtin and then its argument prototype would still apply. */
35337 rm -f conftest.$ac_objext conftest$ac_exeext
35338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35339 (eval $ac_link) 2>conftest.er1
35341 grep -v '^ *+' conftest.er1 >conftest.err
35343 cat conftest.err >&5
35344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35345 (exit $ac_status); } &&
35346 { ac_try='test -z "$ac_c_werror_flag"
35347 || test ! -s conftest.err'
35348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35349 (eval $ac_try) 2>&5
35351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352 (exit $ac_status); }; } &&
35353 { ac_try='test -s conftest$ac_exeext'
35354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35355 (eval $ac_try) 2>&5
35357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358 (exit $ac_status); }; }; then
35359 ac_cv_lib_gdbm_gdbm_open=yes
35361 echo "$as_me: failed program was:" >&5
35362 sed 's/^/| /' conftest.$ac_ext >&5
35364 ac_cv_lib_gdbm_gdbm_open=no
35366 rm -f conftest.err conftest.$ac_objext \
35367 conftest$ac_exeext conftest.$ac_ext
35368 LIBS=$ac_check_lib_save_LIBS
35370 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35371 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35372 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35373 ol_cv_lib_gdbm=-lgdbm
35384 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35385 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35389 for ac_header in gdbm.h
35391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35393 echo "$as_me:$LINENO: checking for $ac_header" >&5
35394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35396 echo $ECHO_N "(cached) $ECHO_C" >&6
35398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35401 # Is the header compilable?
35402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35404 cat >conftest.$ac_ext <<_ACEOF
35407 cat confdefs.h >>conftest.$ac_ext
35408 cat >>conftest.$ac_ext <<_ACEOF
35409 /* end confdefs.h. */
35410 $ac_includes_default
35411 #include <$ac_header>
35413 rm -f conftest.$ac_objext
35414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35415 (eval $ac_compile) 2>conftest.er1
35417 grep -v '^ *+' conftest.er1 >conftest.err
35419 cat conftest.err >&5
35420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421 (exit $ac_status); } &&
35422 { ac_try='test -z "$ac_c_werror_flag"
35423 || test ! -s conftest.err'
35424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35425 (eval $ac_try) 2>&5
35427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35428 (exit $ac_status); }; } &&
35429 { ac_try='test -s conftest.$ac_objext'
35430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35431 (eval $ac_try) 2>&5
35433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434 (exit $ac_status); }; }; then
35435 ac_header_compiler=yes
35437 echo "$as_me: failed program was:" >&5
35438 sed 's/^/| /' conftest.$ac_ext >&5
35440 ac_header_compiler=no
35442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35444 echo "${ECHO_T}$ac_header_compiler" >&6
35446 # Is the header present?
35447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35449 cat >conftest.$ac_ext <<_ACEOF
35452 cat confdefs.h >>conftest.$ac_ext
35453 cat >>conftest.$ac_ext <<_ACEOF
35454 /* end confdefs.h. */
35455 #include <$ac_header>
35457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35460 grep -v '^ *+' conftest.er1 >conftest.err
35462 cat conftest.err >&5
35463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35464 (exit $ac_status); } >/dev/null; then
35465 if test -s conftest.err; then
35466 ac_cpp_err=$ac_c_preproc_warn_flag
35467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35474 if test -z "$ac_cpp_err"; then
35475 ac_header_preproc=yes
35477 echo "$as_me: failed program was:" >&5
35478 sed 's/^/| /' conftest.$ac_ext >&5
35480 ac_header_preproc=no
35482 rm -f conftest.err conftest.$ac_ext
35483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35484 echo "${ECHO_T}$ac_header_preproc" >&6
35486 # So? What about this header?
35487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35493 ac_header_preproc=yes
35496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35503 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35510 ## --------------------------------------------- ##
35511 ## Report this to <http://www.openldap.org/its/> ##
35512 ## --------------------------------------------- ##
35515 sed "s/^/$as_me: WARNING: /" >&2
35518 echo "$as_me:$LINENO: checking for $ac_header" >&5
35519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35521 echo $ECHO_N "(cached) $ECHO_C" >&6
35523 eval "$as_ac_Header=\$ac_header_preproc"
35525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35530 cat >>confdefs.h <<_ACEOF
35531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35538 echo "$as_me:$LINENO: checking for db" >&5
35539 echo $ECHO_N "checking for db... $ECHO_C" >&6
35540 if test "${ol_cv_gdbm+set}" = set; then
35541 echo $ECHO_N "(cached) $ECHO_C" >&6
35544 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35551 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35552 echo "${ECHO_T}$ol_cv_gdbm" >&6
35553 if test $ol_cv_gdbm = yes ; then
35555 cat >>confdefs.h <<\_ACEOF
35556 #define HAVE_GDBM 1
35562 if test $ol_cv_gdbm = yes ; then
35564 ol_enable_ldbm_api=gdbm
35566 if test $ol_cv_lib_gdbm != yes ; then
35567 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35572 if test $ol_enable_ldbm_api = ndbm ; then
35573 echo "$as_me:$LINENO: checking for NDBM library" >&5
35574 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35575 if test "${ol_cv_lib_ndbm+set}" = set; then
35576 echo $ECHO_N "(cached) $ECHO_C" >&6
35579 echo "$as_me:$LINENO: checking for dbm_open" >&5
35580 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35581 if test "${ac_cv_func_dbm_open+set}" = set; then
35582 echo $ECHO_N "(cached) $ECHO_C" >&6
35584 cat >conftest.$ac_ext <<_ACEOF
35587 cat confdefs.h >>conftest.$ac_ext
35588 cat >>conftest.$ac_ext <<_ACEOF
35589 /* end confdefs.h. */
35590 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35592 #define dbm_open innocuous_dbm_open
35594 /* System header to define __stub macros and hopefully few prototypes,
35595 which can conflict with char dbm_open (); below.
35596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35597 <limits.h> exists even on freestanding compilers. */
35600 # include <limits.h>
35602 # include <assert.h>
35607 /* Override any gcc2 internal prototype to avoid an error. */
35612 /* We use char because int might match the return type of a gcc2
35613 builtin and then its argument prototype would still apply. */
35615 /* The GNU C library defines this for functions which it implements
35616 to always fail with ENOSYS. Some functions are actually named
35617 something starting with __ and the normal name is an alias. */
35618 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35621 char (*f) () = dbm_open;
35630 return f != dbm_open;
35635 rm -f conftest.$ac_objext conftest$ac_exeext
35636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35637 (eval $ac_link) 2>conftest.er1
35639 grep -v '^ *+' conftest.er1 >conftest.err
35641 cat conftest.err >&5
35642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35643 (exit $ac_status); } &&
35644 { ac_try='test -z "$ac_c_werror_flag"
35645 || test ! -s conftest.err'
35646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35647 (eval $ac_try) 2>&5
35649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650 (exit $ac_status); }; } &&
35651 { ac_try='test -s conftest$ac_exeext'
35652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35653 (eval $ac_try) 2>&5
35655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35656 (exit $ac_status); }; }; then
35657 ac_cv_func_dbm_open=yes
35659 echo "$as_me: failed program was:" >&5
35660 sed 's/^/| /' conftest.$ac_ext >&5
35662 ac_cv_func_dbm_open=no
35664 rm -f conftest.err conftest.$ac_objext \
35665 conftest$ac_exeext conftest.$ac_ext
35667 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35668 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35669 if test $ac_cv_func_dbm_open = yes; then
35673 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35674 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35675 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35676 echo $ECHO_N "(cached) $ECHO_C" >&6
35678 ac_check_lib_save_LIBS=$LIBS
35679 LIBS="-lndbm $LIBS"
35680 cat >conftest.$ac_ext <<_ACEOF
35683 cat confdefs.h >>conftest.$ac_ext
35684 cat >>conftest.$ac_ext <<_ACEOF
35685 /* end confdefs.h. */
35687 /* Override any gcc2 internal prototype to avoid an error. */
35691 /* We use char because int might match the return type of a gcc2
35692 builtin and then its argument prototype would still apply. */
35702 rm -f conftest.$ac_objext conftest$ac_exeext
35703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35704 (eval $ac_link) 2>conftest.er1
35706 grep -v '^ *+' conftest.er1 >conftest.err
35708 cat conftest.err >&5
35709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35710 (exit $ac_status); } &&
35711 { ac_try='test -z "$ac_c_werror_flag"
35712 || test ! -s conftest.err'
35713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35714 (eval $ac_try) 2>&5
35716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717 (exit $ac_status); }; } &&
35718 { ac_try='test -s conftest$ac_exeext'
35719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35720 (eval $ac_try) 2>&5
35722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723 (exit $ac_status); }; }; then
35724 ac_cv_lib_ndbm_dbm_open=yes
35726 echo "$as_me: failed program was:" >&5
35727 sed 's/^/| /' conftest.$ac_ext >&5
35729 ac_cv_lib_ndbm_dbm_open=no
35731 rm -f conftest.err conftest.$ac_objext \
35732 conftest$ac_exeext conftest.$ac_ext
35733 LIBS=$ac_check_lib_save_LIBS
35735 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35736 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35737 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35738 ol_cv_lib_ndbm=-lndbm
35741 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35742 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35743 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35744 echo $ECHO_N "(cached) $ECHO_C" >&6
35746 ac_check_lib_save_LIBS=$LIBS
35748 cat >conftest.$ac_ext <<_ACEOF
35751 cat confdefs.h >>conftest.$ac_ext
35752 cat >>conftest.$ac_ext <<_ACEOF
35753 /* end confdefs.h. */
35755 /* Override any gcc2 internal prototype to avoid an error. */
35759 /* We use char because int might match the return type of a gcc2
35760 builtin and then its argument prototype would still apply. */
35770 rm -f conftest.$ac_objext conftest$ac_exeext
35771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35772 (eval $ac_link) 2>conftest.er1
35774 grep -v '^ *+' conftest.er1 >conftest.err
35776 cat conftest.err >&5
35777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778 (exit $ac_status); } &&
35779 { ac_try='test -z "$ac_c_werror_flag"
35780 || test ! -s conftest.err'
35781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35782 (eval $ac_try) 2>&5
35784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35785 (exit $ac_status); }; } &&
35786 { ac_try='test -s conftest$ac_exeext'
35787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35788 (eval $ac_try) 2>&5
35790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35791 (exit $ac_status); }; }; then
35792 ac_cv_lib_dbm_dbm_open=yes
35794 echo "$as_me: failed program was:" >&5
35795 sed 's/^/| /' conftest.$ac_ext >&5
35797 ac_cv_lib_dbm_dbm_open=no
35799 rm -f conftest.err conftest.$ac_objext \
35800 conftest$ac_exeext conftest.$ac_ext
35801 LIBS=$ac_check_lib_save_LIBS
35803 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35804 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35805 if test $ac_cv_lib_dbm_dbm_open = yes; then
35806 ol_cv_lib_ndbm=-ldbm
35819 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35820 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35824 for ac_header in ndbm.h
35826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35828 echo "$as_me:$LINENO: checking for $ac_header" >&5
35829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35831 echo $ECHO_N "(cached) $ECHO_C" >&6
35833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35836 # Is the header compilable?
35837 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35839 cat >conftest.$ac_ext <<_ACEOF
35842 cat confdefs.h >>conftest.$ac_ext
35843 cat >>conftest.$ac_ext <<_ACEOF
35844 /* end confdefs.h. */
35845 $ac_includes_default
35846 #include <$ac_header>
35848 rm -f conftest.$ac_objext
35849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35850 (eval $ac_compile) 2>conftest.er1
35852 grep -v '^ *+' conftest.er1 >conftest.err
35854 cat conftest.err >&5
35855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856 (exit $ac_status); } &&
35857 { ac_try='test -z "$ac_c_werror_flag"
35858 || test ! -s conftest.err'
35859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35860 (eval $ac_try) 2>&5
35862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35863 (exit $ac_status); }; } &&
35864 { ac_try='test -s conftest.$ac_objext'
35865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35866 (eval $ac_try) 2>&5
35868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869 (exit $ac_status); }; }; then
35870 ac_header_compiler=yes
35872 echo "$as_me: failed program was:" >&5
35873 sed 's/^/| /' conftest.$ac_ext >&5
35875 ac_header_compiler=no
35877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35879 echo "${ECHO_T}$ac_header_compiler" >&6
35881 # Is the header present?
35882 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35884 cat >conftest.$ac_ext <<_ACEOF
35887 cat confdefs.h >>conftest.$ac_ext
35888 cat >>conftest.$ac_ext <<_ACEOF
35889 /* end confdefs.h. */
35890 #include <$ac_header>
35892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35895 grep -v '^ *+' conftest.er1 >conftest.err
35897 cat conftest.err >&5
35898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35899 (exit $ac_status); } >/dev/null; then
35900 if test -s conftest.err; then
35901 ac_cpp_err=$ac_c_preproc_warn_flag
35902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35909 if test -z "$ac_cpp_err"; then
35910 ac_header_preproc=yes
35912 echo "$as_me: failed program was:" >&5
35913 sed 's/^/| /' conftest.$ac_ext >&5
35915 ac_header_preproc=no
35917 rm -f conftest.err conftest.$ac_ext
35918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35919 echo "${ECHO_T}$ac_header_preproc" >&6
35921 # So? What about this header?
35922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35928 ac_header_preproc=yes
35931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35945 ## --------------------------------------------- ##
35946 ## Report this to <http://www.openldap.org/its/> ##
35947 ## --------------------------------------------- ##
35950 sed "s/^/$as_me: WARNING: /" >&2
35953 echo "$as_me:$LINENO: checking for $ac_header" >&5
35954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35956 echo $ECHO_N "(cached) $ECHO_C" >&6
35958 eval "$as_ac_Header=\$ac_header_preproc"
35960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35965 cat >>confdefs.h <<_ACEOF
35966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35973 echo "$as_me:$LINENO: checking for db" >&5
35974 echo $ECHO_N "checking for db... $ECHO_C" >&6
35975 if test "${ol_cv_ndbm+set}" = set; then
35976 echo $ECHO_N "(cached) $ECHO_C" >&6
35979 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
35986 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
35987 echo "${ECHO_T}$ol_cv_ndbm" >&6
35988 if test $ol_cv_ndbm = yes ; then
35990 cat >>confdefs.h <<\_ACEOF
35991 #define HAVE_NDBM 1
35997 if test $ol_cv_ndbm = yes ; then
35999 ol_enable_ldbm_api=ndbm
36001 if test $ol_cv_lib_ndbm != yes ; then
36002 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
36007 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
36008 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
36009 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
36010 { (exit 1); exit 1; }; }
36013 if test $ol_enable_bdb = yes ||
36014 test $ol_enable_hdb = yes ||
36015 test $ol_enable_ldbm = yes ; then
36016 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
36020 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
36021 BUILD_LIBS_DYNAMIC=shared
36023 cat >>confdefs.h <<\_ACEOF
36024 #define LDAP_LIBS_DYNAMIC 1
36029 BUILD_LIBS_DYNAMIC=static
36033 if test $ol_enable_wrappers != no ; then
36035 for ac_header in tcpd.h
36037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36039 echo "$as_me:$LINENO: checking for $ac_header" >&5
36040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36042 echo $ECHO_N "(cached) $ECHO_C" >&6
36044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36047 # Is the header compilable?
36048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36050 cat >conftest.$ac_ext <<_ACEOF
36053 cat confdefs.h >>conftest.$ac_ext
36054 cat >>conftest.$ac_ext <<_ACEOF
36055 /* end confdefs.h. */
36056 $ac_includes_default
36057 #include <$ac_header>
36059 rm -f conftest.$ac_objext
36060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36061 (eval $ac_compile) 2>conftest.er1
36063 grep -v '^ *+' conftest.er1 >conftest.err
36065 cat conftest.err >&5
36066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067 (exit $ac_status); } &&
36068 { ac_try='test -z "$ac_c_werror_flag"
36069 || test ! -s conftest.err'
36070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36071 (eval $ac_try) 2>&5
36073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36074 (exit $ac_status); }; } &&
36075 { ac_try='test -s conftest.$ac_objext'
36076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36077 (eval $ac_try) 2>&5
36079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080 (exit $ac_status); }; }; then
36081 ac_header_compiler=yes
36083 echo "$as_me: failed program was:" >&5
36084 sed 's/^/| /' conftest.$ac_ext >&5
36086 ac_header_compiler=no
36088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36090 echo "${ECHO_T}$ac_header_compiler" >&6
36092 # Is the header present?
36093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36095 cat >conftest.$ac_ext <<_ACEOF
36098 cat confdefs.h >>conftest.$ac_ext
36099 cat >>conftest.$ac_ext <<_ACEOF
36100 /* end confdefs.h. */
36101 #include <$ac_header>
36103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36106 grep -v '^ *+' conftest.er1 >conftest.err
36108 cat conftest.err >&5
36109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36110 (exit $ac_status); } >/dev/null; then
36111 if test -s conftest.err; then
36112 ac_cpp_err=$ac_c_preproc_warn_flag
36113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36120 if test -z "$ac_cpp_err"; then
36121 ac_header_preproc=yes
36123 echo "$as_me: failed program was:" >&5
36124 sed 's/^/| /' conftest.$ac_ext >&5
36126 ac_header_preproc=no
36128 rm -f conftest.err conftest.$ac_ext
36129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36130 echo "${ECHO_T}$ac_header_preproc" >&6
36132 # So? What about this header?
36133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36139 ac_header_preproc=yes
36142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36156 ## --------------------------------------------- ##
36157 ## Report this to <http://www.openldap.org/its/> ##
36158 ## --------------------------------------------- ##
36161 sed "s/^/$as_me: WARNING: /" >&2
36164 echo "$as_me:$LINENO: checking for $ac_header" >&5
36165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36167 echo $ECHO_N "(cached) $ECHO_C" >&6
36169 eval "$as_ac_Header=\$ac_header_preproc"
36171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36176 cat >>confdefs.h <<_ACEOF
36177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36180 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36181 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36183 LIBS="$LIBS -lwrap"
36184 cat >conftest.$ac_ext <<_ACEOF
36187 cat confdefs.h >>conftest.$ac_ext
36188 cat >>conftest.$ac_ext <<_ACEOF
36189 /* end confdefs.h. */
36192 int allow_severity = 0;
36193 int deny_severity = 0;
36195 struct request_info *req;
36207 rm -f conftest.$ac_objext conftest$ac_exeext
36208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36209 (eval $ac_link) 2>conftest.er1
36211 grep -v '^ *+' conftest.er1 >conftest.err
36213 cat conftest.err >&5
36214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36215 (exit $ac_status); } &&
36216 { ac_try='test -z "$ac_c_werror_flag"
36217 || test ! -s conftest.err'
36218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36219 (eval $ac_try) 2>&5
36221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36222 (exit $ac_status); }; } &&
36223 { ac_try='test -s conftest$ac_exeext'
36224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36225 (eval $ac_try) 2>&5
36227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228 (exit $ac_status); }; }; then
36229 echo "$as_me:$LINENO: result: -lwrap" >&5
36230 echo "${ECHO_T}-lwrap" >&6
36234 echo "$as_me: failed program was:" >&5
36235 sed 's/^/| /' conftest.$ac_ext >&5
36239 cat >conftest.$ac_ext <<_ACEOF
36242 cat confdefs.h >>conftest.$ac_ext
36243 cat >>conftest.$ac_ext <<_ACEOF
36244 /* end confdefs.h. */
36247 int allow_severity = 0;
36248 int deny_severity = 0;
36250 struct request_info *req;
36262 rm -f conftest.$ac_objext conftest$ac_exeext
36263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36264 (eval $ac_link) 2>conftest.er1
36266 grep -v '^ *+' conftest.er1 >conftest.err
36268 cat conftest.err >&5
36269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270 (exit $ac_status); } &&
36271 { ac_try='test -z "$ac_c_werror_flag"
36272 || test ! -s conftest.err'
36273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36274 (eval $ac_try) 2>&5
36276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277 (exit $ac_status); }; } &&
36278 { ac_try='test -s conftest$ac_exeext'
36279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36280 (eval $ac_try) 2>&5
36282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283 (exit $ac_status); }; }; then
36284 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36285 echo "${ECHO_T}-lwrap -lnsl" >&6
36287 LIBS="$save_LIBS -lnsl"
36289 echo "$as_me: failed program was:" >&5
36290 sed 's/^/| /' conftest.$ac_ext >&5
36293 echo "$as_me:$LINENO: result: no" >&5
36294 echo "${ECHO_T}no" >&6
36298 rm -f conftest.err conftest.$ac_objext \
36299 conftest$ac_exeext conftest.$ac_ext
36301 rm -f conftest.err conftest.$ac_objext \
36302 conftest$ac_exeext conftest.$ac_ext
36310 if test $have_wrappers = yes ; then
36312 cat >>confdefs.h <<\_ACEOF
36313 #define HAVE_TCPD 1
36317 elif test $ol_enable_wrappers = yes ; then
36318 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36319 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36320 { (exit 1); exit 1; }; }
36322 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36323 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36328 if test $ol_enable_syslog != no ; then
36329 echo "$as_me:$LINENO: checking for openlog" >&5
36330 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36331 if test "${ac_cv_func_openlog+set}" = set; then
36332 echo $ECHO_N "(cached) $ECHO_C" >&6
36334 cat >conftest.$ac_ext <<_ACEOF
36337 cat confdefs.h >>conftest.$ac_ext
36338 cat >>conftest.$ac_ext <<_ACEOF
36339 /* end confdefs.h. */
36340 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36342 #define openlog innocuous_openlog
36344 /* System header to define __stub macros and hopefully few prototypes,
36345 which can conflict with char openlog (); below.
36346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36347 <limits.h> exists even on freestanding compilers. */
36350 # include <limits.h>
36352 # include <assert.h>
36357 /* Override any gcc2 internal prototype to avoid an error. */
36362 /* We use char because int might match the return type of a gcc2
36363 builtin and then its argument prototype would still apply. */
36365 /* The GNU C library defines this for functions which it implements
36366 to always fail with ENOSYS. Some functions are actually named
36367 something starting with __ and the normal name is an alias. */
36368 #if defined (__stub_openlog) || defined (__stub___openlog)
36371 char (*f) () = openlog;
36380 return f != openlog;
36385 rm -f conftest.$ac_objext conftest$ac_exeext
36386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36387 (eval $ac_link) 2>conftest.er1
36389 grep -v '^ *+' conftest.er1 >conftest.err
36391 cat conftest.err >&5
36392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393 (exit $ac_status); } &&
36394 { ac_try='test -z "$ac_c_werror_flag"
36395 || test ! -s conftest.err'
36396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36397 (eval $ac_try) 2>&5
36399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36400 (exit $ac_status); }; } &&
36401 { ac_try='test -s conftest$ac_exeext'
36402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36403 (eval $ac_try) 2>&5
36405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36406 (exit $ac_status); }; }; then
36407 ac_cv_func_openlog=yes
36409 echo "$as_me: failed program was:" >&5
36410 sed 's/^/| /' conftest.$ac_ext >&5
36412 ac_cv_func_openlog=no
36414 rm -f conftest.err conftest.$ac_objext \
36415 conftest$ac_exeext conftest.$ac_ext
36417 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36418 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36420 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36421 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36422 echo "$as_me: error: could not find syslog" >&2;}
36423 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36425 ol_enable_syslog=$ac_cv_func_openlog
36429 if test $ol_enable_sql != no ; then
36432 for ac_header in sql.h sqlext.h
36434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36436 echo "$as_me:$LINENO: checking for $ac_header" >&5
36437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36439 echo $ECHO_N "(cached) $ECHO_C" >&6
36441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36444 # Is the header compilable?
36445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36447 cat >conftest.$ac_ext <<_ACEOF
36450 cat confdefs.h >>conftest.$ac_ext
36451 cat >>conftest.$ac_ext <<_ACEOF
36452 /* end confdefs.h. */
36453 $ac_includes_default
36454 #include <$ac_header>
36456 rm -f conftest.$ac_objext
36457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36458 (eval $ac_compile) 2>conftest.er1
36460 grep -v '^ *+' conftest.er1 >conftest.err
36462 cat conftest.err >&5
36463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36464 (exit $ac_status); } &&
36465 { ac_try='test -z "$ac_c_werror_flag"
36466 || test ! -s conftest.err'
36467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36468 (eval $ac_try) 2>&5
36470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471 (exit $ac_status); }; } &&
36472 { ac_try='test -s conftest.$ac_objext'
36473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36474 (eval $ac_try) 2>&5
36476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477 (exit $ac_status); }; }; then
36478 ac_header_compiler=yes
36480 echo "$as_me: failed program was:" >&5
36481 sed 's/^/| /' conftest.$ac_ext >&5
36483 ac_header_compiler=no
36485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36487 echo "${ECHO_T}$ac_header_compiler" >&6
36489 # Is the header present?
36490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36492 cat >conftest.$ac_ext <<_ACEOF
36495 cat confdefs.h >>conftest.$ac_ext
36496 cat >>conftest.$ac_ext <<_ACEOF
36497 /* end confdefs.h. */
36498 #include <$ac_header>
36500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36503 grep -v '^ *+' conftest.er1 >conftest.err
36505 cat conftest.err >&5
36506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507 (exit $ac_status); } >/dev/null; then
36508 if test -s conftest.err; then
36509 ac_cpp_err=$ac_c_preproc_warn_flag
36510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36517 if test -z "$ac_cpp_err"; then
36518 ac_header_preproc=yes
36520 echo "$as_me: failed program was:" >&5
36521 sed 's/^/| /' conftest.$ac_ext >&5
36523 ac_header_preproc=no
36525 rm -f conftest.err conftest.$ac_ext
36526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36527 echo "${ECHO_T}$ac_header_preproc" >&6
36529 # So? What about this header?
36530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36536 ac_header_preproc=yes
36539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36553 ## --------------------------------------------- ##
36554 ## Report this to <http://www.openldap.org/its/> ##
36555 ## --------------------------------------------- ##
36558 sed "s/^/$as_me: WARNING: /" >&2
36561 echo "$as_me:$LINENO: checking for $ac_header" >&5
36562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36564 echo $ECHO_N "(cached) $ECHO_C" >&6
36566 eval "$as_ac_Header=\$ac_header_preproc"
36568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36573 cat >>confdefs.h <<_ACEOF
36574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36579 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36580 echo "$as_me: error: could not locate SQL headers" >&2;}
36581 { (exit 1); exit 1; }; }
36589 LIBS="$LTHREAD_LIBS"
36591 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36592 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36593 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36594 echo $ECHO_N "(cached) $ECHO_C" >&6
36596 ac_check_lib_save_LIBS=$LIBS
36597 LIBS="-liodbc $LIBS"
36598 cat >conftest.$ac_ext <<_ACEOF
36601 cat confdefs.h >>conftest.$ac_ext
36602 cat >>conftest.$ac_ext <<_ACEOF
36603 /* end confdefs.h. */
36605 /* Override any gcc2 internal prototype to avoid an error. */
36609 /* We use char because int might match the return type of a gcc2
36610 builtin and then its argument prototype would still apply. */
36611 char SQLDriverConnect ();
36615 SQLDriverConnect ();
36620 rm -f conftest.$ac_objext conftest$ac_exeext
36621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36622 (eval $ac_link) 2>conftest.er1
36624 grep -v '^ *+' conftest.er1 >conftest.err
36626 cat conftest.err >&5
36627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628 (exit $ac_status); } &&
36629 { ac_try='test -z "$ac_c_werror_flag"
36630 || test ! -s conftest.err'
36631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36632 (eval $ac_try) 2>&5
36634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36635 (exit $ac_status); }; } &&
36636 { ac_try='test -s conftest$ac_exeext'
36637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36638 (eval $ac_try) 2>&5
36640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36641 (exit $ac_status); }; }; then
36642 ac_cv_lib_iodbc_SQLDriverConnect=yes
36644 echo "$as_me: failed program was:" >&5
36645 sed 's/^/| /' conftest.$ac_ext >&5
36647 ac_cv_lib_iodbc_SQLDriverConnect=no
36649 rm -f conftest.err conftest.$ac_objext \
36650 conftest$ac_exeext conftest.$ac_ext
36651 LIBS=$ac_check_lib_save_LIBS
36653 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36654 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36655 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36661 if test $have_iodbc = yes ; then
36662 ol_link_sql="-liodbc"
36664 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36665 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36666 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36667 echo $ECHO_N "(cached) $ECHO_C" >&6
36669 ac_check_lib_save_LIBS=$LIBS
36670 LIBS="-lodbc $LIBS"
36671 cat >conftest.$ac_ext <<_ACEOF
36674 cat confdefs.h >>conftest.$ac_ext
36675 cat >>conftest.$ac_ext <<_ACEOF
36676 /* end confdefs.h. */
36678 /* Override any gcc2 internal prototype to avoid an error. */
36682 /* We use char because int might match the return type of a gcc2
36683 builtin and then its argument prototype would still apply. */
36684 char SQLDriverConnect ();
36688 SQLDriverConnect ();
36693 rm -f conftest.$ac_objext conftest$ac_exeext
36694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36695 (eval $ac_link) 2>conftest.er1
36697 grep -v '^ *+' conftest.er1 >conftest.err
36699 cat conftest.err >&5
36700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701 (exit $ac_status); } &&
36702 { ac_try='test -z "$ac_c_werror_flag"
36703 || test ! -s conftest.err'
36704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36705 (eval $ac_try) 2>&5
36707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36708 (exit $ac_status); }; } &&
36709 { ac_try='test -s conftest$ac_exeext'
36710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36711 (eval $ac_try) 2>&5
36713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36714 (exit $ac_status); }; }; then
36715 ac_cv_lib_odbc_SQLDriverConnect=yes
36717 echo "$as_me: failed program was:" >&5
36718 sed 's/^/| /' conftest.$ac_ext >&5
36720 ac_cv_lib_odbc_SQLDriverConnect=no
36722 rm -f conftest.err conftest.$ac_objext \
36723 conftest$ac_exeext conftest.$ac_ext
36724 LIBS=$ac_check_lib_save_LIBS
36726 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36727 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36728 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36734 if test $have_odbc = yes ; then
36735 ol_link_sql="-lodbc"
36741 if test $ol_link_sql != no ; then
36742 SLAPD_SQL_LIBS="$ol_link_sql"
36744 elif test $ol_enable_sql != auto ; then
36745 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36746 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36747 { (exit 1); exit 1; }; }
36754 if test $ol_with_cyrus_sasl != no ; then
36757 for ac_header in sasl/sasl.h sasl.h
36759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36761 echo "$as_me:$LINENO: checking for $ac_header" >&5
36762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36764 echo $ECHO_N "(cached) $ECHO_C" >&6
36766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36769 # Is the header compilable?
36770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36772 cat >conftest.$ac_ext <<_ACEOF
36775 cat confdefs.h >>conftest.$ac_ext
36776 cat >>conftest.$ac_ext <<_ACEOF
36777 /* end confdefs.h. */
36778 $ac_includes_default
36779 #include <$ac_header>
36781 rm -f conftest.$ac_objext
36782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36783 (eval $ac_compile) 2>conftest.er1
36785 grep -v '^ *+' conftest.er1 >conftest.err
36787 cat conftest.err >&5
36788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789 (exit $ac_status); } &&
36790 { ac_try='test -z "$ac_c_werror_flag"
36791 || test ! -s conftest.err'
36792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36793 (eval $ac_try) 2>&5
36795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796 (exit $ac_status); }; } &&
36797 { ac_try='test -s conftest.$ac_objext'
36798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36799 (eval $ac_try) 2>&5
36801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802 (exit $ac_status); }; }; then
36803 ac_header_compiler=yes
36805 echo "$as_me: failed program was:" >&5
36806 sed 's/^/| /' conftest.$ac_ext >&5
36808 ac_header_compiler=no
36810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36812 echo "${ECHO_T}$ac_header_compiler" >&6
36814 # Is the header present?
36815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36817 cat >conftest.$ac_ext <<_ACEOF
36820 cat confdefs.h >>conftest.$ac_ext
36821 cat >>conftest.$ac_ext <<_ACEOF
36822 /* end confdefs.h. */
36823 #include <$ac_header>
36825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36828 grep -v '^ *+' conftest.er1 >conftest.err
36830 cat conftest.err >&5
36831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36832 (exit $ac_status); } >/dev/null; then
36833 if test -s conftest.err; then
36834 ac_cpp_err=$ac_c_preproc_warn_flag
36835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36842 if test -z "$ac_cpp_err"; then
36843 ac_header_preproc=yes
36845 echo "$as_me: failed program was:" >&5
36846 sed 's/^/| /' conftest.$ac_ext >&5
36848 ac_header_preproc=no
36850 rm -f conftest.err conftest.$ac_ext
36851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36852 echo "${ECHO_T}$ac_header_preproc" >&6
36854 # So? What about this header?
36855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36861 ac_header_preproc=yes
36864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36878 ## --------------------------------------------- ##
36879 ## Report this to <http://www.openldap.org/its/> ##
36880 ## --------------------------------------------- ##
36883 sed "s/^/$as_me: WARNING: /" >&2
36886 echo "$as_me:$LINENO: checking for $ac_header" >&5
36887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36889 echo $ECHO_N "(cached) $ECHO_C" >&6
36891 eval "$as_ac_Header=\$ac_header_preproc"
36893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36898 cat >>confdefs.h <<_ACEOF
36899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36907 if test $ac_cv_header_sasl_sasl_h = yes ||
36908 test $ac_cv_header_sasl_h = yes; then
36909 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
36910 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
36911 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
36912 echo $ECHO_N "(cached) $ECHO_C" >&6
36914 ac_check_lib_save_LIBS=$LIBS
36915 LIBS="-lsasl2 $LIBS"
36916 cat >conftest.$ac_ext <<_ACEOF
36919 cat confdefs.h >>conftest.$ac_ext
36920 cat >>conftest.$ac_ext <<_ACEOF
36921 /* end confdefs.h. */
36923 /* Override any gcc2 internal prototype to avoid an error. */
36927 /* We use char because int might match the return type of a gcc2
36928 builtin and then its argument prototype would still apply. */
36929 char sasl_client_init ();
36933 sasl_client_init ();
36938 rm -f conftest.$ac_objext conftest$ac_exeext
36939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36940 (eval $ac_link) 2>conftest.er1
36942 grep -v '^ *+' conftest.er1 >conftest.err
36944 cat conftest.err >&5
36945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36946 (exit $ac_status); } &&
36947 { ac_try='test -z "$ac_c_werror_flag"
36948 || test ! -s conftest.err'
36949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36950 (eval $ac_try) 2>&5
36952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953 (exit $ac_status); }; } &&
36954 { ac_try='test -s conftest$ac_exeext'
36955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36956 (eval $ac_try) 2>&5
36958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959 (exit $ac_status); }; }; then
36960 ac_cv_lib_sasl2_sasl_client_init=yes
36962 echo "$as_me: failed program was:" >&5
36963 sed 's/^/| /' conftest.$ac_ext >&5
36965 ac_cv_lib_sasl2_sasl_client_init=no
36967 rm -f conftest.err conftest.$ac_objext \
36968 conftest$ac_exeext conftest.$ac_ext
36969 LIBS=$ac_check_lib_save_LIBS
36971 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
36972 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
36973 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
36974 ol_link_sasl="-lsasl2"
36976 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
36977 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
36978 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
36979 echo $ECHO_N "(cached) $ECHO_C" >&6
36981 ac_check_lib_save_LIBS=$LIBS
36982 LIBS="-lsasl $LIBS"
36983 cat >conftest.$ac_ext <<_ACEOF
36986 cat confdefs.h >>conftest.$ac_ext
36987 cat >>conftest.$ac_ext <<_ACEOF
36988 /* end confdefs.h. */
36990 /* Override any gcc2 internal prototype to avoid an error. */
36994 /* We use char because int might match the return type of a gcc2
36995 builtin and then its argument prototype would still apply. */
36996 char sasl_client_init ();
37000 sasl_client_init ();
37005 rm -f conftest.$ac_objext conftest$ac_exeext
37006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37007 (eval $ac_link) 2>conftest.er1
37009 grep -v '^ *+' conftest.er1 >conftest.err
37011 cat conftest.err >&5
37012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37013 (exit $ac_status); } &&
37014 { ac_try='test -z "$ac_c_werror_flag"
37015 || test ! -s conftest.err'
37016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37017 (eval $ac_try) 2>&5
37019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37020 (exit $ac_status); }; } &&
37021 { ac_try='test -s conftest$ac_exeext'
37022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37023 (eval $ac_try) 2>&5
37025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026 (exit $ac_status); }; }; then
37027 ac_cv_lib_sasl_sasl_client_init=yes
37029 echo "$as_me: failed program was:" >&5
37030 sed 's/^/| /' conftest.$ac_ext >&5
37032 ac_cv_lib_sasl_sasl_client_init=no
37034 rm -f conftest.err conftest.$ac_objext \
37035 conftest$ac_exeext conftest.$ac_ext
37036 LIBS=$ac_check_lib_save_LIBS
37038 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37039 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37040 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37041 ol_link_sasl="-lsasl"
37048 if test $ol_link_sasl = no ; then
37049 if test $ol_with_cyrus_sasl != auto ; then
37050 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37051 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37052 { (exit 1); exit 1; }; }
37054 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37055 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37056 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37057 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37058 if test $ol_link_tls = no ; then
37059 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37060 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37064 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37065 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37066 if test "${ol_cv_sasl_compat+set}" = set; then
37067 echo $ECHO_N "(cached) $ECHO_C" >&6
37070 cat >conftest.$ac_ext <<_ACEOF
37073 cat confdefs.h >>conftest.$ac_ext
37074 cat >>conftest.$ac_ext <<_ACEOF
37075 /* end confdefs.h. */
37077 #ifdef HAVE_SASL_SASL_H
37078 #include <sasl/sasl.h>
37083 /* Require 2.1.15+ */
37084 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
37085 char *__sasl_compat = "2.2+ or better okay (we guess)";
37086 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
37087 && SASL_VERSION_STEP >=15
37088 char *__sasl_compat = "2.1.15+ or better okay";
37092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37093 $EGREP "__sasl_compat" >/dev/null 2>&1; then
37094 ol_cv_sasl_compat=yes
37096 ol_cv_sasl_compat=no
37101 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37102 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37104 if test $ol_cv_sasl_compat = no ; then
37106 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37107 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37108 { (exit 1); exit 1; }; }
37112 cat >>confdefs.h <<\_ACEOF
37113 #define HAVE_CYRUS_SASL 1
37116 SASL_LIBS="$ol_link_sasl"
37117 if test $ol_enable_spasswd != no ; then
37118 ol_link_spasswd=yes
37121 ac_save_LIBS="$LIBS"
37122 LIBS="$LIBS $ol_link_sasl"
37123 echo "$as_me:$LINENO: checking for sasl_version" >&5
37124 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37125 if test "${ac_cv_func_sasl_version+set}" = set; then
37126 echo $ECHO_N "(cached) $ECHO_C" >&6
37128 cat >conftest.$ac_ext <<_ACEOF
37131 cat confdefs.h >>conftest.$ac_ext
37132 cat >>conftest.$ac_ext <<_ACEOF
37133 /* end confdefs.h. */
37134 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37136 #define sasl_version innocuous_sasl_version
37138 /* System header to define __stub macros and hopefully few prototypes,
37139 which can conflict with char sasl_version (); below.
37140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37141 <limits.h> exists even on freestanding compilers. */
37144 # include <limits.h>
37146 # include <assert.h>
37149 #undef sasl_version
37151 /* Override any gcc2 internal prototype to avoid an error. */
37156 /* We use char because int might match the return type of a gcc2
37157 builtin and then its argument prototype would still apply. */
37158 char sasl_version ();
37159 /* The GNU C library defines this for functions which it implements
37160 to always fail with ENOSYS. Some functions are actually named
37161 something starting with __ and the normal name is an alias. */
37162 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37165 char (*f) () = sasl_version;
37174 return f != sasl_version;
37179 rm -f conftest.$ac_objext conftest$ac_exeext
37180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37181 (eval $ac_link) 2>conftest.er1
37183 grep -v '^ *+' conftest.er1 >conftest.err
37185 cat conftest.err >&5
37186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37187 (exit $ac_status); } &&
37188 { ac_try='test -z "$ac_c_werror_flag"
37189 || test ! -s conftest.err'
37190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37191 (eval $ac_try) 2>&5
37193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194 (exit $ac_status); }; } &&
37195 { ac_try='test -s conftest$ac_exeext'
37196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37197 (eval $ac_try) 2>&5
37199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200 (exit $ac_status); }; }; then
37201 ac_cv_func_sasl_version=yes
37203 echo "$as_me: failed program was:" >&5
37204 sed 's/^/| /' conftest.$ac_ext >&5
37206 ac_cv_func_sasl_version=no
37208 rm -f conftest.err conftest.$ac_objext \
37209 conftest$ac_exeext conftest.$ac_ext
37211 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37212 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37213 if test $ac_cv_func_sasl_version = yes; then
37215 cat >>confdefs.h <<\_ACEOF
37216 #define HAVE_SASL_VERSION 1
37221 LIBS="$ac_save_LIBS"
37227 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37228 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37229 if test $ol_link_tls = no ; then
37230 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37231 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37235 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37237 if test -r /dev/urandom ; then
37238 dev="/dev/urandom";
37239 elif test -r /idev/urandom ; then
37240 dev="/idev/urandom";
37241 elif test -r /dev/srandom ; then
37242 dev="/dev/srandom";
37243 elif test -r /dev/random ; then
37245 elif test -r /idev/random ; then
37246 dev="/idev/random";
37249 if test $dev != no ; then
37251 cat >>confdefs.h <<_ACEOF
37252 #define URANDOM_DEVICE "$dev"
37259 if test $ol_with_fetch != no ; then
37261 LIBS="-lfetch -lcom_err $LIBS"
37262 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37263 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37264 if test "${ol_cv_lib_fetch+set}" = set; then
37265 echo $ECHO_N "(cached) $ECHO_C" >&6
37268 cat >conftest.$ac_ext <<_ACEOF
37271 cat confdefs.h >>conftest.$ac_ext
37272 cat >>conftest.$ac_ext <<_ACEOF
37273 /* end confdefs.h. */
37275 #include <sys/param.h>
37281 struct url *u = fetchParseURL("file:///");
37286 rm -f conftest.$ac_objext conftest$ac_exeext
37287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37288 (eval $ac_link) 2>conftest.er1
37290 grep -v '^ *+' conftest.er1 >conftest.err
37292 cat conftest.err >&5
37293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294 (exit $ac_status); } &&
37295 { ac_try='test -z "$ac_c_werror_flag"
37296 || test ! -s conftest.err'
37297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37298 (eval $ac_try) 2>&5
37300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37301 (exit $ac_status); }; } &&
37302 { ac_try='test -s conftest$ac_exeext'
37303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37304 (eval $ac_try) 2>&5
37306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37307 (exit $ac_status); }; }; then
37308 ol_cv_lib_fetch=yes
37310 echo "$as_me: failed program was:" >&5
37311 sed 's/^/| /' conftest.$ac_ext >&5
37315 rm -f conftest.err conftest.$ac_objext \
37316 conftest$ac_exeext conftest.$ac_ext
37318 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37319 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37321 if test $ol_cv_lib_fetch != no ; then
37322 ol_link_fetch="-lfetch -lcom_err"
37324 cat >>confdefs.h <<\_ACEOF
37325 #define HAVE_FETCH 1
37331 if test $ol_cv_lib_fetch != no ; then
37332 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37333 ol_link_fetch=freebsd
37335 elif test $ol_with_fetch != auto ; then
37336 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37337 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37338 { (exit 1); exit 1; }; }
37342 if test $ol_enable_crypt != no ; then
37344 LIBS="$TLS_LIBS $LIBS"
37346 echo "$as_me:$LINENO: checking for crypt" >&5
37347 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37348 if test "${ac_cv_func_crypt+set}" = set; then
37349 echo $ECHO_N "(cached) $ECHO_C" >&6
37351 cat >conftest.$ac_ext <<_ACEOF
37354 cat confdefs.h >>conftest.$ac_ext
37355 cat >>conftest.$ac_ext <<_ACEOF
37356 /* end confdefs.h. */
37357 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37359 #define crypt innocuous_crypt
37361 /* System header to define __stub macros and hopefully few prototypes,
37362 which can conflict with char crypt (); below.
37363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37364 <limits.h> exists even on freestanding compilers. */
37367 # include <limits.h>
37369 # include <assert.h>
37374 /* Override any gcc2 internal prototype to avoid an error. */
37379 /* We use char because int might match the return type of a gcc2
37380 builtin and then its argument prototype would still apply. */
37382 /* The GNU C library defines this for functions which it implements
37383 to always fail with ENOSYS. Some functions are actually named
37384 something starting with __ and the normal name is an alias. */
37385 #if defined (__stub_crypt) || defined (__stub___crypt)
37388 char (*f) () = crypt;
37402 rm -f conftest.$ac_objext conftest$ac_exeext
37403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37404 (eval $ac_link) 2>conftest.er1
37406 grep -v '^ *+' conftest.er1 >conftest.err
37408 cat conftest.err >&5
37409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410 (exit $ac_status); } &&
37411 { ac_try='test -z "$ac_c_werror_flag"
37412 || test ! -s conftest.err'
37413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37414 (eval $ac_try) 2>&5
37416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417 (exit $ac_status); }; } &&
37418 { ac_try='test -s conftest$ac_exeext'
37419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37420 (eval $ac_try) 2>&5
37422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37423 (exit $ac_status); }; }; then
37424 ac_cv_func_crypt=yes
37426 echo "$as_me: failed program was:" >&5
37427 sed 's/^/| /' conftest.$ac_ext >&5
37429 ac_cv_func_crypt=no
37431 rm -f conftest.err conftest.$ac_objext \
37432 conftest$ac_exeext conftest.$ac_ext
37434 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37435 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37436 if test $ac_cv_func_crypt = yes; then
37441 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37442 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37443 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37444 echo $ECHO_N "(cached) $ECHO_C" >&6
37446 ac_check_lib_save_LIBS=$LIBS
37447 LIBS="-lcrypt $LIBS"
37448 cat >conftest.$ac_ext <<_ACEOF
37451 cat confdefs.h >>conftest.$ac_ext
37452 cat >>conftest.$ac_ext <<_ACEOF
37453 /* end confdefs.h. */
37455 /* Override any gcc2 internal prototype to avoid an error. */
37459 /* We use char because int might match the return type of a gcc2
37460 builtin and then its argument prototype would still apply. */
37470 rm -f conftest.$ac_objext conftest$ac_exeext
37471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37472 (eval $ac_link) 2>conftest.er1
37474 grep -v '^ *+' conftest.er1 >conftest.err
37476 cat conftest.err >&5
37477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37478 (exit $ac_status); } &&
37479 { ac_try='test -z "$ac_c_werror_flag"
37480 || test ! -s conftest.err'
37481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37482 (eval $ac_try) 2>&5
37484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485 (exit $ac_status); }; } &&
37486 { ac_try='test -s conftest$ac_exeext'
37487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37488 (eval $ac_try) 2>&5
37490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37491 (exit $ac_status); }; }; then
37492 ac_cv_lib_crypt_crypt=yes
37494 echo "$as_me: failed program was:" >&5
37495 sed 's/^/| /' conftest.$ac_ext >&5
37497 ac_cv_lib_crypt_crypt=no
37499 rm -f conftest.err conftest.$ac_objext \
37500 conftest$ac_exeext conftest.$ac_ext
37501 LIBS=$ac_check_lib_save_LIBS
37503 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37504 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37505 if test $ac_cv_lib_crypt_crypt = yes; then
37506 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37517 if test $have_crypt = yes ; then
37519 cat >>confdefs.h <<\_ACEOF
37520 #define HAVE_CRYPT 1
37524 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37525 echo "$as_me: WARNING: could not find crypt" >&2;}
37526 if test $ol_enable_crypt = yes ; then
37527 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37528 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37529 { (exit 1); exit 1; }; }
37532 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37533 echo "$as_me: WARNING: disabling crypt support" >&2;}
37538 if test $ol_enable_proctitle != no ; then
37539 echo "$as_me:$LINENO: checking for setproctitle" >&5
37540 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37541 if test "${ac_cv_func_setproctitle+set}" = set; then
37542 echo $ECHO_N "(cached) $ECHO_C" >&6
37544 cat >conftest.$ac_ext <<_ACEOF
37547 cat confdefs.h >>conftest.$ac_ext
37548 cat >>conftest.$ac_ext <<_ACEOF
37549 /* end confdefs.h. */
37550 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37552 #define setproctitle innocuous_setproctitle
37554 /* System header to define __stub macros and hopefully few prototypes,
37555 which can conflict with char setproctitle (); below.
37556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37557 <limits.h> exists even on freestanding compilers. */
37560 # include <limits.h>
37562 # include <assert.h>
37565 #undef setproctitle
37567 /* Override any gcc2 internal prototype to avoid an error. */
37572 /* We use char because int might match the return type of a gcc2
37573 builtin and then its argument prototype would still apply. */
37574 char setproctitle ();
37575 /* The GNU C library defines this for functions which it implements
37576 to always fail with ENOSYS. Some functions are actually named
37577 something starting with __ and the normal name is an alias. */
37578 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37581 char (*f) () = setproctitle;
37590 return f != setproctitle;
37595 rm -f conftest.$ac_objext conftest$ac_exeext
37596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37597 (eval $ac_link) 2>conftest.er1
37599 grep -v '^ *+' conftest.er1 >conftest.err
37601 cat conftest.err >&5
37602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37603 (exit $ac_status); } &&
37604 { ac_try='test -z "$ac_c_werror_flag"
37605 || test ! -s conftest.err'
37606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37607 (eval $ac_try) 2>&5
37609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37610 (exit $ac_status); }; } &&
37611 { ac_try='test -s conftest$ac_exeext'
37612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37613 (eval $ac_try) 2>&5
37615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616 (exit $ac_status); }; }; then
37617 ac_cv_func_setproctitle=yes
37619 echo "$as_me: failed program was:" >&5
37620 sed 's/^/| /' conftest.$ac_ext >&5
37622 ac_cv_func_setproctitle=no
37624 rm -f conftest.err conftest.$ac_objext \
37625 conftest$ac_exeext conftest.$ac_ext
37627 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37628 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37629 if test $ac_cv_func_setproctitle = yes; then
37630 have_setproctitle=yes
37633 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37634 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37635 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37636 echo $ECHO_N "(cached) $ECHO_C" >&6
37638 ac_check_lib_save_LIBS=$LIBS
37639 LIBS="-lutil $LIBS"
37640 cat >conftest.$ac_ext <<_ACEOF
37643 cat confdefs.h >>conftest.$ac_ext
37644 cat >>conftest.$ac_ext <<_ACEOF
37645 /* end confdefs.h. */
37647 /* Override any gcc2 internal prototype to avoid an error. */
37651 /* We use char because int might match the return type of a gcc2
37652 builtin and then its argument prototype would still apply. */
37653 char setproctitle ();
37662 rm -f conftest.$ac_objext conftest$ac_exeext
37663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37664 (eval $ac_link) 2>conftest.er1
37666 grep -v '^ *+' conftest.er1 >conftest.err
37668 cat conftest.err >&5
37669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37670 (exit $ac_status); } &&
37671 { ac_try='test -z "$ac_c_werror_flag"
37672 || test ! -s conftest.err'
37673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37674 (eval $ac_try) 2>&5
37676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37677 (exit $ac_status); }; } &&
37678 { ac_try='test -s conftest$ac_exeext'
37679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37680 (eval $ac_try) 2>&5
37682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37683 (exit $ac_status); }; }; then
37684 ac_cv_lib_util_setproctitle=yes
37686 echo "$as_me: failed program was:" >&5
37687 sed 's/^/| /' conftest.$ac_ext >&5
37689 ac_cv_lib_util_setproctitle=no
37691 rm -f conftest.err conftest.$ac_objext \
37692 conftest$ac_exeext conftest.$ac_ext
37693 LIBS=$ac_check_lib_save_LIBS
37695 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37696 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37697 if test $ac_cv_lib_util_setproctitle = yes; then
37698 have_setproctitle=yes
37699 LUTIL_LIBS="$LUTIL_LIBS -lutil"
37701 have_setproctitle=no
37703 "setproctitle.$ac_objext" | \
37704 *" setproctitle.$ac_objext" | \
37705 "setproctitle.$ac_objext "* | \
37706 *" setproctitle.$ac_objext "* ) ;;
37707 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37710 LIBSRCS="$LIBSRCS setproctitle.c"
37716 if test $have_setproctitle = yes ; then
37718 cat >>confdefs.h <<\_ACEOF
37719 #define HAVE_SETPROCTITLE 1
37725 if test $ol_enable_slp != no ; then
37727 for ac_header in slp.h
37729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37731 echo "$as_me:$LINENO: checking for $ac_header" >&5
37732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37734 echo $ECHO_N "(cached) $ECHO_C" >&6
37736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37739 # Is the header compilable?
37740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37742 cat >conftest.$ac_ext <<_ACEOF
37745 cat confdefs.h >>conftest.$ac_ext
37746 cat >>conftest.$ac_ext <<_ACEOF
37747 /* end confdefs.h. */
37748 $ac_includes_default
37749 #include <$ac_header>
37751 rm -f conftest.$ac_objext
37752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37753 (eval $ac_compile) 2>conftest.er1
37755 grep -v '^ *+' conftest.er1 >conftest.err
37757 cat conftest.err >&5
37758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37759 (exit $ac_status); } &&
37760 { ac_try='test -z "$ac_c_werror_flag"
37761 || test ! -s conftest.err'
37762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37763 (eval $ac_try) 2>&5
37765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37766 (exit $ac_status); }; } &&
37767 { ac_try='test -s conftest.$ac_objext'
37768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37769 (eval $ac_try) 2>&5
37771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772 (exit $ac_status); }; }; then
37773 ac_header_compiler=yes
37775 echo "$as_me: failed program was:" >&5
37776 sed 's/^/| /' conftest.$ac_ext >&5
37778 ac_header_compiler=no
37780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37782 echo "${ECHO_T}$ac_header_compiler" >&6
37784 # Is the header present?
37785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37787 cat >conftest.$ac_ext <<_ACEOF
37790 cat confdefs.h >>conftest.$ac_ext
37791 cat >>conftest.$ac_ext <<_ACEOF
37792 /* end confdefs.h. */
37793 #include <$ac_header>
37795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37798 grep -v '^ *+' conftest.er1 >conftest.err
37800 cat conftest.err >&5
37801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802 (exit $ac_status); } >/dev/null; then
37803 if test -s conftest.err; then
37804 ac_cpp_err=$ac_c_preproc_warn_flag
37805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37812 if test -z "$ac_cpp_err"; then
37813 ac_header_preproc=yes
37815 echo "$as_me: failed program was:" >&5
37816 sed 's/^/| /' conftest.$ac_ext >&5
37818 ac_header_preproc=no
37820 rm -f conftest.err conftest.$ac_ext
37821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37822 echo "${ECHO_T}$ac_header_preproc" >&6
37824 # So? What about this header?
37825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37831 ac_header_preproc=yes
37834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37837 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37841 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37848 ## --------------------------------------------- ##
37849 ## Report this to <http://www.openldap.org/its/> ##
37850 ## --------------------------------------------- ##
37853 sed "s/^/$as_me: WARNING: /" >&2
37856 echo "$as_me:$LINENO: checking for $ac_header" >&5
37857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37859 echo $ECHO_N "(cached) $ECHO_C" >&6
37861 eval "$as_ac_Header=\$ac_header_preproc"
37863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37868 cat >>confdefs.h <<_ACEOF
37869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37877 if test $ac_cv_header_slp_h = yes ; then
37878 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
37879 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
37880 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
37881 echo $ECHO_N "(cached) $ECHO_C" >&6
37883 ac_check_lib_save_LIBS=$LIBS
37885 cat >conftest.$ac_ext <<_ACEOF
37888 cat confdefs.h >>conftest.$ac_ext
37889 cat >>conftest.$ac_ext <<_ACEOF
37890 /* end confdefs.h. */
37892 /* Override any gcc2 internal prototype to avoid an error. */
37896 /* We use char because int might match the return type of a gcc2
37897 builtin and then its argument prototype would still apply. */
37907 rm -f conftest.$ac_objext conftest$ac_exeext
37908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37909 (eval $ac_link) 2>conftest.er1
37911 grep -v '^ *+' conftest.er1 >conftest.err
37913 cat conftest.err >&5
37914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37915 (exit $ac_status); } &&
37916 { ac_try='test -z "$ac_c_werror_flag"
37917 || test ! -s conftest.err'
37918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37919 (eval $ac_try) 2>&5
37921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922 (exit $ac_status); }; } &&
37923 { ac_try='test -s conftest$ac_exeext'
37924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37925 (eval $ac_try) 2>&5
37927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37928 (exit $ac_status); }; }; then
37929 ac_cv_lib_slp_SLPOpen=yes
37931 echo "$as_me: failed program was:" >&5
37932 sed 's/^/| /' conftest.$ac_ext >&5
37934 ac_cv_lib_slp_SLPOpen=no
37936 rm -f conftest.err conftest.$ac_objext \
37937 conftest$ac_exeext conftest.$ac_ext
37938 LIBS=$ac_check_lib_save_LIBS
37940 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
37941 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
37942 if test $ac_cv_lib_slp_SLPOpen = yes; then
37948 if test $have_slp = yes ; then
37950 cat >>confdefs.h <<\_ACEOF
37954 SLAPD_SLP_LIBS=-lslp
37957 elif test $ol_enable_slp = yes ; then
37958 { { echo "$as_me:$LINENO: error: SLP not found" >&5
37959 echo "$as_me: error: SLP not found" >&2;}
37960 { (exit 1); exit 1; }; }
37965 echo "$as_me:$LINENO: checking for mode_t" >&5
37966 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
37967 if test "${ac_cv_type_mode_t+set}" = set; then
37968 echo $ECHO_N "(cached) $ECHO_C" >&6
37970 cat >conftest.$ac_ext <<_ACEOF
37973 cat confdefs.h >>conftest.$ac_ext
37974 cat >>conftest.$ac_ext <<_ACEOF
37975 /* end confdefs.h. */
37976 $ac_includes_default
37982 if (sizeof (mode_t))
37988 rm -f conftest.$ac_objext
37989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37990 (eval $ac_compile) 2>conftest.er1
37992 grep -v '^ *+' conftest.er1 >conftest.err
37994 cat conftest.err >&5
37995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37996 (exit $ac_status); } &&
37997 { ac_try='test -z "$ac_c_werror_flag"
37998 || test ! -s conftest.err'
37999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38000 (eval $ac_try) 2>&5
38002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38003 (exit $ac_status); }; } &&
38004 { ac_try='test -s conftest.$ac_objext'
38005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38006 (eval $ac_try) 2>&5
38008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38009 (exit $ac_status); }; }; then
38010 ac_cv_type_mode_t=yes
38012 echo "$as_me: failed program was:" >&5
38013 sed 's/^/| /' conftest.$ac_ext >&5
38015 ac_cv_type_mode_t=no
38017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38019 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38020 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38021 if test $ac_cv_type_mode_t = yes; then
38025 cat >>confdefs.h <<_ACEOF
38031 echo "$as_me:$LINENO: checking for off_t" >&5
38032 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38033 if test "${ac_cv_type_off_t+set}" = set; then
38034 echo $ECHO_N "(cached) $ECHO_C" >&6
38036 cat >conftest.$ac_ext <<_ACEOF
38039 cat confdefs.h >>conftest.$ac_ext
38040 cat >>conftest.$ac_ext <<_ACEOF
38041 /* end confdefs.h. */
38042 $ac_includes_default
38048 if (sizeof (off_t))
38054 rm -f conftest.$ac_objext
38055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38056 (eval $ac_compile) 2>conftest.er1
38058 grep -v '^ *+' conftest.er1 >conftest.err
38060 cat conftest.err >&5
38061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38062 (exit $ac_status); } &&
38063 { ac_try='test -z "$ac_c_werror_flag"
38064 || test ! -s conftest.err'
38065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38066 (eval $ac_try) 2>&5
38068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069 (exit $ac_status); }; } &&
38070 { ac_try='test -s conftest.$ac_objext'
38071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38072 (eval $ac_try) 2>&5
38074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38075 (exit $ac_status); }; }; then
38076 ac_cv_type_off_t=yes
38078 echo "$as_me: failed program was:" >&5
38079 sed 's/^/| /' conftest.$ac_ext >&5
38081 ac_cv_type_off_t=no
38083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38085 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38086 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38087 if test $ac_cv_type_off_t = yes; then
38091 cat >>confdefs.h <<_ACEOF
38097 echo "$as_me:$LINENO: checking for pid_t" >&5
38098 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38099 if test "${ac_cv_type_pid_t+set}" = set; then
38100 echo $ECHO_N "(cached) $ECHO_C" >&6
38102 cat >conftest.$ac_ext <<_ACEOF
38105 cat confdefs.h >>conftest.$ac_ext
38106 cat >>conftest.$ac_ext <<_ACEOF
38107 /* end confdefs.h. */
38108 $ac_includes_default
38114 if (sizeof (pid_t))
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_cv_type_pid_t=yes
38144 echo "$as_me: failed program was:" >&5
38145 sed 's/^/| /' conftest.$ac_ext >&5
38147 ac_cv_type_pid_t=no
38149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38151 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38152 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38153 if test $ac_cv_type_pid_t = yes; then
38157 cat >>confdefs.h <<_ACEOF
38163 echo "$as_me:$LINENO: checking for ssize_t" >&5
38164 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38165 if test "${ac_cv_type_ssize_t+set}" = set; then
38166 echo $ECHO_N "(cached) $ECHO_C" >&6
38168 cat >conftest.$ac_ext <<_ACEOF
38171 cat confdefs.h >>conftest.$ac_ext
38172 cat >>conftest.$ac_ext <<_ACEOF
38173 /* end confdefs.h. */
38174 $ac_includes_default
38180 if (sizeof (ssize_t))
38186 rm -f conftest.$ac_objext
38187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38188 (eval $ac_compile) 2>conftest.er1
38190 grep -v '^ *+' conftest.er1 >conftest.err
38192 cat conftest.err >&5
38193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194 (exit $ac_status); } &&
38195 { ac_try='test -z "$ac_c_werror_flag"
38196 || test ! -s conftest.err'
38197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38198 (eval $ac_try) 2>&5
38200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38201 (exit $ac_status); }; } &&
38202 { ac_try='test -s conftest.$ac_objext'
38203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38204 (eval $ac_try) 2>&5
38206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207 (exit $ac_status); }; }; then
38208 ac_cv_type_ssize_t=yes
38210 echo "$as_me: failed program was:" >&5
38211 sed 's/^/| /' conftest.$ac_ext >&5
38213 ac_cv_type_ssize_t=no
38215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38217 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
38218 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
38219 if test $ac_cv_type_ssize_t = yes; then
38223 cat >>confdefs.h <<_ACEOF
38224 #define ssize_t signed int
38229 echo "$as_me:$LINENO: checking for caddr_t" >&5
38230 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
38231 if test "${ac_cv_type_caddr_t+set}" = set; then
38232 echo $ECHO_N "(cached) $ECHO_C" >&6
38234 cat >conftest.$ac_ext <<_ACEOF
38237 cat confdefs.h >>conftest.$ac_ext
38238 cat >>conftest.$ac_ext <<_ACEOF
38239 /* end confdefs.h. */
38240 $ac_includes_default
38246 if (sizeof (caddr_t))
38252 rm -f conftest.$ac_objext
38253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38254 (eval $ac_compile) 2>conftest.er1
38256 grep -v '^ *+' conftest.er1 >conftest.err
38258 cat conftest.err >&5
38259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38260 (exit $ac_status); } &&
38261 { ac_try='test -z "$ac_c_werror_flag"
38262 || test ! -s conftest.err'
38263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38264 (eval $ac_try) 2>&5
38266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38267 (exit $ac_status); }; } &&
38268 { ac_try='test -s conftest.$ac_objext'
38269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38270 (eval $ac_try) 2>&5
38272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38273 (exit $ac_status); }; }; then
38274 ac_cv_type_caddr_t=yes
38276 echo "$as_me: failed program was:" >&5
38277 sed 's/^/| /' conftest.$ac_ext >&5
38279 ac_cv_type_caddr_t=no
38281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38283 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
38284 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
38285 if test $ac_cv_type_caddr_t = yes; then
38289 cat >>confdefs.h <<_ACEOF
38290 #define caddr_t char *
38295 echo "$as_me:$LINENO: checking for size_t" >&5
38296 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
38297 if test "${ac_cv_type_size_t+set}" = set; then
38298 echo $ECHO_N "(cached) $ECHO_C" >&6
38300 cat >conftest.$ac_ext <<_ACEOF
38303 cat confdefs.h >>conftest.$ac_ext
38304 cat >>conftest.$ac_ext <<_ACEOF
38305 /* end confdefs.h. */
38306 $ac_includes_default
38312 if (sizeof (size_t))
38318 rm -f conftest.$ac_objext
38319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38320 (eval $ac_compile) 2>conftest.er1
38322 grep -v '^ *+' conftest.er1 >conftest.err
38324 cat conftest.err >&5
38325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38326 (exit $ac_status); } &&
38327 { ac_try='test -z "$ac_c_werror_flag"
38328 || test ! -s conftest.err'
38329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38330 (eval $ac_try) 2>&5
38332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38333 (exit $ac_status); }; } &&
38334 { ac_try='test -s conftest.$ac_objext'
38335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38336 (eval $ac_try) 2>&5
38338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38339 (exit $ac_status); }; }; then
38340 ac_cv_type_size_t=yes
38342 echo "$as_me: failed program was:" >&5
38343 sed 's/^/| /' conftest.$ac_ext >&5
38345 ac_cv_type_size_t=no
38347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38349 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38350 echo "${ECHO_T}$ac_cv_type_size_t" >&6
38351 if test $ac_cv_type_size_t = yes; then
38355 cat >>confdefs.h <<_ACEOF
38356 #define size_t unsigned
38362 echo "$as_me:$LINENO: checking for long long" >&5
38363 echo $ECHO_N "checking for long long... $ECHO_C" >&6
38364 if test "${ac_cv_type_long_long+set}" = set; then
38365 echo $ECHO_N "(cached) $ECHO_C" >&6
38367 cat >conftest.$ac_ext <<_ACEOF
38370 cat confdefs.h >>conftest.$ac_ext
38371 cat >>conftest.$ac_ext <<_ACEOF
38372 /* end confdefs.h. */
38373 $ac_includes_default
38377 if ((long long *) 0)
38379 if (sizeof (long long))
38385 rm -f conftest.$ac_objext
38386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38387 (eval $ac_compile) 2>conftest.er1
38389 grep -v '^ *+' conftest.er1 >conftest.err
38391 cat conftest.err >&5
38392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393 (exit $ac_status); } &&
38394 { ac_try='test -z "$ac_c_werror_flag"
38395 || test ! -s conftest.err'
38396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38397 (eval $ac_try) 2>&5
38399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400 (exit $ac_status); }; } &&
38401 { ac_try='test -s conftest.$ac_objext'
38402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38403 (eval $ac_try) 2>&5
38405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38406 (exit $ac_status); }; }; then
38407 ac_cv_type_long_long=yes
38409 echo "$as_me: failed program was:" >&5
38410 sed 's/^/| /' conftest.$ac_ext >&5
38412 ac_cv_type_long_long=no
38414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38416 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
38417 echo "${ECHO_T}$ac_cv_type_long_long" >&6
38418 if test $ac_cv_type_long_long = yes; then
38420 cat >>confdefs.h <<_ACEOF
38421 #define HAVE_LONG_LONG 1
38427 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
38428 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
38429 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
38430 echo $ECHO_N "(cached) $ECHO_C" >&6
38432 cat >conftest.$ac_ext <<_ACEOF
38435 cat confdefs.h >>conftest.$ac_ext
38436 cat >>conftest.$ac_ext <<_ACEOF
38437 /* end confdefs.h. */
38438 $ac_includes_default
38442 if ((ptrdiff_t *) 0)
38444 if (sizeof (ptrdiff_t))
38450 rm -f conftest.$ac_objext
38451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38452 (eval $ac_compile) 2>conftest.er1
38454 grep -v '^ *+' conftest.er1 >conftest.err
38456 cat conftest.err >&5
38457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38458 (exit $ac_status); } &&
38459 { ac_try='test -z "$ac_c_werror_flag"
38460 || test ! -s conftest.err'
38461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38462 (eval $ac_try) 2>&5
38464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465 (exit $ac_status); }; } &&
38466 { ac_try='test -s conftest.$ac_objext'
38467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38468 (eval $ac_try) 2>&5
38470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38471 (exit $ac_status); }; }; then
38472 ac_cv_type_ptrdiff_t=yes
38474 echo "$as_me: failed program was:" >&5
38475 sed 's/^/| /' conftest.$ac_ext >&5
38477 ac_cv_type_ptrdiff_t=no
38479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38481 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
38482 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
38483 if test $ac_cv_type_ptrdiff_t = yes; then
38485 cat >>confdefs.h <<_ACEOF
38486 #define HAVE_PTRDIFF_T 1
38493 echo "$as_me:$LINENO: checking for socklen_t" >&5
38494 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
38495 if test "${ac_cv_type_socklen_t+set}" = set; then
38496 echo $ECHO_N "(cached) $ECHO_C" >&6
38498 cat >conftest.$ac_ext <<_ACEOF
38501 cat confdefs.h >>conftest.$ac_ext
38502 cat >>conftest.$ac_ext <<_ACEOF
38503 /* end confdefs.h. */
38504 $ac_includes_default
38505 #ifdef HAVE_SYS_SOCKET_H
38506 #include <sys/socket.h>
38513 if ((socklen_t *) 0)
38515 if (sizeof (socklen_t))
38521 rm -f conftest.$ac_objext
38522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38523 (eval $ac_compile) 2>conftest.er1
38525 grep -v '^ *+' conftest.er1 >conftest.err
38527 cat conftest.err >&5
38528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38529 (exit $ac_status); } &&
38530 { ac_try='test -z "$ac_c_werror_flag"
38531 || test ! -s conftest.err'
38532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38533 (eval $ac_try) 2>&5
38535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38536 (exit $ac_status); }; } &&
38537 { ac_try='test -s conftest.$ac_objext'
38538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38539 (eval $ac_try) 2>&5
38541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38542 (exit $ac_status); }; }; then
38543 ac_cv_type_socklen_t=yes
38545 echo "$as_me: failed program was:" >&5
38546 sed 's/^/| /' conftest.$ac_ext >&5
38548 ac_cv_type_socklen_t=no
38550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38552 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
38553 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
38554 if test $ac_cv_type_socklen_t = yes; then
38558 cat >>confdefs.h <<_ACEOF
38559 #define socklen_t int
38565 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
38566 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
38567 if test "${ac_cv_type_signal+set}" = set; then
38568 echo $ECHO_N "(cached) $ECHO_C" >&6
38570 cat >conftest.$ac_ext <<_ACEOF
38573 cat confdefs.h >>conftest.$ac_ext
38574 cat >>conftest.$ac_ext <<_ACEOF
38575 /* end confdefs.h. */
38576 #include <sys/types.h>
38577 #include <signal.h>
38582 extern "C" void (*signal (int, void (*)(int)))(int);
38584 void (*signal ()) ();
38595 rm -f conftest.$ac_objext
38596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38597 (eval $ac_compile) 2>conftest.er1
38599 grep -v '^ *+' conftest.er1 >conftest.err
38601 cat conftest.err >&5
38602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603 (exit $ac_status); } &&
38604 { ac_try='test -z "$ac_c_werror_flag"
38605 || test ! -s conftest.err'
38606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38607 (eval $ac_try) 2>&5
38609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38610 (exit $ac_status); }; } &&
38611 { ac_try='test -s conftest.$ac_objext'
38612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38613 (eval $ac_try) 2>&5
38615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38616 (exit $ac_status); }; }; then
38617 ac_cv_type_signal=void
38619 echo "$as_me: failed program was:" >&5
38620 sed 's/^/| /' conftest.$ac_ext >&5
38622 ac_cv_type_signal=int
38624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38626 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
38627 echo "${ECHO_T}$ac_cv_type_signal" >&6
38629 cat >>confdefs.h <<_ACEOF
38630 #define RETSIGTYPE $ac_cv_type_signal
38635 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
38636 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
38637 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
38638 echo $ECHO_N "(cached) $ECHO_C" >&6
38640 cat >conftest.$ac_ext <<_ACEOF
38643 cat confdefs.h >>conftest.$ac_ext
38644 cat >>conftest.$ac_ext <<_ACEOF
38645 /* end confdefs.h. */
38646 $ac_includes_default
38647 #include <signal.h>
38653 if ((sig_atomic_t *) 0)
38655 if (sizeof (sig_atomic_t))
38661 rm -f conftest.$ac_objext
38662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38663 (eval $ac_compile) 2>conftest.er1
38665 grep -v '^ *+' conftest.er1 >conftest.err
38667 cat conftest.err >&5
38668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669 (exit $ac_status); } &&
38670 { ac_try='test -z "$ac_c_werror_flag"
38671 || test ! -s conftest.err'
38672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38673 (eval $ac_try) 2>&5
38675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38676 (exit $ac_status); }; } &&
38677 { ac_try='test -s conftest.$ac_objext'
38678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38679 (eval $ac_try) 2>&5
38681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38682 (exit $ac_status); }; }; then
38683 ac_cv_type_sig_atomic_t=yes
38685 echo "$as_me: failed program was:" >&5
38686 sed 's/^/| /' conftest.$ac_ext >&5
38688 ac_cv_type_sig_atomic_t=no
38690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38692 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
38693 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
38694 if test $ac_cv_type_sig_atomic_t = yes; then
38698 cat >>confdefs.h <<_ACEOF
38699 #define sig_atomic_t int
38705 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
38706 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
38707 if test "${ac_cv_type_uid_t+set}" = set; then
38708 echo $ECHO_N "(cached) $ECHO_C" >&6
38710 cat >conftest.$ac_ext <<_ACEOF
38713 cat confdefs.h >>conftest.$ac_ext
38714 cat >>conftest.$ac_ext <<_ACEOF
38715 /* end confdefs.h. */
38716 #include <sys/types.h>
38719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38720 $EGREP "uid_t" >/dev/null 2>&1; then
38721 ac_cv_type_uid_t=yes
38723 ac_cv_type_uid_t=no
38728 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
38729 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
38730 if test $ac_cv_type_uid_t = no; then
38732 cat >>confdefs.h <<\_ACEOF
38737 cat >>confdefs.h <<\_ACEOF
38744 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
38745 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
38746 if test "${ac_cv_header_time+set}" = set; then
38747 echo $ECHO_N "(cached) $ECHO_C" >&6
38749 cat >conftest.$ac_ext <<_ACEOF
38752 cat confdefs.h >>conftest.$ac_ext
38753 cat >>conftest.$ac_ext <<_ACEOF
38754 /* end confdefs.h. */
38755 #include <sys/types.h>
38756 #include <sys/time.h>
38762 if ((struct tm *) 0)
38768 rm -f conftest.$ac_objext
38769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38770 (eval $ac_compile) 2>conftest.er1
38772 grep -v '^ *+' conftest.er1 >conftest.err
38774 cat conftest.err >&5
38775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38776 (exit $ac_status); } &&
38777 { ac_try='test -z "$ac_c_werror_flag"
38778 || test ! -s conftest.err'
38779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38780 (eval $ac_try) 2>&5
38782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38783 (exit $ac_status); }; } &&
38784 { ac_try='test -s conftest.$ac_objext'
38785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38786 (eval $ac_try) 2>&5
38788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38789 (exit $ac_status); }; }; then
38790 ac_cv_header_time=yes
38792 echo "$as_me: failed program was:" >&5
38793 sed 's/^/| /' conftest.$ac_ext >&5
38795 ac_cv_header_time=no
38797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38799 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
38800 echo "${ECHO_T}$ac_cv_header_time" >&6
38801 if test $ac_cv_header_time = yes; then
38803 cat >>confdefs.h <<\_ACEOF
38804 #define TIME_WITH_SYS_TIME 1
38809 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
38810 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
38811 if test "${ac_cv_struct_tm+set}" = set; then
38812 echo $ECHO_N "(cached) $ECHO_C" >&6
38814 cat >conftest.$ac_ext <<_ACEOF
38817 cat confdefs.h >>conftest.$ac_ext
38818 cat >>conftest.$ac_ext <<_ACEOF
38819 /* end confdefs.h. */
38820 #include <sys/types.h>
38826 struct tm *tp; tp->tm_sec;
38831 rm -f conftest.$ac_objext
38832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38833 (eval $ac_compile) 2>conftest.er1
38835 grep -v '^ *+' conftest.er1 >conftest.err
38837 cat conftest.err >&5
38838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38839 (exit $ac_status); } &&
38840 { ac_try='test -z "$ac_c_werror_flag"
38841 || test ! -s conftest.err'
38842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38843 (eval $ac_try) 2>&5
38845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38846 (exit $ac_status); }; } &&
38847 { ac_try='test -s conftest.$ac_objext'
38848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38849 (eval $ac_try) 2>&5
38851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38852 (exit $ac_status); }; }; then
38853 ac_cv_struct_tm=time.h
38855 echo "$as_me: failed program was:" >&5
38856 sed 's/^/| /' conftest.$ac_ext >&5
38858 ac_cv_struct_tm=sys/time.h
38860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38862 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
38863 echo "${ECHO_T}$ac_cv_struct_tm" >&6
38864 if test $ac_cv_struct_tm = sys/time.h; then
38866 cat >>confdefs.h <<\_ACEOF
38867 #define TM_IN_SYS_TIME 1
38872 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
38873 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
38874 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
38875 echo $ECHO_N "(cached) $ECHO_C" >&6
38877 cat >conftest.$ac_ext <<_ACEOF
38880 cat confdefs.h >>conftest.$ac_ext
38881 cat >>conftest.$ac_ext <<_ACEOF
38882 /* end confdefs.h. */
38883 $ac_includes_default
38887 static struct stat ac_aggr;
38888 if (ac_aggr.st_blksize)
38894 rm -f conftest.$ac_objext
38895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38896 (eval $ac_compile) 2>conftest.er1
38898 grep -v '^ *+' conftest.er1 >conftest.err
38900 cat conftest.err >&5
38901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38902 (exit $ac_status); } &&
38903 { ac_try='test -z "$ac_c_werror_flag"
38904 || test ! -s conftest.err'
38905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38906 (eval $ac_try) 2>&5
38908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38909 (exit $ac_status); }; } &&
38910 { ac_try='test -s conftest.$ac_objext'
38911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38912 (eval $ac_try) 2>&5
38914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915 (exit $ac_status); }; }; then
38916 ac_cv_member_struct_stat_st_blksize=yes
38918 echo "$as_me: failed program was:" >&5
38919 sed 's/^/| /' conftest.$ac_ext >&5
38921 cat >conftest.$ac_ext <<_ACEOF
38924 cat confdefs.h >>conftest.$ac_ext
38925 cat >>conftest.$ac_ext <<_ACEOF
38926 /* end confdefs.h. */
38927 $ac_includes_default
38931 static struct stat ac_aggr;
38932 if (sizeof ac_aggr.st_blksize)
38938 rm -f conftest.$ac_objext
38939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38940 (eval $ac_compile) 2>conftest.er1
38942 grep -v '^ *+' conftest.er1 >conftest.err
38944 cat conftest.err >&5
38945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38946 (exit $ac_status); } &&
38947 { ac_try='test -z "$ac_c_werror_flag"
38948 || test ! -s conftest.err'
38949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38950 (eval $ac_try) 2>&5
38952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38953 (exit $ac_status); }; } &&
38954 { ac_try='test -s conftest.$ac_objext'
38955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38956 (eval $ac_try) 2>&5
38958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38959 (exit $ac_status); }; }; then
38960 ac_cv_member_struct_stat_st_blksize=yes
38962 echo "$as_me: failed program was:" >&5
38963 sed 's/^/| /' conftest.$ac_ext >&5
38965 ac_cv_member_struct_stat_st_blksize=no
38967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38971 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
38972 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
38973 if test $ac_cv_member_struct_stat_st_blksize = yes; then
38975 cat >>confdefs.h <<_ACEOF
38976 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
38982 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
38983 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
38984 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
38985 echo $ECHO_N "(cached) $ECHO_C" >&6
38987 cat >conftest.$ac_ext <<_ACEOF
38990 cat confdefs.h >>conftest.$ac_ext
38991 cat >>conftest.$ac_ext <<_ACEOF
38992 /* end confdefs.h. */
38993 $ac_includes_default
38999 static struct passwd ac_aggr;
39000 if (ac_aggr.pw_gecos)
39006 rm -f conftest.$ac_objext
39007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39008 (eval $ac_compile) 2>conftest.er1
39010 grep -v '^ *+' conftest.er1 >conftest.err
39012 cat conftest.err >&5
39013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014 (exit $ac_status); } &&
39015 { ac_try='test -z "$ac_c_werror_flag"
39016 || test ! -s conftest.err'
39017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39018 (eval $ac_try) 2>&5
39020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021 (exit $ac_status); }; } &&
39022 { ac_try='test -s conftest.$ac_objext'
39023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39024 (eval $ac_try) 2>&5
39026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39027 (exit $ac_status); }; }; then
39028 ac_cv_member_struct_passwd_pw_gecos=yes
39030 echo "$as_me: failed program was:" >&5
39031 sed 's/^/| /' conftest.$ac_ext >&5
39033 cat >conftest.$ac_ext <<_ACEOF
39036 cat confdefs.h >>conftest.$ac_ext
39037 cat >>conftest.$ac_ext <<_ACEOF
39038 /* end confdefs.h. */
39039 $ac_includes_default
39045 static struct passwd ac_aggr;
39046 if (sizeof ac_aggr.pw_gecos)
39052 rm -f conftest.$ac_objext
39053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39054 (eval $ac_compile) 2>conftest.er1
39056 grep -v '^ *+' conftest.er1 >conftest.err
39058 cat conftest.err >&5
39059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39060 (exit $ac_status); } &&
39061 { ac_try='test -z "$ac_c_werror_flag"
39062 || test ! -s conftest.err'
39063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39064 (eval $ac_try) 2>&5
39066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39067 (exit $ac_status); }; } &&
39068 { ac_try='test -s conftest.$ac_objext'
39069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39070 (eval $ac_try) 2>&5
39072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39073 (exit $ac_status); }; }; then
39074 ac_cv_member_struct_passwd_pw_gecos=yes
39076 echo "$as_me: failed program was:" >&5
39077 sed 's/^/| /' conftest.$ac_ext >&5
39079 ac_cv_member_struct_passwd_pw_gecos=no
39081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39085 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39086 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39087 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39089 cat >>confdefs.h <<_ACEOF
39090 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39096 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39097 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39098 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39099 echo $ECHO_N "(cached) $ECHO_C" >&6
39101 cat >conftest.$ac_ext <<_ACEOF
39104 cat confdefs.h >>conftest.$ac_ext
39105 cat >>conftest.$ac_ext <<_ACEOF
39106 /* end confdefs.h. */
39107 $ac_includes_default
39113 static struct passwd ac_aggr;
39114 if (ac_aggr.pw_passwd)
39120 rm -f conftest.$ac_objext
39121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39122 (eval $ac_compile) 2>conftest.er1
39124 grep -v '^ *+' conftest.er1 >conftest.err
39126 cat conftest.err >&5
39127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39128 (exit $ac_status); } &&
39129 { ac_try='test -z "$ac_c_werror_flag"
39130 || test ! -s conftest.err'
39131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39132 (eval $ac_try) 2>&5
39134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39135 (exit $ac_status); }; } &&
39136 { ac_try='test -s conftest.$ac_objext'
39137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39138 (eval $ac_try) 2>&5
39140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39141 (exit $ac_status); }; }; then
39142 ac_cv_member_struct_passwd_pw_passwd=yes
39144 echo "$as_me: failed program was:" >&5
39145 sed 's/^/| /' conftest.$ac_ext >&5
39147 cat >conftest.$ac_ext <<_ACEOF
39150 cat confdefs.h >>conftest.$ac_ext
39151 cat >>conftest.$ac_ext <<_ACEOF
39152 /* end confdefs.h. */
39153 $ac_includes_default
39159 static struct passwd ac_aggr;
39160 if (sizeof ac_aggr.pw_passwd)
39166 rm -f conftest.$ac_objext
39167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39168 (eval $ac_compile) 2>conftest.er1
39170 grep -v '^ *+' conftest.er1 >conftest.err
39172 cat conftest.err >&5
39173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39174 (exit $ac_status); } &&
39175 { ac_try='test -z "$ac_c_werror_flag"
39176 || test ! -s conftest.err'
39177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39178 (eval $ac_try) 2>&5
39180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39181 (exit $ac_status); }; } &&
39182 { ac_try='test -s conftest.$ac_objext'
39183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39184 (eval $ac_try) 2>&5
39186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39187 (exit $ac_status); }; }; then
39188 ac_cv_member_struct_passwd_pw_passwd=yes
39190 echo "$as_me: failed program was:" >&5
39191 sed 's/^/| /' conftest.$ac_ext >&5
39193 ac_cv_member_struct_passwd_pw_passwd=no
39195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39199 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
39200 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
39201 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
39203 cat >>confdefs.h <<_ACEOF
39204 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
39211 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
39212 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
39213 if test "${ol_cv_c_upper_lower+set}" = set; then
39214 echo $ECHO_N "(cached) $ECHO_C" >&6
39217 if test "$cross_compiling" = yes; then
39218 ol_cv_c_upper_lower=safe
39220 cat >conftest.$ac_ext <<_ACEOF
39223 cat confdefs.h >>conftest.$ac_ext
39224 cat >>conftest.$ac_ext <<_ACEOF
39225 /* end confdefs.h. */
39230 if ('C' == toupper('C'))
39236 rm -f conftest$ac_exeext
39237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39238 (eval $ac_link) 2>&5
39240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39243 (eval $ac_try) 2>&5
39245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39246 (exit $ac_status); }; }; then
39247 ol_cv_c_upper_lower=no
39249 echo "$as_me: program exited with status $ac_status" >&5
39250 echo "$as_me: failed program was:" >&5
39251 sed 's/^/| /' conftest.$ac_ext >&5
39253 ( exit $ac_status )
39254 ol_cv_c_upper_lower=yes
39256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39259 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
39260 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
39261 if test $ol_cv_c_upper_lower != no ; then
39263 cat >>confdefs.h <<\_ACEOF
39264 #define C_UPPER_LOWER 1
39269 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
39270 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
39271 if test "${ac_cv_c_const+set}" = set; then
39272 echo $ECHO_N "(cached) $ECHO_C" >&6
39274 cat >conftest.$ac_ext <<_ACEOF
39277 cat confdefs.h >>conftest.$ac_ext
39278 cat >>conftest.$ac_ext <<_ACEOF
39279 /* end confdefs.h. */
39284 /* FIXME: Include the comments suggested by Paul. */
39285 #ifndef __cplusplus
39286 /* Ultrix mips cc rejects this. */
39287 typedef int charset[2];
39289 /* SunOS 4.1.1 cc rejects this. */
39290 char const *const *ccp;
39292 /* NEC SVR4.0.2 mips cc rejects this. */
39293 struct point {int x, y;};
39294 static struct point const zero = {0,0};
39295 /* AIX XL C 1.02.0.0 rejects this.
39296 It does not let you subtract one const X* pointer from another in
39297 an arm of an if-expression whose if-part is not a constant
39299 const char *g = "string";
39300 ccp = &g + (g ? g-g : 0);
39301 /* HPUX 7.0 cc rejects these. */
39304 ccp = (char const *const *) p;
39305 { /* SCO 3.2v4 cc rejects this. */
39307 char const *s = 0 ? (char *) 0 : (char const *) 0;
39311 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
39312 int x[] = {25, 17};
39313 const int *foo = &x[0];
39316 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
39317 typedef const int *iptr;
39321 { /* AIX XL C 1.02.0.0 rejects this saying
39322 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
39323 struct s { int j; const int *ap[3]; };
39324 struct s *b; b->j = 5;
39326 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
39327 const int foo = 10;
39335 rm -f conftest.$ac_objext
39336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39337 (eval $ac_compile) 2>conftest.er1
39339 grep -v '^ *+' conftest.er1 >conftest.err
39341 cat conftest.err >&5
39342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343 (exit $ac_status); } &&
39344 { ac_try='test -z "$ac_c_werror_flag"
39345 || test ! -s conftest.err'
39346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39347 (eval $ac_try) 2>&5
39349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39350 (exit $ac_status); }; } &&
39351 { ac_try='test -s conftest.$ac_objext'
39352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39353 (eval $ac_try) 2>&5
39355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39356 (exit $ac_status); }; }; then
39359 echo "$as_me: failed program was:" >&5
39360 sed 's/^/| /' conftest.$ac_ext >&5
39364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39366 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
39367 echo "${ECHO_T}$ac_cv_c_const" >&6
39368 if test $ac_cv_c_const = no; then
39370 cat >>confdefs.h <<\_ACEOF
39376 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
39377 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
39378 if test "${ol_cv_c_volatile+set}" = set; then
39379 echo $ECHO_N "(cached) $ECHO_C" >&6
39381 cat >conftest.$ac_ext <<_ACEOF
39384 cat confdefs.h >>conftest.$ac_ext
39385 cat >>conftest.$ac_ext <<_ACEOF
39386 /* end confdefs.h. */
39391 volatile int a; int * volatile b = x ? &y : &z;
39392 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
39398 rm -f conftest.$ac_objext
39399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39400 (eval $ac_compile) 2>conftest.er1
39402 grep -v '^ *+' conftest.er1 >conftest.err
39404 cat conftest.err >&5
39405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39406 (exit $ac_status); } &&
39407 { ac_try='test -z "$ac_c_werror_flag"
39408 || test ! -s conftest.err'
39409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39410 (eval $ac_try) 2>&5
39412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39413 (exit $ac_status); }; } &&
39414 { ac_try='test -s conftest.$ac_objext'
39415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39416 (eval $ac_try) 2>&5
39418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39419 (exit $ac_status); }; }; then
39420 ol_cv_c_volatile=yes
39422 echo "$as_me: failed program was:" >&5
39423 sed 's/^/| /' conftest.$ac_ext >&5
39425 ol_cv_c_volatile=no
39427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39429 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
39430 echo "${ECHO_T}$ol_cv_c_volatile" >&6
39431 if test $ol_cv_c_volatile = yes; then
39435 cat >>confdefs.h <<\_ACEOF
39442 if test $cross_compiling = yes ; then
39443 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
39444 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
39446 cat >>confdefs.h <<\_ACEOF
39447 #define CROSS_COMPILING 1
39451 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
39452 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
39453 if test "${ac_cv_c_bigendian+set}" = set; then
39454 echo $ECHO_N "(cached) $ECHO_C" >&6
39456 # See if sys/param.h defines the BYTE_ORDER macro.
39457 cat >conftest.$ac_ext <<_ACEOF
39460 cat confdefs.h >>conftest.$ac_ext
39461 cat >>conftest.$ac_ext <<_ACEOF
39462 /* end confdefs.h. */
39463 #include <sys/types.h>
39464 #include <sys/param.h>
39469 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
39470 bogus endian macros
39477 rm -f conftest.$ac_objext
39478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39479 (eval $ac_compile) 2>conftest.er1
39481 grep -v '^ *+' conftest.er1 >conftest.err
39483 cat conftest.err >&5
39484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39485 (exit $ac_status); } &&
39486 { ac_try='test -z "$ac_c_werror_flag"
39487 || test ! -s conftest.err'
39488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39489 (eval $ac_try) 2>&5
39491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39492 (exit $ac_status); }; } &&
39493 { ac_try='test -s conftest.$ac_objext'
39494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39495 (eval $ac_try) 2>&5
39497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39498 (exit $ac_status); }; }; then
39499 # It does; now see whether it defined to BIG_ENDIAN or not.
39500 cat >conftest.$ac_ext <<_ACEOF
39503 cat confdefs.h >>conftest.$ac_ext
39504 cat >>conftest.$ac_ext <<_ACEOF
39505 /* end confdefs.h. */
39506 #include <sys/types.h>
39507 #include <sys/param.h>
39512 #if BYTE_ORDER != BIG_ENDIAN
39520 rm -f conftest.$ac_objext
39521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39522 (eval $ac_compile) 2>conftest.er1
39524 grep -v '^ *+' conftest.er1 >conftest.err
39526 cat conftest.err >&5
39527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39528 (exit $ac_status); } &&
39529 { ac_try='test -z "$ac_c_werror_flag"
39530 || test ! -s conftest.err'
39531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39532 (eval $ac_try) 2>&5
39534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39535 (exit $ac_status); }; } &&
39536 { ac_try='test -s conftest.$ac_objext'
39537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39538 (eval $ac_try) 2>&5
39540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541 (exit $ac_status); }; }; then
39542 ac_cv_c_bigendian=yes
39544 echo "$as_me: failed program was:" >&5
39545 sed 's/^/| /' conftest.$ac_ext >&5
39547 ac_cv_c_bigendian=no
39549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39551 echo "$as_me: failed program was:" >&5
39552 sed 's/^/| /' conftest.$ac_ext >&5
39554 # It does not; compile a test program.
39555 if test "$cross_compiling" = yes; then
39556 # try to guess the endianness by grepping values into an object file
39557 ac_cv_c_bigendian=unknown
39558 cat >conftest.$ac_ext <<_ACEOF
39561 cat confdefs.h >>conftest.$ac_ext
39562 cat >>conftest.$ac_ext <<_ACEOF
39563 /* end confdefs.h. */
39564 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
39565 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
39566 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
39567 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
39568 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
39569 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
39573 _ascii (); _ebcdic ();
39578 rm -f conftest.$ac_objext
39579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39580 (eval $ac_compile) 2>conftest.er1
39582 grep -v '^ *+' conftest.er1 >conftest.err
39584 cat conftest.err >&5
39585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39586 (exit $ac_status); } &&
39587 { ac_try='test -z "$ac_c_werror_flag"
39588 || test ! -s conftest.err'
39589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39590 (eval $ac_try) 2>&5
39592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593 (exit $ac_status); }; } &&
39594 { ac_try='test -s conftest.$ac_objext'
39595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39596 (eval $ac_try) 2>&5
39598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599 (exit $ac_status); }; }; then
39600 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
39601 ac_cv_c_bigendian=yes
39603 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
39604 if test "$ac_cv_c_bigendian" = unknown; then
39605 ac_cv_c_bigendian=no
39607 # finding both strings is unlikely to happen, but who knows?
39608 ac_cv_c_bigendian=unknown
39612 echo "$as_me: failed program was:" >&5
39613 sed 's/^/| /' conftest.$ac_ext >&5
39616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39618 cat >conftest.$ac_ext <<_ACEOF
39621 cat confdefs.h >>conftest.$ac_ext
39622 cat >>conftest.$ac_ext <<_ACEOF
39623 /* end confdefs.h. */
39627 /* Are we little or big endian? From Harbison&Steele. */
39631 char c[sizeof (long)];
39634 exit (u.c[sizeof (long) - 1] == 1);
39637 rm -f conftest$ac_exeext
39638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39639 (eval $ac_link) 2>&5
39641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39644 (eval $ac_try) 2>&5
39646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39647 (exit $ac_status); }; }; then
39648 ac_cv_c_bigendian=no
39650 echo "$as_me: program exited with status $ac_status" >&5
39651 echo "$as_me: failed program was:" >&5
39652 sed 's/^/| /' conftest.$ac_ext >&5
39654 ( exit $ac_status )
39655 ac_cv_c_bigendian=yes
39657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39662 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
39663 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
39664 case $ac_cv_c_bigendian in
39667 cat >>confdefs.h <<\_ACEOF
39668 #define WORDS_BIGENDIAN 1
39674 { { echo "$as_me:$LINENO: error: unknown endianness
39675 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
39676 echo "$as_me: error: unknown endianness
39677 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
39678 { (exit 1); exit 1; }; } ;;
39683 echo "$as_me:$LINENO: checking for short" >&5
39684 echo $ECHO_N "checking for short... $ECHO_C" >&6
39685 if test "${ac_cv_type_short+set}" = set; then
39686 echo $ECHO_N "(cached) $ECHO_C" >&6
39688 cat >conftest.$ac_ext <<_ACEOF
39691 cat confdefs.h >>conftest.$ac_ext
39692 cat >>conftest.$ac_ext <<_ACEOF
39693 /* end confdefs.h. */
39694 $ac_includes_default
39700 if (sizeof (short))
39706 rm -f conftest.$ac_objext
39707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39708 (eval $ac_compile) 2>conftest.er1
39710 grep -v '^ *+' conftest.er1 >conftest.err
39712 cat conftest.err >&5
39713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39714 (exit $ac_status); } &&
39715 { ac_try='test -z "$ac_c_werror_flag"
39716 || test ! -s conftest.err'
39717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39718 (eval $ac_try) 2>&5
39720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39721 (exit $ac_status); }; } &&
39722 { ac_try='test -s conftest.$ac_objext'
39723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39724 (eval $ac_try) 2>&5
39726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39727 (exit $ac_status); }; }; then
39728 ac_cv_type_short=yes
39730 echo "$as_me: failed program was:" >&5
39731 sed 's/^/| /' conftest.$ac_ext >&5
39733 ac_cv_type_short=no
39735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39737 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
39738 echo "${ECHO_T}$ac_cv_type_short" >&6
39740 echo "$as_me:$LINENO: checking size of short" >&5
39741 echo $ECHO_N "checking size of short... $ECHO_C" >&6
39742 if test "${ac_cv_sizeof_short+set}" = set; then
39743 echo $ECHO_N "(cached) $ECHO_C" >&6
39745 if test "$ac_cv_type_short" = yes; then
39746 # The cast to unsigned long works around a bug in the HP C Compiler
39747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39749 # This bug is HP SR number 8606223364.
39750 if test "$cross_compiling" = yes; then
39751 # Depending upon the size, compute the lo and hi bounds.
39752 cat >conftest.$ac_ext <<_ACEOF
39755 cat confdefs.h >>conftest.$ac_ext
39756 cat >>conftest.$ac_ext <<_ACEOF
39757 /* end confdefs.h. */
39758 $ac_includes_default
39762 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
39769 rm -f conftest.$ac_objext
39770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39771 (eval $ac_compile) 2>conftest.er1
39773 grep -v '^ *+' conftest.er1 >conftest.err
39775 cat conftest.err >&5
39776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777 (exit $ac_status); } &&
39778 { ac_try='test -z "$ac_c_werror_flag"
39779 || test ! -s conftest.err'
39780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39781 (eval $ac_try) 2>&5
39783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784 (exit $ac_status); }; } &&
39785 { ac_try='test -s conftest.$ac_objext'
39786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39787 (eval $ac_try) 2>&5
39789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39790 (exit $ac_status); }; }; then
39793 cat >conftest.$ac_ext <<_ACEOF
39796 cat confdefs.h >>conftest.$ac_ext
39797 cat >>conftest.$ac_ext <<_ACEOF
39798 /* end confdefs.h. */
39799 $ac_includes_default
39803 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
39810 rm -f conftest.$ac_objext
39811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39812 (eval $ac_compile) 2>conftest.er1
39814 grep -v '^ *+' conftest.er1 >conftest.err
39816 cat conftest.err >&5
39817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39818 (exit $ac_status); } &&
39819 { ac_try='test -z "$ac_c_werror_flag"
39820 || test ! -s conftest.err'
39821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39822 (eval $ac_try) 2>&5
39824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39825 (exit $ac_status); }; } &&
39826 { ac_try='test -s conftest.$ac_objext'
39827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39828 (eval $ac_try) 2>&5
39830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39831 (exit $ac_status); }; }; then
39832 ac_hi=$ac_mid; break
39834 echo "$as_me: failed program was:" >&5
39835 sed 's/^/| /' conftest.$ac_ext >&5
39837 ac_lo=`expr $ac_mid + 1`
39838 if test $ac_lo -le $ac_mid; then
39842 ac_mid=`expr 2 '*' $ac_mid + 1`
39844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39847 echo "$as_me: failed program was:" >&5
39848 sed 's/^/| /' conftest.$ac_ext >&5
39850 cat >conftest.$ac_ext <<_ACEOF
39853 cat confdefs.h >>conftest.$ac_ext
39854 cat >>conftest.$ac_ext <<_ACEOF
39855 /* end confdefs.h. */
39856 $ac_includes_default
39860 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
39867 rm -f conftest.$ac_objext
39868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39869 (eval $ac_compile) 2>conftest.er1
39871 grep -v '^ *+' conftest.er1 >conftest.err
39873 cat conftest.err >&5
39874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39875 (exit $ac_status); } &&
39876 { ac_try='test -z "$ac_c_werror_flag"
39877 || test ! -s conftest.err'
39878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39879 (eval $ac_try) 2>&5
39881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39882 (exit $ac_status); }; } &&
39883 { ac_try='test -s conftest.$ac_objext'
39884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39885 (eval $ac_try) 2>&5
39887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888 (exit $ac_status); }; }; then
39891 cat >conftest.$ac_ext <<_ACEOF
39894 cat confdefs.h >>conftest.$ac_ext
39895 cat >>conftest.$ac_ext <<_ACEOF
39896 /* end confdefs.h. */
39897 $ac_includes_default
39901 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
39908 rm -f conftest.$ac_objext
39909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39910 (eval $ac_compile) 2>conftest.er1
39912 grep -v '^ *+' conftest.er1 >conftest.err
39914 cat conftest.err >&5
39915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39916 (exit $ac_status); } &&
39917 { ac_try='test -z "$ac_c_werror_flag"
39918 || test ! -s conftest.err'
39919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39920 (eval $ac_try) 2>&5
39922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39923 (exit $ac_status); }; } &&
39924 { ac_try='test -s conftest.$ac_objext'
39925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39926 (eval $ac_try) 2>&5
39928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39929 (exit $ac_status); }; }; then
39930 ac_lo=$ac_mid; break
39932 echo "$as_me: failed program was:" >&5
39933 sed 's/^/| /' conftest.$ac_ext >&5
39935 ac_hi=`expr '(' $ac_mid ')' - 1`
39936 if test $ac_mid -le $ac_hi; then
39940 ac_mid=`expr 2 '*' $ac_mid`
39942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39945 echo "$as_me: failed program was:" >&5
39946 sed 's/^/| /' conftest.$ac_ext >&5
39950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39953 # Binary search between lo and hi bounds.
39954 while test "x$ac_lo" != "x$ac_hi"; do
39955 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39956 cat >conftest.$ac_ext <<_ACEOF
39959 cat confdefs.h >>conftest.$ac_ext
39960 cat >>conftest.$ac_ext <<_ACEOF
39961 /* end confdefs.h. */
39962 $ac_includes_default
39966 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
39973 rm -f conftest.$ac_objext
39974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39975 (eval $ac_compile) 2>conftest.er1
39977 grep -v '^ *+' conftest.er1 >conftest.err
39979 cat conftest.err >&5
39980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39981 (exit $ac_status); } &&
39982 { ac_try='test -z "$ac_c_werror_flag"
39983 || test ! -s conftest.err'
39984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39985 (eval $ac_try) 2>&5
39987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39988 (exit $ac_status); }; } &&
39989 { ac_try='test -s conftest.$ac_objext'
39990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39991 (eval $ac_try) 2>&5
39993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39994 (exit $ac_status); }; }; then
39997 echo "$as_me: failed program was:" >&5
39998 sed 's/^/| /' conftest.$ac_ext >&5
40000 ac_lo=`expr '(' $ac_mid ')' + 1`
40002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40005 ?*) ac_cv_sizeof_short=$ac_lo;;
40006 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40007 See \`config.log' for more details." >&5
40008 echo "$as_me: error: cannot compute sizeof (short), 77
40009 See \`config.log' for more details." >&2;}
40010 { (exit 1); exit 1; }; } ;;
40013 if test "$cross_compiling" = yes; then
40014 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40015 See \`config.log' for more details." >&5
40016 echo "$as_me: error: cannot run test program while cross compiling
40017 See \`config.log' for more details." >&2;}
40018 { (exit 1); exit 1; }; }
40020 cat >conftest.$ac_ext <<_ACEOF
40023 cat confdefs.h >>conftest.$ac_ext
40024 cat >>conftest.$ac_ext <<_ACEOF
40025 /* end confdefs.h. */
40026 $ac_includes_default
40027 long longval () { return (long) (sizeof (short)); }
40028 unsigned long ulongval () { return (long) (sizeof (short)); }
40030 #include <stdlib.h>
40035 FILE *f = fopen ("conftest.val", "w");
40038 if (((long) (sizeof (short))) < 0)
40040 long i = longval ();
40041 if (i != ((long) (sizeof (short))))
40043 fprintf (f, "%ld\n", i);
40047 unsigned long i = ulongval ();
40048 if (i != ((long) (sizeof (short))))
40050 fprintf (f, "%lu\n", i);
40052 exit (ferror (f) || fclose (f) != 0);
40058 rm -f conftest$ac_exeext
40059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40060 (eval $ac_link) 2>&5
40062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40065 (eval $ac_try) 2>&5
40067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40068 (exit $ac_status); }; }; then
40069 ac_cv_sizeof_short=`cat conftest.val`
40071 echo "$as_me: program exited with status $ac_status" >&5
40072 echo "$as_me: failed program was:" >&5
40073 sed 's/^/| /' conftest.$ac_ext >&5
40075 ( exit $ac_status )
40076 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40077 See \`config.log' for more details." >&5
40078 echo "$as_me: error: cannot compute sizeof (short), 77
40079 See \`config.log' for more details." >&2;}
40080 { (exit 1); exit 1; }; }
40082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40087 ac_cv_sizeof_short=0
40090 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40091 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40092 cat >>confdefs.h <<_ACEOF
40093 #define SIZEOF_SHORT $ac_cv_sizeof_short
40097 echo "$as_me:$LINENO: checking for int" >&5
40098 echo $ECHO_N "checking for int... $ECHO_C" >&6
40099 if test "${ac_cv_type_int+set}" = set; then
40100 echo $ECHO_N "(cached) $ECHO_C" >&6
40102 cat >conftest.$ac_ext <<_ACEOF
40105 cat confdefs.h >>conftest.$ac_ext
40106 cat >>conftest.$ac_ext <<_ACEOF
40107 /* end confdefs.h. */
40108 $ac_includes_default
40120 rm -f conftest.$ac_objext
40121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40122 (eval $ac_compile) 2>conftest.er1
40124 grep -v '^ *+' conftest.er1 >conftest.err
40126 cat conftest.err >&5
40127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40128 (exit $ac_status); } &&
40129 { ac_try='test -z "$ac_c_werror_flag"
40130 || test ! -s conftest.err'
40131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40132 (eval $ac_try) 2>&5
40134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40135 (exit $ac_status); }; } &&
40136 { ac_try='test -s conftest.$ac_objext'
40137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40138 (eval $ac_try) 2>&5
40140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40141 (exit $ac_status); }; }; then
40144 echo "$as_me: failed program was:" >&5
40145 sed 's/^/| /' conftest.$ac_ext >&5
40149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40151 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40152 echo "${ECHO_T}$ac_cv_type_int" >&6
40154 echo "$as_me:$LINENO: checking size of int" >&5
40155 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40156 if test "${ac_cv_sizeof_int+set}" = set; then
40157 echo $ECHO_N "(cached) $ECHO_C" >&6
40159 if test "$ac_cv_type_int" = yes; then
40160 # The cast to unsigned long works around a bug in the HP C Compiler
40161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40163 # This bug is HP SR number 8606223364.
40164 if test "$cross_compiling" = yes; then
40165 # Depending upon the size, compute the lo and hi bounds.
40166 cat >conftest.$ac_ext <<_ACEOF
40169 cat confdefs.h >>conftest.$ac_ext
40170 cat >>conftest.$ac_ext <<_ACEOF
40171 /* end confdefs.h. */
40172 $ac_includes_default
40176 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
40183 rm -f conftest.$ac_objext
40184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40185 (eval $ac_compile) 2>conftest.er1
40187 grep -v '^ *+' conftest.er1 >conftest.err
40189 cat conftest.err >&5
40190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40191 (exit $ac_status); } &&
40192 { ac_try='test -z "$ac_c_werror_flag"
40193 || test ! -s conftest.err'
40194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40195 (eval $ac_try) 2>&5
40197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40198 (exit $ac_status); }; } &&
40199 { ac_try='test -s conftest.$ac_objext'
40200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40201 (eval $ac_try) 2>&5
40203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40204 (exit $ac_status); }; }; then
40207 cat >conftest.$ac_ext <<_ACEOF
40210 cat confdefs.h >>conftest.$ac_ext
40211 cat >>conftest.$ac_ext <<_ACEOF
40212 /* end confdefs.h. */
40213 $ac_includes_default
40217 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40224 rm -f conftest.$ac_objext
40225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40226 (eval $ac_compile) 2>conftest.er1
40228 grep -v '^ *+' conftest.er1 >conftest.err
40230 cat conftest.err >&5
40231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40232 (exit $ac_status); } &&
40233 { ac_try='test -z "$ac_c_werror_flag"
40234 || test ! -s conftest.err'
40235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40236 (eval $ac_try) 2>&5
40238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40239 (exit $ac_status); }; } &&
40240 { ac_try='test -s conftest.$ac_objext'
40241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40242 (eval $ac_try) 2>&5
40244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40245 (exit $ac_status); }; }; then
40246 ac_hi=$ac_mid; break
40248 echo "$as_me: failed program was:" >&5
40249 sed 's/^/| /' conftest.$ac_ext >&5
40251 ac_lo=`expr $ac_mid + 1`
40252 if test $ac_lo -le $ac_mid; then
40256 ac_mid=`expr 2 '*' $ac_mid + 1`
40258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40261 echo "$as_me: failed program was:" >&5
40262 sed 's/^/| /' conftest.$ac_ext >&5
40264 cat >conftest.$ac_ext <<_ACEOF
40267 cat confdefs.h >>conftest.$ac_ext
40268 cat >>conftest.$ac_ext <<_ACEOF
40269 /* end confdefs.h. */
40270 $ac_includes_default
40274 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
40281 rm -f conftest.$ac_objext
40282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40283 (eval $ac_compile) 2>conftest.er1
40285 grep -v '^ *+' conftest.er1 >conftest.err
40287 cat conftest.err >&5
40288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289 (exit $ac_status); } &&
40290 { ac_try='test -z "$ac_c_werror_flag"
40291 || test ! -s conftest.err'
40292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40293 (eval $ac_try) 2>&5
40295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40296 (exit $ac_status); }; } &&
40297 { ac_try='test -s conftest.$ac_objext'
40298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40299 (eval $ac_try) 2>&5
40301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40302 (exit $ac_status); }; }; then
40305 cat >conftest.$ac_ext <<_ACEOF
40308 cat confdefs.h >>conftest.$ac_ext
40309 cat >>conftest.$ac_ext <<_ACEOF
40310 /* end confdefs.h. */
40311 $ac_includes_default
40315 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
40322 rm -f conftest.$ac_objext
40323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40324 (eval $ac_compile) 2>conftest.er1
40326 grep -v '^ *+' conftest.er1 >conftest.err
40328 cat conftest.err >&5
40329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40330 (exit $ac_status); } &&
40331 { ac_try='test -z "$ac_c_werror_flag"
40332 || test ! -s conftest.err'
40333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40334 (eval $ac_try) 2>&5
40336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40337 (exit $ac_status); }; } &&
40338 { ac_try='test -s conftest.$ac_objext'
40339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40340 (eval $ac_try) 2>&5
40342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40343 (exit $ac_status); }; }; then
40344 ac_lo=$ac_mid; break
40346 echo "$as_me: failed program was:" >&5
40347 sed 's/^/| /' conftest.$ac_ext >&5
40349 ac_hi=`expr '(' $ac_mid ')' - 1`
40350 if test $ac_mid -le $ac_hi; then
40354 ac_mid=`expr 2 '*' $ac_mid`
40356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40359 echo "$as_me: failed program was:" >&5
40360 sed 's/^/| /' conftest.$ac_ext >&5
40364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40367 # Binary search between lo and hi bounds.
40368 while test "x$ac_lo" != "x$ac_hi"; do
40369 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40370 cat >conftest.$ac_ext <<_ACEOF
40373 cat confdefs.h >>conftest.$ac_ext
40374 cat >>conftest.$ac_ext <<_ACEOF
40375 /* end confdefs.h. */
40376 $ac_includes_default
40380 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40387 rm -f conftest.$ac_objext
40388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40389 (eval $ac_compile) 2>conftest.er1
40391 grep -v '^ *+' conftest.er1 >conftest.err
40393 cat conftest.err >&5
40394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40395 (exit $ac_status); } &&
40396 { ac_try='test -z "$ac_c_werror_flag"
40397 || test ! -s conftest.err'
40398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40399 (eval $ac_try) 2>&5
40401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40402 (exit $ac_status); }; } &&
40403 { ac_try='test -s conftest.$ac_objext'
40404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40405 (eval $ac_try) 2>&5
40407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40408 (exit $ac_status); }; }; then
40411 echo "$as_me: failed program was:" >&5
40412 sed 's/^/| /' conftest.$ac_ext >&5
40414 ac_lo=`expr '(' $ac_mid ')' + 1`
40416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40419 ?*) ac_cv_sizeof_int=$ac_lo;;
40420 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
40421 See \`config.log' for more details." >&5
40422 echo "$as_me: error: cannot compute sizeof (int), 77
40423 See \`config.log' for more details." >&2;}
40424 { (exit 1); exit 1; }; } ;;
40427 if test "$cross_compiling" = yes; then
40428 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40429 See \`config.log' for more details." >&5
40430 echo "$as_me: error: cannot run test program while cross compiling
40431 See \`config.log' for more details." >&2;}
40432 { (exit 1); exit 1; }; }
40434 cat >conftest.$ac_ext <<_ACEOF
40437 cat confdefs.h >>conftest.$ac_ext
40438 cat >>conftest.$ac_ext <<_ACEOF
40439 /* end confdefs.h. */
40440 $ac_includes_default
40441 long longval () { return (long) (sizeof (int)); }
40442 unsigned long ulongval () { return (long) (sizeof (int)); }
40444 #include <stdlib.h>
40449 FILE *f = fopen ("conftest.val", "w");
40452 if (((long) (sizeof (int))) < 0)
40454 long i = longval ();
40455 if (i != ((long) (sizeof (int))))
40457 fprintf (f, "%ld\n", i);
40461 unsigned long i = ulongval ();
40462 if (i != ((long) (sizeof (int))))
40464 fprintf (f, "%lu\n", i);
40466 exit (ferror (f) || fclose (f) != 0);
40472 rm -f conftest$ac_exeext
40473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40474 (eval $ac_link) 2>&5
40476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40479 (eval $ac_try) 2>&5
40481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40482 (exit $ac_status); }; }; then
40483 ac_cv_sizeof_int=`cat conftest.val`
40485 echo "$as_me: program exited with status $ac_status" >&5
40486 echo "$as_me: failed program was:" >&5
40487 sed 's/^/| /' conftest.$ac_ext >&5
40489 ( exit $ac_status )
40490 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
40491 See \`config.log' for more details." >&5
40492 echo "$as_me: error: cannot compute sizeof (int), 77
40493 See \`config.log' for more details." >&2;}
40494 { (exit 1); exit 1; }; }
40496 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40504 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
40505 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
40506 cat >>confdefs.h <<_ACEOF
40507 #define SIZEOF_INT $ac_cv_sizeof_int
40511 echo "$as_me:$LINENO: checking for long" >&5
40512 echo $ECHO_N "checking for long... $ECHO_C" >&6
40513 if test "${ac_cv_type_long+set}" = set; then
40514 echo $ECHO_N "(cached) $ECHO_C" >&6
40516 cat >conftest.$ac_ext <<_ACEOF
40519 cat confdefs.h >>conftest.$ac_ext
40520 cat >>conftest.$ac_ext <<_ACEOF
40521 /* end confdefs.h. */
40522 $ac_includes_default
40534 rm -f conftest.$ac_objext
40535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40536 (eval $ac_compile) 2>conftest.er1
40538 grep -v '^ *+' conftest.er1 >conftest.err
40540 cat conftest.err >&5
40541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40542 (exit $ac_status); } &&
40543 { ac_try='test -z "$ac_c_werror_flag"
40544 || test ! -s conftest.err'
40545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40546 (eval $ac_try) 2>&5
40548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40549 (exit $ac_status); }; } &&
40550 { ac_try='test -s conftest.$ac_objext'
40551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40552 (eval $ac_try) 2>&5
40554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40555 (exit $ac_status); }; }; then
40556 ac_cv_type_long=yes
40558 echo "$as_me: failed program was:" >&5
40559 sed 's/^/| /' conftest.$ac_ext >&5
40563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40565 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
40566 echo "${ECHO_T}$ac_cv_type_long" >&6
40568 echo "$as_me:$LINENO: checking size of long" >&5
40569 echo $ECHO_N "checking size of long... $ECHO_C" >&6
40570 if test "${ac_cv_sizeof_long+set}" = set; then
40571 echo $ECHO_N "(cached) $ECHO_C" >&6
40573 if test "$ac_cv_type_long" = yes; then
40574 # The cast to unsigned long works around a bug in the HP C Compiler
40575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40576 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40577 # This bug is HP SR number 8606223364.
40578 if test "$cross_compiling" = yes; then
40579 # Depending upon the size, compute the lo and hi bounds.
40580 cat >conftest.$ac_ext <<_ACEOF
40583 cat confdefs.h >>conftest.$ac_ext
40584 cat >>conftest.$ac_ext <<_ACEOF
40585 /* end confdefs.h. */
40586 $ac_includes_default
40590 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
40597 rm -f conftest.$ac_objext
40598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40599 (eval $ac_compile) 2>conftest.er1
40601 grep -v '^ *+' conftest.er1 >conftest.err
40603 cat conftest.err >&5
40604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40605 (exit $ac_status); } &&
40606 { ac_try='test -z "$ac_c_werror_flag"
40607 || test ! -s conftest.err'
40608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40609 (eval $ac_try) 2>&5
40611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40612 (exit $ac_status); }; } &&
40613 { ac_try='test -s conftest.$ac_objext'
40614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40615 (eval $ac_try) 2>&5
40617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40618 (exit $ac_status); }; }; then
40621 cat >conftest.$ac_ext <<_ACEOF
40624 cat confdefs.h >>conftest.$ac_ext
40625 cat >>conftest.$ac_ext <<_ACEOF
40626 /* end confdefs.h. */
40627 $ac_includes_default
40631 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
40638 rm -f conftest.$ac_objext
40639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40640 (eval $ac_compile) 2>conftest.er1
40642 grep -v '^ *+' conftest.er1 >conftest.err
40644 cat conftest.err >&5
40645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40646 (exit $ac_status); } &&
40647 { ac_try='test -z "$ac_c_werror_flag"
40648 || test ! -s conftest.err'
40649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40650 (eval $ac_try) 2>&5
40652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40653 (exit $ac_status); }; } &&
40654 { ac_try='test -s conftest.$ac_objext'
40655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40656 (eval $ac_try) 2>&5
40658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40659 (exit $ac_status); }; }; then
40660 ac_hi=$ac_mid; break
40662 echo "$as_me: failed program was:" >&5
40663 sed 's/^/| /' conftest.$ac_ext >&5
40665 ac_lo=`expr $ac_mid + 1`
40666 if test $ac_lo -le $ac_mid; then
40670 ac_mid=`expr 2 '*' $ac_mid + 1`
40672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40675 echo "$as_me: failed program was:" >&5
40676 sed 's/^/| /' conftest.$ac_ext >&5
40678 cat >conftest.$ac_ext <<_ACEOF
40681 cat confdefs.h >>conftest.$ac_ext
40682 cat >>conftest.$ac_ext <<_ACEOF
40683 /* end confdefs.h. */
40684 $ac_includes_default
40688 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
40695 rm -f conftest.$ac_objext
40696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40697 (eval $ac_compile) 2>conftest.er1
40699 grep -v '^ *+' conftest.er1 >conftest.err
40701 cat conftest.err >&5
40702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703 (exit $ac_status); } &&
40704 { ac_try='test -z "$ac_c_werror_flag"
40705 || test ! -s conftest.err'
40706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40707 (eval $ac_try) 2>&5
40709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40710 (exit $ac_status); }; } &&
40711 { ac_try='test -s conftest.$ac_objext'
40712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40713 (eval $ac_try) 2>&5
40715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40716 (exit $ac_status); }; }; then
40719 cat >conftest.$ac_ext <<_ACEOF
40722 cat confdefs.h >>conftest.$ac_ext
40723 cat >>conftest.$ac_ext <<_ACEOF
40724 /* end confdefs.h. */
40725 $ac_includes_default
40729 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
40736 rm -f conftest.$ac_objext
40737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40738 (eval $ac_compile) 2>conftest.er1
40740 grep -v '^ *+' conftest.er1 >conftest.err
40742 cat conftest.err >&5
40743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40744 (exit $ac_status); } &&
40745 { ac_try='test -z "$ac_c_werror_flag"
40746 || test ! -s conftest.err'
40747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40748 (eval $ac_try) 2>&5
40750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751 (exit $ac_status); }; } &&
40752 { ac_try='test -s conftest.$ac_objext'
40753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40754 (eval $ac_try) 2>&5
40756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40757 (exit $ac_status); }; }; then
40758 ac_lo=$ac_mid; break
40760 echo "$as_me: failed program was:" >&5
40761 sed 's/^/| /' conftest.$ac_ext >&5
40763 ac_hi=`expr '(' $ac_mid ')' - 1`
40764 if test $ac_mid -le $ac_hi; then
40768 ac_mid=`expr 2 '*' $ac_mid`
40770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40773 echo "$as_me: failed program was:" >&5
40774 sed 's/^/| /' conftest.$ac_ext >&5
40778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40781 # Binary search between lo and hi bounds.
40782 while test "x$ac_lo" != "x$ac_hi"; do
40783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40784 cat >conftest.$ac_ext <<_ACEOF
40787 cat confdefs.h >>conftest.$ac_ext
40788 cat >>conftest.$ac_ext <<_ACEOF
40789 /* end confdefs.h. */
40790 $ac_includes_default
40794 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
40801 rm -f conftest.$ac_objext
40802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40803 (eval $ac_compile) 2>conftest.er1
40805 grep -v '^ *+' conftest.er1 >conftest.err
40807 cat conftest.err >&5
40808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809 (exit $ac_status); } &&
40810 { ac_try='test -z "$ac_c_werror_flag"
40811 || test ! -s conftest.err'
40812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40813 (eval $ac_try) 2>&5
40815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40816 (exit $ac_status); }; } &&
40817 { ac_try='test -s conftest.$ac_objext'
40818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40819 (eval $ac_try) 2>&5
40821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40822 (exit $ac_status); }; }; then
40825 echo "$as_me: failed program was:" >&5
40826 sed 's/^/| /' conftest.$ac_ext >&5
40828 ac_lo=`expr '(' $ac_mid ')' + 1`
40830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40833 ?*) ac_cv_sizeof_long=$ac_lo;;
40834 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
40835 See \`config.log' for more details." >&5
40836 echo "$as_me: error: cannot compute sizeof (long), 77
40837 See \`config.log' for more details." >&2;}
40838 { (exit 1); exit 1; }; } ;;
40841 if test "$cross_compiling" = yes; then
40842 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40843 See \`config.log' for more details." >&5
40844 echo "$as_me: error: cannot run test program while cross compiling
40845 See \`config.log' for more details." >&2;}
40846 { (exit 1); exit 1; }; }
40848 cat >conftest.$ac_ext <<_ACEOF
40851 cat confdefs.h >>conftest.$ac_ext
40852 cat >>conftest.$ac_ext <<_ACEOF
40853 /* end confdefs.h. */
40854 $ac_includes_default
40855 long longval () { return (long) (sizeof (long)); }
40856 unsigned long ulongval () { return (long) (sizeof (long)); }
40858 #include <stdlib.h>
40863 FILE *f = fopen ("conftest.val", "w");
40866 if (((long) (sizeof (long))) < 0)
40868 long i = longval ();
40869 if (i != ((long) (sizeof (long))))
40871 fprintf (f, "%ld\n", i);
40875 unsigned long i = ulongval ();
40876 if (i != ((long) (sizeof (long))))
40878 fprintf (f, "%lu\n", i);
40880 exit (ferror (f) || fclose (f) != 0);
40886 rm -f conftest$ac_exeext
40887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40888 (eval $ac_link) 2>&5
40890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40893 (eval $ac_try) 2>&5
40895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896 (exit $ac_status); }; }; then
40897 ac_cv_sizeof_long=`cat conftest.val`
40899 echo "$as_me: program exited with status $ac_status" >&5
40900 echo "$as_me: failed program was:" >&5
40901 sed 's/^/| /' conftest.$ac_ext >&5
40903 ( exit $ac_status )
40904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
40905 See \`config.log' for more details." >&5
40906 echo "$as_me: error: cannot compute sizeof (long), 77
40907 See \`config.log' for more details." >&2;}
40908 { (exit 1); exit 1; }; }
40910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40915 ac_cv_sizeof_long=0
40918 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
40919 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
40920 cat >>confdefs.h <<_ACEOF
40921 #define SIZEOF_LONG $ac_cv_sizeof_long
40925 echo "$as_me:$LINENO: checking for long long" >&5
40926 echo $ECHO_N "checking for long long... $ECHO_C" >&6
40927 if test "${ac_cv_type_long_long+set}" = set; then
40928 echo $ECHO_N "(cached) $ECHO_C" >&6
40930 cat >conftest.$ac_ext <<_ACEOF
40933 cat confdefs.h >>conftest.$ac_ext
40934 cat >>conftest.$ac_ext <<_ACEOF
40935 /* end confdefs.h. */
40936 $ac_includes_default
40940 if ((long long *) 0)
40942 if (sizeof (long long))
40948 rm -f conftest.$ac_objext
40949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40950 (eval $ac_compile) 2>conftest.er1
40952 grep -v '^ *+' conftest.er1 >conftest.err
40954 cat conftest.err >&5
40955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40956 (exit $ac_status); } &&
40957 { ac_try='test -z "$ac_c_werror_flag"
40958 || test ! -s conftest.err'
40959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40960 (eval $ac_try) 2>&5
40962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963 (exit $ac_status); }; } &&
40964 { ac_try='test -s conftest.$ac_objext'
40965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40966 (eval $ac_try) 2>&5
40968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969 (exit $ac_status); }; }; then
40970 ac_cv_type_long_long=yes
40972 echo "$as_me: failed program was:" >&5
40973 sed 's/^/| /' conftest.$ac_ext >&5
40975 ac_cv_type_long_long=no
40977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40979 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
40980 echo "${ECHO_T}$ac_cv_type_long_long" >&6
40982 echo "$as_me:$LINENO: checking size of long long" >&5
40983 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
40984 if test "${ac_cv_sizeof_long_long+set}" = set; then
40985 echo $ECHO_N "(cached) $ECHO_C" >&6
40987 if test "$ac_cv_type_long_long" = yes; then
40988 # The cast to unsigned long works around a bug in the HP C Compiler
40989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40991 # This bug is HP SR number 8606223364.
40992 if test "$cross_compiling" = yes; then
40993 # Depending upon the size, compute the lo and hi bounds.
40994 cat >conftest.$ac_ext <<_ACEOF
40997 cat confdefs.h >>conftest.$ac_ext
40998 cat >>conftest.$ac_ext <<_ACEOF
40999 /* end confdefs.h. */
41000 $ac_includes_default
41004 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
41011 rm -f conftest.$ac_objext
41012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41013 (eval $ac_compile) 2>conftest.er1
41015 grep -v '^ *+' conftest.er1 >conftest.err
41017 cat conftest.err >&5
41018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41019 (exit $ac_status); } &&
41020 { ac_try='test -z "$ac_c_werror_flag"
41021 || test ! -s conftest.err'
41022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41023 (eval $ac_try) 2>&5
41025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41026 (exit $ac_status); }; } &&
41027 { ac_try='test -s conftest.$ac_objext'
41028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41029 (eval $ac_try) 2>&5
41031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032 (exit $ac_status); }; }; then
41035 cat >conftest.$ac_ext <<_ACEOF
41038 cat confdefs.h >>conftest.$ac_ext
41039 cat >>conftest.$ac_ext <<_ACEOF
41040 /* end confdefs.h. */
41041 $ac_includes_default
41045 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
41052 rm -f conftest.$ac_objext
41053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41054 (eval $ac_compile) 2>conftest.er1
41056 grep -v '^ *+' conftest.er1 >conftest.err
41058 cat conftest.err >&5
41059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41060 (exit $ac_status); } &&
41061 { ac_try='test -z "$ac_c_werror_flag"
41062 || test ! -s conftest.err'
41063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41064 (eval $ac_try) 2>&5
41066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41067 (exit $ac_status); }; } &&
41068 { ac_try='test -s conftest.$ac_objext'
41069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41070 (eval $ac_try) 2>&5
41072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41073 (exit $ac_status); }; }; then
41074 ac_hi=$ac_mid; break
41076 echo "$as_me: failed program was:" >&5
41077 sed 's/^/| /' conftest.$ac_ext >&5
41079 ac_lo=`expr $ac_mid + 1`
41080 if test $ac_lo -le $ac_mid; then
41084 ac_mid=`expr 2 '*' $ac_mid + 1`
41086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41089 echo "$as_me: failed program was:" >&5
41090 sed 's/^/| /' conftest.$ac_ext >&5
41092 cat >conftest.$ac_ext <<_ACEOF
41095 cat confdefs.h >>conftest.$ac_ext
41096 cat >>conftest.$ac_ext <<_ACEOF
41097 /* end confdefs.h. */
41098 $ac_includes_default
41102 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
41109 rm -f conftest.$ac_objext
41110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41111 (eval $ac_compile) 2>conftest.er1
41113 grep -v '^ *+' conftest.er1 >conftest.err
41115 cat conftest.err >&5
41116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41117 (exit $ac_status); } &&
41118 { ac_try='test -z "$ac_c_werror_flag"
41119 || test ! -s conftest.err'
41120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41121 (eval $ac_try) 2>&5
41123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41124 (exit $ac_status); }; } &&
41125 { ac_try='test -s conftest.$ac_objext'
41126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41127 (eval $ac_try) 2>&5
41129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41130 (exit $ac_status); }; }; then
41133 cat >conftest.$ac_ext <<_ACEOF
41136 cat confdefs.h >>conftest.$ac_ext
41137 cat >>conftest.$ac_ext <<_ACEOF
41138 /* end confdefs.h. */
41139 $ac_includes_default
41143 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
41150 rm -f conftest.$ac_objext
41151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41152 (eval $ac_compile) 2>conftest.er1
41154 grep -v '^ *+' conftest.er1 >conftest.err
41156 cat conftest.err >&5
41157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41158 (exit $ac_status); } &&
41159 { ac_try='test -z "$ac_c_werror_flag"
41160 || test ! -s conftest.err'
41161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41162 (eval $ac_try) 2>&5
41164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41165 (exit $ac_status); }; } &&
41166 { ac_try='test -s conftest.$ac_objext'
41167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41168 (eval $ac_try) 2>&5
41170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41171 (exit $ac_status); }; }; then
41172 ac_lo=$ac_mid; break
41174 echo "$as_me: failed program was:" >&5
41175 sed 's/^/| /' conftest.$ac_ext >&5
41177 ac_hi=`expr '(' $ac_mid ')' - 1`
41178 if test $ac_mid -le $ac_hi; then
41182 ac_mid=`expr 2 '*' $ac_mid`
41184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41187 echo "$as_me: failed program was:" >&5
41188 sed 's/^/| /' conftest.$ac_ext >&5
41192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41195 # Binary search between lo and hi bounds.
41196 while test "x$ac_lo" != "x$ac_hi"; do
41197 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41198 cat >conftest.$ac_ext <<_ACEOF
41201 cat confdefs.h >>conftest.$ac_ext
41202 cat >>conftest.$ac_ext <<_ACEOF
41203 /* end confdefs.h. */
41204 $ac_includes_default
41208 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
41215 rm -f conftest.$ac_objext
41216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41217 (eval $ac_compile) 2>conftest.er1
41219 grep -v '^ *+' conftest.er1 >conftest.err
41221 cat conftest.err >&5
41222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41223 (exit $ac_status); } &&
41224 { ac_try='test -z "$ac_c_werror_flag"
41225 || test ! -s conftest.err'
41226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41227 (eval $ac_try) 2>&5
41229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41230 (exit $ac_status); }; } &&
41231 { ac_try='test -s conftest.$ac_objext'
41232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41233 (eval $ac_try) 2>&5
41235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41236 (exit $ac_status); }; }; then
41239 echo "$as_me: failed program was:" >&5
41240 sed 's/^/| /' conftest.$ac_ext >&5
41242 ac_lo=`expr '(' $ac_mid ')' + 1`
41244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41247 ?*) ac_cv_sizeof_long_long=$ac_lo;;
41248 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
41249 See \`config.log' for more details." >&5
41250 echo "$as_me: error: cannot compute sizeof (long long), 77
41251 See \`config.log' for more details." >&2;}
41252 { (exit 1); exit 1; }; } ;;
41255 if test "$cross_compiling" = yes; then
41256 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41257 See \`config.log' for more details." >&5
41258 echo "$as_me: error: cannot run test program while cross compiling
41259 See \`config.log' for more details." >&2;}
41260 { (exit 1); exit 1; }; }
41262 cat >conftest.$ac_ext <<_ACEOF
41265 cat confdefs.h >>conftest.$ac_ext
41266 cat >>conftest.$ac_ext <<_ACEOF
41267 /* end confdefs.h. */
41268 $ac_includes_default
41269 long longval () { return (long) (sizeof (long long)); }
41270 unsigned long ulongval () { return (long) (sizeof (long long)); }
41272 #include <stdlib.h>
41277 FILE *f = fopen ("conftest.val", "w");
41280 if (((long) (sizeof (long long))) < 0)
41282 long i = longval ();
41283 if (i != ((long) (sizeof (long long))))
41285 fprintf (f, "%ld\n", i);
41289 unsigned long i = ulongval ();
41290 if (i != ((long) (sizeof (long long))))
41292 fprintf (f, "%lu\n", i);
41294 exit (ferror (f) || fclose (f) != 0);
41300 rm -f conftest$ac_exeext
41301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41302 (eval $ac_link) 2>&5
41304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41307 (eval $ac_try) 2>&5
41309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41310 (exit $ac_status); }; }; then
41311 ac_cv_sizeof_long_long=`cat conftest.val`
41313 echo "$as_me: program exited with status $ac_status" >&5
41314 echo "$as_me: failed program was:" >&5
41315 sed 's/^/| /' conftest.$ac_ext >&5
41317 ( exit $ac_status )
41318 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
41319 See \`config.log' for more details." >&5
41320 echo "$as_me: error: cannot compute sizeof (long long), 77
41321 See \`config.log' for more details." >&2;}
41322 { (exit 1); exit 1; }; }
41324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41329 ac_cv_sizeof_long_long=0
41332 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
41333 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
41334 cat >>confdefs.h <<_ACEOF
41335 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
41339 echo "$as_me:$LINENO: checking for wchar_t" >&5
41340 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41341 if test "${ac_cv_type_wchar_t+set}" = set; then
41342 echo $ECHO_N "(cached) $ECHO_C" >&6
41344 cat >conftest.$ac_ext <<_ACEOF
41347 cat confdefs.h >>conftest.$ac_ext
41348 cat >>conftest.$ac_ext <<_ACEOF
41349 /* end confdefs.h. */
41350 $ac_includes_default
41356 if (sizeof (wchar_t))
41362 rm -f conftest.$ac_objext
41363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41364 (eval $ac_compile) 2>conftest.er1
41366 grep -v '^ *+' conftest.er1 >conftest.err
41368 cat conftest.err >&5
41369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41370 (exit $ac_status); } &&
41371 { ac_try='test -z "$ac_c_werror_flag"
41372 || test ! -s conftest.err'
41373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41374 (eval $ac_try) 2>&5
41376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377 (exit $ac_status); }; } &&
41378 { ac_try='test -s conftest.$ac_objext'
41379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41380 (eval $ac_try) 2>&5
41382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41383 (exit $ac_status); }; }; then
41384 ac_cv_type_wchar_t=yes
41386 echo "$as_me: failed program was:" >&5
41387 sed 's/^/| /' conftest.$ac_ext >&5
41389 ac_cv_type_wchar_t=no
41391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41393 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41394 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41396 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41397 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41398 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41399 echo $ECHO_N "(cached) $ECHO_C" >&6
41401 if test "$ac_cv_type_wchar_t" = yes; then
41402 # The cast to unsigned long works around a bug in the HP C Compiler
41403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41405 # This bug is HP SR number 8606223364.
41406 if test "$cross_compiling" = yes; then
41407 # Depending upon the size, compute the lo and hi bounds.
41408 cat >conftest.$ac_ext <<_ACEOF
41411 cat confdefs.h >>conftest.$ac_ext
41412 cat >>conftest.$ac_ext <<_ACEOF
41413 /* end confdefs.h. */
41414 $ac_includes_default
41418 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41425 rm -f conftest.$ac_objext
41426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41427 (eval $ac_compile) 2>conftest.er1
41429 grep -v '^ *+' conftest.er1 >conftest.err
41431 cat conftest.err >&5
41432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41433 (exit $ac_status); } &&
41434 { ac_try='test -z "$ac_c_werror_flag"
41435 || test ! -s conftest.err'
41436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41437 (eval $ac_try) 2>&5
41439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41440 (exit $ac_status); }; } &&
41441 { ac_try='test -s conftest.$ac_objext'
41442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41443 (eval $ac_try) 2>&5
41445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41446 (exit $ac_status); }; }; then
41449 cat >conftest.$ac_ext <<_ACEOF
41452 cat confdefs.h >>conftest.$ac_ext
41453 cat >>conftest.$ac_ext <<_ACEOF
41454 /* end confdefs.h. */
41455 $ac_includes_default
41459 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41466 rm -f conftest.$ac_objext
41467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41468 (eval $ac_compile) 2>conftest.er1
41470 grep -v '^ *+' conftest.er1 >conftest.err
41472 cat conftest.err >&5
41473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41474 (exit $ac_status); } &&
41475 { ac_try='test -z "$ac_c_werror_flag"
41476 || test ! -s conftest.err'
41477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41478 (eval $ac_try) 2>&5
41480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41481 (exit $ac_status); }; } &&
41482 { ac_try='test -s conftest.$ac_objext'
41483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41484 (eval $ac_try) 2>&5
41486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487 (exit $ac_status); }; }; then
41488 ac_hi=$ac_mid; break
41490 echo "$as_me: failed program was:" >&5
41491 sed 's/^/| /' conftest.$ac_ext >&5
41493 ac_lo=`expr $ac_mid + 1`
41494 if test $ac_lo -le $ac_mid; then
41498 ac_mid=`expr 2 '*' $ac_mid + 1`
41500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41503 echo "$as_me: failed program was:" >&5
41504 sed 's/^/| /' conftest.$ac_ext >&5
41506 cat >conftest.$ac_ext <<_ACEOF
41509 cat confdefs.h >>conftest.$ac_ext
41510 cat >>conftest.$ac_ext <<_ACEOF
41511 /* end confdefs.h. */
41512 $ac_includes_default
41516 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41523 rm -f conftest.$ac_objext
41524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41525 (eval $ac_compile) 2>conftest.er1
41527 grep -v '^ *+' conftest.er1 >conftest.err
41529 cat conftest.err >&5
41530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41531 (exit $ac_status); } &&
41532 { ac_try='test -z "$ac_c_werror_flag"
41533 || test ! -s conftest.err'
41534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41535 (eval $ac_try) 2>&5
41537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41538 (exit $ac_status); }; } &&
41539 { ac_try='test -s conftest.$ac_objext'
41540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41541 (eval $ac_try) 2>&5
41543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41544 (exit $ac_status); }; }; then
41547 cat >conftest.$ac_ext <<_ACEOF
41550 cat confdefs.h >>conftest.$ac_ext
41551 cat >>conftest.$ac_ext <<_ACEOF
41552 /* end confdefs.h. */
41553 $ac_includes_default
41557 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41564 rm -f conftest.$ac_objext
41565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41566 (eval $ac_compile) 2>conftest.er1
41568 grep -v '^ *+' conftest.er1 >conftest.err
41570 cat conftest.err >&5
41571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41572 (exit $ac_status); } &&
41573 { ac_try='test -z "$ac_c_werror_flag"
41574 || test ! -s conftest.err'
41575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41576 (eval $ac_try) 2>&5
41578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41579 (exit $ac_status); }; } &&
41580 { ac_try='test -s conftest.$ac_objext'
41581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41582 (eval $ac_try) 2>&5
41584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41585 (exit $ac_status); }; }; then
41586 ac_lo=$ac_mid; break
41588 echo "$as_me: failed program was:" >&5
41589 sed 's/^/| /' conftest.$ac_ext >&5
41591 ac_hi=`expr '(' $ac_mid ')' - 1`
41592 if test $ac_mid -le $ac_hi; then
41596 ac_mid=`expr 2 '*' $ac_mid`
41598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41601 echo "$as_me: failed program was:" >&5
41602 sed 's/^/| /' conftest.$ac_ext >&5
41606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41609 # Binary search between lo and hi bounds.
41610 while test "x$ac_lo" != "x$ac_hi"; do
41611 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41612 cat >conftest.$ac_ext <<_ACEOF
41615 cat confdefs.h >>conftest.$ac_ext
41616 cat >>conftest.$ac_ext <<_ACEOF
41617 /* end confdefs.h. */
41618 $ac_includes_default
41622 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41629 rm -f conftest.$ac_objext
41630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41631 (eval $ac_compile) 2>conftest.er1
41633 grep -v '^ *+' conftest.er1 >conftest.err
41635 cat conftest.err >&5
41636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41637 (exit $ac_status); } &&
41638 { ac_try='test -z "$ac_c_werror_flag"
41639 || test ! -s conftest.err'
41640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41641 (eval $ac_try) 2>&5
41643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41644 (exit $ac_status); }; } &&
41645 { ac_try='test -s conftest.$ac_objext'
41646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41647 (eval $ac_try) 2>&5
41649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41650 (exit $ac_status); }; }; then
41653 echo "$as_me: failed program was:" >&5
41654 sed 's/^/| /' conftest.$ac_ext >&5
41656 ac_lo=`expr '(' $ac_mid ')' + 1`
41658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41661 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
41662 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
41663 See \`config.log' for more details." >&5
41664 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
41665 See \`config.log' for more details." >&2;}
41666 { (exit 1); exit 1; }; } ;;
41669 if test "$cross_compiling" = yes; then
41670 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41671 See \`config.log' for more details." >&5
41672 echo "$as_me: error: cannot run test program while cross compiling
41673 See \`config.log' for more details." >&2;}
41674 { (exit 1); exit 1; }; }
41676 cat >conftest.$ac_ext <<_ACEOF
41679 cat confdefs.h >>conftest.$ac_ext
41680 cat >>conftest.$ac_ext <<_ACEOF
41681 /* end confdefs.h. */
41682 $ac_includes_default
41683 long longval () { return (long) (sizeof (wchar_t)); }
41684 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
41686 #include <stdlib.h>
41691 FILE *f = fopen ("conftest.val", "w");
41694 if (((long) (sizeof (wchar_t))) < 0)
41696 long i = longval ();
41697 if (i != ((long) (sizeof (wchar_t))))
41699 fprintf (f, "%ld\n", i);
41703 unsigned long i = ulongval ();
41704 if (i != ((long) (sizeof (wchar_t))))
41706 fprintf (f, "%lu\n", i);
41708 exit (ferror (f) || fclose (f) != 0);
41714 rm -f conftest$ac_exeext
41715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41716 (eval $ac_link) 2>&5
41718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41721 (eval $ac_try) 2>&5
41723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41724 (exit $ac_status); }; }; then
41725 ac_cv_sizeof_wchar_t=`cat conftest.val`
41727 echo "$as_me: program exited with status $ac_status" >&5
41728 echo "$as_me: failed program was:" >&5
41729 sed 's/^/| /' conftest.$ac_ext >&5
41731 ( exit $ac_status )
41732 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
41733 See \`config.log' for more details." >&5
41734 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
41735 See \`config.log' for more details." >&2;}
41736 { (exit 1); exit 1; }; }
41738 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41743 ac_cv_sizeof_wchar_t=0
41746 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
41747 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
41748 cat >>confdefs.h <<_ACEOF
41749 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
41754 if test "$ac_cv_sizeof_int" -lt 4 ; then
41755 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
41756 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
41759 cat >>confdefs.h <<\_ACEOF
41760 #define LBER_INT_T long
41765 cat >>confdefs.h <<\_ACEOF
41766 #define LBER_INT_T int
41772 cat >>confdefs.h <<\_ACEOF
41773 #define LBER_LEN_T long
41777 cat >>confdefs.h <<\_ACEOF
41778 #define LBER_SOCKET_T int
41782 cat >>confdefs.h <<\_ACEOF
41783 #define LBER_TAG_T long
41787 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
41788 if test $ac_cv_sizeof_long_long -gt 4 ; then
41789 ol_with_mp=longlong
41791 cat >>confdefs.h <<\_ACEOF
41792 #define USE_MP_LONG_LONG 1
41795 elif test $ol_with_mp = longlong ; then
41796 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
41797 echo "$as_me: error: long long unusable for multiple precision" >&2;}
41798 { (exit 1); exit 1; }; }
41801 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
41802 if test $ac_cv_sizeof_long -gt 4 ; then
41805 cat >>confdefs.h <<\_ACEOF
41806 #define USE_MP_LONG 1
41809 elif test $ol_with_mp = long ; then
41810 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
41811 echo "$as_me: error: long unusable for multiple precision" >&2;}
41812 { (exit 1); exit 1; }; }
41815 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
41817 for ac_header in openssl/bn.h
41819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41821 echo "$as_me:$LINENO: checking for $ac_header" >&5
41822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41824 echo $ECHO_N "(cached) $ECHO_C" >&6
41826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41829 # Is the header compilable?
41830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41832 cat >conftest.$ac_ext <<_ACEOF
41835 cat confdefs.h >>conftest.$ac_ext
41836 cat >>conftest.$ac_ext <<_ACEOF
41837 /* end confdefs.h. */
41838 $ac_includes_default
41839 #include <$ac_header>
41841 rm -f conftest.$ac_objext
41842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41843 (eval $ac_compile) 2>conftest.er1
41845 grep -v '^ *+' conftest.er1 >conftest.err
41847 cat conftest.err >&5
41848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849 (exit $ac_status); } &&
41850 { ac_try='test -z "$ac_c_werror_flag"
41851 || test ! -s conftest.err'
41852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41853 (eval $ac_try) 2>&5
41855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41856 (exit $ac_status); }; } &&
41857 { ac_try='test -s conftest.$ac_objext'
41858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41859 (eval $ac_try) 2>&5
41861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41862 (exit $ac_status); }; }; then
41863 ac_header_compiler=yes
41865 echo "$as_me: failed program was:" >&5
41866 sed 's/^/| /' conftest.$ac_ext >&5
41868 ac_header_compiler=no
41870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41872 echo "${ECHO_T}$ac_header_compiler" >&6
41874 # Is the header present?
41875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41877 cat >conftest.$ac_ext <<_ACEOF
41880 cat confdefs.h >>conftest.$ac_ext
41881 cat >>conftest.$ac_ext <<_ACEOF
41882 /* end confdefs.h. */
41883 #include <$ac_header>
41885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41888 grep -v '^ *+' conftest.er1 >conftest.err
41890 cat conftest.err >&5
41891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41892 (exit $ac_status); } >/dev/null; then
41893 if test -s conftest.err; then
41894 ac_cpp_err=$ac_c_preproc_warn_flag
41895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41902 if test -z "$ac_cpp_err"; then
41903 ac_header_preproc=yes
41905 echo "$as_me: failed program was:" >&5
41906 sed 's/^/| /' conftest.$ac_ext >&5
41908 ac_header_preproc=no
41910 rm -f conftest.err conftest.$ac_ext
41911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41912 echo "${ECHO_T}$ac_header_preproc" >&6
41914 # So? What about this header?
41915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41921 ac_header_preproc=yes
41924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41938 ## --------------------------------------------- ##
41939 ## Report this to <http://www.openldap.org/its/> ##
41940 ## --------------------------------------------- ##
41943 sed "s/^/$as_me: WARNING: /" >&2
41946 echo "$as_me:$LINENO: checking for $ac_header" >&5
41947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41949 echo $ECHO_N "(cached) $ECHO_C" >&6
41951 eval "$as_ac_Header=\$ac_header_preproc"
41953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41958 cat >>confdefs.h <<_ACEOF
41959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41967 for ac_header in openssl/crypto.h
41969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41971 echo "$as_me:$LINENO: checking for $ac_header" >&5
41972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41974 echo $ECHO_N "(cached) $ECHO_C" >&6
41976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41979 # Is the header compilable?
41980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41982 cat >conftest.$ac_ext <<_ACEOF
41985 cat confdefs.h >>conftest.$ac_ext
41986 cat >>conftest.$ac_ext <<_ACEOF
41987 /* end confdefs.h. */
41988 $ac_includes_default
41989 #include <$ac_header>
41991 rm -f conftest.$ac_objext
41992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41993 (eval $ac_compile) 2>conftest.er1
41995 grep -v '^ *+' conftest.er1 >conftest.err
41997 cat conftest.err >&5
41998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41999 (exit $ac_status); } &&
42000 { ac_try='test -z "$ac_c_werror_flag"
42001 || test ! -s conftest.err'
42002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42003 (eval $ac_try) 2>&5
42005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42006 (exit $ac_status); }; } &&
42007 { ac_try='test -s conftest.$ac_objext'
42008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42009 (eval $ac_try) 2>&5
42011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42012 (exit $ac_status); }; }; then
42013 ac_header_compiler=yes
42015 echo "$as_me: failed program was:" >&5
42016 sed 's/^/| /' conftest.$ac_ext >&5
42018 ac_header_compiler=no
42020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42022 echo "${ECHO_T}$ac_header_compiler" >&6
42024 # Is the header present?
42025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42027 cat >conftest.$ac_ext <<_ACEOF
42030 cat confdefs.h >>conftest.$ac_ext
42031 cat >>conftest.$ac_ext <<_ACEOF
42032 /* end confdefs.h. */
42033 #include <$ac_header>
42035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42038 grep -v '^ *+' conftest.er1 >conftest.err
42040 cat conftest.err >&5
42041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42042 (exit $ac_status); } >/dev/null; then
42043 if test -s conftest.err; then
42044 ac_cpp_err=$ac_c_preproc_warn_flag
42045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42052 if test -z "$ac_cpp_err"; then
42053 ac_header_preproc=yes
42055 echo "$as_me: failed program was:" >&5
42056 sed 's/^/| /' conftest.$ac_ext >&5
42058 ac_header_preproc=no
42060 rm -f conftest.err conftest.$ac_ext
42061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42062 echo "${ECHO_T}$ac_header_preproc" >&6
42064 # So? What about this header?
42065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42071 ac_header_preproc=yes
42074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42088 ## --------------------------------------------- ##
42089 ## Report this to <http://www.openldap.org/its/> ##
42090 ## --------------------------------------------- ##
42093 sed "s/^/$as_me: WARNING: /" >&2
42096 echo "$as_me:$LINENO: checking for $ac_header" >&5
42097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42099 echo $ECHO_N "(cached) $ECHO_C" >&6
42101 eval "$as_ac_Header=\$ac_header_preproc"
42103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42108 cat >>confdefs.h <<_ACEOF
42109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42116 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
42117 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
42118 test "$ol_with_tls" = "found" ; then
42121 cat >>confdefs.h <<\_ACEOF
42122 #define USE_MP_BIGNUM 1
42125 elif test $ol_with_mp = bignum ; then
42126 { { echo "$as_me:$LINENO: error: bignum not available" >&5
42127 echo "$as_me: error: bignum not available" >&2;}
42128 { (exit 1); exit 1; }; }
42131 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
42133 for ac_header in gmp.h
42135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42137 echo "$as_me:$LINENO: checking for $ac_header" >&5
42138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42140 echo $ECHO_N "(cached) $ECHO_C" >&6
42142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42145 # Is the header compilable?
42146 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42148 cat >conftest.$ac_ext <<_ACEOF
42151 cat confdefs.h >>conftest.$ac_ext
42152 cat >>conftest.$ac_ext <<_ACEOF
42153 /* end confdefs.h. */
42154 $ac_includes_default
42155 #include <$ac_header>
42157 rm -f conftest.$ac_objext
42158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42159 (eval $ac_compile) 2>conftest.er1
42161 grep -v '^ *+' conftest.er1 >conftest.err
42163 cat conftest.err >&5
42164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42165 (exit $ac_status); } &&
42166 { ac_try='test -z "$ac_c_werror_flag"
42167 || test ! -s conftest.err'
42168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42169 (eval $ac_try) 2>&5
42171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42172 (exit $ac_status); }; } &&
42173 { ac_try='test -s conftest.$ac_objext'
42174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42175 (eval $ac_try) 2>&5
42177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42178 (exit $ac_status); }; }; then
42179 ac_header_compiler=yes
42181 echo "$as_me: failed program was:" >&5
42182 sed 's/^/| /' conftest.$ac_ext >&5
42184 ac_header_compiler=no
42186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42188 echo "${ECHO_T}$ac_header_compiler" >&6
42190 # Is the header present?
42191 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42193 cat >conftest.$ac_ext <<_ACEOF
42196 cat confdefs.h >>conftest.$ac_ext
42197 cat >>conftest.$ac_ext <<_ACEOF
42198 /* end confdefs.h. */
42199 #include <$ac_header>
42201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42204 grep -v '^ *+' conftest.er1 >conftest.err
42206 cat conftest.err >&5
42207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42208 (exit $ac_status); } >/dev/null; then
42209 if test -s conftest.err; then
42210 ac_cpp_err=$ac_c_preproc_warn_flag
42211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42218 if test -z "$ac_cpp_err"; then
42219 ac_header_preproc=yes
42221 echo "$as_me: failed program was:" >&5
42222 sed 's/^/| /' conftest.$ac_ext >&5
42224 ac_header_preproc=no
42226 rm -f conftest.err conftest.$ac_ext
42227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42228 echo "${ECHO_T}$ac_header_preproc" >&6
42230 # So? What about this header?
42231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42237 ac_header_preproc=yes
42240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42243 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42247 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42254 ## --------------------------------------------- ##
42255 ## Report this to <http://www.openldap.org/its/> ##
42256 ## --------------------------------------------- ##
42259 sed "s/^/$as_me: WARNING: /" >&2
42262 echo "$as_me:$LINENO: checking for $ac_header" >&5
42263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42265 echo $ECHO_N "(cached) $ECHO_C" >&6
42267 eval "$as_ac_Header=\$ac_header_preproc"
42269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42274 cat >>confdefs.h <<_ACEOF
42275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42283 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
42284 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
42285 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
42286 echo $ECHO_N "(cached) $ECHO_C" >&6
42288 ac_check_lib_save_LIBS=$LIBS
42290 cat >conftest.$ac_ext <<_ACEOF
42293 cat confdefs.h >>conftest.$ac_ext
42294 cat >>conftest.$ac_ext <<_ACEOF
42295 /* end confdefs.h. */
42297 /* Override any gcc2 internal prototype to avoid an error. */
42301 /* We use char because int might match the return type of a gcc2
42302 builtin and then its argument prototype would still apply. */
42303 char __gmpz_add_ui ();
42312 rm -f conftest.$ac_objext conftest$ac_exeext
42313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42314 (eval $ac_link) 2>conftest.er1
42316 grep -v '^ *+' conftest.er1 >conftest.err
42318 cat conftest.err >&5
42319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42320 (exit $ac_status); } &&
42321 { ac_try='test -z "$ac_c_werror_flag"
42322 || test ! -s conftest.err'
42323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42324 (eval $ac_try) 2>&5
42326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42327 (exit $ac_status); }; } &&
42328 { ac_try='test -s conftest$ac_exeext'
42329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42330 (eval $ac_try) 2>&5
42332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42333 (exit $ac_status); }; }; then
42334 ac_cv_lib_gmp___gmpz_add_ui=yes
42336 echo "$as_me: failed program was:" >&5
42337 sed 's/^/| /' conftest.$ac_ext >&5
42339 ac_cv_lib_gmp___gmpz_add_ui=no
42341 rm -f conftest.err conftest.$ac_objext \
42342 conftest$ac_exeext conftest.$ac_ext
42343 LIBS=$ac_check_lib_save_LIBS
42345 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
42346 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
42347 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
42348 cat >>confdefs.h <<_ACEOF
42349 #define HAVE_LIBGMP 1
42356 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp = yes ; then
42358 cat >>confdefs.h <<\_ACEOF
42359 #define USE_MP_GMP 1
42363 elif test $ol_with_mp = gmp ; then
42364 { { echo "$as_me:$LINENO: error: gmp not available" >&5
42365 echo "$as_me: error: gmp not available" >&2;}
42366 { (exit 1); exit 1; }; }
42369 if test $ol_with_mp = auto ; then
42373 echo "$as_me:$LINENO: checking for working memcmp" >&5
42374 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42375 if test "${ac_cv_func_memcmp_working+set}" = set; then
42376 echo $ECHO_N "(cached) $ECHO_C" >&6
42378 if test "$cross_compiling" = yes; then
42379 ac_cv_func_memcmp_working=no
42381 cat >conftest.$ac_ext <<_ACEOF
42384 cat confdefs.h >>conftest.$ac_ext
42385 cat >>conftest.$ac_ext <<_ACEOF
42386 /* end confdefs.h. */
42387 $ac_includes_default
42392 /* Some versions of memcmp are not 8-bit clean. */
42393 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42394 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42397 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42398 or more and with at least one buffer not starting on a 4-byte boundary.
42399 William Lewis provided this test program. */
42404 for (i = 0; i < 4; i++)
42408 strcpy (a, "--------01111111");
42409 strcpy (b, "--------10000000");
42410 if (memcmp (a, b, 16) >= 0)
42420 rm -f conftest$ac_exeext
42421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42422 (eval $ac_link) 2>&5
42424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42427 (eval $ac_try) 2>&5
42429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42430 (exit $ac_status); }; }; then
42431 ac_cv_func_memcmp_working=yes
42433 echo "$as_me: program exited with status $ac_status" >&5
42434 echo "$as_me: failed program was:" >&5
42435 sed 's/^/| /' conftest.$ac_ext >&5
42437 ( exit $ac_status )
42438 ac_cv_func_memcmp_working=no
42440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42443 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42444 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42445 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42446 "memcmp.$ac_objext" | \
42447 *" memcmp.$ac_objext" | \
42448 "memcmp.$ac_objext "* | \
42449 *" memcmp.$ac_objext "* ) ;;
42450 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42455 if test $ac_cv_func_memcmp_working = no ; then
42457 cat >>confdefs.h <<\_ACEOF
42458 #define NEED_MEMCMP_REPLACEMENT 1
42464 for ac_func in strftime
42466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42467 echo "$as_me:$LINENO: checking for $ac_func" >&5
42468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42469 if eval "test \"\${$as_ac_var+set}\" = set"; then
42470 echo $ECHO_N "(cached) $ECHO_C" >&6
42472 cat >conftest.$ac_ext <<_ACEOF
42475 cat confdefs.h >>conftest.$ac_ext
42476 cat >>conftest.$ac_ext <<_ACEOF
42477 /* end confdefs.h. */
42478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42480 #define $ac_func innocuous_$ac_func
42482 /* System header to define __stub macros and hopefully few prototypes,
42483 which can conflict with char $ac_func (); below.
42484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42485 <limits.h> exists even on freestanding compilers. */
42488 # include <limits.h>
42490 # include <assert.h>
42495 /* Override any gcc2 internal prototype to avoid an error. */
42500 /* We use char because int might match the return type of a gcc2
42501 builtin and then its argument prototype would still apply. */
42503 /* The GNU C library defines this for functions which it implements
42504 to always fail with ENOSYS. Some functions are actually named
42505 something starting with __ and the normal name is an alias. */
42506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42509 char (*f) () = $ac_func;
42518 return f != $ac_func;
42523 rm -f conftest.$ac_objext conftest$ac_exeext
42524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42525 (eval $ac_link) 2>conftest.er1
42527 grep -v '^ *+' conftest.er1 >conftest.err
42529 cat conftest.err >&5
42530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42531 (exit $ac_status); } &&
42532 { ac_try='test -z "$ac_c_werror_flag"
42533 || test ! -s conftest.err'
42534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42535 (eval $ac_try) 2>&5
42537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42538 (exit $ac_status); }; } &&
42539 { ac_try='test -s conftest$ac_exeext'
42540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42541 (eval $ac_try) 2>&5
42543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42544 (exit $ac_status); }; }; then
42545 eval "$as_ac_var=yes"
42547 echo "$as_me: failed program was:" >&5
42548 sed 's/^/| /' conftest.$ac_ext >&5
42550 eval "$as_ac_var=no"
42552 rm -f conftest.err conftest.$ac_objext \
42553 conftest$ac_exeext conftest.$ac_ext
42555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42557 if test `eval echo '${'$as_ac_var'}'` = yes; then
42558 cat >>confdefs.h <<_ACEOF
42559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42563 # strftime is in -lintl on SCO UNIX.
42564 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42565 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42566 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42567 echo $ECHO_N "(cached) $ECHO_C" >&6
42569 ac_check_lib_save_LIBS=$LIBS
42570 LIBS="-lintl $LIBS"
42571 cat >conftest.$ac_ext <<_ACEOF
42574 cat confdefs.h >>conftest.$ac_ext
42575 cat >>conftest.$ac_ext <<_ACEOF
42576 /* end confdefs.h. */
42578 /* Override any gcc2 internal prototype to avoid an error. */
42582 /* We use char because int might match the return type of a gcc2
42583 builtin and then its argument prototype would still apply. */
42593 rm -f conftest.$ac_objext conftest$ac_exeext
42594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42595 (eval $ac_link) 2>conftest.er1
42597 grep -v '^ *+' conftest.er1 >conftest.err
42599 cat conftest.err >&5
42600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42601 (exit $ac_status); } &&
42602 { ac_try='test -z "$ac_c_werror_flag"
42603 || test ! -s conftest.err'
42604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42605 (eval $ac_try) 2>&5
42607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42608 (exit $ac_status); }; } &&
42609 { ac_try='test -s conftest$ac_exeext'
42610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42611 (eval $ac_try) 2>&5
42613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42614 (exit $ac_status); }; }; then
42615 ac_cv_lib_intl_strftime=yes
42617 echo "$as_me: failed program was:" >&5
42618 sed 's/^/| /' conftest.$ac_ext >&5
42620 ac_cv_lib_intl_strftime=no
42622 rm -f conftest.err conftest.$ac_objext \
42623 conftest$ac_exeext conftest.$ac_ext
42624 LIBS=$ac_check_lib_save_LIBS
42626 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42627 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42628 if test $ac_cv_lib_intl_strftime = yes; then
42629 cat >>confdefs.h <<\_ACEOF
42630 #define HAVE_STRFTIME 1
42633 LIBS="-lintl $LIBS"
42640 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42641 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42642 if test "${ol_cv_func_inet_aton+set}" = set; then
42643 echo $ECHO_N "(cached) $ECHO_C" >&6
42645 cat >conftest.$ac_ext <<_ACEOF
42648 cat confdefs.h >>conftest.$ac_ext
42649 cat >>conftest.$ac_ext <<_ACEOF
42650 /* end confdefs.h. */
42652 #ifdef HAVE_SYS_TYPES_H
42653 # include <sys/types.h>
42655 #ifdef HAVE_SYS_SOCKET_H
42656 # include <sys/socket.h>
42657 # ifdef HAVE_SYS_SELECT_H
42658 # include <sys/select.h>
42660 # include <netinet/in.h>
42661 # ifdef HAVE_ARPA_INET_H
42662 # include <arpa/inet.h>
42670 int rc = inet_aton( "255.255.255.255", &in );
42675 rm -f conftest.$ac_objext conftest$ac_exeext
42676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42677 (eval $ac_link) 2>conftest.er1
42679 grep -v '^ *+' conftest.er1 >conftest.err
42681 cat conftest.err >&5
42682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42683 (exit $ac_status); } &&
42684 { ac_try='test -z "$ac_c_werror_flag"
42685 || test ! -s conftest.err'
42686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42687 (eval $ac_try) 2>&5
42689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42690 (exit $ac_status); }; } &&
42691 { ac_try='test -s conftest$ac_exeext'
42692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42693 (eval $ac_try) 2>&5
42695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42696 (exit $ac_status); }; }; then
42697 ol_cv_func_inet_aton=yes
42699 echo "$as_me: failed program was:" >&5
42700 sed 's/^/| /' conftest.$ac_ext >&5
42702 ol_cv_func_inet_aton=no
42704 rm -f conftest.err conftest.$ac_objext \
42705 conftest$ac_exeext conftest.$ac_ext
42707 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42708 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42709 if test $ol_cv_func_inet_aton != no; then
42711 cat >>confdefs.h <<\_ACEOF
42712 #define HAVE_INET_ATON 1
42718 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42719 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42720 if test "${ac_cv_func__spawnlp+set}" = set; then
42721 echo $ECHO_N "(cached) $ECHO_C" >&6
42723 cat >conftest.$ac_ext <<_ACEOF
42726 cat confdefs.h >>conftest.$ac_ext
42727 cat >>conftest.$ac_ext <<_ACEOF
42728 /* end confdefs.h. */
42729 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42731 #define _spawnlp innocuous__spawnlp
42733 /* System header to define __stub macros and hopefully few prototypes,
42734 which can conflict with char _spawnlp (); below.
42735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42736 <limits.h> exists even on freestanding compilers. */
42739 # include <limits.h>
42741 # include <assert.h>
42746 /* Override any gcc2 internal prototype to avoid an error. */
42751 /* We use char because int might match the return type of a gcc2
42752 builtin and then its argument prototype would still apply. */
42754 /* The GNU C library defines this for functions which it implements
42755 to always fail with ENOSYS. Some functions are actually named
42756 something starting with __ and the normal name is an alias. */
42757 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42760 char (*f) () = _spawnlp;
42769 return f != _spawnlp;
42774 rm -f conftest.$ac_objext conftest$ac_exeext
42775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42776 (eval $ac_link) 2>conftest.er1
42778 grep -v '^ *+' conftest.er1 >conftest.err
42780 cat conftest.err >&5
42781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42782 (exit $ac_status); } &&
42783 { ac_try='test -z "$ac_c_werror_flag"
42784 || test ! -s conftest.err'
42785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42786 (eval $ac_try) 2>&5
42788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42789 (exit $ac_status); }; } &&
42790 { ac_try='test -s conftest$ac_exeext'
42791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42792 (eval $ac_try) 2>&5
42794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42795 (exit $ac_status); }; }; then
42796 ac_cv_func__spawnlp=yes
42798 echo "$as_me: failed program was:" >&5
42799 sed 's/^/| /' conftest.$ac_ext >&5
42801 ac_cv_func__spawnlp=no
42803 rm -f conftest.err conftest.$ac_objext \
42804 conftest$ac_exeext conftest.$ac_ext
42806 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42807 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42808 if test $ac_cv_func__spawnlp = yes; then
42810 cat >>confdefs.h <<\_ACEOF
42811 #define HAVE_SPAWNLP 1
42817 echo "$as_me:$LINENO: checking for _snprintf" >&5
42818 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42819 if test "${ac_cv_func__snprintf+set}" = set; then
42820 echo $ECHO_N "(cached) $ECHO_C" >&6
42822 cat >conftest.$ac_ext <<_ACEOF
42825 cat confdefs.h >>conftest.$ac_ext
42826 cat >>conftest.$ac_ext <<_ACEOF
42827 /* end confdefs.h. */
42828 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42830 #define _snprintf innocuous__snprintf
42832 /* System header to define __stub macros and hopefully few prototypes,
42833 which can conflict with char _snprintf (); below.
42834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42835 <limits.h> exists even on freestanding compilers. */
42838 # include <limits.h>
42840 # include <assert.h>
42845 /* Override any gcc2 internal prototype to avoid an error. */
42850 /* We use char because int might match the return type of a gcc2
42851 builtin and then its argument prototype would still apply. */
42853 /* The GNU C library defines this for functions which it implements
42854 to always fail with ENOSYS. Some functions are actually named
42855 something starting with __ and the normal name is an alias. */
42856 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42859 char (*f) () = _snprintf;
42868 return f != _snprintf;
42873 rm -f conftest.$ac_objext conftest$ac_exeext
42874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42875 (eval $ac_link) 2>conftest.er1
42877 grep -v '^ *+' conftest.er1 >conftest.err
42879 cat conftest.err >&5
42880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42881 (exit $ac_status); } &&
42882 { ac_try='test -z "$ac_c_werror_flag"
42883 || test ! -s conftest.err'
42884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42885 (eval $ac_try) 2>&5
42887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42888 (exit $ac_status); }; } &&
42889 { ac_try='test -s conftest$ac_exeext'
42890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42891 (eval $ac_try) 2>&5
42893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42894 (exit $ac_status); }; }; then
42895 ac_cv_func__snprintf=yes
42897 echo "$as_me: failed program was:" >&5
42898 sed 's/^/| /' conftest.$ac_ext >&5
42900 ac_cv_func__snprintf=no
42902 rm -f conftest.err conftest.$ac_objext \
42903 conftest$ac_exeext conftest.$ac_ext
42905 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42906 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42907 if test $ac_cv_func__snprintf = yes; then
42908 ac_cv_func_snprintf=yes
42910 cat >>confdefs.h <<\_ACEOF
42911 #define snprintf _snprintf
42918 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42919 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42920 if test "${ac_cv_func__vsnprintf+set}" = set; then
42921 echo $ECHO_N "(cached) $ECHO_C" >&6
42923 cat >conftest.$ac_ext <<_ACEOF
42926 cat confdefs.h >>conftest.$ac_ext
42927 cat >>conftest.$ac_ext <<_ACEOF
42928 /* end confdefs.h. */
42929 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42931 #define _vsnprintf innocuous__vsnprintf
42933 /* System header to define __stub macros and hopefully few prototypes,
42934 which can conflict with char _vsnprintf (); below.
42935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42936 <limits.h> exists even on freestanding compilers. */
42939 # include <limits.h>
42941 # include <assert.h>
42946 /* Override any gcc2 internal prototype to avoid an error. */
42951 /* We use char because int might match the return type of a gcc2
42952 builtin and then its argument prototype would still apply. */
42953 char _vsnprintf ();
42954 /* The GNU C library defines this for functions which it implements
42955 to always fail with ENOSYS. Some functions are actually named
42956 something starting with __ and the normal name is an alias. */
42957 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42960 char (*f) () = _vsnprintf;
42969 return f != _vsnprintf;
42974 rm -f conftest.$ac_objext conftest$ac_exeext
42975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42976 (eval $ac_link) 2>conftest.er1
42978 grep -v '^ *+' conftest.er1 >conftest.err
42980 cat conftest.err >&5
42981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42982 (exit $ac_status); } &&
42983 { ac_try='test -z "$ac_c_werror_flag"
42984 || test ! -s conftest.err'
42985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42986 (eval $ac_try) 2>&5
42988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42989 (exit $ac_status); }; } &&
42990 { ac_try='test -s conftest$ac_exeext'
42991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42992 (eval $ac_try) 2>&5
42994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42995 (exit $ac_status); }; }; then
42996 ac_cv_func__vsnprintf=yes
42998 echo "$as_me: failed program was:" >&5
42999 sed 's/^/| /' conftest.$ac_ext >&5
43001 ac_cv_func__vsnprintf=no
43003 rm -f conftest.err conftest.$ac_objext \
43004 conftest$ac_exeext conftest.$ac_ext
43006 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
43007 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
43008 if test $ac_cv_func__vsnprintf = yes; then
43009 ac_cv_func_vsnprintf=yes
43011 cat >>confdefs.h <<\_ACEOF
43012 #define vsnprintf _vsnprintf
43020 for ac_func in vprintf
43022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43023 echo "$as_me:$LINENO: checking for $ac_func" >&5
43024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43025 if eval "test \"\${$as_ac_var+set}\" = set"; then
43026 echo $ECHO_N "(cached) $ECHO_C" >&6
43028 cat >conftest.$ac_ext <<_ACEOF
43031 cat confdefs.h >>conftest.$ac_ext
43032 cat >>conftest.$ac_ext <<_ACEOF
43033 /* end confdefs.h. */
43034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43036 #define $ac_func innocuous_$ac_func
43038 /* System header to define __stub macros and hopefully few prototypes,
43039 which can conflict with char $ac_func (); below.
43040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43041 <limits.h> exists even on freestanding compilers. */
43044 # include <limits.h>
43046 # include <assert.h>
43051 /* Override any gcc2 internal prototype to avoid an error. */
43056 /* We use char because int might match the return type of a gcc2
43057 builtin and then its argument prototype would still apply. */
43059 /* The GNU C library defines this for functions which it implements
43060 to always fail with ENOSYS. Some functions are actually named
43061 something starting with __ and the normal name is an alias. */
43062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43065 char (*f) () = $ac_func;
43074 return f != $ac_func;
43079 rm -f conftest.$ac_objext conftest$ac_exeext
43080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43081 (eval $ac_link) 2>conftest.er1
43083 grep -v '^ *+' conftest.er1 >conftest.err
43085 cat conftest.err >&5
43086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43087 (exit $ac_status); } &&
43088 { ac_try='test -z "$ac_c_werror_flag"
43089 || test ! -s conftest.err'
43090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43091 (eval $ac_try) 2>&5
43093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43094 (exit $ac_status); }; } &&
43095 { ac_try='test -s conftest$ac_exeext'
43096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43097 (eval $ac_try) 2>&5
43099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43100 (exit $ac_status); }; }; then
43101 eval "$as_ac_var=yes"
43103 echo "$as_me: failed program was:" >&5
43104 sed 's/^/| /' conftest.$ac_ext >&5
43106 eval "$as_ac_var=no"
43108 rm -f conftest.err conftest.$ac_objext \
43109 conftest$ac_exeext conftest.$ac_ext
43111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43113 if test `eval echo '${'$as_ac_var'}'` = yes; then
43114 cat >>confdefs.h <<_ACEOF
43115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43118 echo "$as_me:$LINENO: checking for _doprnt" >&5
43119 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
43120 if test "${ac_cv_func__doprnt+set}" = set; then
43121 echo $ECHO_N "(cached) $ECHO_C" >&6
43123 cat >conftest.$ac_ext <<_ACEOF
43126 cat confdefs.h >>conftest.$ac_ext
43127 cat >>conftest.$ac_ext <<_ACEOF
43128 /* end confdefs.h. */
43129 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
43130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43131 #define _doprnt innocuous__doprnt
43133 /* System header to define __stub macros and hopefully few prototypes,
43134 which can conflict with char _doprnt (); below.
43135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43136 <limits.h> exists even on freestanding compilers. */
43139 # include <limits.h>
43141 # include <assert.h>
43146 /* Override any gcc2 internal prototype to avoid an error. */
43151 /* We use char because int might match the return type of a gcc2
43152 builtin and then its argument prototype would still apply. */
43154 /* The GNU C library defines this for functions which it implements
43155 to always fail with ENOSYS. Some functions are actually named
43156 something starting with __ and the normal name is an alias. */
43157 #if defined (__stub__doprnt) || defined (__stub____doprnt)
43160 char (*f) () = _doprnt;
43169 return f != _doprnt;
43174 rm -f conftest.$ac_objext conftest$ac_exeext
43175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43176 (eval $ac_link) 2>conftest.er1
43178 grep -v '^ *+' conftest.er1 >conftest.err
43180 cat conftest.err >&5
43181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43182 (exit $ac_status); } &&
43183 { ac_try='test -z "$ac_c_werror_flag"
43184 || test ! -s conftest.err'
43185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43186 (eval $ac_try) 2>&5
43188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43189 (exit $ac_status); }; } &&
43190 { ac_try='test -s conftest$ac_exeext'
43191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43192 (eval $ac_try) 2>&5
43194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43195 (exit $ac_status); }; }; then
43196 ac_cv_func__doprnt=yes
43198 echo "$as_me: failed program was:" >&5
43199 sed 's/^/| /' conftest.$ac_ext >&5
43201 ac_cv_func__doprnt=no
43203 rm -f conftest.err conftest.$ac_objext \
43204 conftest$ac_exeext conftest.$ac_ext
43206 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43207 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43208 if test $ac_cv_func__doprnt = yes; then
43210 cat >>confdefs.h <<\_ACEOF
43211 #define HAVE_DOPRNT 1
43221 if test $ac_cv_func_vprintf = yes ; then
43224 for ac_func in snprintf vsnprintf
43226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43227 echo "$as_me:$LINENO: checking for $ac_func" >&5
43228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43229 if eval "test \"\${$as_ac_var+set}\" = set"; then
43230 echo $ECHO_N "(cached) $ECHO_C" >&6
43232 cat >conftest.$ac_ext <<_ACEOF
43235 cat confdefs.h >>conftest.$ac_ext
43236 cat >>conftest.$ac_ext <<_ACEOF
43237 /* end confdefs.h. */
43238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43240 #define $ac_func innocuous_$ac_func
43242 /* System header to define __stub macros and hopefully few prototypes,
43243 which can conflict with char $ac_func (); below.
43244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43245 <limits.h> exists even on freestanding compilers. */
43248 # include <limits.h>
43250 # include <assert.h>
43255 /* Override any gcc2 internal prototype to avoid an error. */
43260 /* We use char because int might match the return type of a gcc2
43261 builtin and then its argument prototype would still apply. */
43263 /* The GNU C library defines this for functions which it implements
43264 to always fail with ENOSYS. Some functions are actually named
43265 something starting with __ and the normal name is an alias. */
43266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43269 char (*f) () = $ac_func;
43278 return f != $ac_func;
43283 rm -f conftest.$ac_objext conftest$ac_exeext
43284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43285 (eval $ac_link) 2>conftest.er1
43287 grep -v '^ *+' conftest.er1 >conftest.err
43289 cat conftest.err >&5
43290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43291 (exit $ac_status); } &&
43292 { ac_try='test -z "$ac_c_werror_flag"
43293 || test ! -s conftest.err'
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); }; } &&
43299 { ac_try='test -s conftest$ac_exeext'
43300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43301 (eval $ac_try) 2>&5
43303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304 (exit $ac_status); }; }; then
43305 eval "$as_ac_var=yes"
43307 echo "$as_me: failed program was:" >&5
43308 sed 's/^/| /' conftest.$ac_ext >&5
43310 eval "$as_ac_var=no"
43312 rm -f conftest.err conftest.$ac_objext \
43313 conftest$ac_exeext conftest.$ac_ext
43315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43317 if test `eval echo '${'$as_ac_var'}'` = yes; then
43318 cat >>confdefs.h <<_ACEOF
43319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43439 echo "$as_me:$LINENO: checking for $ac_func" >&5
43440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43441 if eval "test \"\${$as_ac_var+set}\" = set"; then
43442 echo $ECHO_N "(cached) $ECHO_C" >&6
43444 cat >conftest.$ac_ext <<_ACEOF
43447 cat confdefs.h >>conftest.$ac_ext
43448 cat >>conftest.$ac_ext <<_ACEOF
43449 /* end confdefs.h. */
43450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43452 #define $ac_func innocuous_$ac_func
43454 /* System header to define __stub macros and hopefully few prototypes,
43455 which can conflict with char $ac_func (); below.
43456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43457 <limits.h> exists even on freestanding compilers. */
43460 # include <limits.h>
43462 # include <assert.h>
43467 /* Override any gcc2 internal prototype to avoid an error. */
43472 /* We use char because int might match the return type of a gcc2
43473 builtin and then its argument prototype would still apply. */
43475 /* The GNU C library defines this for functions which it implements
43476 to always fail with ENOSYS. Some functions are actually named
43477 something starting with __ and the normal name is an alias. */
43478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43481 char (*f) () = $ac_func;
43490 return f != $ac_func;
43495 rm -f conftest.$ac_objext conftest$ac_exeext
43496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43497 (eval $ac_link) 2>conftest.er1
43499 grep -v '^ *+' conftest.er1 >conftest.err
43501 cat conftest.err >&5
43502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43503 (exit $ac_status); } &&
43504 { ac_try='test -z "$ac_c_werror_flag"
43505 || test ! -s conftest.err'
43506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43507 (eval $ac_try) 2>&5
43509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43510 (exit $ac_status); }; } &&
43511 { ac_try='test -s conftest$ac_exeext'
43512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43513 (eval $ac_try) 2>&5
43515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43516 (exit $ac_status); }; }; then
43517 eval "$as_ac_var=yes"
43519 echo "$as_me: failed program was:" >&5
43520 sed 's/^/| /' conftest.$ac_ext >&5
43522 eval "$as_ac_var=no"
43524 rm -f conftest.err conftest.$ac_objext \
43525 conftest$ac_exeext conftest.$ac_ext
43527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43529 if test `eval echo '${'$as_ac_var'}'` = yes; then
43530 cat >>confdefs.h <<_ACEOF
43531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43540 for ac_func in getopt getpeereid
43542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43543 echo "$as_me:$LINENO: checking for $ac_func" >&5
43544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43545 if eval "test \"\${$as_ac_var+set}\" = set"; then
43546 echo $ECHO_N "(cached) $ECHO_C" >&6
43548 cat >conftest.$ac_ext <<_ACEOF
43551 cat confdefs.h >>conftest.$ac_ext
43552 cat >>conftest.$ac_ext <<_ACEOF
43553 /* end confdefs.h. */
43554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43556 #define $ac_func innocuous_$ac_func
43558 /* System header to define __stub macros and hopefully few prototypes,
43559 which can conflict with char $ac_func (); below.
43560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43561 <limits.h> exists even on freestanding compilers. */
43564 # include <limits.h>
43566 # include <assert.h>
43571 /* Override any gcc2 internal prototype to avoid an error. */
43576 /* We use char because int might match the return type of a gcc2
43577 builtin and then its argument prototype would still apply. */
43579 /* The GNU C library defines this for functions which it implements
43580 to always fail with ENOSYS. Some functions are actually named
43581 something starting with __ and the normal name is an alias. */
43582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43585 char (*f) () = $ac_func;
43594 return f != $ac_func;
43599 rm -f conftest.$ac_objext conftest$ac_exeext
43600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43601 (eval $ac_link) 2>conftest.er1
43603 grep -v '^ *+' conftest.er1 >conftest.err
43605 cat conftest.err >&5
43606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43607 (exit $ac_status); } &&
43608 { ac_try='test -z "$ac_c_werror_flag"
43609 || test ! -s conftest.err'
43610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43611 (eval $ac_try) 2>&5
43613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43614 (exit $ac_status); }; } &&
43615 { ac_try='test -s conftest$ac_exeext'
43616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43617 (eval $ac_try) 2>&5
43619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43620 (exit $ac_status); }; }; then
43621 eval "$as_ac_var=yes"
43623 echo "$as_me: failed program was:" >&5
43624 sed 's/^/| /' conftest.$ac_ext >&5
43626 eval "$as_ac_var=no"
43628 rm -f conftest.err conftest.$ac_objext \
43629 conftest$ac_exeext conftest.$ac_ext
43631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43633 if test `eval echo '${'$as_ac_var'}'` = yes; then
43634 cat >>confdefs.h <<_ACEOF
43635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43640 "$ac_func.$ac_objext" | \
43641 *" $ac_func.$ac_objext" | \
43642 "$ac_func.$ac_objext "* | \
43643 *" $ac_func.$ac_objext "* ) ;;
43644 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43652 if test "$ac_cv_func_getopt" != yes; then
43653 LIBSRCS="$LIBSRCS getopt.c"
43655 if test "$ac_cv_func_getpeereid" != yes; then
43656 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43657 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43658 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43659 echo $ECHO_N "(cached) $ECHO_C" >&6
43661 cat >conftest.$ac_ext <<_ACEOF
43664 cat confdefs.h >>conftest.$ac_ext
43665 cat >>conftest.$ac_ext <<_ACEOF
43666 /* end confdefs.h. */
43667 $ac_includes_default
43668 #ifdef HAVE_SYS_SOCKET_H
43669 #include <sys/socket.h>
43675 static struct msghdr ac_aggr;
43676 if (ac_aggr.msg_accrightslen)
43682 rm -f conftest.$ac_objext
43683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43684 (eval $ac_compile) 2>conftest.er1
43686 grep -v '^ *+' conftest.er1 >conftest.err
43688 cat conftest.err >&5
43689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43690 (exit $ac_status); } &&
43691 { ac_try='test -z "$ac_c_werror_flag"
43692 || test ! -s conftest.err'
43693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43694 (eval $ac_try) 2>&5
43696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43697 (exit $ac_status); }; } &&
43698 { ac_try='test -s conftest.$ac_objext'
43699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43700 (eval $ac_try) 2>&5
43702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43703 (exit $ac_status); }; }; then
43704 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43706 echo "$as_me: failed program was:" >&5
43707 sed 's/^/| /' conftest.$ac_ext >&5
43709 cat >conftest.$ac_ext <<_ACEOF
43712 cat confdefs.h >>conftest.$ac_ext
43713 cat >>conftest.$ac_ext <<_ACEOF
43714 /* end confdefs.h. */
43715 $ac_includes_default
43716 #ifdef HAVE_SYS_SOCKET_H
43717 #include <sys/socket.h>
43723 static struct msghdr ac_aggr;
43724 if (sizeof ac_aggr.msg_accrightslen)
43730 rm -f conftest.$ac_objext
43731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43732 (eval $ac_compile) 2>conftest.er1
43734 grep -v '^ *+' conftest.er1 >conftest.err
43736 cat conftest.err >&5
43737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43738 (exit $ac_status); } &&
43739 { ac_try='test -z "$ac_c_werror_flag"
43740 || test ! -s conftest.err'
43741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43742 (eval $ac_try) 2>&5
43744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43745 (exit $ac_status); }; } &&
43746 { ac_try='test -s conftest.$ac_objext'
43747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43748 (eval $ac_try) 2>&5
43750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43751 (exit $ac_status); }; }; then
43752 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43754 echo "$as_me: failed program was:" >&5
43755 sed 's/^/| /' conftest.$ac_ext >&5
43757 ac_cv_member_struct_msghdr_msg_accrightslen=no
43759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43763 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43764 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43765 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43767 cat >>confdefs.h <<_ACEOF
43768 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43774 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43775 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43776 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43777 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43778 echo $ECHO_N "(cached) $ECHO_C" >&6
43780 cat >conftest.$ac_ext <<_ACEOF
43783 cat confdefs.h >>conftest.$ac_ext
43784 cat >>conftest.$ac_ext <<_ACEOF
43785 /* end confdefs.h. */
43786 $ac_includes_default
43787 #ifdef HAVE_SYS_SOCKET_H
43788 #include <sys/socket.h>
43794 static struct msghdr ac_aggr;
43795 if (ac_aggr.msg_control)
43801 rm -f conftest.$ac_objext
43802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43803 (eval $ac_compile) 2>conftest.er1
43805 grep -v '^ *+' conftest.er1 >conftest.err
43807 cat conftest.err >&5
43808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43809 (exit $ac_status); } &&
43810 { ac_try='test -z "$ac_c_werror_flag"
43811 || test ! -s conftest.err'
43812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43813 (eval $ac_try) 2>&5
43815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43816 (exit $ac_status); }; } &&
43817 { ac_try='test -s conftest.$ac_objext'
43818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43819 (eval $ac_try) 2>&5
43821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43822 (exit $ac_status); }; }; then
43823 ac_cv_member_struct_msghdr_msg_control=yes
43825 echo "$as_me: failed program was:" >&5
43826 sed 's/^/| /' conftest.$ac_ext >&5
43828 cat >conftest.$ac_ext <<_ACEOF
43831 cat confdefs.h >>conftest.$ac_ext
43832 cat >>conftest.$ac_ext <<_ACEOF
43833 /* end confdefs.h. */
43834 $ac_includes_default
43835 #ifdef HAVE_SYS_SOCKET_H
43836 #include <sys/socket.h>
43842 static struct msghdr ac_aggr;
43843 if (sizeof ac_aggr.msg_control)
43849 rm -f conftest.$ac_objext
43850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43851 (eval $ac_compile) 2>conftest.er1
43853 grep -v '^ *+' conftest.er1 >conftest.err
43855 cat conftest.err >&5
43856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43857 (exit $ac_status); } &&
43858 { ac_try='test -z "$ac_c_werror_flag"
43859 || test ! -s conftest.err'
43860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43861 (eval $ac_try) 2>&5
43863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43864 (exit $ac_status); }; } &&
43865 { ac_try='test -s conftest.$ac_objext'
43866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43867 (eval $ac_try) 2>&5
43869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43870 (exit $ac_status); }; }; then
43871 ac_cv_member_struct_msghdr_msg_control=yes
43873 echo "$as_me: failed program was:" >&5
43874 sed 's/^/| /' conftest.$ac_ext >&5
43876 ac_cv_member_struct_msghdr_msg_control=no
43878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43882 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43883 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43884 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43886 cat >>confdefs.h <<_ACEOF
43887 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43894 LIBSRCS="$LIBSRCS getpeereid.c"
43896 if test "$ac_cv_func_snprintf" != yes ||
43897 test "$ac_cv_func_vsnprintf" != yes; then
43898 if test "$ac_cv_func_snprintf" != yes; then
43900 cat >>confdefs.h <<\_ACEOF
43901 #define snprintf ber_pvt_snprintf
43905 if test "$ac_cv_func_vsnprintf" != yes; then
43907 cat >>confdefs.h <<\_ACEOF
43908 #define vsnprintf ber_pvt_vsnprintf
43915 if test "$ol_enable_slapi" != no ; then
43917 for ac_header in ltdl.h
43919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43921 echo "$as_me:$LINENO: checking for $ac_header" >&5
43922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43924 echo $ECHO_N "(cached) $ECHO_C" >&6
43926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43929 # Is the header compilable?
43930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43932 cat >conftest.$ac_ext <<_ACEOF
43935 cat confdefs.h >>conftest.$ac_ext
43936 cat >>conftest.$ac_ext <<_ACEOF
43937 /* end confdefs.h. */
43938 $ac_includes_default
43939 #include <$ac_header>
43941 rm -f conftest.$ac_objext
43942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43943 (eval $ac_compile) 2>conftest.er1
43945 grep -v '^ *+' conftest.er1 >conftest.err
43947 cat conftest.err >&5
43948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43949 (exit $ac_status); } &&
43950 { ac_try='test -z "$ac_c_werror_flag"
43951 || test ! -s conftest.err'
43952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43953 (eval $ac_try) 2>&5
43955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43956 (exit $ac_status); }; } &&
43957 { ac_try='test -s conftest.$ac_objext'
43958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43959 (eval $ac_try) 2>&5
43961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43962 (exit $ac_status); }; }; then
43963 ac_header_compiler=yes
43965 echo "$as_me: failed program was:" >&5
43966 sed 's/^/| /' conftest.$ac_ext >&5
43968 ac_header_compiler=no
43970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43972 echo "${ECHO_T}$ac_header_compiler" >&6
43974 # Is the header present?
43975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43977 cat >conftest.$ac_ext <<_ACEOF
43980 cat confdefs.h >>conftest.$ac_ext
43981 cat >>conftest.$ac_ext <<_ACEOF
43982 /* end confdefs.h. */
43983 #include <$ac_header>
43985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43988 grep -v '^ *+' conftest.er1 >conftest.err
43990 cat conftest.err >&5
43991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43992 (exit $ac_status); } >/dev/null; then
43993 if test -s conftest.err; then
43994 ac_cpp_err=$ac_c_preproc_warn_flag
43995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44002 if test -z "$ac_cpp_err"; then
44003 ac_header_preproc=yes
44005 echo "$as_me: failed program was:" >&5
44006 sed 's/^/| /' conftest.$ac_ext >&5
44008 ac_header_preproc=no
44010 rm -f conftest.err conftest.$ac_ext
44011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44012 echo "${ECHO_T}$ac_header_preproc" >&6
44014 # So? What about this header?
44015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44021 ac_header_preproc=yes
44024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44038 ## --------------------------------------------- ##
44039 ## Report this to <http://www.openldap.org/its/> ##
44040 ## --------------------------------------------- ##
44043 sed "s/^/$as_me: WARNING: /" >&2
44046 echo "$as_me:$LINENO: checking for $ac_header" >&5
44047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44049 echo $ECHO_N "(cached) $ECHO_C" >&6
44051 eval "$as_ac_Header=\$ac_header_preproc"
44053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44058 cat >>confdefs.h <<_ACEOF
44059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44067 if test $ac_cv_header_ltdl_h != yes ; then
44068 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44069 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44070 { (exit 1); exit 1; }; }
44072 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44073 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44074 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44075 echo $ECHO_N "(cached) $ECHO_C" >&6
44077 ac_check_lib_save_LIBS=$LIBS
44078 LIBS="-lltdl $LIBS"
44079 cat >conftest.$ac_ext <<_ACEOF
44082 cat confdefs.h >>conftest.$ac_ext
44083 cat >>conftest.$ac_ext <<_ACEOF
44084 /* end confdefs.h. */
44086 /* Override any gcc2 internal prototype to avoid an error. */
44090 /* We use char because int might match the return type of a gcc2
44091 builtin and then its argument prototype would still apply. */
44101 rm -f conftest.$ac_objext conftest$ac_exeext
44102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44103 (eval $ac_link) 2>conftest.er1
44105 grep -v '^ *+' conftest.er1 >conftest.err
44107 cat conftest.err >&5
44108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44109 (exit $ac_status); } &&
44110 { ac_try='test -z "$ac_c_werror_flag"
44111 || test ! -s conftest.err'
44112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44113 (eval $ac_try) 2>&5
44115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44116 (exit $ac_status); }; } &&
44117 { ac_try='test -s conftest$ac_exeext'
44118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44119 (eval $ac_try) 2>&5
44121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44122 (exit $ac_status); }; }; then
44123 ac_cv_lib_ltdl_lt_dlinit=yes
44125 echo "$as_me: failed program was:" >&5
44126 sed 's/^/| /' conftest.$ac_ext >&5
44128 ac_cv_lib_ltdl_lt_dlinit=no
44130 rm -f conftest.err conftest.$ac_objext \
44131 conftest$ac_exeext conftest.$ac_ext
44132 LIBS=$ac_check_lib_save_LIBS
44134 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44135 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44136 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44139 LIBSLAPI=libslapi.a
44140 LIBSLAPITOOLS=../libslapi.a
44142 cat >>confdefs.h <<\_ACEOF
44143 #define HAVE_LIBLTDL 1
44148 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44149 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44150 { (exit 1); exit 1; }; }
44155 cat >>confdefs.h <<\_ACEOF
44156 #define LDAP_SLAPI 1
44161 if test "$ol_enable_debug" != no ; then
44163 cat >>confdefs.h <<\_ACEOF
44164 #define LDAP_DEBUG 1
44168 if test "$ol_enable_syslog" = yes ; then
44170 cat >>confdefs.h <<\_ACEOF
44171 #define LDAP_SYSLOG 1
44175 if test "$ol_link_kbind" != no ; then
44177 cat >>confdefs.h <<\_ACEOF
44178 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44182 if test "$ol_enable_proctitle" != no ; then
44184 cat >>confdefs.h <<\_ACEOF
44185 #define LDAP_PROCTITLE 1
44189 if test "$ol_enable_referrals" != no ; then
44191 cat >>confdefs.h <<\_ACEOF
44192 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44196 if test "$ol_enable_local" != no; then
44198 cat >>confdefs.h <<\_ACEOF
44199 #define LDAP_PF_LOCAL 1
44203 if test "$ol_link_ipv6" != no; then
44205 cat >>confdefs.h <<\_ACEOF
44206 #define LDAP_PF_INET6 1
44210 if test "$ol_enable_cleartext" != no ; then
44212 cat >>confdefs.h <<\_ACEOF
44213 #define SLAPD_CLEARTEXT 1
44217 if test "$ol_enable_crypt" != no ; then
44219 cat >>confdefs.h <<\_ACEOF
44220 #define SLAPD_CRYPT 1
44224 if test "$ol_link_spasswd" != no ; then
44226 cat >>confdefs.h <<\_ACEOF
44227 #define SLAPD_SPASSWD 1
44231 if test "$ol_enable_multimaster" != no ; then
44233 cat >>confdefs.h <<\_ACEOF
44234 #define SLAPD_MULTIMASTER 1
44238 if test "$ol_enable_rlookups" != no ; then
44240 cat >>confdefs.h <<\_ACEOF
44241 #define SLAPD_RLOOKUPS 1
44245 if test "$ol_enable_aci" != no ; then
44247 cat >>confdefs.h <<\_ACEOF
44248 #define SLAPD_ACI_ENABLED 1
44251 WITH_ACI_ENABLED=yes
44253 WITH_ACI_ENABLED=no
44256 if test "$ol_link_modules" != no ; then
44258 cat >>confdefs.h <<\_ACEOF
44259 #define SLAPD_MODULES 1
44263 SLAPD_MODULES_LDFLAGS="-dlopen self"
44267 cat >>confdefs.h <<\_ACEOF
44268 #define SLAPD_MOD_STATIC 1
44272 cat >>confdefs.h <<\_ACEOF
44273 #define SLAPD_MOD_DYNAMIC 2
44277 if test "$ol_enable_bdb" != no ; then
44279 BUILD_BDB=$ol_enable_bdb
44280 if test "$ol_enable_bdb" = mod ; then
44281 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44282 MFLAG=SLAPD_MOD_DYNAMIC
44284 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44285 MFLAG=SLAPD_MOD_STATIC
44288 cat >>confdefs.h <<_ACEOF
44289 #define SLAPD_BDB $MFLAG
44294 if test "$ol_enable_dnssrv" != no ; then
44296 BUILD_DNSSRV=$ol_enable_dnssrv
44297 if test "$ol_enable_dnssrv" = mod ; then
44298 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44299 MFLAG=SLAPD_MOD_DYNAMIC
44301 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44302 MFLAG=SLAPD_MOD_STATIC
44305 cat >>confdefs.h <<_ACEOF
44306 #define SLAPD_DNSSRV $MFLAG
44311 if test "$ol_enable_hdb" != no ; then
44313 BUILD_HDB=$ol_enable_hdb
44314 if test "$ol_enable_hdb" = mod ; then
44315 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44316 MFLAG=SLAPD_MOD_DYNAMIC
44318 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44319 MFLAG=SLAPD_MOD_STATIC
44322 cat >>confdefs.h <<_ACEOF
44323 #define SLAPD_HDB $MFLAG
44328 if test "$ol_enable_ldap" != no ; then
44330 BUILD_LDAP=$ol_enable_ldap
44331 if test "$ol_enable_ldap" = mod ; then
44332 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44333 MFLAG=SLAPD_MOD_DYNAMIC
44335 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44336 MFLAG=SLAPD_MOD_STATIC
44339 cat >>confdefs.h <<_ACEOF
44340 #define SLAPD_LDAP $MFLAG
44345 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44347 BUILD_LDBM=$ol_enable_ldbm
44348 if test "$ol_enable_ldbm" = mod ; then
44349 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44350 MFLAG=SLAPD_MOD_DYNAMIC
44352 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44353 MFLAG=SLAPD_MOD_STATIC
44356 cat >>confdefs.h <<_ACEOF
44357 #define SLAPD_LDBM $MFLAG
44362 if test "$ol_enable_meta" != no ; then
44364 BUILD_META=$ol_enable_meta
44366 if test "$ol_enable_meta" = mod ; then
44367 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44368 MFLAG=SLAPD_MOD_DYNAMIC
44370 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44371 MFLAG=SLAPD_MOD_STATIC
44374 cat >>confdefs.h <<_ACEOF
44375 #define SLAPD_META $MFLAG
44380 if test "$ol_enable_monitor" != no ; then
44382 BUILD_MONITOR=$ol_enable_monitor
44383 if test "$ol_enable_monitor" = mod ; then
44384 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44385 MFLAG=SLAPD_MOD_DYNAMIC
44387 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44388 MFLAG=SLAPD_MOD_STATIC
44391 cat >>confdefs.h <<_ACEOF
44392 #define SLAPD_MONITOR $MFLAG
44397 if test "$ol_enable_null" != no ; then
44399 BUILD_NULL=$ol_enable_null
44400 if test "$ol_enable_null" = mod ; then
44401 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44402 MFLAG=SLAPD_MOD_DYNAMIC
44404 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44405 MFLAG=SLAPD_MOD_STATIC
44408 cat >>confdefs.h <<_ACEOF
44409 #define SLAPD_NULL $MFLAG
44414 if test "$ol_enable_passwd" != no ; then
44416 BUILD_PASSWD=$ol_enable_passwd
44417 if test "$ol_enable_passwd" = mod ; then
44418 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44419 MFLAG=SLAPD_MOD_DYNAMIC
44421 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44422 MFLAG=SLAPD_MOD_STATIC
44425 cat >>confdefs.h <<_ACEOF
44426 #define SLAPD_PASSWD $MFLAG
44431 if test "$ol_link_perl" != no ; then
44433 BUILD_PERL=$ol_enable_perl
44434 if test "$ol_enable_perl" = mod ; then
44435 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44436 MFLAG=SLAPD_MOD_DYNAMIC
44438 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44439 MFLAG=SLAPD_MOD_STATIC
44442 cat >>confdefs.h <<_ACEOF
44443 #define SLAPD_PERL $MFLAG
44448 if test "$ol_enable_relay" != no ; then
44450 BUILD_RELAY=$ol_enable_relay
44451 if test "$ol_enable_relay" = mod ; then
44452 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44453 MFLAG=SLAPD_MOD_DYNAMIC
44455 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44456 MFLAG=SLAPD_MOD_STATIC
44459 cat >>confdefs.h <<_ACEOF
44460 #define SLAPD_RELAY $MFLAG
44465 if test "$ol_enable_shell" != no ; then
44466 if test "$ol_link_threads" != no ; then
44467 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44468 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44471 BUILD_SHELL=$ol_enable_shell
44472 if test "$ol_enable_shell" = mod ; then
44473 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44474 MFLAG=SLAPD_MOD_DYNAMIC
44476 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44477 MFLAG=SLAPD_MOD_STATIC
44480 cat >>confdefs.h <<_ACEOF
44481 #define SLAPD_SHELL $MFLAG
44486 if test "$ol_link_sql" != no ; then
44488 BUILD_SQL=$ol_enable_sql
44489 if test "$ol_enable_sql" = mod; then
44490 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44491 MFLAG=SLAPD_MOD_DYNAMIC
44493 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44494 MFLAG=SLAPD_MOD_STATIC
44497 cat >>confdefs.h <<_ACEOF
44498 #define SLAPD_SQL $MFLAG
44503 if test "$ol_enable_accesslog" != no ; then
44504 BUILD_ACCESSLOG=$ol_enable_accesslog
44505 if test "$ol_enable_accesslog" = mod ; then
44506 MFLAG=SLAPD_MOD_DYNAMIC
44507 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44509 MFLAG=SLAPD_MOD_STATIC
44510 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44513 cat >>confdefs.h <<_ACEOF
44514 #define SLAPD_OVER_ACCESSLOG $MFLAG
44519 if test "$ol_enable_auditlog" != no ; then
44520 BUILD_AUDITLOG=$ol_enable_auditlog
44521 if test "$ol_enable_auditlog" = mod ; then
44522 MFLAG=SLAPD_MOD_DYNAMIC
44523 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
44525 MFLAG=SLAPD_MOD_STATIC
44526 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
44529 cat >>confdefs.h <<_ACEOF
44530 #define SLAPD_OVER_AUDITLOG $MFLAG
44535 if test "$ol_enable_denyop" != no ; then
44536 BUILD_DENYOP=$ol_enable_denyop
44537 if test "$ol_enable_denyop" = mod ; then
44538 MFLAG=SLAPD_MOD_DYNAMIC
44539 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44541 MFLAG=SLAPD_MOD_STATIC
44542 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44545 cat >>confdefs.h <<_ACEOF
44546 #define SLAPD_OVER_DENYOP $MFLAG
44551 if test "$ol_enable_dyngroup" != no ; then
44552 BUILD_DYNGROUP=$ol_enable_dyngroup
44553 if test "$ol_enable_dyngroup" = mod ; then
44554 MFLAG=SLAPD_MOD_DYNAMIC
44555 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44557 MFLAG=SLAPD_MOD_STATIC
44558 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44561 cat >>confdefs.h <<_ACEOF
44562 #define SLAPD_OVER_DYNGROUP $MFLAG
44567 if test "$ol_enable_dynlist" != no ; then
44568 BUILD_DYNLIST=$ol_enable_dynlist
44569 if test "$ol_enable_dynlist" = mod ; then
44570 MFLAG=SLAPD_MOD_DYNAMIC
44571 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44573 MFLAG=SLAPD_MOD_STATIC
44574 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44577 cat >>confdefs.h <<_ACEOF
44578 #define SLAPD_OVER_DYNLIST $MFLAG
44583 if test "$ol_enable_lastmod" != no ; then
44584 BUILD_LASTMOD=$ol_enable_lastmod
44585 if test "$ol_enable_lastmod" = mod ; then
44586 MFLAG=SLAPD_MOD_DYNAMIC
44587 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44589 MFLAG=SLAPD_MOD_STATIC
44590 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44593 cat >>confdefs.h <<_ACEOF
44594 #define SLAPD_OVER_LASTMOD $MFLAG
44599 if test "$ol_enable_ppolicy" != no ; then
44600 BUILD_PPOLICY=$ol_enable_ppolicy
44601 if test "$ol_enable_ppolicy" = mod ; then
44602 MFLAG=SLAPD_MOD_DYNAMIC
44603 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44605 MFLAG=SLAPD_MOD_STATIC
44606 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44609 cat >>confdefs.h <<_ACEOF
44610 #define SLAPD_OVER_PPOLICY $MFLAG
44615 if test "$ol_enable_proxycache" != no ; then
44616 BUILD_PROXYCACHE=$ol_enable_proxycache
44617 if test "$ol_enable_proxycache" = mod ; then
44618 MFLAG=SLAPD_MOD_DYNAMIC
44619 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44621 MFLAG=SLAPD_MOD_STATIC
44622 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44625 cat >>confdefs.h <<_ACEOF
44626 #define SLAPD_OVER_PROXYCACHE $MFLAG
44631 if test "$ol_enable_refint" != no ; then
44632 BUILD_REFINT=$ol_enable_refint
44633 if test "$ol_enable_refint" = mod ; then
44634 MFLAG=SLAPD_MOD_DYNAMIC
44635 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44637 MFLAG=SLAPD_MOD_STATIC
44638 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44641 cat >>confdefs.h <<_ACEOF
44642 #define SLAPD_OVER_REFINT $MFLAG
44647 if test "$ol_enable_retcode" != no ; then
44648 BUILD_RETCODE=$ol_enable_retcode
44649 if test "$ol_enable_retcode" = mod ; then
44650 MFLAG=SLAPD_MOD_DYNAMIC
44651 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44653 MFLAG=SLAPD_MOD_STATIC
44654 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44657 cat >>confdefs.h <<_ACEOF
44658 #define SLAPD_OVER_RETCODE $MFLAG
44663 if test "$ol_enable_rwm" != no ; then
44665 BUILD_RWM=$ol_enable_rwm
44666 if test "$ol_enable_rwm" = mod ; then
44667 MFLAG=SLAPD_MOD_DYNAMIC
44668 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44670 MFLAG=SLAPD_MOD_STATIC
44671 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44674 cat >>confdefs.h <<_ACEOF
44675 #define SLAPD_OVER_RWM $MFLAG
44680 if test "$ol_enable_syncprov" != no ; then
44681 BUILD_SYNCPROV=$ol_enable_syncprov
44682 if test "$ol_enable_syncprov" = mod ; then
44683 MFLAG=SLAPD_MOD_DYNAMIC
44684 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44686 MFLAG=SLAPD_MOD_STATIC
44687 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44690 cat >>confdefs.h <<_ACEOF
44691 #define SLAPD_OVER_SYNCPROV $MFLAG
44696 if test "$ol_enable_translucent" != no ; then
44697 BUILD_TRANSLUCENT=$ol_enable_translucent
44698 if test "$ol_enable_translucent" = mod ; then
44699 MFLAG=SLAPD_MOD_DYNAMIC
44700 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44702 MFLAG=SLAPD_MOD_STATIC
44703 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44706 cat >>confdefs.h <<_ACEOF
44707 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44712 if test "$ol_enable_unique" != no ; then
44713 BUILD_UNIQUE=$ol_enable_unique
44714 if test "$ol_enable_unique" = mod ; then
44715 MFLAG=SLAPD_MOD_DYNAMIC
44716 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44718 MFLAG=SLAPD_MOD_STATIC
44719 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44722 cat >>confdefs.h <<_ACEOF
44723 #define SLAPD_OVER_UNIQUE $MFLAG
44728 if test "$ol_enable_valsort" != no ; then
44729 BUILD_VALSORT=$ol_enable_valsort
44730 if test "$ol_enable_valsort" = mod ; then
44731 MFLAG=SLAPD_MOD_DYNAMIC
44732 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44734 MFLAG=SLAPD_MOD_STATIC
44735 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44738 cat >>confdefs.h <<_ACEOF
44739 #define SLAPD_OVER_VALSORT $MFLAG
44744 if test "$ol_enable_slurpd" != no &&
44745 test "$ol_link_threads" != no &&
44746 test $BUILD_SLAPD = yes ; then
44750 if test "$ol_enable_rewrite" != no ; then
44752 cat >>confdefs.h <<\_ACEOF
44753 #define ENABLE_REWRITE 1
44759 if test "$ol_enable_slapi" != no ; then
44761 cat >>confdefs.h <<\_ACEOF
44762 #define ENABLE_SLAPI 1
44766 SLAPD_SLAPI_DEPEND=libslapi.a
44771 if test "$ac_cv_mingw32" = yes ; then
44773 SLAPD_MODULES_LDFLAGS=
44859 # Check whether --with-xxinstall or --without-xxinstall was given.
44860 if test "${with_xxinstall+set}" = set; then
44861 withval="$with_xxinstall"
44866 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"
44869 ac_config_commands="$ac_config_commands default"
44873 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44874 # Let make expand exec_prefix.
44875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44877 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44878 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44879 # trailing colons and then remove the whole line if VPATH becomes empty
44880 # (actually we leave an empty line to preserve line numbers).
44881 if test "x$srcdir" = x.; then
44882 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44883 s/:*\$(srcdir):*/:/;
44884 s/:*\${srcdir}:*/:/;
44886 s/^\([^=]*=[ ]*\):*/\1/;
44892 DEFS=-DHAVE_CONFIG_H
44896 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44897 # 1. Remove the extension, and $U if already installed.
44898 ac_i=`echo "$ac_i" |
44899 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44901 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44902 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44904 LIBOBJS=$ac_libobjs
44906 LTLIBOBJS=$ac_ltlibobjs
44909 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44910 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44911 Usually this means the macro was only invoked conditionally." >&5
44912 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44913 Usually this means the macro was only invoked conditionally." >&2;}
44914 { (exit 1); exit 1; }; }
44916 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44917 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44918 Usually this means the macro was only invoked conditionally." >&5
44919 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44920 Usually this means the macro was only invoked conditionally." >&2;}
44921 { (exit 1); exit 1; }; }
44923 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44924 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44925 Usually this means the macro was only invoked conditionally." >&5
44926 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44927 Usually this means the macro was only invoked conditionally." >&2;}
44928 { (exit 1); exit 1; }; }
44931 : ${CONFIG_STATUS=./config.status}
44932 ac_clean_files_save=$ac_clean_files
44933 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44934 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44935 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44936 cat >$CONFIG_STATUS <<_ACEOF
44938 # Generated by $as_me.
44939 # Run this file to recreate the current configuration.
44940 # Compiler output produced by configure, useful for debugging
44941 # configure, is in config.log if it exists.
44944 ac_cs_recheck=false
44946 SHELL=\${CONFIG_SHELL-$SHELL}
44949 cat >>$CONFIG_STATUS <<\_ACEOF
44950 ## --------------------- ##
44951 ## M4sh Initialization. ##
44952 ## --------------------- ##
44954 # Be Bourne compatible
44955 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44958 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44959 # is contrary to our usage. Disable this feature.
44960 alias -g '${1+"$@"}'='"$@"'
44961 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44964 DUALCASE=1; export DUALCASE # for MKS sh
44966 # Support unset when possible.
44967 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44974 # Work around bugs in pre-3.0 UWIN ksh.
44975 $as_unset ENV MAIL MAILPATH
44982 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44983 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44984 LC_TELEPHONE LC_TIME
44986 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44987 eval $as_var=C; export $as_var
44993 # Required to use basename.
44994 if expr a : '\(a\)' >/dev/null 2>&1; then
45000 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45001 as_basename=basename
45007 # Name of the executable.
45008 as_me=`$as_basename "$0" ||
45009 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45010 X"$0" : 'X\(//\)$' \| \
45011 X"$0" : 'X\(/\)$' \| \
45012 . : '\(.\)' 2>/dev/null ||
45014 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45015 /^X\/\(\/\/\)$/{ s//\1/; q; }
45016 /^X\/\(\/\).*/{ s//\1/; q; }
45020 # PATH needs CR, and LINENO needs CR and PATH.
45021 # Avoid depending upon Character Ranges.
45022 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45023 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45024 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45025 as_cr_digits='0123456789'
45026 as_cr_alnum=$as_cr_Letters$as_cr_digits
45028 # The user is always right.
45029 if test "${PATH_SEPARATOR+set}" != set; then
45030 echo "#! /bin/sh" >conf$$.sh
45031 echo "exit 0" >>conf$$.sh
45033 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45042 as_lineno_1=$LINENO
45043 as_lineno_2=$LINENO
45044 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45045 test "x$as_lineno_1" != "x$as_lineno_2" &&
45046 test "x$as_lineno_3" = "x$as_lineno_2" || {
45047 # Find who we are. Look in the path if we contain no path at all
45050 *[\\/]* ) as_myself=$0 ;;
45051 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45052 for as_dir in $PATH
45055 test -z "$as_dir" && as_dir=.
45056 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45061 # We did not find ourselves, most probably we were run as `sh COMMAND'
45062 # in which case we are not to be found in the path.
45063 if test "x$as_myself" = x; then
45066 if test ! -f "$as_myself"; then
45067 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45068 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45069 { (exit 1); exit 1; }; }
45071 case $CONFIG_SHELL in
45073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45074 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45077 test -z "$as_dir" && as_dir=.
45078 for as_base in sh bash ksh sh5; do
45081 if ("$as_dir/$as_base" -c '
45082 as_lineno_1=$LINENO
45083 as_lineno_2=$LINENO
45084 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45085 test "x$as_lineno_1" != "x$as_lineno_2" &&
45086 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45087 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45088 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45089 CONFIG_SHELL=$as_dir/$as_base
45090 export CONFIG_SHELL
45091 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45099 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45100 # uniformly replaced by the line number. The first 'sed' inserts a
45101 # line-number line before each line; the second 'sed' does the real
45102 # work. The second script uses 'N' to pair each line-number line
45103 # with the numbered line, and appends trailing '-' during
45104 # substitution so that $LINENO is not a special case at line end.
45105 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45106 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45107 sed '=' <$as_myself |
45112 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45115 s,^['$as_cr_digits']*\n,,
45116 ' >$as_me.lineno &&
45117 chmod +x $as_me.lineno ||
45118 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45119 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45120 { (exit 1); exit 1; }; }
45122 # Don't try to exec as it changes $[0], causing all sort of problems
45123 # (the dirname of $[0] is not the place where we might find the
45124 # original and so on. Autoconf is especially sensible to this).
45126 # Exit status is that of the last command.
45131 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45132 *c*,-n*) ECHO_N= ECHO_C='
45134 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45135 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45138 if expr a : '\(a\)' >/dev/null 2>&1; then
45144 rm -f conf$$ conf$$.exe conf$$.file
45146 if ln -s conf$$.file conf$$ 2>/dev/null; then
45147 # We could just check for DJGPP; but this test a) works b) is more generic
45148 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45149 if test -f conf$$.exe; then
45150 # Don't use ln at all; we don't have any links
45155 elif ln conf$$.file conf$$ 2>/dev/null; then
45160 rm -f conf$$ conf$$.exe conf$$.file
45162 if mkdir -p . 2>/dev/null; then
45165 test -d ./-p && rmdir ./-p
45169 as_executable_p="test -f"
45171 # Sed expression to map a string onto a valid CPP name.
45172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45174 # Sed expression to map a string onto a valid variable name.
45175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45179 # We need space, tab and new line, in precisely that order.
45189 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45190 # report actual input values of CONFIG_FILES etc. instead of their
45191 # values after options handling. Logging --version etc. is OK.
45195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45196 ## Running $as_me. ##
45201 This file was extended by $as_me, which was
45202 generated by GNU Autoconf 2.59. Invocation command line was
45204 CONFIG_FILES = $CONFIG_FILES
45205 CONFIG_HEADERS = $CONFIG_HEADERS
45206 CONFIG_LINKS = $CONFIG_LINKS
45207 CONFIG_COMMANDS = $CONFIG_COMMANDS
45211 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45215 # Files that config.status was made for.
45216 if test -n "$ac_config_files"; then
45217 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45220 if test -n "$ac_config_headers"; then
45221 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45224 if test -n "$ac_config_links"; then
45225 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45228 if test -n "$ac_config_commands"; then
45229 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45232 cat >>$CONFIG_STATUS <<\_ACEOF
45235 \`$as_me' instantiates files from templates according to the
45236 current configuration.
45238 Usage: $0 [OPTIONS] [FILE]...
45240 -h, --help print this help, then exit
45241 -V, --version print version number, then exit
45242 -q, --quiet do not print progress messages
45243 -d, --debug don't remove temporary files
45244 --recheck update $as_me by reconfiguring in the same conditions
45245 --file=FILE[:TEMPLATE]
45246 instantiate the configuration file FILE
45247 --header=FILE[:TEMPLATE]
45248 instantiate the configuration header FILE
45250 Configuration files:
45253 Configuration headers:
45256 Configuration commands:
45259 Report bugs to <bug-autoconf@gnu.org>."
45262 cat >>$CONFIG_STATUS <<_ACEOF
45265 configured by $0, generated by GNU Autoconf 2.59,
45266 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45268 Copyright (C) 2003 Free Software Foundation, Inc.
45269 This config.status script is free software; the Free Software Foundation
45270 gives unlimited permission to copy, distribute and modify it."
45275 cat >>$CONFIG_STATUS <<\_ACEOF
45276 # If no file are specified by the user, then we need to provide default
45277 # value. By we need to know if files were specified by the user.
45283 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45284 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45292 *) # This is not an option, so the user has probably given explicit
45295 ac_need_defaults=false;;
45299 # Handling of the options.
45301 cat >>$CONFIG_STATUS <<\_ACEOF
45302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45304 --version | --vers* | -V )
45305 echo "$ac_cs_version"; exit 0 ;;
45307 # Conflict between --help and --header
45308 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45309 Try \`$0 --help' for more information." >&5
45310 echo "$as_me: error: ambiguous option: $1
45311 Try \`$0 --help' for more information." >&2;}
45312 { (exit 1); exit 1; }; };;
45313 --help | --hel | -h )
45314 echo "$ac_cs_usage"; exit 0 ;;
45315 --debug | --d* | -d )
45317 --file | --fil | --fi | --f )
45319 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45320 ac_need_defaults=false;;
45321 --header | --heade | --head | --hea )
45323 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45324 ac_need_defaults=false;;
45325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45326 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45329 # This is an error.
45330 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45331 Try \`$0 --help' for more information." >&5
45332 echo "$as_me: error: unrecognized option: $1
45333 Try \`$0 --help' for more information." >&2;}
45334 { (exit 1); exit 1; }; } ;;
45336 *) ac_config_targets="$ac_config_targets $1" ;;
45342 ac_configure_extra_args=
45344 if $ac_cs_silent; then
45346 ac_configure_extra_args="$ac_configure_extra_args --silent"
45350 cat >>$CONFIG_STATUS <<_ACEOF
45351 if \$ac_cs_recheck; then
45352 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45353 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45358 cat >>$CONFIG_STATUS <<_ACEOF
45360 # INIT-COMMANDS section.
45363 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45365 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45366 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45373 cat >>$CONFIG_STATUS <<\_ACEOF
45374 for ac_config_target in $ac_config_targets
45376 case "$ac_config_target" in
45377 # Handling of arguments.
45378 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45379 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45380 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45381 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45382 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45383 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45384 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45385 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45386 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45387 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45388 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45389 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45390 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45391 "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" ;;
45392 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45393 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45394 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45395 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45396 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45397 "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" ;;
45398 "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" ;;
45399 "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" ;;
45400 "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" ;;
45401 "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" ;;
45402 "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" ;;
45403 "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" ;;
45404 "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" ;;
45405 "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" ;;
45406 "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" ;;
45407 "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" ;;
45408 "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" ;;
45409 "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" ;;
45410 "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" ;;
45411 "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" ;;
45412 "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" ;;
45413 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45414 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45415 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45416 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45417 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45418 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45419 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45420 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45421 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45422 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45423 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45424 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45425 { (exit 1); exit 1; }; };;
45429 # If the user did not use the arguments to specify the items to instantiate,
45430 # then the envvar interface is used. Set only those that are not.
45431 # We use the long form for the default assignment because of an extremely
45432 # bizarre bug on SunOS 4.1.3.
45433 if $ac_need_defaults; then
45434 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45435 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45436 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45439 # Have a temporary directory for convenience. Make it in the build tree
45440 # simply because there is no reason to put it here, and in addition,
45441 # creating and moving files from /tmp can sometimes cause problems.
45442 # Create a temporary directory, and hook for its removal unless debugging.
45445 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45446 trap '{ (exit 1); exit 1; }' 1 2 13 15
45449 # Create a (secure) tmp directory for tmp files.
45452 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45453 test -n "$tmp" && test -d "$tmp"
45456 tmp=./confstat$$-$RANDOM
45457 (umask 077 && mkdir $tmp)
45460 echo "$me: cannot create a temporary directory in ." >&2
45461 { (exit 1); exit 1; }
45466 cat >>$CONFIG_STATUS <<_ACEOF
45469 # CONFIG_FILES section.
45472 # No need to generate the scripts if there are no CONFIG_FILES.
45473 # This happens for instance when ./config.status config.h
45474 if test -n "\$CONFIG_FILES"; then
45475 # Protect against being on the right side of a sed subst in config.status.
45476 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45477 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45478 s,@SHELL@,$SHELL,;t t
45479 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45480 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45481 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45482 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45483 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45484 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45485 s,@exec_prefix@,$exec_prefix,;t t
45486 s,@prefix@,$prefix,;t t
45487 s,@program_transform_name@,$program_transform_name,;t t
45488 s,@bindir@,$bindir,;t t
45489 s,@sbindir@,$sbindir,;t t
45490 s,@libexecdir@,$libexecdir,;t t
45491 s,@datadir@,$datadir,;t t
45492 s,@sysconfdir@,$sysconfdir,;t t
45493 s,@sharedstatedir@,$sharedstatedir,;t t
45494 s,@localstatedir@,$localstatedir,;t t
45495 s,@libdir@,$libdir,;t t
45496 s,@includedir@,$includedir,;t t
45497 s,@oldincludedir@,$oldincludedir,;t t
45498 s,@infodir@,$infodir,;t t
45499 s,@mandir@,$mandir,;t t
45500 s,@build_alias@,$build_alias,;t t
45501 s,@host_alias@,$host_alias,;t t
45502 s,@target_alias@,$target_alias,;t t
45503 s,@DEFS@,$DEFS,;t t
45504 s,@ECHO_C@,$ECHO_C,;t t
45505 s,@ECHO_N@,$ECHO_N,;t t
45506 s,@ECHO_T@,$ECHO_T,;t t
45507 s,@LIBS@,$LIBS,;t t
45508 s,@build@,$build,;t t
45509 s,@build_cpu@,$build_cpu,;t t
45510 s,@build_vendor@,$build_vendor,;t t
45511 s,@build_os@,$build_os,;t t
45512 s,@host@,$host,;t t
45513 s,@host_cpu@,$host_cpu,;t t
45514 s,@host_vendor@,$host_vendor,;t t
45515 s,@host_os@,$host_os,;t t
45516 s,@target@,$target,;t t
45517 s,@target_cpu@,$target_cpu,;t t
45518 s,@target_vendor@,$target_vendor,;t t
45519 s,@target_os@,$target_os,;t t
45520 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45521 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45522 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45523 s,@CYGPATH_W@,$CYGPATH_W,;t t
45524 s,@PACKAGE@,$PACKAGE,;t t
45525 s,@VERSION@,$VERSION,;t t
45526 s,@ACLOCAL@,$ACLOCAL,;t t
45527 s,@AUTOCONF@,$AUTOCONF,;t t
45528 s,@AUTOMAKE@,$AUTOMAKE,;t t
45529 s,@AUTOHEADER@,$AUTOHEADER,;t t
45530 s,@MAKEINFO@,$MAKEINFO,;t t
45531 s,@install_sh@,$install_sh,;t t
45532 s,@STRIP@,$STRIP,;t t
45533 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45534 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45535 s,@mkdir_p@,$mkdir_p,;t t
45537 s,@SET_MAKE@,$SET_MAKE,;t t
45538 s,@am__leading_dot@,$am__leading_dot,;t t
45539 s,@AMTAR@,$AMTAR,;t t
45540 s,@am__tar@,$am__tar,;t t
45541 s,@am__untar@,$am__untar,;t t
45542 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45543 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45544 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45545 s,@top_builddir@,$top_builddir,;t t
45546 s,@ldap_subdir@,$ldap_subdir,;t t
45549 s,@CFLAGS@,$CFLAGS,;t t
45550 s,@LDFLAGS@,$LDFLAGS,;t t
45551 s,@CPPFLAGS@,$CPPFLAGS,;t t
45552 s,@ac_ct_CC@,$ac_ct_CC,;t t
45553 s,@EXEEXT@,$EXEEXT,;t t
45554 s,@OBJEXT@,$OBJEXT,;t t
45555 s,@DEPDIR@,$DEPDIR,;t t
45556 s,@am__include@,$am__include,;t t
45557 s,@am__quote@,$am__quote,;t t
45558 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45559 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45560 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45561 s,@CCDEPMODE@,$CCDEPMODE,;t t
45562 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45563 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45564 s,@EGREP@,$EGREP,;t t
45565 s,@LN_S@,$LN_S,;t t
45566 s,@ECHO@,$ECHO,;t t
45567 s,@ac_ct_AR@,$ac_ct_AR,;t t
45568 s,@RANLIB@,$RANLIB,;t t
45569 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45570 s,@DLLTOOL@,$DLLTOOL,;t t
45571 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45573 s,@ac_ct_AS@,$ac_ct_AS,;t t
45574 s,@OBJDUMP@,$OBJDUMP,;t t
45575 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45577 s,@LIBTOOL@,$LIBTOOL,;t t
45578 s,@PERLBIN@,$PERLBIN,;t t
45579 s,@OL_MKDEP@,$OL_MKDEP,;t t
45580 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45581 s,@LTSTATIC@,$LTSTATIC,;t t
45582 s,@LIBOBJS@,$LIBOBJS,;t t
45583 s,@LIBSRCS@,$LIBSRCS,;t t
45584 s,@PLAT@,$PLAT,;t t
45585 s,@WITH_SASL@,$WITH_SASL,;t t
45586 s,@WITH_TLS@,$WITH_TLS,;t t
45587 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45588 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45589 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45590 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45591 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45592 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45593 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45594 s,@BUILD_BDB@,$BUILD_BDB,;t t
45595 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45596 s,@BUILD_HDB@,$BUILD_HDB,;t t
45597 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45598 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45599 s,@BUILD_META@,$BUILD_META,;t t
45600 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45601 s,@BUILD_NULL@,$BUILD_NULL,;t t
45602 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45603 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45604 s,@BUILD_PERL@,$BUILD_PERL,;t t
45605 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45606 s,@BUILD_SQL@,$BUILD_SQL,;t t
45607 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45608 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
45609 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45610 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45611 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45612 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45613 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45614 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45615 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45616 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45617 s,@BUILD_RWM@,$BUILD_RWM,;t t
45618 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45619 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45620 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45621 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45622 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45623 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45624 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45625 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45626 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45627 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45628 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45629 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45630 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45631 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45632 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45633 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45634 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45635 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45636 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45637 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45638 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45639 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45640 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45641 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45642 s,@SASL_LIBS@,$SASL_LIBS,;t t
45643 s,@TLS_LIBS@,$TLS_LIBS,;t t
45644 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45645 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45646 s,@LIBSLAPI@,$LIBSLAPI,;t t
45647 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45648 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45649 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45650 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45651 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45652 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45653 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45654 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45659 cat >>$CONFIG_STATUS <<\_ACEOF
45660 # Split the substitutions into bite-sized pieces for seds with
45661 # small command number limits, like on Digital OSF/1 and HP-UX.
45662 ac_max_sed_lines=48
45663 ac_sed_frag=1 # Number of current file.
45664 ac_beg=1 # First line for current file.
45665 ac_end=$ac_max_sed_lines # Line after last line for current file.
45668 while $ac_more_lines; do
45669 if test $ac_beg -gt 1; then
45670 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45672 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45674 if test ! -s $tmp/subs.frag; then
45675 ac_more_lines=false
45677 # The purpose of the label and of the branching condition is to
45678 # speed up the sed processing (if there are no `@' at all, there
45679 # is no need to browse any of the substitutions).
45680 # These are the two extra sed commands mentioned above.
45682 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45683 if test -z "$ac_sed_cmds"; then
45684 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45686 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45688 ac_sed_frag=`expr $ac_sed_frag + 1`
45690 ac_end=`expr $ac_end + $ac_max_sed_lines`
45693 if test -z "$ac_sed_cmds"; then
45696 fi # test -n "$CONFIG_FILES"
45699 cat >>$CONFIG_STATUS <<\_ACEOF
45700 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45701 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45703 - | *:- | *:-:* ) # input from stdin
45705 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45706 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45707 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45708 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45709 * ) ac_file_in=$ac_file.in ;;
45712 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45713 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45715 X"$ac_file" : 'X\(//\)[^/]' \| \
45716 X"$ac_file" : 'X\(//\)$' \| \
45717 X"$ac_file" : 'X\(/\)' \| \
45718 . : '\(.\)' 2>/dev/null ||
45720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45722 /^X\(\/\/\)$/{ s//\1/; q; }
45723 /^X\(\/\).*/{ s//\1/; q; }
45725 { if $as_mkdir_p; then
45730 while test ! -d "$as_dir"; do
45731 as_dirs="$as_dir $as_dirs"
45732 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45734 X"$as_dir" : 'X\(//\)[^/]' \| \
45735 X"$as_dir" : 'X\(//\)$' \| \
45736 X"$as_dir" : 'X\(/\)' \| \
45737 . : '\(.\)' 2>/dev/null ||
45739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45740 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45741 /^X\(\/\/\)$/{ s//\1/; q; }
45742 /^X\(\/\).*/{ s//\1/; q; }
45745 test ! -n "$as_dirs" || mkdir $as_dirs
45746 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45747 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45748 { (exit 1); exit 1; }; }; }
45752 if test "$ac_dir" != .; then
45753 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45754 # A "../" for each directory in $ac_dir_suffix.
45755 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45757 ac_dir_suffix= ac_top_builddir=
45761 .) # No --srcdir option. We are building in place.
45763 if test -z "$ac_top_builddir"; then
45766 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45768 [\\/]* | ?:[\\/]* ) # Absolute path.
45769 ac_srcdir=$srcdir$ac_dir_suffix;
45770 ac_top_srcdir=$srcdir ;;
45771 *) # Relative path.
45772 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45773 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45776 # Do not use `cd foo && pwd` to compute absolute paths, because
45777 # the directories may not exist.
45779 .) ac_abs_builddir="$ac_dir";;
45782 .) ac_abs_builddir=`pwd`;;
45783 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45784 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45787 case $ac_abs_builddir in
45788 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45790 case ${ac_top_builddir}. in
45791 .) ac_abs_top_builddir=$ac_abs_builddir;;
45792 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45793 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45796 case $ac_abs_builddir in
45797 .) ac_abs_srcdir=$ac_srcdir;;
45800 .) ac_abs_srcdir=$ac_abs_builddir;;
45801 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45802 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45805 case $ac_abs_builddir in
45806 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45808 case $ac_top_srcdir in
45809 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45810 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45811 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45817 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45818 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45821 if test x"$ac_file" != x-; then
45822 { echo "$as_me:$LINENO: creating $ac_file" >&5
45823 echo "$as_me: creating $ac_file" >&6;}
45826 # Let's still pretend it is `configure' which instantiates (i.e., don't
45827 # use $as_me), people would be surprised to read:
45828 # /* config.h. Generated by config.status. */
45829 if test x"$ac_file" = x-; then
45832 configure_input="$ac_file. "
45834 configure_input=$configure_input"Generated from `echo $ac_file_in |
45835 sed 's,.*/,,'` by configure."
45837 # First look for the input files in the build tree, otherwise in the
45839 ac_file_inputs=`IFS=:
45840 for f in $ac_file_in; do
45842 -) echo $tmp/stdin ;;
45844 # Absolute (can't be DOS-style, as IFS=:)
45845 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45846 echo "$as_me: error: cannot find input file: $f" >&2;}
45847 { (exit 1); exit 1; }; }
45850 if test -f "$f"; then
45853 elif test -f "$srcdir/$f"; then
45858 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45859 echo "$as_me: error: cannot find input file: $f" >&2;}
45860 { (exit 1); exit 1; }; }
45863 done` || { (exit 1); exit 1; }
45865 cat >>$CONFIG_STATUS <<_ACEOF
45869 cat >>$CONFIG_STATUS <<\_ACEOF
45871 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45872 s,@configure_input@,$configure_input,;t t
45873 s,@srcdir@,$ac_srcdir,;t t
45874 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45875 s,@top_srcdir@,$ac_top_srcdir,;t t
45876 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45877 s,@builddir@,$ac_builddir,;t t
45878 s,@abs_builddir@,$ac_abs_builddir,;t t
45879 s,@top_builddir@,$ac_top_builddir,;t t
45880 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45881 s,@INSTALL@,$ac_INSTALL,;t t
45882 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45884 if test x"$ac_file" != x-; then
45885 mv $tmp/out $ac_file
45893 cat >>$CONFIG_STATUS <<\_ACEOF
45896 # CONFIG_HEADER section.
45899 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45900 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45902 # ac_d sets the value in "#define NAME VALUE" lines.
45903 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45904 ac_dB='[ ].*$,\1#\2'
45907 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45908 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
45909 ac_uB='$,\1#\2define\3'
45913 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45914 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45916 - | *:- | *:-:* ) # input from stdin
45918 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45919 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45920 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45921 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45922 * ) ac_file_in=$ac_file.in ;;
45925 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45926 echo "$as_me: creating $ac_file" >&6;}
45928 # First look for the input files in the build tree, otherwise in the
45930 ac_file_inputs=`IFS=:
45931 for f in $ac_file_in; do
45933 -) echo $tmp/stdin ;;
45935 # Absolute (can't be DOS-style, as IFS=:)
45936 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45937 echo "$as_me: error: cannot find input file: $f" >&2;}
45938 { (exit 1); exit 1; }; }
45939 # Do quote $f, to prevent DOS paths from being IFS'd.
45942 if test -f "$f"; then
45945 elif test -f "$srcdir/$f"; then
45950 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45951 echo "$as_me: error: cannot find input file: $f" >&2;}
45952 { (exit 1); exit 1; }; }
45955 done` || { (exit 1); exit 1; }
45956 # Remove the trailing spaces.
45957 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
45961 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45962 # `conftest.undefs', that substitutes the proper values into
45963 # config.h.in to produce config.h. The first handles `#define'
45964 # templates, and the second `#undef' templates.
45965 # And first: Protect against being on the right side of a sed subst in
45966 # config.status. Protect against being in an unquoted here document
45967 # in config.status.
45968 rm -f conftest.defines conftest.undefs
45969 # Using a here document instead of a string reduces the quoting nightmare.
45970 # Putting comments in sed scripts is not portable.
45972 # `end' is used to avoid that the second main sed command (meant for
45973 # 0-ary CPP macros) applies to n-ary macro definitions.
45974 # See the Autoconf documentation for `clear'.
45975 cat >confdef2sed.sed <<\_ACEOF
45980 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45982 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45985 # If some macros were called several times there might be several times
45986 # the same #defines, which is useless. Nevertheless, we may not want to
45987 # sort them, since we want the *last* AC-DEFINE to be honored.
45988 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45989 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45990 rm -f confdef2sed.sed
45992 # This sed command replaces #undef with comments. This is necessary, for
45993 # example, in the case of _POSIX_SOURCE, which is predefined and required
45994 # on some systems where configure will not decide to define it.
45995 cat >>conftest.undefs <<\_ACEOF
45996 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45999 # Break up conftest.defines because some shells have a limit on the size
46000 # of here documents, and old seds have small limits too (100 cmds).
46001 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
46002 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
46003 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46004 echo ' :' >>$CONFIG_STATUS
46005 rm -f conftest.tail
46006 while grep . conftest.defines >/dev/null
46008 # Write a limited-size here document to $tmp/defines.sed.
46009 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46010 # Speed up: don't consider the non `#define' lines.
46011 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
46012 # Work around the forget-to-reset-the-flag bug.
46013 echo 't clr' >>$CONFIG_STATUS
46014 echo ': clr' >>$CONFIG_STATUS
46015 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46017 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46019 mv $tmp/out $tmp/in
46021 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46022 rm -f conftest.defines
46023 mv conftest.tail conftest.defines
46025 rm -f conftest.defines
46026 echo ' fi # grep' >>$CONFIG_STATUS
46027 echo >>$CONFIG_STATUS
46029 # Break up conftest.undefs because some shells have a limit on the size
46030 # of here documents, and old seds have small limits too (100 cmds).
46031 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46032 rm -f conftest.tail
46033 while grep . conftest.undefs >/dev/null
46035 # Write a limited-size here document to $tmp/undefs.sed.
46036 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46037 # Speed up: don't consider the non `#undef'
46038 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
46039 # Work around the forget-to-reset-the-flag bug.
46040 echo 't clr' >>$CONFIG_STATUS
46041 echo ': clr' >>$CONFIG_STATUS
46042 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46044 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46046 mv $tmp/out $tmp/in
46048 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46049 rm -f conftest.undefs
46050 mv conftest.tail conftest.undefs
46052 rm -f conftest.undefs
46054 cat >>$CONFIG_STATUS <<\_ACEOF
46055 # Let's still pretend it is `configure' which instantiates (i.e., don't
46056 # use $as_me), people would be surprised to read:
46057 # /* config.h. Generated by config.status. */
46058 if test x"$ac_file" = x-; then
46059 echo "/* Generated by configure. */" >$tmp/config.h
46061 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46063 cat $tmp/in >>$tmp/config.h
46065 if test x"$ac_file" != x-; then
46066 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46067 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46068 echo "$as_me: $ac_file is unchanged" >&6;}
46070 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46071 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46072 X"$ac_file" : 'X\(//\)[^/]' \| \
46073 X"$ac_file" : 'X\(//\)$' \| \
46074 X"$ac_file" : 'X\(/\)' \| \
46075 . : '\(.\)' 2>/dev/null ||
46077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46079 /^X\(\/\/\)$/{ s//\1/; q; }
46080 /^X\(\/\).*/{ s//\1/; q; }
46082 { if $as_mkdir_p; then
46087 while test ! -d "$as_dir"; do
46088 as_dirs="$as_dir $as_dirs"
46089 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46091 X"$as_dir" : 'X\(//\)[^/]' \| \
46092 X"$as_dir" : 'X\(//\)$' \| \
46093 X"$as_dir" : 'X\(/\)' \| \
46094 . : '\(.\)' 2>/dev/null ||
46096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46097 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46098 /^X\(\/\/\)$/{ s//\1/; q; }
46099 /^X\(\/\).*/{ s//\1/; q; }
46102 test ! -n "$as_dirs" || mkdir $as_dirs
46103 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46104 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46105 { (exit 1); exit 1; }; }; }
46108 mv $tmp/config.h $ac_file
46112 rm -f $tmp/config.h
46114 # Compute $ac_file's index in $config_headers.
46116 for _am_header in $config_headers :; do
46117 case $_am_header in
46118 $ac_file | $ac_file:* )
46121 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46124 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46125 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46126 X$ac_file : 'X\(//\)[^/]' \| \
46127 X$ac_file : 'X\(//\)$' \| \
46128 X$ac_file : 'X\(/\)' \| \
46129 . : '\(.\)' 2>/dev/null ||
46131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46133 /^X\(\/\/\)$/{ s//\1/; q; }
46134 /^X\(\/\).*/{ s//\1/; q; }
46135 s/.*/./; q'`/stamp-h$_am_stamp_count
46138 cat >>$CONFIG_STATUS <<\_ACEOF
46141 # CONFIG_COMMANDS section.
46143 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46144 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46145 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46146 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46147 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46148 X"$ac_dest" : 'X\(//\)[^/]' \| \
46149 X"$ac_dest" : 'X\(//\)$' \| \
46150 X"$ac_dest" : 'X\(/\)' \| \
46151 . : '\(.\)' 2>/dev/null ||
46153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46154 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46155 /^X\(\/\/\)$/{ s//\1/; q; }
46156 /^X\(\/\).*/{ s//\1/; q; }
46158 { if $as_mkdir_p; then
46163 while test ! -d "$as_dir"; do
46164 as_dirs="$as_dir $as_dirs"
46165 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46167 X"$as_dir" : 'X\(//\)[^/]' \| \
46168 X"$as_dir" : 'X\(//\)$' \| \
46169 X"$as_dir" : 'X\(/\)' \| \
46170 . : '\(.\)' 2>/dev/null ||
46172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46174 /^X\(\/\/\)$/{ s//\1/; q; }
46175 /^X\(\/\).*/{ s//\1/; q; }
46178 test ! -n "$as_dirs" || mkdir $as_dirs
46179 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46180 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46181 { (exit 1); exit 1; }; }; }
46185 if test "$ac_dir" != .; then
46186 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46187 # A "../" for each directory in $ac_dir_suffix.
46188 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46190 ac_dir_suffix= ac_top_builddir=
46194 .) # No --srcdir option. We are building in place.
46196 if test -z "$ac_top_builddir"; then
46199 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46201 [\\/]* | ?:[\\/]* ) # Absolute path.
46202 ac_srcdir=$srcdir$ac_dir_suffix;
46203 ac_top_srcdir=$srcdir ;;
46204 *) # Relative path.
46205 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46206 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46209 # Do not use `cd foo && pwd` to compute absolute paths, because
46210 # the directories may not exist.
46212 .) ac_abs_builddir="$ac_dir";;
46215 .) ac_abs_builddir=`pwd`;;
46216 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46217 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46220 case $ac_abs_builddir in
46221 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46223 case ${ac_top_builddir}. in
46224 .) ac_abs_top_builddir=$ac_abs_builddir;;
46225 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46226 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46229 case $ac_abs_builddir in
46230 .) ac_abs_srcdir=$ac_srcdir;;
46233 .) ac_abs_srcdir=$ac_abs_builddir;;
46234 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46235 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46238 case $ac_abs_builddir in
46239 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46241 case $ac_top_srcdir in
46242 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46243 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46244 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46249 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46250 echo "$as_me: executing $ac_dest commands" >&6;}
46252 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46253 # Strip MF so we end up with the name of the file.
46254 mf=`echo "$mf" | sed -e 's/:.*$//'`
46255 # Check whether this is an Automake generated Makefile or not.
46256 # We used to match only the files named `Makefile.in', but
46257 # some people rename them; so instead we look at the file content.
46258 # Grep'ing the first line is not enough: some people post-process
46259 # each Makefile.in and add a new line on top of each file to say so.
46260 # So let's grep whole file.
46261 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46262 dirpart=`(dirname "$mf") 2>/dev/null ||
46263 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46264 X"$mf" : 'X\(//\)[^/]' \| \
46265 X"$mf" : 'X\(//\)$' \| \
46266 X"$mf" : 'X\(/\)' \| \
46267 . : '\(.\)' 2>/dev/null ||
46269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46271 /^X\(\/\/\)$/{ s//\1/; q; }
46272 /^X\(\/\).*/{ s//\1/; q; }
46277 # Extract the definition of DEPDIR, am__include, and am__quote
46278 # from the Makefile without running `make'.
46279 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46280 test -z "$DEPDIR" && continue
46281 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46282 test -z "am__include" && continue
46283 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46284 # When using ansi2knr, U may be empty or an underscore; expand it
46285 U=`sed -n 's/^U = //p' < "$mf"`
46286 # Find all dependency output files, they are included files with
46287 # $(DEPDIR) in their names. We invoke sed twice because it is the
46288 # simplest approach to changing $(DEPDIR) to its actual value in the
46290 for file in `sed -n "
46291 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46292 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46293 # Make sure the directory exists.
46294 test -f "$dirpart/$file" && continue
46295 fdir=`(dirname "$file") 2>/dev/null ||
46296 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46297 X"$file" : 'X\(//\)[^/]' \| \
46298 X"$file" : 'X\(//\)$' \| \
46299 X"$file" : 'X\(/\)' \| \
46300 . : '\(.\)' 2>/dev/null ||
46302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46304 /^X\(\/\/\)$/{ s//\1/; q; }
46305 /^X\(\/\).*/{ s//\1/; q; }
46307 { if $as_mkdir_p; then
46308 mkdir -p $dirpart/$fdir
46310 as_dir=$dirpart/$fdir
46312 while test ! -d "$as_dir"; do
46313 as_dirs="$as_dir $as_dirs"
46314 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46316 X"$as_dir" : 'X\(//\)[^/]' \| \
46317 X"$as_dir" : 'X\(//\)$' \| \
46318 X"$as_dir" : 'X\(/\)' \| \
46319 . : '\(.\)' 2>/dev/null ||
46321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46323 /^X\(\/\/\)$/{ s//\1/; q; }
46324 /^X\(\/\).*/{ s//\1/; q; }
46327 test ! -n "$as_dirs" || mkdir $as_dirs
46328 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46329 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46330 { (exit 1); exit 1; }; }; }
46332 # echo "creating $dirpart/$file"
46333 echo '# dummy' > "$dirpart/$file"
46340 BACKENDSC="servers/slapd/backends.c"
46341 echo "Making $BACKENDSC"
46343 cat > $BACKENDSC << ENDX
46344 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46346 * Copyright 1998-2006 The OpenLDAP Foundation.
46347 * All rights reserved.
46349 * Redistribution and use in source and binary forms, with or without
46350 * modification, are permitted only as authorized by the OpenLDAP
46353 * A copy of this license is available in the file LICENSE in the
46354 * top-level directory of the distribution or, alternatively, at
46355 * <http://www.OpenLDAP.org/license.html>.
46357 /* This file is automatically generated by configure; please do not edit. */
46359 #include "portable.h"
46363 if test "${STATIC_BACKENDS}"; then
46364 for b in config ${STATIC_BACKENDS}; do
46365 bb=`echo "${b}" | sed -e 's/back-//'`
46366 cat >> $BACKENDSC << ENDX
46367 extern BI_init ${bb}_back_initialize;
46371 cat >> $BACKENDSC << ENDX
46373 BackendInfo slap_binfo[] = {
46376 for b in config ${STATIC_BACKENDS}; do
46377 bb=`echo "${b}" | sed -e 's/back-//'`
46378 echo " Add ${bb} ..."
46379 cat >> $BACKENDSC << ENDX
46380 { "${bb}", ${bb}_back_initialize },
46384 cat >> $BACKENDSC << ENDX
46388 /* end of generated file */
46391 OVERLAYSC="servers/slapd/overlays/statover.c"
46392 echo "Making $OVERLAYSC"
46394 cat > $OVERLAYSC << ENDX
46395 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46397 * Copyright 1998-2006 The OpenLDAP Foundation.
46398 * All rights reserved.
46400 * Redistribution and use in source and binary forms, with or without
46401 * modification, are permitted only as authorized by the OpenLDAP
46404 * A copy of this license is available in the file LICENSE in the
46405 * top-level directory of the distribution or, alternatively, at
46406 * <http://www.OpenLDAP.org/license.html>.
46408 /* This file is automatically generated by configure; please do not edit. */
46410 #include "portable.h"
46414 if test "${STATIC_OVERLAYS}"; then
46415 for o in ${STATIC_OVERLAYS}; do
46416 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46417 cat >> $OVERLAYSC << ENDX
46418 extern OV_init ${oo}_initialize;
46423 cat >> $OVERLAYSC << ENDX
46425 OverlayInit slap_oinfo[] = {
46428 if test "${STATIC_OVERLAYS}"; then
46429 for o in ${STATIC_OVERLAYS}; do
46430 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46431 echo " Add ${oo} ..."
46432 cat >> $OVERLAYSC << ENDX
46433 { "${oo}", ${oo}_initialize },
46438 cat >> $OVERLAYSC << ENDX
46442 /* end of generated file */
46445 echo Please run \"make depend\" to build dependencies
46451 cat >>$CONFIG_STATUS <<\_ACEOF
46453 { (exit 0); exit 0; }
46455 chmod +x $CONFIG_STATUS
46456 ac_clean_files=$ac_clean_files_save
46459 # configure is writing to config.log, and then calls config.status.
46460 # config.status does its own redirection, appending to config.log.
46461 # Unfortunately, on DOS this fails, as config.log is still kept open
46462 # by configure, so config.status won't be able to write to it; its
46463 # output is simply discarded. So we exec the FD to /dev/null,
46464 # effectively closing config.log, so it can be properly (re)opened and
46465 # appended to by config.status. When coming back to configure, we
46466 # need to make the FD available again.
46467 if test "$no_create" != yes; then
46469 ac_config_status_args=
46470 test "$silent" = yes &&
46471 ac_config_status_args="$ac_config_status_args --quiet"
46473 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46475 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46476 # would make configure fail if this is the last instruction.
46477 $ac_cs_success || { (exit 1); exit 1; }