2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.615 2006/01/06 04:50:53 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293 echo_test_string=`eval $cmd` &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
931 # Report the --help message.
933 if test "$ac_init_help" = "long"; then
934 # Omit some internal or obsolete options to make the list less imposing.
935 # This message is too long to be a string in the A/UX 3.1 sh.
937 \`configure' configures this package to adapt to many kinds of systems.
939 Usage: $0 [OPTION]... [VAR=VALUE]...
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE. See below for descriptions of some of the useful variables.
944 Defaults for the options are specified in brackets.
947 -h, --help display this help and exit
948 --help=short display options specific to this package
949 --help=recursive display the short help of all the included packages
950 -V, --version display version information and exit
951 -q, --quiet, --silent do not print \`checking...' messages
952 --cache-file=FILE cache test results in FILE [disabled]
953 -C, --config-cache alias for \`--cache-file=config.cache'
954 -n, --no-create do not create output files
955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960 Installation directories:
961 --prefix=PREFIX install architecture-independent files in PREFIX
963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
971 For better control, use the options below.
973 Fine tuning of the installation directories:
974 --bindir=DIR user executables [EPREFIX/bin]
975 --sbindir=DIR system admin executables [EPREFIX/sbin]
976 --libexecdir=DIR program executables [EPREFIX/libexec]
977 --datadir=DIR read-only architecture-independent data [PREFIX/share]
978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
981 --libdir=DIR object code libraries [EPREFIX/lib]
982 --includedir=DIR C header files [PREFIX/include]
983 --oldincludedir=DIR C header files for non-gcc [/usr/include]
984 --infodir=DIR info documentation [PREFIX/info]
985 --mandir=DIR man documentation [PREFIX/man]
991 --program-prefix=PREFIX prepend PREFIX to installed program names
992 --program-suffix=SUFFIX append SUFFIX to installed program names
993 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996 --build=BUILD configure for building on BUILD [guessed]
997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
998 --target=TARGET configure for building compilers for TARGET [HOST]
1002 if test -n "$ac_init_help"; then
1007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1009 --enable-debug enable debugging no|yes|traditional [yes]
1010 --enable-dynamic enable linking built binaries with dynamic libs [no]
1011 --enable-syslog enable syslog support [auto]
1012 --enable-proctitle enable proctitle support [yes]
1013 --enable-ipv6 enable IPv6 support [auto]
1014 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1016 SLAPD (Standalone LDAP Daemon) Options:
1017 --enable-slapd enable building slapd [yes]
1018 --enable-aci enable per-object ACIs (experimental) [no]
1019 --enable-cleartext enable cleartext passwords [yes]
1020 --enable-crypt enable crypt(3) passwords [no]
1021 --enable-lmpasswd enable LAN Manager passwords [no]
1022 --enable-spasswd enable (Cyrus) SASL password verification [no]
1023 --enable-modules enable dynamic module support [no]
1024 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1025 --enable-rlookups enable reverse lookups of client hostnames [no]
1026 --enable-slapi enable SLAPI support (experimental) [no]
1027 --enable-slp enable SLPv2 support [no]
1028 --enable-wrappers enable tcp wrapper support [no]
1030 SLAPD Backend Options:
1031 --enable-backends enable all available backends no|yes|mod
1032 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1033 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1034 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1035 --enable-ldap enable ldap backend no|yes|mod [no]
1036 --enable-ldbm enable ldbm backend no|yes|mod [no]
1037 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1039 --enable-meta enable metadirectory backend no|yes|mod [no]
1040 --enable-monitor enable monitor backend no|yes|mod [yes]
1041 --enable-null enable null backend no|yes|mod [no]
1042 --enable-passwd enable passwd backend no|yes|mod [no]
1043 --enable-perl enable perl backend no|yes|mod [no]
1044 --enable-relay enable relay backend no|yes|mod [yes]
1045 --enable-shell enable shell backend no|yes|mod [no]
1046 --enable-sql enable sql backend no|yes|mod [no]
1048 SLAPD Overlay Options:
1049 --enable-overlays enable all available overlays no|yes|mod
1050 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1051 --enable-denyop Deny Operation overlay no|yes|mod [no]
1052 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1053 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1054 --enable-lastmod Last Modification overlay no|yes|mod [no]
1055 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1056 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1057 --enable-refint Referential Integrity overlay no|yes|mod [no]
1058 --enable-retcode Return Code testing overlay no|yes|mod [no]
1059 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1060 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1061 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1062 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1063 --enable-valsort Value Sorting overlay no|yes|mod [no]
1065 SLURPD (Replication Daemon) Options:
1066 --enable-slurpd enable building slurpd [auto]
1068 Library Generation & Linking Options
1069 --enable-static[=PKGS]
1070 build static libraries [default=yes]
1071 --enable-shared[=PKGS]
1072 build shared libraries [default=yes]
1073 --enable-fast-install[=PKGS]
1074 optimize for fast installation [default=yes]
1075 --disable-dependency-tracking speeds up one-time build
1076 --enable-dependency-tracking do not reject slow dependency extractors
1077 --disable-libtool-lock avoid locking (might break parallel builds)
1080 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1081 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1082 --with-subdir=DIR change default subdirectory used for installs
1083 --with-cyrus-sasl with Cyrus SASL support [auto]
1084 --with-fetch with fetch(3) URL support [auto]
1085 --with-threads with threads [auto]
1086 --with-tls with TLS/SSL support [auto]
1087 --with-yielding-select with implicitly yielding select [auto]
1088 --with-multiple-precision
1089 multiple precision support for statistics
1090 auto|bignum|gmp [auto]
1092 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1093 --with-pic try to use only PIC/non-PIC objects [default=use
1096 include additional configurations [automatic]
1098 See INSTALL file for further details.
1100 Some influential environment variables:
1101 CC C compiler command
1102 CFLAGS C compiler flags
1103 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1104 nonstandard directory <lib dir>
1105 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106 headers in a nonstandard directory <include dir>
1109 Use these variables to override the choices made by `configure' or to help
1110 it to find libraries and programs with nonstandard names/locations.
1115 if test "$ac_init_help" = "recursive"; then
1116 # If there are subdirs, report their specific --help.
1118 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119 test -d $ac_dir || continue
1122 if test "$ac_dir" != .; then
1123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124 # A "../" for each directory in $ac_dir_suffix.
1125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127 ac_dir_suffix= ac_top_builddir=
1131 .) # No --srcdir option. We are building in place.
1133 if test -z "$ac_top_builddir"; then
1136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138 [\\/]* | ?:[\\/]* ) # Absolute path.
1139 ac_srcdir=$srcdir$ac_dir_suffix;
1140 ac_top_srcdir=$srcdir ;;
1142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1149 .) ac_abs_builddir="$ac_dir";;
1152 .) ac_abs_builddir=`pwd`;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 case ${ac_top_builddir}. in
1161 .) ac_abs_top_builddir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1170 .) ac_abs_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 case $ac_top_srcdir in
1179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1186 # Check for guested configure; otherwise get Cygnus style configure.
1187 if test -f $ac_srcdir/configure.gnu; then
1189 $SHELL $ac_srcdir/configure.gnu --help=recursive
1190 elif test -f $ac_srcdir/configure; then
1192 $SHELL $ac_srcdir/configure --help=recursive
1193 elif test -f $ac_srcdir/configure.ac ||
1194 test -f $ac_srcdir/configure.in; then
1196 $ac_configure --help
1198 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1212 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1213 Restrictions apply, see COPYRIGHT and LICENSE files.
1219 This file contains any messages produced by compilers while
1220 running configure, to aid debugging if configure makes a mistake.
1222 It was created by $as_me, which was
1223 generated by GNU Autoconf 2.59. Invocation command line was
1234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1243 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1244 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1247 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1248 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1249 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257 test -z "$as_dir" && as_dir=.
1258 echo "PATH: $as_dir"
1273 # Keep a trace of the command line.
1274 # Strip out --no-create and --no-recursion so they do not pile up.
1275 # Strip out --silent because we don't want to record it for future runs.
1276 # Also quote any args containing shell meta-characters.
1277 # Make two passes to allow for proper duplicate-argument suppression.
1282 ac_must_keep_next=false
1288 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290 | -silent | --silent | --silen | --sile | --sil)
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1298 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299 if test $ac_must_keep_next = true; then
1300 ac_must_keep_next=false # Got value, back to normal.
1303 *=* | --config-cache | -C | -disable-* | --disable-* \
1304 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306 | -with-* | --with-* | -without-* | --without-* | --x)
1307 case "$ac_configure_args0 " in
1308 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1311 -* ) ac_must_keep_next=true ;;
1314 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315 # Get rid of the leading space.
1321 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1324 # When interrupted or exit'd, cleanup temporary files, and complete
1325 # config.log. We remove comments because anyway the quotes in there
1326 # would cause problems or look ugly.
1327 # WARNING: Be sure not to use single quotes in there, as some shells,
1328 # such as our DU 5.0 friend, will then `close' the trap.
1329 trap 'exit_status=$?
1330 # Save into config.log some information that might help in debugging.
1335 ## ---------------- ##
1336 ## Cache variables. ##
1337 ## ---------------- ##
1340 # The following way of writing the cache mishandles newlines in values,
1343 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1346 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1351 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1358 ## ----------------- ##
1359 ## Output variables. ##
1360 ## ----------------- ##
1363 for ac_var in $ac_subst_vars
1365 eval ac_val=$`echo $ac_var`
1366 echo "$ac_var='"'"'$ac_val'"'"'"
1370 if test -n "$ac_subst_files"; then
1377 for ac_var in $ac_subst_files
1379 eval ac_val=$`echo $ac_var`
1380 echo "$ac_var='"'"'$ac_val'"'"'"
1385 if test -s confdefs.h; then
1392 sed "/^$/d" confdefs.h | sort
1395 test "$ac_signal" != 0 &&
1396 echo "$as_me: caught signal $ac_signal"
1397 echo "$as_me: exit $exit_status"
1399 rm -f core *.core &&
1400 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1403 for ac_signal in 1 2 13 15; do
1404 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1408 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1409 rm -rf conftest* confdefs.h
1410 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1413 # Predefined preprocessor variables.
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_NAME "$PACKAGE_NAME"
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_STRING "$PACKAGE_STRING"
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1440 # Let the site file select an alternate cache file if it wants to.
1441 # Prefer explicitly selected file to automatically selected ones.
1442 if test -z "$CONFIG_SITE"; then
1443 if test "x$prefix" != xNONE; then
1444 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1446 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1449 for ac_site_file in $CONFIG_SITE; do
1450 if test -r "$ac_site_file"; then
1451 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452 echo "$as_me: loading site script $ac_site_file" >&6;}
1453 sed 's/^/| /' "$ac_site_file" >&5
1459 # Check that the precious variables saved in the cache have kept the same
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465 eval ac_new_set=\$ac_env_${ac_var}_set
1466 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467 eval ac_new_val="\$ac_env_${ac_var}_value"
1468 case $ac_old_set,$ac_new_set in
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1479 if test "x$ac_old_val" != "x$ac_new_val"; then
1480 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1483 echo "$as_me: former value: $ac_old_val" >&2;}
1484 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1485 echo "$as_me: current value: $ac_new_val" >&2;}
1486 ac_cache_corrupted=:
1489 # Pass precious variables to config.status.
1490 if test "$ac_new_set" = set; then
1492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494 *) ac_arg=$ac_var=$ac_new_val ;;
1496 case " $ac_configure_args " in
1497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1498 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502 if $ac_cache_corrupted; then
1503 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507 { (exit 1); exit 1; }; }
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 no yes traditional ; 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-multiple_precision
2431 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2432 if test "${with_multiple_precision+set}" = set; then
2433 withval="$with_multiple_precision"
2436 for ol_val in auto 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-multiple_precision" >&5
2443 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2444 { (exit 1); exit 1; }; }
2446 ol_with_multiple_precision="$ol_arg"
2449 ol_with_multiple_precision="auto"
2450 fi; # end --with-multiple_precision
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 \
3159 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3160 if test "${enable_xxslapoverlays+set}" = set; then
3161 enableval="$enable_xxslapoverlays"
3165 # OpenLDAP --enable-overlays
3167 # Check whether --enable-overlays or --disable-overlays was given.
3168 if test "${enable_overlays+set}" = set; then
3169 enableval="$enable_overlays"
3172 for ol_val in no yes mod ; do
3173 if test "$enableval" = "$ol_val" ; then
3177 if test "$ol_arg" = "invalid" ; then
3178 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3179 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3180 { (exit 1); exit 1; }; }
3182 ol_enable_overlays="$ol_arg"
3185 # end --enable-overlays
3186 # OpenLDAP --enable-accesslog
3188 # Check whether --enable-accesslog or --disable-accesslog was given.
3189 if test "${enable_accesslog+set}" = set; then
3190 enableval="$enable_accesslog"
3193 for ol_val in no yes mod ; do
3194 if test "$enableval" = "$ol_val" ; then
3198 if test "$ol_arg" = "invalid" ; then
3199 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3200 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3201 { (exit 1); exit 1; }; }
3203 ol_enable_accesslog="$ol_arg"
3206 ol_enable_accesslog=${ol_enable_overlays:-no}
3208 # end --enable-accesslog
3210 # OpenLDAP --enable-denyop
3212 # Check whether --enable-denyop or --disable-denyop was given.
3213 if test "${enable_denyop+set}" = set; then
3214 enableval="$enable_denyop"
3217 for ol_val in no yes mod ; do
3218 if test "$enableval" = "$ol_val" ; then
3222 if test "$ol_arg" = "invalid" ; then
3223 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3224 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3225 { (exit 1); exit 1; }; }
3227 ol_enable_denyop="$ol_arg"
3230 ol_enable_denyop=${ol_enable_overlays:-no}
3232 # end --enable-denyop
3234 # OpenLDAP --enable-dyngroup
3236 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3237 if test "${enable_dyngroup+set}" = set; then
3238 enableval="$enable_dyngroup"
3241 for ol_val in no yes mod ; do
3242 if test "$enableval" = "$ol_val" ; then
3246 if test "$ol_arg" = "invalid" ; then
3247 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3248 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3249 { (exit 1); exit 1; }; }
3251 ol_enable_dyngroup="$ol_arg"
3254 ol_enable_dyngroup=${ol_enable_overlays:-no}
3256 # end --enable-dyngroup
3258 # OpenLDAP --enable-dynlist
3260 # Check whether --enable-dynlist or --disable-dynlist was given.
3261 if test "${enable_dynlist+set}" = set; then
3262 enableval="$enable_dynlist"
3265 for ol_val in no yes mod ; do
3266 if test "$enableval" = "$ol_val" ; then
3270 if test "$ol_arg" = "invalid" ; then
3271 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3272 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3273 { (exit 1); exit 1; }; }
3275 ol_enable_dynlist="$ol_arg"
3278 ol_enable_dynlist=${ol_enable_overlays:-no}
3280 # end --enable-dynlist
3282 # OpenLDAP --enable-lastmod
3284 # Check whether --enable-lastmod or --disable-lastmod was given.
3285 if test "${enable_lastmod+set}" = set; then
3286 enableval="$enable_lastmod"
3289 for ol_val in no yes mod ; do
3290 if test "$enableval" = "$ol_val" ; then
3294 if test "$ol_arg" = "invalid" ; then
3295 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3296 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3297 { (exit 1); exit 1; }; }
3299 ol_enable_lastmod="$ol_arg"
3302 ol_enable_lastmod=${ol_enable_overlays:-no}
3304 # end --enable-lastmod
3306 # OpenLDAP --enable-ppolicy
3308 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3309 if test "${enable_ppolicy+set}" = set; then
3310 enableval="$enable_ppolicy"
3313 for ol_val in no yes mod ; do
3314 if test "$enableval" = "$ol_val" ; then
3318 if test "$ol_arg" = "invalid" ; then
3319 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3320 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3321 { (exit 1); exit 1; }; }
3323 ol_enable_ppolicy="$ol_arg"
3326 ol_enable_ppolicy=${ol_enable_overlays:-no}
3328 # end --enable-ppolicy
3330 # OpenLDAP --enable-proxycache
3332 # Check whether --enable-proxycache or --disable-proxycache was given.
3333 if test "${enable_proxycache+set}" = set; then
3334 enableval="$enable_proxycache"
3337 for ol_val in no yes mod ; do
3338 if test "$enableval" = "$ol_val" ; then
3342 if test "$ol_arg" = "invalid" ; then
3343 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3345 { (exit 1); exit 1; }; }
3347 ol_enable_proxycache="$ol_arg"
3350 ol_enable_proxycache=${ol_enable_overlays:-no}
3352 # end --enable-proxycache
3354 # OpenLDAP --enable-refint
3356 # Check whether --enable-refint or --disable-refint was given.
3357 if test "${enable_refint+set}" = set; then
3358 enableval="$enable_refint"
3361 for ol_val in no yes mod ; do
3362 if test "$enableval" = "$ol_val" ; then
3366 if test "$ol_arg" = "invalid" ; then
3367 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3368 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3369 { (exit 1); exit 1; }; }
3371 ol_enable_refint="$ol_arg"
3374 ol_enable_refint=${ol_enable_overlays:-no}
3376 # end --enable-refint
3378 # OpenLDAP --enable-retcode
3380 # Check whether --enable-retcode or --disable-retcode was given.
3381 if test "${enable_retcode+set}" = set; then
3382 enableval="$enable_retcode"
3385 for ol_val in no yes mod ; do
3386 if test "$enableval" = "$ol_val" ; then
3390 if test "$ol_arg" = "invalid" ; then
3391 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3392 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3393 { (exit 1); exit 1; }; }
3395 ol_enable_retcode="$ol_arg"
3398 ol_enable_retcode=${ol_enable_overlays:-no}
3400 # end --enable-retcode
3402 # OpenLDAP --enable-rwm
3404 # Check whether --enable-rwm or --disable-rwm was given.
3405 if test "${enable_rwm+set}" = set; then
3406 enableval="$enable_rwm"
3409 for ol_val in no yes mod ; do
3410 if test "$enableval" = "$ol_val" ; then
3414 if test "$ol_arg" = "invalid" ; then
3415 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3416 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3417 { (exit 1); exit 1; }; }
3419 ol_enable_rwm="$ol_arg"
3422 ol_enable_rwm=${ol_enable_overlays:-no}
3426 # OpenLDAP --enable-syncprov
3428 # Check whether --enable-syncprov or --disable-syncprov was given.
3429 if test "${enable_syncprov+set}" = set; then
3430 enableval="$enable_syncprov"
3433 for ol_val in no yes mod ; do
3434 if test "$enableval" = "$ol_val" ; then
3438 if test "$ol_arg" = "invalid" ; then
3439 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3440 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3441 { (exit 1); exit 1; }; }
3443 ol_enable_syncprov="$ol_arg"
3446 ol_enable_syncprov=${ol_enable_overlays:-yes}
3448 # end --enable-syncprov
3450 # OpenLDAP --enable-translucent
3452 # Check whether --enable-translucent or --disable-translucent was given.
3453 if test "${enable_translucent+set}" = set; then
3454 enableval="$enable_translucent"
3457 for ol_val in no yes mod ; do
3458 if test "$enableval" = "$ol_val" ; then
3462 if test "$ol_arg" = "invalid" ; then
3463 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3464 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3465 { (exit 1); exit 1; }; }
3467 ol_enable_translucent="$ol_arg"
3470 ol_enable_translucent=${ol_enable_overlays:-no}
3472 # end --enable-translucent
3474 # OpenLDAP --enable-unique
3476 # Check whether --enable-unique or --disable-unique was given.
3477 if test "${enable_unique+set}" = set; then
3478 enableval="$enable_unique"
3481 for ol_val in no yes mod ; do
3482 if test "$enableval" = "$ol_val" ; then
3486 if test "$ol_arg" = "invalid" ; then
3487 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3488 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3489 { (exit 1); exit 1; }; }
3491 ol_enable_unique="$ol_arg"
3494 ol_enable_unique=${ol_enable_overlays:-no}
3496 # end --enable-unique
3498 # OpenLDAP --enable-valsort
3500 # Check whether --enable-valsort or --disable-valsort was given.
3501 if test "${enable_valsort+set}" = set; then
3502 enableval="$enable_valsort"
3505 for ol_val in no yes mod ; do
3506 if test "$enableval" = "$ol_val" ; then
3510 if test "$ol_arg" = "invalid" ; then
3511 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3512 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3513 { (exit 1); exit 1; }; }
3515 ol_enable_valsort="$ol_arg"
3518 ol_enable_valsort=${ol_enable_overlays:-no}
3520 # end --enable-valsort
3523 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3524 if test "${enable_xxslurpdoptions+set}" = set; then
3525 enableval="$enable_xxslurpdoptions"
3528 # OpenLDAP --enable-slurpd
3530 # Check whether --enable-slurpd or --disable-slurpd was given.
3531 if test "${enable_slurpd+set}" = set; then
3532 enableval="$enable_slurpd"
3535 for ol_val in auto yes no ; do
3536 if test "$enableval" = "$ol_val" ; then
3540 if test "$ol_arg" = "invalid" ; then
3541 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3542 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3543 { (exit 1); exit 1; }; }
3545 ol_enable_slurpd="$ol_arg"
3548 ol_enable_slurpd=auto
3550 # end --enable-slurpd
3552 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3553 if test "${enable_xxliboptions+set}" = set; then
3554 enableval="$enable_xxliboptions"
3557 # Check whether --enable-static or --disable-static was given.
3558 if test "${enable_static+set}" = set; then
3559 enableval="$enable_static"
3560 p=${PACKAGE-default}
3562 yes) enable_static=yes ;;
3563 no) enable_static=no ;;
3566 # Look at the argument we got. We use all the common list separators.
3567 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3568 for pkg in $enableval; do
3570 if test "X$pkg" = "X$p"; then
3581 # Check whether --enable-shared or --disable-shared was given.
3582 if test "${enable_shared+set}" = set; then
3583 enableval="$enable_shared"
3584 p=${PACKAGE-default}
3586 yes) enable_shared=yes ;;
3587 no) enable_shared=no ;;
3590 # Look at the argument we got. We use all the common list separators.
3591 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3592 for pkg in $enableval; do
3594 if test "X$pkg" = "X$p"; then
3608 if test $ol_enable_slapd = no ; then
3609 if test $ol_enable_slapi = yes ; then
3610 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3611 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3613 case "$ol_enable_backends" in yes | mod)
3614 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3615 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3617 for i in $Backends; do
3618 eval "ol_tmp=\$ol_enable_$i"
3619 if test $ol_tmp != no ; then
3620 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3621 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3622 eval "ol_enable_$i=no"
3625 if test $ol_enable_modules = yes ; then
3626 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3627 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3629 if test $ol_enable_multimaster = yes ; then
3630 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3631 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3633 if test $ol_enable_wrappers = yes ; then
3634 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3635 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3637 if test $ol_enable_rlookups = yes ; then
3638 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3639 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3641 if test $ol_enable_aci = yes ; then
3642 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3643 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3645 if test $ol_enable_ldbm_api != auto ; then
3646 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3647 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3649 if test $ol_enable_ldbm_type != auto ; then
3650 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3651 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3653 if test $ol_enable_slurpd = yes ; then
3654 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3655 echo "$as_me: error: slurpd requires slapd" >&2;}
3656 { (exit 1); exit 1; }; }
3658 if test $ol_enable_rewrite = yes ; then
3659 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3662 case "$ol_enable_overlays" in yes | mod)
3663 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3666 for i in $Overlays; do
3667 eval "ol_tmp=\$ol_enable_$i"
3668 if test $ol_tmp != no ; then
3669 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3670 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3671 eval "ol_enable_$i=no"
3675 # force settings to no
3680 ol_enable_modules=no
3681 ol_enable_multimaster=no
3682 ol_enable_rlookups=no
3684 ol_enable_wrappers=no
3686 ol_enable_ldbm_api=no
3687 ol_enable_ldbm_type=no
3691 ol_enable_rewrite=no
3693 elif test $ol_enable_ldbm = no ; then
3695 if test $ol_enable_ldbm_api != auto ; then
3696 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3697 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3700 if test $ol_enable_ldbm_type != auto ; then
3701 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3702 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3705 if test $ol_enable_modules != yes &&
3706 test $ol_enable_bdb = no &&
3707 test $ol_enable_dnssrv = no &&
3708 test $ol_enable_hdb = no &&
3709 test $ol_enable_ldap = no &&
3710 test $ol_enable_meta = no &&
3711 test $ol_enable_monitor = no &&
3712 test $ol_enable_null = no &&
3713 test $ol_enable_passwd = no &&
3714 test $ol_enable_perl = no &&
3715 test $ol_enable_relay = no &&
3716 test $ol_enable_shell = no &&
3717 test $ol_enable_sql = no ; then
3719 if test $ol_enable_slapd = yes ; then
3720 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3721 echo "$as_me: error: slapd requires a backend" >&2;}
3722 { (exit 1); exit 1; }; }
3724 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3725 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3730 ol_enable_ldbm_api=no
3731 ol_enable_ldbm_type=no
3733 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3734 ol_enable_ldbm_api=berkeley
3738 if test $ol_enable_ldbm_api = gdbm &&
3739 test $ol_enable_ldbm_type = btree ; then
3740 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3741 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3742 { (exit 1); exit 1; }; }
3744 if test $ol_enable_ldbm_api = mdbm &&
3745 test $ol_enable_ldbm_type = btree ; then
3746 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3747 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3748 { (exit 1); exit 1; }; }
3750 if test $ol_enable_ldbm_api = ndbm &&
3751 test $ol_enable_ldbm_type = btree ; then
3752 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3753 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3754 { (exit 1); exit 1; }; }
3757 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3758 if test $ol_enable_ldbm_api = auto ; then
3759 ol_enable_ldbm_api=berkeley
3760 elif test $ol_enable_ldbm_api != berkeley ; then
3761 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3762 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3763 { (exit 1); exit 1; }; }
3768 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3769 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3770 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3771 { (exit 1); exit 1; }; }
3774 if test $ol_enable_slurpd = yes ; then
3775 if test $ol_with_threads = no ; then
3776 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3777 echo "$as_me: error: slurpd requires threads" >&2;}
3778 { (exit 1); exit 1; }; }
3782 if test $ol_enable_lmpasswd = yes ; then
3783 if test $ol_with_tls = no ; then
3784 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3785 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3786 { (exit 1); exit 1; }; }
3790 if test $ol_enable_kbind = yes ; then
3791 if test $ol_with_kerberos = no ; then
3792 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3793 echo "$as_me: error: options require --with-kerberos" >&2;}
3794 { (exit 1); exit 1; }; }
3795 elif test $ol_with_kerberos = auto ; then
3796 ol_with_kerberos=yes
3799 elif test $ol_enable_kbind = no ; then
3800 if test $ol_with_kerberos = auto ; then
3802 elif test $ol_with_kerberos != no ; then
3803 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3804 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3809 if test $ol_enable_spasswd = yes ; then
3810 if test $ol_with_cyrus_sasl = no ; then
3811 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3812 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3813 { (exit 1); exit 1; }; }
3815 ol_with_cyrus_sasl=yes
3818 echo "$as_me:$LINENO: result: done" >&5
3819 echo "${ECHO_T}done" >&6
3862 BUILD_TRANSLUCENT=no
3866 SLAPD_STATIC_OVERLAYS=
3867 SLAPD_DYNAMIC_OVERLAYS=
3869 SLAPD_MODULES_LDFLAGS=
3870 SLAPD_MODULES_CPPFLAGS=
3872 SLAPD_STATIC_BACKENDS=back-ldif
3873 SLAPD_DYNAMIC_BACKENDS=
3899 cat >>confdefs.h <<\_ACEOF
3900 #define HAVE_MKVERSION 1
3908 *-*-aix*) if test -z "$CC" ; then
3909 case "$ol_with_threads" in
3910 auto | yes | posix) ol_aix_threads=yes ;;
3916 if test $ol_aix_threads = yes ; then
3917 if test -z "${CC}" ; then
3918 for ac_prog in cc_r xlc_r cc
3920 # Extract the first word of "$ac_prog", so it can be a program name with args.
3921 set dummy $ac_prog; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_CC+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if test -n "$CC"; then
3928 ac_cv_prog_CC="$CC" # Let the user override the test.
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_CC="$ac_prog"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 if test -n "$CC"; then
3948 echo "$as_me:$LINENO: result: $CC" >&5
3949 echo "${ECHO_T}$CC" >&6
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3955 test -n "$CC" && break
3959 if test "$CC" = cc ; then
3960 if test $ol_with_threads != auto ; then
3961 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3962 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3963 { (exit 1); exit 1; }; }
3965 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3966 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3972 case ${CC} in cc_r | xlc_r)
3973 ol_with_threads=posix
3974 ol_cv_pthread_create=yes
3979 if test -z "${CC}"; then
3980 for ac_prog in cc gcc
3982 # Extract the first word of "$ac_prog", so it can be a program name with args.
3983 set dummy $ac_prog; ac_word=$2
3984 echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986 if test "${ac_cv_prog_CC+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 if test -n "$CC"; then
3990 ac_cv_prog_CC="$CC" # Let the user override the test.
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999 ac_cv_prog_CC="$ac_prog"
4000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 if test -n "$CC"; then
4010 echo "$as_me:$LINENO: result: $CC" >&5
4011 echo "${ECHO_T}$CC" >&6
4013 echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6
4017 test -n "$CC" && break
4019 test -n "$CC" || CC="missing"
4022 if test "${CC}" = "missing" ; then
4023 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4024 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4025 { (exit 1); exit 1; }; }
4029 if test -z "${AR}"; then
4030 for ac_prog in ar gar
4032 # Extract the first word of "$ac_prog", so it can be a program name with args.
4033 set dummy $ac_prog; ac_word=$2
4034 echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4036 if test "${ac_cv_prog_AR+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 if test -n "$AR"; then
4040 ac_cv_prog_AR="$AR" # Let the user override the test.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049 ac_cv_prog_AR="$ac_prog"
4050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 if test -n "$AR"; then
4060 echo "$as_me:$LINENO: result: $AR" >&5
4061 echo "${ECHO_T}$AR" >&6
4063 echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4067 test -n "$AR" && break
4069 test -n "$AR" || AR="missing"
4072 if test "${AR}" = "missing" ; then
4073 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4074 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4075 { (exit 1); exit 1; }; }
4083 # Check whether --enable-fast-install or --disable-fast-install was given.
4084 if test "${enable_fast_install+set}" = set; then
4085 enableval="$enable_fast_install"
4086 p=${PACKAGE-default}
4088 yes) enable_fast_install=yes ;;
4089 no) enable_fast_install=no ;;
4091 enable_fast_install=no
4092 # Look at the argument we got. We use all the common list separators.
4093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4094 for pkg in $enableval; do
4096 if test "X$pkg" = "X$p"; then
4097 enable_fast_install=yes
4104 enable_fast_install=yes
4107 DEPDIR="${am__leading_dot}deps"
4109 ac_config_commands="$ac_config_commands depfiles"
4112 am_make=${MAKE-make}
4113 cat > confinc << 'END'
4118 # If we don't find an include directive, just comment out the code.
4119 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4120 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4124 # First try GNU make style include.
4125 echo "include confinc" > confmf
4126 # We grep out `Entering directory' and `Leaving directory'
4127 # messages which can occur if `w' ends up in MAKEFLAGS.
4128 # In particular we don't look at `^make:' because GNU make might
4129 # be invoked under some other name (usually "gmake"), in which
4130 # case it prints its new name instead of `make'.
4131 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4136 # Now try BSD make style include.
4137 if test "$am__include" = "#"; then
4138 echo '.include "confinc"' > confmf
4139 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4140 am__include=.include
4147 echo "$as_me:$LINENO: result: $_am_result" >&5
4148 echo "${ECHO_T}$_am_result" >&6
4149 rm -f confinc confmf
4151 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4152 if test "${enable_dependency_tracking+set}" = set; then
4153 enableval="$enable_dependency_tracking"
4156 if test "x$enable_dependency_tracking" != xno; then
4157 am_depcomp="$ac_aux_dir/depcomp"
4162 if test "x$enable_dependency_tracking" != xno; then
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 if test -n "$ac_tool_prefix"; then
4178 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4179 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_prog_CC+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 if test -n "$CC"; then
4186 ac_cv_prog_CC="$CC" # Let the user override the test.
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 if test -n "$CC"; then
4206 echo "$as_me:$LINENO: result: $CC" >&5
4207 echo "${ECHO_T}$CC" >&6
4209 echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6
4214 if test -z "$ac_cv_prog_CC"; then
4216 # Extract the first word of "gcc", so it can be a program name with args.
4217 set dummy gcc; ac_word=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 if test -n "$ac_ct_CC"; then
4224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_ac_ct_CC="gcc"
4234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4243 if test -n "$ac_ct_CC"; then
4244 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4245 echo "${ECHO_T}$ac_ct_CC" >&6
4247 echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6
4256 if test -z "$CC"; then
4257 if test -n "$ac_tool_prefix"; then
4258 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4259 set dummy ${ac_tool_prefix}cc; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_prog_CC+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$CC"; then
4266 ac_cv_prog_CC="$CC" # Let the user override the test.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_prog_CC="${ac_tool_prefix}cc"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 if test -n "$CC"; then
4286 echo "$as_me:$LINENO: result: $CC" >&5
4287 echo "${ECHO_T}$CC" >&6
4289 echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4294 if test -z "$ac_cv_prog_CC"; then
4296 # Extract the first word of "cc", so it can be a program name with args.
4297 set dummy cc; ac_word=$2
4298 echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 if test -n "$ac_ct_CC"; then
4304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313 ac_cv_prog_ac_ct_CC="cc"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4323 if test -n "$ac_ct_CC"; then
4324 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4325 echo "${ECHO_T}$ac_ct_CC" >&6
4327 echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6
4337 if test -z "$CC"; then
4338 # Extract the first word of "cc", so it can be a program name with args.
4339 set dummy cc; ac_word=$2
4340 echo "$as_me:$LINENO: checking for $ac_word" >&5
4341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4342 if test "${ac_cv_prog_CC+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 if test -n "$CC"; then
4346 ac_cv_prog_CC="$CC" # Let the user override the test.
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4357 ac_prog_rejected=yes
4361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 if test $ac_prog_rejected = yes; then
4368 # We found a bogon in the path, so make sure we never use it.
4369 set dummy $ac_cv_prog_CC
4371 if test $# != 0; then
4372 # We chose a different compiler from the bogus one.
4373 # However, it has the same basename, so the bogon will be chosen
4374 # first if we set CC to just the basename; use the full file name.
4376 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4382 if test -n "$CC"; then
4383 echo "$as_me:$LINENO: result: $CC" >&5
4384 echo "${ECHO_T}$CC" >&6
4386 echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4391 if test -z "$CC"; then
4392 if test -n "$ac_tool_prefix"; then
4395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4397 echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399 if test "${ac_cv_prog_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 if test -n "$CC"; then
4403 ac_cv_prog_CC="$CC" # Let the user override the test.
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 if test -n "$CC"; then
4423 echo "$as_me:$LINENO: result: $CC" >&5
4424 echo "${ECHO_T}$CC" >&6
4426 echo "$as_me:$LINENO: result: no" >&5
4427 echo "${ECHO_T}no" >&6
4430 test -n "$CC" && break
4433 if test -z "$CC"; then
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 echo "$as_me:$LINENO: checking for $ac_word" >&5
4440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 if test -n "$ac_ct_CC"; then
4445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_prog_ac_ct_CC="$ac_prog"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4464 if test -n "$ac_ct_CC"; then
4465 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4466 echo "${ECHO_T}$ac_ct_CC" >&6
4468 echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6
4472 test -n "$ac_ct_CC" && break
4481 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4482 See \`config.log' for more details." >&5
4483 echo "$as_me: error: no acceptable C compiler found in \$PATH
4484 See \`config.log' for more details." >&2;}
4485 { (exit 1); exit 1; }; }
4487 # Provide some information about the compiler.
4488 echo "$as_me:$LINENO:" \
4489 "checking for C compiler version" >&5
4490 ac_compiler=`set X $ac_compile; echo $2`
4491 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4492 (eval $ac_compiler --version </dev/null >&5) 2>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }
4496 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4497 (eval $ac_compiler -v </dev/null >&5) 2>&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }
4501 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4502 (eval $ac_compiler -V </dev/null >&5) 2>&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }
4507 cat >conftest.$ac_ext <<_ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4522 ac_clean_files_save=$ac_clean_files
4523 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4524 # Try to create an executable without -o first, disregard a.out.
4525 # It will help us diagnose broken compilers, and finding out an intuition
4527 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4528 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4529 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4530 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4531 (eval $ac_link_default) 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; then
4535 # Find the output, starting from the most likely. This scheme is
4536 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4539 # Be careful to initialize this variable, since it used to be cached.
4540 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4542 # b.out is created by i960 compilers.
4543 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4545 test -f "$ac_file" || continue
4547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4550 # This is the source file.
4553 # We found the default executable, but exeext='' is most
4557 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4558 # FIXME: I believe we export ac_cv_exeext for Libtool,
4559 # but it would be cool to find out if it's true. Does anybody
4560 # maintain Libtool? --akim.
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4571 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4572 See \`config.log' for more details." >&5
4573 echo "$as_me: error: C compiler cannot create executables
4574 See \`config.log' for more details." >&2;}
4575 { (exit 77); exit 77; }; }
4578 ac_exeext=$ac_cv_exeext
4579 echo "$as_me:$LINENO: result: $ac_file" >&5
4580 echo "${ECHO_T}$ac_file" >&6
4582 # Check the compiler produces executables we can run. If not, either
4583 # the compiler is broken, or we cross compile.
4584 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4585 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4586 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4587 # If not cross compiling, check that we can run a simple program.
4588 if test "$cross_compiling" != yes; then
4589 if { ac_try='./$ac_file'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
4597 if test "$cross_compiling" = maybe; then
4600 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4601 If you meant to cross compile, use \`--host'.
4602 See \`config.log' for more details." >&5
4603 echo "$as_me: error: cannot run C compiled programs.
4604 If you meant to cross compile, use \`--host'.
4605 See \`config.log' for more details." >&2;}
4606 { (exit 1); exit 1; }; }
4610 echo "$as_me:$LINENO: result: yes" >&5
4611 echo "${ECHO_T}yes" >&6
4613 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4614 ac_clean_files=$ac_clean_files_save
4615 # Check the compiler produces executables we can run. If not, either
4616 # the compiler is broken, or we cross compile.
4617 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4618 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4619 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4620 echo "${ECHO_T}$cross_compiling" >&6
4622 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4623 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4625 (eval $ac_link) 2>&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; then
4629 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4630 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4631 # work properly (i.e., refer to `conftest.exe'), while it won't with
4633 for ac_file in conftest.exe conftest conftest.*; do
4634 test -f "$ac_file" || continue
4636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4637 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4644 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4645 See \`config.log' for more details." >&5
4646 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4647 See \`config.log' for more details." >&2;}
4648 { (exit 1); exit 1; }; }
4651 rm -f conftest$ac_cv_exeext
4652 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4653 echo "${ECHO_T}$ac_cv_exeext" >&6
4655 rm -f conftest.$ac_ext
4656 EXEEXT=$ac_cv_exeext
4658 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4659 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4660 if test "${ac_cv_objext+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 cat >conftest.$ac_ext <<_ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4678 rm -f conftest.o conftest.obj
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680 (eval $ac_compile) 2>&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; then
4684 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4687 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4695 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4696 See \`config.log' for more details." >&5
4697 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4698 See \`config.log' for more details." >&2;}
4699 { (exit 1); exit 1; }; }
4702 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4704 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4705 echo "${ECHO_T}$ac_cv_objext" >&6
4706 OBJEXT=$ac_cv_objext
4708 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4709 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4710 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 cat >conftest.$ac_ext <<_ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4731 rm -f conftest.$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>conftest.er1
4735 grep -v '^ *+' conftest.er1 >conftest.err
4737 cat conftest.err >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try='test -z "$ac_c_werror_flag"
4741 || test ! -s conftest.err'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try='test -s conftest.$ac_objext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4764 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4765 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4766 GCC=`test $ac_compiler_gnu = yes && echo yes`
4767 ac_test_CFLAGS=${CFLAGS+set}
4768 ac_save_CFLAGS=$CFLAGS
4770 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4772 if test "${ac_cv_prog_cc_g+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 cat >conftest.$ac_ext <<_ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4790 rm -f conftest.$ac_objext
4791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4792 (eval $ac_compile) 2>conftest.er1
4794 grep -v '^ *+' conftest.er1 >conftest.err
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } &&
4799 { ac_try='test -z "$ac_c_werror_flag"
4800 || test ! -s conftest.err'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; } &&
4806 { ac_try='test -s conftest.$ac_objext'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4822 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4823 if test "$ac_test_CFLAGS" = set; then
4824 CFLAGS=$ac_save_CFLAGS
4825 elif test $ac_cv_prog_cc_g = yes; then
4826 if test "$GCC" = yes; then
4832 if test "$GCC" = yes; then
4838 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4839 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4840 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 ac_cv_prog_cc_stdc=no
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4853 #include <sys/types.h>
4854 #include <sys/stat.h>
4855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4856 struct buf { int x; };
4857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4858 static char *e (p, i)
4864 static char *f (char * (*g) (char **, int), char **p, ...)
4869 s = g (p, va_arg (v,int));
4874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4875 function prototypes and stuff, but not '\xHH' hex character constants.
4876 These don't provoke an error unfortunately, instead are silently treated
4877 as 'x'. The following induces an error, until -std1 is added to get
4878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4879 array size at least. It's necessary to write '\x00'==0 to get something
4880 that's true only with -std1. */
4881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4883 int test (int i, double x);
4884 struct s1 {int (*f) (int a);};
4885 struct s2 {int (*f) (double a);};
4886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4897 # Don't try gcc -ansi; that turns off useful extensions and
4898 # breaks some systems' header files.
4899 # AIX -qlanglvl=ansi
4900 # Ultrix and OSF/1 -std1
4901 # HP-UX 10.20 and later -Ae
4902 # HP-UX older versions -Aa -D_HPUX_SOURCE
4903 # SVR4 -Xc -D__EXTENSIONS__
4904 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4906 CC="$ac_save_CC $ac_arg"
4907 rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>conftest.er1
4911 grep -v '^ *+' conftest.er1 >conftest.err
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try='test -z "$ac_c_werror_flag"
4917 || test ! -s conftest.err'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; } &&
4923 { ac_try='test -s conftest.$ac_objext'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; }; then
4929 ac_cv_prog_cc_stdc=$ac_arg
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4936 rm -f conftest.err conftest.$ac_objext
4938 rm -f conftest.$ac_ext conftest.$ac_objext
4943 case "x$ac_cv_prog_cc_stdc" in
4945 echo "$as_me:$LINENO: result: none needed" >&5
4946 echo "${ECHO_T}none needed" >&6 ;;
4948 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4949 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4950 CC="$CC $ac_cv_prog_cc_stdc" ;;
4953 # Some people use a C++ compiler to compile C. Since we use `exit',
4954 # in C++ we need to declare it. In case someone uses the same compiler
4955 # for both compiling C and C++ we need to have the C++ compiler decide
4956 # the declaration of exit, since it's the most demanding environment.
4957 cat >conftest.$ac_ext <<_ACEOF
4962 rm -f conftest.$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>conftest.er1
4966 grep -v '^ *+' conftest.er1 >conftest.err
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try='test -z "$ac_c_werror_flag"
4972 || test ! -s conftest.err'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; } &&
4978 { ac_try='test -s conftest.$ac_objext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 for ac_declaration in \
4986 'extern "C" void std::exit (int) throw (); using std::exit;' \
4987 'extern "C" void std::exit (int); using std::exit;' \
4988 'extern "C" void exit (int) throw ();' \
4989 'extern "C" void exit (int);' \
4992 cat >conftest.$ac_ext <<_ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
5008 rm -f conftest.$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>conftest.er1
5012 grep -v '^ *+' conftest.er1 >conftest.err
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5038 cat >conftest.$ac_ext <<_ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5053 rm -f conftest.$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055 (eval $ac_compile) 2>conftest.er1
5057 grep -v '^ *+' conftest.er1 >conftest.err
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try='test -z "$ac_c_werror_flag"
5063 || test ! -s conftest.err'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; } &&
5069 { ac_try='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5084 if test -n "$ac_declaration"; then
5085 echo '#ifdef __cplusplus' >>confdefs.h
5086 echo $ac_declaration >>confdefs.h
5087 echo '#endif' >>confdefs.h
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5102 depcc="$CC" am_compiler_list=
5104 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5105 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5106 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5110 # We make a subdir and do the tests there. Otherwise we can end up
5111 # making bogus files that we don't know about and never remove. For
5112 # instance it was reported that on HP-UX the gcc test will end up
5113 # making a dummy file named `D' -- because `-MD' means `put the output
5116 # Copy depcomp to subdir because otherwise we won't find it if we're
5117 # using a relative directory.
5118 cp "$am_depcomp" conftest.dir
5120 # We will build objects and dependencies in a subdirectory because
5121 # it helps to detect inapplicable dependency modes. For instance
5122 # both Tru64's cc and ICC support -MD to output dependencies as a
5123 # side effect of compilation, but ICC will put the dependencies in
5124 # the current directory while Tru64 will put them in the object
5128 am_cv_CC_dependencies_compiler_type=none
5129 if test "$am_compiler_list" = ""; then
5130 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5132 for depmode in $am_compiler_list; do
5133 # Setup a source with many dependencies, because some compilers
5134 # like to wrap large dependency lists on column 80 (with \), and
5135 # we should not choose a depcomp mode which is confused by this.
5137 # We need to recreate these files for each test, as the compiler may
5138 # overwrite some of them when testing with obscure command lines.
5139 # This happens at least with the AIX C compiler.
5141 for i in 1 2 3 4 5 6; do
5142 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5143 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5144 # Solaris 8's {/usr,}/bin/sh.
5145 touch sub/conftst$i.h
5147 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5151 # after this tag, mechanisms are not by side-effect, so they'll
5152 # only be used when explicitly requested
5153 if test "x$enable_dependency_tracking" = xyes; then
5161 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5162 # mode. It turns out that the SunPro C++ compiler does not properly
5163 # handle `-M -o', and we need to detect this.
5164 if depmode=$depmode \
5165 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5166 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5167 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5168 >/dev/null 2>conftest.err &&
5169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5170 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5172 # icc doesn't choke on unknown options, it will just issue warnings
5173 # or remarks (even with -Werror). So we grep stderr for any message
5174 # that says an option was ignored or not supported.
5175 # When given -MP, icc 7.0 and 7.1 complain thusly:
5176 # icc: Command line warning: ignoring option '-M'; no argument required
5177 # The diagnosis changed in icc 8.0:
5178 # icc: Command line remark: option '-MP' not supported
5179 if (grep 'ignoring option' conftest.err ||
5180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5181 am_cv_CC_dependencies_compiler_type=$depmode
5190 am_cv_CC_dependencies_compiler_type=none
5194 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5195 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5201 test "x$enable_dependency_tracking" != xno \
5202 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5204 am__fastdepCC_FALSE='#'
5206 am__fastdepCC_TRUE='#'
5207 am__fastdepCC_FALSE=
5211 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5212 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5213 if test "${lt_cv_path_SED+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 # Loop through the user's path and test for sed and gsed.
5217 # Then use that list of sed's as ones to test for truncation.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for lt_ac_prog in sed gsed; do
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5226 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5233 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5234 # along with /bin/sed that truncates output.
5235 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5236 test ! -f $lt_ac_sed && continue
5237 cat /dev/null > conftest.in
5239 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5240 # Check for GNU sed and select it if it is found.
5241 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5242 lt_cv_path_SED=$lt_ac_sed
5246 cat conftest.in conftest.in >conftest.tmp
5247 mv conftest.tmp conftest.in
5248 cp conftest.in conftest.nl
5250 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5251 cmp -s conftest.out conftest.nl || break
5252 # 10000 chars as input seems more than enough
5253 test $lt_ac_count -gt 10 && break
5254 lt_ac_count=`expr $lt_ac_count + 1`
5255 if test $lt_ac_count -gt $lt_ac_max; then
5256 lt_ac_max=$lt_ac_count
5257 lt_cv_path_SED=$lt_ac_sed
5265 echo "$as_me:$LINENO: result: $SED" >&5
5266 echo "${ECHO_T}$SED" >&6
5268 echo "$as_me:$LINENO: checking for egrep" >&5
5269 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5270 if test "${ac_cv_prog_egrep+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5274 then ac_cv_prog_egrep='grep -E'
5275 else ac_cv_prog_egrep='egrep'
5278 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5279 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5280 EGREP=$ac_cv_prog_egrep
5284 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5285 if test "${with_gnu_ld+set}" = set; then
5286 withval="$with_gnu_ld"
5287 test "$withval" = no || with_gnu_ld=yes
5292 if test "$GCC" = yes; then
5293 # Check if gcc -print-prog-name=ld gives a path.
5294 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5295 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5298 # gcc leaves a trailing carriage return which upsets mingw
5299 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5301 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5304 # Accept absolute paths.
5306 re_direlt='/[^/][^/]*/\.\./'
5307 # Canonicalize the pathname of ld
5308 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5309 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5310 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5312 test -z "$LD" && LD="$ac_prog"
5315 # If it fails, then pretend we aren't using GCC.
5319 # If it is relative, then search for the first ld in PATH.
5323 elif test "$with_gnu_ld" = yes; then
5324 echo "$as_me:$LINENO: checking for GNU ld" >&5
5325 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5327 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5328 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5330 if test "${lt_cv_path_LD+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 if test -z "$LD"; then
5334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5335 for ac_dir in $PATH; do
5337 test -z "$ac_dir" && ac_dir=.
5338 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5339 lt_cv_path_LD="$ac_dir/$ac_prog"
5340 # Check to see if the program is GNU ld. I'd rather use --version,
5341 # but apparently some variants of GNU ld only accept -v.
5342 # Break only if it was the GNU/non-GNU ld that we prefer.
5343 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5344 *GNU* | *'with BFD'*)
5345 test "$with_gnu_ld" != no && break
5348 test "$with_gnu_ld" != yes && break
5355 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5360 if test -n "$LD"; then
5361 echo "$as_me:$LINENO: result: $LD" >&5
5362 echo "${ECHO_T}$LD" >&6
5364 echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6
5367 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5368 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5369 { (exit 1); exit 1; }; }
5370 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5371 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5372 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5376 case `$LD -v 2>&1 </dev/null` in
5377 *GNU* | *'with BFD'*)
5378 lt_cv_prog_gnu_ld=yes
5381 lt_cv_prog_gnu_ld=no
5385 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5386 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5387 with_gnu_ld=$lt_cv_prog_gnu_ld
5390 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5391 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5392 if test "${lt_cv_ld_reload_flag+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 lt_cv_ld_reload_flag='-r'
5397 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5398 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5399 reload_flag=$lt_cv_ld_reload_flag
5400 case $reload_flag in
5402 *) reload_flag=" $reload_flag" ;;
5404 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5407 if test "$GCC" = yes; then
5408 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5410 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5415 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5416 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5417 if test "${lt_cv_path_NM+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 if test -n "$NM"; then
5421 # Let the user override the test.
5424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5425 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5427 test -z "$ac_dir" && ac_dir=.
5428 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5429 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5430 # Check to see if the nm accepts a BSD-compat flag.
5431 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5432 # nm: unknown option "B" ignored
5433 # Tru64's nm complains that /dev/null is an invalid object file
5434 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5435 */dev/null* | *'Invalid file or object type'*)
5436 lt_cv_path_NM="$tmp_nm -B"
5440 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5442 lt_cv_path_NM="$tmp_nm -p"
5446 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5447 continue # so that we can try to find one that supports BSD flags
5454 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5457 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5458 echo "${ECHO_T}$lt_cv_path_NM" >&6
5461 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5462 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5464 if test "$LN_S" = "ln -s"; then
5465 echo "$as_me:$LINENO: result: yes" >&5
5466 echo "${ECHO_T}yes" >&6
5468 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5469 echo "${ECHO_T}no, using $LN_S" >&6
5472 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5473 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5474 if test "${lt_cv_deplibs_check_method+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 lt_cv_file_magic_cmd='$MAGIC_CMD'
5478 lt_cv_file_magic_test_file=
5479 lt_cv_deplibs_check_method='unknown'
5480 # Need to set the preceding variable on all platforms that support
5481 # interlibrary dependencies.
5482 # 'none' -- dependencies not supported.
5483 # `unknown' -- same as none, but documents that we really don't know.
5484 # 'pass_all' -- all dependencies passed with no checks.
5485 # 'test_compile' -- check by making test program.
5486 # 'file_magic [[regex]]' -- check by looking for files in library path
5487 # which responds to the $file_magic_cmd with a given extended regex.
5488 # If you have `file' or equivalent on your system and you're not sure
5489 # whether `pass_all' will *always* work, you probably want this one.
5493 lt_cv_deplibs_check_method=pass_all
5497 lt_cv_deplibs_check_method=pass_all
5501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5502 lt_cv_file_magic_cmd='/usr/bin/file -L'
5503 lt_cv_file_magic_test_file=/shlib/libc.so
5507 # func_win32_libid is a shell function defined in ltmain.sh
5508 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5509 lt_cv_file_magic_cmd='func_win32_libid'
5513 # Base MSYS/MinGW do not provide the 'file' command needed by
5514 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5515 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5516 lt_cv_file_magic_cmd='$OBJDUMP -f'
5519 darwin* | rhapsody*)
5520 lt_cv_deplibs_check_method=pass_all
5523 freebsd* | kfreebsd*-gnu | dragonfly*)
5524 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5527 # Not sure whether the presence of OpenBSD here was a mistake.
5528 # Let's accept both of them until this is cleared up.
5529 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5530 lt_cv_file_magic_cmd=/usr/bin/file
5531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5535 lt_cv_deplibs_check_method=pass_all
5540 lt_cv_deplibs_check_method=pass_all
5543 hpux10.20* | hpux11*)
5544 lt_cv_file_magic_cmd=/usr/bin/file
5547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5548 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5552 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5555 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5556 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5561 irix5* | irix6* | nonstopux*)
5563 *-32|*"-32 ") libmagic=32-bit;;
5564 *-n32|*"-n32 ") libmagic=N32;;
5565 *-64|*"-64 ") libmagic=64-bit;;
5566 *) libmagic=never-match;;
5568 lt_cv_deplibs_check_method=pass_all
5571 # This must be Linux ELF.
5573 lt_cv_deplibs_check_method=pass_all
5577 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5586 lt_cv_file_magic_cmd=/usr/bin/file
5587 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5591 lt_cv_deplibs_check_method=unknown
5595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5602 osf3* | osf4* | osf5*)
5603 lt_cv_deplibs_check_method=pass_all
5607 lt_cv_deplibs_check_method=pass_all
5611 lt_cv_deplibs_check_method=pass_all
5614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5615 case $host_vendor in
5617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5618 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5621 lt_cv_deplibs_check_method=pass_all
5624 lt_cv_file_magic_cmd='/bin/file'
5625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5628 lt_cv_file_magic_cmd='/bin/file'
5629 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5630 lt_cv_file_magic_test_file=/lib/libc.so
5633 lt_cv_deplibs_check_method=pass_all
5638 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5639 lt_cv_deplibs_check_method=pass_all
5644 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5645 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5646 file_magic_cmd=$lt_cv_file_magic_cmd
5647 deplibs_check_method=$lt_cv_deplibs_check_method
5648 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5653 # If no C compiler was specified, use CC.
5656 # Allow CC to be a program name with arguments.
5660 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5661 if test "${enable_libtool_lock+set}" = set; then
5662 enableval="$enable_libtool_lock"
5665 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5667 # Some flags need to be propagated to the compiler or linker for good
5671 # Find out which ABI we are using.
5672 echo 'int i;' > conftest.$ac_ext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; then
5678 case `/usr/bin/file conftest.$ac_objext` in
5690 # Find out which ABI we are using.
5691 echo '#line 5691 "configure"' > conftest.$ac_ext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5693 (eval $ac_compile) 2>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; then
5697 if test "$lt_cv_prog_gnu_ld" = yes; then
5698 case `/usr/bin/file conftest.$ac_objext` in
5700 LD="${LD-ld} -melf32bsmip"
5703 LD="${LD-ld} -melf32bmipn32"
5706 LD="${LD-ld} -melf64bmip"
5710 case `/usr/bin/file conftest.$ac_objext` in
5726 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5727 # Find out which ABI we are using.
5728 echo 'int i;' > conftest.$ac_ext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; then
5734 case `/usr/bin/file conftest.o` in
5738 LD="${LD-ld} -m elf_i386"
5740 ppc64-*linux*|powerpc64-*linux*)
5741 LD="${LD-ld} -m elf32ppclinux"
5744 LD="${LD-ld} -m elf_s390"
5747 LD="${LD-ld} -m elf32_sparc"
5754 LD="${LD-ld} -m elf_x86_64"
5756 ppc*-*linux*|powerpc*-*linux*)
5757 LD="${LD-ld} -m elf64ppc"
5760 LD="${LD-ld} -m elf64_s390"
5763 LD="${LD-ld} -m elf64_sparc"
5773 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5774 SAVE_CFLAGS="$CFLAGS"
5775 CFLAGS="$CFLAGS -belf"
5776 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5777 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5778 if test "${lt_cv_cc_needs_belf+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5787 cat >conftest.$ac_ext <<_ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5802 rm -f conftest.$ac_objext conftest$ac_exeext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5804 (eval $ac_link) 2>conftest.er1
5806 grep -v '^ *+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_c_werror_flag"
5812 || test ! -s conftest.err'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest$ac_exeext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 lt_cv_cc_needs_belf=yes
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 lt_cv_cc_needs_belf=no
5831 rm -f conftest.err conftest.$ac_objext \
5832 conftest$ac_exeext conftest.$ac_ext
5834 ac_cpp='$CPP $CPPFLAGS'
5835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5841 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5842 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5843 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5844 CFLAGS="$SAVE_CFLAGS"
5847 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5848 if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5850 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5851 echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 if test -n "$DLLTOOL"; then
5857 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 DLLTOOL=$ac_cv_prog_DLLTOOL
5876 if test -n "$DLLTOOL"; then
5877 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5878 echo "${ECHO_T}$DLLTOOL" >&6
5880 echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5885 if test -z "$ac_cv_prog_DLLTOOL"; then
5886 ac_ct_DLLTOOL=$DLLTOOL
5887 # Extract the first word of "dlltool", so it can be a program name with args.
5888 set dummy dlltool; ac_word=$2
5889 echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 if test -n "$ac_ct_DLLTOOL"; then
5895 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5914 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5915 if test -n "$ac_ct_DLLTOOL"; then
5916 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5917 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5919 echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5923 DLLTOOL=$ac_ct_DLLTOOL
5925 DLLTOOL="$ac_cv_prog_DLLTOOL"
5928 if test -n "$ac_tool_prefix"; then
5929 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5930 set dummy ${ac_tool_prefix}as; ac_word=$2
5931 echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933 if test "${ac_cv_prog_AS+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 if test -n "$AS"; then
5937 ac_cv_prog_AS="$AS" # Let the user override the test.
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946 ac_cv_prog_AS="${ac_tool_prefix}as"
5947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 if test -n "$AS"; then
5957 echo "$as_me:$LINENO: result: $AS" >&5
5958 echo "${ECHO_T}$AS" >&6
5960 echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5965 if test -z "$ac_cv_prog_AS"; then
5967 # Extract the first word of "as", so it can be a program name with args.
5968 set dummy as; ac_word=$2
5969 echo "$as_me:$LINENO: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5971 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 if test -n "$ac_ct_AS"; then
5975 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984 ac_cv_prog_ac_ct_AS="as"
5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5994 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5995 if test -n "$ac_ct_AS"; then
5996 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5997 echo "${ECHO_T}$ac_ct_AS" >&6
5999 echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6
6008 if test -n "$ac_tool_prefix"; then
6009 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6011 echo "$as_me:$LINENO: checking for $ac_word" >&5
6012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6013 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 if test -n "$OBJDUMP"; then
6017 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 OBJDUMP=$ac_cv_prog_OBJDUMP
6036 if test -n "$OBJDUMP"; then
6037 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6038 echo "${ECHO_T}$OBJDUMP" >&6
6040 echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6
6045 if test -z "$ac_cv_prog_OBJDUMP"; then
6046 ac_ct_OBJDUMP=$OBJDUMP
6047 # Extract the first word of "objdump", so it can be a program name with args.
6048 set dummy objdump; ac_word=$2
6049 echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6051 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 if test -n "$ac_ct_OBJDUMP"; then
6055 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6074 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6075 if test -n "$ac_ct_OBJDUMP"; then
6076 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6077 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6079 echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6
6083 OBJDUMP=$ac_ct_OBJDUMP
6085 OBJDUMP="$ac_cv_prog_OBJDUMP"
6092 need_locks="$enable_libtool_lock"
6096 ac_cpp='$CPP $CPPFLAGS'
6097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6100 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6101 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6102 # On Suns, sometimes $CPP names a directory.
6103 if test -n "$CPP" && test -d "$CPP"; then
6106 if test -z "$CPP"; then
6107 if test "${ac_cv_prog_CPP+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 # Double quotes because CPP needs to be expanded
6111 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6114 for ac_c_preproc_warn_flag in '' yes
6116 # Use a header file that comes with gcc, so configuring glibc
6117 # with a fresh cross-compiler works.
6118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6119 # <limits.h> exists even on freestanding compilers.
6120 # On the NeXT, cc -E runs the code through the compiler's parser,
6121 # not just through cpp. "Syntax error" is here to catch this case.
6122 cat >conftest.$ac_ext <<_ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6129 # include <limits.h>
6131 # include <assert.h>
6135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6138 grep -v '^ *+' conftest.er1 >conftest.err
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } >/dev/null; then
6143 if test -s conftest.err; then
6144 ac_cpp_err=$ac_c_preproc_warn_flag
6145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6152 if test -z "$ac_cpp_err"; then
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 # Broken: fails on valid input.
6161 rm -f conftest.err conftest.$ac_ext
6163 # OK, works on sane cases. Now check whether non-existent headers
6164 # can be detected and how.
6165 cat >conftest.$ac_ext <<_ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 #include <ac_nonexistent.h>
6173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } >/dev/null; then
6181 if test -s conftest.err; then
6182 ac_cpp_err=$ac_c_preproc_warn_flag
6183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6190 if test -z "$ac_cpp_err"; then
6191 # Broken: success on invalid input.
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 # Passes both tests.
6201 rm -f conftest.err conftest.$ac_ext
6204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6205 rm -f conftest.err conftest.$ac_ext
6206 if $ac_preproc_ok; then
6218 echo "$as_me:$LINENO: result: $CPP" >&5
6219 echo "${ECHO_T}$CPP" >&6
6221 for ac_c_preproc_warn_flag in '' yes
6223 # Use a header file that comes with gcc, so configuring glibc
6224 # with a fresh cross-compiler works.
6225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226 # <limits.h> exists even on freestanding compilers.
6227 # On the NeXT, cc -E runs the code through the compiler's parser,
6228 # not just through cpp. "Syntax error" is here to catch this case.
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6236 # include <limits.h>
6238 # include <assert.h>
6242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6245 grep -v '^ *+' conftest.er1 >conftest.err
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } >/dev/null; then
6250 if test -s conftest.err; then
6251 ac_cpp_err=$ac_c_preproc_warn_flag
6252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6259 if test -z "$ac_cpp_err"; then
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 # Broken: fails on valid input.
6268 rm -f conftest.err conftest.$ac_ext
6270 # OK, works on sane cases. Now check whether non-existent headers
6271 # can be detected and how.
6272 cat >conftest.$ac_ext <<_ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 #include <ac_nonexistent.h>
6280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6283 grep -v '^ *+' conftest.er1 >conftest.err
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } >/dev/null; then
6288 if test -s conftest.err; then
6289 ac_cpp_err=$ac_c_preproc_warn_flag
6290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6297 if test -z "$ac_cpp_err"; then
6298 # Broken: success on invalid input.
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 # Passes both tests.
6308 rm -f conftest.err conftest.$ac_ext
6311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6312 rm -f conftest.err conftest.$ac_ext
6313 if $ac_preproc_ok; then
6316 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6317 See \`config.log' for more details." >&5
6318 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6319 See \`config.log' for more details." >&2;}
6320 { (exit 1); exit 1; }; }
6324 ac_cpp='$CPP $CPPFLAGS'
6325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6330 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6331 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6332 if test "${ac_cv_header_stdc+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6354 rm -f conftest.$ac_objext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>conftest.er1
6358 grep -v '^ *+' conftest.er1 >conftest.err
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_c_werror_flag"
6364 || test ! -s conftest.err'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; } &&
6370 { ac_try='test -s conftest.$ac_objext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_cv_header_stdc=yes
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 ac_cv_header_stdc=no
6383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6385 if test $ac_cv_header_stdc = yes; then
6386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6387 cat >conftest.$ac_ext <<_ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6397 $EGREP "memchr" >/dev/null 2>&1; then
6400 ac_cv_header_stdc=no
6406 if test $ac_cv_header_stdc = yes; then
6407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6408 cat >conftest.$ac_ext <<_ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6418 $EGREP "free" >/dev/null 2>&1; then
6421 ac_cv_header_stdc=no
6427 if test $ac_cv_header_stdc = yes; then
6428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6429 if test "$cross_compiling" = yes; then
6432 cat >conftest.$ac_ext <<_ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6439 #if ((' ' & 0x0FF) == 0x020)
6440 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6441 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6443 # define ISLOWER(c) \
6444 (('a' <= (c) && (c) <= 'i') \
6445 || ('j' <= (c) && (c) <= 'r') \
6446 || ('s' <= (c) && (c) <= 'z'))
6447 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6450 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6455 for (i = 0; i < 256; i++)
6456 if (XOR (islower (i), ISLOWER (i))
6457 || toupper (i) != TOUPPER (i))
6462 rm -f conftest$ac_exeext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6464 (eval $ac_link) 2>&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; }; then
6475 echo "$as_me: program exited with status $ac_status" >&5
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6480 ac_cv_header_stdc=no
6482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6487 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6488 if test $ac_cv_header_stdc = yes; then
6490 cat >>confdefs.h <<\_ACEOF
6491 #define STDC_HEADERS 1
6496 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6506 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6507 inttypes.h stdint.h unistd.h
6509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6510 echo "$as_me:$LINENO: checking for $ac_header" >&5
6511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 cat >conftest.$ac_ext <<_ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 $ac_includes_default
6523 #include <$ac_header>
6525 rm -f conftest.$ac_objext
6526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527 (eval $ac_compile) 2>conftest.er1
6529 grep -v '^ *+' conftest.er1 >conftest.err
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -z "$ac_c_werror_flag"
6535 || test ! -s conftest.err'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest.$ac_objext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 eval "$as_ac_Header=yes"
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 eval "$as_ac_Header=no"
6554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6559 cat >>confdefs.h <<_ACEOF
6560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6569 for ac_header in dlfcn.h
6571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6573 echo "$as_me:$LINENO: checking for $ac_header" >&5
6574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6581 # Is the header compilable?
6582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6584 cat >conftest.$ac_ext <<_ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 $ac_includes_default
6591 #include <$ac_header>
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>conftest.er1
6597 grep -v '^ *+' conftest.er1 >conftest.err
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest.$ac_objext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_header_compiler=yes
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6620 ac_header_compiler=no
6622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6624 echo "${ECHO_T}$ac_header_compiler" >&6
6626 # Is the header present?
6627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6629 cat >conftest.$ac_ext <<_ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 #include <$ac_header>
6637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6640 grep -v '^ *+' conftest.er1 >conftest.err
6642 cat conftest.err >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } >/dev/null; then
6645 if test -s conftest.err; then
6646 ac_cpp_err=$ac_c_preproc_warn_flag
6647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6654 if test -z "$ac_cpp_err"; then
6655 ac_header_preproc=yes
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6660 ac_header_preproc=no
6662 rm -f conftest.err conftest.$ac_ext
6663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6664 echo "${ECHO_T}$ac_header_preproc" >&6
6666 # So? What about this header?
6667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6673 ac_header_preproc=yes
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6690 ## ------------------------------------------ ##
6691 ## Report this to the AC_PACKAGE_NAME lists. ##
6692 ## ------------------------------------------ ##
6695 sed "s/^/$as_me: WARNING: /" >&2
6698 echo "$as_me:$LINENO: checking for $ac_header" >&5
6699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 eval "$as_ac_Header=\$ac_header_preproc"
6705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6710 cat >>confdefs.h <<_ACEOF
6711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6719 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6721 # find the maximum length of command line arguments
6722 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6723 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6724 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 # On DJGPP, this test can blow up pretty badly due to problems in libc
6733 # (any single argument exceeding 2000 bytes causes a buffer overrun
6734 # during glob expansion). Even if it were fixed, the result of this
6735 # check would be larger than it should be.
6736 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6740 # Under GNU Hurd, this test is not required because there is
6741 # no limit to the length of command line arguments.
6742 # Libtool will interpret -1 as no limit whatsoever
6743 lt_cv_sys_max_cmd_len=-1;
6747 # On Win9x/ME, this test blows up -- it succeeds, but takes
6748 # about 5 minutes as the teststring grows exponentially.
6749 # Worse, since 9x/ME are not pre-emptively multitasking,
6750 # you end up with a "frozen" computer, even though with patience
6751 # the test eventually succeeds (with a max line length of 256k).
6752 # Instead, let's just punt: use the minimum linelength reported by
6753 # all of the supported platforms: 8192 (on NT/2K/XP).
6754 lt_cv_sys_max_cmd_len=8192;
6758 # On AmigaOS with pdksh, this test takes hours, literally.
6759 # So we just punt and use a minimum line length of 8192.
6760 lt_cv_sys_max_cmd_len=8192;
6763 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6764 # This has been around since 386BSD, at least. Likely further.
6765 if test -x /sbin/sysctl; then
6766 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6767 elif test -x /usr/sbin/sysctl; then
6768 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6770 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6772 # And add a safety zone
6773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6777 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6778 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6779 # nice to cause kernel panics so lets avoid the loop below.
6780 # First set a reasonable default.
6781 lt_cv_sys_max_cmd_len=16384
6783 if test -x /sbin/sysconfig; then
6784 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6785 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6790 # If test is not a shell built-in, we'll probably end up computing a
6791 # maximum length that is only half of the actual maximum length, but
6793 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6794 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6795 = "XX$teststring") >/dev/null 2>&1 &&
6796 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6797 lt_cv_sys_max_cmd_len=$new_result &&
6798 test $i != 17 # 1/2 MB should be enough
6801 teststring=$teststring$teststring
6804 # Add a significant safety factor because C++ compilers can tack on massive
6805 # amounts of additional arguments before passing them to the linker.
6806 # It appears as though 1/2 is a usable value.
6807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6813 if test -n $lt_cv_sys_max_cmd_len ; then
6814 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6815 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6817 echo "$as_me:$LINENO: result: none" >&5
6818 echo "${ECHO_T}none" >&6
6824 # Check for command to grab the raw symbol name followed by C symbol from nm.
6825 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6826 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6827 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 # These are sane defaults that work on at least a few old systems.
6832 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6834 # Character class describing NM global symbol codes.
6835 symcode='[BCDEGRST]'
6837 # Regexp to match symbols that can be accessed directly from C.
6838 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6840 # Transform an extracted symbol line into a proper C declaration
6841 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6843 # Transform an extracted symbol line into symbol name and symbol address
6844 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6846 # Define system-specific variables.
6851 cygwin* | mingw* | pw32*)
6852 symcode='[ABCDGISTW]'
6854 hpux*) # Its linker distinguishes data from code symbols
6855 if test "$host_cpu" = ia64; then
6856 symcode='[ABCDEGRST]'
6858 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6859 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6862 if test "$host_cpu" = ia64; then
6863 symcode='[ABCDGIRSTW]'
6864 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6865 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6869 symcode='[BCDEGRST]'
6872 symcode='[BCDEGQRST]'
6882 # Handle CRLF in mingw tool chain
6886 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6890 # If we're using GNU nm, then use its standard symbol codes.
6891 case `$NM -V 2>&1` in
6892 *GNU* | *'with BFD'*)
6893 symcode='[ABCDGIRSTW]' ;;
6896 # Try without a prefix undercore, then with it.
6897 for ac_symprfx in "" "_"; do
6899 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6900 symxfrm="\\1 $ac_symprfx\\2 \\2"
6902 # Write the raw and C identifiers.
6903 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6905 # Check to see that the pipe works correctly.
6909 cat > conftest.$ac_ext <<EOF
6914 void nm_test_func(){}
6918 int main(){nm_test_var='a';nm_test_func();return(0);}
6921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922 (eval $ac_compile) 2>&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; then
6926 # Now try to grab the symbols.
6928 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6929 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } && test -s "$nlist"; then
6933 # Try sorting and uniquifying the output.
6934 if sort "$nlist" | uniq > "$nlist"T; then
6935 mv -f "$nlist"T "$nlist"
6940 # Make sure that we snagged all the symbols we need.
6941 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6942 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6943 cat <<EOF > conftest.$ac_ext
6949 # Now generate the symbol file.
6950 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6952 cat <<EOF >> conftest.$ac_ext
6953 #if defined (__STDC__) && __STDC__
6954 # define lt_ptr_t void *
6956 # define lt_ptr_t char *
6960 /* The mapping between symbol names and symbols. */
6965 lt_preloaded_symbols[] =
6968 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6969 cat <<\EOF >> conftest.$ac_ext
6977 # Now try linking the two files.
6978 mv conftest.$ac_objext conftstm.$ac_objext
6979 lt_save_LIBS="$LIBS"
6980 lt_save_CFLAGS="$CFLAGS"
6981 LIBS="conftstm.$ac_objext"
6982 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6984 (eval $ac_link) 2>&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6990 LIBS="$lt_save_LIBS"
6991 CFLAGS="$lt_save_CFLAGS"
6993 echo "cannot find nm_test_func in $nlist" >&5
6996 echo "cannot find nm_test_var in $nlist" >&5
6999 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7002 echo "$progname: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7005 rm -f conftest* conftst*
7007 # Do not use the global_symbol_pipe unless it works.
7008 if test "$pipe_works" = yes; then
7011 lt_cv_sys_global_symbol_pipe=
7017 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7018 lt_cv_sys_global_symbol_to_cdecl=
7020 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7021 echo "$as_me:$LINENO: result: failed" >&5
7022 echo "${ECHO_T}failed" >&6
7024 echo "$as_me:$LINENO: result: ok" >&5
7025 echo "${ECHO_T}ok" >&6
7028 echo "$as_me:$LINENO: checking for objdir" >&5
7029 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7030 if test "${lt_cv_objdir+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 rm -f .libs 2>/dev/null
7034 mkdir .libs 2>/dev/null
7035 if test -d .libs; then
7038 # MS-DOS does not allow filenames that begin with a dot.
7041 rmdir .libs 2>/dev/null
7043 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7044 echo "${ECHO_T}$lt_cv_objdir" >&6
7045 objdir=$lt_cv_objdir
7053 # AIX sometimes has problems with the GCC collect2 program. For some
7054 # reason, if we set the COLLECT_NAMES environment variable, the problems
7055 # vanish in a puff of smoke.
7056 if test "X${COLLECT_NAMES+set}" != Xset; then
7058 export COLLECT_NAMES
7063 # Sed substitution that helps us do robust quoting. It backslashifies
7064 # metacharacters that are still active within double-quoted strings.
7065 Xsed='sed -e 1s/^X//'
7066 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7068 # Same as above, but do not quote variable references.
7069 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7071 # Sed substitution to delay expansion of an escaped shell variable in a
7072 # double_quote_subst'ed string.
7073 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7075 # Sed substitution to avoid accidental globbing in evaled expressions
7076 no_glob_subst='s/\*/\\\*/g'
7082 default_ofile=libtool
7083 can_build_shared=yes
7085 # All known linkers require a `.a' archive for static linking (except MSVC,
7086 # which needs '.lib').
7088 ltmain="$ac_aux_dir/ltmain.sh"
7089 ofile="$default_ofile"
7090 with_gnu_ld="$lt_cv_prog_gnu_ld"
7092 if test -n "$ac_tool_prefix"; then
7093 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7094 set dummy ${ac_tool_prefix}ar; ac_word=$2
7095 echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7097 if test "${ac_cv_prog_AR+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 if test -n "$AR"; then
7101 ac_cv_prog_AR="$AR" # Let the user override the test.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_AR="${ac_tool_prefix}ar"
7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 if test -n "$AR"; then
7121 echo "$as_me:$LINENO: result: $AR" >&5
7122 echo "${ECHO_T}$AR" >&6
7124 echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6
7129 if test -z "$ac_cv_prog_AR"; then
7131 # Extract the first word of "ar", so it can be a program name with args.
7132 set dummy ar; ac_word=$2
7133 echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7135 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 if test -n "$ac_ct_AR"; then
7139 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_ac_ct_AR="ar"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7158 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7159 if test -n "$ac_ct_AR"; then
7160 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7161 echo "${ECHO_T}$ac_ct_AR" >&6
7163 echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7175 echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7177 if test "${ac_cv_prog_RANLIB+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 if test -n "$RANLIB"; then
7181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 RANLIB=$ac_cv_prog_RANLIB
7200 if test -n "$RANLIB"; then
7201 echo "$as_me:$LINENO: result: $RANLIB" >&5
7202 echo "${ECHO_T}$RANLIB" >&6
7204 echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6
7209 if test -z "$ac_cv_prog_RANLIB"; then
7210 ac_ct_RANLIB=$RANLIB
7211 # Extract the first word of "ranlib", so it can be a program name with args.
7212 set dummy ranlib; ac_word=$2
7213 echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 if test -n "$ac_ct_RANLIB"; then
7219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228 ac_cv_prog_ac_ct_RANLIB="ranlib"
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7239 if test -n "$ac_ct_RANLIB"; then
7240 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7241 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7243 echo "$as_me:$LINENO: result: no" >&5
7244 echo "${ECHO_T}no" >&6
7247 RANLIB=$ac_ct_RANLIB
7249 RANLIB="$ac_cv_prog_RANLIB"
7252 if test -n "$ac_tool_prefix"; then
7253 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7254 set dummy ${ac_tool_prefix}strip; ac_word=$2
7255 echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7257 if test "${ac_cv_prog_STRIP+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 if test -n "$STRIP"; then
7261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 STRIP=$ac_cv_prog_STRIP
7280 if test -n "$STRIP"; then
7281 echo "$as_me:$LINENO: result: $STRIP" >&5
7282 echo "${ECHO_T}$STRIP" >&6
7284 echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6
7289 if test -z "$ac_cv_prog_STRIP"; then
7291 # Extract the first word of "strip", so it can be a program name with args.
7292 set dummy strip; ac_word=$2
7293 echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7295 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 if test -n "$ac_ct_STRIP"; then
7299 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_ac_ct_STRIP="strip"
7309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7318 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7319 if test -n "$ac_ct_STRIP"; then
7320 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7321 echo "${ECHO_T}$ac_ct_STRIP" >&6
7323 echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6
7329 STRIP="$ac_cv_prog_STRIP"
7334 old_CFLAGS="$CFLAGS"
7336 # Set sane defaults for various variables
7337 test -z "$AR" && AR=ar
7338 test -z "$AR_FLAGS" && AR_FLAGS=cru
7339 test -z "$AS" && AS=as
7340 test -z "$CC" && CC=cc
7341 test -z "$LTCC" && LTCC=$CC
7342 test -z "$DLLTOOL" && DLLTOOL=dlltool
7343 test -z "$LD" && LD=ld
7344 test -z "$LN_S" && LN_S="ln -s"
7345 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7346 test -z "$NM" && NM=nm
7347 test -z "$SED" && SED=sed
7348 test -z "$OBJDUMP" && OBJDUMP=objdump
7349 test -z "$RANLIB" && RANLIB=:
7350 test -z "$STRIP" && STRIP=:
7351 test -z "$ac_objext" && ac_objext=o
7353 # Determine commands to create old-style static archives.
7354 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7355 old_postinstall_cmds='chmod 644 $oldlib'
7356 old_postuninstall_cmds=
7358 if test -n "$RANLIB"; then
7361 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7364 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7367 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7370 for cc_temp in $compiler""; do
7372 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7373 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7378 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7381 # Only perform the check for file, if the check method requires it
7382 case $deplibs_check_method in
7384 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7385 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7386 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7387 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7395 lt_save_MAGIC_CMD="$MAGIC_CMD"
7396 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7397 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7398 for ac_dir in $ac_dummy; do
7400 test -z "$ac_dir" && ac_dir=.
7401 if test -f $ac_dir/${ac_tool_prefix}file; then
7402 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7403 if test -n "$file_magic_test_file"; then
7404 case $deplibs_check_method in
7406 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7407 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7408 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7409 $EGREP "$file_magic_regex" > /dev/null; then
7414 *** Warning: the command libtool uses to detect shared libraries,
7415 *** $file_magic_cmd, produces output that libtool cannot recognize.
7416 *** The result is that libtool may fail to recognize shared libraries
7417 *** as such. This will affect the creation of libtool libraries that
7418 *** depend on shared libraries, but programs linked with such libtool
7419 *** libraries will work regardless of this problem. Nevertheless, you
7420 *** may want to report the problem to your system manager and/or to
7421 *** bug-libtool@gnu.org
7431 MAGIC_CMD="$lt_save_MAGIC_CMD"
7436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7437 if test -n "$MAGIC_CMD"; then
7438 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7439 echo "${ECHO_T}$MAGIC_CMD" >&6
7441 echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6
7445 if test -z "$lt_cv_path_MAGIC_CMD"; then
7446 if test -n "$ac_tool_prefix"; then
7447 echo "$as_me:$LINENO: checking for file" >&5
7448 echo $ECHO_N "checking for file... $ECHO_C" >&6
7449 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7457 lt_save_MAGIC_CMD="$MAGIC_CMD"
7458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7459 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7460 for ac_dir in $ac_dummy; do
7462 test -z "$ac_dir" && ac_dir=.
7463 if test -f $ac_dir/file; then
7464 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7465 if test -n "$file_magic_test_file"; then
7466 case $deplibs_check_method in
7468 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7470 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7471 $EGREP "$file_magic_regex" > /dev/null; then
7476 *** Warning: the command libtool uses to detect shared libraries,
7477 *** $file_magic_cmd, produces output that libtool cannot recognize.
7478 *** The result is that libtool may fail to recognize shared libraries
7479 *** as such. This will affect the creation of libtool libraries that
7480 *** depend on shared libraries, but programs linked with such libtool
7481 *** libraries will work regardless of this problem. Nevertheless, you
7482 *** may want to report the problem to your system manager and/or to
7483 *** bug-libtool@gnu.org
7493 MAGIC_CMD="$lt_save_MAGIC_CMD"
7498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7499 if test -n "$MAGIC_CMD"; then
7500 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7501 echo "${ECHO_T}$MAGIC_CMD" >&6
7503 echo "$as_me:$LINENO: result: no" >&5
7504 echo "${ECHO_T}no" >&6
7517 enable_win32_dll=yes
7519 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7520 if test "${enable_libtool_lock+set}" = set; then
7521 enableval="$enable_libtool_lock"
7524 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7527 # Check whether --with-pic or --without-pic was given.
7528 if test "${with_pic+set}" = set; then
7534 test -z "$pic_mode" && pic_mode=default
7536 # Use C for the default configuration in the libtool script
7540 ac_cpp='$CPP $CPPFLAGS'
7541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7546 # Source file extension for C test sources.
7549 # Object file extension for compiled C test sources.
7553 # Code to be used in simple compile tests
7554 lt_simple_compile_test_code="int some_variable = 0;\n"
7556 # Code to be used in simple link tests
7557 lt_simple_link_test_code='int main(){return(0);}\n'
7560 # If no C compiler was specified, use CC.
7563 # Allow CC to be a program name with arguments.
7567 # save warnings/boilerplate of simple test code
7568 ac_outfile=conftest.$ac_objext
7569 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7570 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7571 _lt_compiler_boilerplate=`cat conftest.err`
7574 ac_outfile=conftest.$ac_objext
7575 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7576 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7577 _lt_linker_boilerplate=`cat conftest.err`
7582 # Check for any special shared library compilation flags.
7585 if test "$GCC" = no; then
7588 lt_prog_cc_shlib='-belf'
7592 if test -n "$lt_prog_cc_shlib"; then
7593 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7594 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7595 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7597 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7598 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7599 lt_cv_prog_cc_can_build_shared=no
7605 # Check to make sure the static flag actually works.
7607 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7608 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7609 if test "${lt_prog_compiler_static_works+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 lt_prog_compiler_static_works=no
7613 save_LDFLAGS="$LDFLAGS"
7614 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7615 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7616 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7617 # The linker can only warn and ignore the option if not recognized
7618 # So say no if there are warnings
7619 if test -s conftest.err; then
7620 # Append any errors to the config.log.
7621 cat conftest.err 1>&5
7622 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7623 $SED '/^$/d' conftest.err >conftest.er2
7624 if diff conftest.exp conftest.er2 >/dev/null; then
7625 lt_prog_compiler_static_works=yes
7628 lt_prog_compiler_static_works=yes
7632 LDFLAGS="$save_LDFLAGS"
7635 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7636 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7638 if test x"$lt_prog_compiler_static_works" = xyes; then
7641 lt_prog_compiler_static=
7647 lt_prog_compiler_no_builtin_flag=
7649 if test "$GCC" = yes; then
7650 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7653 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7654 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7655 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 lt_cv_prog_compiler_rtti_exceptions=no
7659 ac_outfile=conftest.$ac_objext
7660 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7661 lt_compiler_flag="-fno-rtti -fno-exceptions"
7662 # Insert the option either (1) after the last *FLAGS variable, or
7663 # (2) before a word containing "conftest.", or (3) at the end.
7664 # Note that $ac_compile itself does not contain backslashes and begins
7665 # with a dollar sign (not a hyphen), so the echo should work correctly.
7666 # The option is referenced via a variable to avoid confusing sed.
7667 lt_compile=`echo "$ac_compile" | $SED \
7668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7670 -e 's:$: $lt_compiler_flag:'`
7671 (eval echo "\"\$as_me:7671: $lt_compile\"" >&5)
7672 (eval "$lt_compile" 2>conftest.err)
7674 cat conftest.err >&5
7675 echo "$as_me:7675: \$? = $ac_status" >&5
7676 if (exit $ac_status) && test -s "$ac_outfile"; then
7677 # The compiler can only warn and ignore the option if not recognized
7678 # So say no if there are warnings other than the usual output.
7679 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7680 $SED '/^$/d' conftest.err >conftest.er2
7681 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7682 lt_cv_prog_compiler_rtti_exceptions=yes
7688 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7689 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7691 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7692 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7699 lt_prog_compiler_wl=
7700 lt_prog_compiler_pic=
7701 lt_prog_compiler_static=
7703 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7704 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7706 if test "$GCC" = yes; then
7707 lt_prog_compiler_wl='-Wl,'
7708 lt_prog_compiler_static='-static'
7712 # All AIX code is PIC.
7713 if test "$host_cpu" = ia64; then
7714 # AIX 5 now supports IA64 processor
7715 lt_prog_compiler_static='-Bstatic'
7720 # FIXME: we need at least 68020 code to build shared libraries, but
7721 # adding the `-m68020' flag to GCC prevents building anything better,
7723 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7726 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7727 # PIC is the default for these OSes.
7730 mingw* | pw32* | os2*)
7731 # This hack is so that the source file can tell whether it is being
7732 # built for inclusion in a dll (and should export symbols for example).
7733 lt_prog_compiler_pic='-DDLL_EXPORT'
7736 darwin* | rhapsody*)
7737 # PIC is the default on this platform
7738 # Common symbols not allowed in MH_DYLIB files
7739 lt_prog_compiler_pic='-fno-common'
7743 # Just because we use GCC doesn't mean we suddenly get shared libraries
7744 # on systems that don't support them.
7745 lt_prog_compiler_can_build_shared=no
7750 if test -d /usr/nec; then
7751 lt_prog_compiler_pic=-Kconform_pic
7756 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7763 lt_prog_compiler_pic='-fPIC'
7769 lt_prog_compiler_pic='-fPIC'
7773 # PORTME Check for flag to pass linker flags through the system compiler.
7776 lt_prog_compiler_wl='-Wl,'
7777 if test "$host_cpu" = ia64; then
7778 # AIX 5 now supports IA64 processor
7779 lt_prog_compiler_static='-Bstatic'
7781 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7785 # PIC is the default on this platform
7786 # Common symbols not allowed in MH_DYLIB files
7787 case $cc_basename in
7789 lt_prog_compiler_pic='-qnocommon'
7790 lt_prog_compiler_wl='-Wl,'
7795 mingw* | pw32* | os2*)
7796 # This hack is so that the source file can tell whether it is being
7797 # built for inclusion in a dll (and should export symbols for example).
7798 lt_prog_compiler_pic='-DDLL_EXPORT'
7801 hpux9* | hpux10* | hpux11*)
7802 lt_prog_compiler_wl='-Wl,'
7803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7810 lt_prog_compiler_pic='+Z'
7813 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7814 lt_prog_compiler_static='${wl}-a ${wl}archive'
7817 irix5* | irix6* | nonstopux*)
7818 lt_prog_compiler_wl='-Wl,'
7819 # PIC (with -KPIC) is the default.
7820 lt_prog_compiler_static='-non_shared'
7824 lt_prog_compiler_pic='-KPIC'
7825 lt_prog_compiler_static='-Bstatic'
7829 case $cc_basename in
7831 lt_prog_compiler_wl='-Wl,'
7832 lt_prog_compiler_pic='-KPIC'
7833 lt_prog_compiler_static='-static'
7835 pgcc* | pgf77* | pgf90* | pgf95*)
7836 # Portland Group compilers (*not* the Pentium gcc compiler,
7837 # which looks to be a dead project)
7838 lt_prog_compiler_wl='-Wl,'
7839 lt_prog_compiler_pic='-fpic'
7840 lt_prog_compiler_static='-Bstatic'
7843 lt_prog_compiler_wl='-Wl,'
7844 # All Alpha code is PIC.
7845 lt_prog_compiler_static='-non_shared'
7850 osf3* | osf4* | osf5*)
7851 lt_prog_compiler_wl='-Wl,'
7852 # All OSF/1 code is PIC.
7853 lt_prog_compiler_static='-non_shared'
7857 lt_prog_compiler_pic='-Kpic'
7858 lt_prog_compiler_static='-dn'
7862 lt_prog_compiler_pic='-KPIC'
7863 lt_prog_compiler_static='-Bstatic'
7864 case $cc_basename in
7866 lt_prog_compiler_wl='-Qoption ld ';;
7868 lt_prog_compiler_wl='-Wl,';;
7873 lt_prog_compiler_wl='-Qoption ld '
7874 lt_prog_compiler_pic='-PIC'
7875 lt_prog_compiler_static='-Bstatic'
7878 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7879 lt_prog_compiler_wl='-Wl,'
7880 lt_prog_compiler_pic='-KPIC'
7881 lt_prog_compiler_static='-Bstatic'
7885 if test -d /usr/nec ;then
7886 lt_prog_compiler_pic='-Kconform_pic'
7887 lt_prog_compiler_static='-Bstatic'
7892 lt_prog_compiler_wl='-Wl,'
7893 lt_prog_compiler_can_build_shared=no
7897 lt_prog_compiler_pic='-pic'
7898 lt_prog_compiler_static='-Bstatic'
7902 lt_prog_compiler_can_build_shared=no
7907 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7908 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7911 # Check to make sure the PIC flag actually works.
7913 if test -n "$lt_prog_compiler_pic"; then
7915 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7916 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7917 if test "${lt_prog_compiler_pic_works+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 lt_prog_compiler_pic_works=no
7921 ac_outfile=conftest.$ac_objext
7922 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7923 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7924 # Insert the option either (1) after the last *FLAGS variable, or
7925 # (2) before a word containing "conftest.", or (3) at the end.
7926 # Note that $ac_compile itself does not contain backslashes and begins
7927 # with a dollar sign (not a hyphen), so the echo should work correctly.
7928 # The option is referenced via a variable to avoid confusing sed.
7929 lt_compile=`echo "$ac_compile" | $SED \
7930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7932 -e 's:$: $lt_compiler_flag:'`
7933 (eval echo "\"\$as_me:7933: $lt_compile\"" >&5)
7934 (eval "$lt_compile" 2>conftest.err)
7936 cat conftest.err >&5
7937 echo "$as_me:7937: \$? = $ac_status" >&5
7938 if (exit $ac_status) && test -s "$ac_outfile"; then
7939 # The compiler can only warn and ignore the option if not recognized
7940 # So say no if there are warnings other than the usual output.
7941 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7942 $SED '/^$/d' conftest.err >conftest.er2
7943 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7944 lt_prog_compiler_pic_works=yes
7950 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7951 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7953 if test x"$lt_prog_compiler_pic_works" = xyes; then
7954 case $lt_prog_compiler_pic in
7956 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7959 lt_prog_compiler_pic=
7960 lt_prog_compiler_can_build_shared=no
7965 # For platforms which do not support PIC, -DPIC is meaningless:
7967 lt_prog_compiler_pic=
7970 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7974 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7975 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7976 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 lt_cv_prog_compiler_c_o=no
7980 $rm -r conftest 2>/dev/null
7984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7986 lt_compiler_flag="-o out/conftest2.$ac_objext"
7987 # Insert the option either (1) after the last *FLAGS variable, or
7988 # (2) before a word containing "conftest.", or (3) at the end.
7989 # Note that $ac_compile itself does not contain backslashes and begins
7990 # with a dollar sign (not a hyphen), so the echo should work correctly.
7991 lt_compile=`echo "$ac_compile" | $SED \
7992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7994 -e 's:$: $lt_compiler_flag:'`
7995 (eval echo "\"\$as_me:7995: $lt_compile\"" >&5)
7996 (eval "$lt_compile" 2>out/conftest.err)
7998 cat out/conftest.err >&5
7999 echo "$as_me:7999: \$? = $ac_status" >&5
8000 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8002 # The compiler can only warn and ignore the option if not recognized
8003 # So say no if there are warnings
8004 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8005 $SED '/^$/d' out/conftest.err >out/conftest.er2
8006 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8007 lt_cv_prog_compiler_c_o=yes
8012 # SGI C++ compiler will create directory out/ii_files/ for
8013 # template instantiation
8014 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8015 $rm out/* && rmdir out
8021 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8022 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8025 hard_links="nottested"
8026 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8027 # do not overwrite the value of need_locks provided by the user
8028 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8029 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8034 ln conftest.a conftest.b 2>&5 || hard_links=no
8035 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8036 echo "$as_me:$LINENO: result: $hard_links" >&5
8037 echo "${ECHO_T}$hard_links" >&6
8038 if test "$hard_links" = no; then
8039 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8040 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8047 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8048 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8051 allow_undefined_flag=
8052 enable_shared_with_static_runtimes=no
8054 archive_expsym_cmds=
8055 old_archive_From_new_cmds=
8056 old_archive_from_expsyms_cmds=
8057 export_dynamic_flag_spec=
8058 whole_archive_flag_spec=
8059 thread_safe_flag_spec=
8060 hardcode_libdir_flag_spec=
8061 hardcode_libdir_flag_spec_ld=
8062 hardcode_libdir_separator=
8065 hardcode_shlibpath_var=unsupported
8066 link_all_deplibs=unknown
8067 hardcode_automatic=no
8070 always_export_symbols=no
8071 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8072 # include_expsyms should be a list of space-separated symbols to be *always*
8073 # included in the symbol list
8075 # exclude_expsyms can be an extended regexp of symbols to exclude
8076 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8077 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8078 # as well as any symbol that contains `d'.
8079 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8080 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8081 # platforms (ab)use it in PIC code, but their linkers get confused if
8082 # the symbol is explicitly referenced. Since portable code cannot
8083 # rely on this symbol name, it's probably fine to never include it in
8084 # preloaded symbol tables.
8085 extract_expsyms_cmds=
8086 # Just being paranoid about ensuring that cc_basename is set.
8087 for cc_temp in $compiler""; do
8089 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8090 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8095 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8098 cygwin* | mingw* | pw32*)
8099 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8100 # When not using gcc, we currently assume that we are using
8101 # Microsoft Visual C++.
8102 if test "$GCC" != yes; then
8112 if test "$with_gnu_ld" = yes; then
8113 # If archive_cmds runs LD, not CC, wlarc should be empty
8116 # Set some defaults for GNU ld with shared library support. These
8117 # are reset later if shared libraries are not supported. Putting them
8118 # here allows them to be overridden if necessary.
8119 runpath_var=LD_RUN_PATH
8120 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8121 export_dynamic_flag_spec='${wl}--export-dynamic'
8122 # ancient GNU ld didn't support --whole-archive et. al.
8123 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8124 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8126 whole_archive_flag_spec=
8128 supports_anon_versioning=no
8129 case `$LD -v 2>/dev/null` in
8130 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8131 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8132 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8133 *\ 2.11.*) ;; # other 2.11 versions
8134 *) supports_anon_versioning=yes ;;
8137 # See if GNU ld supports shared libraries.
8139 aix3* | aix4* | aix5*)
8140 # On AIX/PPC, the GNU linker is very broken
8141 if test "$host_cpu" != ia64; then
8145 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8146 *** to be unable to reliably create shared libraries on AIX.
8147 *** Therefore, libtool is disabling shared libraries support. If you
8148 *** really care for shared libraries, you may want to modify your PATH
8149 *** so that a non-GNU linker is found, and then restart.
8156 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8157 hardcode_libdir_flag_spec='-L$libdir'
8158 hardcode_minus_L=yes
8160 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8161 # that the semantics of dynamic libraries on AmigaOS, at least up
8162 # to version 4, is to share data among multiple programs linked
8163 # with the same dynamic library. Since this doesn't match the
8164 # behavior of shared libraries on other platforms, we can't use
8170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8171 allow_undefined_flag=unsupported
8172 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8173 # support --undefined. This deserves some investigation. FIXME
8174 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8180 cygwin* | mingw* | pw32*)
8181 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8182 # as there is no search path for DLLs.
8183 hardcode_libdir_flag_spec='-L$libdir'
8184 allow_undefined_flag=unsupported
8185 always_export_symbols=no
8186 enable_shared_with_static_runtimes=yes
8187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8189 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8191 # If the export-symbols file already is a .def file (1st line
8192 # is EXPORTS), use it as is; otherwise, prepend...
8193 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8194 cp $export_symbols $output_objdir/$soname.def;
8196 echo EXPORTS > $output_objdir/$soname.def;
8197 cat $export_symbols >> $output_objdir/$soname.def;
8199 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8206 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8208 case $cc_basename,$host_cpu in
8209 pgcc*) # Portland Group C compiler
8210 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8211 tmp_addflag=' $pic_flag'
8213 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8214 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8215 tmp_addflag=' $pic_flag -Mnomain' ;;
8216 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8217 tmp_addflag=' -i_dynamic' ;;
8218 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8219 tmp_addflag=' -i_dynamic -nofor_main' ;;
8220 ifc* | ifort*) # Intel Fortran compiler
8221 tmp_addflag=' -nofor_main' ;;
8223 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8225 if test $supports_anon_versioning = yes; then
8226 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8228 $echo "local: *; };" >> $output_objdir/$libname.ver~
8229 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8238 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8242 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8247 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8252 *** create shared libraries on Solaris systems. Therefore, libtool
8253 *** is disabling shared libraries support. We urge you to upgrade GNU
8254 *** binutils to release 2.9.1 or newer. Another option is to modify
8255 *** your PATH or compiler configuration so that the native linker is
8256 *** used, and then restart.
8259 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8268 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8271 hardcode_shlibpath_var=no
8275 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8284 if test "$ld_shlibs" = no; then
8286 hardcode_libdir_flag_spec=
8287 export_dynamic_flag_spec=
8288 whole_archive_flag_spec=
8291 # PORTME fill in a description of your system's linker (not GNU ld)
8294 allow_undefined_flag=unsupported
8295 always_export_symbols=yes
8296 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8297 # Note: this linker hardcodes the directories in LIBPATH if there
8298 # are no directories specified by -L.
8299 hardcode_minus_L=yes
8300 if test "$GCC" = yes && test -z "$link_static_flag"; then
8301 # Neither direct hardcoding nor static linking is supported with a
8303 hardcode_direct=unsupported
8308 if test "$host_cpu" = ia64; then
8309 # On IA64, the linker does run time linking by default, so we don't
8310 # have to do anything special.
8311 aix_use_runtimelinking=no
8312 exp_sym_flag='-Bexport'
8315 # If we're using GNU nm, then we don't want the "-C" option.
8316 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8317 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8318 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8320 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8322 aix_use_runtimelinking=no
8324 # Test if we are trying to use run time linking or normal
8325 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8326 # need to do runtime linking.
8327 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8328 for ld_flag in $LDFLAGS; do
8329 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8330 aix_use_runtimelinking=yes
8336 exp_sym_flag='-bexport'
8337 no_entry_flag='-bnoentry'
8340 # When large executables or shared objects are built, AIX ld can
8341 # have problems creating the table of contents. If linking a library
8342 # or program results in "error TOC overflow" add -mminimal-toc to
8343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8348 hardcode_libdir_separator=':'
8349 link_all_deplibs=yes
8351 if test "$GCC" = yes; then
8352 case $host_os in aix4.[012]|aix4.[012].*)
8353 # We only want to do this on AIX 4.2 and lower, the check
8354 # below for broken collect2 doesn't work under 4.3+
8355 collect2name=`${CC} -print-prog-name=collect2`
8356 if test -f "$collect2name" && \
8357 strings "$collect2name" | grep resolve_lib_name >/dev/null
8359 # We have reworked collect2
8362 # We have old collect2
8363 hardcode_direct=unsupported
8364 # It fails to find uninstalled libraries when the uninstalled
8365 # path is not listed in the libpath. Setting hardcode_minus_L
8366 # to unsupported forces relinking
8367 hardcode_minus_L=yes
8368 hardcode_libdir_flag_spec='-L$libdir'
8369 hardcode_libdir_separator=
8372 shared_flag='-shared'
8373 if test "$aix_use_runtimelinking" = yes; then
8374 shared_flag="$shared_flag "'${wl}-G'
8378 if test "$host_cpu" = ia64; then
8379 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8380 # chokes on -Wl,-G. The following line is correct:
8383 if test "$aix_use_runtimelinking" = yes; then
8384 shared_flag='${wl}-G'
8386 shared_flag='${wl}-bM:SRE'
8391 # It seems that -bexpall does not export symbols beginning with
8392 # underscore (_), so it is better to generate a list of symbols to export.
8393 always_export_symbols=yes
8394 if test "$aix_use_runtimelinking" = yes; then
8395 # Warning - without using the other runtime loading flags (-brtl),
8396 # -berok will link without error, but may produce a broken library.
8397 allow_undefined_flag='-berok'
8398 # Determine the default libpath from the value encoded in an empty executable.
8399 cat >conftest.$ac_ext <<_ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8414 rm -f conftest.$ac_objext conftest$ac_exeext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416 (eval $ac_link) 2>conftest.er1
8418 grep -v '^ *+' conftest.er1 >conftest.err
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8439 # Check for a 64-bit object if we didn't find anything.
8440 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8447 rm -f conftest.err conftest.$ac_objext \
8448 conftest$ac_exeext conftest.$ac_ext
8449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8451 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8452 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8454 if test "$host_cpu" = ia64; then
8455 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8456 allow_undefined_flag="-z nodefs"
8457 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8459 # Determine the default libpath from the value encoded in an empty executable.
8460 cat >conftest.$ac_ext <<_ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8475 rm -f conftest.$ac_objext conftest$ac_exeext
8476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8477 (eval $ac_link) 2>conftest.er1
8479 grep -v '^ *+' conftest.er1 >conftest.err
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
8484 { ac_try='test -z "$ac_c_werror_flag"
8485 || test ! -s conftest.err'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; } &&
8491 { ac_try='test -s conftest$ac_exeext'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; }; then
8498 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8500 # Check for a 64-bit object if we didn't find anything.
8501 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8508 rm -f conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8512 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8513 # Warning - without using the other run time loading flags,
8514 # -berok will link without error, but may produce a broken library.
8515 no_undefined_flag=' ${wl}-bernotok'
8516 allow_undefined_flag=' ${wl}-berok'
8517 # -bexpall does not export symbols beginning with underscore (_)
8518 always_export_symbols=yes
8519 # Exported symbols can be pulled into shared objects from archives
8520 whole_archive_flag_spec=' '
8521 archive_cmds_need_lc=yes
8522 # This is similar to how AIX traditionally builds its shared libraries.
8523 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8529 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8530 hardcode_libdir_flag_spec='-L$libdir'
8531 hardcode_minus_L=yes
8532 # see comment about different semantics on the GNU ld section
8537 export_dynamic_flag_spec=-rdynamic
8540 cygwin* | mingw* | pw32*)
8541 # When not using gcc, we currently assume that we are using
8542 # Microsoft Visual C++.
8543 # hardcode_libdir_flag_spec is actually meaningless, as there is
8544 # no search path for DLLs.
8545 hardcode_libdir_flag_spec=' '
8546 allow_undefined_flag=unsupported
8547 # Tell ltmain to make .lib files, not .a files.
8549 # Tell ltmain to make .dll files, not .so files.
8551 # FIXME: Setting linknames here is a bad hack.
8552 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8553 # The linker will automatically build a .lib file if we build a DLL.
8554 old_archive_From_new_cmds='true'
8555 # FIXME: Should let the user specify the lib program.
8556 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8557 fix_srcfile_path='`cygpath -w "$srcfile"`'
8558 enable_shared_with_static_runtimes=yes
8561 darwin* | rhapsody*)
8563 rhapsody* | darwin1.[012])
8564 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8567 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8568 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8570 case ${MACOSX_DEPLOYMENT_TARGET} in
8572 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8575 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8581 archive_cmds_need_lc=no
8583 hardcode_automatic=yes
8584 hardcode_shlibpath_var=unsupported
8585 whole_archive_flag_spec=''
8586 link_all_deplibs=yes
8587 if test "$GCC" = yes ; then
8588 output_verbose_link_cmd='echo'
8589 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8590 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8591 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8592 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8593 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8595 case $cc_basename in
8597 output_verbose_link_cmd='echo'
8598 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8599 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8600 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8601 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8602 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8613 hardcode_libdir_flag_spec='-L$libdir'
8614 hardcode_shlibpath_var=no
8621 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8622 # support. Future versions do this automatically, but an explicit c++rt0.o
8623 # does not break anything, and helps significantly (at the cost of a little
8626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8627 hardcode_libdir_flag_spec='-R$libdir'
8629 hardcode_shlibpath_var=no
8632 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8636 hardcode_minus_L=yes
8637 hardcode_shlibpath_var=no
8640 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8641 freebsd* | kfreebsd*-gnu | dragonfly*)
8642 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8643 hardcode_libdir_flag_spec='-R$libdir'
8645 hardcode_shlibpath_var=no
8649 if test "$GCC" = yes; then
8650 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8652 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8654 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8655 hardcode_libdir_separator=:
8658 # hardcode_minus_L: Not really in the search PATH,
8659 # but as the default location of the library.
8660 hardcode_minus_L=yes
8661 export_dynamic_flag_spec='${wl}-E'
8665 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8668 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8671 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8677 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8680 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8684 if test "$with_gnu_ld" = no; then
8687 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8688 hardcode_libdir_flag_spec_ld='+b $libdir'
8689 hardcode_libdir_separator=:
8691 hardcode_shlibpath_var=no
8694 hardcode_libdir_flag_spec='-L$libdir'
8696 hardcode_shlibpath_var=no
8698 # hardcode_minus_L: Not really in the search PATH,
8699 # but as the default location of the library.
8700 hardcode_minus_L=yes
8703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8704 hardcode_libdir_separator=:
8706 export_dynamic_flag_spec='${wl}-E'
8708 # hardcode_minus_L: Not really in the search PATH,
8709 # but as the default location of the library.
8710 hardcode_minus_L=yes
8716 irix5* | irix6* | nonstopux*)
8717 if test "$GCC" = yes; then
8718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8720 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8721 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8724 hardcode_libdir_separator=:
8725 link_all_deplibs=yes
8729 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8732 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8734 hardcode_libdir_flag_spec='-R$libdir'
8736 hardcode_shlibpath_var=no
8740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8743 hardcode_libdir_separator=:
8744 hardcode_shlibpath_var=no
8749 hardcode_shlibpath_var=no
8750 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8751 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8752 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8754 export_dynamic_flag_spec='${wl}-E'
8757 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8759 hardcode_libdir_flag_spec='-R$libdir'
8762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8763 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8770 hardcode_libdir_flag_spec='-L$libdir'
8771 hardcode_minus_L=yes
8772 allow_undefined_flag=unsupported
8773 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8774 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8778 if test "$GCC" = yes; then
8779 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8780 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8782 allow_undefined_flag=' -expect_unresolved \*'
8783 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786 hardcode_libdir_separator=:
8789 osf4* | osf5*) # as osf3* with the addition of -msym flag
8790 if test "$GCC" = yes; then
8791 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8792 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8795 allow_undefined_flag=' -expect_unresolved \*'
8796 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8797 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8798 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8800 # Both c and cxx compiler support -rpath directly
8801 hardcode_libdir_flag_spec='-rpath $libdir'
8803 hardcode_libdir_separator=:
8807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_shlibpath_var=no
8809 export_dynamic_flag_spec='${wl}-Bexport'
8810 runpath_var=LD_RUN_PATH
8811 hardcode_runpath_var=yes
8815 no_undefined_flag=' -z text'
8816 if test "$GCC" = yes; then
8818 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8819 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8820 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8823 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8824 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8825 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8827 hardcode_libdir_flag_spec='-R$libdir'
8828 hardcode_shlibpath_var=no
8830 solaris2.[0-5] | solaris2.[0-5].*) ;;
8832 # The compiler driver will combine linker options so we
8833 # cannot just pass the convience library names through
8834 # without $wl, iff we do not link with $LD.
8835 # Luckily, gcc supports the same syntax we need for Sun Studio.
8836 # Supported since Solaris 2.6 (maybe 2.5.1?)
8839 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8841 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8844 link_all_deplibs=yes
8848 if test "x$host_vendor" = xsequent; then
8849 # Use $CC to link under sequent, because it throws in some extra .o
8850 # files that make .init and .fini sections work.
8851 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8855 hardcode_libdir_flag_spec='-L$libdir'
8857 hardcode_minus_L=yes
8858 hardcode_shlibpath_var=no
8862 case $host_vendor in
8864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865 hardcode_direct=yes # is this really true???
8868 ## LD is ld it makes a PLAMLIB
8869 ## CC just makes a GrossModule.
8870 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8871 reload_cmds='$CC -r -o $output$reload_objs'
8875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8876 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8879 runpath_var='LD_RUN_PATH'
8880 hardcode_shlibpath_var=no
8884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8885 hardcode_shlibpath_var=no
8886 export_dynamic_flag_spec='-Bexport'
8890 if test -d /usr/nec; then
8891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8892 hardcode_shlibpath_var=no
8893 runpath_var=LD_RUN_PATH
8894 hardcode_runpath_var=yes
8900 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8903 hardcode_shlibpath_var=no
8904 hardcode_runpath_var=yes
8905 runpath_var=LD_RUN_PATH
8908 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8909 no_undefined_flag='${wl}-z ${wl}text'
8910 if test "$GCC" = yes; then
8911 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8913 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8915 runpath_var='LD_RUN_PATH'
8916 hardcode_shlibpath_var=no
8920 no_undefined_flag=' -z text'
8921 # $CC -shared without GNU ld will not create a library from C++
8922 # object files and a static libstdc++, better avoid it by now
8923 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8924 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8925 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8926 hardcode_libdir_flag_spec=
8927 hardcode_shlibpath_var=no
8928 runpath_var='LD_RUN_PATH'
8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_libdir_flag_spec='-L$libdir'
8934 hardcode_shlibpath_var=no
8943 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8944 echo "${ECHO_T}$ld_shlibs" >&6
8945 test "$ld_shlibs" = no && can_build_shared=no
8947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8948 if test "$GCC" = yes; then
8949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8953 # Do we need to explicitly link libc?
8955 case "x$archive_cmds_need_lc" in
8957 # Assume -lc should be added
8958 archive_cmds_need_lc=yes
8960 if test "$enable_shared" = yes && test "$GCC" = yes; then
8961 case $archive_cmds in
8963 # FIXME: we may have to deal with multi-command sequences.
8966 # Test whether the compiler implicitly links with -lc since on some
8967 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8968 # to ld, don't add -lc before -lgcc.
8969 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8970 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8975 (eval $ac_compile) 2>&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } 2>conftest.err; then
8981 libobjs=conftest.$ac_objext
8983 wl=$lt_prog_compiler_wl
8989 lt_save_allow_undefined_flag=$allow_undefined_flag
8990 allow_undefined_flag=
8991 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8992 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }
8997 archive_cmds_need_lc=no
8999 archive_cmds_need_lc=yes
9001 allow_undefined_flag=$lt_save_allow_undefined_flag
9003 cat conftest.err 1>&5
9006 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9007 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9014 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9015 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9017 libname_spec='lib$name'
9025 shlibpath_overrides_runpath=unknown
9027 dynamic_linker="$host_os ld.so"
9028 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9029 if test "$GCC" = yes; then
9030 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9031 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9032 # if the path contains ";" then we assume it to be the separator
9033 # otherwise default to the standard path separator (i.e. ":") - it is
9034 # assumed that no part of a normal pathname contains ";" but that should
9035 # okay in the real world where ";" in dirpaths is itself problematic.
9036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9041 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9043 need_lib_prefix=unknown
9044 hardcode_into_libs=no
9046 # when you set need_version to no, make sure it does not cause -set_version
9047 # flags to be left without arguments
9048 need_version=unknown
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9054 shlibpath_var=LIBPATH
9056 # AIX 3 has no versioning support, so we append a major version to the name.
9057 soname_spec='${libname}${release}${shared_ext}$major'
9064 hardcode_into_libs=yes
9065 if test "$host_cpu" = ia64; then
9066 # AIX 5 supports IA64
9067 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9068 shlibpath_var=LD_LIBRARY_PATH
9070 # With GCC up to 2.95.x, collect2 would create an import file
9071 # for dependence libraries. The import file would start with
9072 # the line `#! .'. This would cause the generated library to
9073 # depend on `.', always an invalid library. This was fixed in
9074 # development snapshots of GCC prior to 3.0.
9076 aix4 | aix4.[01] | aix4.[01].*)
9077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9079 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9086 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9087 # soname into executable. Probably we can add versioning support to
9088 # collect2, so additional links can be useful in future.
9089 if test "$aix_use_runtimelinking" = yes; then
9090 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9091 # instead of lib<name>.a to let people know that these are not
9092 # typical AIX shared libraries.
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 # We preserve .a as extension for shared libraries through AIX4.2
9096 # and later when we are not doing run time linking.
9097 library_names_spec='${libname}${release}.a $libname.a'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9100 shlibpath_var=LIBPATH
9105 library_names_spec='$libname.ixlibrary $libname.a'
9106 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9107 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9111 library_names_spec='${libname}${shared_ext}'
9112 dynamic_linker="$host_os ld.so"
9113 shlibpath_var=LIBRARY_PATH
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9124 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9125 # the default ld.so.conf also contains /usr/contrib/lib and
9126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9127 # libtool to hard-code these into programs
9130 cygwin* | mingw* | pw32*)
9131 version_type=windows
9136 case $GCC,$host_os in
9137 yes,cygwin* | yes,mingw* | yes,pw32*)
9138 library_names_spec='$libname.dll.a'
9139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9140 postinstall_cmds='base_file=`basename \${file}`~
9141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9142 dldir=$destdir/`dirname \$dlpath`~
9143 test -d \$dldir || mkdir -p \$dldir~
9144 $install_prog $dir/$dlname \$dldir/$dlname~
9145 chmod a+x \$dldir/$dlname'
9146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9147 dlpath=$dir/\$dldll~
9149 shlibpath_overrides_runpath=yes
9153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9154 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9155 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9158 # MinGW DLLs use traditional 'lib' prefix
9159 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9161 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9162 # It is most probably a Windows format PATH printed by
9163 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9164 # path with ; separators, and with drive letters. We can handle the
9165 # drive letters (cygwin fileutils understands them), so leave them,
9166 # especially as we might pass files found there to a mingw objdump,
9167 # which wouldn't understand a cygwinified path. Ahh.
9168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9174 # pw32 DLLs use 'pw' prefix rather than 'lib'
9175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9184 dynamic_linker='Win32 ld.exe'
9185 # FIXME: first we should search . and the directory the executable is in
9189 darwin* | rhapsody*)
9190 dynamic_linker="$host_os dyld"
9194 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9195 soname_spec='${libname}${release}${major}$shared_ext'
9196 shlibpath_overrides_runpath=yes
9197 shlibpath_var=DYLD_LIBRARY_PATH
9198 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9199 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9200 if test "$GCC" = yes; then
9201 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9203 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 shlibpath_var=LD_LIBRARY_PATH
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 shlibpath_var=LD_LIBRARY_PATH
9228 shlibpath_overrides_runpath=no
9229 hardcode_into_libs=yes
9230 dynamic_linker='GNU ld.so'
9233 freebsd* | dragonfly*)
9234 # DragonFly does not have aout. When/if they implement a new
9235 # versioning mechanism, adjust this.
9236 if test -x /usr/bin/objformat; then
9237 objformat=`/usr/bin/objformat`
9240 freebsd[123]*) objformat=aout ;;
9244 version_type=freebsd-$objformat
9245 case $version_type in
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9256 shlibpath_var=LD_LIBRARY_PATH
9259 shlibpath_overrides_runpath=yes
9261 freebsd3.[01]* | freebsdelf3.[01]*)
9262 shlibpath_overrides_runpath=yes
9263 hardcode_into_libs=yes
9266 shlibpath_overrides_runpath=no
9267 hardcode_into_libs=yes
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9277 soname_spec='${libname}${release}${shared_ext}$major'
9278 shlibpath_var=LD_LIBRARY_PATH
9279 hardcode_into_libs=yes
9282 hpux9* | hpux10* | hpux11*)
9283 # Give a soname corresponding to the major version so that dld.sl refuses to
9284 # link against other versions.
9291 hardcode_into_libs=yes
9292 dynamic_linker="$host_os dld.so"
9293 shlibpath_var=LD_LIBRARY_PATH
9294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 if test "X$HPUX_IA64_MODE" = X32; then
9298 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9300 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9306 hardcode_into_libs=yes
9307 dynamic_linker="$host_os dld.sl"
9308 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9317 dynamic_linker="$host_os dld.sl"
9318 shlibpath_var=SHLIB_PATH
9319 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321 soname_spec='${libname}${release}${shared_ext}$major'
9324 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9325 postinstall_cmds='chmod 555 $lib'
9328 irix5* | irix6* | nonstopux*)
9330 nonstopux*) version_type=nonstopux ;;
9332 if test "$lt_cv_prog_gnu_ld" = yes; then
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9343 irix5* | nonstopux*)
9347 case $LD in # libtool.m4 will add one of these switches to LD
9348 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9349 libsuff= shlibsuff= libmagic=32-bit;;
9350 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9351 libsuff=32 shlibsuff=N32 libmagic=N32;;
9352 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9353 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9354 *) libsuff= shlibsuff= libmagic=never-match;;
9358 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9359 shlibpath_overrides_runpath=no
9360 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9361 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9362 hardcode_into_libs=yes
9365 # No shared lib support for Linux oldld, aout, or coff.
9366 linux*oldld* | linux*aout* | linux*coff*)
9370 # This must be Linux ELF.
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376 soname_spec='${libname}${release}${shared_ext}$major'
9377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9378 shlibpath_var=LD_LIBRARY_PATH
9379 shlibpath_overrides_runpath=no
9380 # This implies no fast_install, which is unacceptable.
9381 # Some rework will be needed to allow for fast_install
9382 # before this can be enabled.
9383 hardcode_into_libs=yes
9385 # Append ld.so.conf contents to the search path
9386 if test -f /etc/ld.so.conf; then
9387 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9388 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9391 # We used to test for /lib/ld.so.1 and disable shared libraries on
9392 # powerpc, because MkLinux only supported shared libraries with the
9393 # GNU dynamic linker. Since this was broken with cross compilers,
9394 # most powerpc-linux boxes support dynamic linking these days and
9395 # people can always --disable-shared, the test was removed, and we
9396 # assume the GNU/Linux dynamic linker is in use.
9397 dynamic_linker='GNU/Linux ld.so'
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 shlibpath_var=LD_LIBRARY_PATH
9407 shlibpath_overrides_runpath=no
9408 hardcode_into_libs=yes
9409 dynamic_linker='GNU ld.so'
9416 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9419 dynamic_linker='NetBSD (a.out) ld.so'
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 dynamic_linker='NetBSD ld.elf_so'
9425 shlibpath_var=LD_LIBRARY_PATH
9426 shlibpath_overrides_runpath=yes
9427 hardcode_into_libs=yes
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 shlibpath_overrides_runpath=yes
9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442 soname_spec='${libname}${release}${shared_ext}$major'
9443 shlibpath_var=LD_LIBRARY_PATH
9444 shlibpath_overrides_runpath=yes
9450 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9452 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9453 *) need_version=no ;;
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9457 shlibpath_var=LD_LIBRARY_PATH
9458 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9460 openbsd2.[89] | openbsd2.[89].*)
9461 shlibpath_overrides_runpath=no
9464 shlibpath_overrides_runpath=yes
9468 shlibpath_overrides_runpath=yes
9473 libname_spec='$name'
9476 library_names_spec='$libname${shared_ext} $libname.a'
9477 dynamic_linker='OS/2 ld.exe'
9478 shlibpath_var=LIBPATH
9481 osf3* | osf4* | osf5*)
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487 shlibpath_var=LD_LIBRARY_PATH
9488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9494 soname_spec='${libname}${release}${shared_ext}$major'
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496 shlibpath_var=LD_LIBRARY_PATH
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504 soname_spec='${libname}${release}${shared_ext}$major'
9505 shlibpath_var=LD_LIBRARY_PATH
9506 shlibpath_overrides_runpath=yes
9507 hardcode_into_libs=yes
9508 # ldd complains unless libraries are executable
9509 postinstall_cmds='chmod +x $lib'
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9515 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 shlibpath_overrides_runpath=yes
9518 if test "$with_gnu_ld" = yes; then
9524 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527 soname_spec='${libname}${release}${shared_ext}$major'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 case $host_vendor in
9531 shlibpath_overrides_runpath=no
9533 export_dynamic_flag_spec='${wl}-Blargedynsym'
9534 runpath_var=LD_RUN_PATH
9542 shlibpath_overrides_runpath=no
9543 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9549 if test -d /usr/nec ;then
9551 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9552 soname_spec='$libname${shared_ext}.$major'
9553 shlibpath_var=LD_LIBRARY_PATH
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 shlibpath_var=LD_LIBRARY_PATH
9568 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9569 echo "${ECHO_T}$dynamic_linker" >&6
9570 test "$dynamic_linker" = no && can_build_shared=no
9572 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9573 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9575 if test -n "$hardcode_libdir_flag_spec" || \
9576 test -n "$runpath_var" || \
9577 test "X$hardcode_automatic" = "Xyes" ; then
9579 # We can hardcode non-existant directories.
9580 if test "$hardcode_direct" != no &&
9581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9582 # have to relink, otherwise we might link with an installed library
9583 # when we should be linking with a yet-to-be-installed one
9584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9585 test "$hardcode_minus_L" != no; then
9586 # Linking always hardcodes the temporary library directory.
9587 hardcode_action=relink
9589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9590 hardcode_action=immediate
9593 # We cannot hardcode anything, or else we can only hardcode existing
9595 hardcode_action=unsupported
9597 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9598 echo "${ECHO_T}$hardcode_action" >&6
9600 if test "$hardcode_action" = relink; then
9601 # Fast installation is not supported
9602 enable_fast_install=no
9603 elif test "$shlibpath_overrides_runpath" = yes ||
9604 test "$enable_shared" = no; then
9605 # Fast installation is not necessary
9606 enable_fast_install=needless
9611 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9612 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9613 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9614 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9615 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9616 echo "$as_me:$LINENO: result: yes" >&5
9617 echo "${ECHO_T}yes" >&6
9619 # FIXME - insert some real tests, host_os isn't really good enough
9622 if test -n "$STRIP" ; then
9623 striplib="$STRIP -x"
9624 echo "$as_me:$LINENO: result: yes" >&5
9625 echo "${ECHO_T}yes" >&6
9627 echo "$as_me:$LINENO: result: no" >&5
9628 echo "${ECHO_T}no" >&6
9632 echo "$as_me:$LINENO: result: no" >&5
9633 echo "${ECHO_T}no" >&6
9638 if test "x$enable_dlopen" != xyes; then
9639 enable_dlopen=unknown
9640 enable_dlopen_self=unknown
9641 enable_dlopen_self_static=unknown
9648 lt_cv_dlopen="load_add_on"
9650 lt_cv_dlopen_self=yes
9654 lt_cv_dlopen="LoadLibrary"
9659 lt_cv_dlopen="dlopen"
9664 # if libdl is installed we need to link against it
9665 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9666 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9667 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 ac_check_lib_save_LIBS=$LIBS
9672 cat >conftest.$ac_ext <<_ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9679 /* Override any gcc2 internal prototype to avoid an error. */
9683 /* We use char because int might match the return type of a gcc2
9684 builtin and then its argument prototype would still apply. */
9694 rm -f conftest.$ac_objext conftest$ac_exeext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9696 (eval $ac_link) 2>conftest.er1
9698 grep -v '^ *+' conftest.er1 >conftest.err
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
9703 { ac_try='test -z "$ac_c_werror_flag"
9704 || test ! -s conftest.err'
9705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; } &&
9710 { ac_try='test -s conftest$ac_exeext'
9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; }; then
9716 ac_cv_lib_dl_dlopen=yes
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9721 ac_cv_lib_dl_dlopen=no
9723 rm -f conftest.err conftest.$ac_objext \
9724 conftest$ac_exeext conftest.$ac_ext
9725 LIBS=$ac_check_lib_save_LIBS
9727 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9728 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9729 if test $ac_cv_lib_dl_dlopen = yes; then
9730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9735 lt_cv_dlopen_self=yes
9742 echo "$as_me:$LINENO: checking for shl_load" >&5
9743 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9744 if test "${ac_cv_func_shl_load+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 cat >conftest.$ac_ext <<_ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9755 #define shl_load innocuous_shl_load
9757 /* System header to define __stub macros and hopefully few prototypes,
9758 which can conflict with char shl_load (); below.
9759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9760 <limits.h> exists even on freestanding compilers. */
9763 # include <limits.h>
9765 # include <assert.h>
9770 /* Override any gcc2 internal prototype to avoid an error. */
9775 /* We use char because int might match the return type of a gcc2
9776 builtin and then its argument prototype would still apply. */
9778 /* The GNU C library defines this for functions which it implements
9779 to always fail with ENOSYS. Some functions are actually named
9780 something starting with __ and the normal name is an alias. */
9781 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9784 char (*f) () = shl_load;
9793 return f != shl_load;
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>conftest.er1
9802 grep -v '^ *+' conftest.er1 >conftest.err
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } &&
9807 { ac_try='test -z "$ac_c_werror_flag"
9808 || test ! -s conftest.err'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; } &&
9814 { ac_try='test -s conftest$ac_exeext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_func_shl_load=yes
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825 ac_cv_func_shl_load=no
9827 rm -f conftest.err conftest.$ac_objext \
9828 conftest$ac_exeext conftest.$ac_ext
9830 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9831 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9832 if test $ac_cv_func_shl_load = yes; then
9833 lt_cv_dlopen="shl_load"
9835 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9836 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9837 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 ac_check_lib_save_LIBS=$LIBS
9842 cat >conftest.$ac_ext <<_ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9849 /* Override any gcc2 internal prototype to avoid an error. */
9853 /* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9866 (eval $ac_link) 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -z "$ac_c_werror_flag"
9874 || test ! -s conftest.err'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; } &&
9880 { ac_try='test -s conftest$ac_exeext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 ac_cv_lib_dld_shl_load=yes
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9891 ac_cv_lib_dld_shl_load=no
9893 rm -f conftest.err conftest.$ac_objext \
9894 conftest$ac_exeext conftest.$ac_ext
9895 LIBS=$ac_check_lib_save_LIBS
9897 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9898 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9899 if test $ac_cv_lib_dld_shl_load = yes; then
9900 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9902 echo "$as_me:$LINENO: checking for dlopen" >&5
9903 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9904 if test "${ac_cv_func_dlopen+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 cat >conftest.$ac_ext <<_ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9913 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9915 #define dlopen innocuous_dlopen
9917 /* System header to define __stub macros and hopefully few prototypes,
9918 which can conflict with char dlopen (); below.
9919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9920 <limits.h> exists even on freestanding compilers. */
9923 # include <limits.h>
9925 # include <assert.h>
9930 /* Override any gcc2 internal prototype to avoid an error. */
9935 /* We use char because int might match the return type of a gcc2
9936 builtin and then its argument prototype would still apply. */
9938 /* The GNU C library defines this for functions which it implements
9939 to always fail with ENOSYS. Some functions are actually named
9940 something starting with __ and the normal name is an alias. */
9941 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9944 char (*f) () = dlopen;
9958 rm -f conftest.$ac_objext conftest$ac_exeext
9959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9960 (eval $ac_link) 2>conftest.er1
9962 grep -v '^ *+' conftest.er1 >conftest.err
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } &&
9967 { ac_try='test -z "$ac_c_werror_flag"
9968 || test ! -s conftest.err'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_cv_func_dlopen=yes
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9985 ac_cv_func_dlopen=no
9987 rm -f conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9990 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9991 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9992 if test $ac_cv_func_dlopen = yes; then
9993 lt_cv_dlopen="dlopen"
9995 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9996 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 ac_check_lib_save_LIBS=$LIBS
10002 cat >conftest.$ac_ext <<_ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10009 /* Override any gcc2 internal prototype to avoid an error. */
10013 /* We use char because int might match the return type of a gcc2
10014 builtin and then its argument prototype would still apply. */
10024 rm -f conftest.$ac_objext conftest$ac_exeext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10026 (eval $ac_link) 2>conftest.er1
10028 grep -v '^ *+' conftest.er1 >conftest.err
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -z "$ac_c_werror_flag"
10034 || test ! -s conftest.err'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_lib_dl_dlopen=yes
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10051 ac_cv_lib_dl_dlopen=no
10053 rm -f conftest.err conftest.$ac_objext \
10054 conftest$ac_exeext conftest.$ac_ext
10055 LIBS=$ac_check_lib_save_LIBS
10057 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10058 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10059 if test $ac_cv_lib_dl_dlopen = yes; then
10060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10062 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10063 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10064 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 ac_check_lib_save_LIBS=$LIBS
10068 LIBS="-lsvld $LIBS"
10069 cat >conftest.$ac_ext <<_ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10076 /* Override any gcc2 internal prototype to avoid an error. */
10080 /* We use char because int might match the return type of a gcc2
10081 builtin and then its argument prototype would still apply. */
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093 (eval $ac_link) 2>conftest.er1
10095 grep -v '^ *+' conftest.er1 >conftest.err
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag"
10101 || test ! -s conftest.err'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest$ac_exeext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_cv_lib_svld_dlopen=yes
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_cv_lib_svld_dlopen=no
10120 rm -f conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
10122 LIBS=$ac_check_lib_save_LIBS
10124 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10125 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10126 if test $ac_cv_lib_svld_dlopen = yes; then
10127 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10129 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10130 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10131 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 ac_check_lib_save_LIBS=$LIBS
10136 cat >conftest.$ac_ext <<_ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10143 /* Override any gcc2 internal prototype to avoid an error. */
10147 /* We use char because int might match the return type of a gcc2
10148 builtin and then its argument prototype would still apply. */
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160 (eval $ac_link) 2>conftest.er1
10162 grep -v '^ *+' conftest.er1 >conftest.err
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } &&
10167 { ac_try='test -z "$ac_c_werror_flag"
10168 || test ! -s conftest.err'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try='test -s conftest$ac_exeext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_cv_lib_dld_dld_link=yes
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ac_cv_lib_dld_dld_link=no
10187 rm -f conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10191 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10192 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10193 if test $ac_cv_lib_dld_dld_link = yes; then
10194 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10215 if test "x$lt_cv_dlopen" != xno; then
10221 case $lt_cv_dlopen in
10223 save_CPPFLAGS="$CPPFLAGS"
10224 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10226 save_LDFLAGS="$LDFLAGS"
10227 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10230 LIBS="$lt_cv_dlopen_libs $LIBS"
10232 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10233 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10234 if test "${lt_cv_dlopen_self+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 if test "$cross_compiling" = yes; then :
10238 lt_cv_dlopen_self=cross
10240 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10241 lt_status=$lt_dlunknown
10242 cat > conftest.$ac_ext <<EOF
10243 #line 10243 "configure"
10244 #include "confdefs.h"
10253 # define LT_DLGLOBAL RTLD_GLOBAL
10256 # define LT_DLGLOBAL DL_GLOBAL
10258 # define LT_DLGLOBAL 0
10262 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10263 find out it does not work in some platform. */
10264 #ifndef LT_DLLAZY_OR_NOW
10266 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10269 # define LT_DLLAZY_OR_NOW DL_LAZY
10272 # define LT_DLLAZY_OR_NOW RTLD_NOW
10275 # define LT_DLLAZY_OR_NOW DL_NOW
10277 # define LT_DLLAZY_OR_NOW 0
10285 extern "C" void exit (int);
10288 void fnord() { int i=42;}
10291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10292 int status = $lt_dlunknown;
10296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10297 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10298 /* dlclose (self); */
10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305 (eval $ac_link) 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10309 (./conftest; exit; ) >&5 2>/dev/null
10311 case x$lt_status in
10312 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10313 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10314 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10317 # compilation failed
10318 lt_cv_dlopen_self=no
10325 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10326 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10328 if test "x$lt_cv_dlopen_self" = xyes; then
10329 LDFLAGS="$LDFLAGS $link_static_flag"
10330 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10331 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10332 if test "${lt_cv_dlopen_self_static+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 if test "$cross_compiling" = yes; then :
10336 lt_cv_dlopen_self_static=cross
10338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10339 lt_status=$lt_dlunknown
10340 cat > conftest.$ac_ext <<EOF
10341 #line 10341 "configure"
10342 #include "confdefs.h"
10351 # define LT_DLGLOBAL RTLD_GLOBAL
10354 # define LT_DLGLOBAL DL_GLOBAL
10356 # define LT_DLGLOBAL 0
10360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10361 find out it does not work in some platform. */
10362 #ifndef LT_DLLAZY_OR_NOW
10364 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10367 # define LT_DLLAZY_OR_NOW DL_LAZY
10370 # define LT_DLLAZY_OR_NOW RTLD_NOW
10373 # define LT_DLLAZY_OR_NOW DL_NOW
10375 # define LT_DLLAZY_OR_NOW 0
10383 extern "C" void exit (int);
10386 void fnord() { int i=42;}
10389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10390 int status = $lt_dlunknown;
10394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10395 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10396 /* dlclose (self); */
10402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10403 (eval $ac_link) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10407 (./conftest; exit; ) >&5 2>/dev/null
10409 case x$lt_status in
10410 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10411 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10412 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10415 # compilation failed
10416 lt_cv_dlopen_self_static=no
10423 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10424 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10427 CPPFLAGS="$save_CPPFLAGS"
10428 LDFLAGS="$save_LDFLAGS"
10433 case $lt_cv_dlopen_self in
10434 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10435 *) enable_dlopen_self=unknown ;;
10438 case $lt_cv_dlopen_self_static in
10439 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10440 *) enable_dlopen_self_static=unknown ;;
10445 # Report which librarie types wil actually be built
10446 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10447 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10448 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10449 echo "${ECHO_T}$can_build_shared" >&6
10451 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10452 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10453 test "$can_build_shared" = "no" && enable_shared=no
10455 # On AIX, shared libraries and static libraries use the same namespace, and
10456 # are all built from PIC.
10459 test "$enable_shared" = yes && enable_static=no
10460 if test -n "$RANLIB"; then
10461 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10462 postinstall_cmds='$RANLIB $lib'
10467 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10468 test "$enable_shared" = yes && enable_static=no
10472 echo "$as_me:$LINENO: result: $enable_shared" >&5
10473 echo "${ECHO_T}$enable_shared" >&6
10475 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10476 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10477 # Make sure either enable_shared or enable_static is yes.
10478 test "$enable_shared" = yes || enable_static=yes
10479 echo "$as_me:$LINENO: result: $enable_static" >&5
10480 echo "${ECHO_T}$enable_static" >&6
10482 # The else clause should only fire when bootstrapping the
10483 # libtool distribution, otherwise you forgot to ship ltmain.sh
10484 # with your package, and you will get complaints that there are
10485 # no rules to generate ltmain.sh.
10486 if test -f "$ltmain"; then
10487 # See if we are running on zsh, and set the options which allow our commands through
10488 # without removal of \ escapes.
10489 if test -n "${ZSH_VERSION+set}" ; then
10490 setopt NO_GLOB_SUBST
10492 # Now quote all the things that may contain metacharacters while being
10493 # careful not to overquote the AC_SUBSTed values. We take copies of the
10494 # variables and quote the copies for generation of the libtool script.
10495 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10499 deplibs_check_method reload_flag reload_cmds need_locks \
10500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10501 lt_cv_sys_global_symbol_to_c_name_address \
10502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10503 old_postinstall_cmds old_postuninstall_cmds \
10507 lt_prog_compiler_wl \
10508 lt_prog_compiler_pic \
10509 lt_prog_compiler_static \
10510 lt_prog_compiler_no_builtin_flag \
10511 export_dynamic_flag_spec \
10512 thread_safe_flag_spec \
10513 whole_archive_flag_spec \
10514 enable_shared_with_static_runtimes \
10516 old_archive_from_new_cmds \
10521 compiler_lib_search_path \
10523 archive_expsym_cmds \
10525 postuninstall_cmds \
10526 old_archive_from_expsyms_cmds \
10527 allow_undefined_flag \
10528 no_undefined_flag \
10529 export_symbols_cmds \
10530 hardcode_libdir_flag_spec \
10531 hardcode_libdir_flag_spec_ld \
10532 hardcode_libdir_separator \
10533 hardcode_automatic \
10535 module_expsym_cmds \
10536 lt_cv_prog_compiler_c_o \
10538 include_expsyms; do
10541 old_archive_cmds | \
10542 old_archive_from_new_cmds | \
10544 archive_expsym_cmds | \
10546 module_expsym_cmds | \
10547 old_archive_from_expsyms_cmds | \
10548 export_symbols_cmds | \
10549 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10550 postinstall_cmds | postuninstall_cmds | \
10551 old_postinstall_cmds | old_postuninstall_cmds | \
10552 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10553 # Double-quote double-evaled strings.
10554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10563 *'\$0 --fallback-echo"')
10564 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10568 cfgfile="${ofile}T"
10569 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10571 { echo "$as_me:$LINENO: creating $ofile" >&5
10572 echo "$as_me: creating $ofile" >&6;}
10574 cat <<__EOF__ >> "$cfgfile"
10577 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10578 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10579 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10581 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10582 # Free Software Foundation, Inc.
10584 # This file is part of GNU Libtool:
10585 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10587 # This program is free software; you can redistribute it and/or modify
10588 # it under the terms of the GNU General Public License as published by
10589 # the Free Software Foundation; either version 2 of the License, or
10590 # (at your option) any later version.
10592 # This program is distributed in the hope that it will be useful, but
10593 # WITHOUT ANY WARRANTY; without even the implied warranty of
10594 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10595 # General Public License for more details.
10597 # You should have received a copy of the GNU General Public License
10598 # along with this program; if not, write to the Free Software
10599 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10601 # As a special exception to the GNU General Public License, if you
10602 # distribute this file as part of a program that contains a
10603 # configuration script generated by Autoconf, you may include it under
10604 # the same distribution terms that you use for the rest of that program.
10606 # A sed program that does not truncate output.
10609 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10610 Xsed="$SED -e 1s/^X//"
10612 # The HP-UX ksh and POSIX shell print the target directory to stdout
10613 # if CDPATH is set.
10614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10616 # The names of the tagged configurations supported by this script.
10619 # ### BEGIN LIBTOOL CONFIG
10621 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10623 # Shell to use when invoking shell scripts.
10626 # Whether or not to build shared libraries.
10627 build_libtool_libs=$enable_shared
10629 # Whether or not to build static libraries.
10630 build_old_libs=$enable_static
10632 # Whether or not to add -lc for building shared libraries.
10633 build_libtool_need_lc=$archive_cmds_need_lc
10635 # Whether or not to disallow shared libs when runtime libs are static
10636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10638 # Whether or not to optimize for fast installation.
10639 fast_install=$enable_fast_install
10642 host_alias=$host_alias
10646 # The build system.
10647 build_alias=$build_alias
10651 # An echo program that does not interpret backslashes.
10656 AR_FLAGS=$lt_AR_FLAGS
10661 # A language-specific compiler.
10664 # Is the compiler the GNU C compiler?
10670 # The linker used to build libraries.
10673 # Whether we need hard or soft links.
10676 # A BSD-compatible nm program.
10679 # A symbol stripping program
10682 # Used to examine libraries when file_magic_cmd begins "file"
10683 MAGIC_CMD=$MAGIC_CMD
10685 # Used on cygwin: DLL creation program.
10688 # Used on cygwin: object dumper.
10691 # Used on cygwin: assembler.
10694 # The name of the directory that contains temporary libtool files.
10697 # How to create reloadable object files.
10698 reload_flag=$lt_reload_flag
10699 reload_cmds=$lt_reload_cmds
10701 # How to pass a linker flag through the compiler.
10702 wl=$lt_lt_prog_compiler_wl
10704 # Object file suffix (normally "o").
10705 objext="$ac_objext"
10707 # Old archive suffix (normally "a").
10710 # Shared library suffix (normally ".so").
10711 shrext_cmds='$shrext_cmds'
10713 # Executable file suffix (normally "").
10716 # Additional compiler flags for building library objects.
10717 pic_flag=$lt_lt_prog_compiler_pic
10720 # What is the maximum length of a command?
10721 max_cmd_len=$lt_cv_sys_max_cmd_len
10723 # Does compiler simultaneously support -c and -o options?
10724 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10726 # Must we lock files when doing compilation?
10727 need_locks=$lt_need_locks
10729 # Do we need the lib prefix for modules?
10730 need_lib_prefix=$need_lib_prefix
10732 # Do we need a version for libraries?
10733 need_version=$need_version
10735 # Whether dlopen is supported.
10736 dlopen_support=$enable_dlopen
10738 # Whether dlopen of programs is supported.
10739 dlopen_self=$enable_dlopen_self
10741 # Whether dlopen of statically linked programs is supported.
10742 dlopen_self_static=$enable_dlopen_self_static
10744 # Compiler flag to prevent dynamic linking.
10745 link_static_flag=$lt_lt_prog_compiler_static
10747 # Compiler flag to turn off builtin functions.
10748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10750 # Compiler flag to allow reflexive dlopens.
10751 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10753 # Compiler flag to generate shared objects directly from archives.
10754 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10756 # Compiler flag to generate thread-safe objects.
10757 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10759 # Library versioning type.
10760 version_type=$version_type
10762 # Format of library name prefix.
10763 libname_spec=$lt_libname_spec
10765 # List of archive names. First name is the real one, the rest are links.
10766 # The last name is the one that the linker finds with -lNAME.
10767 library_names_spec=$lt_library_names_spec
10769 # The coded name of the library, if different from the real name.
10770 soname_spec=$lt_soname_spec
10772 # Commands used to build and install an old-style archive.
10774 old_archive_cmds=$lt_old_archive_cmds
10775 old_postinstall_cmds=$lt_old_postinstall_cmds
10776 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10778 # Create an old-style archive from a shared archive.
10779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10781 # Create a temporary old-style archive to link instead of a shared archive.
10782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10784 # Commands used to build and install a shared archive.
10785 archive_cmds=$lt_archive_cmds
10786 archive_expsym_cmds=$lt_archive_expsym_cmds
10787 postinstall_cmds=$lt_postinstall_cmds
10788 postuninstall_cmds=$lt_postuninstall_cmds
10790 # Commands used to build a loadable module (assumed same as above if empty)
10791 module_cmds=$lt_module_cmds
10792 module_expsym_cmds=$lt_module_expsym_cmds
10794 # Commands to strip libraries.
10795 old_striplib=$lt_old_striplib
10796 striplib=$lt_striplib
10798 # Dependencies to place before the objects being linked to create a
10800 predep_objects=$lt_predep_objects
10802 # Dependencies to place after the objects being linked to create a
10804 postdep_objects=$lt_postdep_objects
10806 # Dependencies to place before the objects being linked to create a
10808 predeps=$lt_predeps
10810 # Dependencies to place after the objects being linked to create a
10812 postdeps=$lt_postdeps
10814 # The library search path used internally by the compiler when linking
10815 # a shared library.
10816 compiler_lib_search_path=$lt_compiler_lib_search_path
10818 # Method to check whether dependent libraries are shared objects.
10819 deplibs_check_method=$lt_deplibs_check_method
10821 # Command to use when deplibs_check_method == file_magic.
10822 file_magic_cmd=$lt_file_magic_cmd
10824 # Flag that allows shared libraries with undefined symbols to be built.
10825 allow_undefined_flag=$lt_allow_undefined_flag
10827 # Flag that forces no undefined symbols.
10828 no_undefined_flag=$lt_no_undefined_flag
10830 # Commands used to finish a libtool library installation in a directory.
10831 finish_cmds=$lt_finish_cmds
10833 # Same as above, but a single script fragment to be evaled but not shown.
10834 finish_eval=$lt_finish_eval
10836 # Take the output of nm and produce a listing of raw symbols and C names.
10837 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10839 # Transform the output of nm in a proper C declaration
10840 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10842 # Transform the output of nm in a C name address pair
10843 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10845 # This is the shared library runtime path variable.
10846 runpath_var=$runpath_var
10848 # This is the shared library path variable.
10849 shlibpath_var=$shlibpath_var
10851 # Is shlibpath searched before the hard-coded library search path?
10852 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10854 # How to hardcode a shared library path into an executable.
10855 hardcode_action=$hardcode_action
10857 # Whether we should hardcode library paths into libraries.
10858 hardcode_into_libs=$hardcode_into_libs
10860 # Flag to hardcode \$libdir into a binary during linking.
10861 # This must work even if \$libdir does not exist.
10862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10864 # If ld is used when linking, flag to hardcode \$libdir into
10865 # a binary during linking. This must work even if \$libdir does
10867 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10869 # Whether we need a single -rpath flag with a separated argument.
10870 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10872 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10873 # resulting binary.
10874 hardcode_direct=$hardcode_direct
10876 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10877 # resulting binary.
10878 hardcode_minus_L=$hardcode_minus_L
10880 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10881 # the resulting binary.
10882 hardcode_shlibpath_var=$hardcode_shlibpath_var
10884 # Set to yes if building a shared library automatically hardcodes DIR into the library
10885 # and all subsequent libraries and executables linked against it.
10886 hardcode_automatic=$hardcode_automatic
10888 # Variables whose values should be saved in libtool wrapper scripts and
10889 # restored at relink time.
10890 variables_saved_for_relink="$variables_saved_for_relink"
10892 # Whether libtool must link a program against all its dependency libraries.
10893 link_all_deplibs=$link_all_deplibs
10895 # Compile-time system search path for libraries
10896 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10898 # Run-time system search path for libraries
10899 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10901 # Fix the shell variable \$srcfile for the compiler.
10902 fix_srcfile_path="$fix_srcfile_path"
10904 # Set to yes if exported symbols are required.
10905 always_export_symbols=$always_export_symbols
10907 # The commands to list exported symbols.
10908 export_symbols_cmds=$lt_export_symbols_cmds
10910 # The commands to extract the exported symbol list from a shared archive.
10911 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10913 # Symbols that should not be listed in the preloaded symbols.
10914 exclude_expsyms=$lt_exclude_expsyms
10916 # Symbols that must always be exported.
10917 include_expsyms=$lt_include_expsyms
10919 # ### END LIBTOOL CONFIG
10926 cat <<\EOF >> "$cfgfile"
10928 # AIX sometimes has problems with the GCC collect2 program. For some
10929 # reason, if we set the COLLECT_NAMES environment variable, the problems
10930 # vanish in a puff of smoke.
10931 if test "X${COLLECT_NAMES+set}" != Xset; then
10933 export COLLECT_NAMES
10939 # We use sed instead of cat because bash on DJGPP gets confused if
10940 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10941 # text mode, it properly converts lines to CR/LF. This bash problem
10942 # is reportedly fixed, but why not run on old versions too?
10943 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10945 mv -f "$cfgfile" "$ofile" || \
10946 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10950 # If there is no Makefile yet, we rely on a make rule to execute
10951 # `config.status --recheck' to rerun these tests and create the
10952 # libtool script then.
10953 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10954 if test -f "$ltmain_in"; then
10955 test -f Makefile && make "$ltmain"
10961 ac_cpp='$CPP $CPPFLAGS'
10962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10969 # Check whether --with-tags or --without-tags was given.
10970 if test "${with_tags+set}" = set; then
10971 withval="$with_tags"
10972 tagnames="$withval"
10975 if test -f "$ltmain" && test -n "$tagnames"; then
10976 if test ! -f "${ofile}"; then
10977 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10978 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10981 if test -z "$LTCC"; then
10982 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10983 if test -z "$LTCC"; then
10984 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10985 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10987 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10988 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10992 # Extract list of available tagged configurations in $ofile.
10993 # Note that this assumes the entire list is on one line.
10994 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10997 for tagname in $tagnames; do
10999 # Check whether tagname contains only valid characters
11000 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11002 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11003 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11004 { (exit 1); exit 1; }; }
11008 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11010 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11011 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11012 { (exit 1); exit 1; }; }
11015 # Update the list of available tags.
11016 if test -n "$tagname"; then
11017 echo appending configuration tag \"$tagname\" to $ofile
11021 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11022 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11023 (test "X$CXX" != "Xg++"))) ; then
11031 if test -n "$F77" && test "X$F77" != "Xno"; then
11039 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11050 # Source file extension for RC test sources.
11053 # Object file extension for compiled RC test sources.
11057 # Code to be used in simple compile tests
11058 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11060 # Code to be used in simple link tests
11061 lt_simple_link_test_code="$lt_simple_compile_test_code"
11063 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11065 # If no C compiler was specified, use CC.
11068 # Allow CC to be a program name with arguments.
11072 # save warnings/boilerplate of simple test code
11073 ac_outfile=conftest.$ac_objext
11074 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11075 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11076 _lt_compiler_boilerplate=`cat conftest.err`
11079 ac_outfile=conftest.$ac_objext
11080 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11081 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11082 _lt_linker_boilerplate=`cat conftest.err`
11086 # Allow CC to be a program name with arguments.
11091 for cc_temp in $compiler""; do
11093 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11094 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11099 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11101 lt_cv_prog_compiler_c_o_RC=yes
11103 # The else clause should only fire when bootstrapping the
11104 # libtool distribution, otherwise you forgot to ship ltmain.sh
11105 # with your package, and you will get complaints that there are
11106 # no rules to generate ltmain.sh.
11107 if test -f "$ltmain"; then
11108 # See if we are running on zsh, and set the options which allow our commands through
11109 # without removal of \ escapes.
11110 if test -n "${ZSH_VERSION+set}" ; then
11111 setopt NO_GLOB_SUBST
11113 # Now quote all the things that may contain metacharacters while being
11114 # careful not to overquote the AC_SUBSTed values. We take copies of the
11115 # variables and quote the copies for generation of the libtool script.
11116 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11118 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11119 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11120 deplibs_check_method reload_flag reload_cmds need_locks \
11121 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11122 lt_cv_sys_global_symbol_to_c_name_address \
11123 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11124 old_postinstall_cmds old_postuninstall_cmds \
11128 lt_prog_compiler_wl_RC \
11129 lt_prog_compiler_pic_RC \
11130 lt_prog_compiler_static_RC \
11131 lt_prog_compiler_no_builtin_flag_RC \
11132 export_dynamic_flag_spec_RC \
11133 thread_safe_flag_spec_RC \
11134 whole_archive_flag_spec_RC \
11135 enable_shared_with_static_runtimes_RC \
11136 old_archive_cmds_RC \
11137 old_archive_from_new_cmds_RC \
11138 predep_objects_RC \
11139 postdep_objects_RC \
11142 compiler_lib_search_path_RC \
11144 archive_expsym_cmds_RC \
11145 postinstall_cmds_RC \
11146 postuninstall_cmds_RC \
11147 old_archive_from_expsyms_cmds_RC \
11148 allow_undefined_flag_RC \
11149 no_undefined_flag_RC \
11150 export_symbols_cmds_RC \
11151 hardcode_libdir_flag_spec_RC \
11152 hardcode_libdir_flag_spec_ld_RC \
11153 hardcode_libdir_separator_RC \
11154 hardcode_automatic_RC \
11156 module_expsym_cmds_RC \
11157 lt_cv_prog_compiler_c_o_RC \
11158 exclude_expsyms_RC \
11159 include_expsyms_RC; do
11162 old_archive_cmds_RC | \
11163 old_archive_from_new_cmds_RC | \
11164 archive_cmds_RC | \
11165 archive_expsym_cmds_RC | \
11167 module_expsym_cmds_RC | \
11168 old_archive_from_expsyms_cmds_RC | \
11169 export_symbols_cmds_RC | \
11170 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11171 postinstall_cmds | postuninstall_cmds | \
11172 old_postinstall_cmds | old_postuninstall_cmds | \
11173 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11174 # Double-quote double-evaled strings.
11175 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11178 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11184 *'\$0 --fallback-echo"')
11185 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11191 cat <<__EOF__ >> "$cfgfile"
11192 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11194 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11196 # Shell to use when invoking shell scripts.
11199 # Whether or not to build shared libraries.
11200 build_libtool_libs=$enable_shared
11202 # Whether or not to build static libraries.
11203 build_old_libs=$enable_static
11205 # Whether or not to add -lc for building shared libraries.
11206 build_libtool_need_lc=$archive_cmds_need_lc_RC
11208 # Whether or not to disallow shared libs when runtime libs are static
11209 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11211 # Whether or not to optimize for fast installation.
11212 fast_install=$enable_fast_install
11215 host_alias=$host_alias
11219 # The build system.
11220 build_alias=$build_alias
11224 # An echo program that does not interpret backslashes.
11229 AR_FLAGS=$lt_AR_FLAGS
11234 # A language-specific compiler.
11237 # Is the compiler the GNU C compiler?
11243 # The linker used to build libraries.
11246 # Whether we need hard or soft links.
11249 # A BSD-compatible nm program.
11252 # A symbol stripping program
11255 # Used to examine libraries when file_magic_cmd begins "file"
11256 MAGIC_CMD=$MAGIC_CMD
11258 # Used on cygwin: DLL creation program.
11261 # Used on cygwin: object dumper.
11264 # Used on cygwin: assembler.
11267 # The name of the directory that contains temporary libtool files.
11270 # How to create reloadable object files.
11271 reload_flag=$lt_reload_flag
11272 reload_cmds=$lt_reload_cmds
11274 # How to pass a linker flag through the compiler.
11275 wl=$lt_lt_prog_compiler_wl_RC
11277 # Object file suffix (normally "o").
11278 objext="$ac_objext"
11280 # Old archive suffix (normally "a").
11283 # Shared library suffix (normally ".so").
11284 shrext_cmds='$shrext_cmds'
11286 # Executable file suffix (normally "").
11289 # Additional compiler flags for building library objects.
11290 pic_flag=$lt_lt_prog_compiler_pic_RC
11293 # What is the maximum length of a command?
11294 max_cmd_len=$lt_cv_sys_max_cmd_len
11296 # Does compiler simultaneously support -c and -o options?
11297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11299 # Must we lock files when doing compilation?
11300 need_locks=$lt_need_locks
11302 # Do we need the lib prefix for modules?
11303 need_lib_prefix=$need_lib_prefix
11305 # Do we need a version for libraries?
11306 need_version=$need_version
11308 # Whether dlopen is supported.
11309 dlopen_support=$enable_dlopen
11311 # Whether dlopen of programs is supported.
11312 dlopen_self=$enable_dlopen_self
11314 # Whether dlopen of statically linked programs is supported.
11315 dlopen_self_static=$enable_dlopen_self_static
11317 # Compiler flag to prevent dynamic linking.
11318 link_static_flag=$lt_lt_prog_compiler_static_RC
11320 # Compiler flag to turn off builtin functions.
11321 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11323 # Compiler flag to allow reflexive dlopens.
11324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11326 # Compiler flag to generate shared objects directly from archives.
11327 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11329 # Compiler flag to generate thread-safe objects.
11330 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11332 # Library versioning type.
11333 version_type=$version_type
11335 # Format of library name prefix.
11336 libname_spec=$lt_libname_spec
11338 # List of archive names. First name is the real one, the rest are links.
11339 # The last name is the one that the linker finds with -lNAME.
11340 library_names_spec=$lt_library_names_spec
11342 # The coded name of the library, if different from the real name.
11343 soname_spec=$lt_soname_spec
11345 # Commands used to build and install an old-style archive.
11347 old_archive_cmds=$lt_old_archive_cmds_RC
11348 old_postinstall_cmds=$lt_old_postinstall_cmds
11349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11351 # Create an old-style archive from a shared archive.
11352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11354 # Create a temporary old-style archive to link instead of a shared archive.
11355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11357 # Commands used to build and install a shared archive.
11358 archive_cmds=$lt_archive_cmds_RC
11359 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11360 postinstall_cmds=$lt_postinstall_cmds
11361 postuninstall_cmds=$lt_postuninstall_cmds
11363 # Commands used to build a loadable module (assumed same as above if empty)
11364 module_cmds=$lt_module_cmds_RC
11365 module_expsym_cmds=$lt_module_expsym_cmds_RC
11367 # Commands to strip libraries.
11368 old_striplib=$lt_old_striplib
11369 striplib=$lt_striplib
11371 # Dependencies to place before the objects being linked to create a
11373 predep_objects=$lt_predep_objects_RC
11375 # Dependencies to place after the objects being linked to create a
11377 postdep_objects=$lt_postdep_objects_RC
11379 # Dependencies to place before the objects being linked to create a
11381 predeps=$lt_predeps_RC
11383 # Dependencies to place after the objects being linked to create a
11385 postdeps=$lt_postdeps_RC
11387 # The library search path used internally by the compiler when linking
11388 # a shared library.
11389 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11391 # Method to check whether dependent libraries are shared objects.
11392 deplibs_check_method=$lt_deplibs_check_method
11394 # Command to use when deplibs_check_method == file_magic.
11395 file_magic_cmd=$lt_file_magic_cmd
11397 # Flag that allows shared libraries with undefined symbols to be built.
11398 allow_undefined_flag=$lt_allow_undefined_flag_RC
11400 # Flag that forces no undefined symbols.
11401 no_undefined_flag=$lt_no_undefined_flag_RC
11403 # Commands used to finish a libtool library installation in a directory.
11404 finish_cmds=$lt_finish_cmds
11406 # Same as above, but a single script fragment to be evaled but not shown.
11407 finish_eval=$lt_finish_eval
11409 # Take the output of nm and produce a listing of raw symbols and C names.
11410 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11412 # Transform the output of nm in a proper C declaration
11413 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11415 # Transform the output of nm in a C name address pair
11416 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11418 # This is the shared library runtime path variable.
11419 runpath_var=$runpath_var
11421 # This is the shared library path variable.
11422 shlibpath_var=$shlibpath_var
11424 # Is shlibpath searched before the hard-coded library search path?
11425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11427 # How to hardcode a shared library path into an executable.
11428 hardcode_action=$hardcode_action_RC
11430 # Whether we should hardcode library paths into libraries.
11431 hardcode_into_libs=$hardcode_into_libs
11433 # Flag to hardcode \$libdir into a binary during linking.
11434 # This must work even if \$libdir does not exist.
11435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11437 # If ld is used when linking, flag to hardcode \$libdir into
11438 # a binary during linking. This must work even if \$libdir does
11440 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11442 # Whether we need a single -rpath flag with a separated argument.
11443 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11445 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11446 # resulting binary.
11447 hardcode_direct=$hardcode_direct_RC
11449 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11450 # resulting binary.
11451 hardcode_minus_L=$hardcode_minus_L_RC
11453 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11454 # the resulting binary.
11455 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11457 # Set to yes if building a shared library automatically hardcodes DIR into the library
11458 # and all subsequent libraries and executables linked against it.
11459 hardcode_automatic=$hardcode_automatic_RC
11461 # Variables whose values should be saved in libtool wrapper scripts and
11462 # restored at relink time.
11463 variables_saved_for_relink="$variables_saved_for_relink"
11465 # Whether libtool must link a program against all its dependency libraries.
11466 link_all_deplibs=$link_all_deplibs_RC
11468 # Compile-time system search path for libraries
11469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11471 # Run-time system search path for libraries
11472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11474 # Fix the shell variable \$srcfile for the compiler.
11475 fix_srcfile_path="$fix_srcfile_path_RC"
11477 # Set to yes if exported symbols are required.
11478 always_export_symbols=$always_export_symbols_RC
11480 # The commands to list exported symbols.
11481 export_symbols_cmds=$lt_export_symbols_cmds_RC
11483 # The commands to extract the exported symbol list from a shared archive.
11484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11486 # Symbols that should not be listed in the preloaded symbols.
11487 exclude_expsyms=$lt_exclude_expsyms_RC
11489 # Symbols that must always be exported.
11490 include_expsyms=$lt_include_expsyms_RC
11492 # ### END LIBTOOL TAG CONFIG: $tagname
11498 # If there is no Makefile yet, we rely on a make rule to execute
11499 # `config.status --recheck' to rerun these tests and create the
11500 # libtool script then.
11501 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11502 if test -f "$ltmain_in"; then
11503 test -f Makefile && make "$ltmain"
11509 ac_cpp='$CPP $CPPFLAGS'
11510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11519 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11520 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11521 { (exit 1); exit 1; }; }
11525 # Append the new tag name to the list of available tags.
11526 if test -n "$tagname" ; then
11527 available_tags="$available_tags $tagname"
11533 # Now substitute the updated list of available tags.
11534 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11535 mv "${ofile}T" "$ofile"
11539 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11540 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11541 { (exit 1); exit 1; }; }
11547 # This can be used to rebuild libtool when needed
11548 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11550 # Always use our own libtool.
11551 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11553 # Prevent multiple expansion
11565 if test $ol_enable_perl != no ; then
11566 # Extract the first word of "perl", so it can be a program name with args.
11567 set dummy perl; ac_word=$2
11568 echo "$as_me:$LINENO: checking for $ac_word" >&5
11569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11570 if test "${ac_cv_path_PERLBIN+set}" = set; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579 for as_dir in $PATH
11582 test -z "$as_dir" && as_dir=.
11583 for ac_exec_ext in '' $ac_executable_extensions; do
11584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11585 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11596 PERLBIN=$ac_cv_path_PERLBIN
11598 if test -n "$PERLBIN"; then
11599 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11600 echo "${ECHO_T}$PERLBIN" >&6
11602 echo "$as_me:$LINENO: result: no" >&5
11603 echo "${ECHO_T}no" >&6
11607 if test "no$PERLBIN" = "no" ; then
11608 if test $ol_enable_perl = yes ; then
11609 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11610 echo "$as_me: error: could not locate perl" >&2;}
11611 { (exit 1); exit 1; }; }
11615 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11616 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11618 if test x"$ol_enable_perl" = "xyes" ; then
11619 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11621 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11628 ac_cpp='$CPP $CPPFLAGS'
11629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11632 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11633 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11634 # On Suns, sometimes $CPP names a directory.
11635 if test -n "$CPP" && test -d "$CPP"; then
11638 if test -z "$CPP"; then
11639 if test "${ac_cv_prog_CPP+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 # Double quotes because CPP needs to be expanded
11643 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11645 ac_preproc_ok=false
11646 for ac_c_preproc_warn_flag in '' yes
11648 # Use a header file that comes with gcc, so configuring glibc
11649 # with a fresh cross-compiler works.
11650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11651 # <limits.h> exists even on freestanding compilers.
11652 # On the NeXT, cc -E runs the code through the compiler's parser,
11653 # not just through cpp. "Syntax error" is here to catch this case.
11654 cat >conftest.$ac_ext <<_ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11661 # include <limits.h>
11663 # include <assert.h>
11667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11670 grep -v '^ *+' conftest.er1 >conftest.err
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } >/dev/null; then
11675 if test -s conftest.err; then
11676 ac_cpp_err=$ac_c_preproc_warn_flag
11677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11684 if test -z "$ac_cpp_err"; then
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11690 # Broken: fails on valid input.
11693 rm -f conftest.err conftest.$ac_ext
11695 # OK, works on sane cases. Now check whether non-existent headers
11696 # can be detected and how.
11697 cat >conftest.$ac_ext <<_ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h. */
11703 #include <ac_nonexistent.h>
11705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11708 grep -v '^ *+' conftest.er1 >conftest.err
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } >/dev/null; then
11713 if test -s conftest.err; then
11714 ac_cpp_err=$ac_c_preproc_warn_flag
11715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11722 if test -z "$ac_cpp_err"; then
11723 # Broken: success on invalid input.
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11729 # Passes both tests.
11733 rm -f conftest.err conftest.$ac_ext
11736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11737 rm -f conftest.err conftest.$ac_ext
11738 if $ac_preproc_ok; then
11743 ac_cv_prog_CPP=$CPP
11746 CPP=$ac_cv_prog_CPP
11748 ac_cv_prog_CPP=$CPP
11750 echo "$as_me:$LINENO: result: $CPP" >&5
11751 echo "${ECHO_T}$CPP" >&6
11752 ac_preproc_ok=false
11753 for ac_c_preproc_warn_flag in '' yes
11755 # Use a header file that comes with gcc, so configuring glibc
11756 # with a fresh cross-compiler works.
11757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758 # <limits.h> exists even on freestanding compilers.
11759 # On the NeXT, cc -E runs the code through the compiler's parser,
11760 # not just through cpp. "Syntax error" is here to catch this case.
11761 cat >conftest.$ac_ext <<_ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11768 # include <limits.h>
11770 # include <assert.h>
11774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } >/dev/null; then
11782 if test -s conftest.err; then
11783 ac_cpp_err=$ac_c_preproc_warn_flag
11784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11791 if test -z "$ac_cpp_err"; then
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 # Broken: fails on valid input.
11800 rm -f conftest.err conftest.$ac_ext
11802 # OK, works on sane cases. Now check whether non-existent headers
11803 # can be detected and how.
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 #include <ac_nonexistent.h>
11812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11815 grep -v '^ *+' conftest.er1 >conftest.err
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } >/dev/null; then
11820 if test -s conftest.err; then
11821 ac_cpp_err=$ac_c_preproc_warn_flag
11822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11829 if test -z "$ac_cpp_err"; then
11830 # Broken: success on invalid input.
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 # Passes both tests.
11840 rm -f conftest.err conftest.$ac_ext
11843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11844 rm -f conftest.err conftest.$ac_ext
11845 if $ac_preproc_ok; then
11848 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11849 See \`config.log' for more details." >&5
11850 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11851 See \`config.log' for more details." >&2;}
11852 { (exit 1); exit 1; }; }
11856 ac_cpp='$CPP $CPPFLAGS'
11857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11863 *mingw32* ) ac_cv_mingw32=yes ;;
11864 *cygwin* ) ac_cv_cygwin=yes ;;
11870 cat >>confdefs.h <<_ACEOF
11871 #define EXEEXT "${EXEEXT}"
11875 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11876 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11877 if test "${ac_cv_lib_be_be_app+set}" = set; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 ac_check_lib_save_LIBS=$LIBS
11881 LIBS="-lbe -lroot -lnet $LIBS"
11882 cat >conftest.$ac_ext <<_ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11889 /* Override any gcc2 internal prototype to avoid an error. */
11893 /* We use char because int might match the return type of a gcc2
11894 builtin and then its argument prototype would still apply. */
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11906 (eval $ac_link) 2>conftest.er1
11908 grep -v '^ *+' conftest.er1 >conftest.err
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag"
11914 || test ! -s conftest.err'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try='test -s conftest$ac_exeext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 ac_cv_lib_be_be_app=yes
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11931 ac_cv_lib_be_be_app=no
11933 rm -f conftest.err conftest.$ac_objext \
11934 conftest$ac_exeext conftest.$ac_ext
11935 LIBS=$ac_check_lib_save_LIBS
11937 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11938 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11939 if test $ac_cv_lib_be_be_app = yes; then
11940 LIBS="$LIBS -lbe -lroot -lnet"
11947 ac_cpp='$CPP $CPPFLAGS'
11948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11951 if test -n "$ac_tool_prefix"; then
11952 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11953 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11954 echo "$as_me:$LINENO: checking for $ac_word" >&5
11955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11956 if test "${ac_cv_prog_CC+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 if test -n "$CC"; then
11960 ac_cv_prog_CC="$CC" # Let the user override the test.
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11966 test -z "$as_dir" && as_dir=.
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11969 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11979 if test -n "$CC"; then
11980 echo "$as_me:$LINENO: result: $CC" >&5
11981 echo "${ECHO_T}$CC" >&6
11983 echo "$as_me:$LINENO: result: no" >&5
11984 echo "${ECHO_T}no" >&6
11988 if test -z "$ac_cv_prog_CC"; then
11990 # Extract the first word of "gcc", so it can be a program name with args.
11991 set dummy gcc; ac_word=$2
11992 echo "$as_me:$LINENO: checking for $ac_word" >&5
11993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 if test -n "$ac_ct_CC"; then
11998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001 for as_dir in $PATH
12004 test -z "$as_dir" && as_dir=.
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12007 ac_cv_prog_ac_ct_CC="gcc"
12008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12017 if test -n "$ac_ct_CC"; then
12018 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12019 echo "${ECHO_T}$ac_ct_CC" >&6
12021 echo "$as_me:$LINENO: result: no" >&5
12022 echo "${ECHO_T}no" >&6
12027 CC="$ac_cv_prog_CC"
12030 if test -z "$CC"; then
12031 if test -n "$ac_tool_prefix"; then
12032 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12033 set dummy ${ac_tool_prefix}cc; ac_word=$2
12034 echo "$as_me:$LINENO: checking for $ac_word" >&5
12035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12036 if test "${ac_cv_prog_CC+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12039 if test -n "$CC"; then
12040 ac_cv_prog_CC="$CC" # Let the user override the test.
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12049 ac_cv_prog_CC="${ac_tool_prefix}cc"
12050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12059 if test -n "$CC"; then
12060 echo "$as_me:$LINENO: result: $CC" >&5
12061 echo "${ECHO_T}$CC" >&6
12063 echo "$as_me:$LINENO: result: no" >&5
12064 echo "${ECHO_T}no" >&6
12068 if test -z "$ac_cv_prog_CC"; then
12070 # Extract the first word of "cc", so it can be a program name with args.
12071 set dummy cc; ac_word=$2
12072 echo "$as_me:$LINENO: checking for $ac_word" >&5
12073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 if test -n "$ac_ct_CC"; then
12078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH
12084 test -z "$as_dir" && as_dir=.
12085 for ac_exec_ext in '' $ac_executable_extensions; do
12086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087 ac_cv_prog_ac_ct_CC="cc"
12088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12097 if test -n "$ac_ct_CC"; then
12098 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12099 echo "${ECHO_T}$ac_ct_CC" >&6
12101 echo "$as_me:$LINENO: result: no" >&5
12102 echo "${ECHO_T}no" >&6
12107 CC="$ac_cv_prog_CC"
12111 if test -z "$CC"; then
12112 # Extract the first word of "cc", so it can be a program name with args.
12113 set dummy cc; ac_word=$2
12114 echo "$as_me:$LINENO: checking for $ac_word" >&5
12115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12116 if test "${ac_cv_prog_CC+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 if test -n "$CC"; then
12120 ac_cv_prog_CC="$CC" # Let the user override the test.
12122 ac_prog_rejected=no
12123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124 for as_dir in $PATH
12127 test -z "$as_dir" && as_dir=.
12128 for ac_exec_ext in '' $ac_executable_extensions; do
12129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12130 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12131 ac_prog_rejected=yes
12135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12141 if test $ac_prog_rejected = yes; then
12142 # We found a bogon in the path, so make sure we never use it.
12143 set dummy $ac_cv_prog_CC
12145 if test $# != 0; then
12146 # We chose a different compiler from the bogus one.
12147 # However, it has the same basename, so the bogon will be chosen
12148 # first if we set CC to just the basename; use the full file name.
12150 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12156 if test -n "$CC"; then
12157 echo "$as_me:$LINENO: result: $CC" >&5
12158 echo "${ECHO_T}$CC" >&6
12160 echo "$as_me:$LINENO: result: no" >&5
12161 echo "${ECHO_T}no" >&6
12165 if test -z "$CC"; then
12166 if test -n "$ac_tool_prefix"; then
12169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12171 echo "$as_me:$LINENO: checking for $ac_word" >&5
12172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12173 if test "${ac_cv_prog_CC+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 if test -n "$CC"; then
12177 ac_cv_prog_CC="$CC" # Let the user override the test.
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12183 test -z "$as_dir" && as_dir=.
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12186 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 if test -n "$CC"; then
12197 echo "$as_me:$LINENO: result: $CC" >&5
12198 echo "${ECHO_T}$CC" >&6
12200 echo "$as_me:$LINENO: result: no" >&5
12201 echo "${ECHO_T}no" >&6
12204 test -n "$CC" && break
12207 if test -z "$CC"; then
12211 # Extract the first word of "$ac_prog", so it can be a program name with args.
12212 set dummy $ac_prog; ac_word=$2
12213 echo "$as_me:$LINENO: checking for $ac_word" >&5
12214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 if test -n "$ac_ct_CC"; then
12219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222 for as_dir in $PATH
12225 test -z "$as_dir" && as_dir=.
12226 for ac_exec_ext in '' $ac_executable_extensions; do
12227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12228 ac_cv_prog_ac_ct_CC="$ac_prog"
12229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12238 if test -n "$ac_ct_CC"; then
12239 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12240 echo "${ECHO_T}$ac_ct_CC" >&6
12242 echo "$as_me:$LINENO: result: no" >&5
12243 echo "${ECHO_T}no" >&6
12246 test -n "$ac_ct_CC" && break
12255 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12256 See \`config.log' for more details." >&5
12257 echo "$as_me: error: no acceptable C compiler found in \$PATH
12258 See \`config.log' for more details." >&2;}
12259 { (exit 1); exit 1; }; }
12261 # Provide some information about the compiler.
12262 echo "$as_me:$LINENO:" \
12263 "checking for C compiler version" >&5
12264 ac_compiler=`set X $ac_compile; echo $2`
12265 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12266 (eval $ac_compiler --version </dev/null >&5) 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }
12270 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12271 (eval $ac_compiler -v </dev/null >&5) 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }
12275 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12276 (eval $ac_compiler -V </dev/null >&5) 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }
12281 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12282 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12283 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 cat >conftest.$ac_ext <<_ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12304 rm -f conftest.$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306 (eval $ac_compile) 2>conftest.er1
12308 grep -v '^ *+' conftest.er1 >conftest.err
12310 cat conftest.err >&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } &&
12313 { ac_try='test -z "$ac_c_werror_flag"
12314 || test ! -s conftest.err'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; } &&
12320 { ac_try='test -s conftest.$ac_objext'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 ac_compiler_gnu=yes
12328 echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12337 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12338 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12339 GCC=`test $ac_compiler_gnu = yes && echo yes`
12340 ac_test_CFLAGS=${CFLAGS+set}
12341 ac_save_CFLAGS=$CFLAGS
12343 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12344 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12345 if test "${ac_cv_prog_cc_g+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 cat >conftest.$ac_ext <<_ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12363 rm -f conftest.$ac_objext
12364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12365 (eval $ac_compile) 2>conftest.er1
12367 grep -v '^ *+' conftest.er1 >conftest.err
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_c_werror_flag"
12373 || test ! -s conftest.err'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest.$ac_objext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_cv_prog_cc_g=yes
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12394 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12395 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12396 if test "$ac_test_CFLAGS" = set; then
12397 CFLAGS=$ac_save_CFLAGS
12398 elif test $ac_cv_prog_cc_g = yes; then
12399 if test "$GCC" = yes; then
12405 if test "$GCC" = yes; then
12411 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12412 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12413 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 ac_cv_prog_cc_stdc=no
12418 cat >conftest.$ac_ext <<_ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12424 #include <stdarg.h>
12426 #include <sys/types.h>
12427 #include <sys/stat.h>
12428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12429 struct buf { int x; };
12430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12431 static char *e (p, i)
12437 static char *f (char * (*g) (char **, int), char **p, ...)
12442 s = g (p, va_arg (v,int));
12447 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12448 function prototypes and stuff, but not '\xHH' hex character constants.
12449 These don't provoke an error unfortunately, instead are silently treated
12450 as 'x'. The following induces an error, until -std1 is added to get
12451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12452 array size at least. It's necessary to write '\x00'==0 to get something
12453 that's true only with -std1. */
12454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12456 int test (int i, double x);
12457 struct s1 {int (*f) (int a);};
12458 struct s2 {int (*f) (double a);};
12459 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12465 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12470 # Don't try gcc -ansi; that turns off useful extensions and
12471 # breaks some systems' header files.
12472 # AIX -qlanglvl=ansi
12473 # Ultrix and OSF/1 -std1
12474 # HP-UX 10.20 and later -Ae
12475 # HP-UX older versions -Aa -D_HPUX_SOURCE
12476 # SVR4 -Xc -D__EXTENSIONS__
12477 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12479 CC="$ac_save_CC $ac_arg"
12480 rm -f conftest.$ac_objext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12482 (eval $ac_compile) 2>conftest.er1
12484 grep -v '^ *+' conftest.er1 >conftest.err
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -z "$ac_c_werror_flag"
12490 || test ! -s conftest.err'
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try='test -s conftest.$ac_objext'
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 ac_cv_prog_cc_stdc=$ac_arg
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12509 rm -f conftest.err conftest.$ac_objext
12511 rm -f conftest.$ac_ext conftest.$ac_objext
12516 case "x$ac_cv_prog_cc_stdc" in
12518 echo "$as_me:$LINENO: result: none needed" >&5
12519 echo "${ECHO_T}none needed" >&6 ;;
12521 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12522 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12523 CC="$CC $ac_cv_prog_cc_stdc" ;;
12526 # Some people use a C++ compiler to compile C. Since we use `exit',
12527 # in C++ we need to declare it. In case someone uses the same compiler
12528 # for both compiling C and C++ we need to have the C++ compiler decide
12529 # the declaration of exit, since it's the most demanding environment.
12530 cat >conftest.$ac_ext <<_ACEOF
12531 #ifndef __cplusplus
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12539 grep -v '^ *+' conftest.er1 >conftest.err
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 for ac_declaration in \
12559 'extern "C" void std::exit (int) throw (); using std::exit;' \
12560 'extern "C" void std::exit (int); using std::exit;' \
12561 'extern "C" void exit (int) throw ();' \
12562 'extern "C" void exit (int);' \
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12572 #include <stdlib.h>
12581 rm -f conftest.$ac_objext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12583 (eval $ac_compile) 2>conftest.er1
12585 grep -v '^ *+' conftest.er1 >conftest.err
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -z "$ac_c_werror_flag"
12591 || test ! -s conftest.err'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try='test -s conftest.$ac_objext'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12611 cat >conftest.$ac_ext <<_ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12626 rm -f conftest.$ac_objext
12627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12628 (eval $ac_compile) 2>conftest.er1
12630 grep -v '^ *+' conftest.er1 >conftest.err
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } &&
12635 { ac_try='test -z "$ac_c_werror_flag"
12636 || test ! -s conftest.err'
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; } &&
12642 { ac_try='test -s conftest.$ac_objext'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12650 echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12657 if test -n "$ac_declaration"; then
12658 echo '#ifdef __cplusplus' >>confdefs.h
12659 echo $ac_declaration >>confdefs.h
12660 echo '#endif' >>confdefs.h
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12670 ac_cpp='$CPP $CPPFLAGS'
12671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12675 depcc="$CC" am_compiler_list=
12677 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12678 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12679 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12683 # We make a subdir and do the tests there. Otherwise we can end up
12684 # making bogus files that we don't know about and never remove. For
12685 # instance it was reported that on HP-UX the gcc test will end up
12686 # making a dummy file named `D' -- because `-MD' means `put the output
12689 # Copy depcomp to subdir because otherwise we won't find it if we're
12690 # using a relative directory.
12691 cp "$am_depcomp" conftest.dir
12693 # We will build objects and dependencies in a subdirectory because
12694 # it helps to detect inapplicable dependency modes. For instance
12695 # both Tru64's cc and ICC support -MD to output dependencies as a
12696 # side effect of compilation, but ICC will put the dependencies in
12697 # the current directory while Tru64 will put them in the object
12701 am_cv_CC_dependencies_compiler_type=none
12702 if test "$am_compiler_list" = ""; then
12703 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12705 for depmode in $am_compiler_list; do
12706 # Setup a source with many dependencies, because some compilers
12707 # like to wrap large dependency lists on column 80 (with \), and
12708 # we should not choose a depcomp mode which is confused by this.
12710 # We need to recreate these files for each test, as the compiler may
12711 # overwrite some of them when testing with obscure command lines.
12712 # This happens at least with the AIX C compiler.
12714 for i in 1 2 3 4 5 6; do
12715 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12716 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12717 # Solaris 8's {/usr,}/bin/sh.
12718 touch sub/conftst$i.h
12720 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12724 # after this tag, mechanisms are not by side-effect, so they'll
12725 # only be used when explicitly requested
12726 if test "x$enable_dependency_tracking" = xyes; then
12734 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12735 # mode. It turns out that the SunPro C++ compiler does not properly
12736 # handle `-M -o', and we need to detect this.
12737 if depmode=$depmode \
12738 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12739 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12740 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12741 >/dev/null 2>conftest.err &&
12742 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12743 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12744 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12745 # icc doesn't choke on unknown options, it will just issue warnings
12746 # or remarks (even with -Werror). So we grep stderr for any message
12747 # that says an option was ignored or not supported.
12748 # When given -MP, icc 7.0 and 7.1 complain thusly:
12749 # icc: Command line warning: ignoring option '-M'; no argument required
12750 # The diagnosis changed in icc 8.0:
12751 # icc: Command line remark: option '-MP' not supported
12752 if (grep 'ignoring option' conftest.err ||
12753 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12754 am_cv_CC_dependencies_compiler_type=$depmode
12761 rm -rf conftest.dir
12763 am_cv_CC_dependencies_compiler_type=none
12767 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12768 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12769 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12774 test "x$enable_dependency_tracking" != xno \
12775 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12776 am__fastdepCC_TRUE=
12777 am__fastdepCC_FALSE='#'
12779 am__fastdepCC_TRUE='#'
12780 am__fastdepCC_FALSE=
12784 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12785 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12786 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12787 { (exit 1); exit 1; }; }
12790 # test for make depend flag
12793 if test -z "${MKDEP}"; then
12794 OL_MKDEP="${CC-cc}"
12795 if test -z "${MKDEP_FLAGS}"; then
12796 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12797 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12798 if test "${ol_cv_mkdep+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12803 for flag in "-M" "-xM"; do
12804 cat > conftest.c <<EOF
12807 if { ac_try='$OL_MKDEP $flag conftest.c'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; } \
12813 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12815 if test ! -f conftest."${ac_object}" ; then
12817 OL_MKDEP_FLAGS="$flag"
12825 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12826 echo "${ECHO_T}$ol_cv_mkdep" >&6
12829 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12833 OL_MKDEP="${MKDEP}"
12834 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12839 if test "${ol_cv_mkdep}" = no ; then
12840 # this will soon become an error
12841 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12842 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12845 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12846 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12847 if test "${ac_cv_lib_s_afopen+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 ac_check_lib_save_LIBS=$LIBS
12852 cat >conftest.$ac_ext <<_ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12859 /* Override any gcc2 internal prototype to avoid an error. */
12863 /* We use char because int might match the return type of a gcc2
12864 builtin and then its argument prototype would still apply. */
12874 rm -f conftest.$ac_objext conftest$ac_exeext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>conftest.er1
12878 grep -v '^ *+' conftest.er1 >conftest.err
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_cv_lib_s_afopen=yes
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12901 ac_cv_lib_s_afopen=no
12903 rm -f conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12907 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12908 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12909 if test $ac_cv_lib_s_afopen = yes; then
12913 cat >>confdefs.h <<\_ACEOF
12914 #define HAVE_AIX_SECURITY 1
12923 ac_cv_func_getopt=no
12925 cat >>confdefs.h <<\_ACEOF
12926 #define BOTH_STRINGS_H 1
12933 WITH_MODULES_ENABLED=no
12934 if test $ol_enable_modules != no ; then
12936 for ac_header in ltdl.h
12938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12940 echo "$as_me:$LINENO: checking for $ac_header" >&5
12941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12948 # Is the header compilable?
12949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12951 cat >conftest.$ac_ext <<_ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 $ac_includes_default
12958 #include <$ac_header>
12960 rm -f conftest.$ac_objext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962 (eval $ac_compile) 2>conftest.er1
12964 grep -v '^ *+' conftest.er1 >conftest.err
12966 cat conftest.err >&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try='test -z "$ac_c_werror_flag"
12970 || test ! -s conftest.err'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; } &&
12976 { ac_try='test -s conftest.$ac_objext'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 ac_header_compiler=yes
12984 echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12987 ac_header_compiler=no
12989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12991 echo "${ECHO_T}$ac_header_compiler" >&6
12993 # Is the header present?
12994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12996 cat >conftest.$ac_ext <<_ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h. */
13002 #include <$ac_header>
13004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13007 grep -v '^ *+' conftest.er1 >conftest.err
13009 cat conftest.err >&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } >/dev/null; then
13012 if test -s conftest.err; then
13013 ac_cpp_err=$ac_c_preproc_warn_flag
13014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13021 if test -z "$ac_cpp_err"; then
13022 ac_header_preproc=yes
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13027 ac_header_preproc=no
13029 rm -f conftest.err conftest.$ac_ext
13030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13031 echo "${ECHO_T}$ac_header_preproc" >&6
13033 # So? What about this header?
13034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13040 ac_header_preproc=yes
13043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13057 ## ------------------------------------------ ##
13058 ## Report this to the AC_PACKAGE_NAME lists. ##
13059 ## ------------------------------------------ ##
13062 sed "s/^/$as_me: WARNING: /" >&2
13065 echo "$as_me:$LINENO: checking for $ac_header" >&5
13066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 eval "$as_ac_Header=\$ac_header_preproc"
13072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13077 cat >>confdefs.h <<_ACEOF
13078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13086 if test $ac_cv_header_ltdl_h = no ; then
13087 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13088 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13089 { (exit 1); exit 1; }; }
13092 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13093 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13094 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 ac_check_lib_save_LIBS=$LIBS
13098 LIBS="-lltdl $LIBS"
13099 cat >conftest.$ac_ext <<_ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13106 /* Override any gcc2 internal prototype to avoid an error. */
13110 /* We use char because int might match the return type of a gcc2
13111 builtin and then its argument prototype would still apply. */
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123 (eval $ac_link) 2>conftest.er1
13125 grep -v '^ *+' conftest.er1 >conftest.err
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -z "$ac_c_werror_flag"
13131 || test ! -s conftest.err'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest$ac_exeext'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13143 ac_cv_lib_ltdl_lt_dlinit=yes
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13148 ac_cv_lib_ltdl_lt_dlinit=no
13150 rm -f conftest.err conftest.$ac_objext \
13151 conftest$ac_exeext conftest.$ac_ext
13152 LIBS=$ac_check_lib_save_LIBS
13154 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13155 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13156 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13158 MODULES_LIBS=-lltdl
13160 cat >>confdefs.h <<\_ACEOF
13161 #define HAVE_LIBLTDL 1
13168 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13169 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13170 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13171 { (exit 1); exit 1; }; }
13173 ol_link_modules=yes
13174 WITH_MODULES_ENABLED=yes
13177 for i in $Backends; do
13178 eval "ol_tmp=\$ol_enable_$i"
13179 if test $ol_tmp = mod ; then
13180 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13181 echo "$as_me: WARNING: building static $i backend" >&2;}
13182 eval "ol_enable_$i=yes"
13185 for i in $Overlays; do
13186 eval "ol_tmp=\$ol_enable_$i"
13187 if test $ol_tmp = mod ; then
13188 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13189 echo "$as_me: WARNING: building static $i overlay" >&2;}
13190 eval "ol_enable_$i=yes"
13196 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13197 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13198 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13210 #include <__ASCII__/generate_error.h>
13214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13217 grep -v '^ *+' conftest.er1 >conftest.err
13219 cat conftest.err >&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); } >/dev/null; then
13222 if test -s conftest.err; then
13223 ac_cpp_err=$ac_c_preproc_warn_flag
13224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13231 if test -z "$ac_cpp_err"; then
13232 ol_cv_cpp_ebcdic=yes
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ol_cv_cpp_ebcdic=no
13239 rm -f conftest.err conftest.$ac_ext
13241 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13242 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13243 if test $ol_cv_cpp_ebcdic = yes ; then
13245 cat >>confdefs.h <<\_ACEOF
13246 #define HAVE_EBCDIC 1
13251 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13252 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13253 if test "${ol_cv_header_stdc+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 cat >conftest.$ac_ext <<_ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13262 #include <stdlib.h>
13263 #include <stdarg.h>
13264 #include <string.h>
13267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13270 grep -v '^ *+' conftest.er1 >conftest.err
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } >/dev/null; then
13275 if test -s conftest.err; then
13276 ac_cpp_err=$ac_c_preproc_warn_flag
13277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13284 if test -z "$ac_cpp_err"; then
13285 ol_cv_header_stdc=yes
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13290 ol_cv_header_stdc=no
13292 rm -f conftest.err conftest.$ac_ext
13294 if test $ol_cv_header_stdc = yes; then
13295 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13296 cat >conftest.$ac_ext <<_ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 #include <string.h>
13305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13306 $EGREP "memchr" >/dev/null 2>&1; then
13309 ol_cv_header_stdc=no
13315 if test $ol_cv_header_stdc = yes; then
13316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13317 cat >conftest.$ac_ext <<_ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13323 #include <stdlib.h>
13326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13327 $EGREP "free" >/dev/null 2>&1; then
13330 ol_cv_header_stdc=no
13336 if test $ol_cv_header_stdc = yes; then
13337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13338 if test "$cross_compiling" = yes; then
13341 cat >conftest.$ac_ext <<_ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13348 #ifndef HAVE_EBCDIC
13349 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13350 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13352 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13353 || ('j' <= (c) && (c) <= 'r') \
13354 || ('s' <= (c) && (c) <= 'z'))
13355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13358 int main () { int i; for (i = 0; i < 256; i++)
13359 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13363 rm -f conftest$ac_exeext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13365 (eval $ac_link) 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13376 echo "$as_me: program exited with status $ac_status" >&5
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13380 ( exit $ac_status )
13381 ol_cv_header_stdc=no
13383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13387 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13388 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13389 if test $ol_cv_header_stdc = yes; then
13390 cat >>confdefs.h <<\_ACEOF
13391 #define STDC_HEADERS 1
13395 ac_cv_header_stdc=disable
13398 if test $ol_cv_header_stdc != yes; then
13399 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13400 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13408 ac_header_dirent=no
13409 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13410 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13411 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13412 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 cat >conftest.$ac_ext <<_ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13422 #include <sys/types.h>
13434 rm -f conftest.$ac_objext
13435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13436 (eval $ac_compile) 2>conftest.er1
13438 grep -v '^ *+' conftest.er1 >conftest.err
13440 cat conftest.err >&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try='test -z "$ac_c_werror_flag"
13444 || test ! -s conftest.err'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; } &&
13450 { ac_try='test -s conftest.$ac_objext'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 eval "$as_ac_Header=yes"
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13461 eval "$as_ac_Header=no"
13463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13468 cat >>confdefs.h <<_ACEOF
13469 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13472 ac_header_dirent=$ac_hdr; break
13476 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13477 if test $ac_header_dirent = dirent.h; then
13478 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13479 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13480 if test "${ac_cv_search_opendir+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 ac_func_search_save_LIBS=$LIBS
13484 ac_cv_search_opendir=no
13485 cat >conftest.$ac_ext <<_ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13492 /* Override any gcc2 internal prototype to avoid an error. */
13496 /* We use char because int might match the return type of a gcc2
13497 builtin and then its argument prototype would still apply. */
13507 rm -f conftest.$ac_objext conftest$ac_exeext
13508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13509 (eval $ac_link) 2>conftest.er1
13511 grep -v '^ *+' conftest.er1 >conftest.err
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } &&
13516 { ac_try='test -z "$ac_c_werror_flag"
13517 || test ! -s conftest.err'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; } &&
13523 { ac_try='test -s conftest$ac_exeext'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13529 ac_cv_search_opendir="none required"
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13535 rm -f conftest.err conftest.$ac_objext \
13536 conftest$ac_exeext conftest.$ac_ext
13537 if test "$ac_cv_search_opendir" = no; then
13538 for ac_lib in dir; do
13539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13540 cat >conftest.$ac_ext <<_ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13547 /* Override any gcc2 internal prototype to avoid an error. */
13551 /* We use char because int might match the return type of a gcc2
13552 builtin and then its argument prototype would still apply. */
13562 rm -f conftest.$ac_objext conftest$ac_exeext
13563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13564 (eval $ac_link) 2>conftest.er1
13566 grep -v '^ *+' conftest.er1 >conftest.err
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try='test -z "$ac_c_werror_flag"
13572 || test ! -s conftest.err'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; } &&
13578 { ac_try='test -s conftest$ac_exeext'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 ac_cv_search_opendir="-l$ac_lib"
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13591 rm -f conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
13595 LIBS=$ac_func_search_save_LIBS
13597 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13598 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13599 if test "$ac_cv_search_opendir" != no; then
13600 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13605 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13606 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13607 if test "${ac_cv_search_opendir+set}" = set; then
13608 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 ac_func_search_save_LIBS=$LIBS
13611 ac_cv_search_opendir=no
13612 cat >conftest.$ac_ext <<_ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13619 /* Override any gcc2 internal prototype to avoid an error. */
13623 /* We use char because int might match the return type of a gcc2
13624 builtin and then its argument prototype would still apply. */
13634 rm -f conftest.$ac_objext conftest$ac_exeext
13635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13636 (eval $ac_link) 2>conftest.er1
13638 grep -v '^ *+' conftest.er1 >conftest.err
13640 cat conftest.err >&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
13643 { ac_try='test -z "$ac_c_werror_flag"
13644 || test ! -s conftest.err'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; } &&
13650 { ac_try='test -s conftest$ac_exeext'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_cv_search_opendir="none required"
13658 echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13662 rm -f conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
13664 if test "$ac_cv_search_opendir" = no; then
13665 for ac_lib in x; do
13666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13667 cat >conftest.$ac_ext <<_ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13674 /* Override any gcc2 internal prototype to avoid an error. */
13678 /* We use char because int might match the return type of a gcc2
13679 builtin and then its argument prototype would still apply. */
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13691 (eval $ac_link) 2>conftest.er1
13693 grep -v '^ *+' conftest.er1 >conftest.err
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try='test -z "$ac_c_werror_flag"
13699 || test ! -s conftest.err'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; } &&
13705 { ac_try='test -s conftest$ac_exeext'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 ac_cv_search_opendir="-l$ac_lib"
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13718 rm -f conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
13722 LIBS=$ac_func_search_save_LIBS
13724 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13725 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13726 if test "$ac_cv_search_opendir" != no; then
13727 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13733 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13734 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13735 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13738 cat >conftest.$ac_ext <<_ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13744 #include <sys/types.h>
13745 #include <sys/wait.h>
13746 #ifndef WEXITSTATUS
13747 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13750 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13758 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13763 rm -f conftest.$ac_objext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13765 (eval $ac_compile) 2>conftest.er1
13767 grep -v '^ *+' conftest.er1 >conftest.err
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -z "$ac_c_werror_flag"
13773 || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest.$ac_objext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 ac_cv_header_sys_wait_h=yes
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 ac_cv_header_sys_wait_h=no
13792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13794 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13795 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13796 if test $ac_cv_header_sys_wait_h = yes; then
13798 cat >>confdefs.h <<\_ACEOF
13799 #define HAVE_SYS_WAIT_H 1
13804 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13805 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13806 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 cat >conftest.$ac_ext <<_ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13815 #include <sys/types.h>
13816 #include <termios.h>
13822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13823 $EGREP "yes" >/dev/null 2>&1; then
13824 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13826 ac_cv_sys_tiocgwinsz_in_termios_h=no
13831 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13832 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13834 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13835 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13836 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13837 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 cat >conftest.$ac_ext <<_ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 #include <sys/types.h>
13847 #include <sys/ioctl.h>
13853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13854 $EGREP "yes" >/dev/null 2>&1; then
13855 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13857 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13862 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13863 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13865 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13867 cat >>confdefs.h <<\_ACEOF
13868 #define GWINSZ_IN_SYS_IOCTL 1
13972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13974 echo "$as_me:$LINENO: checking for $ac_header" >&5
13975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13982 # Is the header compilable?
13983 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13985 cat >conftest.$ac_ext <<_ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13991 $ac_includes_default
13992 #include <$ac_header>
13994 rm -f conftest.$ac_objext
13995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13996 (eval $ac_compile) 2>conftest.er1
13998 grep -v '^ *+' conftest.er1 >conftest.err
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -z "$ac_c_werror_flag"
14004 || test ! -s conftest.err'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } &&
14010 { ac_try='test -s conftest.$ac_objext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 ac_header_compiler=yes
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 ac_header_compiler=no
14023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14025 echo "${ECHO_T}$ac_header_compiler" >&6
14027 # Is the header present?
14028 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14030 cat >conftest.$ac_ext <<_ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14036 #include <$ac_header>
14038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14041 grep -v '^ *+' conftest.er1 >conftest.err
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } >/dev/null; then
14046 if test -s conftest.err; then
14047 ac_cpp_err=$ac_c_preproc_warn_flag
14048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14055 if test -z "$ac_cpp_err"; then
14056 ac_header_preproc=yes
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14061 ac_header_preproc=no
14063 rm -f conftest.err conftest.$ac_ext
14064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14065 echo "${ECHO_T}$ac_header_preproc" >&6
14067 # So? What about this header?
14068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14074 ac_header_preproc=yes
14077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14091 ## ------------------------------------------ ##
14092 ## Report this to the AC_PACKAGE_NAME lists. ##
14093 ## ------------------------------------------ ##
14096 sed "s/^/$as_me: WARNING: /" >&2
14099 echo "$as_me:$LINENO: checking for $ac_header" >&5
14100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 eval "$as_ac_Header=\$ac_header_preproc"
14106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14111 cat >>confdefs.h <<_ACEOF
14112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14121 for ac_header in resolv.h
14123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14124 echo "$as_me:$LINENO: checking for $ac_header" >&5
14125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 cat >conftest.$ac_ext <<_ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14135 $ac_includes_default
14136 #include <netinet/in.h>
14139 #include <$ac_header>
14141 rm -f conftest.$ac_objext
14142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14143 (eval $ac_compile) 2>conftest.er1
14145 grep -v '^ *+' conftest.er1 >conftest.err
14147 cat conftest.err >&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } &&
14150 { ac_try='test -z "$ac_c_werror_flag"
14151 || test ! -s conftest.err'
14152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153 (eval $ac_try) 2>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; } &&
14157 { ac_try='test -s conftest.$ac_objext'
14158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159 (eval $ac_try) 2>&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); }; }; then
14163 eval "$as_ac_Header=yes"
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14168 eval "$as_ac_Header=no"
14170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14175 cat >>confdefs.h <<_ACEOF
14176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14185 for ac_header in sys/ucred.h
14187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14188 echo "$as_me:$LINENO: checking for $ac_header" >&5
14189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 cat >conftest.$ac_ext <<_ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h. */
14199 $ac_includes_default
14200 #ifdef HAVE_SYS_PARAM_H
14201 #include <sys/param.h>
14205 #include <$ac_header>
14207 rm -f conftest.$ac_objext
14208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209 (eval $ac_compile) 2>conftest.er1
14211 grep -v '^ *+' conftest.er1 >conftest.err
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try='test -z "$ac_c_werror_flag"
14217 || test ! -s conftest.err'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; } &&
14223 { ac_try='test -s conftest.$ac_objext'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; }; then
14229 eval "$as_ac_Header=yes"
14231 echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14234 eval "$as_ac_Header=no"
14236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14241 cat >>confdefs.h <<_ACEOF
14242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14253 for ac_func in sigaction sigset
14255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14256 echo "$as_me:$LINENO: checking for $ac_func" >&5
14257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14258 if eval "test \"\${$as_ac_var+set}\" = set"; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 cat >conftest.$ac_ext <<_ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14269 #define $ac_func innocuous_$ac_func
14271 /* System header to define __stub macros and hopefully few prototypes,
14272 which can conflict with char $ac_func (); below.
14273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14274 <limits.h> exists even on freestanding compilers. */
14277 # include <limits.h>
14279 # include <assert.h>
14284 /* Override any gcc2 internal prototype to avoid an error. */
14289 /* We use char because int might match the return type of a gcc2
14290 builtin and then its argument prototype would still apply. */
14292 /* The GNU C library defines this for functions which it implements
14293 to always fail with ENOSYS. Some functions are actually named
14294 something starting with __ and the normal name is an alias. */
14295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14298 char (*f) () = $ac_func;
14307 return f != $ac_func;
14312 rm -f conftest.$ac_objext conftest$ac_exeext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14314 (eval $ac_link) 2>conftest.er1
14316 grep -v '^ *+' conftest.er1 >conftest.err
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -z "$ac_c_werror_flag"
14322 || test ! -s conftest.err'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try='test -s conftest$ac_exeext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 eval "$as_ac_var=yes"
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14339 eval "$as_ac_var=no"
14341 rm -f conftest.err conftest.$ac_objext \
14342 conftest$ac_exeext conftest.$ac_ext
14344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14346 if test `eval echo '${'$as_ac_var'}'` = yes; then
14347 cat >>confdefs.h <<_ACEOF
14348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14355 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14357 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14358 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14359 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 ac_check_lib_save_LIBS=$LIBS
14364 cat >conftest.$ac_ext <<_ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14371 /* Override any gcc2 internal prototype to avoid an error. */
14375 /* We use char because int might match the return type of a gcc2
14376 builtin and then its argument prototype would still apply. */
14386 rm -f conftest.$ac_objext conftest$ac_exeext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14388 (eval $ac_link) 2>conftest.er1
14390 grep -v '^ *+' conftest.er1 >conftest.err
14392 cat conftest.err >&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
14395 { ac_try='test -z "$ac_c_werror_flag"
14396 || test ! -s conftest.err'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; } &&
14402 { ac_try='test -s conftest$ac_exeext'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
14408 ac_cv_lib_V3_sigset=yes
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14413 ac_cv_lib_V3_sigset=no
14415 rm -f conftest.err conftest.$ac_objext \
14416 conftest$ac_exeext conftest.$ac_ext
14417 LIBS=$ac_check_lib_save_LIBS
14419 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14420 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14421 if test $ac_cv_lib_V3_sigset = yes; then
14422 cat >>confdefs.h <<_ACEOF
14423 #define HAVE_LIBV3 1
14432 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14433 echo "$as_me:$LINENO: checking for winsock" >&5
14434 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14435 if test "${ol_cv_winsock+set}" = set; then
14436 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 for curlib in ws2_32 wsock32; do
14440 LIBS="$LIBS -l$curlib"
14441 cat >conftest.$ac_ext <<_ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14447 #include <winsock.h>
14454 select(0,NULL,NULL,NULL,NULL);
14456 gethostname(NULL,0);
14462 rm -f conftest.$ac_objext conftest$ac_exeext
14463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14464 (eval $ac_link) 2>conftest.er1
14466 grep -v '^ *+' conftest.er1 >conftest.err
14468 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } &&
14471 { ac_try='test -z "$ac_c_werror_flag"
14472 || test ! -s conftest.err'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; } &&
14478 { ac_try='test -s conftest$ac_exeext'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; }; then
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14491 rm -f conftest.err conftest.$ac_objext \
14492 conftest$ac_exeext conftest.$ac_ext
14494 if test $ol_cv_winsock = yes; then
14496 cat >>confdefs.h <<\_ACEOF
14497 #define HAVE_WINSOCK 1
14500 ac_cv_func_socket=yes
14501 ac_cv_func_select=yes
14502 ac_cv_func_closesocket=yes
14503 ac_cv_func_gethostname=yes
14504 if test $curlib = ws2_32; then
14505 ol_cv_winsock=winsock2
14507 cat >>confdefs.h <<\_ACEOF
14508 #define HAVE_WINSOCK2 1
14517 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14518 echo "${ECHO_T}$ol_cv_winsock" >&6
14522 echo "$as_me:$LINENO: checking for socket" >&5
14523 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14524 if test "${ac_cv_func_socket+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 cat >conftest.$ac_ext <<_ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14533 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14535 #define socket innocuous_socket
14537 /* System header to define __stub macros and hopefully few prototypes,
14538 which can conflict with char socket (); below.
14539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14540 <limits.h> exists even on freestanding compilers. */
14543 # include <limits.h>
14545 # include <assert.h>
14550 /* Override any gcc2 internal prototype to avoid an error. */
14555 /* We use char because int might match the return type of a gcc2
14556 builtin and then its argument prototype would still apply. */
14558 /* The GNU C library defines this for functions which it implements
14559 to always fail with ENOSYS. Some functions are actually named
14560 something starting with __ and the normal name is an alias. */
14561 #if defined (__stub_socket) || defined (__stub___socket)
14564 char (*f) () = socket;
14573 return f != socket;
14578 rm -f conftest.$ac_objext conftest$ac_exeext
14579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14580 (eval $ac_link) 2>conftest.er1
14582 grep -v '^ *+' conftest.er1 >conftest.err
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
14587 { ac_try='test -z "$ac_c_werror_flag"
14588 || test ! -s conftest.err'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; } &&
14594 { ac_try='test -s conftest$ac_exeext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 ac_cv_func_socket=yes
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14605 ac_cv_func_socket=no
14607 rm -f conftest.err conftest.$ac_objext \
14608 conftest$ac_exeext conftest.$ac_ext
14610 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14611 echo "${ECHO_T}$ac_cv_func_socket" >&6
14612 if test $ac_cv_func_socket = yes; then
14617 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14618 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14619 if test "${ac_cv_lib_socket_main+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14622 ac_check_lib_save_LIBS=$LIBS
14623 LIBS="-lsocket $LIBS"
14624 cat >conftest.$ac_ext <<_ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h. */
14640 rm -f conftest.$ac_objext conftest$ac_exeext
14641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14642 (eval $ac_link) 2>conftest.er1
14644 grep -v '^ *+' conftest.er1 >conftest.err
14646 cat conftest.err >&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } &&
14649 { ac_try='test -z "$ac_c_werror_flag"
14650 || test ! -s conftest.err'
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; } &&
14656 { ac_try='test -s conftest$ac_exeext'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; }; then
14662 ac_cv_lib_socket_main=yes
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 ac_cv_lib_socket_main=no
14669 rm -f conftest.err conftest.$ac_objext \
14670 conftest$ac_exeext conftest.$ac_ext
14671 LIBS=$ac_check_lib_save_LIBS
14673 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14674 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14675 if test $ac_cv_lib_socket_main = yes; then
14676 cat >>confdefs.h <<_ACEOF
14677 #define HAVE_LIBSOCKET 1
14680 LIBS="-lsocket $LIBS"
14685 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14686 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14687 if test "${ac_cv_lib_net_main+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14690 ac_check_lib_save_LIBS=$LIBS
14692 cat >conftest.$ac_ext <<_ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14708 rm -f conftest.$ac_objext conftest$ac_exeext
14709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14710 (eval $ac_link) 2>conftest.er1
14712 grep -v '^ *+' conftest.er1 >conftest.err
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } &&
14717 { ac_try='test -z "$ac_c_werror_flag"
14718 || test ! -s conftest.err'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; } &&
14724 { ac_try='test -s conftest$ac_exeext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14730 ac_cv_lib_net_main=yes
14732 echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14735 ac_cv_lib_net_main=no
14737 rm -f conftest.err conftest.$ac_objext \
14738 conftest$ac_exeext conftest.$ac_ext
14739 LIBS=$ac_check_lib_save_LIBS
14741 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14742 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14743 if test $ac_cv_lib_net_main = yes; then
14744 cat >>confdefs.h <<_ACEOF
14745 #define HAVE_LIBNET 1
14753 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14754 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14755 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14758 ac_check_lib_save_LIBS=$LIBS
14759 LIBS="-lnsl_s $LIBS"
14760 cat >conftest.$ac_ext <<_ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h. */
14776 rm -f conftest.$ac_objext conftest$ac_exeext
14777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14778 (eval $ac_link) 2>conftest.er1
14780 grep -v '^ *+' conftest.er1 >conftest.err
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
14785 { ac_try='test -z "$ac_c_werror_flag"
14786 || test ! -s conftest.err'
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; } &&
14792 { ac_try='test -s conftest$ac_exeext'
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 ac_cv_lib_nsl_s_main=yes
14800 echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 ac_cv_lib_nsl_s_main=no
14805 rm -f conftest.err conftest.$ac_objext \
14806 conftest$ac_exeext conftest.$ac_ext
14807 LIBS=$ac_check_lib_save_LIBS
14809 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14810 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14811 if test $ac_cv_lib_nsl_s_main = yes; then
14812 cat >>confdefs.h <<_ACEOF
14813 #define HAVE_LIBNSL_S 1
14816 LIBS="-lnsl_s $LIBS"
14821 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14822 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14823 if test "${ac_cv_lib_nsl_main+set}" = set; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 ac_check_lib_save_LIBS=$LIBS
14828 cat >conftest.$ac_ext <<_ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14844 rm -f conftest.$ac_objext conftest$ac_exeext
14845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14846 (eval $ac_link) 2>conftest.er1
14848 grep -v '^ *+' conftest.er1 >conftest.err
14850 cat conftest.err >&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } &&
14853 { ac_try='test -z "$ac_c_werror_flag"
14854 || test ! -s conftest.err'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; } &&
14860 { ac_try='test -s conftest$ac_exeext'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }; then
14866 ac_cv_lib_nsl_main=yes
14868 echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.$ac_ext >&5
14871 ac_cv_lib_nsl_main=no
14873 rm -f conftest.err conftest.$ac_objext \
14874 conftest$ac_exeext conftest.$ac_ext
14875 LIBS=$ac_check_lib_save_LIBS
14877 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14878 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14879 if test $ac_cv_lib_nsl_main = yes; then
14880 cat >>confdefs.h <<_ACEOF
14881 #define HAVE_LIBNSL 1
14889 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14890 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14891 if test "${ac_cv_lib_inet_socket+set}" = set; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 ac_check_lib_save_LIBS=$LIBS
14895 LIBS="-linet $LIBS"
14896 cat >conftest.$ac_ext <<_ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14903 /* Override any gcc2 internal prototype to avoid an error. */
14907 /* We use char because int might match the return type of a gcc2
14908 builtin and then its argument prototype would still apply. */
14918 rm -f conftest.$ac_objext conftest$ac_exeext
14919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14920 (eval $ac_link) 2>conftest.er1
14922 grep -v '^ *+' conftest.er1 >conftest.err
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } &&
14927 { ac_try='test -z "$ac_c_werror_flag"
14928 || test ! -s conftest.err'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest$ac_exeext'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 ac_cv_lib_inet_socket=yes
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 ac_cv_lib_inet_socket=no
14947 rm -f conftest.err conftest.$ac_objext \
14948 conftest$ac_exeext conftest.$ac_ext
14949 LIBS=$ac_check_lib_save_LIBS
14951 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14952 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14953 if test $ac_cv_lib_inet_socket = yes; then
14954 cat >>confdefs.h <<_ACEOF
14955 #define HAVE_LIBINET 1
14958 LIBS="-linet $LIBS"
14963 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14964 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14965 if test "${ac_cv_lib_gen_main+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 ac_check_lib_save_LIBS=$LIBS
14970 cat >conftest.$ac_ext <<_ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14988 (eval $ac_link) 2>conftest.er1
14990 grep -v '^ *+' conftest.er1 >conftest.err
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
14995 { ac_try='test -z "$ac_c_werror_flag"
14996 || test ! -s conftest.err'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest$ac_exeext'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 ac_cv_lib_gen_main=yes
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15013 ac_cv_lib_gen_main=no
15015 rm -f conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
15017 LIBS=$ac_check_lib_save_LIBS
15019 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15020 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15021 if test $ac_cv_lib_gen_main = yes; then
15022 cat >>confdefs.h <<_ACEOF
15023 #define HAVE_LIBGEN 1
15034 echo "$as_me:$LINENO: checking for select" >&5
15035 echo $ECHO_N "checking for select... $ECHO_C" >&6
15036 if test "${ac_cv_func_select+set}" = set; then
15037 echo $ECHO_N "(cached) $ECHO_C" >&6
15039 cat >conftest.$ac_ext <<_ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h. */
15045 /* Define select to an innocuous variant, in case <limits.h> declares select.
15046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15047 #define select innocuous_select
15049 /* System header to define __stub macros and hopefully few prototypes,
15050 which can conflict with char select (); below.
15051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15052 <limits.h> exists even on freestanding compilers. */
15055 # include <limits.h>
15057 # include <assert.h>
15062 /* Override any gcc2 internal prototype to avoid an error. */
15067 /* We use char because int might match the return type of a gcc2
15068 builtin and then its argument prototype would still apply. */
15070 /* The GNU C library defines this for functions which it implements
15071 to always fail with ENOSYS. Some functions are actually named
15072 something starting with __ and the normal name is an alias. */
15073 #if defined (__stub_select) || defined (__stub___select)
15076 char (*f) () = select;
15085 return f != select;
15090 rm -f conftest.$ac_objext conftest$ac_exeext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15092 (eval $ac_link) 2>conftest.er1
15094 grep -v '^ *+' conftest.er1 >conftest.err
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } &&
15099 { ac_try='test -z "$ac_c_werror_flag"
15100 || test ! -s conftest.err'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; } &&
15106 { ac_try='test -s conftest$ac_exeext'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_cv_func_select=yes
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15117 ac_cv_func_select=no
15119 rm -f conftest.err conftest.$ac_objext \
15120 conftest$ac_exeext conftest.$ac_ext
15122 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15123 echo "${ECHO_T}$ac_cv_func_select" >&6
15124 if test $ac_cv_func_select = yes; then
15127 { { echo "$as_me:$LINENO: error: select() required." >&5
15128 echo "$as_me: error: select() required." >&2;}
15129 { (exit 1); exit 1; }; }
15133 if test "${ac_cv_header_winsock_h}" != yes; then
15136 for ac_header in sys/select.h sys/socket.h
15138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15140 echo "$as_me:$LINENO: checking for $ac_header" >&5
15141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15148 # Is the header compilable?
15149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15151 cat >conftest.$ac_ext <<_ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15157 $ac_includes_default
15158 #include <$ac_header>
15160 rm -f conftest.$ac_objext
15161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15162 (eval $ac_compile) 2>conftest.er1
15164 grep -v '^ *+' conftest.er1 >conftest.err
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } &&
15169 { ac_try='test -z "$ac_c_werror_flag"
15170 || test ! -s conftest.err'
15171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172 (eval $ac_try) 2>&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; } &&
15176 { ac_try='test -s conftest.$ac_objext'
15177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; }; then
15182 ac_header_compiler=yes
15184 echo "$as_me: failed program was:" >&5
15185 sed 's/^/| /' conftest.$ac_ext >&5
15187 ac_header_compiler=no
15189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15191 echo "${ECHO_T}$ac_header_compiler" >&6
15193 # Is the header present?
15194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15196 cat >conftest.$ac_ext <<_ACEOF
15199 cat confdefs.h >>conftest.$ac_ext
15200 cat >>conftest.$ac_ext <<_ACEOF
15201 /* end confdefs.h. */
15202 #include <$ac_header>
15204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15207 grep -v '^ *+' conftest.er1 >conftest.err
15209 cat conftest.err >&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } >/dev/null; then
15212 if test -s conftest.err; then
15213 ac_cpp_err=$ac_c_preproc_warn_flag
15214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15221 if test -z "$ac_cpp_err"; then
15222 ac_header_preproc=yes
15224 echo "$as_me: failed program was:" >&5
15225 sed 's/^/| /' conftest.$ac_ext >&5
15227 ac_header_preproc=no
15229 rm -f conftest.err conftest.$ac_ext
15230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15231 echo "${ECHO_T}$ac_header_preproc" >&6
15233 # So? What about this header?
15234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15240 ac_header_preproc=yes
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15257 ## ------------------------------------------ ##
15258 ## Report this to the AC_PACKAGE_NAME lists. ##
15259 ## ------------------------------------------ ##
15262 sed "s/^/$as_me: WARNING: /" >&2
15265 echo "$as_me:$LINENO: checking for $ac_header" >&5
15266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 eval "$as_ac_Header=\$ac_header_preproc"
15272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15277 cat >>confdefs.h <<_ACEOF
15278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15285 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15286 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15287 if test "${ac_cv_func_select_args+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15291 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15292 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15293 cat >conftest.$ac_ext <<_ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 $ac_includes_default
15300 #if HAVE_SYS_SELECT_H
15301 # include <sys/select.h>
15303 #if HAVE_SYS_SOCKET_H
15304 # include <sys/socket.h>
15310 extern int select ($ac_arg1,
15311 $ac_arg234, $ac_arg234, $ac_arg234,
15317 rm -f conftest.$ac_objext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15319 (eval $ac_compile) 2>conftest.er1
15321 grep -v '^ *+' conftest.er1 >conftest.err
15323 cat conftest.err >&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } &&
15326 { ac_try='test -z "$ac_c_werror_flag"
15327 || test ! -s conftest.err'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; } &&
15333 { ac_try='test -s conftest.$ac_objext'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15339 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15349 # Provide a safe default value.
15350 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15353 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15354 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15355 ac_save_IFS=$IFS; IFS=','
15356 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15360 cat >>confdefs.h <<_ACEOF
15361 #define SELECT_TYPE_ARG1 $1
15365 cat >>confdefs.h <<_ACEOF
15366 #define SELECT_TYPE_ARG234 ($2)
15370 cat >>confdefs.h <<_ACEOF
15371 #define SELECT_TYPE_ARG5 ($3)
15380 for ac_func in poll
15382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15383 echo "$as_me:$LINENO: checking for $ac_func" >&5
15384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15385 if eval "test \"\${$as_ac_var+set}\" = set"; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 cat >conftest.$ac_ext <<_ACEOF
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h. */
15394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15396 #define $ac_func innocuous_$ac_func
15398 /* System header to define __stub macros and hopefully few prototypes,
15399 which can conflict with char $ac_func (); below.
15400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15401 <limits.h> exists even on freestanding compilers. */
15404 # include <limits.h>
15406 # include <assert.h>
15411 /* Override any gcc2 internal prototype to avoid an error. */
15416 /* We use char because int might match the return type of a gcc2
15417 builtin and then its argument prototype would still apply. */
15419 /* The GNU C library defines this for functions which it implements
15420 to always fail with ENOSYS. Some functions are actually named
15421 something starting with __ and the normal name is an alias. */
15422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15425 char (*f) () = $ac_func;
15434 return f != $ac_func;
15439 rm -f conftest.$ac_objext conftest$ac_exeext
15440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15441 (eval $ac_link) 2>conftest.er1
15443 grep -v '^ *+' conftest.er1 >conftest.err
15445 cat conftest.err >&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } &&
15448 { ac_try='test -z "$ac_c_werror_flag"
15449 || test ! -s conftest.err'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; } &&
15455 { ac_try='test -s conftest$ac_exeext'
15456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457 (eval $ac_try) 2>&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; }; then
15461 eval "$as_ac_var=yes"
15463 echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15466 eval "$as_ac_var=no"
15468 rm -f conftest.err conftest.$ac_objext \
15469 conftest$ac_exeext conftest.$ac_ext
15471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15473 if test `eval echo '${'$as_ac_var'}'` = yes; then
15474 cat >>confdefs.h <<_ACEOF
15475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15482 for ac_header in poll.h
15484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15486 echo "$as_me:$LINENO: checking for $ac_header" >&5
15487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15494 # Is the header compilable?
15495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 $ac_includes_default
15504 #include <$ac_header>
15506 rm -f conftest.$ac_objext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15508 (eval $ac_compile) 2>conftest.er1
15510 grep -v '^ *+' conftest.er1 >conftest.err
15512 cat conftest.err >&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } &&
15515 { ac_try='test -z "$ac_c_werror_flag"
15516 || test ! -s conftest.err'
15517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; } &&
15522 { ac_try='test -s conftest.$ac_objext'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_header_compiler=yes
15530 echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15533 ac_header_compiler=no
15535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15537 echo "${ECHO_T}$ac_header_compiler" >&6
15539 # Is the header present?
15540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15542 cat >conftest.$ac_ext <<_ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15548 #include <$ac_header>
15550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15553 grep -v '^ *+' conftest.er1 >conftest.err
15555 cat conftest.err >&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } >/dev/null; then
15558 if test -s conftest.err; then
15559 ac_cpp_err=$ac_c_preproc_warn_flag
15560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15567 if test -z "$ac_cpp_err"; then
15568 ac_header_preproc=yes
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ac_header_preproc=no
15575 rm -f conftest.err conftest.$ac_ext
15576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15577 echo "${ECHO_T}$ac_header_preproc" >&6
15579 # So? What about this header?
15580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15586 ac_header_preproc=yes
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15603 ## ------------------------------------------ ##
15604 ## Report this to the AC_PACKAGE_NAME lists. ##
15605 ## ------------------------------------------ ##
15608 sed "s/^/$as_me: WARNING: /" >&2
15611 echo "$as_me:$LINENO: checking for $ac_header" >&5
15612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15614 echo $ECHO_N "(cached) $ECHO_C" >&6
15616 eval "$as_ac_Header=\$ac_header_preproc"
15618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15623 cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15633 for ac_header in sys/epoll.h
15635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15637 echo "$as_me:$LINENO: checking for $ac_header" >&5
15638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15645 # Is the header compilable?
15646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15648 cat >conftest.$ac_ext <<_ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15654 $ac_includes_default
15655 #include <$ac_header>
15657 rm -f conftest.$ac_objext
15658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15659 (eval $ac_compile) 2>conftest.er1
15661 grep -v '^ *+' conftest.er1 >conftest.err
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } &&
15666 { ac_try='test -z "$ac_c_werror_flag"
15667 || test ! -s conftest.err'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; } &&
15673 { ac_try='test -s conftest.$ac_objext'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 ac_header_compiler=yes
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 ac_header_compiler=no
15686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15688 echo "${ECHO_T}$ac_header_compiler" >&6
15690 # Is the header present?
15691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15693 cat >conftest.$ac_ext <<_ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h. */
15699 #include <$ac_header>
15701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15704 grep -v '^ *+' conftest.er1 >conftest.err
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } >/dev/null; then
15709 if test -s conftest.err; then
15710 ac_cpp_err=$ac_c_preproc_warn_flag
15711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15718 if test -z "$ac_cpp_err"; then
15719 ac_header_preproc=yes
15721 echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15724 ac_header_preproc=no
15726 rm -f conftest.err conftest.$ac_ext
15727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15728 echo "${ECHO_T}$ac_header_preproc" >&6
15730 # So? What about this header?
15731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15737 ac_header_preproc=yes
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15754 ## ------------------------------------------ ##
15755 ## Report this to the AC_PACKAGE_NAME lists. ##
15756 ## ------------------------------------------ ##
15759 sed "s/^/$as_me: WARNING: /" >&2
15762 echo "$as_me:$LINENO: checking for $ac_header" >&5
15763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 eval "$as_ac_Header=\$ac_header_preproc"
15769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15774 cat >>confdefs.h <<_ACEOF
15775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15782 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15783 echo "$as_me:$LINENO: checking for epoll system call" >&5
15784 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15785 if test "$cross_compiling" = yes; then
15786 echo "$as_me:$LINENO: result: no" >&5
15787 echo "${ECHO_T}no" >&6
15789 cat >conftest.$ac_ext <<_ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15795 int main(int argc, char *argv)
15797 int epfd = epoll_create(256);
15798 exit (epfd == -1 ? 1 : 0);
15801 rm -f conftest$ac_exeext
15802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15803 (eval $ac_link) 2>&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; }; then
15812 echo "$as_me:$LINENO: result: yes" >&5
15813 echo "${ECHO_T}yes" >&6
15815 cat >>confdefs.h <<\_ACEOF
15816 #define HAVE_EPOLL 1
15820 echo "$as_me: program exited with status $ac_status" >&5
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15824 ( exit $ac_status )
15825 echo "$as_me:$LINENO: result: no" >&5
15826 echo "${ECHO_T}no" >&6
15828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15833 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15834 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15835 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 cat >conftest.$ac_ext <<_ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15847 #include <sys/types.h>
15850 #include <stdlib.h>
15855 char *c = (char *) *sys_errlist
15860 rm -f conftest.$ac_objext
15861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15862 (eval $ac_compile) 2>conftest.er1
15864 grep -v '^ *+' conftest.er1 >conftest.err
15866 cat conftest.err >&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); } &&
15869 { ac_try='test -z "$ac_c_werror_flag"
15870 || test ! -s conftest.err'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; } &&
15876 { ac_try='test -s conftest.$ac_objext'
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; }; then
15882 ol_cv_dcl_sys_errlist=yes
15883 ol_cv_have_sys_errlist=yes
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15888 ol_cv_dcl_sys_errlist=no
15890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15892 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15893 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15895 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15896 if test $ol_cv_dcl_sys_errlist = no ; then
15898 cat >>confdefs.h <<\_ACEOF
15899 #define DECL_SYS_ERRLIST 1
15903 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15904 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15905 if test "${ol_cv_have_sys_errlist+set}" = set; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15909 cat >conftest.$ac_ext <<_ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15919 char *c = (char *) *sys_errlist
15924 rm -f conftest.$ac_objext conftest$ac_exeext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15926 (eval $ac_link) 2>conftest.er1
15928 grep -v '^ *+' conftest.er1 >conftest.err
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } &&
15933 { ac_try='test -z "$ac_c_werror_flag"
15934 || test ! -s conftest.err'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; } &&
15940 { ac_try='test -s conftest$ac_exeext'
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; }; then
15946 ol_cv_have_sys_errlist=yes
15948 echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15951 ol_cv_have_sys_errlist=no
15953 rm -f conftest.err conftest.$ac_objext \
15954 conftest$ac_exeext conftest.$ac_ext
15956 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15957 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15959 if test $ol_cv_have_sys_errlist = yes ; then
15961 cat >>confdefs.h <<\_ACEOF
15962 #define HAVE_SYS_ERRLIST 1
15968 for ac_func in strerror strerror_r
15970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15971 echo "$as_me:$LINENO: checking for $ac_func" >&5
15972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15973 if eval "test \"\${$as_ac_var+set}\" = set"; then
15974 echo $ECHO_N "(cached) $ECHO_C" >&6
15976 cat >conftest.$ac_ext <<_ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h. */
15982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15984 #define $ac_func innocuous_$ac_func
15986 /* System header to define __stub macros and hopefully few prototypes,
15987 which can conflict with char $ac_func (); below.
15988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15989 <limits.h> exists even on freestanding compilers. */
15992 # include <limits.h>
15994 # include <assert.h>
15999 /* Override any gcc2 internal prototype to avoid an error. */
16004 /* We use char because int might match the return type of a gcc2
16005 builtin and then its argument prototype would still apply. */
16007 /* The GNU C library defines this for functions which it implements
16008 to always fail with ENOSYS. Some functions are actually named
16009 something starting with __ and the normal name is an alias. */
16010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16013 char (*f) () = $ac_func;
16022 return f != $ac_func;
16027 rm -f conftest.$ac_objext conftest$ac_exeext
16028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16029 (eval $ac_link) 2>conftest.er1
16031 grep -v '^ *+' conftest.er1 >conftest.err
16033 cat conftest.err >&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } &&
16036 { ac_try='test -z "$ac_c_werror_flag"
16037 || test ! -s conftest.err'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; } &&
16043 { ac_try='test -s conftest$ac_exeext'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; }; then
16049 eval "$as_ac_var=yes"
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16054 eval "$as_ac_var=no"
16056 rm -f conftest.err conftest.$ac_objext \
16057 conftest$ac_exeext conftest.$ac_ext
16059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16061 if test `eval echo '${'$as_ac_var'}'` = yes; then
16062 cat >>confdefs.h <<_ACEOF
16063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16069 ol_cv_func_strerror_r=no
16070 if test "${ac_cv_func_strerror_r}" = yes ; then
16071 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16072 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16073 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 cat >conftest.$ac_ext <<_ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <string.h>
16085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16086 $EGREP "strerror_r" >/dev/null 2>&1; then
16087 ol_decl_strerror_r=yes
16089 ol_decl_strerror_r=no
16093 if test $ol_decl_strerror_r = yes ; then
16094 cat >conftest.$ac_ext <<_ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 #include <string.h>
16104 /* from autoconf 2.59 */
16106 char x = *strerror_r (0, buf, sizeof buf);
16107 char *p = strerror_r (0, buf, sizeof buf);
16113 rm -f conftest.$ac_objext
16114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16115 (eval $ac_compile) 2>conftest.er1
16117 grep -v '^ *+' conftest.er1 >conftest.err
16119 cat conftest.err >&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } &&
16122 { ac_try='test -z "$ac_c_werror_flag"
16123 || test ! -s conftest.err'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; } &&
16129 { ac_try='test -s conftest.$ac_objext'
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; }; then
16135 ol_cv_nonposix_strerror_r=yes
16137 echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16140 ol_cv_nonposix_strerror_r=no
16142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16144 if test "$cross_compiling" = yes; then
16145 ol_cv_nonposix_strerror=no
16147 cat >conftest.$ac_ext <<_ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16157 strerror_r( 1, buf, sizeof buf );
16158 exit( buf[0] == 0 );
16162 rm -f conftest$ac_exeext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16164 (eval $ac_link) 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; }; then
16173 ol_cv_nonposix_strerror_r=yes
16175 echo "$as_me: program exited with status $ac_status" >&5
16176 echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 ( exit $ac_status )
16180 ol_cv_nonposix_strerror=no
16182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16187 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16188 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16189 if test $ol_cv_nonposix_strerror_r = yes ; then
16191 cat >>confdefs.h <<\_ACEOF
16192 #define HAVE_NONPOSIX_STRERROR_R 1
16197 elif test "${ac_cv_func_strerror}" = no ; then
16198 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16199 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16200 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16204 cat >conftest.$ac_ext <<_ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16212 #include <sys/types.h>
16215 #include <stdlib.h>
16220 char *c = (char *) *sys_errlist
16225 rm -f conftest.$ac_objext
16226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16227 (eval $ac_compile) 2>conftest.er1
16229 grep -v '^ *+' conftest.er1 >conftest.err
16231 cat conftest.err >&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); } &&
16234 { ac_try='test -z "$ac_c_werror_flag"
16235 || test ! -s conftest.err'
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; } &&
16241 { ac_try='test -s conftest.$ac_objext'
16242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16243 (eval $ac_try) 2>&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; }; then
16247 ol_cv_dcl_sys_errlist=yes
16248 ol_cv_have_sys_errlist=yes
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253 ol_cv_dcl_sys_errlist=no
16255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16257 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16258 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16260 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16261 if test $ol_cv_dcl_sys_errlist = no ; then
16263 cat >>confdefs.h <<\_ACEOF
16264 #define DECL_SYS_ERRLIST 1
16268 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16269 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16270 if test "${ol_cv_have_sys_errlist+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 cat >conftest.$ac_ext <<_ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h. */
16284 char *c = (char *) *sys_errlist
16289 rm -f conftest.$ac_objext conftest$ac_exeext
16290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16291 (eval $ac_link) 2>conftest.er1
16293 grep -v '^ *+' conftest.er1 >conftest.err
16295 cat conftest.err >&5
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); } &&
16298 { ac_try='test -z "$ac_c_werror_flag"
16299 || test ! -s conftest.err'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; } &&
16305 { ac_try='test -s conftest$ac_exeext'
16306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16307 (eval $ac_try) 2>&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); }; }; then
16311 ol_cv_have_sys_errlist=yes
16313 echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16316 ol_cv_have_sys_errlist=no
16318 rm -f conftest.err conftest.$ac_objext \
16319 conftest$ac_exeext conftest.$ac_ext
16321 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16322 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16324 if test $ol_cv_have_sys_errlist = yes ; then
16326 cat >>confdefs.h <<\_ACEOF
16327 #define HAVE_SYS_ERRLIST 1
16336 for ac_header in regex.h
16338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16340 echo "$as_me:$LINENO: checking for $ac_header" >&5
16341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16348 # Is the header compilable?
16349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16351 cat >conftest.$ac_ext <<_ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h. */
16357 $ac_includes_default
16358 #include <$ac_header>
16360 rm -f conftest.$ac_objext
16361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16362 (eval $ac_compile) 2>conftest.er1
16364 grep -v '^ *+' conftest.er1 >conftest.err
16366 cat conftest.err >&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } &&
16369 { ac_try='test -z "$ac_c_werror_flag"
16370 || test ! -s conftest.err'
16371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372 (eval $ac_try) 2>&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; } &&
16376 { ac_try='test -s conftest.$ac_objext'
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382 ac_header_compiler=yes
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16387 ac_header_compiler=no
16389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16391 echo "${ECHO_T}$ac_header_compiler" >&6
16393 # Is the header present?
16394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16396 cat >conftest.$ac_ext <<_ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16402 #include <$ac_header>
16404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16407 grep -v '^ *+' conftest.er1 >conftest.err
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } >/dev/null; then
16412 if test -s conftest.err; then
16413 ac_cpp_err=$ac_c_preproc_warn_flag
16414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16421 if test -z "$ac_cpp_err"; then
16422 ac_header_preproc=yes
16424 echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16427 ac_header_preproc=no
16429 rm -f conftest.err conftest.$ac_ext
16430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16431 echo "${ECHO_T}$ac_header_preproc" >&6
16433 # So? What about this header?
16434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16440 ac_header_preproc=yes
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16457 ## ------------------------------------------ ##
16458 ## Report this to the AC_PACKAGE_NAME lists. ##
16459 ## ------------------------------------------ ##
16462 sed "s/^/$as_me: WARNING: /" >&2
16465 echo "$as_me:$LINENO: checking for $ac_header" >&5
16466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16470 eval "$as_ac_Header=\$ac_header_preproc"
16472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16477 cat >>confdefs.h <<_ACEOF
16478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16485 if test "$ac_cv_header_regex_h" != yes ; then
16486 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16487 echo "$as_me: error: POSIX regex.h required." >&2;}
16488 { (exit 1); exit 1; }; }
16490 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16491 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16492 if test "${ac_cv_search_regfree+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 ac_func_search_save_LIBS=$LIBS
16496 ac_cv_search_regfree=no
16497 cat >conftest.$ac_ext <<_ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16504 /* Override any gcc2 internal prototype to avoid an error. */
16508 /* We use char because int might match the return type of a gcc2
16509 builtin and then its argument prototype would still apply. */
16519 rm -f conftest.$ac_objext conftest$ac_exeext
16520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16521 (eval $ac_link) 2>conftest.er1
16523 grep -v '^ *+' conftest.er1 >conftest.err
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag"
16529 || test ! -s conftest.err'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest$ac_exeext'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 ac_cv_search_regfree="none required"
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16547 rm -f conftest.err conftest.$ac_objext \
16548 conftest$ac_exeext conftest.$ac_ext
16549 if test "$ac_cv_search_regfree" = no; then
16550 for ac_lib in regex gnuregex; do
16551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16552 cat >conftest.$ac_ext <<_ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16559 /* Override any gcc2 internal prototype to avoid an error. */
16563 /* We use char because int might match the return type of a gcc2
16564 builtin and then its argument prototype would still apply. */
16574 rm -f conftest.$ac_objext conftest$ac_exeext
16575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16576 (eval $ac_link) 2>conftest.er1
16578 grep -v '^ *+' conftest.er1 >conftest.err
16580 cat conftest.err >&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } &&
16583 { ac_try='test -z "$ac_c_werror_flag"
16584 || test ! -s conftest.err'
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; } &&
16590 { ac_try='test -s conftest$ac_exeext'
16591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592 (eval $ac_try) 2>&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); }; }; then
16596 ac_cv_search_regfree="-l$ac_lib"
16599 echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16603 rm -f conftest.err conftest.$ac_objext \
16604 conftest$ac_exeext conftest.$ac_ext
16607 LIBS=$ac_func_search_save_LIBS
16609 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16610 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16611 if test "$ac_cv_search_regfree" != no; then
16612 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16615 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16616 echo "$as_me: error: POSIX regex required." >&2;}
16617 { (exit 1); exit 1; }; }
16622 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16623 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16624 if test "${ol_cv_c_posix_regex+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 if test "$cross_compiling" = yes; then
16629 ol_cv_c_posix_regex=cross
16631 cat >conftest.$ac_ext <<_ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16638 #include <sys/types.h>
16640 static char *pattern, *string;
16648 if(regcomp(&re, pattern, 0)) {
16652 string = "ALL MATCH";
16654 rc = regexec(&re, string, 0, (void*)0, 0);
16661 rm -f conftest$ac_exeext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16663 (eval $ac_link) 2>&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ol_cv_c_posix_regex=yes
16674 echo "$as_me: program exited with status $ac_status" >&5
16675 echo "$as_me: failed program was:" >&5
16676 sed 's/^/| /' conftest.$ac_ext >&5
16678 ( exit $ac_status )
16679 ol_cv_c_posix_regex=no
16681 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16684 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16685 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16687 if test "$ol_cv_c_posix_regex" = no ; then
16688 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16689 echo "$as_me: error: broken POSIX regex!" >&2;}
16690 { (exit 1); exit 1; }; }
16696 for ac_header in sys/uuid.h
16698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16700 echo "$as_me:$LINENO: checking for $ac_header" >&5
16701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16708 # Is the header compilable?
16709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16711 cat >conftest.$ac_ext <<_ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16717 $ac_includes_default
16718 #include <$ac_header>
16720 rm -f conftest.$ac_objext
16721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16722 (eval $ac_compile) 2>conftest.er1
16724 grep -v '^ *+' conftest.er1 >conftest.err
16726 cat conftest.err >&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); } &&
16729 { ac_try='test -z "$ac_c_werror_flag"
16730 || test ! -s conftest.err'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } &&
16736 { ac_try='test -s conftest.$ac_objext'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_header_compiler=yes
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16747 ac_header_compiler=no
16749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16751 echo "${ECHO_T}$ac_header_compiler" >&6
16753 # Is the header present?
16754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16756 cat >conftest.$ac_ext <<_ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762 #include <$ac_header>
16764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16767 grep -v '^ *+' conftest.er1 >conftest.err
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } >/dev/null; then
16772 if test -s conftest.err; then
16773 ac_cpp_err=$ac_c_preproc_warn_flag
16774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16781 if test -z "$ac_cpp_err"; then
16782 ac_header_preproc=yes
16784 echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16787 ac_header_preproc=no
16789 rm -f conftest.err conftest.$ac_ext
16790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16791 echo "${ECHO_T}$ac_header_preproc" >&6
16793 # So? What about this header?
16794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16800 ac_header_preproc=yes
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16817 ## ------------------------------------------ ##
16818 ## Report this to the AC_PACKAGE_NAME lists. ##
16819 ## ------------------------------------------ ##
16822 sed "s/^/$as_me: WARNING: /" >&2
16825 echo "$as_me:$LINENO: checking for $ac_header" >&5
16826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16828 echo $ECHO_N "(cached) $ECHO_C" >&6
16830 eval "$as_ac_Header=\$ac_header_preproc"
16832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16837 cat >>confdefs.h <<_ACEOF
16838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16845 if test $ac_cv_header_sys_uuid_h = yes ; then
16847 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16848 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16849 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 ac_func_search_save_LIBS=$LIBS
16853 ac_cv_search_uuid_to_str=no
16854 cat >conftest.$ac_ext <<_ACEOF
16857 cat confdefs.h >>conftest.$ac_ext
16858 cat >>conftest.$ac_ext <<_ACEOF
16859 /* end confdefs.h. */
16861 /* Override any gcc2 internal prototype to avoid an error. */
16865 /* We use char because int might match the return type of a gcc2
16866 builtin and then its argument prototype would still apply. */
16867 char uuid_to_str ();
16876 rm -f conftest.$ac_objext conftest$ac_exeext
16877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16878 (eval $ac_link) 2>conftest.er1
16880 grep -v '^ *+' conftest.er1 >conftest.err
16882 cat conftest.err >&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } &&
16885 { ac_try='test -z "$ac_c_werror_flag"
16886 || test ! -s conftest.err'
16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 (eval $ac_try) 2>&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; } &&
16892 { ac_try='test -s conftest$ac_exeext'
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 ac_cv_search_uuid_to_str="none required"
16900 echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16904 rm -f conftest.err conftest.$ac_objext \
16905 conftest$ac_exeext conftest.$ac_ext
16906 if test "$ac_cv_search_uuid_to_str" = no; then
16907 for ac_lib in uuid; do
16908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16909 cat >conftest.$ac_ext <<_ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16916 /* Override any gcc2 internal prototype to avoid an error. */
16920 /* We use char because int might match the return type of a gcc2
16921 builtin and then its argument prototype would still apply. */
16922 char uuid_to_str ();
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16933 (eval $ac_link) 2>conftest.er1
16935 grep -v '^ *+' conftest.er1 >conftest.err
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -z "$ac_c_werror_flag"
16941 || test ! -s conftest.err'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest$ac_exeext'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 ac_cv_search_uuid_to_str="-l$ac_lib"
16956 echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16960 rm -f conftest.err conftest.$ac_objext \
16961 conftest$ac_exeext conftest.$ac_ext
16964 LIBS=$ac_func_search_save_LIBS
16966 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16967 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16968 if test "$ac_cv_search_uuid_to_str" != no; then
16969 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16977 if test have_uuid = yes ; then
16979 cat >>confdefs.h <<\_ACEOF
16980 #define HAVE_UUID_TO_STR 1
16984 test "$ac_cv_search_uuid_to_str" = "none required" || \
16985 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
16989 if test $have_uuid = no ; then
16990 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
16991 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
16993 LIBS="$LIBS -lrpcrt4"
16994 cat >conftest.$ac_ext <<_ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17001 int __stdcall UuidCreate(void *);
17002 int __stdcall UuidToStringA(void *,void **);
17009 UuidToStringA(0,0);
17015 rm -f conftest.$ac_objext conftest$ac_exeext
17016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17017 (eval $ac_link) 2>conftest.er1
17019 grep -v '^ *+' conftest.er1 >conftest.err
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -z "$ac_c_werror_flag"
17025 || test ! -s conftest.err'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest$ac_exeext'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17039 echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17044 rm -f conftest.err conftest.$ac_objext \
17045 conftest$ac_exeext conftest.$ac_ext
17046 if test $need_rpcrt = yes; then
17047 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17050 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17051 echo "${ECHO_T}$need_rpcrt" >&6
17054 ol_cv_lib_resolver=no
17055 if test $ol_cv_lib_resolver = no ; then
17056 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17057 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17058 if test "${ol_cv_resolver_none+set}" = set; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 LIBS="$ol_RESOLVER_LIB $LIBS"
17066 cat >conftest.$ac_ext <<_ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17073 #ifdef HAVE_SYS_TYPES_H
17074 # include <sys/types.h>
17076 #include <netinet/in.h>
17077 #ifdef HAVE_ARPA_NAMESER_H
17078 # include <arpa/nameser.h>
17080 #ifdef HAVE_RESOLV_H
17081 # include <resolv.h>
17089 char *request = NULL;
17090 unsigned char reply[64*1024];
17091 unsigned char host[64*1024];
17095 /* Bind 8/9 interface */
17096 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17098 /* Bind 4 interface */
17102 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17106 /* Bind 8/9 interface */
17108 #elif defined(HFIXEDSZ)
17109 /* Bind 4 interface w/ HFIXEDSZ */
17112 /* Bind 4 interface w/o HFIXEDSZ */
17113 p += sizeof(HEADER);
17115 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17123 (eval $ac_link) 2>conftest.er1
17125 grep -v '^ *+' conftest.er1 >conftest.err
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag"
17131 || test ! -s conftest.err'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest$ac_exeext'
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 ol_cv_resolver_none=yes
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 ol_cv_resolver_none=no
17150 rm -f conftest.err conftest.$ac_objext \
17151 conftest$ac_exeext conftest.$ac_ext
17156 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17157 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17159 if test $ol_cv_resolver_none = yes ; then
17160 ol_cv_lib_resolver=yes
17164 if test $ol_cv_lib_resolver = no ; then
17165 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17166 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17167 if test "${ol_cv_resolver_resolv+set}" = set; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17171 ol_RESOLVER_LIB=-lresolv
17173 LIBS="$ol_RESOLVER_LIB $LIBS"
17175 cat >conftest.$ac_ext <<_ACEOF
17178 cat confdefs.h >>conftest.$ac_ext
17179 cat >>conftest.$ac_ext <<_ACEOF
17180 /* end confdefs.h. */
17182 #ifdef HAVE_SYS_TYPES_H
17183 # include <sys/types.h>
17185 #include <netinet/in.h>
17186 #ifdef HAVE_ARPA_NAMESER_H
17187 # include <arpa/nameser.h>
17189 #ifdef HAVE_RESOLV_H
17190 # include <resolv.h>
17198 char *request = NULL;
17199 unsigned char reply[64*1024];
17200 unsigned char host[64*1024];
17204 /* Bind 8/9 interface */
17205 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17207 /* Bind 4 interface */
17211 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17215 /* Bind 8/9 interface */
17217 #elif defined(HFIXEDSZ)
17218 /* Bind 4 interface w/ HFIXEDSZ */
17221 /* Bind 4 interface w/o HFIXEDSZ */
17222 p += sizeof(HEADER);
17224 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17232 (eval $ac_link) 2>conftest.er1
17234 grep -v '^ *+' conftest.er1 >conftest.err
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } &&
17239 { ac_try='test -z "$ac_c_werror_flag"
17240 || test ! -s conftest.err'
17241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242 (eval $ac_try) 2>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; } &&
17246 { ac_try='test -s conftest$ac_exeext'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 ol_cv_resolver_resolv=yes
17254 echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17257 ol_cv_resolver_resolv=no
17259 rm -f conftest.err conftest.$ac_objext \
17260 conftest$ac_exeext conftest.$ac_ext
17265 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17266 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17268 if test $ol_cv_resolver_resolv = yes ; then
17269 ol_cv_lib_resolver=-lresolv
17273 if test $ol_cv_lib_resolver = no ; then
17274 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17275 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17276 if test "${ol_cv_resolver_bind+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17280 ol_RESOLVER_LIB=-lbind
17282 LIBS="$ol_RESOLVER_LIB $LIBS"
17284 cat >conftest.$ac_ext <<_ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17291 #ifdef HAVE_SYS_TYPES_H
17292 # include <sys/types.h>
17294 #include <netinet/in.h>
17295 #ifdef HAVE_ARPA_NAMESER_H
17296 # include <arpa/nameser.h>
17298 #ifdef HAVE_RESOLV_H
17299 # include <resolv.h>
17307 char *request = NULL;
17308 unsigned char reply[64*1024];
17309 unsigned char host[64*1024];
17313 /* Bind 8/9 interface */
17314 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17316 /* Bind 4 interface */
17320 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17324 /* Bind 8/9 interface */
17326 #elif defined(HFIXEDSZ)
17327 /* Bind 4 interface w/ HFIXEDSZ */
17330 /* Bind 4 interface w/o HFIXEDSZ */
17331 p += sizeof(HEADER);
17333 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17339 rm -f conftest.$ac_objext conftest$ac_exeext
17340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17341 (eval $ac_link) 2>conftest.er1
17343 grep -v '^ *+' conftest.er1 >conftest.err
17345 cat conftest.err >&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
17348 { ac_try='test -z "$ac_c_werror_flag"
17349 || test ! -s conftest.err'
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; } &&
17355 { ac_try='test -s conftest$ac_exeext'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; }; then
17361 ol_cv_resolver_bind=yes
17363 echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17366 ol_cv_resolver_bind=no
17368 rm -f conftest.err conftest.$ac_objext \
17369 conftest$ac_exeext conftest.$ac_ext
17374 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17375 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17377 if test $ol_cv_resolver_bind = yes ; then
17378 ol_cv_lib_resolver=-lbind
17385 if test "$ol_cv_lib_resolver" != no ; then
17387 cat >>confdefs.h <<\_ACEOF
17388 #define HAVE_RES_QUERY 1
17392 if test "$ol_enable_dnssrv" != no ; then
17396 if test "$ol_cv_lib_resolver" != yes ; then
17397 LIBS="$ol_cv_lib_resolver $LIBS"
17401 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17402 if test "$ol_link_dnssrv" = no ; then
17403 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17404 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17405 { (exit 1); exit 1; }; }
17408 ol_enable_dnssrv=no
17412 for ac_func in hstrerror
17414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17415 echo "$as_me:$LINENO: checking for $ac_func" >&5
17416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17417 if eval "test \"\${$as_ac_var+set}\" = set"; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 cat >conftest.$ac_ext <<_ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17428 #define $ac_func innocuous_$ac_func
17430 /* System header to define __stub macros and hopefully few prototypes,
17431 which can conflict with char $ac_func (); below.
17432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17433 <limits.h> exists even on freestanding compilers. */
17436 # include <limits.h>
17438 # include <assert.h>
17443 /* Override any gcc2 internal prototype to avoid an error. */
17448 /* We use char because int might match the return type of a gcc2
17449 builtin and then its argument prototype would still apply. */
17451 /* The GNU C library defines this for functions which it implements
17452 to always fail with ENOSYS. Some functions are actually named
17453 something starting with __ and the normal name is an alias. */
17454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17457 char (*f) () = $ac_func;
17466 return f != $ac_func;
17471 rm -f conftest.$ac_objext conftest$ac_exeext
17472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17473 (eval $ac_link) 2>conftest.er1
17475 grep -v '^ *+' conftest.er1 >conftest.err
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -z "$ac_c_werror_flag"
17481 || test ! -s conftest.err'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s conftest$ac_exeext'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 eval "$as_ac_var=yes"
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 eval "$as_ac_var=no"
17500 rm -f conftest.err conftest.$ac_objext \
17501 conftest$ac_exeext conftest.$ac_ext
17503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17505 if test `eval echo '${'$as_ac_var'}'` = yes; then
17506 cat >>confdefs.h <<_ACEOF
17507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17518 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17521 echo "$as_me:$LINENO: checking for $ac_func" >&5
17522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17523 if eval "test \"\${$as_ac_var+set}\" = set"; then
17524 echo $ECHO_N "(cached) $ECHO_C" >&6
17526 cat >conftest.$ac_ext <<_ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17534 #define $ac_func innocuous_$ac_func
17536 /* System header to define __stub macros and hopefully few prototypes,
17537 which can conflict with char $ac_func (); below.
17538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17539 <limits.h> exists even on freestanding compilers. */
17542 # include <limits.h>
17544 # include <assert.h>
17549 /* Override any gcc2 internal prototype to avoid an error. */
17554 /* We use char because int might match the return type of a gcc2
17555 builtin and then its argument prototype would still apply. */
17557 /* The GNU C library defines this for functions which it implements
17558 to always fail with ENOSYS. Some functions are actually named
17559 something starting with __ and the normal name is an alias. */
17560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17563 char (*f) () = $ac_func;
17572 return f != $ac_func;
17577 rm -f conftest.$ac_objext conftest$ac_exeext
17578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17579 (eval $ac_link) 2>conftest.er1
17581 grep -v '^ *+' conftest.er1 >conftest.err
17583 cat conftest.err >&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } &&
17586 { ac_try='test -z "$ac_c_werror_flag"
17587 || test ! -s conftest.err'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; } &&
17593 { ac_try='test -s conftest$ac_exeext'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 eval "$as_ac_var=yes"
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17604 eval "$as_ac_var=no"
17606 rm -f conftest.err conftest.$ac_objext \
17607 conftest$ac_exeext conftest.$ac_ext
17609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17611 if test `eval echo '${'$as_ac_var'}'` = yes; then
17612 cat >>confdefs.h <<_ACEOF
17613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17621 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17622 if test $ol_enable_ipv6 = yes ; then
17623 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17624 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17625 { (exit 1); exit 1; }; }
17627 elif test $ol_enable_ipv6 != no ; then
17628 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17629 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17630 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17631 echo $ECHO_N "(cached) $ECHO_C" >&6
17634 cat >conftest.$ac_ext <<_ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17641 # include <netinet/in.h>
17642 # ifdef INET6_ADDRSTRLEN
17643 __has_inet6_addrstrlen__;
17647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17648 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17649 ol_cv_inet6_addrstrlen=yes
17651 ol_cv_inet6_addrstrlen=no
17656 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17657 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17660 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17661 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17662 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17663 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 cat >conftest.$ac_ext <<_ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17673 #include <sys/types.h>
17674 #include <sys/socket.h>
17680 struct sockaddr_storage ss;
17686 rm -f conftest.$ac_objext
17687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17688 (eval $ac_compile) 2>conftest.er1
17690 grep -v '^ *+' conftest.er1 >conftest.err
17692 cat conftest.err >&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } &&
17695 { ac_try='test -z "$ac_c_werror_flag"
17696 || test ! -s conftest.err'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } &&
17702 { ac_try='test -s conftest.$ac_objext'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 ol_cv_struct_sockaddr_storage=yes
17710 echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17713 ol_cv_struct_sockaddr_storage=no
17715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17717 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17718 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17720 if test $ol_cv_inet6_addrstrlen = yes &&
17721 test $ol_cv_struct_sockaddr_storage = yes ; then
17723 elif test $ol_enable_ipv6 = yes &&
17724 test $ol_cv_inet6_addrstrlen = no ; then
17725 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17726 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17727 { (exit 1); exit 1; }; }
17728 elif test $ol_enable_ipv6 = yes &&
17729 test $ol_cv_struct_sockaddr_storage = no ; then
17730 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17731 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17732 { (exit 1); exit 1; }; }
17736 if test $ol_enable_local != no ; then
17738 for ac_header in sys/un.h
17740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17742 echo "$as_me:$LINENO: checking for $ac_header" >&5
17743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17750 # Is the header compilable?
17751 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17752 echo $ECHO_N "checking $ac_header usability... $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. */
17759 $ac_includes_default
17760 #include <$ac_header>
17762 rm -f conftest.$ac_objext
17763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17764 (eval $ac_compile) 2>conftest.er1
17766 grep -v '^ *+' conftest.er1 >conftest.err
17768 cat conftest.err >&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } &&
17771 { ac_try='test -z "$ac_c_werror_flag"
17772 || test ! -s conftest.err'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; } &&
17778 { ac_try='test -s conftest.$ac_objext'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 ac_header_compiler=yes
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17789 ac_header_compiler=no
17791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17793 echo "${ECHO_T}$ac_header_compiler" >&6
17795 # Is the header present?
17796 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17798 cat >conftest.$ac_ext <<_ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17804 #include <$ac_header>
17806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17809 grep -v '^ *+' conftest.er1 >conftest.err
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } >/dev/null; then
17814 if test -s conftest.err; then
17815 ac_cpp_err=$ac_c_preproc_warn_flag
17816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17823 if test -z "$ac_cpp_err"; then
17824 ac_header_preproc=yes
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17829 ac_header_preproc=no
17831 rm -f conftest.err conftest.$ac_ext
17832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17833 echo "${ECHO_T}$ac_header_preproc" >&6
17835 # So? What about this header?
17836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17842 ac_header_preproc=yes
17845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17859 ## ------------------------------------------ ##
17860 ## Report this to the AC_PACKAGE_NAME lists. ##
17861 ## ------------------------------------------ ##
17864 sed "s/^/$as_me: WARNING: /" >&2
17867 echo "$as_me:$LINENO: checking for $ac_header" >&5
17868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17872 eval "$as_ac_Header=\$ac_header_preproc"
17874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17879 cat >>confdefs.h <<_ACEOF
17880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17888 if test $ol_enable_local = auto ; then
17889 ol_enable_local=$ac_cv_header_sys_un_h
17890 elif test $ac_cv_header_sys_un_h = no ; then
17891 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17892 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17893 { (exit 1); exit 1; }; }
17901 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17904 for ac_header in krb5.h
17906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17908 echo "$as_me:$LINENO: checking for $ac_header" >&5
17909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17916 # Is the header compilable?
17917 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17919 cat >conftest.$ac_ext <<_ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925 $ac_includes_default
17926 #include <$ac_header>
17928 rm -f conftest.$ac_objext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17930 (eval $ac_compile) 2>conftest.er1
17932 grep -v '^ *+' conftest.er1 >conftest.err
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
17937 { ac_try='test -z "$ac_c_werror_flag"
17938 || test ! -s conftest.err'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest.$ac_objext'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 ac_header_compiler=yes
17952 echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17955 ac_header_compiler=no
17957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17959 echo "${ECHO_T}$ac_header_compiler" >&6
17961 # Is the header present?
17962 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17964 cat >conftest.$ac_ext <<_ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17970 #include <$ac_header>
17972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17975 grep -v '^ *+' conftest.er1 >conftest.err
17977 cat conftest.err >&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } >/dev/null; then
17980 if test -s conftest.err; then
17981 ac_cpp_err=$ac_c_preproc_warn_flag
17982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17989 if test -z "$ac_cpp_err"; then
17990 ac_header_preproc=yes
17992 echo "$as_me: failed program was:" >&5
17993 sed 's/^/| /' conftest.$ac_ext >&5
17995 ac_header_preproc=no
17997 rm -f conftest.err conftest.$ac_ext
17998 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17999 echo "${ECHO_T}$ac_header_preproc" >&6
18001 # So? What about this header?
18002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18008 ac_header_preproc=yes
18011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18014 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18015 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18017 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18018 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18021 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18025 ## ------------------------------------------ ##
18026 ## Report this to the AC_PACKAGE_NAME lists. ##
18027 ## ------------------------------------------ ##
18030 sed "s/^/$as_me: WARNING: /" >&2
18033 echo "$as_me:$LINENO: checking for $ac_header" >&5
18034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18038 eval "$as_ac_Header=\$ac_header_preproc"
18040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18045 cat >>confdefs.h <<_ACEOF
18046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18054 if test $ac_cv_header_krb5_h = yes ; then
18056 for ac_header in heim_err.h
18058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18060 echo "$as_me:$LINENO: checking for $ac_header" >&5
18061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18068 # Is the header compilable?
18069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18071 cat >conftest.$ac_ext <<_ACEOF
18074 cat confdefs.h >>conftest.$ac_ext
18075 cat >>conftest.$ac_ext <<_ACEOF
18076 /* end confdefs.h. */
18077 $ac_includes_default
18078 #include <$ac_header>
18080 rm -f conftest.$ac_objext
18081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18082 (eval $ac_compile) 2>conftest.er1
18084 grep -v '^ *+' conftest.er1 >conftest.err
18086 cat conftest.err >&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } &&
18089 { ac_try='test -z "$ac_c_werror_flag"
18090 || test ! -s conftest.err'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest.$ac_objext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 ac_header_compiler=yes
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 ac_header_compiler=no
18109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18111 echo "${ECHO_T}$ac_header_compiler" >&6
18113 # Is the header present?
18114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18116 cat >conftest.$ac_ext <<_ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18122 #include <$ac_header>
18124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18127 grep -v '^ *+' conftest.er1 >conftest.err
18129 cat conftest.err >&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } >/dev/null; then
18132 if test -s conftest.err; then
18133 ac_cpp_err=$ac_c_preproc_warn_flag
18134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18141 if test -z "$ac_cpp_err"; then
18142 ac_header_preproc=yes
18144 echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18147 ac_header_preproc=no
18149 rm -f conftest.err conftest.$ac_ext
18150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18151 echo "${ECHO_T}$ac_header_preproc" >&6
18153 # So? What about this header?
18154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18160 ac_header_preproc=yes
18163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18177 ## ------------------------------------------ ##
18178 ## Report this to the AC_PACKAGE_NAME lists. ##
18179 ## ------------------------------------------ ##
18182 sed "s/^/$as_me: WARNING: /" >&2
18185 echo "$as_me:$LINENO: checking for $ac_header" >&5
18186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18190 eval "$as_ac_Header=\$ac_header_preproc"
18192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18197 cat >>confdefs.h <<_ACEOF
18198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18205 if test $ac_cv_header_heim_err_h = yes ; then
18211 if test $krb5_impl = mit; then
18212 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18213 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18214 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18215 echo $ECHO_N "(cached) $ECHO_C" >&6
18217 ac_check_lib_save_LIBS=$LIBS
18218 LIBS="-lk5crypto $LIBS"
18219 cat >conftest.$ac_ext <<_ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h. */
18235 rm -f conftest.$ac_objext conftest$ac_exeext
18236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18237 (eval $ac_link) 2>conftest.er1
18239 grep -v '^ *+' conftest.er1 >conftest.err
18241 cat conftest.err >&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); } &&
18244 { ac_try='test -z "$ac_c_werror_flag"
18245 || test ! -s conftest.err'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; } &&
18251 { ac_try='test -s conftest$ac_exeext'
18252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253 (eval $ac_try) 2>&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; }; then
18257 ac_cv_lib_k5crypto_main=yes
18259 echo "$as_me: failed program was:" >&5
18260 sed 's/^/| /' conftest.$ac_ext >&5
18262 ac_cv_lib_k5crypto_main=no
18264 rm -f conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
18266 LIBS=$ac_check_lib_save_LIBS
18268 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18269 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18270 if test $ac_cv_lib_k5crypto_main = yes; then
18271 krb5crypto=k5crypto
18277 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18278 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18279 if test "${ac_cv_lib_krb5_main+set}" = set; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18282 ac_check_lib_save_LIBS=$LIBS
18283 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18284 cat >conftest.$ac_ext <<_ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18300 rm -f conftest.$ac_objext conftest$ac_exeext
18301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18302 (eval $ac_link) 2>conftest.er1
18304 grep -v '^ *+' conftest.er1 >conftest.err
18306 cat conftest.err >&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } &&
18309 { ac_try='test -z "$ac_c_werror_flag"
18310 || test ! -s conftest.err'
18311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312 (eval $ac_try) 2>&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; } &&
18316 { ac_try='test -s conftest$ac_exeext'
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 ac_cv_lib_krb5_main=yes
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18327 ac_cv_lib_krb5_main=no
18329 rm -f conftest.err conftest.$ac_objext \
18330 conftest$ac_exeext conftest.$ac_ext
18331 LIBS=$ac_check_lib_save_LIBS
18333 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18334 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18335 if test $ac_cv_lib_krb5_main = yes; then
18337 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18343 elif test $krb5_impl = heimdal; then
18344 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18345 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18346 if test "${ac_cv_lib_des_main+set}" = set; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18349 ac_check_lib_save_LIBS=$LIBS
18351 cat >conftest.$ac_ext <<_ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18367 rm -f conftest.$ac_objext conftest$ac_exeext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18369 (eval $ac_link) 2>conftest.er1
18371 grep -v '^ *+' conftest.er1 >conftest.err
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try='test -z "$ac_c_werror_flag"
18377 || test ! -s conftest.err'
18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; } &&
18383 { ac_try='test -s conftest$ac_exeext'
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; }; then
18389 ac_cv_lib_des_main=yes
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 ac_cv_lib_des_main=no
18396 rm -f conftest.err conftest.$ac_objext \
18397 conftest$ac_exeext conftest.$ac_ext
18398 LIBS=$ac_check_lib_save_LIBS
18400 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18401 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18402 if test $ac_cv_lib_des_main = yes; then
18409 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18410 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18411 if test "${ac_cv_lib_krb5_main+set}" = set; then
18412 echo $ECHO_N "(cached) $ECHO_C" >&6
18414 ac_check_lib_save_LIBS=$LIBS
18415 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18416 cat >conftest.$ac_ext <<_ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18434 (eval $ac_link) 2>conftest.er1
18436 grep -v '^ *+' conftest.er1 >conftest.err
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -z "$ac_c_werror_flag"
18442 || test ! -s conftest.err'
18443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; } &&
18448 { ac_try='test -s conftest$ac_exeext'
18449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450 (eval $ac_try) 2>&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); }; }; then
18454 ac_cv_lib_krb5_main=yes
18456 echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18459 ac_cv_lib_krb5_main=no
18461 rm -f conftest.err conftest.$ac_objext \
18462 conftest$ac_exeext conftest.$ac_ext
18463 LIBS=$ac_check_lib_save_LIBS
18465 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18466 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18467 if test $ac_cv_lib_krb5_main = yes; then
18469 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18476 cat >>confdefs.h <<\_ACEOF
18477 #define HAVE_HEIMDAL_KERBEROS 1
18483 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18484 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18487 if test $have_krb5 = yes ; then
18491 cat >>confdefs.h <<\_ACEOF
18492 #define HAVE_KRB5 1
18496 if test $ol_with_kerberos = k5only ; then
18497 ol_with_kerberos=found
18500 elif test $ol_with_kerberos != auto ; then
18501 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18502 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18503 { (exit 1); exit 1; }; }
18510 if test $ol_link_krb5 = yes &&
18511 { test $ol_with_kerberos = yes ||
18512 test $ol_with_kerberos = auto ||
18513 test $ol_with_kerberos = k425; }; then
18517 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18521 echo "$as_me:$LINENO: checking for $ac_header" >&5
18522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18524 echo $ECHO_N "(cached) $ECHO_C" >&6
18526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18529 # Is the header compilable?
18530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18532 cat >conftest.$ac_ext <<_ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18538 $ac_includes_default
18539 #include <$ac_header>
18541 rm -f conftest.$ac_objext
18542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18543 (eval $ac_compile) 2>conftest.er1
18545 grep -v '^ *+' conftest.er1 >conftest.err
18547 cat conftest.err >&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } &&
18550 { ac_try='test -z "$ac_c_werror_flag"
18551 || test ! -s conftest.err'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; } &&
18557 { ac_try='test -s conftest.$ac_objext'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 ac_header_compiler=yes
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18568 ac_header_compiler=no
18570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18572 echo "${ECHO_T}$ac_header_compiler" >&6
18574 # Is the header present?
18575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18577 cat >conftest.$ac_ext <<_ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 #include <$ac_header>
18585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18588 grep -v '^ *+' conftest.er1 >conftest.err
18590 cat conftest.err >&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } >/dev/null; then
18593 if test -s conftest.err; then
18594 ac_cpp_err=$ac_c_preproc_warn_flag
18595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18602 if test -z "$ac_cpp_err"; then
18603 ac_header_preproc=yes
18605 echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18608 ac_header_preproc=no
18610 rm -f conftest.err conftest.$ac_ext
18611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18612 echo "${ECHO_T}$ac_header_preproc" >&6
18614 # So? What about this header?
18615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18621 ac_header_preproc=yes
18624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18638 ## ------------------------------------------ ##
18639 ## Report this to the AC_PACKAGE_NAME lists. ##
18640 ## ------------------------------------------ ##
18643 sed "s/^/$as_me: WARNING: /" >&2
18646 echo "$as_me:$LINENO: checking for $ac_header" >&5
18647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18651 eval "$as_ac_Header=\$ac_header_preproc"
18653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18658 cat >>confdefs.h <<_ACEOF
18659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18667 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18668 if test $krb5_impl = mit; then
18669 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18670 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18671 if test "${ac_cv_lib_krb4_main+set}" = set; then
18672 echo $ECHO_N "(cached) $ECHO_C" >&6
18674 ac_check_lib_save_LIBS=$LIBS
18675 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18676 cat >conftest.$ac_ext <<_ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18692 rm -f conftest.$ac_objext conftest$ac_exeext
18693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18694 (eval $ac_link) 2>conftest.er1
18696 grep -v '^ *+' conftest.er1 >conftest.err
18698 cat conftest.err >&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } &&
18701 { ac_try='test -z "$ac_c_werror_flag"
18702 || test ! -s conftest.err'
18703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704 (eval $ac_try) 2>&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; } &&
18708 { ac_try='test -s conftest$ac_exeext'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 ac_cv_lib_krb4_main=yes
18716 echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18719 ac_cv_lib_krb4_main=no
18721 rm -f conftest.err conftest.$ac_objext \
18722 conftest$ac_exeext conftest.$ac_ext
18723 LIBS=$ac_check_lib_save_LIBS
18725 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18726 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18727 if test $ac_cv_lib_krb4_main = yes; then
18729 KRB4_LIBS="-lkrb4 -ldes425"
18735 elif test $krb5_impl = heimdal; then
18736 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18737 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18738 if test "${ac_cv_lib_krb4_main+set}" = set; then
18739 echo $ECHO_N "(cached) $ECHO_C" >&6
18741 ac_check_lib_save_LIBS=$LIBS
18742 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18743 cat >conftest.$ac_ext <<_ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h. */
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18761 (eval $ac_link) 2>conftest.er1
18763 grep -v '^ *+' conftest.er1 >conftest.err
18765 cat conftest.err >&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); } &&
18768 { ac_try='test -z "$ac_c_werror_flag"
18769 || test ! -s conftest.err'
18770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18771 (eval $ac_try) 2>&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; } &&
18775 { ac_try='test -s conftest$ac_exeext'
18776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777 (eval $ac_try) 2>&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }; }; then
18781 ac_cv_lib_krb4_main=yes
18783 echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18786 ac_cv_lib_krb4_main=no
18788 rm -f conftest.err conftest.$ac_objext \
18789 conftest$ac_exeext conftest.$ac_ext
18790 LIBS=$ac_check_lib_save_LIBS
18792 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18793 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18794 if test $ac_cv_lib_krb4_main = yes; then
18804 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18805 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18808 if test $have_k425 = yes ; then
18809 ol_with_kerberos=found
18813 cat >>confdefs.h <<\_ACEOF
18814 #define HAVE_KRB425 1
18818 cat >>confdefs.h <<\_ACEOF
18819 #define HAVE_KRB4 1
18823 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18824 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18825 if test "${ol_cv_var_des_debug+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18830 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18831 cat >conftest.$ac_ext <<_ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18838 #include <kerberosIV/krb.h>
18839 #include <kerberosIV/des.h>
18840 extern int des_debug;
18852 rm -f conftest.$ac_objext conftest$ac_exeext
18853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18854 (eval $ac_link) 2>conftest.er1
18856 grep -v '^ *+' conftest.er1 >conftest.err
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -z "$ac_c_werror_flag"
18862 || test ! -s conftest.err'
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); }; } &&
18868 { ac_try='test -s conftest$ac_exeext'
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; }; then
18874 ol_cv_var_des_debug=yes
18876 echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.$ac_ext >&5
18879 ol_cv_var_des_debug=no
18881 rm -f conftest.err conftest.$ac_objext \
18882 conftest$ac_exeext conftest.$ac_ext
18886 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18887 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18889 if test $ol_cv_var_des_debug = yes ; then
18891 cat >>confdefs.h <<\_ACEOF
18892 #define HAVE_DES_DEBUG 1
18902 if test $ol_link_krb5 = yes ; then
18903 ol_with_kerberos=found
18906 case $ol_with_kerberos in yes | auto | k4 | kth)
18911 for ac_header in krb.h des.h krb-archaeology.h
18913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18915 echo "$as_me:$LINENO: checking for $ac_header" >&5
18916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18923 # Is the header compilable?
18924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18926 cat >conftest.$ac_ext <<_ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 $ac_includes_default
18933 #include <$ac_header>
18935 rm -f conftest.$ac_objext
18936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18937 (eval $ac_compile) 2>conftest.er1
18939 grep -v '^ *+' conftest.er1 >conftest.err
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
18944 { ac_try='test -z "$ac_c_werror_flag"
18945 || test ! -s conftest.err'
18946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947 (eval $ac_try) 2>&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; } &&
18951 { ac_try='test -s conftest.$ac_objext'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 ac_header_compiler=yes
18959 echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18962 ac_header_compiler=no
18964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18966 echo "${ECHO_T}$ac_header_compiler" >&6
18968 # Is the header present?
18969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18971 cat >conftest.$ac_ext <<_ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977 #include <$ac_header>
18979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18982 grep -v '^ *+' conftest.er1 >conftest.err
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } >/dev/null; then
18987 if test -s conftest.err; then
18988 ac_cpp_err=$ac_c_preproc_warn_flag
18989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18996 if test -z "$ac_cpp_err"; then
18997 ac_header_preproc=yes
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19002 ac_header_preproc=no
19004 rm -f conftest.err conftest.$ac_ext
19005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19006 echo "${ECHO_T}$ac_header_preproc" >&6
19008 # So? What about this header?
19009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19015 ac_header_preproc=yes
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19032 ## ------------------------------------------ ##
19033 ## Report this to the AC_PACKAGE_NAME lists. ##
19034 ## ------------------------------------------ ##
19037 sed "s/^/$as_me: WARNING: /" >&2
19040 echo "$as_me:$LINENO: checking for $ac_header" >&5
19041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 eval "$as_ac_Header=\$ac_header_preproc"
19047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19052 cat >>confdefs.h <<_ACEOF
19053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19061 if test $ac_cv_header_krb_h = yes ; then
19062 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19063 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19064 if test "${ac_cv_lib_krb_main+set}" = set; then
19065 echo $ECHO_N "(cached) $ECHO_C" >&6
19067 ac_check_lib_save_LIBS=$LIBS
19068 LIBS="-lkrb -ldes $LIBS"
19069 cat >conftest.$ac_ext <<_ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h. */
19085 rm -f conftest.$ac_objext conftest$ac_exeext
19086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19087 (eval $ac_link) 2>conftest.er1
19089 grep -v '^ *+' conftest.er1 >conftest.err
19091 cat conftest.err >&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } &&
19094 { ac_try='test -z "$ac_c_werror_flag"
19095 || test ! -s conftest.err'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; } &&
19101 { ac_try='test -s conftest$ac_exeext'
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; }; then
19107 ac_cv_lib_krb_main=yes
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19112 ac_cv_lib_krb_main=no
19114 rm -f conftest.err conftest.$ac_objext \
19115 conftest$ac_exeext conftest.$ac_ext
19116 LIBS=$ac_check_lib_save_LIBS
19118 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19119 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19120 if test $ac_cv_lib_krb_main = yes; then
19127 if test $have_k4 = yes ; then
19128 ol_with_kerberos=found
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE_KRB4 1
19137 KRB4_LIBS="-lkrb -ldes"
19139 if test $ac_cv_header_krb_archaeology_h = yes ; then
19141 cat >>confdefs.h <<\_ACEOF
19142 #define HAVE_KTH_KERBEROS 1
19151 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19154 elif test $ol_enable_kbind = yes ; then
19155 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19156 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19157 { (exit 1); exit 1; }; }
19160 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19162 cat >>confdefs.h <<\_ACEOF
19163 #define HAVE_KERBEROS 1
19167 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19168 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19169 echo "$as_me: error: Kerberos detection failed" >&2;}
19170 { (exit 1); exit 1; }; }
19175 if test $ol_with_tls != no ; then
19177 for ac_header in openssl/ssl.h
19179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19181 echo "$as_me:$LINENO: checking for $ac_header" >&5
19182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19189 # Is the header compilable?
19190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19192 cat >conftest.$ac_ext <<_ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19198 $ac_includes_default
19199 #include <$ac_header>
19201 rm -f conftest.$ac_objext
19202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19203 (eval $ac_compile) 2>conftest.er1
19205 grep -v '^ *+' conftest.er1 >conftest.err
19207 cat conftest.err >&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
19210 { ac_try='test -z "$ac_c_werror_flag"
19211 || test ! -s conftest.err'
19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213 (eval $ac_try) 2>&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; } &&
19217 { ac_try='test -s conftest.$ac_objext'
19218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219 (eval $ac_try) 2>&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; }; then
19223 ac_header_compiler=yes
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19228 ac_header_compiler=no
19230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19232 echo "${ECHO_T}$ac_header_compiler" >&6
19234 # Is the header present?
19235 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19237 cat >conftest.$ac_ext <<_ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19243 #include <$ac_header>
19245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19248 grep -v '^ *+' conftest.er1 >conftest.err
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } >/dev/null; then
19253 if test -s conftest.err; then
19254 ac_cpp_err=$ac_c_preproc_warn_flag
19255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19262 if test -z "$ac_cpp_err"; then
19263 ac_header_preproc=yes
19265 echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19268 ac_header_preproc=no
19270 rm -f conftest.err conftest.$ac_ext
19271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19272 echo "${ECHO_T}$ac_header_preproc" >&6
19274 # So? What about this header?
19275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19281 ac_header_preproc=yes
19284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19291 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19298 ## ------------------------------------------ ##
19299 ## Report this to the AC_PACKAGE_NAME lists. ##
19300 ## ------------------------------------------ ##
19303 sed "s/^/$as_me: WARNING: /" >&2
19306 echo "$as_me:$LINENO: checking for $ac_header" >&5
19307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19309 echo $ECHO_N "(cached) $ECHO_C" >&6
19311 eval "$as_ac_Header=\$ac_header_preproc"
19313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19318 cat >>confdefs.h <<_ACEOF
19319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19327 if test $ac_cv_header_openssl_ssl_h = yes ; then
19328 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19329 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19330 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19331 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 ac_check_lib_save_LIBS=$LIBS
19334 LIBS="-lssl -lcrypto $LIBS"
19335 cat >conftest.$ac_ext <<_ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19342 /* Override any gcc2 internal prototype to avoid an error. */
19346 /* We use char because int might match the return type of a gcc2
19347 builtin and then its argument prototype would still apply. */
19348 char SSL_library_init ();
19352 SSL_library_init ();
19357 rm -f conftest.$ac_objext conftest$ac_exeext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19359 (eval $ac_link) 2>conftest.er1
19361 grep -v '^ *+' conftest.er1 >conftest.err
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try='test -z "$ac_c_werror_flag"
19367 || test ! -s conftest.err'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; } &&
19373 { ac_try='test -s conftest$ac_exeext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_lib_ssl_SSL_library_init=yes
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_lib_ssl_SSL_library_init=no
19386 rm -f conftest.err conftest.$ac_objext \
19387 conftest$ac_exeext conftest.$ac_ext
19388 LIBS=$ac_check_lib_save_LIBS
19390 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19391 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19392 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19400 if test $have_openssl = no ; then
19401 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19402 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19403 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 ac_check_lib_save_LIBS=$LIBS
19407 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19408 cat >conftest.$ac_ext <<_ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19415 /* Override any gcc2 internal prototype to avoid an error. */
19419 /* We use char because int might match the return type of a gcc2
19420 builtin and then its argument prototype would still apply. */
19421 char ssl3_accept ();
19430 rm -f conftest.$ac_objext conftest$ac_exeext
19431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19432 (eval $ac_link) 2>conftest.er1
19434 grep -v '^ *+' conftest.er1 >conftest.err
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
19439 { ac_try='test -z "$ac_c_werror_flag"
19440 || test ! -s conftest.err'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; } &&
19446 { ac_try='test -s conftest$ac_exeext'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 ac_cv_lib_ssl_ssl3_accept=yes
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 ac_cv_lib_ssl_ssl3_accept=no
19459 rm -f conftest.err conftest.$ac_objext \
19460 conftest$ac_exeext conftest.$ac_ext
19461 LIBS=$ac_check_lib_save_LIBS
19463 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19464 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19465 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19474 if test $have_openssl = yes ; then
19479 cat >>confdefs.h <<\_ACEOF
19480 #define HAVE_OPENSSL 1
19484 if test $need_rsaref = yes; then
19486 cat >>confdefs.h <<\_ACEOF
19487 #define HAVE_RSAREF 1
19491 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19493 TLS_LIBS="-lssl -lcrypto"
19496 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19497 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19498 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19502 cat >conftest.$ac_ext <<_ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h. */
19509 #ifdef HAVE_OPENSSL_SSL_H
19510 #include <openssl/ssl.h>
19515 /* Require 0.9.7d+ */
19516 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19517 char *__ssl_compat = "0.9.7d";
19521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19522 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19523 ol_cv_ssl_crl_compat=yes
19525 ol_cv_ssl_crl_compat=no
19530 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19531 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19533 if test $ol_cv_ssl_crl_compat = no ; then
19537 cat >>confdefs.h <<\_ACEOF
19538 #define HAVE_OPENSSL_CRL 1
19545 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19546 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19550 if test $ol_link_tls = yes ; then
19552 cat >>confdefs.h <<\_ACEOF
19558 elif test $ol_with_tls = auto ; then
19559 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19560 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19561 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19562 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19564 elif test $ol_with_tls != no ; then
19565 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19566 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19567 { (exit 1); exit 1; }; }
19570 if test $ol_enable_lmpasswd != no; then
19571 if test $ol_link_tls != yes ; then
19572 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19573 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19574 { (exit 1); exit 1; }; }
19578 cat >>confdefs.h <<\_ACEOF
19579 #define SLAPD_LMHASH 1
19586 case $ol_with_threads in auto | yes | nt)
19589 echo "$as_me:$LINENO: checking for _beginthread" >&5
19590 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19591 if test "${ac_cv_func__beginthread+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 cat >conftest.$ac_ext <<_ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19602 #define _beginthread innocuous__beginthread
19604 /* System header to define __stub macros and hopefully few prototypes,
19605 which can conflict with char _beginthread (); below.
19606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19607 <limits.h> exists even on freestanding compilers. */
19610 # include <limits.h>
19612 # include <assert.h>
19615 #undef _beginthread
19617 /* Override any gcc2 internal prototype to avoid an error. */
19622 /* We use char because int might match the return type of a gcc2
19623 builtin and then its argument prototype would still apply. */
19624 char _beginthread ();
19625 /* The GNU C library defines this for functions which it implements
19626 to always fail with ENOSYS. Some functions are actually named
19627 something starting with __ and the normal name is an alias. */
19628 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19631 char (*f) () = _beginthread;
19640 return f != _beginthread;
19645 rm -f conftest.$ac_objext conftest$ac_exeext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19647 (eval $ac_link) 2>conftest.er1
19649 grep -v '^ *+' conftest.er1 >conftest.err
19651 cat conftest.err >&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } &&
19654 { ac_try='test -z "$ac_c_werror_flag"
19655 || test ! -s conftest.err'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; } &&
19661 { ac_try='test -s conftest$ac_exeext'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; }; then
19667 ac_cv_func__beginthread=yes
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19672 ac_cv_func__beginthread=no
19674 rm -f conftest.err conftest.$ac_objext \
19675 conftest$ac_exeext conftest.$ac_ext
19677 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19678 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19681 if test $ac_cv_func__beginthread = yes ; then
19683 cat >>confdefs.h <<\_ACEOF
19684 #define HAVE_NT_THREADS 1
19687 ol_cv_nt_threads=yes
19691 if test "$ol_cv_nt_threads" = yes ; then
19693 ol_with_threads=found
19694 ol_with_yielding_select=yes
19697 cat >>confdefs.h <<\_ACEOF
19698 #define HAVE_NT_SERVICE_MANAGER 1
19702 cat >>confdefs.h <<\_ACEOF
19703 #define HAVE_NT_EVENT_LOG 1
19708 if test $ol_with_threads = nt ; then
19709 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19710 echo "$as_me: error: could not locate NT Threads" >&2;}
19711 { (exit 1); exit 1; }; }
19716 case $ol_with_threads in auto | yes | posix)
19719 for ac_header in pthread.h
19721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19723 echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19731 # Is the header compilable?
19732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19734 cat >conftest.$ac_ext <<_ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h. */
19740 $ac_includes_default
19741 #include <$ac_header>
19743 rm -f conftest.$ac_objext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745 (eval $ac_compile) 2>conftest.er1
19747 grep -v '^ *+' conftest.er1 >conftest.err
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } &&
19752 { ac_try='test -z "$ac_c_werror_flag"
19753 || test ! -s conftest.err'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; } &&
19759 { ac_try='test -s conftest.$ac_objext'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
19765 ac_header_compiler=yes
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19770 ac_header_compiler=no
19772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19774 echo "${ECHO_T}$ac_header_compiler" >&6
19776 # Is the header present?
19777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 #include <$ac_header>
19787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19790 grep -v '^ *+' conftest.er1 >conftest.err
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } >/dev/null; then
19795 if test -s conftest.err; then
19796 ac_cpp_err=$ac_c_preproc_warn_flag
19797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19804 if test -z "$ac_cpp_err"; then
19805 ac_header_preproc=yes
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 ac_header_preproc=no
19812 rm -f conftest.err conftest.$ac_ext
19813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19814 echo "${ECHO_T}$ac_header_preproc" >&6
19816 # So? What about this header?
19817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19823 ac_header_preproc=yes
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19840 ## ------------------------------------------ ##
19841 ## Report this to the AC_PACKAGE_NAME lists. ##
19842 ## ------------------------------------------ ##
19845 sed "s/^/$as_me: WARNING: /" >&2
19848 echo "$as_me:$LINENO: checking for $ac_header" >&5
19849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 eval "$as_ac_Header=\$ac_header_preproc"
19855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19860 cat >>confdefs.h <<_ACEOF
19861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19869 if test $ac_cv_header_pthread_h = yes ; then
19870 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19871 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19872 if test "${ol_cv_pthread_version+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19876 cat >conftest.$ac_ext <<_ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19883 # include <pthread.h>
19889 int i = PTHREAD_CREATE_JOINABLE;
19895 rm -f conftest.$ac_objext
19896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19897 (eval $ac_compile) 2>conftest.er1
19899 grep -v '^ *+' conftest.er1 >conftest.err
19901 cat conftest.err >&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
19904 { ac_try='test -z "$ac_c_werror_flag"
19905 || test ! -s conftest.err'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; } &&
19911 { ac_try='test -s conftest.$ac_objext'
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; }; then
19918 cat >conftest.$ac_ext <<_ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h. */
19924 #include <pthread.h>
19927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19928 $EGREP "pthread_detach" >/dev/null 2>&1; then
19929 ol_cv_pthread_version=10
19931 ol_cv_pthread_version=8
19936 echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19940 cat >conftest.$ac_ext <<_ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19947 # include <pthread.h>
19948 # ifdef PTHREAD_CREATE_UNDETACHED
19953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19954 $EGREP "draft7" >/dev/null 2>&1; then
19955 ol_cv_pthread_version=7
19958 cat >conftest.$ac_ext <<_ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 #include <pthread.h>
19967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19968 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19969 ol_cv_pthread_version=6
19972 cat >conftest.$ac_ext <<_ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19979 # include <pthread.h>
19980 #ifdef PTHREAD_MUTEX_INITIALIZER
19985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19986 $EGREP "draft5" >/dev/null 2>&1; then
19987 ol_cv_pthread_version=5
19989 ol_cv_pthread_version=4
20000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20003 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20004 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20007 if test $ol_cv_pthread_version != 0 ; then
20009 cat >>confdefs.h <<_ACEOF
20010 #define HAVE_PTHREADS $ol_cv_pthread_version
20014 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20015 echo "$as_me: error: unknown pthread version" >&2;}
20016 { (exit 1); exit 1; }; }
20019 # consider threads found
20020 ol_with_threads=found
20023 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20024 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20025 if test "${ol_cv_header_linux_threads+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20028 cat >conftest.$ac_ext <<_ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20034 #include <pthread.h>
20036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20037 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20038 ol_cv_header_linux_threads=yes
20040 ol_cv_header_linux_threads=no
20046 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20047 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20048 if test $ol_cv_header_linux_threads = yes; then
20050 cat >>confdefs.h <<\_ACEOF
20051 #define HAVE_LINUX_THREADS 1
20057 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20058 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20059 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20060 echo $ECHO_N "(cached) $ECHO_C" >&6
20062 cat >conftest.$ac_ext <<_ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 #include <pthread.h>
20069 #ifdef _POSIX_THREAD_IS_GNU_PTH
20074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20075 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20076 ol_cv_header_gnu_pth_pthread_h=yes
20078 ol_cv_header_gnu_pth_pthread_h=no
20084 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20085 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20088 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20090 for ac_header in sched.h
20092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20094 echo "$as_me:$LINENO: checking for $ac_header" >&5
20095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20102 # Is the header compilable?
20103 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20105 cat >conftest.$ac_ext <<_ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20111 $ac_includes_default
20112 #include <$ac_header>
20114 rm -f conftest.$ac_objext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20116 (eval $ac_compile) 2>conftest.er1
20118 grep -v '^ *+' conftest.er1 >conftest.err
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } &&
20123 { ac_try='test -z "$ac_c_werror_flag"
20124 || test ! -s conftest.err'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; } &&
20130 { ac_try='test -s conftest.$ac_objext'
20131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132 (eval $ac_try) 2>&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; }; then
20136 ac_header_compiler=yes
20138 echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20141 ac_header_compiler=no
20143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20145 echo "${ECHO_T}$ac_header_compiler" >&6
20147 # Is the header present?
20148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20150 cat >conftest.$ac_ext <<_ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20156 #include <$ac_header>
20158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20161 grep -v '^ *+' conftest.er1 >conftest.err
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } >/dev/null; then
20166 if test -s conftest.err; then
20167 ac_cpp_err=$ac_c_preproc_warn_flag
20168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20175 if test -z "$ac_cpp_err"; then
20176 ac_header_preproc=yes
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20181 ac_header_preproc=no
20183 rm -f conftest.err conftest.$ac_ext
20184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20185 echo "${ECHO_T}$ac_header_preproc" >&6
20187 # So? What about this header?
20188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20194 ac_header_preproc=yes
20197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20211 ## ------------------------------------------ ##
20212 ## Report this to the AC_PACKAGE_NAME lists. ##
20213 ## ------------------------------------------ ##
20216 sed "s/^/$as_me: WARNING: /" >&2
20219 echo "$as_me:$LINENO: checking for $ac_header" >&5
20220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20222 echo $ECHO_N "(cached) $ECHO_C" >&6
20224 eval "$as_ac_Header=\$ac_header_preproc"
20226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20231 cat >>confdefs.h <<_ACEOF
20232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20242 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20243 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20244 if test "${ol_cv_pthread_create+set}" = set; then
20245 echo $ECHO_N "(cached) $ECHO_C" >&6
20248 if test "$cross_compiling" = yes; then
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20256 /* pthread test headers */
20257 #include <pthread.h>
20258 #if HAVE_PTHREADS < 7
20262 #define NULL (void*)0
20265 static void *task(p)
20268 return (void *) (p == NULL);
20275 /* pthread test function */
20276 #ifndef PTHREAD_CREATE_DETACHED
20277 #define PTHREAD_CREATE_DETACHED 1
20281 int detach = PTHREAD_CREATE_DETACHED;
20283 #if HAVE_PTHREADS > 4
20284 /* Final pthreads */
20285 pthread_attr_t attr;
20287 status = pthread_attr_init(&attr);
20288 if( status ) return status;
20290 #if HAVE_PTHREADS < 7
20291 status = pthread_attr_setdetachstate(&attr, &detach);
20292 if( status < 0 ) status = errno;
20294 status = pthread_attr_setdetachstate(&attr, detach);
20296 if( status ) return status;
20297 status = pthread_create( &t, &attr, task, NULL );
20298 #if HAVE_PTHREADS < 7
20299 if( status < 0 ) status = errno;
20301 if( status ) return status;
20303 /* Draft 4 pthreads */
20304 status = pthread_create( &t, pthread_attr_default, task, NULL );
20305 if( status ) return errno;
20307 /* give thread a chance to complete */
20308 /* it should remain joinable and hence detachable */
20311 status = pthread_detach( &t );
20312 if( status ) return errno;
20315 #ifdef HAVE_LINUX_THREADS
20316 pthread_kill_other_threads_np();
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20327 (eval $ac_link) 2>conftest.er1
20329 grep -v '^ *+' conftest.er1 >conftest.err
20331 cat conftest.err >&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } &&
20334 { ac_try='test -z "$ac_c_werror_flag"
20335 || test ! -s conftest.err'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; } &&
20341 { ac_try='test -s conftest$ac_exeext'
20342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343 (eval $ac_try) 2>&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; }; then
20347 ol_cv_pthread_create=yes
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ol_cv_pthread_create=no
20354 rm -f conftest.err conftest.$ac_objext \
20355 conftest$ac_exeext conftest.$ac_ext
20357 cat >conftest.$ac_ext <<_ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h. */
20364 /* pthread test headers */
20365 #include <pthread.h>
20366 #if HAVE_PTHREADS < 7
20370 #define NULL (void*)0
20373 static void *task(p)
20376 return (void *) (p == NULL);
20380 int main(argc, argv)
20385 /* pthread test function */
20386 #ifndef PTHREAD_CREATE_DETACHED
20387 #define PTHREAD_CREATE_DETACHED 1
20391 int detach = PTHREAD_CREATE_DETACHED;
20393 #if HAVE_PTHREADS > 4
20394 /* Final pthreads */
20395 pthread_attr_t attr;
20397 status = pthread_attr_init(&attr);
20398 if( status ) return status;
20400 #if HAVE_PTHREADS < 7
20401 status = pthread_attr_setdetachstate(&attr, &detach);
20402 if( status < 0 ) status = errno;
20404 status = pthread_attr_setdetachstate(&attr, detach);
20406 if( status ) return status;
20407 status = pthread_create( &t, &attr, task, NULL );
20408 #if HAVE_PTHREADS < 7
20409 if( status < 0 ) status = errno;
20411 if( status ) return status;
20413 /* Draft 4 pthreads */
20414 status = pthread_create( &t, pthread_attr_default, task, NULL );
20415 if( status ) return errno;
20417 /* give thread a chance to complete */
20418 /* it should remain joinable and hence detachable */
20421 status = pthread_detach( &t );
20422 if( status ) return errno;
20425 #ifdef HAVE_LINUX_THREADS
20426 pthread_kill_other_threads_np();
20434 rm -f conftest$ac_exeext
20435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20436 (eval $ac_link) 2>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; }; then
20445 ol_cv_pthread_create=yes
20447 echo "$as_me: program exited with status $ac_status" >&5
20448 echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20451 ( exit $ac_status )
20452 ol_cv_pthread_create=no
20454 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20457 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20458 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20460 if test $ol_cv_pthread_create != no ; then
20461 ol_link_threads=posix
20462 ol_link_pthreads=""
20465 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20466 if test "$ol_link_threads" = no ; then
20468 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20469 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20470 if test "${ol_cv_pthread_kthread+set}" = set; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 LIBS="-kthread $LIBS"
20478 if test "$cross_compiling" = yes; then
20479 cat >conftest.$ac_ext <<_ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20486 /* pthread test headers */
20487 #include <pthread.h>
20488 #if HAVE_PTHREADS < 7
20492 #define NULL (void*)0
20495 static void *task(p)
20498 return (void *) (p == NULL);
20505 /* pthread test function */
20506 #ifndef PTHREAD_CREATE_DETACHED
20507 #define PTHREAD_CREATE_DETACHED 1
20511 int detach = PTHREAD_CREATE_DETACHED;
20513 #if HAVE_PTHREADS > 4
20514 /* Final pthreads */
20515 pthread_attr_t attr;
20517 status = pthread_attr_init(&attr);
20518 if( status ) return status;
20520 #if HAVE_PTHREADS < 7
20521 status = pthread_attr_setdetachstate(&attr, &detach);
20522 if( status < 0 ) status = errno;
20524 status = pthread_attr_setdetachstate(&attr, detach);
20526 if( status ) return status;
20527 status = pthread_create( &t, &attr, task, NULL );
20528 #if HAVE_PTHREADS < 7
20529 if( status < 0 ) status = errno;
20531 if( status ) return status;
20533 /* Draft 4 pthreads */
20534 status = pthread_create( &t, pthread_attr_default, task, NULL );
20535 if( status ) return errno;
20537 /* give thread a chance to complete */
20538 /* it should remain joinable and hence detachable */
20541 status = pthread_detach( &t );
20542 if( status ) return errno;
20545 #ifdef HAVE_LINUX_THREADS
20546 pthread_kill_other_threads_np();
20555 rm -f conftest.$ac_objext conftest$ac_exeext
20556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20557 (eval $ac_link) 2>conftest.er1
20559 grep -v '^ *+' conftest.er1 >conftest.err
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } &&
20564 { ac_try='test -z "$ac_c_werror_flag"
20565 || test ! -s conftest.err'
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; } &&
20571 { ac_try='test -s conftest$ac_exeext'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; }; then
20577 ol_cv_pthread_kthread=yes
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 ol_cv_pthread_kthread=no
20584 rm -f conftest.err conftest.$ac_objext \
20585 conftest$ac_exeext conftest.$ac_ext
20587 cat >conftest.$ac_ext <<_ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20594 /* pthread test headers */
20595 #include <pthread.h>
20596 #if HAVE_PTHREADS < 7
20600 #define NULL (void*)0
20603 static void *task(p)
20606 return (void *) (p == NULL);
20610 int main(argc, argv)
20615 /* pthread test function */
20616 #ifndef PTHREAD_CREATE_DETACHED
20617 #define PTHREAD_CREATE_DETACHED 1
20621 int detach = PTHREAD_CREATE_DETACHED;
20623 #if HAVE_PTHREADS > 4
20624 /* Final pthreads */
20625 pthread_attr_t attr;
20627 status = pthread_attr_init(&attr);
20628 if( status ) return status;
20630 #if HAVE_PTHREADS < 7
20631 status = pthread_attr_setdetachstate(&attr, &detach);
20632 if( status < 0 ) status = errno;
20634 status = pthread_attr_setdetachstate(&attr, detach);
20636 if( status ) return status;
20637 status = pthread_create( &t, &attr, task, NULL );
20638 #if HAVE_PTHREADS < 7
20639 if( status < 0 ) status = errno;
20641 if( status ) return status;
20643 /* Draft 4 pthreads */
20644 status = pthread_create( &t, pthread_attr_default, task, NULL );
20645 if( status ) return errno;
20647 /* give thread a chance to complete */
20648 /* it should remain joinable and hence detachable */
20651 status = pthread_detach( &t );
20652 if( status ) return errno;
20655 #ifdef HAVE_LINUX_THREADS
20656 pthread_kill_other_threads_np();
20664 rm -f conftest$ac_exeext
20665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20666 (eval $ac_link) 2>&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; }; then
20675 ol_cv_pthread_kthread=yes
20677 echo "$as_me: program exited with status $ac_status" >&5
20678 echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20681 ( exit $ac_status )
20682 ol_cv_pthread_kthread=no
20684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20691 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20692 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20694 if test $ol_cv_pthread_kthread = yes ; then
20695 ol_link_pthreads="-kthread"
20696 ol_link_threads=posix
20700 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20701 if test "$ol_link_threads" = no ; then
20703 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20704 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20705 if test "${ol_cv_pthread_pthread+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20711 LIBS="-pthread $LIBS"
20713 if test "$cross_compiling" = yes; then
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20721 /* pthread test headers */
20722 #include <pthread.h>
20723 #if HAVE_PTHREADS < 7
20727 #define NULL (void*)0
20730 static void *task(p)
20733 return (void *) (p == NULL);
20740 /* pthread test function */
20741 #ifndef PTHREAD_CREATE_DETACHED
20742 #define PTHREAD_CREATE_DETACHED 1
20746 int detach = PTHREAD_CREATE_DETACHED;
20748 #if HAVE_PTHREADS > 4
20749 /* Final pthreads */
20750 pthread_attr_t attr;
20752 status = pthread_attr_init(&attr);
20753 if( status ) return status;
20755 #if HAVE_PTHREADS < 7
20756 status = pthread_attr_setdetachstate(&attr, &detach);
20757 if( status < 0 ) status = errno;
20759 status = pthread_attr_setdetachstate(&attr, detach);
20761 if( status ) return status;
20762 status = pthread_create( &t, &attr, task, NULL );
20763 #if HAVE_PTHREADS < 7
20764 if( status < 0 ) status = errno;
20766 if( status ) return status;
20768 /* Draft 4 pthreads */
20769 status = pthread_create( &t, pthread_attr_default, task, NULL );
20770 if( status ) return errno;
20772 /* give thread a chance to complete */
20773 /* it should remain joinable and hence detachable */
20776 status = pthread_detach( &t );
20777 if( status ) return errno;
20780 #ifdef HAVE_LINUX_THREADS
20781 pthread_kill_other_threads_np();
20790 rm -f conftest.$ac_objext conftest$ac_exeext
20791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20792 (eval $ac_link) 2>conftest.er1
20794 grep -v '^ *+' conftest.er1 >conftest.err
20796 cat conftest.err >&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } &&
20799 { ac_try='test -z "$ac_c_werror_flag"
20800 || test ! -s conftest.err'
20801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20802 (eval $ac_try) 2>&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; } &&
20806 { ac_try='test -s conftest$ac_exeext'
20807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20808 (eval $ac_try) 2>&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); }; }; then
20812 ol_cv_pthread_pthread=yes
20814 echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20817 ol_cv_pthread_pthread=no
20819 rm -f conftest.err conftest.$ac_objext \
20820 conftest$ac_exeext conftest.$ac_ext
20822 cat >conftest.$ac_ext <<_ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20829 /* pthread test headers */
20830 #include <pthread.h>
20831 #if HAVE_PTHREADS < 7
20835 #define NULL (void*)0
20838 static void *task(p)
20841 return (void *) (p == NULL);
20845 int main(argc, argv)
20850 /* pthread test function */
20851 #ifndef PTHREAD_CREATE_DETACHED
20852 #define PTHREAD_CREATE_DETACHED 1
20856 int detach = PTHREAD_CREATE_DETACHED;
20858 #if HAVE_PTHREADS > 4
20859 /* Final pthreads */
20860 pthread_attr_t attr;
20862 status = pthread_attr_init(&attr);
20863 if( status ) return status;
20865 #if HAVE_PTHREADS < 7
20866 status = pthread_attr_setdetachstate(&attr, &detach);
20867 if( status < 0 ) status = errno;
20869 status = pthread_attr_setdetachstate(&attr, detach);
20871 if( status ) return status;
20872 status = pthread_create( &t, &attr, task, NULL );
20873 #if HAVE_PTHREADS < 7
20874 if( status < 0 ) status = errno;
20876 if( status ) return status;
20878 /* Draft 4 pthreads */
20879 status = pthread_create( &t, pthread_attr_default, task, NULL );
20880 if( status ) return errno;
20882 /* give thread a chance to complete */
20883 /* it should remain joinable and hence detachable */
20886 status = pthread_detach( &t );
20887 if( status ) return errno;
20890 #ifdef HAVE_LINUX_THREADS
20891 pthread_kill_other_threads_np();
20899 rm -f conftest$ac_exeext
20900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20901 (eval $ac_link) 2>&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 ol_cv_pthread_pthread=yes
20912 echo "$as_me: program exited with status $ac_status" >&5
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20916 ( exit $ac_status )
20917 ol_cv_pthread_pthread=no
20919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20926 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20927 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20929 if test $ol_cv_pthread_pthread = yes ; then
20930 ol_link_pthreads="-pthread"
20931 ol_link_threads=posix
20935 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20936 if test "$ol_link_threads" = no ; then
20938 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20939 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20940 if test "${ol_cv_pthread_pthreads+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20946 LIBS="-pthreads $LIBS"
20948 if test "$cross_compiling" = yes; then
20949 cat >conftest.$ac_ext <<_ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20956 /* pthread test headers */
20957 #include <pthread.h>
20958 #if HAVE_PTHREADS < 7
20962 #define NULL (void*)0
20965 static void *task(p)
20968 return (void *) (p == NULL);
20975 /* pthread test function */
20976 #ifndef PTHREAD_CREATE_DETACHED
20977 #define PTHREAD_CREATE_DETACHED 1
20981 int detach = PTHREAD_CREATE_DETACHED;
20983 #if HAVE_PTHREADS > 4
20984 /* Final pthreads */
20985 pthread_attr_t attr;
20987 status = pthread_attr_init(&attr);
20988 if( status ) return status;
20990 #if HAVE_PTHREADS < 7
20991 status = pthread_attr_setdetachstate(&attr, &detach);
20992 if( status < 0 ) status = errno;
20994 status = pthread_attr_setdetachstate(&attr, detach);
20996 if( status ) return status;
20997 status = pthread_create( &t, &attr, task, NULL );
20998 #if HAVE_PTHREADS < 7
20999 if( status < 0 ) status = errno;
21001 if( status ) return status;
21003 /* Draft 4 pthreads */
21004 status = pthread_create( &t, pthread_attr_default, task, NULL );
21005 if( status ) return errno;
21007 /* give thread a chance to complete */
21008 /* it should remain joinable and hence detachable */
21011 status = pthread_detach( &t );
21012 if( status ) return errno;
21015 #ifdef HAVE_LINUX_THREADS
21016 pthread_kill_other_threads_np();
21025 rm -f conftest.$ac_objext conftest$ac_exeext
21026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21027 (eval $ac_link) 2>conftest.er1
21029 grep -v '^ *+' conftest.er1 >conftest.err
21031 cat conftest.err >&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } &&
21034 { ac_try='test -z "$ac_c_werror_flag"
21035 || test ! -s conftest.err'
21036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037 (eval $ac_try) 2>&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; } &&
21041 { ac_try='test -s conftest$ac_exeext'
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; }; then
21047 ol_cv_pthread_pthreads=yes
21049 echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21052 ol_cv_pthread_pthreads=no
21054 rm -f conftest.err conftest.$ac_objext \
21055 conftest$ac_exeext conftest.$ac_ext
21057 cat >conftest.$ac_ext <<_ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21064 /* pthread test headers */
21065 #include <pthread.h>
21066 #if HAVE_PTHREADS < 7
21070 #define NULL (void*)0
21073 static void *task(p)
21076 return (void *) (p == NULL);
21080 int main(argc, argv)
21085 /* pthread test function */
21086 #ifndef PTHREAD_CREATE_DETACHED
21087 #define PTHREAD_CREATE_DETACHED 1
21091 int detach = PTHREAD_CREATE_DETACHED;
21093 #if HAVE_PTHREADS > 4
21094 /* Final pthreads */
21095 pthread_attr_t attr;
21097 status = pthread_attr_init(&attr);
21098 if( status ) return status;
21100 #if HAVE_PTHREADS < 7
21101 status = pthread_attr_setdetachstate(&attr, &detach);
21102 if( status < 0 ) status = errno;
21104 status = pthread_attr_setdetachstate(&attr, detach);
21106 if( status ) return status;
21107 status = pthread_create( &t, &attr, task, NULL );
21108 #if HAVE_PTHREADS < 7
21109 if( status < 0 ) status = errno;
21111 if( status ) return status;
21113 /* Draft 4 pthreads */
21114 status = pthread_create( &t, pthread_attr_default, task, NULL );
21115 if( status ) return errno;
21117 /* give thread a chance to complete */
21118 /* it should remain joinable and hence detachable */
21121 status = pthread_detach( &t );
21122 if( status ) return errno;
21125 #ifdef HAVE_LINUX_THREADS
21126 pthread_kill_other_threads_np();
21134 rm -f conftest$ac_exeext
21135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21136 (eval $ac_link) 2>&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21141 (eval $ac_try) 2>&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); }; }; then
21145 ol_cv_pthread_pthreads=yes
21147 echo "$as_me: program exited with status $ac_status" >&5
21148 echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21151 ( exit $ac_status )
21152 ol_cv_pthread_pthreads=no
21154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21161 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21162 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21164 if test $ol_cv_pthread_pthreads = yes ; then
21165 ol_link_pthreads="-pthreads"
21166 ol_link_threads=posix
21170 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21171 if test "$ol_link_threads" = no ; then
21173 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21174 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21175 if test "${ol_cv_pthread_mthreads+set}" = set; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21181 LIBS="-mthreads $LIBS"
21183 if test "$cross_compiling" = yes; then
21184 cat >conftest.$ac_ext <<_ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h. */
21191 /* pthread test headers */
21192 #include <pthread.h>
21193 #if HAVE_PTHREADS < 7
21197 #define NULL (void*)0
21200 static void *task(p)
21203 return (void *) (p == NULL);
21210 /* pthread test function */
21211 #ifndef PTHREAD_CREATE_DETACHED
21212 #define PTHREAD_CREATE_DETACHED 1
21216 int detach = PTHREAD_CREATE_DETACHED;
21218 #if HAVE_PTHREADS > 4
21219 /* Final pthreads */
21220 pthread_attr_t attr;
21222 status = pthread_attr_init(&attr);
21223 if( status ) return status;
21225 #if HAVE_PTHREADS < 7
21226 status = pthread_attr_setdetachstate(&attr, &detach);
21227 if( status < 0 ) status = errno;
21229 status = pthread_attr_setdetachstate(&attr, detach);
21231 if( status ) return status;
21232 status = pthread_create( &t, &attr, task, NULL );
21233 #if HAVE_PTHREADS < 7
21234 if( status < 0 ) status = errno;
21236 if( status ) return status;
21238 /* Draft 4 pthreads */
21239 status = pthread_create( &t, pthread_attr_default, task, NULL );
21240 if( status ) return errno;
21242 /* give thread a chance to complete */
21243 /* it should remain joinable and hence detachable */
21246 status = pthread_detach( &t );
21247 if( status ) return errno;
21250 #ifdef HAVE_LINUX_THREADS
21251 pthread_kill_other_threads_np();
21260 rm -f conftest.$ac_objext conftest$ac_exeext
21261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21262 (eval $ac_link) 2>conftest.er1
21264 grep -v '^ *+' conftest.er1 >conftest.err
21266 cat conftest.err >&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } &&
21269 { ac_try='test -z "$ac_c_werror_flag"
21270 || test ! -s conftest.err'
21271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272 (eval $ac_try) 2>&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); }; } &&
21276 { ac_try='test -s conftest$ac_exeext'
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21282 ol_cv_pthread_mthreads=yes
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 ol_cv_pthread_mthreads=no
21289 rm -f conftest.err conftest.$ac_objext \
21290 conftest$ac_exeext conftest.$ac_ext
21292 cat >conftest.$ac_ext <<_ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h. */
21299 /* pthread test headers */
21300 #include <pthread.h>
21301 #if HAVE_PTHREADS < 7
21305 #define NULL (void*)0
21308 static void *task(p)
21311 return (void *) (p == NULL);
21315 int main(argc, argv)
21320 /* pthread test function */
21321 #ifndef PTHREAD_CREATE_DETACHED
21322 #define PTHREAD_CREATE_DETACHED 1
21326 int detach = PTHREAD_CREATE_DETACHED;
21328 #if HAVE_PTHREADS > 4
21329 /* Final pthreads */
21330 pthread_attr_t attr;
21332 status = pthread_attr_init(&attr);
21333 if( status ) return status;
21335 #if HAVE_PTHREADS < 7
21336 status = pthread_attr_setdetachstate(&attr, &detach);
21337 if( status < 0 ) status = errno;
21339 status = pthread_attr_setdetachstate(&attr, detach);
21341 if( status ) return status;
21342 status = pthread_create( &t, &attr, task, NULL );
21343 #if HAVE_PTHREADS < 7
21344 if( status < 0 ) status = errno;
21346 if( status ) return status;
21348 /* Draft 4 pthreads */
21349 status = pthread_create( &t, pthread_attr_default, task, NULL );
21350 if( status ) return errno;
21352 /* give thread a chance to complete */
21353 /* it should remain joinable and hence detachable */
21356 status = pthread_detach( &t );
21357 if( status ) return errno;
21360 #ifdef HAVE_LINUX_THREADS
21361 pthread_kill_other_threads_np();
21369 rm -f conftest$ac_exeext
21370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21371 (eval $ac_link) 2>&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380 ol_cv_pthread_mthreads=yes
21382 echo "$as_me: program exited with status $ac_status" >&5
21383 echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21386 ( exit $ac_status )
21387 ol_cv_pthread_mthreads=no
21389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21396 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21397 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21399 if test $ol_cv_pthread_mthreads = yes ; then
21400 ol_link_pthreads="-mthreads"
21401 ol_link_threads=posix
21405 # Pthread try link: -thread (ol_cv_pthread_thread)
21406 if test "$ol_link_threads" = no ; then
21408 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21409 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21410 if test "${ol_cv_pthread_thread+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21416 LIBS="-thread $LIBS"
21418 if test "$cross_compiling" = yes; then
21419 cat >conftest.$ac_ext <<_ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h. */
21426 /* pthread test headers */
21427 #include <pthread.h>
21428 #if HAVE_PTHREADS < 7
21432 #define NULL (void*)0
21435 static void *task(p)
21438 return (void *) (p == NULL);
21445 /* pthread test function */
21446 #ifndef PTHREAD_CREATE_DETACHED
21447 #define PTHREAD_CREATE_DETACHED 1
21451 int detach = PTHREAD_CREATE_DETACHED;
21453 #if HAVE_PTHREADS > 4
21454 /* Final pthreads */
21455 pthread_attr_t attr;
21457 status = pthread_attr_init(&attr);
21458 if( status ) return status;
21460 #if HAVE_PTHREADS < 7
21461 status = pthread_attr_setdetachstate(&attr, &detach);
21462 if( status < 0 ) status = errno;
21464 status = pthread_attr_setdetachstate(&attr, detach);
21466 if( status ) return status;
21467 status = pthread_create( &t, &attr, task, NULL );
21468 #if HAVE_PTHREADS < 7
21469 if( status < 0 ) status = errno;
21471 if( status ) return status;
21473 /* Draft 4 pthreads */
21474 status = pthread_create( &t, pthread_attr_default, task, NULL );
21475 if( status ) return errno;
21477 /* give thread a chance to complete */
21478 /* it should remain joinable and hence detachable */
21481 status = pthread_detach( &t );
21482 if( status ) return errno;
21485 #ifdef HAVE_LINUX_THREADS
21486 pthread_kill_other_threads_np();
21495 rm -f conftest.$ac_objext conftest$ac_exeext
21496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21497 (eval $ac_link) 2>conftest.er1
21499 grep -v '^ *+' conftest.er1 >conftest.err
21501 cat conftest.err >&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); } &&
21504 { ac_try='test -z "$ac_c_werror_flag"
21505 || test ! -s conftest.err'
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; } &&
21511 { ac_try='test -s conftest$ac_exeext'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; }; then
21517 ol_cv_pthread_thread=yes
21519 echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21522 ol_cv_pthread_thread=no
21524 rm -f conftest.err conftest.$ac_objext \
21525 conftest$ac_exeext conftest.$ac_ext
21527 cat >conftest.$ac_ext <<_ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21534 /* pthread test headers */
21535 #include <pthread.h>
21536 #if HAVE_PTHREADS < 7
21540 #define NULL (void*)0
21543 static void *task(p)
21546 return (void *) (p == NULL);
21550 int main(argc, argv)
21555 /* pthread test function */
21556 #ifndef PTHREAD_CREATE_DETACHED
21557 #define PTHREAD_CREATE_DETACHED 1
21561 int detach = PTHREAD_CREATE_DETACHED;
21563 #if HAVE_PTHREADS > 4
21564 /* Final pthreads */
21565 pthread_attr_t attr;
21567 status = pthread_attr_init(&attr);
21568 if( status ) return status;
21570 #if HAVE_PTHREADS < 7
21571 status = pthread_attr_setdetachstate(&attr, &detach);
21572 if( status < 0 ) status = errno;
21574 status = pthread_attr_setdetachstate(&attr, detach);
21576 if( status ) return status;
21577 status = pthread_create( &t, &attr, task, NULL );
21578 #if HAVE_PTHREADS < 7
21579 if( status < 0 ) status = errno;
21581 if( status ) return status;
21583 /* Draft 4 pthreads */
21584 status = pthread_create( &t, pthread_attr_default, task, NULL );
21585 if( status ) return errno;
21587 /* give thread a chance to complete */
21588 /* it should remain joinable and hence detachable */
21591 status = pthread_detach( &t );
21592 if( status ) return errno;
21595 #ifdef HAVE_LINUX_THREADS
21596 pthread_kill_other_threads_np();
21604 rm -f conftest$ac_exeext
21605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21606 (eval $ac_link) 2>&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); }; }; then
21615 ol_cv_pthread_thread=yes
21617 echo "$as_me: program exited with status $ac_status" >&5
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21621 ( exit $ac_status )
21622 ol_cv_pthread_thread=no
21624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21631 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21632 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21634 if test $ol_cv_pthread_thread = yes ; then
21635 ol_link_pthreads="-thread"
21636 ol_link_threads=posix
21641 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21642 if test "$ol_link_threads" = no ; then
21643 # try -lpthread -lmach -lexc -lc_r
21644 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21645 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21646 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
21652 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21654 if test "$cross_compiling" = yes; then
21655 cat >conftest.$ac_ext <<_ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h. */
21662 /* pthread test headers */
21663 #include <pthread.h>
21664 #if HAVE_PTHREADS < 7
21668 #define NULL (void*)0
21671 static void *task(p)
21674 return (void *) (p == NULL);
21681 /* pthread test function */
21682 #ifndef PTHREAD_CREATE_DETACHED
21683 #define PTHREAD_CREATE_DETACHED 1
21687 int detach = PTHREAD_CREATE_DETACHED;
21689 #if HAVE_PTHREADS > 4
21690 /* Final pthreads */
21691 pthread_attr_t attr;
21693 status = pthread_attr_init(&attr);
21694 if( status ) return status;
21696 #if HAVE_PTHREADS < 7
21697 status = pthread_attr_setdetachstate(&attr, &detach);
21698 if( status < 0 ) status = errno;
21700 status = pthread_attr_setdetachstate(&attr, detach);
21702 if( status ) return status;
21703 status = pthread_create( &t, &attr, task, NULL );
21704 #if HAVE_PTHREADS < 7
21705 if( status < 0 ) status = errno;
21707 if( status ) return status;
21709 /* Draft 4 pthreads */
21710 status = pthread_create( &t, pthread_attr_default, task, NULL );
21711 if( status ) return errno;
21713 /* give thread a chance to complete */
21714 /* it should remain joinable and hence detachable */
21717 status = pthread_detach( &t );
21718 if( status ) return errno;
21721 #ifdef HAVE_LINUX_THREADS
21722 pthread_kill_other_threads_np();
21731 rm -f conftest.$ac_objext conftest$ac_exeext
21732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21733 (eval $ac_link) 2>conftest.er1
21735 grep -v '^ *+' conftest.er1 >conftest.err
21737 cat conftest.err >&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } &&
21740 { ac_try='test -z "$ac_c_werror_flag"
21741 || test ! -s conftest.err'
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; } &&
21747 { ac_try='test -s conftest$ac_exeext'
21748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749 (eval $ac_try) 2>&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; }; then
21753 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21755 echo "$as_me: failed program was:" >&5
21756 sed 's/^/| /' conftest.$ac_ext >&5
21758 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21760 rm -f conftest.err conftest.$ac_objext \
21761 conftest$ac_exeext conftest.$ac_ext
21763 cat >conftest.$ac_ext <<_ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h. */
21770 /* pthread test headers */
21771 #include <pthread.h>
21772 #if HAVE_PTHREADS < 7
21776 #define NULL (void*)0
21779 static void *task(p)
21782 return (void *) (p == NULL);
21786 int main(argc, argv)
21791 /* pthread test function */
21792 #ifndef PTHREAD_CREATE_DETACHED
21793 #define PTHREAD_CREATE_DETACHED 1
21797 int detach = PTHREAD_CREATE_DETACHED;
21799 #if HAVE_PTHREADS > 4
21800 /* Final pthreads */
21801 pthread_attr_t attr;
21803 status = pthread_attr_init(&attr);
21804 if( status ) return status;
21806 #if HAVE_PTHREADS < 7
21807 status = pthread_attr_setdetachstate(&attr, &detach);
21808 if( status < 0 ) status = errno;
21810 status = pthread_attr_setdetachstate(&attr, detach);
21812 if( status ) return status;
21813 status = pthread_create( &t, &attr, task, NULL );
21814 #if HAVE_PTHREADS < 7
21815 if( status < 0 ) status = errno;
21817 if( status ) return status;
21819 /* Draft 4 pthreads */
21820 status = pthread_create( &t, pthread_attr_default, task, NULL );
21821 if( status ) return errno;
21823 /* give thread a chance to complete */
21824 /* it should remain joinable and hence detachable */
21827 status = pthread_detach( &t );
21828 if( status ) return errno;
21831 #ifdef HAVE_LINUX_THREADS
21832 pthread_kill_other_threads_np();
21840 rm -f conftest$ac_exeext
21841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21842 (eval $ac_link) 2>&5
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21853 echo "$as_me: program exited with status $ac_status" >&5
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21857 ( exit $ac_status )
21858 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21860 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21867 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21868 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21870 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21871 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21872 ol_link_threads=posix
21876 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21877 if test "$ol_link_threads" = no ; then
21878 # try -lpthread -lmach -lexc
21879 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21880 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21881 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21887 LIBS="-lpthread -lmach -lexc $LIBS"
21889 if test "$cross_compiling" = yes; then
21890 cat >conftest.$ac_ext <<_ACEOF
21893 cat confdefs.h >>conftest.$ac_ext
21894 cat >>conftest.$ac_ext <<_ACEOF
21895 /* end confdefs.h. */
21897 /* pthread test headers */
21898 #include <pthread.h>
21899 #if HAVE_PTHREADS < 7
21903 #define NULL (void*)0
21906 static void *task(p)
21909 return (void *) (p == NULL);
21916 /* pthread test function */
21917 #ifndef PTHREAD_CREATE_DETACHED
21918 #define PTHREAD_CREATE_DETACHED 1
21922 int detach = PTHREAD_CREATE_DETACHED;
21924 #if HAVE_PTHREADS > 4
21925 /* Final pthreads */
21926 pthread_attr_t attr;
21928 status = pthread_attr_init(&attr);
21929 if( status ) return status;
21931 #if HAVE_PTHREADS < 7
21932 status = pthread_attr_setdetachstate(&attr, &detach);
21933 if( status < 0 ) status = errno;
21935 status = pthread_attr_setdetachstate(&attr, detach);
21937 if( status ) return status;
21938 status = pthread_create( &t, &attr, task, NULL );
21939 #if HAVE_PTHREADS < 7
21940 if( status < 0 ) status = errno;
21942 if( status ) return status;
21944 /* Draft 4 pthreads */
21945 status = pthread_create( &t, pthread_attr_default, task, NULL );
21946 if( status ) return errno;
21948 /* give thread a chance to complete */
21949 /* it should remain joinable and hence detachable */
21952 status = pthread_detach( &t );
21953 if( status ) return errno;
21956 #ifdef HAVE_LINUX_THREADS
21957 pthread_kill_other_threads_np();
21966 rm -f conftest.$ac_objext conftest$ac_exeext
21967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21968 (eval $ac_link) 2>conftest.er1
21970 grep -v '^ *+' conftest.er1 >conftest.err
21972 cat conftest.err >&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } &&
21975 { ac_try='test -z "$ac_c_werror_flag"
21976 || test ! -s conftest.err'
21977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978 (eval $ac_try) 2>&5
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); }; } &&
21982 { ac_try='test -s conftest$ac_exeext'
21983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21984 (eval $ac_try) 2>&5
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); }; }; then
21988 ol_cv_pthread_lpthread_lmach_lexc=yes
21990 echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21993 ol_cv_pthread_lpthread_lmach_lexc=no
21995 rm -f conftest.err conftest.$ac_objext \
21996 conftest$ac_exeext conftest.$ac_ext
21998 cat >conftest.$ac_ext <<_ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h. */
22005 /* pthread test headers */
22006 #include <pthread.h>
22007 #if HAVE_PTHREADS < 7
22011 #define NULL (void*)0
22014 static void *task(p)
22017 return (void *) (p == NULL);
22021 int main(argc, argv)
22026 /* pthread test function */
22027 #ifndef PTHREAD_CREATE_DETACHED
22028 #define PTHREAD_CREATE_DETACHED 1
22032 int detach = PTHREAD_CREATE_DETACHED;
22034 #if HAVE_PTHREADS > 4
22035 /* Final pthreads */
22036 pthread_attr_t attr;
22038 status = pthread_attr_init(&attr);
22039 if( status ) return status;
22041 #if HAVE_PTHREADS < 7
22042 status = pthread_attr_setdetachstate(&attr, &detach);
22043 if( status < 0 ) status = errno;
22045 status = pthread_attr_setdetachstate(&attr, detach);
22047 if( status ) return status;
22048 status = pthread_create( &t, &attr, task, NULL );
22049 #if HAVE_PTHREADS < 7
22050 if( status < 0 ) status = errno;
22052 if( status ) return status;
22054 /* Draft 4 pthreads */
22055 status = pthread_create( &t, pthread_attr_default, task, NULL );
22056 if( status ) return errno;
22058 /* give thread a chance to complete */
22059 /* it should remain joinable and hence detachable */
22062 status = pthread_detach( &t );
22063 if( status ) return errno;
22066 #ifdef HAVE_LINUX_THREADS
22067 pthread_kill_other_threads_np();
22075 rm -f conftest$ac_exeext
22076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22077 (eval $ac_link) 2>&5
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; }; then
22086 ol_cv_pthread_lpthread_lmach_lexc=yes
22088 echo "$as_me: program exited with status $ac_status" >&5
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22092 ( exit $ac_status )
22093 ol_cv_pthread_lpthread_lmach_lexc=no
22095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22102 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22103 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22105 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22106 ol_link_pthreads="-lpthread -lmach -lexc"
22107 ol_link_threads=posix
22112 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22113 if test "$ol_link_threads" = no ; then
22114 # try -lpthread -Wl,-woff,85
22115 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22116 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22117 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22118 echo $ECHO_N "(cached) $ECHO_C" >&6
22123 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22125 if test "$cross_compiling" = yes; then
22126 cat >conftest.$ac_ext <<_ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22133 /* pthread test headers */
22134 #include <pthread.h>
22135 #if HAVE_PTHREADS < 7
22139 #define NULL (void*)0
22142 static void *task(p)
22145 return (void *) (p == NULL);
22152 /* pthread test function */
22153 #ifndef PTHREAD_CREATE_DETACHED
22154 #define PTHREAD_CREATE_DETACHED 1
22158 int detach = PTHREAD_CREATE_DETACHED;
22160 #if HAVE_PTHREADS > 4
22161 /* Final pthreads */
22162 pthread_attr_t attr;
22164 status = pthread_attr_init(&attr);
22165 if( status ) return status;
22167 #if HAVE_PTHREADS < 7
22168 status = pthread_attr_setdetachstate(&attr, &detach);
22169 if( status < 0 ) status = errno;
22171 status = pthread_attr_setdetachstate(&attr, detach);
22173 if( status ) return status;
22174 status = pthread_create( &t, &attr, task, NULL );
22175 #if HAVE_PTHREADS < 7
22176 if( status < 0 ) status = errno;
22178 if( status ) return status;
22180 /* Draft 4 pthreads */
22181 status = pthread_create( &t, pthread_attr_default, task, NULL );
22182 if( status ) return errno;
22184 /* give thread a chance to complete */
22185 /* it should remain joinable and hence detachable */
22188 status = pthread_detach( &t );
22189 if( status ) return errno;
22192 #ifdef HAVE_LINUX_THREADS
22193 pthread_kill_other_threads_np();
22202 rm -f conftest.$ac_objext conftest$ac_exeext
22203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22204 (eval $ac_link) 2>conftest.er1
22206 grep -v '^ *+' conftest.er1 >conftest.err
22208 cat conftest.err >&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); } &&
22211 { ac_try='test -z "$ac_c_werror_flag"
22212 || test ! -s conftest.err'
22213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22214 (eval $ac_try) 2>&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); }; } &&
22218 { ac_try='test -s conftest$ac_exeext'
22219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22220 (eval $ac_try) 2>&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); }; }; then
22224 ol_cv_pthread_lib_lpthread_woff=yes
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22229 ol_cv_pthread_lib_lpthread_woff=no
22231 rm -f conftest.err conftest.$ac_objext \
22232 conftest$ac_exeext conftest.$ac_ext
22234 cat >conftest.$ac_ext <<_ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h. */
22241 /* pthread test headers */
22242 #include <pthread.h>
22243 #if HAVE_PTHREADS < 7
22247 #define NULL (void*)0
22250 static void *task(p)
22253 return (void *) (p == NULL);
22257 int main(argc, argv)
22262 /* pthread test function */
22263 #ifndef PTHREAD_CREATE_DETACHED
22264 #define PTHREAD_CREATE_DETACHED 1
22268 int detach = PTHREAD_CREATE_DETACHED;
22270 #if HAVE_PTHREADS > 4
22271 /* Final pthreads */
22272 pthread_attr_t attr;
22274 status = pthread_attr_init(&attr);
22275 if( status ) return status;
22277 #if HAVE_PTHREADS < 7
22278 status = pthread_attr_setdetachstate(&attr, &detach);
22279 if( status < 0 ) status = errno;
22281 status = pthread_attr_setdetachstate(&attr, detach);
22283 if( status ) return status;
22284 status = pthread_create( &t, &attr, task, NULL );
22285 #if HAVE_PTHREADS < 7
22286 if( status < 0 ) status = errno;
22288 if( status ) return status;
22290 /* Draft 4 pthreads */
22291 status = pthread_create( &t, pthread_attr_default, task, NULL );
22292 if( status ) return errno;
22294 /* give thread a chance to complete */
22295 /* it should remain joinable and hence detachable */
22298 status = pthread_detach( &t );
22299 if( status ) return errno;
22302 #ifdef HAVE_LINUX_THREADS
22303 pthread_kill_other_threads_np();
22311 rm -f conftest$ac_exeext
22312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22313 (eval $ac_link) 2>&5
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ol_cv_pthread_lib_lpthread_woff=yes
22324 echo "$as_me: program exited with status $ac_status" >&5
22325 echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22328 ( exit $ac_status )
22329 ol_cv_pthread_lib_lpthread_woff=no
22331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22338 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22339 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22341 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22342 ol_link_pthreads="-lpthread -Wl,-woff,85"
22343 ol_link_threads=posix
22348 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22349 if test "$ol_link_threads" = no ; then
22351 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22352 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22353 if test "${ol_cv_pthread_lpthread+set}" = set; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22359 LIBS="-lpthread $LIBS"
22361 if test "$cross_compiling" = yes; then
22362 cat >conftest.$ac_ext <<_ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22369 /* pthread test headers */
22370 #include <pthread.h>
22371 #if HAVE_PTHREADS < 7
22375 #define NULL (void*)0
22378 static void *task(p)
22381 return (void *) (p == NULL);
22388 /* pthread test function */
22389 #ifndef PTHREAD_CREATE_DETACHED
22390 #define PTHREAD_CREATE_DETACHED 1
22394 int detach = PTHREAD_CREATE_DETACHED;
22396 #if HAVE_PTHREADS > 4
22397 /* Final pthreads */
22398 pthread_attr_t attr;
22400 status = pthread_attr_init(&attr);
22401 if( status ) return status;
22403 #if HAVE_PTHREADS < 7
22404 status = pthread_attr_setdetachstate(&attr, &detach);
22405 if( status < 0 ) status = errno;
22407 status = pthread_attr_setdetachstate(&attr, detach);
22409 if( status ) return status;
22410 status = pthread_create( &t, &attr, task, NULL );
22411 #if HAVE_PTHREADS < 7
22412 if( status < 0 ) status = errno;
22414 if( status ) return status;
22416 /* Draft 4 pthreads */
22417 status = pthread_create( &t, pthread_attr_default, task, NULL );
22418 if( status ) return errno;
22420 /* give thread a chance to complete */
22421 /* it should remain joinable and hence detachable */
22424 status = pthread_detach( &t );
22425 if( status ) return errno;
22428 #ifdef HAVE_LINUX_THREADS
22429 pthread_kill_other_threads_np();
22438 rm -f conftest.$ac_objext conftest$ac_exeext
22439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22440 (eval $ac_link) 2>conftest.er1
22442 grep -v '^ *+' conftest.er1 >conftest.err
22444 cat conftest.err >&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } &&
22447 { ac_try='test -z "$ac_c_werror_flag"
22448 || test ! -s conftest.err'
22449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450 (eval $ac_try) 2>&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); }; } &&
22454 { ac_try='test -s conftest$ac_exeext'
22455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456 (eval $ac_try) 2>&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; }; then
22460 ol_cv_pthread_lpthread=yes
22462 echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22465 ol_cv_pthread_lpthread=no
22467 rm -f conftest.err conftest.$ac_objext \
22468 conftest$ac_exeext conftest.$ac_ext
22470 cat >conftest.$ac_ext <<_ACEOF
22473 cat confdefs.h >>conftest.$ac_ext
22474 cat >>conftest.$ac_ext <<_ACEOF
22475 /* end confdefs.h. */
22477 /* pthread test headers */
22478 #include <pthread.h>
22479 #if HAVE_PTHREADS < 7
22483 #define NULL (void*)0
22486 static void *task(p)
22489 return (void *) (p == NULL);
22493 int main(argc, argv)
22498 /* pthread test function */
22499 #ifndef PTHREAD_CREATE_DETACHED
22500 #define PTHREAD_CREATE_DETACHED 1
22504 int detach = PTHREAD_CREATE_DETACHED;
22506 #if HAVE_PTHREADS > 4
22507 /* Final pthreads */
22508 pthread_attr_t attr;
22510 status = pthread_attr_init(&attr);
22511 if( status ) return status;
22513 #if HAVE_PTHREADS < 7
22514 status = pthread_attr_setdetachstate(&attr, &detach);
22515 if( status < 0 ) status = errno;
22517 status = pthread_attr_setdetachstate(&attr, detach);
22519 if( status ) return status;
22520 status = pthread_create( &t, &attr, task, NULL );
22521 #if HAVE_PTHREADS < 7
22522 if( status < 0 ) status = errno;
22524 if( status ) return status;
22526 /* Draft 4 pthreads */
22527 status = pthread_create( &t, pthread_attr_default, task, NULL );
22528 if( status ) return errno;
22530 /* give thread a chance to complete */
22531 /* it should remain joinable and hence detachable */
22534 status = pthread_detach( &t );
22535 if( status ) return errno;
22538 #ifdef HAVE_LINUX_THREADS
22539 pthread_kill_other_threads_np();
22547 rm -f conftest$ac_exeext
22548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22549 (eval $ac_link) 2>&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554 (eval $ac_try) 2>&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); }; }; then
22558 ol_cv_pthread_lpthread=yes
22560 echo "$as_me: program exited with status $ac_status" >&5
22561 echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22564 ( exit $ac_status )
22565 ol_cv_pthread_lpthread=no
22567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22574 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22575 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22577 if test $ol_cv_pthread_lpthread = yes ; then
22578 ol_link_pthreads="-lpthread"
22579 ol_link_threads=posix
22583 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22584 if test "$ol_link_threads" = no ; then
22586 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22587 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22588 if test "${ol_cv_pthread_lc_r+set}" = set; then
22589 echo $ECHO_N "(cached) $ECHO_C" >&6
22596 if test "$cross_compiling" = yes; then
22597 cat >conftest.$ac_ext <<_ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h. */
22604 /* pthread test headers */
22605 #include <pthread.h>
22606 #if HAVE_PTHREADS < 7
22610 #define NULL (void*)0
22613 static void *task(p)
22616 return (void *) (p == NULL);
22623 /* pthread test function */
22624 #ifndef PTHREAD_CREATE_DETACHED
22625 #define PTHREAD_CREATE_DETACHED 1
22629 int detach = PTHREAD_CREATE_DETACHED;
22631 #if HAVE_PTHREADS > 4
22632 /* Final pthreads */
22633 pthread_attr_t attr;
22635 status = pthread_attr_init(&attr);
22636 if( status ) return status;
22638 #if HAVE_PTHREADS < 7
22639 status = pthread_attr_setdetachstate(&attr, &detach);
22640 if( status < 0 ) status = errno;
22642 status = pthread_attr_setdetachstate(&attr, detach);
22644 if( status ) return status;
22645 status = pthread_create( &t, &attr, task, NULL );
22646 #if HAVE_PTHREADS < 7
22647 if( status < 0 ) status = errno;
22649 if( status ) return status;
22651 /* Draft 4 pthreads */
22652 status = pthread_create( &t, pthread_attr_default, task, NULL );
22653 if( status ) return errno;
22655 /* give thread a chance to complete */
22656 /* it should remain joinable and hence detachable */
22659 status = pthread_detach( &t );
22660 if( status ) return errno;
22663 #ifdef HAVE_LINUX_THREADS
22664 pthread_kill_other_threads_np();
22673 rm -f conftest.$ac_objext conftest$ac_exeext
22674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22675 (eval $ac_link) 2>conftest.er1
22677 grep -v '^ *+' conftest.er1 >conftest.err
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } &&
22682 { ac_try='test -z "$ac_c_werror_flag"
22683 || test ! -s conftest.err'
22684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685 (eval $ac_try) 2>&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); }; } &&
22689 { ac_try='test -s conftest$ac_exeext'
22690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691 (eval $ac_try) 2>&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); }; }; then
22695 ol_cv_pthread_lc_r=yes
22697 echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22700 ol_cv_pthread_lc_r=no
22702 rm -f conftest.err conftest.$ac_objext \
22703 conftest$ac_exeext conftest.$ac_ext
22705 cat >conftest.$ac_ext <<_ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22712 /* pthread test headers */
22713 #include <pthread.h>
22714 #if HAVE_PTHREADS < 7
22718 #define NULL (void*)0
22721 static void *task(p)
22724 return (void *) (p == NULL);
22728 int main(argc, argv)
22733 /* pthread test function */
22734 #ifndef PTHREAD_CREATE_DETACHED
22735 #define PTHREAD_CREATE_DETACHED 1
22739 int detach = PTHREAD_CREATE_DETACHED;
22741 #if HAVE_PTHREADS > 4
22742 /* Final pthreads */
22743 pthread_attr_t attr;
22745 status = pthread_attr_init(&attr);
22746 if( status ) return status;
22748 #if HAVE_PTHREADS < 7
22749 status = pthread_attr_setdetachstate(&attr, &detach);
22750 if( status < 0 ) status = errno;
22752 status = pthread_attr_setdetachstate(&attr, detach);
22754 if( status ) return status;
22755 status = pthread_create( &t, &attr, task, NULL );
22756 #if HAVE_PTHREADS < 7
22757 if( status < 0 ) status = errno;
22759 if( status ) return status;
22761 /* Draft 4 pthreads */
22762 status = pthread_create( &t, pthread_attr_default, task, NULL );
22763 if( status ) return errno;
22765 /* give thread a chance to complete */
22766 /* it should remain joinable and hence detachable */
22769 status = pthread_detach( &t );
22770 if( status ) return errno;
22773 #ifdef HAVE_LINUX_THREADS
22774 pthread_kill_other_threads_np();
22782 rm -f conftest$ac_exeext
22783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22784 (eval $ac_link) 2>&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789 (eval $ac_try) 2>&5
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); }; }; then
22793 ol_cv_pthread_lc_r=yes
22795 echo "$as_me: program exited with status $ac_status" >&5
22796 echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22799 ( exit $ac_status )
22800 ol_cv_pthread_lc_r=no
22802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22809 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22810 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22812 if test $ol_cv_pthread_lc_r = yes ; then
22813 ol_link_pthreads="-lc_r"
22814 ol_link_threads=posix
22819 # Pthread try link: -threads (ol_cv_pthread_threads)
22820 if test "$ol_link_threads" = no ; then
22822 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22823 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22824 if test "${ol_cv_pthread_threads+set}" = set; then
22825 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 LIBS="-threads $LIBS"
22832 if test "$cross_compiling" = yes; then
22833 cat >conftest.$ac_ext <<_ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22840 /* pthread test headers */
22841 #include <pthread.h>
22842 #if HAVE_PTHREADS < 7
22846 #define NULL (void*)0
22849 static void *task(p)
22852 return (void *) (p == NULL);
22859 /* pthread test function */
22860 #ifndef PTHREAD_CREATE_DETACHED
22861 #define PTHREAD_CREATE_DETACHED 1
22865 int detach = PTHREAD_CREATE_DETACHED;
22867 #if HAVE_PTHREADS > 4
22868 /* Final pthreads */
22869 pthread_attr_t attr;
22871 status = pthread_attr_init(&attr);
22872 if( status ) return status;
22874 #if HAVE_PTHREADS < 7
22875 status = pthread_attr_setdetachstate(&attr, &detach);
22876 if( status < 0 ) status = errno;
22878 status = pthread_attr_setdetachstate(&attr, detach);
22880 if( status ) return status;
22881 status = pthread_create( &t, &attr, task, NULL );
22882 #if HAVE_PTHREADS < 7
22883 if( status < 0 ) status = errno;
22885 if( status ) return status;
22887 /* Draft 4 pthreads */
22888 status = pthread_create( &t, pthread_attr_default, task, NULL );
22889 if( status ) return errno;
22891 /* give thread a chance to complete */
22892 /* it should remain joinable and hence detachable */
22895 status = pthread_detach( &t );
22896 if( status ) return errno;
22899 #ifdef HAVE_LINUX_THREADS
22900 pthread_kill_other_threads_np();
22909 rm -f conftest.$ac_objext conftest$ac_exeext
22910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22911 (eval $ac_link) 2>conftest.er1
22913 grep -v '^ *+' conftest.er1 >conftest.err
22915 cat conftest.err >&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } &&
22918 { ac_try='test -z "$ac_c_werror_flag"
22919 || test ! -s conftest.err'
22920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22921 (eval $ac_try) 2>&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); }; } &&
22925 { ac_try='test -s conftest$ac_exeext'
22926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22927 (eval $ac_try) 2>&5
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); }; }; then
22931 ol_cv_pthread_threads=yes
22933 echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22936 ol_cv_pthread_threads=no
22938 rm -f conftest.err conftest.$ac_objext \
22939 conftest$ac_exeext conftest.$ac_ext
22941 cat >conftest.$ac_ext <<_ACEOF
22944 cat confdefs.h >>conftest.$ac_ext
22945 cat >>conftest.$ac_ext <<_ACEOF
22946 /* end confdefs.h. */
22948 /* pthread test headers */
22949 #include <pthread.h>
22950 #if HAVE_PTHREADS < 7
22954 #define NULL (void*)0
22957 static void *task(p)
22960 return (void *) (p == NULL);
22964 int main(argc, argv)
22969 /* pthread test function */
22970 #ifndef PTHREAD_CREATE_DETACHED
22971 #define PTHREAD_CREATE_DETACHED 1
22975 int detach = PTHREAD_CREATE_DETACHED;
22977 #if HAVE_PTHREADS > 4
22978 /* Final pthreads */
22979 pthread_attr_t attr;
22981 status = pthread_attr_init(&attr);
22982 if( status ) return status;
22984 #if HAVE_PTHREADS < 7
22985 status = pthread_attr_setdetachstate(&attr, &detach);
22986 if( status < 0 ) status = errno;
22988 status = pthread_attr_setdetachstate(&attr, detach);
22990 if( status ) return status;
22991 status = pthread_create( &t, &attr, task, NULL );
22992 #if HAVE_PTHREADS < 7
22993 if( status < 0 ) status = errno;
22995 if( status ) return status;
22997 /* Draft 4 pthreads */
22998 status = pthread_create( &t, pthread_attr_default, task, NULL );
22999 if( status ) return errno;
23001 /* give thread a chance to complete */
23002 /* it should remain joinable and hence detachable */
23005 status = pthread_detach( &t );
23006 if( status ) return errno;
23009 #ifdef HAVE_LINUX_THREADS
23010 pthread_kill_other_threads_np();
23018 rm -f conftest$ac_exeext
23019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23020 (eval $ac_link) 2>&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23025 (eval $ac_try) 2>&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); }; }; then
23029 ol_cv_pthread_threads=yes
23031 echo "$as_me: program exited with status $ac_status" >&5
23032 echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23035 ( exit $ac_status )
23036 ol_cv_pthread_threads=no
23038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23045 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23046 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23048 if test $ol_cv_pthread_threads = yes ; then
23049 ol_link_pthreads="-threads"
23050 ol_link_threads=posix
23055 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23056 if test "$ol_link_threads" = no ; then
23057 # try -lpthreads -lmach -lexc -lc_r
23058 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23059 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23060 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23061 echo $ECHO_N "(cached) $ECHO_C" >&6
23066 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23068 if test "$cross_compiling" = yes; then
23069 cat >conftest.$ac_ext <<_ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h. */
23076 /* pthread test headers */
23077 #include <pthread.h>
23078 #if HAVE_PTHREADS < 7
23082 #define NULL (void*)0
23085 static void *task(p)
23088 return (void *) (p == NULL);
23095 /* pthread test function */
23096 #ifndef PTHREAD_CREATE_DETACHED
23097 #define PTHREAD_CREATE_DETACHED 1
23101 int detach = PTHREAD_CREATE_DETACHED;
23103 #if HAVE_PTHREADS > 4
23104 /* Final pthreads */
23105 pthread_attr_t attr;
23107 status = pthread_attr_init(&attr);
23108 if( status ) return status;
23110 #if HAVE_PTHREADS < 7
23111 status = pthread_attr_setdetachstate(&attr, &detach);
23112 if( status < 0 ) status = errno;
23114 status = pthread_attr_setdetachstate(&attr, detach);
23116 if( status ) return status;
23117 status = pthread_create( &t, &attr, task, NULL );
23118 #if HAVE_PTHREADS < 7
23119 if( status < 0 ) status = errno;
23121 if( status ) return status;
23123 /* Draft 4 pthreads */
23124 status = pthread_create( &t, pthread_attr_default, task, NULL );
23125 if( status ) return errno;
23127 /* give thread a chance to complete */
23128 /* it should remain joinable and hence detachable */
23131 status = pthread_detach( &t );
23132 if( status ) return errno;
23135 #ifdef HAVE_LINUX_THREADS
23136 pthread_kill_other_threads_np();
23145 rm -f conftest.$ac_objext conftest$ac_exeext
23146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23147 (eval $ac_link) 2>conftest.er1
23149 grep -v '^ *+' conftest.er1 >conftest.err
23151 cat conftest.err >&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } &&
23154 { ac_try='test -z "$ac_c_werror_flag"
23155 || test ! -s conftest.err'
23156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157 (eval $ac_try) 2>&5
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; } &&
23161 { ac_try='test -s conftest$ac_exeext'
23162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23163 (eval $ac_try) 2>&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); }; }; then
23167 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23172 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23174 rm -f conftest.err conftest.$ac_objext \
23175 conftest$ac_exeext conftest.$ac_ext
23177 cat >conftest.$ac_ext <<_ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h. */
23184 /* pthread test headers */
23185 #include <pthread.h>
23186 #if HAVE_PTHREADS < 7
23190 #define NULL (void*)0
23193 static void *task(p)
23196 return (void *) (p == NULL);
23200 int main(argc, argv)
23205 /* pthread test function */
23206 #ifndef PTHREAD_CREATE_DETACHED
23207 #define PTHREAD_CREATE_DETACHED 1
23211 int detach = PTHREAD_CREATE_DETACHED;
23213 #if HAVE_PTHREADS > 4
23214 /* Final pthreads */
23215 pthread_attr_t attr;
23217 status = pthread_attr_init(&attr);
23218 if( status ) return status;
23220 #if HAVE_PTHREADS < 7
23221 status = pthread_attr_setdetachstate(&attr, &detach);
23222 if( status < 0 ) status = errno;
23224 status = pthread_attr_setdetachstate(&attr, detach);
23226 if( status ) return status;
23227 status = pthread_create( &t, &attr, task, NULL );
23228 #if HAVE_PTHREADS < 7
23229 if( status < 0 ) status = errno;
23231 if( status ) return status;
23233 /* Draft 4 pthreads */
23234 status = pthread_create( &t, pthread_attr_default, task, NULL );
23235 if( status ) return errno;
23237 /* give thread a chance to complete */
23238 /* it should remain joinable and hence detachable */
23241 status = pthread_detach( &t );
23242 if( status ) return errno;
23245 #ifdef HAVE_LINUX_THREADS
23246 pthread_kill_other_threads_np();
23254 rm -f conftest$ac_exeext
23255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23256 (eval $ac_link) 2>&5
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261 (eval $ac_try) 2>&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); }; }; then
23265 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23267 echo "$as_me: program exited with status $ac_status" >&5
23268 echo "$as_me: failed program was:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23271 ( exit $ac_status )
23272 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23281 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23282 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23284 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23285 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23286 ol_link_threads=posix
23290 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23291 if test "$ol_link_threads" = no ; then
23292 # try -lpthreads -lmach -lexc
23293 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23294 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23295 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23296 echo $ECHO_N "(cached) $ECHO_C" >&6
23301 LIBS="-lpthreads -lmach -lexc $LIBS"
23303 if test "$cross_compiling" = yes; then
23304 cat >conftest.$ac_ext <<_ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23311 /* pthread test headers */
23312 #include <pthread.h>
23313 #if HAVE_PTHREADS < 7
23317 #define NULL (void*)0
23320 static void *task(p)
23323 return (void *) (p == NULL);
23330 /* pthread test function */
23331 #ifndef PTHREAD_CREATE_DETACHED
23332 #define PTHREAD_CREATE_DETACHED 1
23336 int detach = PTHREAD_CREATE_DETACHED;
23338 #if HAVE_PTHREADS > 4
23339 /* Final pthreads */
23340 pthread_attr_t attr;
23342 status = pthread_attr_init(&attr);
23343 if( status ) return status;
23345 #if HAVE_PTHREADS < 7
23346 status = pthread_attr_setdetachstate(&attr, &detach);
23347 if( status < 0 ) status = errno;
23349 status = pthread_attr_setdetachstate(&attr, detach);
23351 if( status ) return status;
23352 status = pthread_create( &t, &attr, task, NULL );
23353 #if HAVE_PTHREADS < 7
23354 if( status < 0 ) status = errno;
23356 if( status ) return status;
23358 /* Draft 4 pthreads */
23359 status = pthread_create( &t, pthread_attr_default, task, NULL );
23360 if( status ) return errno;
23362 /* give thread a chance to complete */
23363 /* it should remain joinable and hence detachable */
23366 status = pthread_detach( &t );
23367 if( status ) return errno;
23370 #ifdef HAVE_LINUX_THREADS
23371 pthread_kill_other_threads_np();
23380 rm -f conftest.$ac_objext conftest$ac_exeext
23381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23382 (eval $ac_link) 2>conftest.er1
23384 grep -v '^ *+' conftest.er1 >conftest.err
23386 cat conftest.err >&5
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); } &&
23389 { ac_try='test -z "$ac_c_werror_flag"
23390 || test ! -s conftest.err'
23391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23392 (eval $ac_try) 2>&5
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); }; } &&
23396 { ac_try='test -s conftest$ac_exeext'
23397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398 (eval $ac_try) 2>&5
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; }; then
23402 ol_cv_pthread_lpthreads_lmach_lexc=yes
23404 echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23407 ol_cv_pthread_lpthreads_lmach_lexc=no
23409 rm -f conftest.err conftest.$ac_objext \
23410 conftest$ac_exeext conftest.$ac_ext
23412 cat >conftest.$ac_ext <<_ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h. */
23419 /* pthread test headers */
23420 #include <pthread.h>
23421 #if HAVE_PTHREADS < 7
23425 #define NULL (void*)0
23428 static void *task(p)
23431 return (void *) (p == NULL);
23435 int main(argc, argv)
23440 /* pthread test function */
23441 #ifndef PTHREAD_CREATE_DETACHED
23442 #define PTHREAD_CREATE_DETACHED 1
23446 int detach = PTHREAD_CREATE_DETACHED;
23448 #if HAVE_PTHREADS > 4
23449 /* Final pthreads */
23450 pthread_attr_t attr;
23452 status = pthread_attr_init(&attr);
23453 if( status ) return status;
23455 #if HAVE_PTHREADS < 7
23456 status = pthread_attr_setdetachstate(&attr, &detach);
23457 if( status < 0 ) status = errno;
23459 status = pthread_attr_setdetachstate(&attr, detach);
23461 if( status ) return status;
23462 status = pthread_create( &t, &attr, task, NULL );
23463 #if HAVE_PTHREADS < 7
23464 if( status < 0 ) status = errno;
23466 if( status ) return status;
23468 /* Draft 4 pthreads */
23469 status = pthread_create( &t, pthread_attr_default, task, NULL );
23470 if( status ) return errno;
23472 /* give thread a chance to complete */
23473 /* it should remain joinable and hence detachable */
23476 status = pthread_detach( &t );
23477 if( status ) return errno;
23480 #ifdef HAVE_LINUX_THREADS
23481 pthread_kill_other_threads_np();
23489 rm -f conftest$ac_exeext
23490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23491 (eval $ac_link) 2>&5
23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23496 (eval $ac_try) 2>&5
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); }; }; then
23500 ol_cv_pthread_lpthreads_lmach_lexc=yes
23502 echo "$as_me: program exited with status $ac_status" >&5
23503 echo "$as_me: failed program was:" >&5
23504 sed 's/^/| /' conftest.$ac_ext >&5
23506 ( exit $ac_status )
23507 ol_cv_pthread_lpthreads_lmach_lexc=no
23509 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23516 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23517 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23519 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23520 ol_link_pthreads="-lpthreads -lmach -lexc"
23521 ol_link_threads=posix
23525 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23526 if test "$ol_link_threads" = no ; then
23527 # try -lpthreads -lexc
23528 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23529 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23530 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23531 echo $ECHO_N "(cached) $ECHO_C" >&6
23536 LIBS="-lpthreads -lexc $LIBS"
23538 if test "$cross_compiling" = yes; then
23539 cat >conftest.$ac_ext <<_ACEOF
23542 cat confdefs.h >>conftest.$ac_ext
23543 cat >>conftest.$ac_ext <<_ACEOF
23544 /* end confdefs.h. */
23546 /* pthread test headers */
23547 #include <pthread.h>
23548 #if HAVE_PTHREADS < 7
23552 #define NULL (void*)0
23555 static void *task(p)
23558 return (void *) (p == NULL);
23565 /* pthread test function */
23566 #ifndef PTHREAD_CREATE_DETACHED
23567 #define PTHREAD_CREATE_DETACHED 1
23571 int detach = PTHREAD_CREATE_DETACHED;
23573 #if HAVE_PTHREADS > 4
23574 /* Final pthreads */
23575 pthread_attr_t attr;
23577 status = pthread_attr_init(&attr);
23578 if( status ) return status;
23580 #if HAVE_PTHREADS < 7
23581 status = pthread_attr_setdetachstate(&attr, &detach);
23582 if( status < 0 ) status = errno;
23584 status = pthread_attr_setdetachstate(&attr, detach);
23586 if( status ) return status;
23587 status = pthread_create( &t, &attr, task, NULL );
23588 #if HAVE_PTHREADS < 7
23589 if( status < 0 ) status = errno;
23591 if( status ) return status;
23593 /* Draft 4 pthreads */
23594 status = pthread_create( &t, pthread_attr_default, task, NULL );
23595 if( status ) return errno;
23597 /* give thread a chance to complete */
23598 /* it should remain joinable and hence detachable */
23601 status = pthread_detach( &t );
23602 if( status ) return errno;
23605 #ifdef HAVE_LINUX_THREADS
23606 pthread_kill_other_threads_np();
23615 rm -f conftest.$ac_objext conftest$ac_exeext
23616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23617 (eval $ac_link) 2>conftest.er1
23619 grep -v '^ *+' conftest.er1 >conftest.err
23621 cat conftest.err >&5
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); } &&
23624 { ac_try='test -z "$ac_c_werror_flag"
23625 || test ! -s conftest.err'
23626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23627 (eval $ac_try) 2>&5
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); }; } &&
23631 { ac_try='test -s conftest$ac_exeext'
23632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23633 (eval $ac_try) 2>&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); }; }; then
23637 ol_cv_pthread_lpthreads_lexc=yes
23639 echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23642 ol_cv_pthread_lpthreads_lexc=no
23644 rm -f conftest.err conftest.$ac_objext \
23645 conftest$ac_exeext conftest.$ac_ext
23647 cat >conftest.$ac_ext <<_ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h. */
23654 /* pthread test headers */
23655 #include <pthread.h>
23656 #if HAVE_PTHREADS < 7
23660 #define NULL (void*)0
23663 static void *task(p)
23666 return (void *) (p == NULL);
23670 int main(argc, argv)
23675 /* pthread test function */
23676 #ifndef PTHREAD_CREATE_DETACHED
23677 #define PTHREAD_CREATE_DETACHED 1
23681 int detach = PTHREAD_CREATE_DETACHED;
23683 #if HAVE_PTHREADS > 4
23684 /* Final pthreads */
23685 pthread_attr_t attr;
23687 status = pthread_attr_init(&attr);
23688 if( status ) return status;
23690 #if HAVE_PTHREADS < 7
23691 status = pthread_attr_setdetachstate(&attr, &detach);
23692 if( status < 0 ) status = errno;
23694 status = pthread_attr_setdetachstate(&attr, detach);
23696 if( status ) return status;
23697 status = pthread_create( &t, &attr, task, NULL );
23698 #if HAVE_PTHREADS < 7
23699 if( status < 0 ) status = errno;
23701 if( status ) return status;
23703 /* Draft 4 pthreads */
23704 status = pthread_create( &t, pthread_attr_default, task, NULL );
23705 if( status ) return errno;
23707 /* give thread a chance to complete */
23708 /* it should remain joinable and hence detachable */
23711 status = pthread_detach( &t );
23712 if( status ) return errno;
23715 #ifdef HAVE_LINUX_THREADS
23716 pthread_kill_other_threads_np();
23724 rm -f conftest$ac_exeext
23725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23726 (eval $ac_link) 2>&5
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731 (eval $ac_try) 2>&5
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); }; }; then
23735 ol_cv_pthread_lpthreads_lexc=yes
23737 echo "$as_me: program exited with status $ac_status" >&5
23738 echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23741 ( exit $ac_status )
23742 ol_cv_pthread_lpthreads_lexc=no
23744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23751 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23752 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23754 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23755 ol_link_pthreads="-lpthreads -lexc"
23756 ol_link_threads=posix
23761 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23762 if test "$ol_link_threads" = no ; then
23764 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23765 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23766 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23767 echo $ECHO_N "(cached) $ECHO_C" >&6
23772 LIBS="-lpthreads $LIBS"
23774 if test "$cross_compiling" = yes; then
23775 cat >conftest.$ac_ext <<_ACEOF
23778 cat confdefs.h >>conftest.$ac_ext
23779 cat >>conftest.$ac_ext <<_ACEOF
23780 /* end confdefs.h. */
23782 /* pthread test headers */
23783 #include <pthread.h>
23784 #if HAVE_PTHREADS < 7
23788 #define NULL (void*)0
23791 static void *task(p)
23794 return (void *) (p == NULL);
23801 /* pthread test function */
23802 #ifndef PTHREAD_CREATE_DETACHED
23803 #define PTHREAD_CREATE_DETACHED 1
23807 int detach = PTHREAD_CREATE_DETACHED;
23809 #if HAVE_PTHREADS > 4
23810 /* Final pthreads */
23811 pthread_attr_t attr;
23813 status = pthread_attr_init(&attr);
23814 if( status ) return status;
23816 #if HAVE_PTHREADS < 7
23817 status = pthread_attr_setdetachstate(&attr, &detach);
23818 if( status < 0 ) status = errno;
23820 status = pthread_attr_setdetachstate(&attr, detach);
23822 if( status ) return status;
23823 status = pthread_create( &t, &attr, task, NULL );
23824 #if HAVE_PTHREADS < 7
23825 if( status < 0 ) status = errno;
23827 if( status ) return status;
23829 /* Draft 4 pthreads */
23830 status = pthread_create( &t, pthread_attr_default, task, NULL );
23831 if( status ) return errno;
23833 /* give thread a chance to complete */
23834 /* it should remain joinable and hence detachable */
23837 status = pthread_detach( &t );
23838 if( status ) return errno;
23841 #ifdef HAVE_LINUX_THREADS
23842 pthread_kill_other_threads_np();
23851 rm -f conftest.$ac_objext conftest$ac_exeext
23852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23853 (eval $ac_link) 2>conftest.er1
23855 grep -v '^ *+' conftest.er1 >conftest.err
23857 cat conftest.err >&5
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); } &&
23860 { ac_try='test -z "$ac_c_werror_flag"
23861 || test ! -s conftest.err'
23862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863 (eval $ac_try) 2>&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); }; } &&
23867 { ac_try='test -s conftest$ac_exeext'
23868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23869 (eval $ac_try) 2>&5
23871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872 (exit $ac_status); }; }; then
23873 ol_cv_pthread_lib_lpthreads=yes
23875 echo "$as_me: failed program was:" >&5
23876 sed 's/^/| /' conftest.$ac_ext >&5
23878 ol_cv_pthread_lib_lpthreads=no
23880 rm -f conftest.err conftest.$ac_objext \
23881 conftest$ac_exeext conftest.$ac_ext
23883 cat >conftest.$ac_ext <<_ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h. */
23890 /* pthread test headers */
23891 #include <pthread.h>
23892 #if HAVE_PTHREADS < 7
23896 #define NULL (void*)0
23899 static void *task(p)
23902 return (void *) (p == NULL);
23906 int main(argc, argv)
23911 /* pthread test function */
23912 #ifndef PTHREAD_CREATE_DETACHED
23913 #define PTHREAD_CREATE_DETACHED 1
23917 int detach = PTHREAD_CREATE_DETACHED;
23919 #if HAVE_PTHREADS > 4
23920 /* Final pthreads */
23921 pthread_attr_t attr;
23923 status = pthread_attr_init(&attr);
23924 if( status ) return status;
23926 #if HAVE_PTHREADS < 7
23927 status = pthread_attr_setdetachstate(&attr, &detach);
23928 if( status < 0 ) status = errno;
23930 status = pthread_attr_setdetachstate(&attr, detach);
23932 if( status ) return status;
23933 status = pthread_create( &t, &attr, task, NULL );
23934 #if HAVE_PTHREADS < 7
23935 if( status < 0 ) status = errno;
23937 if( status ) return status;
23939 /* Draft 4 pthreads */
23940 status = pthread_create( &t, pthread_attr_default, task, NULL );
23941 if( status ) return errno;
23943 /* give thread a chance to complete */
23944 /* it should remain joinable and hence detachable */
23947 status = pthread_detach( &t );
23948 if( status ) return errno;
23951 #ifdef HAVE_LINUX_THREADS
23952 pthread_kill_other_threads_np();
23960 rm -f conftest$ac_exeext
23961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23962 (eval $ac_link) 2>&5
23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23967 (eval $ac_try) 2>&5
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); }; }; then
23971 ol_cv_pthread_lib_lpthreads=yes
23973 echo "$as_me: program exited with status $ac_status" >&5
23974 echo "$as_me: failed program was:" >&5
23975 sed 's/^/| /' conftest.$ac_ext >&5
23977 ( exit $ac_status )
23978 ol_cv_pthread_lib_lpthreads=no
23980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23987 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23988 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23990 if test $ol_cv_pthread_lib_lpthreads = yes ; then
23991 ol_link_pthreads="-lpthreads"
23992 ol_link_threads=posix
23997 if test $ol_link_threads != no ; then
23998 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24000 save_CPPFLAGS="$CPPFLAGS"
24002 LIBS="$LTHREAD_LIBS $LIBS"
24007 for ac_func in sched_yield pthread_yield thr_yield
24009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24010 echo "$as_me:$LINENO: checking for $ac_func" >&5
24011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24012 if eval "test \"\${$as_ac_var+set}\" = set"; then
24013 echo $ECHO_N "(cached) $ECHO_C" >&6
24015 cat >conftest.$ac_ext <<_ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h. */
24021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24023 #define $ac_func innocuous_$ac_func
24025 /* System header to define __stub macros and hopefully few prototypes,
24026 which can conflict with char $ac_func (); below.
24027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24028 <limits.h> exists even on freestanding compilers. */
24031 # include <limits.h>
24033 # include <assert.h>
24038 /* Override any gcc2 internal prototype to avoid an error. */
24043 /* We use char because int might match the return type of a gcc2
24044 builtin and then its argument prototype would still apply. */
24046 /* The GNU C library defines this for functions which it implements
24047 to always fail with ENOSYS. Some functions are actually named
24048 something starting with __ and the normal name is an alias. */
24049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24052 char (*f) () = $ac_func;
24061 return f != $ac_func;
24066 rm -f conftest.$ac_objext conftest$ac_exeext
24067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24068 (eval $ac_link) 2>conftest.er1
24070 grep -v '^ *+' conftest.er1 >conftest.err
24072 cat conftest.err >&5
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); } &&
24075 { ac_try='test -z "$ac_c_werror_flag"
24076 || test ! -s conftest.err'
24077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24078 (eval $ac_try) 2>&5
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); }; } &&
24082 { ac_try='test -s conftest$ac_exeext'
24083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24084 (eval $ac_try) 2>&5
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); }; }; then
24088 eval "$as_ac_var=yes"
24090 echo "$as_me: failed program was:" >&5
24091 sed 's/^/| /' conftest.$ac_ext >&5
24093 eval "$as_ac_var=no"
24095 rm -f conftest.err conftest.$ac_objext \
24096 conftest$ac_exeext conftest.$ac_ext
24098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24100 if test `eval echo '${'$as_ac_var'}'` = yes; then
24101 cat >>confdefs.h <<_ACEOF
24102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24109 if test $ac_cv_func_sched_yield = no &&
24110 test $ac_cv_func_pthread_yield = no &&
24111 test $ac_cv_func_thr_yield = no ; then
24112 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24113 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24114 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24115 echo $ECHO_N "(cached) $ECHO_C" >&6
24117 ac_check_lib_save_LIBS=$LIBS
24119 cat >conftest.$ac_ext <<_ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h. */
24126 /* 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. */
24132 char sched_yield ();
24141 rm -f conftest.$ac_objext conftest$ac_exeext
24142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24143 (eval $ac_link) 2>conftest.er1
24145 grep -v '^ *+' conftest.er1 >conftest.err
24147 cat conftest.err >&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } &&
24150 { ac_try='test -z "$ac_c_werror_flag"
24151 || test ! -s conftest.err'
24152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153 (eval $ac_try) 2>&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); }; } &&
24157 { ac_try='test -s conftest$ac_exeext'
24158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24159 (eval $ac_try) 2>&5
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); }; }; then
24163 ac_cv_lib_rt_sched_yield=yes
24165 echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24168 ac_cv_lib_rt_sched_yield=no
24170 rm -f conftest.err conftest.$ac_objext \
24171 conftest$ac_exeext conftest.$ac_ext
24172 LIBS=$ac_check_lib_save_LIBS
24174 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24175 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24176 if test $ac_cv_lib_rt_sched_yield = yes; then
24177 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24179 cat >>confdefs.h <<\_ACEOF
24180 #define HAVE_SCHED_YIELD 1
24183 ac_cv_func_sched_yield=yes
24185 ac_cv_func_sched_yield=no
24189 if test $ac_cv_func_sched_yield = no &&
24190 test $ac_cv_func_pthread_yield = no &&
24191 test "$ac_cv_func_thr_yield" = no ; then
24192 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24193 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24198 for ac_func in pthread_kill pthread_rwlock_destroy
24200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24201 echo "$as_me:$LINENO: checking for $ac_func" >&5
24202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24203 if eval "test \"\${$as_ac_var+set}\" = set"; then
24204 echo $ECHO_N "(cached) $ECHO_C" >&6
24206 cat >conftest.$ac_ext <<_ACEOF
24209 cat confdefs.h >>conftest.$ac_ext
24210 cat >>conftest.$ac_ext <<_ACEOF
24211 /* end confdefs.h. */
24212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24214 #define $ac_func innocuous_$ac_func
24216 /* System header to define __stub macros and hopefully few prototypes,
24217 which can conflict with char $ac_func (); below.
24218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24219 <limits.h> exists even on freestanding compilers. */
24222 # include <limits.h>
24224 # include <assert.h>
24229 /* Override any gcc2 internal prototype to avoid an error. */
24234 /* We use char because int might match the return type of a gcc2
24235 builtin and then its argument prototype would still apply. */
24237 /* The GNU C library defines this for functions which it implements
24238 to always fail with ENOSYS. Some functions are actually named
24239 something starting with __ and the normal name is an alias. */
24240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24243 char (*f) () = $ac_func;
24252 return f != $ac_func;
24257 rm -f conftest.$ac_objext conftest$ac_exeext
24258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24259 (eval $ac_link) 2>conftest.er1
24261 grep -v '^ *+' conftest.er1 >conftest.err
24263 cat conftest.err >&5
24264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265 (exit $ac_status); } &&
24266 { ac_try='test -z "$ac_c_werror_flag"
24267 || test ! -s conftest.err'
24268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269 (eval $ac_try) 2>&5
24271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); }; } &&
24273 { ac_try='test -s conftest$ac_exeext'
24274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275 (eval $ac_try) 2>&5
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); }; }; then
24279 eval "$as_ac_var=yes"
24281 echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24284 eval "$as_ac_var=no"
24286 rm -f conftest.err conftest.$ac_objext \
24287 conftest$ac_exeext conftest.$ac_ext
24289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24291 if test `eval echo '${'$as_ac_var'}'` = yes; then
24292 cat >>confdefs.h <<_ACEOF
24293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24300 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24301 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24302 if test "${ol_cv_func_pthread_detach+set}" = set; then
24303 echo $ECHO_N "(cached) $ECHO_C" >&6
24306 cat >conftest.$ac_ext <<_ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h. */
24313 #include <pthread.h>
24315 #define NULL (void*)0
24321 pthread_detach(NULL);
24326 rm -f conftest.$ac_objext conftest$ac_exeext
24327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24328 (eval $ac_link) 2>conftest.er1
24330 grep -v '^ *+' conftest.er1 >conftest.err
24332 cat conftest.err >&5
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); } &&
24335 { ac_try='test -z "$ac_c_werror_flag"
24336 || test ! -s conftest.err'
24337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24338 (eval $ac_try) 2>&5
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); }; } &&
24342 { ac_try='test -s conftest$ac_exeext'
24343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24344 (eval $ac_try) 2>&5
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); }; }; then
24348 ol_cv_func_pthread_detach=yes
24350 echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24353 ol_cv_func_pthread_detach=no
24355 rm -f conftest.err conftest.$ac_objext \
24356 conftest$ac_exeext conftest.$ac_ext
24359 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24360 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24362 if test $ol_cv_func_pthread_detach = no ; then
24363 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24364 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24365 { (exit 1); exit 1; }; }
24369 cat >>confdefs.h <<\_ACEOF
24370 #define HAVE_PTHREAD_DETACH 1
24379 pthread_setconcurrency \
24380 pthread_getconcurrency \
24381 thr_setconcurrency \
24382 thr_getconcurrency \
24385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24386 echo "$as_me:$LINENO: checking for $ac_func" >&5
24387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24388 if eval "test \"\${$as_ac_var+set}\" = set"; then
24389 echo $ECHO_N "(cached) $ECHO_C" >&6
24391 cat >conftest.$ac_ext <<_ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h. */
24397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24399 #define $ac_func innocuous_$ac_func
24401 /* System header to define __stub macros and hopefully few prototypes,
24402 which can conflict with char $ac_func (); below.
24403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24404 <limits.h> exists even on freestanding compilers. */
24407 # include <limits.h>
24409 # include <assert.h>
24414 /* Override any gcc2 internal prototype to avoid an error. */
24419 /* We use char because int might match the return type of a gcc2
24420 builtin and then its argument prototype would still apply. */
24422 /* The GNU C library defines this for functions which it implements
24423 to always fail with ENOSYS. Some functions are actually named
24424 something starting with __ and the normal name is an alias. */
24425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24428 char (*f) () = $ac_func;
24437 return f != $ac_func;
24442 rm -f conftest.$ac_objext conftest$ac_exeext
24443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24444 (eval $ac_link) 2>conftest.er1
24446 grep -v '^ *+' conftest.er1 >conftest.err
24448 cat conftest.err >&5
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); } &&
24451 { ac_try='test -z "$ac_c_werror_flag"
24452 || test ! -s conftest.err'
24453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24454 (eval $ac_try) 2>&5
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); }; } &&
24458 { ac_try='test -s conftest$ac_exeext'
24459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24460 (eval $ac_try) 2>&5
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); }; }; then
24464 eval "$as_ac_var=yes"
24466 echo "$as_me: failed program was:" >&5
24467 sed 's/^/| /' conftest.$ac_ext >&5
24469 eval "$as_ac_var=no"
24471 rm -f conftest.err conftest.$ac_objext \
24472 conftest$ac_exeext conftest.$ac_ext
24474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24476 if test `eval echo '${'$as_ac_var'}'` = yes; then
24477 cat >>confdefs.h <<_ACEOF
24478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24487 for ac_func in pthread_kill_other_threads_np
24489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24490 echo "$as_me:$LINENO: checking for $ac_func" >&5
24491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24492 if eval "test \"\${$as_ac_var+set}\" = set"; then
24493 echo $ECHO_N "(cached) $ECHO_C" >&6
24495 cat >conftest.$ac_ext <<_ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h. */
24501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24503 #define $ac_func innocuous_$ac_func
24505 /* System header to define __stub macros and hopefully few prototypes,
24506 which can conflict with char $ac_func (); below.
24507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24508 <limits.h> exists even on freestanding compilers. */
24511 # include <limits.h>
24513 # include <assert.h>
24518 /* Override any gcc2 internal prototype to avoid an error. */
24523 /* We use char because int might match the return type of a gcc2
24524 builtin and then its argument prototype would still apply. */
24526 /* The GNU C library defines this for functions which it implements
24527 to always fail with ENOSYS. Some functions are actually named
24528 something starting with __ and the normal name is an alias. */
24529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24532 char (*f) () = $ac_func;
24541 return f != $ac_func;
24546 rm -f conftest.$ac_objext conftest$ac_exeext
24547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24548 (eval $ac_link) 2>conftest.er1
24550 grep -v '^ *+' conftest.er1 >conftest.err
24552 cat conftest.err >&5
24553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554 (exit $ac_status); } &&
24555 { ac_try='test -z "$ac_c_werror_flag"
24556 || test ! -s conftest.err'
24557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24558 (eval $ac_try) 2>&5
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); }; } &&
24562 { ac_try='test -s conftest$ac_exeext'
24563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24564 (eval $ac_try) 2>&5
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); }; }; then
24568 eval "$as_ac_var=yes"
24570 echo "$as_me: failed program was:" >&5
24571 sed 's/^/| /' conftest.$ac_ext >&5
24573 eval "$as_ac_var=no"
24575 rm -f conftest.err conftest.$ac_objext \
24576 conftest$ac_exeext conftest.$ac_ext
24578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24580 if test `eval echo '${'$as_ac_var'}'` = yes; then
24581 cat >>confdefs.h <<_ACEOF
24582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24588 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24589 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24590 if test "${ol_cv_sys_linux_threads+set}" = set; then
24591 echo $ECHO_N "(cached) $ECHO_C" >&6
24593 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24595 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24596 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24601 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24602 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24603 if test "${ol_cv_linux_threads+set}" = set; then
24604 echo $ECHO_N "(cached) $ECHO_C" >&6
24607 if test $ol_cv_header_linux_threads = yes &&
24608 test $ol_cv_sys_linux_threads = yes; then
24609 ol_cv_linux_threads=yes
24610 elif test $ol_cv_header_linux_threads = no &&
24611 test $ol_cv_sys_linux_threads = no; then
24612 ol_cv_linux_threads=no
24614 ol_cv_linux_threads=error
24618 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24619 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24622 if test $ol_cv_linux_threads = error; then
24623 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24624 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24625 { (exit 1); exit 1; }; };
24628 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24629 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24630 if test "${ol_cv_pthread_create_works+set}" = set; then
24631 echo $ECHO_N "(cached) $ECHO_C" >&6
24634 if test "$cross_compiling" = yes; then
24635 ol_cv_pthread_create_works=yes
24637 cat >conftest.$ac_ext <<_ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h. */
24644 /* pthread test headers */
24645 #include <pthread.h>
24646 #if HAVE_PTHREADS < 7
24650 #define NULL (void*)0
24653 static void *task(p)
24656 return (void *) (p == NULL);
24660 int main(argc, argv)
24665 /* pthread test function */
24666 #ifndef PTHREAD_CREATE_DETACHED
24667 #define PTHREAD_CREATE_DETACHED 1
24671 int detach = PTHREAD_CREATE_DETACHED;
24673 #if HAVE_PTHREADS > 4
24674 /* Final pthreads */
24675 pthread_attr_t attr;
24677 status = pthread_attr_init(&attr);
24678 if( status ) return status;
24680 #if HAVE_PTHREADS < 7
24681 status = pthread_attr_setdetachstate(&attr, &detach);
24682 if( status < 0 ) status = errno;
24684 status = pthread_attr_setdetachstate(&attr, detach);
24686 if( status ) return status;
24687 status = pthread_create( &t, &attr, task, NULL );
24688 #if HAVE_PTHREADS < 7
24689 if( status < 0 ) status = errno;
24691 if( status ) return status;
24693 /* Draft 4 pthreads */
24694 status = pthread_create( &t, pthread_attr_default, task, NULL );
24695 if( status ) return errno;
24697 /* give thread a chance to complete */
24698 /* it should remain joinable and hence detachable */
24701 status = pthread_detach( &t );
24702 if( status ) return errno;
24705 #ifdef HAVE_LINUX_THREADS
24706 pthread_kill_other_threads_np();
24714 rm -f conftest$ac_exeext
24715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24716 (eval $ac_link) 2>&5
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721 (eval $ac_try) 2>&5
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); }; }; then
24725 ol_cv_pthread_create_works=yes
24727 echo "$as_me: program exited with status $ac_status" >&5
24728 echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24731 ( exit $ac_status )
24732 ol_cv_pthread_create_works=no
24734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24737 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24738 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24740 if test $ol_cv_pthread_create_works = no ; then
24741 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24742 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24743 { (exit 1); exit 1; }; }
24746 ol_replace_broken_yield=no
24749 ol_replace_broken_yield=yes
24753 if test $ol_replace_broken_yield = yes ; then
24755 cat >>confdefs.h <<\_ACEOF
24756 #define REPLACE_BROKEN_YIELD 1
24761 if test $ol_with_yielding_select = auto ; then
24762 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24763 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24764 if test "${ol_cv_pthread_select_yields+set}" = set; then
24765 echo $ECHO_N "(cached) $ECHO_C" >&6
24768 if test "$cross_compiling" = yes; then
24769 ol_cv_pthread_select_yields=cross
24771 cat >conftest.$ac_ext <<_ACEOF
24774 cat confdefs.h >>conftest.$ac_ext
24775 cat >>conftest.$ac_ext <<_ACEOF
24776 /* end confdefs.h. */
24778 #include <sys/types.h>
24779 #include <sys/time.h>
24780 #include <unistd.h>
24781 #include <pthread.h>
24783 #define NULL (void*) 0
24786 static int fildes[2];
24788 static void *task(p)
24800 FD_SET(fildes[0], &rfds);
24802 /* we're not interested in any fds */
24803 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24810 exit(0); /* if we exit here, the select blocked the whole process */
24813 int main(argc, argv)
24819 /* create a pipe to select */
24820 if(pipe(&fildes[0])) {
24825 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24826 (void) pthread_setconcurrency(2);
24828 #ifdef HAVE_THR_SETCONCURRENCY
24829 /* Set Solaris LWP concurrency to 2 */
24830 thr_setconcurrency(2);
24834 #if HAVE_PTHREADS < 6
24835 pthread_create(&t, pthread_attr_default, task, NULL);
24837 pthread_create(&t, NULL, task, NULL);
24840 /* make sure task runs first */
24843 #elif defined( HAVE_SCHED_YIELD )
24845 #elif defined( HAVE_PTHREAD_YIELD )
24852 rm -f conftest$ac_exeext
24853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24854 (eval $ac_link) 2>&5
24856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24859 (eval $ac_try) 2>&5
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); }; }; then
24863 ol_cv_pthread_select_yields=no
24865 echo "$as_me: program exited with status $ac_status" >&5
24866 echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24869 ( exit $ac_status )
24870 ol_cv_pthread_select_yields=yes
24872 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24875 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24876 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24878 if test $ol_cv_pthread_select_yields = cross ; then
24879 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24880 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24881 { (exit 1); exit 1; }; }
24884 if test $ol_cv_pthread_select_yields = yes ; then
24885 ol_with_yielding_select=yes
24889 CPPFLAGS="$save_CPPFLAGS"
24892 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24893 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24894 { (exit 1); exit 1; }; }
24898 if test $ol_with_threads = posix ; then
24899 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24900 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24901 { (exit 1); exit 1; }; }
24906 case $ol_with_threads in auto | yes | mach)
24910 for ac_header in mach/cthreads.h cthreads.h
24912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24914 echo "$as_me:$LINENO: checking for $ac_header" >&5
24915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24917 echo $ECHO_N "(cached) $ECHO_C" >&6
24919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24922 # Is the header compilable?
24923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24925 cat >conftest.$ac_ext <<_ACEOF
24928 cat confdefs.h >>conftest.$ac_ext
24929 cat >>conftest.$ac_ext <<_ACEOF
24930 /* end confdefs.h. */
24931 $ac_includes_default
24932 #include <$ac_header>
24934 rm -f conftest.$ac_objext
24935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24936 (eval $ac_compile) 2>conftest.er1
24938 grep -v '^ *+' conftest.er1 >conftest.err
24940 cat conftest.err >&5
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); } &&
24943 { ac_try='test -z "$ac_c_werror_flag"
24944 || test ! -s conftest.err'
24945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24946 (eval $ac_try) 2>&5
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); }; } &&
24950 { ac_try='test -s conftest.$ac_objext'
24951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24952 (eval $ac_try) 2>&5
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }; }; then
24956 ac_header_compiler=yes
24958 echo "$as_me: failed program was:" >&5
24959 sed 's/^/| /' conftest.$ac_ext >&5
24961 ac_header_compiler=no
24963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24965 echo "${ECHO_T}$ac_header_compiler" >&6
24967 # Is the header present?
24968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24970 cat >conftest.$ac_ext <<_ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h. */
24976 #include <$ac_header>
24978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24981 grep -v '^ *+' conftest.er1 >conftest.err
24983 cat conftest.err >&5
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); } >/dev/null; then
24986 if test -s conftest.err; then
24987 ac_cpp_err=$ac_c_preproc_warn_flag
24988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24995 if test -z "$ac_cpp_err"; then
24996 ac_header_preproc=yes
24998 echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25001 ac_header_preproc=no
25003 rm -f conftest.err conftest.$ac_ext
25004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25005 echo "${ECHO_T}$ac_header_preproc" >&6
25007 # So? What about this header?
25008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25014 ac_header_preproc=yes
25017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25031 ## ------------------------------------------ ##
25032 ## Report this to the AC_PACKAGE_NAME lists. ##
25033 ## ------------------------------------------ ##
25036 sed "s/^/$as_me: WARNING: /" >&2
25039 echo "$as_me:$LINENO: checking for $ac_header" >&5
25040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25042 echo $ECHO_N "(cached) $ECHO_C" >&6
25044 eval "$as_ac_Header=\$ac_header_preproc"
25046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25051 cat >>confdefs.h <<_ACEOF
25052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25059 if test $ac_cv_header_mach_cthreads_h = yes ; then
25060 ol_with_threads=found
25062 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25063 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25064 if test "${ac_cv_func_cthread_fork+set}" = set; then
25065 echo $ECHO_N "(cached) $ECHO_C" >&6
25067 cat >conftest.$ac_ext <<_ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h. */
25073 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25075 #define cthread_fork innocuous_cthread_fork
25077 /* System header to define __stub macros and hopefully few prototypes,
25078 which can conflict with char cthread_fork (); below.
25079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25080 <limits.h> exists even on freestanding compilers. */
25083 # include <limits.h>
25085 # include <assert.h>
25088 #undef cthread_fork
25090 /* Override any gcc2 internal prototype to avoid an error. */
25095 /* We use char because int might match the return type of a gcc2
25096 builtin and then its argument prototype would still apply. */
25097 char cthread_fork ();
25098 /* The GNU C library defines this for functions which it implements
25099 to always fail with ENOSYS. Some functions are actually named
25100 something starting with __ and the normal name is an alias. */
25101 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25104 char (*f) () = cthread_fork;
25113 return f != cthread_fork;
25118 rm -f conftest.$ac_objext conftest$ac_exeext
25119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25120 (eval $ac_link) 2>conftest.er1
25122 grep -v '^ *+' conftest.er1 >conftest.err
25124 cat conftest.err >&5
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); } &&
25127 { ac_try='test -z "$ac_c_werror_flag"
25128 || test ! -s conftest.err'
25129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130 (eval $ac_try) 2>&5
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; } &&
25134 { ac_try='test -s conftest$ac_exeext'
25135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136 (eval $ac_try) 2>&5
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); }; }; then
25140 ac_cv_func_cthread_fork=yes
25142 echo "$as_me: failed program was:" >&5
25143 sed 's/^/| /' conftest.$ac_ext >&5
25145 ac_cv_func_cthread_fork=no
25147 rm -f conftest.err conftest.$ac_objext \
25148 conftest$ac_exeext conftest.$ac_ext
25150 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25151 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25152 if test $ac_cv_func_cthread_fork = yes; then
25153 ol_link_threads=yes
25157 if test $ol_link_threads = no ; then
25158 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25159 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25160 if test "${ol_cv_cthread_all_load+set}" = set; then
25161 echo $ECHO_N "(cached) $ECHO_C" >&6
25165 LIBS="-all_load $LIBS"
25166 cat >conftest.$ac_ext <<_ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h. */
25172 #include <mach/cthreads.h>
25177 cthread_fork((void *)0, (void *)0);
25183 rm -f conftest.$ac_objext conftest$ac_exeext
25184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25185 (eval $ac_link) 2>conftest.er1
25187 grep -v '^ *+' conftest.er1 >conftest.err
25189 cat conftest.err >&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
25192 { ac_try='test -z "$ac_c_werror_flag"
25193 || test ! -s conftest.err'
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; } &&
25199 { ac_try='test -s conftest$ac_exeext'
25200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; }; then
25205 ol_cv_cthread_all_load=yes
25207 echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25210 ol_cv_cthread_all_load=no
25212 rm -f conftest.err conftest.$ac_objext \
25213 conftest$ac_exeext conftest.$ac_ext
25217 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25218 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25220 if test $ol_cv_cthread_all_load = yes ; then
25221 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25222 ol_link_threads=mach
25223 ol_with_threads=found
25227 elif test $ac_cv_header_cthreads_h = yes ; then
25229 ol_with_threads=found
25232 LIBS="$LIBS -lthreads"
25233 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25234 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25235 if test "${ac_cv_func_cthread_fork+set}" = set; then
25236 echo $ECHO_N "(cached) $ECHO_C" >&6
25238 cat >conftest.$ac_ext <<_ACEOF
25241 cat confdefs.h >>conftest.$ac_ext
25242 cat >>conftest.$ac_ext <<_ACEOF
25243 /* end confdefs.h. */
25244 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25246 #define cthread_fork innocuous_cthread_fork
25248 /* System header to define __stub macros and hopefully few prototypes,
25249 which can conflict with char cthread_fork (); below.
25250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25251 <limits.h> exists even on freestanding compilers. */
25254 # include <limits.h>
25256 # include <assert.h>
25259 #undef cthread_fork
25261 /* Override any gcc2 internal prototype to avoid an error. */
25266 /* We use char because int might match the return type of a gcc2
25267 builtin and then its argument prototype would still apply. */
25268 char cthread_fork ();
25269 /* The GNU C library defines this for functions which it implements
25270 to always fail with ENOSYS. Some functions are actually named
25271 something starting with __ and the normal name is an alias. */
25272 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25275 char (*f) () = cthread_fork;
25284 return f != cthread_fork;
25289 rm -f conftest.$ac_objext conftest$ac_exeext
25290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25291 (eval $ac_link) 2>conftest.er1
25293 grep -v '^ *+' conftest.er1 >conftest.err
25295 cat conftest.err >&5
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); } &&
25298 { ac_try='test -z "$ac_c_werror_flag"
25299 || test ! -s conftest.err'
25300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25301 (eval $ac_try) 2>&5
25303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304 (exit $ac_status); }; } &&
25305 { ac_try='test -s conftest$ac_exeext'
25306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25307 (eval $ac_try) 2>&5
25309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310 (exit $ac_status); }; }; then
25311 ac_cv_func_cthread_fork=yes
25313 echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25316 ac_cv_func_cthread_fork=no
25318 rm -f conftest.err conftest.$ac_objext \
25319 conftest$ac_exeext conftest.$ac_ext
25321 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25322 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25323 if test $ac_cv_func_cthread_fork = yes; then
25324 ol_link_threads=yes
25329 if test $ol_link_threads = yes ; then
25330 LTHREAD_LIBS="-lthreads"
25331 ol_link_threads=mach
25332 ol_with_threads=found
25334 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25335 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25336 { (exit 1); exit 1; }; }
25339 elif test $ol_with_threads = mach ; then
25340 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25341 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25342 { (exit 1); exit 1; }; }
25345 if test $ol_link_threads = mach ; then
25347 cat >>confdefs.h <<\_ACEOF
25348 #define HAVE_MACH_CTHREADS 1
25351 elif test $ol_with_threads = found ; then
25352 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25353 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25354 { (exit 1); exit 1; }; }
25359 case $ol_with_threads in auto | yes | pth)
25362 for ac_header in pth.h
25364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25366 echo "$as_me:$LINENO: checking for $ac_header" >&5
25367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25369 echo $ECHO_N "(cached) $ECHO_C" >&6
25371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25374 # Is the header compilable?
25375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25377 cat >conftest.$ac_ext <<_ACEOF
25380 cat confdefs.h >>conftest.$ac_ext
25381 cat >>conftest.$ac_ext <<_ACEOF
25382 /* end confdefs.h. */
25383 $ac_includes_default
25384 #include <$ac_header>
25386 rm -f conftest.$ac_objext
25387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25388 (eval $ac_compile) 2>conftest.er1
25390 grep -v '^ *+' conftest.er1 >conftest.err
25392 cat conftest.err >&5
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); } &&
25395 { ac_try='test -z "$ac_c_werror_flag"
25396 || test ! -s conftest.err'
25397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25398 (eval $ac_try) 2>&5
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); }; } &&
25402 { ac_try='test -s conftest.$ac_objext'
25403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25404 (eval $ac_try) 2>&5
25406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407 (exit $ac_status); }; }; then
25408 ac_header_compiler=yes
25410 echo "$as_me: failed program was:" >&5
25411 sed 's/^/| /' conftest.$ac_ext >&5
25413 ac_header_compiler=no
25415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25417 echo "${ECHO_T}$ac_header_compiler" >&6
25419 # Is the header present?
25420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25422 cat >conftest.$ac_ext <<_ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h. */
25428 #include <$ac_header>
25430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25433 grep -v '^ *+' conftest.er1 >conftest.err
25435 cat conftest.err >&5
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); } >/dev/null; then
25438 if test -s conftest.err; then
25439 ac_cpp_err=$ac_c_preproc_warn_flag
25440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25447 if test -z "$ac_cpp_err"; then
25448 ac_header_preproc=yes
25450 echo "$as_me: failed program was:" >&5
25451 sed 's/^/| /' conftest.$ac_ext >&5
25453 ac_header_preproc=no
25455 rm -f conftest.err conftest.$ac_ext
25456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25457 echo "${ECHO_T}$ac_header_preproc" >&6
25459 # So? What about this header?
25460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25466 ac_header_preproc=yes
25469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25483 ## ------------------------------------------ ##
25484 ## Report this to the AC_PACKAGE_NAME lists. ##
25485 ## ------------------------------------------ ##
25488 sed "s/^/$as_me: WARNING: /" >&2
25491 echo "$as_me:$LINENO: checking for $ac_header" >&5
25492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25494 echo $ECHO_N "(cached) $ECHO_C" >&6
25496 eval "$as_ac_Header=\$ac_header_preproc"
25498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25503 cat >>confdefs.h <<_ACEOF
25504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25512 if test $ac_cv_header_pth_h = yes ; then
25513 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25514 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25515 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25516 echo $ECHO_N "(cached) $ECHO_C" >&6
25518 ac_check_lib_save_LIBS=$LIBS
25520 cat >conftest.$ac_ext <<_ACEOF
25523 cat confdefs.h >>conftest.$ac_ext
25524 cat >>conftest.$ac_ext <<_ACEOF
25525 /* end confdefs.h. */
25527 /* Override any gcc2 internal prototype to avoid an error. */
25531 /* We use char because int might match the return type of a gcc2
25532 builtin and then its argument prototype would still apply. */
25533 char pth_version ();
25542 rm -f conftest.$ac_objext conftest$ac_exeext
25543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25544 (eval $ac_link) 2>conftest.er1
25546 grep -v '^ *+' conftest.er1 >conftest.err
25548 cat conftest.err >&5
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); } &&
25551 { ac_try='test -z "$ac_c_werror_flag"
25552 || test ! -s conftest.err'
25553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25554 (eval $ac_try) 2>&5
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); }; } &&
25558 { ac_try='test -s conftest$ac_exeext'
25559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560 (eval $ac_try) 2>&5
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); }; }; then
25564 ac_cv_lib_pth_pth_version=yes
25566 echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.$ac_ext >&5
25569 ac_cv_lib_pth_pth_version=no
25571 rm -f conftest.err conftest.$ac_objext \
25572 conftest$ac_exeext conftest.$ac_ext
25573 LIBS=$ac_check_lib_save_LIBS
25575 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25576 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25577 if test $ac_cv_lib_pth_pth_version = yes; then
25584 if test $have_pth = yes ; then
25586 cat >>confdefs.h <<\_ACEOF
25587 #define HAVE_GNU_PTH 1
25590 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25591 ol_link_threads=pth
25592 ol_with_threads=found
25594 if test $ol_with_yielding_select = auto ; then
25595 ol_with_yielding_select=yes
25602 case $ol_with_threads in auto | yes | lwp)
25606 for ac_header in thread.h synch.h
25608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25610 echo "$as_me:$LINENO: checking for $ac_header" >&5
25611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25613 echo $ECHO_N "(cached) $ECHO_C" >&6
25615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25618 # Is the header compilable?
25619 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25621 cat >conftest.$ac_ext <<_ACEOF
25624 cat confdefs.h >>conftest.$ac_ext
25625 cat >>conftest.$ac_ext <<_ACEOF
25626 /* end confdefs.h. */
25627 $ac_includes_default
25628 #include <$ac_header>
25630 rm -f conftest.$ac_objext
25631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25632 (eval $ac_compile) 2>conftest.er1
25634 grep -v '^ *+' conftest.er1 >conftest.err
25636 cat conftest.err >&5
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); } &&
25639 { ac_try='test -z "$ac_c_werror_flag"
25640 || test ! -s conftest.err'
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); }; } &&
25646 { ac_try='test -s conftest.$ac_objext'
25647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25648 (eval $ac_try) 2>&5
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); }; }; then
25652 ac_header_compiler=yes
25654 echo "$as_me: failed program was:" >&5
25655 sed 's/^/| /' conftest.$ac_ext >&5
25657 ac_header_compiler=no
25659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25661 echo "${ECHO_T}$ac_header_compiler" >&6
25663 # Is the header present?
25664 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25666 cat >conftest.$ac_ext <<_ACEOF
25669 cat confdefs.h >>conftest.$ac_ext
25670 cat >>conftest.$ac_ext <<_ACEOF
25671 /* end confdefs.h. */
25672 #include <$ac_header>
25674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25677 grep -v '^ *+' conftest.er1 >conftest.err
25679 cat conftest.err >&5
25680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681 (exit $ac_status); } >/dev/null; then
25682 if test -s conftest.err; then
25683 ac_cpp_err=$ac_c_preproc_warn_flag
25684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25691 if test -z "$ac_cpp_err"; then
25692 ac_header_preproc=yes
25694 echo "$as_me: failed program was:" >&5
25695 sed 's/^/| /' conftest.$ac_ext >&5
25697 ac_header_preproc=no
25699 rm -f conftest.err conftest.$ac_ext
25700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25701 echo "${ECHO_T}$ac_header_preproc" >&6
25703 # So? What about this header?
25704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25710 ac_header_preproc=yes
25713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25727 ## ------------------------------------------ ##
25728 ## Report this to the AC_PACKAGE_NAME lists. ##
25729 ## ------------------------------------------ ##
25732 sed "s/^/$as_me: WARNING: /" >&2
25735 echo "$as_me:$LINENO: checking for $ac_header" >&5
25736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25738 echo $ECHO_N "(cached) $ECHO_C" >&6
25740 eval "$as_ac_Header=\$ac_header_preproc"
25742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25747 cat >>confdefs.h <<_ACEOF
25748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25755 if test $ac_cv_header_thread_h = yes &&
25756 test $ac_cv_header_synch_h = yes ; then
25757 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25758 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25759 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25760 echo $ECHO_N "(cached) $ECHO_C" >&6
25762 ac_check_lib_save_LIBS=$LIBS
25763 LIBS="-lthread $LIBS"
25764 cat >conftest.$ac_ext <<_ACEOF
25767 cat confdefs.h >>conftest.$ac_ext
25768 cat >>conftest.$ac_ext <<_ACEOF
25769 /* end confdefs.h. */
25771 /* Override any gcc2 internal prototype to avoid an error. */
25775 /* We use char because int might match the return type of a gcc2
25776 builtin and then its argument prototype would still apply. */
25777 char thr_create ();
25786 rm -f conftest.$ac_objext conftest$ac_exeext
25787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25788 (eval $ac_link) 2>conftest.er1
25790 grep -v '^ *+' conftest.er1 >conftest.err
25792 cat conftest.err >&5
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); } &&
25795 { ac_try='test -z "$ac_c_werror_flag"
25796 || test ! -s conftest.err'
25797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798 (eval $ac_try) 2>&5
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); }; } &&
25802 { ac_try='test -s conftest$ac_exeext'
25803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804 (eval $ac_try) 2>&5
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); }; }; then
25808 ac_cv_lib_thread_thr_create=yes
25810 echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.$ac_ext >&5
25813 ac_cv_lib_thread_thr_create=no
25815 rm -f conftest.err conftest.$ac_objext \
25816 conftest$ac_exeext conftest.$ac_ext
25817 LIBS=$ac_check_lib_save_LIBS
25819 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25820 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25821 if test $ac_cv_lib_thread_thr_create = yes; then
25828 if test $have_thr = yes ; then
25830 cat >>confdefs.h <<\_ACEOF
25834 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25835 ol_link_threads=thr
25837 if test $ol_with_yielding_select = auto ; then
25838 ol_with_yielding_select=yes
25844 thr_setconcurrency \
25845 thr_getconcurrency \
25848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25849 echo "$as_me:$LINENO: checking for $ac_func" >&5
25850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25851 if eval "test \"\${$as_ac_var+set}\" = set"; then
25852 echo $ECHO_N "(cached) $ECHO_C" >&6
25854 cat >conftest.$ac_ext <<_ACEOF
25857 cat confdefs.h >>conftest.$ac_ext
25858 cat >>conftest.$ac_ext <<_ACEOF
25859 /* end confdefs.h. */
25860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25862 #define $ac_func innocuous_$ac_func
25864 /* System header to define __stub macros and hopefully few prototypes,
25865 which can conflict with char $ac_func (); below.
25866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25867 <limits.h> exists even on freestanding compilers. */
25870 # include <limits.h>
25872 # include <assert.h>
25877 /* Override any gcc2 internal prototype to avoid an error. */
25882 /* We use char because int might match the return type of a gcc2
25883 builtin and then its argument prototype would still apply. */
25885 /* The GNU C library defines this for functions which it implements
25886 to always fail with ENOSYS. Some functions are actually named
25887 something starting with __ and the normal name is an alias. */
25888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25891 char (*f) () = $ac_func;
25900 return f != $ac_func;
25905 rm -f conftest.$ac_objext conftest$ac_exeext
25906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25907 (eval $ac_link) 2>conftest.er1
25909 grep -v '^ *+' conftest.er1 >conftest.err
25911 cat conftest.err >&5
25912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913 (exit $ac_status); } &&
25914 { ac_try='test -z "$ac_c_werror_flag"
25915 || test ! -s conftest.err'
25916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25917 (eval $ac_try) 2>&5
25919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920 (exit $ac_status); }; } &&
25921 { ac_try='test -s conftest$ac_exeext'
25922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25923 (eval $ac_try) 2>&5
25925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926 (exit $ac_status); }; }; then
25927 eval "$as_ac_var=yes"
25929 echo "$as_me: failed program was:" >&5
25930 sed 's/^/| /' conftest.$ac_ext >&5
25932 eval "$as_ac_var=no"
25934 rm -f conftest.err conftest.$ac_objext \
25935 conftest$ac_exeext conftest.$ac_ext
25937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25939 if test `eval echo '${'$as_ac_var'}'` = yes; then
25940 cat >>confdefs.h <<_ACEOF
25941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25951 for ac_header in lwp/lwp.h
25953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25955 echo "$as_me:$LINENO: checking for $ac_header" >&5
25956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25958 echo $ECHO_N "(cached) $ECHO_C" >&6
25960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25963 # Is the header compilable?
25964 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25966 cat >conftest.$ac_ext <<_ACEOF
25969 cat confdefs.h >>conftest.$ac_ext
25970 cat >>conftest.$ac_ext <<_ACEOF
25971 /* end confdefs.h. */
25972 $ac_includes_default
25973 #include <$ac_header>
25975 rm -f conftest.$ac_objext
25976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25977 (eval $ac_compile) 2>conftest.er1
25979 grep -v '^ *+' conftest.er1 >conftest.err
25981 cat conftest.err >&5
25982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983 (exit $ac_status); } &&
25984 { ac_try='test -z "$ac_c_werror_flag"
25985 || test ! -s conftest.err'
25986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25987 (eval $ac_try) 2>&5
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); }; } &&
25991 { ac_try='test -s conftest.$ac_objext'
25992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25993 (eval $ac_try) 2>&5
25995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); }; }; then
25997 ac_header_compiler=yes
25999 echo "$as_me: failed program was:" >&5
26000 sed 's/^/| /' conftest.$ac_ext >&5
26002 ac_header_compiler=no
26004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26006 echo "${ECHO_T}$ac_header_compiler" >&6
26008 # Is the header present?
26009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26011 cat >conftest.$ac_ext <<_ACEOF
26014 cat confdefs.h >>conftest.$ac_ext
26015 cat >>conftest.$ac_ext <<_ACEOF
26016 /* end confdefs.h. */
26017 #include <$ac_header>
26019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26022 grep -v '^ *+' conftest.er1 >conftest.err
26024 cat conftest.err >&5
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); } >/dev/null; then
26027 if test -s conftest.err; then
26028 ac_cpp_err=$ac_c_preproc_warn_flag
26029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26036 if test -z "$ac_cpp_err"; then
26037 ac_header_preproc=yes
26039 echo "$as_me: failed program was:" >&5
26040 sed 's/^/| /' conftest.$ac_ext >&5
26042 ac_header_preproc=no
26044 rm -f conftest.err conftest.$ac_ext
26045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26046 echo "${ECHO_T}$ac_header_preproc" >&6
26048 # So? What about this header?
26049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26055 ac_header_preproc=yes
26058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26072 ## ------------------------------------------ ##
26073 ## Report this to the AC_PACKAGE_NAME lists. ##
26074 ## ------------------------------------------ ##
26077 sed "s/^/$as_me: WARNING: /" >&2
26080 echo "$as_me:$LINENO: checking for $ac_header" >&5
26081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26083 echo $ECHO_N "(cached) $ECHO_C" >&6
26085 eval "$as_ac_Header=\$ac_header_preproc"
26087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26092 cat >>confdefs.h <<_ACEOF
26093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26100 if test $ac_cv_header_lwp_lwp_h = yes ; then
26101 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26102 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26103 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26104 echo $ECHO_N "(cached) $ECHO_C" >&6
26106 ac_check_lib_save_LIBS=$LIBS
26108 cat >conftest.$ac_ext <<_ACEOF
26111 cat confdefs.h >>conftest.$ac_ext
26112 cat >>conftest.$ac_ext <<_ACEOF
26113 /* end confdefs.h. */
26115 /* Override any gcc2 internal prototype to avoid an error. */
26119 /* We use char because int might match the return type of a gcc2
26120 builtin and then its argument prototype would still apply. */
26121 char lwp_create ();
26130 rm -f conftest.$ac_objext conftest$ac_exeext
26131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26132 (eval $ac_link) 2>conftest.er1
26134 grep -v '^ *+' conftest.er1 >conftest.err
26136 cat conftest.err >&5
26137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); } &&
26139 { ac_try='test -z "$ac_c_werror_flag"
26140 || test ! -s conftest.err'
26141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142 (eval $ac_try) 2>&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); }; } &&
26146 { ac_try='test -s conftest$ac_exeext'
26147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148 (eval $ac_try) 2>&5
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); }; }; then
26152 ac_cv_lib_lwp_lwp_create=yes
26154 echo "$as_me: failed program was:" >&5
26155 sed 's/^/| /' conftest.$ac_ext >&5
26157 ac_cv_lib_lwp_lwp_create=no
26159 rm -f conftest.err conftest.$ac_objext \
26160 conftest$ac_exeext conftest.$ac_ext
26161 LIBS=$ac_check_lib_save_LIBS
26163 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26164 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26165 if test $ac_cv_lib_lwp_lwp_create = yes; then
26172 if test $have_lwp = yes ; then
26174 cat >>confdefs.h <<\_ACEOF
26178 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26179 ol_link_threads=lwp
26181 if test $ol_with_yielding_select = auto ; then
26182 ol_with_yielding_select=no
26189 if test $ol_with_yielding_select = yes ; then
26191 cat >>confdefs.h <<\_ACEOF
26192 #define HAVE_YIELDING_SELECT 1
26197 if test $ol_with_threads = manual ; then
26198 ol_link_threads=yes
26200 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26201 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26205 for ac_header in pthread.h sched.h
26207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26209 echo "$as_me:$LINENO: checking for $ac_header" >&5
26210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26212 echo $ECHO_N "(cached) $ECHO_C" >&6
26214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26217 # Is the header compilable?
26218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26220 cat >conftest.$ac_ext <<_ACEOF
26223 cat confdefs.h >>conftest.$ac_ext
26224 cat >>conftest.$ac_ext <<_ACEOF
26225 /* end confdefs.h. */
26226 $ac_includes_default
26227 #include <$ac_header>
26229 rm -f conftest.$ac_objext
26230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26231 (eval $ac_compile) 2>conftest.er1
26233 grep -v '^ *+' conftest.er1 >conftest.err
26235 cat conftest.err >&5
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); } &&
26238 { ac_try='test -z "$ac_c_werror_flag"
26239 || test ! -s conftest.err'
26240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241 (eval $ac_try) 2>&5
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); }; } &&
26245 { ac_try='test -s conftest.$ac_objext'
26246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247 (eval $ac_try) 2>&5
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); }; }; then
26251 ac_header_compiler=yes
26253 echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26256 ac_header_compiler=no
26258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26260 echo "${ECHO_T}$ac_header_compiler" >&6
26262 # Is the header present?
26263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26265 cat >conftest.$ac_ext <<_ACEOF
26268 cat confdefs.h >>conftest.$ac_ext
26269 cat >>conftest.$ac_ext <<_ACEOF
26270 /* end confdefs.h. */
26271 #include <$ac_header>
26273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26276 grep -v '^ *+' conftest.er1 >conftest.err
26278 cat conftest.err >&5
26279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280 (exit $ac_status); } >/dev/null; then
26281 if test -s conftest.err; then
26282 ac_cpp_err=$ac_c_preproc_warn_flag
26283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26290 if test -z "$ac_cpp_err"; then
26291 ac_header_preproc=yes
26293 echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26296 ac_header_preproc=no
26298 rm -f conftest.err conftest.$ac_ext
26299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26300 echo "${ECHO_T}$ac_header_preproc" >&6
26302 # So? What about this header?
26303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26309 ac_header_preproc=yes
26312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26326 ## ------------------------------------------ ##
26327 ## Report this to the AC_PACKAGE_NAME lists. ##
26328 ## ------------------------------------------ ##
26331 sed "s/^/$as_me: WARNING: /" >&2
26334 echo "$as_me:$LINENO: checking for $ac_header" >&5
26335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26337 echo $ECHO_N "(cached) $ECHO_C" >&6
26339 eval "$as_ac_Header=\$ac_header_preproc"
26341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26346 cat >>confdefs.h <<_ACEOF
26347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26356 for ac_func in sched_yield pthread_yield
26358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26359 echo "$as_me:$LINENO: checking for $ac_func" >&5
26360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26361 if eval "test \"\${$as_ac_var+set}\" = set"; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26364 cat >conftest.$ac_ext <<_ACEOF
26367 cat confdefs.h >>conftest.$ac_ext
26368 cat >>conftest.$ac_ext <<_ACEOF
26369 /* end confdefs.h. */
26370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26372 #define $ac_func innocuous_$ac_func
26374 /* System header to define __stub macros and hopefully few prototypes,
26375 which can conflict with char $ac_func (); below.
26376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26377 <limits.h> exists even on freestanding compilers. */
26380 # include <limits.h>
26382 # include <assert.h>
26387 /* Override any gcc2 internal prototype to avoid an error. */
26392 /* We use char because int might match the return type of a gcc2
26393 builtin and then its argument prototype would still apply. */
26395 /* The GNU C library defines this for functions which it implements
26396 to always fail with ENOSYS. Some functions are actually named
26397 something starting with __ and the normal name is an alias. */
26398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26401 char (*f) () = $ac_func;
26410 return f != $ac_func;
26415 rm -f conftest.$ac_objext conftest$ac_exeext
26416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26417 (eval $ac_link) 2>conftest.er1
26419 grep -v '^ *+' conftest.er1 >conftest.err
26421 cat conftest.err >&5
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); } &&
26424 { ac_try='test -z "$ac_c_werror_flag"
26425 || test ! -s conftest.err'
26426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427 (eval $ac_try) 2>&5
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); }; } &&
26431 { ac_try='test -s conftest$ac_exeext'
26432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433 (eval $ac_try) 2>&5
26435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436 (exit $ac_status); }; }; then
26437 eval "$as_ac_var=yes"
26439 echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26442 eval "$as_ac_var=no"
26444 rm -f conftest.err conftest.$ac_objext \
26445 conftest$ac_exeext conftest.$ac_ext
26447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26449 if test `eval echo '${'$as_ac_var'}'` = yes; then
26450 cat >>confdefs.h <<_ACEOF
26451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26458 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26459 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26460 if test "${ol_cv_header_linux_threads+set}" = set; then
26461 echo $ECHO_N "(cached) $ECHO_C" >&6
26463 cat >conftest.$ac_ext <<_ACEOF
26466 cat confdefs.h >>conftest.$ac_ext
26467 cat >>conftest.$ac_ext <<_ACEOF
26468 /* end confdefs.h. */
26469 #include <pthread.h>
26471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26472 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26473 ol_cv_header_linux_threads=yes
26475 ol_cv_header_linux_threads=no
26481 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26482 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26483 if test $ol_cv_header_linux_threads = yes; then
26485 cat >>confdefs.h <<\_ACEOF
26486 #define HAVE_LINUX_THREADS 1
26493 for ac_header in mach/cthreads.h
26495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26497 echo "$as_me:$LINENO: checking for $ac_header" >&5
26498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26500 echo $ECHO_N "(cached) $ECHO_C" >&6
26502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26505 # Is the header compilable?
26506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26508 cat >conftest.$ac_ext <<_ACEOF
26511 cat confdefs.h >>conftest.$ac_ext
26512 cat >>conftest.$ac_ext <<_ACEOF
26513 /* end confdefs.h. */
26514 $ac_includes_default
26515 #include <$ac_header>
26517 rm -f conftest.$ac_objext
26518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26519 (eval $ac_compile) 2>conftest.er1
26521 grep -v '^ *+' conftest.er1 >conftest.err
26523 cat conftest.err >&5
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } &&
26526 { ac_try='test -z "$ac_c_werror_flag"
26527 || test ! -s conftest.err'
26528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26529 (eval $ac_try) 2>&5
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); }; } &&
26533 { ac_try='test -s conftest.$ac_objext'
26534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535 (eval $ac_try) 2>&5
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); }; }; then
26539 ac_header_compiler=yes
26541 echo "$as_me: failed program was:" >&5
26542 sed 's/^/| /' conftest.$ac_ext >&5
26544 ac_header_compiler=no
26546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26548 echo "${ECHO_T}$ac_header_compiler" >&6
26550 # Is the header present?
26551 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26553 cat >conftest.$ac_ext <<_ACEOF
26556 cat confdefs.h >>conftest.$ac_ext
26557 cat >>conftest.$ac_ext <<_ACEOF
26558 /* end confdefs.h. */
26559 #include <$ac_header>
26561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26564 grep -v '^ *+' conftest.er1 >conftest.err
26566 cat conftest.err >&5
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); } >/dev/null; then
26569 if test -s conftest.err; then
26570 ac_cpp_err=$ac_c_preproc_warn_flag
26571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26578 if test -z "$ac_cpp_err"; then
26579 ac_header_preproc=yes
26581 echo "$as_me: failed program was:" >&5
26582 sed 's/^/| /' conftest.$ac_ext >&5
26584 ac_header_preproc=no
26586 rm -f conftest.err conftest.$ac_ext
26587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26588 echo "${ECHO_T}$ac_header_preproc" >&6
26590 # So? What about this header?
26591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26597 ac_header_preproc=yes
26600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26614 ## ------------------------------------------ ##
26615 ## Report this to the AC_PACKAGE_NAME lists. ##
26616 ## ------------------------------------------ ##
26619 sed "s/^/$as_me: WARNING: /" >&2
26622 echo "$as_me:$LINENO: checking for $ac_header" >&5
26623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26625 echo $ECHO_N "(cached) $ECHO_C" >&6
26627 eval "$as_ac_Header=\$ac_header_preproc"
26629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26634 cat >>confdefs.h <<_ACEOF
26635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26643 for ac_header in lwp/lwp.h
26645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26647 echo "$as_me:$LINENO: checking for $ac_header" >&5
26648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26650 echo $ECHO_N "(cached) $ECHO_C" >&6
26652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26655 # Is the header compilable?
26656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26658 cat >conftest.$ac_ext <<_ACEOF
26661 cat confdefs.h >>conftest.$ac_ext
26662 cat >>conftest.$ac_ext <<_ACEOF
26663 /* end confdefs.h. */
26664 $ac_includes_default
26665 #include <$ac_header>
26667 rm -f conftest.$ac_objext
26668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26669 (eval $ac_compile) 2>conftest.er1
26671 grep -v '^ *+' conftest.er1 >conftest.err
26673 cat conftest.err >&5
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); } &&
26676 { ac_try='test -z "$ac_c_werror_flag"
26677 || test ! -s conftest.err'
26678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26679 (eval $ac_try) 2>&5
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); }; } &&
26683 { ac_try='test -s conftest.$ac_objext'
26684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685 (eval $ac_try) 2>&5
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); }; }; then
26689 ac_header_compiler=yes
26691 echo "$as_me: failed program was:" >&5
26692 sed 's/^/| /' conftest.$ac_ext >&5
26694 ac_header_compiler=no
26696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26698 echo "${ECHO_T}$ac_header_compiler" >&6
26700 # Is the header present?
26701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26703 cat >conftest.$ac_ext <<_ACEOF
26706 cat confdefs.h >>conftest.$ac_ext
26707 cat >>conftest.$ac_ext <<_ACEOF
26708 /* end confdefs.h. */
26709 #include <$ac_header>
26711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26714 grep -v '^ *+' conftest.er1 >conftest.err
26716 cat conftest.err >&5
26717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718 (exit $ac_status); } >/dev/null; then
26719 if test -s conftest.err; then
26720 ac_cpp_err=$ac_c_preproc_warn_flag
26721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26728 if test -z "$ac_cpp_err"; then
26729 ac_header_preproc=yes
26731 echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.$ac_ext >&5
26734 ac_header_preproc=no
26736 rm -f conftest.err conftest.$ac_ext
26737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26738 echo "${ECHO_T}$ac_header_preproc" >&6
26740 # So? What about this header?
26741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26747 ac_header_preproc=yes
26750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26764 ## ------------------------------------------ ##
26765 ## Report this to the AC_PACKAGE_NAME lists. ##
26766 ## ------------------------------------------ ##
26769 sed "s/^/$as_me: WARNING: /" >&2
26772 echo "$as_me:$LINENO: checking for $ac_header" >&5
26773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26775 echo $ECHO_N "(cached) $ECHO_C" >&6
26777 eval "$as_ac_Header=\$ac_header_preproc"
26779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26784 cat >>confdefs.h <<_ACEOF
26785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26794 for ac_header in thread.h synch.h
26796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26798 echo "$as_me:$LINENO: checking for $ac_header" >&5
26799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26801 echo $ECHO_N "(cached) $ECHO_C" >&6
26803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26806 # Is the header compilable?
26807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26809 cat >conftest.$ac_ext <<_ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h. */
26815 $ac_includes_default
26816 #include <$ac_header>
26818 rm -f conftest.$ac_objext
26819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26820 (eval $ac_compile) 2>conftest.er1
26822 grep -v '^ *+' conftest.er1 >conftest.err
26824 cat conftest.err >&5
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); } &&
26827 { ac_try='test -z "$ac_c_werror_flag"
26828 || test ! -s conftest.err'
26829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830 (eval $ac_try) 2>&5
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; } &&
26834 { ac_try='test -s conftest.$ac_objext'
26835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26836 (eval $ac_try) 2>&5
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); }; }; then
26840 ac_header_compiler=yes
26842 echo "$as_me: failed program was:" >&5
26843 sed 's/^/| /' conftest.$ac_ext >&5
26845 ac_header_compiler=no
26847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26849 echo "${ECHO_T}$ac_header_compiler" >&6
26851 # Is the header present?
26852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26854 cat >conftest.$ac_ext <<_ACEOF
26857 cat confdefs.h >>conftest.$ac_ext
26858 cat >>conftest.$ac_ext <<_ACEOF
26859 /* end confdefs.h. */
26860 #include <$ac_header>
26862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26865 grep -v '^ *+' conftest.er1 >conftest.err
26867 cat conftest.err >&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } >/dev/null; then
26870 if test -s conftest.err; then
26871 ac_cpp_err=$ac_c_preproc_warn_flag
26872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26879 if test -z "$ac_cpp_err"; then
26880 ac_header_preproc=yes
26882 echo "$as_me: failed program was:" >&5
26883 sed 's/^/| /' conftest.$ac_ext >&5
26885 ac_header_preproc=no
26887 rm -f conftest.err conftest.$ac_ext
26888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26889 echo "${ECHO_T}$ac_header_preproc" >&6
26891 # So? What about this header?
26892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26898 ac_header_preproc=yes
26901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26915 ## ------------------------------------------ ##
26916 ## Report this to the AC_PACKAGE_NAME lists. ##
26917 ## ------------------------------------------ ##
26920 sed "s/^/$as_me: WARNING: /" >&2
26923 echo "$as_me:$LINENO: checking for $ac_header" >&5
26924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26926 echo $ECHO_N "(cached) $ECHO_C" >&6
26928 eval "$as_ac_Header=\$ac_header_preproc"
26930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26935 cat >>confdefs.h <<_ACEOF
26936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26945 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26946 cat >>confdefs.h <<\_ACEOF
26947 #define REENTRANT 1
26950 cat >>confdefs.h <<\_ACEOF
26951 #define _REENTRANT 1
26954 cat >>confdefs.h <<\_ACEOF
26955 #define THREAD_SAFE 1
26958 cat >>confdefs.h <<\_ACEOF
26959 #define _THREAD_SAFE 1
26962 cat >>confdefs.h <<\_ACEOF
26963 #define THREADSAFE 1
26966 cat >>confdefs.h <<\_ACEOF
26967 #define _THREADSAFE 1
26970 cat >>confdefs.h <<\_ACEOF
26971 #define _SGI_MP_SOURCE 1
26975 echo "$as_me:$LINENO: checking for thread specific errno" >&5
26976 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26977 if test "${ol_cv_errno_thread_specific+set}" = set; then
26978 echo $ECHO_N "(cached) $ECHO_C" >&6
26981 cat >conftest.$ac_ext <<_ACEOF
26984 cat confdefs.h >>conftest.$ac_ext
26985 cat >>conftest.$ac_ext <<_ACEOF
26986 /* end confdefs.h. */
26996 rm -f conftest.$ac_objext conftest$ac_exeext
26997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26998 (eval $ac_link) 2>conftest.er1
27000 grep -v '^ *+' conftest.er1 >conftest.err
27002 cat conftest.err >&5
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); } &&
27005 { ac_try='test -z "$ac_c_werror_flag"
27006 || test ! -s conftest.err'
27007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27008 (eval $ac_try) 2>&5
27010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011 (exit $ac_status); }; } &&
27012 { ac_try='test -s conftest$ac_exeext'
27013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27014 (eval $ac_try) 2>&5
27016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017 (exit $ac_status); }; }; then
27018 ol_cv_errno_thread_specific=yes
27020 echo "$as_me: failed program was:" >&5
27021 sed 's/^/| /' conftest.$ac_ext >&5
27023 ol_cv_errno_thread_specific=no
27025 rm -f conftest.err conftest.$ac_objext \
27026 conftest$ac_exeext conftest.$ac_ext
27029 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27030 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27032 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27033 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27034 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27035 echo $ECHO_N "(cached) $ECHO_C" >&6
27038 cat >conftest.$ac_ext <<_ACEOF
27041 cat confdefs.h >>conftest.$ac_ext
27042 cat >>conftest.$ac_ext <<_ACEOF
27043 /* end confdefs.h. */
27053 rm -f conftest.$ac_objext conftest$ac_exeext
27054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27055 (eval $ac_link) 2>conftest.er1
27057 grep -v '^ *+' conftest.er1 >conftest.err
27059 cat conftest.err >&5
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); } &&
27062 { ac_try='test -z "$ac_c_werror_flag"
27063 || test ! -s conftest.err'
27064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065 (eval $ac_try) 2>&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); }; } &&
27069 { ac_try='test -s conftest$ac_exeext'
27070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27071 (eval $ac_try) 2>&5
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); }; }; then
27075 ol_cv_h_errno_thread_specific=yes
27077 echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.$ac_ext >&5
27080 ol_cv_h_errno_thread_specific=no
27082 rm -f conftest.err conftest.$ac_objext \
27083 conftest$ac_exeext conftest.$ac_ext
27086 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27087 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27089 if test $ol_cv_errno_thread_specific != yes ||
27090 test $ol_cv_h_errno_thread_specific != yes ; then
27091 LIBS="$LTHREAD_LIBS $LIBS"
27097 if test $ol_link_threads = no ; then
27098 if test $ol_with_threads = yes ; then
27099 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27100 echo "$as_me: error: no suitable thread support" >&2;}
27101 { (exit 1); exit 1; }; }
27104 if test $ol_with_threads = auto ; then
27105 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27106 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27111 cat >>confdefs.h <<\_ACEOF
27112 #define NO_THREADS 1
27121 if test $ol_link_threads != no ; then
27123 cat >>confdefs.h <<\_ACEOF
27124 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27134 gethostbyname_r gethostbyaddr_r \
27137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27138 echo "$as_me:$LINENO: checking for $ac_func" >&5
27139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27140 if eval "test \"\${$as_ac_var+set}\" = set"; then
27141 echo $ECHO_N "(cached) $ECHO_C" >&6
27143 cat >conftest.$ac_ext <<_ACEOF
27146 cat confdefs.h >>conftest.$ac_ext
27147 cat >>conftest.$ac_ext <<_ACEOF
27148 /* end confdefs.h. */
27149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27151 #define $ac_func innocuous_$ac_func
27153 /* System header to define __stub macros and hopefully few prototypes,
27154 which can conflict with char $ac_func (); below.
27155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27156 <limits.h> exists even on freestanding compilers. */
27159 # include <limits.h>
27161 # include <assert.h>
27166 /* Override any gcc2 internal prototype to avoid an error. */
27171 /* We use char because int might match the return type of a gcc2
27172 builtin and then its argument prototype would still apply. */
27174 /* The GNU C library defines this for functions which it implements
27175 to always fail with ENOSYS. Some functions are actually named
27176 something starting with __ and the normal name is an alias. */
27177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27180 char (*f) () = $ac_func;
27189 return f != $ac_func;
27194 rm -f conftest.$ac_objext conftest$ac_exeext
27195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27196 (eval $ac_link) 2>conftest.er1
27198 grep -v '^ *+' conftest.er1 >conftest.err
27200 cat conftest.err >&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); } &&
27203 { ac_try='test -z "$ac_c_werror_flag"
27204 || test ! -s conftest.err'
27205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27206 (eval $ac_try) 2>&5
27208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209 (exit $ac_status); }; } &&
27210 { ac_try='test -s conftest$ac_exeext'
27211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27212 (eval $ac_try) 2>&5
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); }; }; then
27216 eval "$as_ac_var=yes"
27218 echo "$as_me: failed program was:" >&5
27219 sed 's/^/| /' conftest.$ac_ext >&5
27221 eval "$as_ac_var=no"
27223 rm -f conftest.err conftest.$ac_objext \
27224 conftest$ac_exeext conftest.$ac_ext
27226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27228 if test `eval echo '${'$as_ac_var'}'` = yes; then
27229 cat >>confdefs.h <<_ACEOF
27230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27237 if test "$ac_cv_func_ctime_r" = no ; then
27238 ol_cv_func_ctime_r_nargs=0
27240 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27241 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27242 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27243 echo $ECHO_N "(cached) $ECHO_C" >&6
27245 cat >conftest.$ac_ext <<_ACEOF
27248 cat confdefs.h >>conftest.$ac_ext
27249 cat >>conftest.$ac_ext <<_ACEOF
27250 /* end confdefs.h. */
27255 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27260 rm -f conftest.$ac_objext
27261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27262 (eval $ac_compile) 2>conftest.er1
27264 grep -v '^ *+' conftest.er1 >conftest.err
27266 cat conftest.err >&5
27267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268 (exit $ac_status); } &&
27269 { ac_try='test -z "$ac_c_werror_flag"
27270 || test ! -s conftest.err'
27271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272 (eval $ac_try) 2>&5
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); }; } &&
27276 { ac_try='test -s conftest.$ac_objext'
27277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27278 (eval $ac_try) 2>&5
27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); }; }; then
27282 ol_cv_func_ctime_r_nargs3=yes
27284 echo "$as_me: failed program was:" >&5
27285 sed 's/^/| /' conftest.$ac_ext >&5
27287 ol_cv_func_ctime_r_nargs3=no
27289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27291 cat >conftest.$ac_ext <<_ACEOF
27294 cat confdefs.h >>conftest.$ac_ext
27295 cat >>conftest.$ac_ext <<_ACEOF
27296 /* end confdefs.h. */
27301 time_t ti; char *buffer; ctime_r(&ti,buffer);
27306 rm -f conftest.$ac_objext
27307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27308 (eval $ac_compile) 2>conftest.er1
27310 grep -v '^ *+' conftest.er1 >conftest.err
27312 cat conftest.err >&5
27313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314 (exit $ac_status); } &&
27315 { ac_try='test -z "$ac_c_werror_flag"
27316 || test ! -s conftest.err'
27317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27318 (eval $ac_try) 2>&5
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); }; } &&
27322 { ac_try='test -s conftest.$ac_objext'
27323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324 (eval $ac_try) 2>&5
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; }; then
27328 ol_cv_func_ctime_r_nargs2=yes
27330 echo "$as_me: failed program was:" >&5
27331 sed 's/^/| /' conftest.$ac_ext >&5
27333 ol_cv_func_ctime_r_nargs2=no
27335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27337 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27338 test $ol_cv_func_ctime_r_nargs2 = no ; then
27340 ol_cv_func_ctime_r_nargs=3
27342 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27343 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27345 ol_cv_func_ctime_r_nargs=2
27348 ol_cv_func_ctime_r_nargs=0
27352 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27353 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27355 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27357 cat >>confdefs.h <<_ACEOF
27358 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27365 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27366 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27367 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27368 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27369 echo $ECHO_N "(cached) $ECHO_C" >&6
27371 cat >conftest.$ac_ext <<_ACEOF
27374 cat confdefs.h >>conftest.$ac_ext
27375 cat >>conftest.$ac_ext <<_ACEOF
27376 /* end confdefs.h. */
27377 #include <sys/types.h>
27378 #include <sys/socket.h>
27379 #include <netinet/in.h>
27381 #define BUFSIZE (sizeof(struct hostent)+10)
27385 struct hostent hent; char buffer[BUFSIZE];
27386 int bufsize=BUFSIZE;int h_errno;
27387 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27388 buffer, bufsize, &h_errno);
27393 rm -f conftest.$ac_objext
27394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27395 (eval $ac_compile) 2>conftest.er1
27397 grep -v '^ *+' conftest.er1 >conftest.err
27399 cat conftest.err >&5
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); } &&
27402 { ac_try='test -z "$ac_c_werror_flag"
27403 || test ! -s conftest.err'
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest.$ac_objext'
27410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; }; then
27415 ol_cv_func_gethostbyname_r_nargs5=yes
27417 echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27420 ol_cv_func_gethostbyname_r_nargs5=no
27422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27424 cat >conftest.$ac_ext <<_ACEOF
27427 cat confdefs.h >>conftest.$ac_ext
27428 cat >>conftest.$ac_ext <<_ACEOF
27429 /* end confdefs.h. */
27430 #include <sys/types.h>
27431 #include <sys/socket.h>
27432 #include <netinet/in.h>
27434 #define BUFSIZE (sizeof(struct hostent)+10)
27438 struct hostent hent;struct hostent *rhent;
27439 char buffer[BUFSIZE];
27440 int bufsize=BUFSIZE;int h_errno;
27441 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27447 rm -f conftest.$ac_objext
27448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27449 (eval $ac_compile) 2>conftest.er1
27451 grep -v '^ *+' conftest.er1 >conftest.err
27453 cat conftest.err >&5
27454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); } &&
27456 { ac_try='test -z "$ac_c_werror_flag"
27457 || test ! -s conftest.err'
27458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27459 (eval $ac_try) 2>&5
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); }; } &&
27463 { ac_try='test -s conftest.$ac_objext'
27464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27465 (eval $ac_try) 2>&5
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); }; }; then
27469 ol_cv_func_gethostbyname_r_nargs6=yes
27471 echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.$ac_ext >&5
27474 ol_cv_func_gethostbyname_r_nargs6=no
27476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27478 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27479 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27481 ol_cv_func_gethostbyname_r_nargs=5
27483 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27484 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27486 ol_cv_func_gethostbyname_r_nargs=6
27489 ol_cv_func_gethostbyname_r_nargs=0
27493 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27494 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27495 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27497 cat >>confdefs.h <<_ACEOF
27498 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27504 ol_cv_func_gethostbyname_r_nargs=0
27507 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27508 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27509 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27510 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27511 echo $ECHO_N "(cached) $ECHO_C" >&6
27513 cat >conftest.$ac_ext <<_ACEOF
27516 cat confdefs.h >>conftest.$ac_ext
27517 cat >>conftest.$ac_ext <<_ACEOF
27518 /* end confdefs.h. */
27519 #include <sys/types.h>
27520 #include <sys/socket.h>
27521 #include <netinet/in.h>
27523 #define BUFSIZE (sizeof(struct hostent)+10)
27527 struct hostent hent; char buffer[BUFSIZE];
27528 struct in_addr add;
27529 size_t alen=sizeof(struct in_addr);
27530 int bufsize=BUFSIZE;int h_errno;
27531 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27532 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27537 rm -f conftest.$ac_objext
27538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27539 (eval $ac_compile) 2>conftest.er1
27541 grep -v '^ *+' conftest.er1 >conftest.err
27543 cat conftest.err >&5
27544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); } &&
27546 { ac_try='test -z "$ac_c_werror_flag"
27547 || test ! -s conftest.err'
27548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27549 (eval $ac_try) 2>&5
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); }; } &&
27553 { ac_try='test -s conftest.$ac_objext'
27554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555 (eval $ac_try) 2>&5
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); }; }; then
27559 ol_cv_func_gethostbyaddr_r_nargs7=yes
27561 echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27564 ol_cv_func_gethostbyaddr_r_nargs7=no
27566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27568 cat >conftest.$ac_ext <<_ACEOF
27571 cat confdefs.h >>conftest.$ac_ext
27572 cat >>conftest.$ac_ext <<_ACEOF
27573 /* end confdefs.h. */
27574 #include <sys/types.h>
27575 #include <sys/socket.h>
27576 #include <netinet/in.h>
27578 #define BUFSIZE (sizeof(struct hostent)+10)
27582 struct hostent hent;
27583 struct hostent *rhent; char buffer[BUFSIZE];
27584 struct in_addr add;
27585 size_t alen=sizeof(struct in_addr);
27586 int bufsize=BUFSIZE;int h_errno;
27587 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27588 alen, AF_INET, &hent, buffer, bufsize,
27594 rm -f conftest.$ac_objext
27595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27596 (eval $ac_compile) 2>conftest.er1
27598 grep -v '^ *+' conftest.er1 >conftest.err
27600 cat conftest.err >&5
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); } &&
27603 { ac_try='test -z "$ac_c_werror_flag"
27604 || test ! -s conftest.err'
27605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27606 (eval $ac_try) 2>&5
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); }; } &&
27610 { ac_try='test -s conftest.$ac_objext'
27611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612 (eval $ac_try) 2>&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); }; }; then
27616 ol_cv_func_gethostbyaddr_r_nargs8=yes
27618 echo "$as_me: failed program was:" >&5
27619 sed 's/^/| /' conftest.$ac_ext >&5
27621 ol_cv_func_gethostbyaddr_r_nargs8=no
27623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27625 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27626 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27628 ol_cv_func_gethostbyaddr_r_nargs=7
27630 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27631 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27633 ol_cv_func_gethostbyaddr_r_nargs=8
27636 ol_cv_func_gethostbyaddr_r_nargs=0
27640 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27641 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27642 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27644 cat >>confdefs.h <<_ACEOF
27645 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27651 ol_cv_func_gethostbyaddr_r_nargs=0
27656 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27658 if test $ol_enable_ldbm_api = bcompat; then \
27661 for ac_header in db_185.h db.h
27663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27665 echo "$as_me:$LINENO: checking for $ac_header" >&5
27666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27668 echo $ECHO_N "(cached) $ECHO_C" >&6
27670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27673 # Is the header compilable?
27674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27676 cat >conftest.$ac_ext <<_ACEOF
27679 cat confdefs.h >>conftest.$ac_ext
27680 cat >>conftest.$ac_ext <<_ACEOF
27681 /* end confdefs.h. */
27682 $ac_includes_default
27683 #include <$ac_header>
27685 rm -f conftest.$ac_objext
27686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27687 (eval $ac_compile) 2>conftest.er1
27689 grep -v '^ *+' conftest.er1 >conftest.err
27691 cat conftest.err >&5
27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); } &&
27694 { ac_try='test -z "$ac_c_werror_flag"
27695 || test ! -s conftest.err'
27696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27697 (eval $ac_try) 2>&5
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; } &&
27701 { ac_try='test -s conftest.$ac_objext'
27702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27703 (eval $ac_try) 2>&5
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); }; }; then
27707 ac_header_compiler=yes
27709 echo "$as_me: failed program was:" >&5
27710 sed 's/^/| /' conftest.$ac_ext >&5
27712 ac_header_compiler=no
27714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27716 echo "${ECHO_T}$ac_header_compiler" >&6
27718 # Is the header present?
27719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27721 cat >conftest.$ac_ext <<_ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h. */
27727 #include <$ac_header>
27729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27732 grep -v '^ *+' conftest.er1 >conftest.err
27734 cat conftest.err >&5
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); } >/dev/null; then
27737 if test -s conftest.err; then
27738 ac_cpp_err=$ac_c_preproc_warn_flag
27739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27746 if test -z "$ac_cpp_err"; then
27747 ac_header_preproc=yes
27749 echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27752 ac_header_preproc=no
27754 rm -f conftest.err conftest.$ac_ext
27755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27756 echo "${ECHO_T}$ac_header_preproc" >&6
27758 # So? What about this header?
27759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27765 ac_header_preproc=yes
27768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27782 ## ------------------------------------------ ##
27783 ## Report this to the AC_PACKAGE_NAME lists. ##
27784 ## ------------------------------------------ ##
27787 sed "s/^/$as_me: WARNING: /" >&2
27790 echo "$as_me:$LINENO: checking for $ac_header" >&5
27791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27793 echo $ECHO_N "(cached) $ECHO_C" >&6
27795 eval "$as_ac_Header=\$ac_header_preproc"
27797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27802 cat >>confdefs.h <<_ACEOF
27803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27810 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27811 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27812 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27813 if test "${ol_cv_header_db1+set}" = set; then
27814 echo $ECHO_N "(cached) $ECHO_C" >&6
27817 cat >conftest.$ac_ext <<_ACEOF
27820 cat confdefs.h >>conftest.$ac_ext
27821 cat >>conftest.$ac_ext <<_ACEOF
27822 /* end confdefs.h. */
27825 # include <db_185.h>
27830 /* this check could be improved */
27831 #ifndef DB_VERSION_MAJOR
27832 # define DB_VERSION_MAJOR 1
27835 #if DB_VERSION_MAJOR == 1
27840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27841 $EGREP "__db_version_1" >/dev/null 2>&1; then
27842 ol_cv_header_db1=yes
27844 ol_cv_header_db1=no
27849 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27850 echo "${ECHO_T}$ol_cv_header_db1" >&6
27852 if test $ol_cv_header_db1 = yes ; then
27855 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27856 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27857 if test "${ol_cv_bdb_major+set}" = set; then
27858 echo $ECHO_N "(cached) $ECHO_C" >&6
27862 if test $ol_cv_bdb_major = 0 ; then
27863 cat >conftest.$ac_ext <<_ACEOF
27866 cat confdefs.h >>conftest.$ac_ext
27867 cat >>conftest.$ac_ext <<_ACEOF
27868 /* end confdefs.h. */
27871 #ifndef DB_VERSION_MAJOR
27872 # define DB_VERSION_MAJOR 1
27874 #if DB_VERSION_MAJOR == 4
27879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27880 $EGREP "__db_version" >/dev/null 2>&1; then
27888 if test $ol_cv_bdb_major = 0 ; then
27889 cat >conftest.$ac_ext <<_ACEOF
27892 cat confdefs.h >>conftest.$ac_ext
27893 cat >>conftest.$ac_ext <<_ACEOF
27894 /* end confdefs.h. */
27897 #ifndef DB_VERSION_MAJOR
27898 # define DB_VERSION_MAJOR 1
27900 #if DB_VERSION_MAJOR == 3
27905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27906 $EGREP "__db_version" >/dev/null 2>&1; then
27914 if test $ol_cv_bdb_major = 0 ; then
27915 cat >conftest.$ac_ext <<_ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h. */
27923 #ifndef DB_VERSION_MAJOR
27924 # define DB_VERSION_MAJOR 1
27926 #if DB_VERSION_MAJOR == 2
27931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27932 $EGREP "__db_version" >/dev/null 2>&1; then
27940 if test $ol_cv_bdb_major = 0 ; then
27941 cat >conftest.$ac_ext <<_ACEOF
27944 cat confdefs.h >>conftest.$ac_ext
27945 cat >>conftest.$ac_ext <<_ACEOF
27946 /* end confdefs.h. */
27949 #ifndef DB_VERSION_MAJOR
27950 # define DB_VERSION_MAJOR 1
27952 #if DB_VERSION_MAJOR == 1
27957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27958 $EGREP "__db_version" >/dev/null 2>&1; then
27967 if test $ol_cv_bdb_major = 0 ; then
27968 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27969 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27970 { (exit 1); exit 1; }; }
27974 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27975 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27977 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27978 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27979 if test "${ol_cv_bdb_minor+set}" = set; then
27980 echo $ECHO_N "(cached) $ECHO_C" >&6
27984 if test $ol_cv_bdb_minor = 0 ; then
27985 cat >conftest.$ac_ext <<_ACEOF
27988 cat confdefs.h >>conftest.$ac_ext
27989 cat >>conftest.$ac_ext <<_ACEOF
27990 /* end confdefs.h. */
27993 #ifndef DB_VERSION_MINOR
27994 # define DB_VERSION_MINOR 0
27996 #if DB_VERSION_MINOR == 9
28001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28002 $EGREP "__db_version" >/dev/null 2>&1; then
28010 if test $ol_cv_bdb_minor = 0 ; then
28011 cat >conftest.$ac_ext <<_ACEOF
28014 cat confdefs.h >>conftest.$ac_ext
28015 cat >>conftest.$ac_ext <<_ACEOF
28016 /* end confdefs.h. */
28019 #ifndef DB_VERSION_MINOR
28020 # define DB_VERSION_MINOR 0
28022 #if DB_VERSION_MINOR == 8
28027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28028 $EGREP "__db_version" >/dev/null 2>&1; then
28036 if test $ol_cv_bdb_minor = 0 ; then
28037 cat >conftest.$ac_ext <<_ACEOF
28040 cat confdefs.h >>conftest.$ac_ext
28041 cat >>conftest.$ac_ext <<_ACEOF
28042 /* end confdefs.h. */
28045 #ifndef DB_VERSION_MINOR
28046 # define DB_VERSION_MINOR 0
28048 #if DB_VERSION_MINOR == 7
28053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28054 $EGREP "__db_version" >/dev/null 2>&1; then
28062 if test $ol_cv_bdb_minor = 0 ; then
28063 cat >conftest.$ac_ext <<_ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h. */
28071 #ifndef DB_VERSION_MINOR
28072 # define DB_VERSION_MINOR 0
28074 #if DB_VERSION_MINOR == 6
28079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28080 $EGREP "__db_version" >/dev/null 2>&1; then
28088 if test $ol_cv_bdb_minor = 0 ; then
28089 cat >conftest.$ac_ext <<_ACEOF
28092 cat confdefs.h >>conftest.$ac_ext
28093 cat >>conftest.$ac_ext <<_ACEOF
28094 /* end confdefs.h. */
28097 #ifndef DB_VERSION_MINOR
28098 # define DB_VERSION_MINOR 0
28100 #if DB_VERSION_MINOR == 5
28105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28106 $EGREP "__db_version" >/dev/null 2>&1; then
28114 if test $ol_cv_bdb_minor = 0 ; then
28115 cat >conftest.$ac_ext <<_ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h. */
28123 #ifndef DB_VERSION_MINOR
28124 # define DB_VERSION_MINOR 0
28126 #if DB_VERSION_MINOR == 4
28131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28132 $EGREP "__db_version" >/dev/null 2>&1; then
28140 if test $ol_cv_bdb_minor = 0 ; then
28141 cat >conftest.$ac_ext <<_ACEOF
28144 cat confdefs.h >>conftest.$ac_ext
28145 cat >>conftest.$ac_ext <<_ACEOF
28146 /* end confdefs.h. */
28149 #ifndef DB_VERSION_MINOR
28150 # define DB_VERSION_MINOR 0
28152 #if DB_VERSION_MINOR == 3
28157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28158 $EGREP "__db_version" >/dev/null 2>&1; then
28166 if test $ol_cv_bdb_minor = 0 ; then
28167 cat >conftest.$ac_ext <<_ACEOF
28170 cat confdefs.h >>conftest.$ac_ext
28171 cat >>conftest.$ac_ext <<_ACEOF
28172 /* end confdefs.h. */
28175 #ifndef DB_VERSION_MINOR
28176 # define DB_VERSION_MINOR 0
28178 #if DB_VERSION_MINOR == 2
28183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28184 $EGREP "__db_version" >/dev/null 2>&1; then
28192 if test $ol_cv_bdb_minor = 0 ; then
28193 cat >conftest.$ac_ext <<_ACEOF
28196 cat confdefs.h >>conftest.$ac_ext
28197 cat >>conftest.$ac_ext <<_ACEOF
28198 /* end confdefs.h. */
28201 #ifndef DB_VERSION_MINOR
28202 # define DB_VERSION_MINOR 0
28204 #if DB_VERSION_MINOR == 1
28209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28210 $EGREP "__db_version" >/dev/null 2>&1; then
28220 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28221 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28223 if test $ol_cv_bdb_major = 4 ; then
28224 if test $ol_cv_bdb_minor = 4 ; then
28225 if test $ol_cv_lib_db = no ; then
28226 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28227 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28228 if test "${ol_cv_db_db44+set}" = set; then
28229 echo $ECHO_N "(cached) $ECHO_C" >&6
28234 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28236 cat >conftest.$ac_ext <<_ACEOF
28239 cat confdefs.h >>conftest.$ac_ext
28240 cat >>conftest.$ac_ext <<_ACEOF
28241 /* end confdefs.h. */
28243 #ifdef HAVE_DB_185_H
28244 # include <db_185.h>
28249 #ifndef DB_VERSION_MAJOR
28250 # define DB_VERSION_MAJOR 1
28254 #define NULL ((void*)0)
28261 #if DB_VERSION_MAJOR > 1
28264 int major, minor, patch;
28266 version = db_version( &major, &minor, &patch );
28268 if( major != DB_VERSION_MAJOR ||
28269 minor < DB_VERSION_MINOR )
28271 printf("Berkeley DB version mismatch\n"
28272 "\theader: %s\n\tlibrary: %s\n",
28273 DB_VERSION_STRING, version);
28279 #if DB_VERSION_MAJOR > 2
28280 db_env_create( NULL, 0 );
28281 #elif DB_VERSION_MAJOR > 1
28282 db_appexit( NULL );
28284 (void) dbopen( NULL, 0, 0, 0, NULL);
28291 rm -f conftest.$ac_objext conftest$ac_exeext
28292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28293 (eval $ac_link) 2>conftest.er1
28295 grep -v '^ *+' conftest.er1 >conftest.err
28297 cat conftest.err >&5
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); } &&
28300 { ac_try='test -z "$ac_c_werror_flag"
28301 || test ! -s conftest.err'
28302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28303 (eval $ac_try) 2>&5
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; } &&
28307 { ac_try='test -s conftest$ac_exeext'
28308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28309 (eval $ac_try) 2>&5
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; }; then
28315 echo "$as_me: failed program was:" >&5
28316 sed 's/^/| /' conftest.$ac_ext >&5
28320 rm -f conftest.err conftest.$ac_objext \
28321 conftest$ac_exeext conftest.$ac_ext
28326 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28327 echo "${ECHO_T}$ol_cv_db_db44" >&6
28329 if test $ol_cv_db_db44 = yes ; then
28330 ol_cv_lib_db=-ldb44
28334 if test $ol_cv_lib_db = no ; then
28335 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28336 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28337 if test "${ol_cv_db_db_44+set}" = set; then
28338 echo $ECHO_N "(cached) $ECHO_C" >&6
28343 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28345 cat >conftest.$ac_ext <<_ACEOF
28348 cat confdefs.h >>conftest.$ac_ext
28349 cat >>conftest.$ac_ext <<_ACEOF
28350 /* end confdefs.h. */
28352 #ifdef HAVE_DB_185_H
28353 # include <db_185.h>
28358 #ifndef DB_VERSION_MAJOR
28359 # define DB_VERSION_MAJOR 1
28363 #define NULL ((void*)0)
28370 #if DB_VERSION_MAJOR > 1
28373 int major, minor, patch;
28375 version = db_version( &major, &minor, &patch );
28377 if( major != DB_VERSION_MAJOR ||
28378 minor < DB_VERSION_MINOR )
28380 printf("Berkeley DB version mismatch\n"
28381 "\theader: %s\n\tlibrary: %s\n",
28382 DB_VERSION_STRING, version);
28388 #if DB_VERSION_MAJOR > 2
28389 db_env_create( NULL, 0 );
28390 #elif DB_VERSION_MAJOR > 1
28391 db_appexit( NULL );
28393 (void) dbopen( NULL, 0, 0, 0, NULL);
28400 rm -f conftest.$ac_objext conftest$ac_exeext
28401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28402 (eval $ac_link) 2>conftest.er1
28404 grep -v '^ *+' conftest.er1 >conftest.err
28406 cat conftest.err >&5
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); } &&
28409 { ac_try='test -z "$ac_c_werror_flag"
28410 || test ! -s conftest.err'
28411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28412 (eval $ac_try) 2>&5
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); }; } &&
28416 { ac_try='test -s conftest$ac_exeext'
28417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28418 (eval $ac_try) 2>&5
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); }; }; then
28424 echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28429 rm -f conftest.err conftest.$ac_objext \
28430 conftest$ac_exeext conftest.$ac_ext
28435 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28436 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28438 if test $ol_cv_db_db_44 = yes ; then
28439 ol_cv_lib_db=-ldb-44
28443 if test $ol_cv_lib_db = no ; then
28444 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28445 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28446 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28447 echo $ECHO_N "(cached) $ECHO_C" >&6
28452 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28454 cat >conftest.$ac_ext <<_ACEOF
28457 cat confdefs.h >>conftest.$ac_ext
28458 cat >>conftest.$ac_ext <<_ACEOF
28459 /* end confdefs.h. */
28461 #ifdef HAVE_DB_185_H
28462 # include <db_185.h>
28467 #ifndef DB_VERSION_MAJOR
28468 # define DB_VERSION_MAJOR 1
28472 #define NULL ((void*)0)
28479 #if DB_VERSION_MAJOR > 1
28482 int major, minor, patch;
28484 version = db_version( &major, &minor, &patch );
28486 if( major != DB_VERSION_MAJOR ||
28487 minor < DB_VERSION_MINOR )
28489 printf("Berkeley DB version mismatch\n"
28490 "\theader: %s\n\tlibrary: %s\n",
28491 DB_VERSION_STRING, version);
28497 #if DB_VERSION_MAJOR > 2
28498 db_env_create( NULL, 0 );
28499 #elif DB_VERSION_MAJOR > 1
28500 db_appexit( NULL );
28502 (void) dbopen( NULL, 0, 0, 0, NULL);
28509 rm -f conftest.$ac_objext conftest$ac_exeext
28510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28511 (eval $ac_link) 2>conftest.er1
28513 grep -v '^ *+' conftest.er1 >conftest.err
28515 cat conftest.err >&5
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); } &&
28518 { ac_try='test -z "$ac_c_werror_flag"
28519 || test ! -s conftest.err'
28520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28521 (eval $ac_try) 2>&5
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); }; } &&
28525 { ac_try='test -s conftest$ac_exeext'
28526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28527 (eval $ac_try) 2>&5
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); }; }; then
28531 ol_cv_db_db_4_dot_4=yes
28533 echo "$as_me: failed program was:" >&5
28534 sed 's/^/| /' conftest.$ac_ext >&5
28536 ol_cv_db_db_4_dot_4=no
28538 rm -f conftest.err conftest.$ac_objext \
28539 conftest$ac_exeext conftest.$ac_ext
28544 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28545 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28547 if test $ol_cv_db_db_4_dot_4 = yes ; then
28548 ol_cv_lib_db=-ldb-4.4
28552 if test $ol_cv_lib_db = no ; then
28553 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28554 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28555 if test "${ol_cv_db_db_4_4+set}" = set; then
28556 echo $ECHO_N "(cached) $ECHO_C" >&6
28561 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28563 cat >conftest.$ac_ext <<_ACEOF
28566 cat confdefs.h >>conftest.$ac_ext
28567 cat >>conftest.$ac_ext <<_ACEOF
28568 /* end confdefs.h. */
28570 #ifdef HAVE_DB_185_H
28571 # include <db_185.h>
28576 #ifndef DB_VERSION_MAJOR
28577 # define DB_VERSION_MAJOR 1
28581 #define NULL ((void*)0)
28588 #if DB_VERSION_MAJOR > 1
28591 int major, minor, patch;
28593 version = db_version( &major, &minor, &patch );
28595 if( major != DB_VERSION_MAJOR ||
28596 minor < DB_VERSION_MINOR )
28598 printf("Berkeley DB version mismatch\n"
28599 "\theader: %s\n\tlibrary: %s\n",
28600 DB_VERSION_STRING, version);
28606 #if DB_VERSION_MAJOR > 2
28607 db_env_create( NULL, 0 );
28608 #elif DB_VERSION_MAJOR > 1
28609 db_appexit( NULL );
28611 (void) dbopen( NULL, 0, 0, 0, NULL);
28618 rm -f conftest.$ac_objext conftest$ac_exeext
28619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28620 (eval $ac_link) 2>conftest.er1
28622 grep -v '^ *+' conftest.er1 >conftest.err
28624 cat conftest.err >&5
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); } &&
28627 { ac_try='test -z "$ac_c_werror_flag"
28628 || test ! -s conftest.err'
28629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28630 (eval $ac_try) 2>&5
28632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633 (exit $ac_status); }; } &&
28634 { ac_try='test -s conftest$ac_exeext'
28635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28636 (eval $ac_try) 2>&5
28638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639 (exit $ac_status); }; }; then
28640 ol_cv_db_db_4_4=yes
28642 echo "$as_me: failed program was:" >&5
28643 sed 's/^/| /' conftest.$ac_ext >&5
28647 rm -f conftest.err conftest.$ac_objext \
28648 conftest$ac_exeext conftest.$ac_ext
28653 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28654 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28656 if test $ol_cv_db_db_4_4 = yes ; then
28657 ol_cv_lib_db=-ldb-4-4
28661 elif test $ol_cv_bdb_minor = 3 ; then
28662 if test $ol_cv_lib_db = no ; then
28663 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28664 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28665 if test "${ol_cv_db_db43+set}" = set; then
28666 echo $ECHO_N "(cached) $ECHO_C" >&6
28671 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28673 cat >conftest.$ac_ext <<_ACEOF
28676 cat confdefs.h >>conftest.$ac_ext
28677 cat >>conftest.$ac_ext <<_ACEOF
28678 /* end confdefs.h. */
28680 #ifdef HAVE_DB_185_H
28681 # include <db_185.h>
28686 #ifndef DB_VERSION_MAJOR
28687 # define DB_VERSION_MAJOR 1
28691 #define NULL ((void*)0)
28698 #if DB_VERSION_MAJOR > 1
28701 int major, minor, patch;
28703 version = db_version( &major, &minor, &patch );
28705 if( major != DB_VERSION_MAJOR ||
28706 minor < DB_VERSION_MINOR )
28708 printf("Berkeley DB version mismatch\n"
28709 "\theader: %s\n\tlibrary: %s\n",
28710 DB_VERSION_STRING, version);
28716 #if DB_VERSION_MAJOR > 2
28717 db_env_create( NULL, 0 );
28718 #elif DB_VERSION_MAJOR > 1
28719 db_appexit( NULL );
28721 (void) dbopen( NULL, 0, 0, 0, NULL);
28728 rm -f conftest.$ac_objext conftest$ac_exeext
28729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28730 (eval $ac_link) 2>conftest.er1
28732 grep -v '^ *+' conftest.er1 >conftest.err
28734 cat conftest.err >&5
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); } &&
28737 { ac_try='test -z "$ac_c_werror_flag"
28738 || test ! -s conftest.err'
28739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28740 (eval $ac_try) 2>&5
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); }; } &&
28744 { ac_try='test -s conftest$ac_exeext'
28745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28746 (eval $ac_try) 2>&5
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); }; }; then
28752 echo "$as_me: failed program was:" >&5
28753 sed 's/^/| /' conftest.$ac_ext >&5
28757 rm -f conftest.err conftest.$ac_objext \
28758 conftest$ac_exeext conftest.$ac_ext
28763 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28764 echo "${ECHO_T}$ol_cv_db_db43" >&6
28766 if test $ol_cv_db_db43 = yes ; then
28767 ol_cv_lib_db=-ldb43
28771 if test $ol_cv_lib_db = no ; then
28772 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28773 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28774 if test "${ol_cv_db_db_43+set}" = set; then
28775 echo $ECHO_N "(cached) $ECHO_C" >&6
28780 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28782 cat >conftest.$ac_ext <<_ACEOF
28785 cat confdefs.h >>conftest.$ac_ext
28786 cat >>conftest.$ac_ext <<_ACEOF
28787 /* end confdefs.h. */
28789 #ifdef HAVE_DB_185_H
28790 # include <db_185.h>
28795 #ifndef DB_VERSION_MAJOR
28796 # define DB_VERSION_MAJOR 1
28800 #define NULL ((void*)0)
28807 #if DB_VERSION_MAJOR > 1
28810 int major, minor, patch;
28812 version = db_version( &major, &minor, &patch );
28814 if( major != DB_VERSION_MAJOR ||
28815 minor < DB_VERSION_MINOR )
28817 printf("Berkeley DB version mismatch\n"
28818 "\theader: %s\n\tlibrary: %s\n",
28819 DB_VERSION_STRING, version);
28825 #if DB_VERSION_MAJOR > 2
28826 db_env_create( NULL, 0 );
28827 #elif DB_VERSION_MAJOR > 1
28828 db_appexit( NULL );
28830 (void) dbopen( NULL, 0, 0, 0, NULL);
28837 rm -f conftest.$ac_objext conftest$ac_exeext
28838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28839 (eval $ac_link) 2>conftest.er1
28841 grep -v '^ *+' conftest.er1 >conftest.err
28843 cat conftest.err >&5
28844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845 (exit $ac_status); } &&
28846 { ac_try='test -z "$ac_c_werror_flag"
28847 || test ! -s conftest.err'
28848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28849 (eval $ac_try) 2>&5
28851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852 (exit $ac_status); }; } &&
28853 { ac_try='test -s conftest$ac_exeext'
28854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28855 (eval $ac_try) 2>&5
28857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858 (exit $ac_status); }; }; then
28861 echo "$as_me: failed program was:" >&5
28862 sed 's/^/| /' conftest.$ac_ext >&5
28866 rm -f conftest.err conftest.$ac_objext \
28867 conftest$ac_exeext conftest.$ac_ext
28872 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28873 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28875 if test $ol_cv_db_db_43 = yes ; then
28876 ol_cv_lib_db=-ldb-43
28880 if test $ol_cv_lib_db = no ; then
28881 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28882 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28883 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28884 echo $ECHO_N "(cached) $ECHO_C" >&6
28889 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28891 cat >conftest.$ac_ext <<_ACEOF
28894 cat confdefs.h >>conftest.$ac_ext
28895 cat >>conftest.$ac_ext <<_ACEOF
28896 /* end confdefs.h. */
28898 #ifdef HAVE_DB_185_H
28899 # include <db_185.h>
28904 #ifndef DB_VERSION_MAJOR
28905 # define DB_VERSION_MAJOR 1
28909 #define NULL ((void*)0)
28916 #if DB_VERSION_MAJOR > 1
28919 int major, minor, patch;
28921 version = db_version( &major, &minor, &patch );
28923 if( major != DB_VERSION_MAJOR ||
28924 minor < DB_VERSION_MINOR )
28926 printf("Berkeley DB version mismatch\n"
28927 "\theader: %s\n\tlibrary: %s\n",
28928 DB_VERSION_STRING, version);
28934 #if DB_VERSION_MAJOR > 2
28935 db_env_create( NULL, 0 );
28936 #elif DB_VERSION_MAJOR > 1
28937 db_appexit( NULL );
28939 (void) dbopen( NULL, 0, 0, 0, NULL);
28946 rm -f conftest.$ac_objext conftest$ac_exeext
28947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28948 (eval $ac_link) 2>conftest.er1
28950 grep -v '^ *+' conftest.er1 >conftest.err
28952 cat conftest.err >&5
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); } &&
28955 { ac_try='test -z "$ac_c_werror_flag"
28956 || test ! -s conftest.err'
28957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28958 (eval $ac_try) 2>&5
28960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961 (exit $ac_status); }; } &&
28962 { ac_try='test -s conftest$ac_exeext'
28963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28964 (eval $ac_try) 2>&5
28966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); }; }; then
28968 ol_cv_db_db_4_dot_3=yes
28970 echo "$as_me: failed program was:" >&5
28971 sed 's/^/| /' conftest.$ac_ext >&5
28973 ol_cv_db_db_4_dot_3=no
28975 rm -f conftest.err conftest.$ac_objext \
28976 conftest$ac_exeext conftest.$ac_ext
28981 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28982 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28984 if test $ol_cv_db_db_4_dot_3 = yes ; then
28985 ol_cv_lib_db=-ldb-4.3
28989 if test $ol_cv_lib_db = no ; then
28990 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28991 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28992 if test "${ol_cv_db_db_4_3+set}" = set; then
28993 echo $ECHO_N "(cached) $ECHO_C" >&6
28998 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29000 cat >conftest.$ac_ext <<_ACEOF
29003 cat confdefs.h >>conftest.$ac_ext
29004 cat >>conftest.$ac_ext <<_ACEOF
29005 /* end confdefs.h. */
29007 #ifdef HAVE_DB_185_H
29008 # include <db_185.h>
29013 #ifndef DB_VERSION_MAJOR
29014 # define DB_VERSION_MAJOR 1
29018 #define NULL ((void*)0)
29025 #if DB_VERSION_MAJOR > 1
29028 int major, minor, patch;
29030 version = db_version( &major, &minor, &patch );
29032 if( major != DB_VERSION_MAJOR ||
29033 minor < DB_VERSION_MINOR )
29035 printf("Berkeley DB version mismatch\n"
29036 "\theader: %s\n\tlibrary: %s\n",
29037 DB_VERSION_STRING, version);
29043 #if DB_VERSION_MAJOR > 2
29044 db_env_create( NULL, 0 );
29045 #elif DB_VERSION_MAJOR > 1
29046 db_appexit( NULL );
29048 (void) dbopen( NULL, 0, 0, 0, NULL);
29055 rm -f conftest.$ac_objext conftest$ac_exeext
29056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29057 (eval $ac_link) 2>conftest.er1
29059 grep -v '^ *+' conftest.er1 >conftest.err
29061 cat conftest.err >&5
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); } &&
29064 { ac_try='test -z "$ac_c_werror_flag"
29065 || test ! -s conftest.err'
29066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067 (eval $ac_try) 2>&5
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; } &&
29071 { ac_try='test -s conftest$ac_exeext'
29072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29073 (eval $ac_try) 2>&5
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); }; }; then
29077 ol_cv_db_db_4_3=yes
29079 echo "$as_me: failed program was:" >&5
29080 sed 's/^/| /' conftest.$ac_ext >&5
29084 rm -f conftest.err conftest.$ac_objext \
29085 conftest$ac_exeext conftest.$ac_ext
29090 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29091 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29093 if test $ol_cv_db_db_4_3 = yes ; then
29094 ol_cv_lib_db=-ldb-4-3
29098 elif test $ol_cv_bdb_minor = 2 ; then
29099 if test $ol_cv_lib_db = no ; then
29100 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29101 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29102 if test "${ol_cv_db_db42+set}" = set; then
29103 echo $ECHO_N "(cached) $ECHO_C" >&6
29108 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29110 cat >conftest.$ac_ext <<_ACEOF
29113 cat confdefs.h >>conftest.$ac_ext
29114 cat >>conftest.$ac_ext <<_ACEOF
29115 /* end confdefs.h. */
29117 #ifdef HAVE_DB_185_H
29118 # include <db_185.h>
29123 #ifndef DB_VERSION_MAJOR
29124 # define DB_VERSION_MAJOR 1
29128 #define NULL ((void*)0)
29135 #if DB_VERSION_MAJOR > 1
29138 int major, minor, patch;
29140 version = db_version( &major, &minor, &patch );
29142 if( major != DB_VERSION_MAJOR ||
29143 minor < DB_VERSION_MINOR )
29145 printf("Berkeley DB version mismatch\n"
29146 "\theader: %s\n\tlibrary: %s\n",
29147 DB_VERSION_STRING, version);
29153 #if DB_VERSION_MAJOR > 2
29154 db_env_create( NULL, 0 );
29155 #elif DB_VERSION_MAJOR > 1
29156 db_appexit( NULL );
29158 (void) dbopen( NULL, 0, 0, 0, NULL);
29165 rm -f conftest.$ac_objext conftest$ac_exeext
29166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29167 (eval $ac_link) 2>conftest.er1
29169 grep -v '^ *+' conftest.er1 >conftest.err
29171 cat conftest.err >&5
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); } &&
29174 { ac_try='test -z "$ac_c_werror_flag"
29175 || test ! -s conftest.err'
29176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29177 (eval $ac_try) 2>&5
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); }; } &&
29181 { ac_try='test -s conftest$ac_exeext'
29182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29183 (eval $ac_try) 2>&5
29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186 (exit $ac_status); }; }; then
29189 echo "$as_me: failed program was:" >&5
29190 sed 's/^/| /' conftest.$ac_ext >&5
29194 rm -f conftest.err conftest.$ac_objext \
29195 conftest$ac_exeext conftest.$ac_ext
29200 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29201 echo "${ECHO_T}$ol_cv_db_db42" >&6
29203 if test $ol_cv_db_db42 = yes ; then
29204 ol_cv_lib_db=-ldb42
29208 if test $ol_cv_lib_db = no ; then
29209 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29210 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29211 if test "${ol_cv_db_db_42+set}" = set; then
29212 echo $ECHO_N "(cached) $ECHO_C" >&6
29217 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29219 cat >conftest.$ac_ext <<_ACEOF
29222 cat confdefs.h >>conftest.$ac_ext
29223 cat >>conftest.$ac_ext <<_ACEOF
29224 /* end confdefs.h. */
29226 #ifdef HAVE_DB_185_H
29227 # include <db_185.h>
29232 #ifndef DB_VERSION_MAJOR
29233 # define DB_VERSION_MAJOR 1
29237 #define NULL ((void*)0)
29244 #if DB_VERSION_MAJOR > 1
29247 int major, minor, patch;
29249 version = db_version( &major, &minor, &patch );
29251 if( major != DB_VERSION_MAJOR ||
29252 minor < DB_VERSION_MINOR )
29254 printf("Berkeley DB version mismatch\n"
29255 "\theader: %s\n\tlibrary: %s\n",
29256 DB_VERSION_STRING, version);
29262 #if DB_VERSION_MAJOR > 2
29263 db_env_create( NULL, 0 );
29264 #elif DB_VERSION_MAJOR > 1
29265 db_appexit( NULL );
29267 (void) dbopen( NULL, 0, 0, 0, NULL);
29274 rm -f conftest.$ac_objext conftest$ac_exeext
29275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29276 (eval $ac_link) 2>conftest.er1
29278 grep -v '^ *+' conftest.er1 >conftest.err
29280 cat conftest.err >&5
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); } &&
29283 { ac_try='test -z "$ac_c_werror_flag"
29284 || test ! -s conftest.err'
29285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29286 (eval $ac_try) 2>&5
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289 (exit $ac_status); }; } &&
29290 { ac_try='test -s conftest$ac_exeext'
29291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29292 (eval $ac_try) 2>&5
29294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295 (exit $ac_status); }; }; then
29298 echo "$as_me: failed program was:" >&5
29299 sed 's/^/| /' conftest.$ac_ext >&5
29303 rm -f conftest.err conftest.$ac_objext \
29304 conftest$ac_exeext conftest.$ac_ext
29309 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29310 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29312 if test $ol_cv_db_db_42 = yes ; then
29313 ol_cv_lib_db=-ldb-42
29317 if test $ol_cv_lib_db = no ; then
29318 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29319 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29320 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29321 echo $ECHO_N "(cached) $ECHO_C" >&6
29326 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29328 cat >conftest.$ac_ext <<_ACEOF
29331 cat confdefs.h >>conftest.$ac_ext
29332 cat >>conftest.$ac_ext <<_ACEOF
29333 /* end confdefs.h. */
29335 #ifdef HAVE_DB_185_H
29336 # include <db_185.h>
29341 #ifndef DB_VERSION_MAJOR
29342 # define DB_VERSION_MAJOR 1
29346 #define NULL ((void*)0)
29353 #if DB_VERSION_MAJOR > 1
29356 int major, minor, patch;
29358 version = db_version( &major, &minor, &patch );
29360 if( major != DB_VERSION_MAJOR ||
29361 minor < DB_VERSION_MINOR )
29363 printf("Berkeley DB version mismatch\n"
29364 "\theader: %s\n\tlibrary: %s\n",
29365 DB_VERSION_STRING, version);
29371 #if DB_VERSION_MAJOR > 2
29372 db_env_create( NULL, 0 );
29373 #elif DB_VERSION_MAJOR > 1
29374 db_appexit( NULL );
29376 (void) dbopen( NULL, 0, 0, 0, NULL);
29383 rm -f conftest.$ac_objext conftest$ac_exeext
29384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29385 (eval $ac_link) 2>conftest.er1
29387 grep -v '^ *+' conftest.er1 >conftest.err
29389 cat conftest.err >&5
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); } &&
29392 { ac_try='test -z "$ac_c_werror_flag"
29393 || test ! -s conftest.err'
29394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29395 (eval $ac_try) 2>&5
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); }; } &&
29399 { ac_try='test -s conftest$ac_exeext'
29400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29401 (eval $ac_try) 2>&5
29403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); }; }; then
29405 ol_cv_db_db_4_dot_2=yes
29407 echo "$as_me: failed program was:" >&5
29408 sed 's/^/| /' conftest.$ac_ext >&5
29410 ol_cv_db_db_4_dot_2=no
29412 rm -f conftest.err conftest.$ac_objext \
29413 conftest$ac_exeext conftest.$ac_ext
29418 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29419 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29421 if test $ol_cv_db_db_4_dot_2 = yes ; then
29422 ol_cv_lib_db=-ldb-4.2
29426 if test $ol_cv_lib_db = no ; then
29427 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29428 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29429 if test "${ol_cv_db_db_4_2+set}" = set; then
29430 echo $ECHO_N "(cached) $ECHO_C" >&6
29435 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29437 cat >conftest.$ac_ext <<_ACEOF
29440 cat confdefs.h >>conftest.$ac_ext
29441 cat >>conftest.$ac_ext <<_ACEOF
29442 /* end confdefs.h. */
29444 #ifdef HAVE_DB_185_H
29445 # include <db_185.h>
29450 #ifndef DB_VERSION_MAJOR
29451 # define DB_VERSION_MAJOR 1
29455 #define NULL ((void*)0)
29462 #if DB_VERSION_MAJOR > 1
29465 int major, minor, patch;
29467 version = db_version( &major, &minor, &patch );
29469 if( major != DB_VERSION_MAJOR ||
29470 minor < DB_VERSION_MINOR )
29472 printf("Berkeley DB version mismatch\n"
29473 "\theader: %s\n\tlibrary: %s\n",
29474 DB_VERSION_STRING, version);
29480 #if DB_VERSION_MAJOR > 2
29481 db_env_create( NULL, 0 );
29482 #elif DB_VERSION_MAJOR > 1
29483 db_appexit( NULL );
29485 (void) dbopen( NULL, 0, 0, 0, NULL);
29492 rm -f conftest.$ac_objext conftest$ac_exeext
29493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29494 (eval $ac_link) 2>conftest.er1
29496 grep -v '^ *+' conftest.er1 >conftest.err
29498 cat conftest.err >&5
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); } &&
29501 { ac_try='test -z "$ac_c_werror_flag"
29502 || test ! -s conftest.err'
29503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29504 (eval $ac_try) 2>&5
29506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507 (exit $ac_status); }; } &&
29508 { ac_try='test -s conftest$ac_exeext'
29509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29510 (eval $ac_try) 2>&5
29512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513 (exit $ac_status); }; }; then
29514 ol_cv_db_db_4_2=yes
29516 echo "$as_me: failed program was:" >&5
29517 sed 's/^/| /' conftest.$ac_ext >&5
29521 rm -f conftest.err conftest.$ac_objext \
29522 conftest$ac_exeext conftest.$ac_ext
29527 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29528 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29530 if test $ol_cv_db_db_4_2 = yes ; then
29531 ol_cv_lib_db=-ldb-4-2
29535 elif test $ol_cv_bdb_minor = 1 ; then
29536 if test $ol_cv_lib_db = no ; then
29537 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29538 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29539 if test "${ol_cv_db_db41+set}" = set; then
29540 echo $ECHO_N "(cached) $ECHO_C" >&6
29545 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29547 cat >conftest.$ac_ext <<_ACEOF
29550 cat confdefs.h >>conftest.$ac_ext
29551 cat >>conftest.$ac_ext <<_ACEOF
29552 /* end confdefs.h. */
29554 #ifdef HAVE_DB_185_H
29555 # include <db_185.h>
29560 #ifndef DB_VERSION_MAJOR
29561 # define DB_VERSION_MAJOR 1
29565 #define NULL ((void*)0)
29572 #if DB_VERSION_MAJOR > 1
29575 int major, minor, patch;
29577 version = db_version( &major, &minor, &patch );
29579 if( major != DB_VERSION_MAJOR ||
29580 minor < DB_VERSION_MINOR )
29582 printf("Berkeley DB version mismatch\n"
29583 "\theader: %s\n\tlibrary: %s\n",
29584 DB_VERSION_STRING, version);
29590 #if DB_VERSION_MAJOR > 2
29591 db_env_create( NULL, 0 );
29592 #elif DB_VERSION_MAJOR > 1
29593 db_appexit( NULL );
29595 (void) dbopen( NULL, 0, 0, 0, NULL);
29602 rm -f conftest.$ac_objext conftest$ac_exeext
29603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29604 (eval $ac_link) 2>conftest.er1
29606 grep -v '^ *+' conftest.er1 >conftest.err
29608 cat conftest.err >&5
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); } &&
29611 { ac_try='test -z "$ac_c_werror_flag"
29612 || test ! -s conftest.err'
29613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29614 (eval $ac_try) 2>&5
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); }; } &&
29618 { ac_try='test -s conftest$ac_exeext'
29619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29620 (eval $ac_try) 2>&5
29622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623 (exit $ac_status); }; }; then
29626 echo "$as_me: failed program was:" >&5
29627 sed 's/^/| /' conftest.$ac_ext >&5
29631 rm -f conftest.err conftest.$ac_objext \
29632 conftest$ac_exeext conftest.$ac_ext
29637 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29638 echo "${ECHO_T}$ol_cv_db_db41" >&6
29640 if test $ol_cv_db_db41 = yes ; then
29641 ol_cv_lib_db=-ldb41
29645 if test $ol_cv_lib_db = no ; then
29646 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29647 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29648 if test "${ol_cv_db_db_41+set}" = set; then
29649 echo $ECHO_N "(cached) $ECHO_C" >&6
29654 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29656 cat >conftest.$ac_ext <<_ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h. */
29663 #ifdef HAVE_DB_185_H
29664 # include <db_185.h>
29669 #ifndef DB_VERSION_MAJOR
29670 # define DB_VERSION_MAJOR 1
29674 #define NULL ((void*)0)
29681 #if DB_VERSION_MAJOR > 1
29684 int major, minor, patch;
29686 version = db_version( &major, &minor, &patch );
29688 if( major != DB_VERSION_MAJOR ||
29689 minor < DB_VERSION_MINOR )
29691 printf("Berkeley DB version mismatch\n"
29692 "\theader: %s\n\tlibrary: %s\n",
29693 DB_VERSION_STRING, version);
29699 #if DB_VERSION_MAJOR > 2
29700 db_env_create( NULL, 0 );
29701 #elif DB_VERSION_MAJOR > 1
29702 db_appexit( NULL );
29704 (void) dbopen( NULL, 0, 0, 0, NULL);
29711 rm -f conftest.$ac_objext conftest$ac_exeext
29712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29713 (eval $ac_link) 2>conftest.er1
29715 grep -v '^ *+' conftest.er1 >conftest.err
29717 cat conftest.err >&5
29718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); } &&
29720 { ac_try='test -z "$ac_c_werror_flag"
29721 || test ! -s conftest.err'
29722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29723 (eval $ac_try) 2>&5
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); }; } &&
29727 { ac_try='test -s conftest$ac_exeext'
29728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29729 (eval $ac_try) 2>&5
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); }; }; then
29735 echo "$as_me: failed program was:" >&5
29736 sed 's/^/| /' conftest.$ac_ext >&5
29740 rm -f conftest.err conftest.$ac_objext \
29741 conftest$ac_exeext conftest.$ac_ext
29746 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29747 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29749 if test $ol_cv_db_db_41 = yes ; then
29750 ol_cv_lib_db=-ldb-41
29754 if test $ol_cv_lib_db = no ; then
29755 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29756 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29757 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29758 echo $ECHO_N "(cached) $ECHO_C" >&6
29763 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29765 cat >conftest.$ac_ext <<_ACEOF
29768 cat confdefs.h >>conftest.$ac_ext
29769 cat >>conftest.$ac_ext <<_ACEOF
29770 /* end confdefs.h. */
29772 #ifdef HAVE_DB_185_H
29773 # include <db_185.h>
29778 #ifndef DB_VERSION_MAJOR
29779 # define DB_VERSION_MAJOR 1
29783 #define NULL ((void*)0)
29790 #if DB_VERSION_MAJOR > 1
29793 int major, minor, patch;
29795 version = db_version( &major, &minor, &patch );
29797 if( major != DB_VERSION_MAJOR ||
29798 minor < DB_VERSION_MINOR )
29800 printf("Berkeley DB version mismatch\n"
29801 "\theader: %s\n\tlibrary: %s\n",
29802 DB_VERSION_STRING, version);
29808 #if DB_VERSION_MAJOR > 2
29809 db_env_create( NULL, 0 );
29810 #elif DB_VERSION_MAJOR > 1
29811 db_appexit( NULL );
29813 (void) dbopen( NULL, 0, 0, 0, NULL);
29820 rm -f conftest.$ac_objext conftest$ac_exeext
29821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29822 (eval $ac_link) 2>conftest.er1
29824 grep -v '^ *+' conftest.er1 >conftest.err
29826 cat conftest.err >&5
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); } &&
29829 { ac_try='test -z "$ac_c_werror_flag"
29830 || test ! -s conftest.err'
29831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832 (eval $ac_try) 2>&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; } &&
29836 { ac_try='test -s conftest$ac_exeext'
29837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29838 (eval $ac_try) 2>&5
29840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841 (exit $ac_status); }; }; then
29842 ol_cv_db_db_4_dot_1=yes
29844 echo "$as_me: failed program was:" >&5
29845 sed 's/^/| /' conftest.$ac_ext >&5
29847 ol_cv_db_db_4_dot_1=no
29849 rm -f conftest.err conftest.$ac_objext \
29850 conftest$ac_exeext conftest.$ac_ext
29855 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29856 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29858 if test $ol_cv_db_db_4_dot_1 = yes ; then
29859 ol_cv_lib_db=-ldb-4.1
29863 if test $ol_cv_lib_db = no ; then
29864 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29865 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29866 if test "${ol_cv_db_db_4_1+set}" = set; then
29867 echo $ECHO_N "(cached) $ECHO_C" >&6
29872 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29874 cat >conftest.$ac_ext <<_ACEOF
29877 cat confdefs.h >>conftest.$ac_ext
29878 cat >>conftest.$ac_ext <<_ACEOF
29879 /* end confdefs.h. */
29881 #ifdef HAVE_DB_185_H
29882 # include <db_185.h>
29887 #ifndef DB_VERSION_MAJOR
29888 # define DB_VERSION_MAJOR 1
29892 #define NULL ((void*)0)
29899 #if DB_VERSION_MAJOR > 1
29902 int major, minor, patch;
29904 version = db_version( &major, &minor, &patch );
29906 if( major != DB_VERSION_MAJOR ||
29907 minor < DB_VERSION_MINOR )
29909 printf("Berkeley DB version mismatch\n"
29910 "\theader: %s\n\tlibrary: %s\n",
29911 DB_VERSION_STRING, version);
29917 #if DB_VERSION_MAJOR > 2
29918 db_env_create( NULL, 0 );
29919 #elif DB_VERSION_MAJOR > 1
29920 db_appexit( NULL );
29922 (void) dbopen( NULL, 0, 0, 0, NULL);
29929 rm -f conftest.$ac_objext conftest$ac_exeext
29930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29931 (eval $ac_link) 2>conftest.er1
29933 grep -v '^ *+' conftest.er1 >conftest.err
29935 cat conftest.err >&5
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); } &&
29938 { ac_try='test -z "$ac_c_werror_flag"
29939 || test ! -s conftest.err'
29940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941 (eval $ac_try) 2>&5
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); }; } &&
29945 { ac_try='test -s conftest$ac_exeext'
29946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29947 (eval $ac_try) 2>&5
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); }; }; then
29951 ol_cv_db_db_4_1=yes
29953 echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29958 rm -f conftest.err conftest.$ac_objext \
29959 conftest$ac_exeext conftest.$ac_ext
29964 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29965 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29967 if test $ol_cv_db_db_4_1 = yes ; then
29968 ol_cv_lib_db=-ldb-4-1
29973 if test $ol_cv_lib_db = no ; then
29974 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29975 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29976 if test "${ol_cv_db_db_4+set}" = set; then
29977 echo $ECHO_N "(cached) $ECHO_C" >&6
29982 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29984 cat >conftest.$ac_ext <<_ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h. */
29991 #ifdef HAVE_DB_185_H
29992 # include <db_185.h>
29997 #ifndef DB_VERSION_MAJOR
29998 # define DB_VERSION_MAJOR 1
30002 #define NULL ((void*)0)
30009 #if DB_VERSION_MAJOR > 1
30012 int major, minor, patch;
30014 version = db_version( &major, &minor, &patch );
30016 if( major != DB_VERSION_MAJOR ||
30017 minor < DB_VERSION_MINOR )
30019 printf("Berkeley DB version mismatch\n"
30020 "\theader: %s\n\tlibrary: %s\n",
30021 DB_VERSION_STRING, version);
30027 #if DB_VERSION_MAJOR > 2
30028 db_env_create( NULL, 0 );
30029 #elif DB_VERSION_MAJOR > 1
30030 db_appexit( NULL );
30032 (void) dbopen( NULL, 0, 0, 0, NULL);
30039 rm -f conftest.$ac_objext conftest$ac_exeext
30040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30041 (eval $ac_link) 2>conftest.er1
30043 grep -v '^ *+' conftest.er1 >conftest.err
30045 cat conftest.err >&5
30046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); } &&
30048 { ac_try='test -z "$ac_c_werror_flag"
30049 || test ! -s conftest.err'
30050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30051 (eval $ac_try) 2>&5
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; } &&
30055 { ac_try='test -s conftest$ac_exeext'
30056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30057 (eval $ac_try) 2>&5
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); }; }; then
30063 echo "$as_me: failed program was:" >&5
30064 sed 's/^/| /' conftest.$ac_ext >&5
30068 rm -f conftest.err conftest.$ac_objext \
30069 conftest$ac_exeext conftest.$ac_ext
30074 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30075 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30077 if test $ol_cv_db_db_4 = yes ; then
30078 ol_cv_lib_db=-ldb-4
30082 if test $ol_cv_lib_db = no ; then
30083 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30084 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30085 if test "${ol_cv_db_db4+set}" = set; then
30086 echo $ECHO_N "(cached) $ECHO_C" >&6
30091 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30093 cat >conftest.$ac_ext <<_ACEOF
30096 cat confdefs.h >>conftest.$ac_ext
30097 cat >>conftest.$ac_ext <<_ACEOF
30098 /* end confdefs.h. */
30100 #ifdef HAVE_DB_185_H
30101 # include <db_185.h>
30106 #ifndef DB_VERSION_MAJOR
30107 # define DB_VERSION_MAJOR 1
30111 #define NULL ((void*)0)
30118 #if DB_VERSION_MAJOR > 1
30121 int major, minor, patch;
30123 version = db_version( &major, &minor, &patch );
30125 if( major != DB_VERSION_MAJOR ||
30126 minor < DB_VERSION_MINOR )
30128 printf("Berkeley DB version mismatch\n"
30129 "\theader: %s\n\tlibrary: %s\n",
30130 DB_VERSION_STRING, version);
30136 #if DB_VERSION_MAJOR > 2
30137 db_env_create( NULL, 0 );
30138 #elif DB_VERSION_MAJOR > 1
30139 db_appexit( NULL );
30141 (void) dbopen( NULL, 0, 0, 0, NULL);
30148 rm -f conftest.$ac_objext conftest$ac_exeext
30149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30150 (eval $ac_link) 2>conftest.er1
30152 grep -v '^ *+' conftest.er1 >conftest.err
30154 cat conftest.err >&5
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); } &&
30157 { ac_try='test -z "$ac_c_werror_flag"
30158 || test ! -s conftest.err'
30159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30160 (eval $ac_try) 2>&5
30162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163 (exit $ac_status); }; } &&
30164 { ac_try='test -s conftest$ac_exeext'
30165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30166 (eval $ac_try) 2>&5
30168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169 (exit $ac_status); }; }; then
30172 echo "$as_me: failed program was:" >&5
30173 sed 's/^/| /' conftest.$ac_ext >&5
30177 rm -f conftest.err conftest.$ac_objext \
30178 conftest$ac_exeext conftest.$ac_ext
30183 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30184 echo "${ECHO_T}$ol_cv_db_db4" >&6
30186 if test $ol_cv_db_db4 = yes ; then
30191 if test $ol_cv_lib_db = no ; then
30192 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30193 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30194 if test "${ol_cv_db_db+set}" = set; then
30195 echo $ECHO_N "(cached) $ECHO_C" >&6
30200 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30202 cat >conftest.$ac_ext <<_ACEOF
30205 cat confdefs.h >>conftest.$ac_ext
30206 cat >>conftest.$ac_ext <<_ACEOF
30207 /* end confdefs.h. */
30209 #ifdef HAVE_DB_185_H
30210 # include <db_185.h>
30215 #ifndef DB_VERSION_MAJOR
30216 # define DB_VERSION_MAJOR 1
30220 #define NULL ((void*)0)
30227 #if DB_VERSION_MAJOR > 1
30230 int major, minor, patch;
30232 version = db_version( &major, &minor, &patch );
30234 if( major != DB_VERSION_MAJOR ||
30235 minor < DB_VERSION_MINOR )
30237 printf("Berkeley DB version mismatch\n"
30238 "\theader: %s\n\tlibrary: %s\n",
30239 DB_VERSION_STRING, version);
30245 #if DB_VERSION_MAJOR > 2
30246 db_env_create( NULL, 0 );
30247 #elif DB_VERSION_MAJOR > 1
30248 db_appexit( NULL );
30250 (void) dbopen( NULL, 0, 0, 0, NULL);
30257 rm -f conftest.$ac_objext conftest$ac_exeext
30258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30259 (eval $ac_link) 2>conftest.er1
30261 grep -v '^ *+' conftest.er1 >conftest.err
30263 cat conftest.err >&5
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); } &&
30266 { ac_try='test -z "$ac_c_werror_flag"
30267 || test ! -s conftest.err'
30268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30269 (eval $ac_try) 2>&5
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); }; } &&
30273 { ac_try='test -s conftest$ac_exeext'
30274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275 (eval $ac_try) 2>&5
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; }; then
30281 echo "$as_me: failed program was:" >&5
30282 sed 's/^/| /' conftest.$ac_ext >&5
30286 rm -f conftest.err conftest.$ac_objext \
30287 conftest$ac_exeext conftest.$ac_ext
30292 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30293 echo "${ECHO_T}$ol_cv_db_db" >&6
30295 if test $ol_cv_db_db = yes ; then
30301 elif test $ol_cv_bdb_major = 3 ; then
30302 if test $ol_cv_lib_db = no ; then
30303 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30304 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30305 if test "${ol_cv_db_db3+set}" = set; then
30306 echo $ECHO_N "(cached) $ECHO_C" >&6
30311 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30313 cat >conftest.$ac_ext <<_ACEOF
30316 cat confdefs.h >>conftest.$ac_ext
30317 cat >>conftest.$ac_ext <<_ACEOF
30318 /* end confdefs.h. */
30320 #ifdef HAVE_DB_185_H
30321 # include <db_185.h>
30326 #ifndef DB_VERSION_MAJOR
30327 # define DB_VERSION_MAJOR 1
30331 #define NULL ((void*)0)
30338 #if DB_VERSION_MAJOR > 1
30341 int major, minor, patch;
30343 version = db_version( &major, &minor, &patch );
30345 if( major != DB_VERSION_MAJOR ||
30346 minor < DB_VERSION_MINOR )
30348 printf("Berkeley DB version mismatch\n"
30349 "\theader: %s\n\tlibrary: %s\n",
30350 DB_VERSION_STRING, version);
30356 #if DB_VERSION_MAJOR > 2
30357 db_env_create( NULL, 0 );
30358 #elif DB_VERSION_MAJOR > 1
30359 db_appexit( NULL );
30361 (void) dbopen( NULL, 0, 0, 0, NULL);
30368 rm -f conftest.$ac_objext conftest$ac_exeext
30369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30370 (eval $ac_link) 2>conftest.er1
30372 grep -v '^ *+' conftest.er1 >conftest.err
30374 cat conftest.err >&5
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); } &&
30377 { ac_try='test -z "$ac_c_werror_flag"
30378 || test ! -s conftest.err'
30379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30380 (eval $ac_try) 2>&5
30382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30383 (exit $ac_status); }; } &&
30384 { ac_try='test -s conftest$ac_exeext'
30385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30386 (eval $ac_try) 2>&5
30388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30389 (exit $ac_status); }; }; then
30392 echo "$as_me: failed program was:" >&5
30393 sed 's/^/| /' conftest.$ac_ext >&5
30397 rm -f conftest.err conftest.$ac_objext \
30398 conftest$ac_exeext conftest.$ac_ext
30403 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30404 echo "${ECHO_T}$ol_cv_db_db3" >&6
30406 if test $ol_cv_db_db3 = yes ; then
30411 if test $ol_cv_lib_db = no ; then
30412 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30413 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30414 if test "${ol_cv_db_db_3+set}" = set; then
30415 echo $ECHO_N "(cached) $ECHO_C" >&6
30420 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30422 cat >conftest.$ac_ext <<_ACEOF
30425 cat confdefs.h >>conftest.$ac_ext
30426 cat >>conftest.$ac_ext <<_ACEOF
30427 /* end confdefs.h. */
30429 #ifdef HAVE_DB_185_H
30430 # include <db_185.h>
30435 #ifndef DB_VERSION_MAJOR
30436 # define DB_VERSION_MAJOR 1
30440 #define NULL ((void*)0)
30447 #if DB_VERSION_MAJOR > 1
30450 int major, minor, patch;
30452 version = db_version( &major, &minor, &patch );
30454 if( major != DB_VERSION_MAJOR ||
30455 minor < DB_VERSION_MINOR )
30457 printf("Berkeley DB version mismatch\n"
30458 "\theader: %s\n\tlibrary: %s\n",
30459 DB_VERSION_STRING, version);
30465 #if DB_VERSION_MAJOR > 2
30466 db_env_create( NULL, 0 );
30467 #elif DB_VERSION_MAJOR > 1
30468 db_appexit( NULL );
30470 (void) dbopen( NULL, 0, 0, 0, NULL);
30477 rm -f conftest.$ac_objext conftest$ac_exeext
30478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30479 (eval $ac_link) 2>conftest.er1
30481 grep -v '^ *+' conftest.er1 >conftest.err
30483 cat conftest.err >&5
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); } &&
30486 { ac_try='test -z "$ac_c_werror_flag"
30487 || test ! -s conftest.err'
30488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30489 (eval $ac_try) 2>&5
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); }; } &&
30493 { ac_try='test -s conftest$ac_exeext'
30494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30495 (eval $ac_try) 2>&5
30497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498 (exit $ac_status); }; }; then
30501 echo "$as_me: failed program was:" >&5
30502 sed 's/^/| /' conftest.$ac_ext >&5
30506 rm -f conftest.err conftest.$ac_objext \
30507 conftest$ac_exeext conftest.$ac_ext
30512 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30513 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30515 if test $ol_cv_db_db_3 = yes ; then
30516 ol_cv_lib_db=-ldb-3
30521 elif test $ol_cv_bdb_major = 2 ; then
30522 if test $ol_cv_lib_db = no ; then
30523 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30524 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30525 if test "${ol_cv_db_db2+set}" = set; then
30526 echo $ECHO_N "(cached) $ECHO_C" >&6
30531 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30533 cat >conftest.$ac_ext <<_ACEOF
30536 cat confdefs.h >>conftest.$ac_ext
30537 cat >>conftest.$ac_ext <<_ACEOF
30538 /* end confdefs.h. */
30540 #ifdef HAVE_DB_185_H
30541 # include <db_185.h>
30546 #ifndef DB_VERSION_MAJOR
30547 # define DB_VERSION_MAJOR 1
30551 #define NULL ((void*)0)
30558 #if DB_VERSION_MAJOR > 1
30561 int major, minor, patch;
30563 version = db_version( &major, &minor, &patch );
30565 if( major != DB_VERSION_MAJOR ||
30566 minor < DB_VERSION_MINOR )
30568 printf("Berkeley DB version mismatch\n"
30569 "\theader: %s\n\tlibrary: %s\n",
30570 DB_VERSION_STRING, version);
30576 #if DB_VERSION_MAJOR > 2
30577 db_env_create( NULL, 0 );
30578 #elif DB_VERSION_MAJOR > 1
30579 db_appexit( NULL );
30581 (void) dbopen( NULL, 0, 0, 0, NULL);
30588 rm -f conftest.$ac_objext conftest$ac_exeext
30589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30590 (eval $ac_link) 2>conftest.er1
30592 grep -v '^ *+' conftest.er1 >conftest.err
30594 cat conftest.err >&5
30595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596 (exit $ac_status); } &&
30597 { ac_try='test -z "$ac_c_werror_flag"
30598 || test ! -s conftest.err'
30599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30600 (eval $ac_try) 2>&5
30602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603 (exit $ac_status); }; } &&
30604 { ac_try='test -s conftest$ac_exeext'
30605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30606 (eval $ac_try) 2>&5
30608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609 (exit $ac_status); }; }; then
30612 echo "$as_me: failed program was:" >&5
30613 sed 's/^/| /' conftest.$ac_ext >&5
30617 rm -f conftest.err conftest.$ac_objext \
30618 conftest$ac_exeext conftest.$ac_ext
30623 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30624 echo "${ECHO_T}$ol_cv_db_db2" >&6
30626 if test $ol_cv_db_db2 = yes ; then
30631 if test $ol_cv_lib_db = no ; then
30632 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30633 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30634 if test "${ol_cv_db_db_2+set}" = set; then
30635 echo $ECHO_N "(cached) $ECHO_C" >&6
30640 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30642 cat >conftest.$ac_ext <<_ACEOF
30645 cat confdefs.h >>conftest.$ac_ext
30646 cat >>conftest.$ac_ext <<_ACEOF
30647 /* end confdefs.h. */
30649 #ifdef HAVE_DB_185_H
30650 # include <db_185.h>
30655 #ifndef DB_VERSION_MAJOR
30656 # define DB_VERSION_MAJOR 1
30660 #define NULL ((void*)0)
30667 #if DB_VERSION_MAJOR > 1
30670 int major, minor, patch;
30672 version = db_version( &major, &minor, &patch );
30674 if( major != DB_VERSION_MAJOR ||
30675 minor < DB_VERSION_MINOR )
30677 printf("Berkeley DB version mismatch\n"
30678 "\theader: %s\n\tlibrary: %s\n",
30679 DB_VERSION_STRING, version);
30685 #if DB_VERSION_MAJOR > 2
30686 db_env_create( NULL, 0 );
30687 #elif DB_VERSION_MAJOR > 1
30688 db_appexit( NULL );
30690 (void) dbopen( NULL, 0, 0, 0, NULL);
30697 rm -f conftest.$ac_objext conftest$ac_exeext
30698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30699 (eval $ac_link) 2>conftest.er1
30701 grep -v '^ *+' conftest.er1 >conftest.err
30703 cat conftest.err >&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); } &&
30706 { ac_try='test -z "$ac_c_werror_flag"
30707 || test ! -s conftest.err'
30708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30709 (eval $ac_try) 2>&5
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); }; } &&
30713 { ac_try='test -s conftest$ac_exeext'
30714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30715 (eval $ac_try) 2>&5
30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); }; }; then
30721 echo "$as_me: failed program was:" >&5
30722 sed 's/^/| /' conftest.$ac_ext >&5
30726 rm -f conftest.err conftest.$ac_objext \
30727 conftest$ac_exeext conftest.$ac_ext
30732 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30733 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30735 if test $ol_cv_db_db_2 = yes ; then
30736 ol_cv_lib_db=-ldb-2
30741 elif test $ol_cv_bdb_major = 1 ; then
30742 if test $ol_cv_lib_db = no ; then
30743 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30744 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30745 if test "${ol_cv_db_db1+set}" = set; then
30746 echo $ECHO_N "(cached) $ECHO_C" >&6
30751 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30753 cat >conftest.$ac_ext <<_ACEOF
30756 cat confdefs.h >>conftest.$ac_ext
30757 cat >>conftest.$ac_ext <<_ACEOF
30758 /* end confdefs.h. */
30760 #ifdef HAVE_DB_185_H
30761 # include <db_185.h>
30766 #ifndef DB_VERSION_MAJOR
30767 # define DB_VERSION_MAJOR 1
30771 #define NULL ((void*)0)
30778 #if DB_VERSION_MAJOR > 1
30781 int major, minor, patch;
30783 version = db_version( &major, &minor, &patch );
30785 if( major != DB_VERSION_MAJOR ||
30786 minor < DB_VERSION_MINOR )
30788 printf("Berkeley DB version mismatch\n"
30789 "\theader: %s\n\tlibrary: %s\n",
30790 DB_VERSION_STRING, version);
30796 #if DB_VERSION_MAJOR > 2
30797 db_env_create( NULL, 0 );
30798 #elif DB_VERSION_MAJOR > 1
30799 db_appexit( NULL );
30801 (void) dbopen( NULL, 0, 0, 0, NULL);
30808 rm -f conftest.$ac_objext conftest$ac_exeext
30809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30810 (eval $ac_link) 2>conftest.er1
30812 grep -v '^ *+' conftest.er1 >conftest.err
30814 cat conftest.err >&5
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); } &&
30817 { ac_try='test -z "$ac_c_werror_flag"
30818 || test ! -s conftest.err'
30819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30820 (eval $ac_try) 2>&5
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); }; } &&
30824 { ac_try='test -s conftest$ac_exeext'
30825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30826 (eval $ac_try) 2>&5
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); }; }; then
30832 echo "$as_me: failed program was:" >&5
30833 sed 's/^/| /' conftest.$ac_ext >&5
30837 rm -f conftest.err conftest.$ac_objext \
30838 conftest$ac_exeext conftest.$ac_ext
30843 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30844 echo "${ECHO_T}$ol_cv_db_db1" >&6
30846 if test $ol_cv_db_db1 = yes ; then
30851 if test $ol_cv_lib_db = no ; then
30852 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30853 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30854 if test "${ol_cv_db_db_1+set}" = set; then
30855 echo $ECHO_N "(cached) $ECHO_C" >&6
30860 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30862 cat >conftest.$ac_ext <<_ACEOF
30865 cat confdefs.h >>conftest.$ac_ext
30866 cat >>conftest.$ac_ext <<_ACEOF
30867 /* end confdefs.h. */
30869 #ifdef HAVE_DB_185_H
30870 # include <db_185.h>
30875 #ifndef DB_VERSION_MAJOR
30876 # define DB_VERSION_MAJOR 1
30880 #define NULL ((void*)0)
30887 #if DB_VERSION_MAJOR > 1
30890 int major, minor, patch;
30892 version = db_version( &major, &minor, &patch );
30894 if( major != DB_VERSION_MAJOR ||
30895 minor < DB_VERSION_MINOR )
30897 printf("Berkeley DB version mismatch\n"
30898 "\theader: %s\n\tlibrary: %s\n",
30899 DB_VERSION_STRING, version);
30905 #if DB_VERSION_MAJOR > 2
30906 db_env_create( NULL, 0 );
30907 #elif DB_VERSION_MAJOR > 1
30908 db_appexit( NULL );
30910 (void) dbopen( NULL, 0, 0, 0, NULL);
30917 rm -f conftest.$ac_objext conftest$ac_exeext
30918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30919 (eval $ac_link) 2>conftest.er1
30921 grep -v '^ *+' conftest.er1 >conftest.err
30923 cat conftest.err >&5
30924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30925 (exit $ac_status); } &&
30926 { ac_try='test -z "$ac_c_werror_flag"
30927 || test ! -s conftest.err'
30928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30929 (eval $ac_try) 2>&5
30931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932 (exit $ac_status); }; } &&
30933 { ac_try='test -s conftest$ac_exeext'
30934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30935 (eval $ac_try) 2>&5
30937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30938 (exit $ac_status); }; }; then
30941 echo "$as_me: failed program was:" >&5
30942 sed 's/^/| /' conftest.$ac_ext >&5
30946 rm -f conftest.err conftest.$ac_objext \
30947 conftest$ac_exeext conftest.$ac_ext
30952 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30953 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30955 if test $ol_cv_db_db_1 = yes ; then
30956 ol_cv_lib_db=-ldb-1
30961 if test $ol_cv_lib_db = no ; then
30962 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30963 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30964 if test "${ol_cv_db_none+set}" = set; then
30965 echo $ECHO_N "(cached) $ECHO_C" >&6
30970 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30972 cat >conftest.$ac_ext <<_ACEOF
30975 cat confdefs.h >>conftest.$ac_ext
30976 cat >>conftest.$ac_ext <<_ACEOF
30977 /* end confdefs.h. */
30979 #ifdef HAVE_DB_185_H
30980 # include <db_185.h>
30985 #ifndef DB_VERSION_MAJOR
30986 # define DB_VERSION_MAJOR 1
30990 #define NULL ((void*)0)
30997 #if DB_VERSION_MAJOR > 1
31000 int major, minor, patch;
31002 version = db_version( &major, &minor, &patch );
31004 if( major != DB_VERSION_MAJOR ||
31005 minor < DB_VERSION_MINOR )
31007 printf("Berkeley DB version mismatch\n"
31008 "\theader: %s\n\tlibrary: %s\n",
31009 DB_VERSION_STRING, version);
31015 #if DB_VERSION_MAJOR > 2
31016 db_env_create( NULL, 0 );
31017 #elif DB_VERSION_MAJOR > 1
31018 db_appexit( NULL );
31020 (void) dbopen( NULL, 0, 0, 0, NULL);
31027 rm -f conftest.$ac_objext conftest$ac_exeext
31028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31029 (eval $ac_link) 2>conftest.er1
31031 grep -v '^ *+' conftest.er1 >conftest.err
31033 cat conftest.err >&5
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); } &&
31036 { ac_try='test -z "$ac_c_werror_flag"
31037 || test ! -s conftest.err'
31038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31039 (eval $ac_try) 2>&5
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042 (exit $ac_status); }; } &&
31043 { ac_try='test -s conftest$ac_exeext'
31044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31045 (eval $ac_try) 2>&5
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); }; }; then
31051 echo "$as_me: failed program was:" >&5
31052 sed 's/^/| /' conftest.$ac_ext >&5
31056 rm -f conftest.err conftest.$ac_objext \
31057 conftest$ac_exeext conftest.$ac_ext
31062 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31063 echo "${ECHO_T}$ol_cv_db_none" >&6
31065 if test $ol_cv_db_none = yes ; then
31071 if test "$ol_cv_lib_db" != no ; then
31072 ol_cv_berkeley_db=yes
31078 ol_cv_berkeley_db=no
31080 for ac_header in db.h
31082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31084 echo "$as_me:$LINENO: checking for $ac_header" >&5
31085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31087 echo $ECHO_N "(cached) $ECHO_C" >&6
31089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31092 # Is the header compilable?
31093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31095 cat >conftest.$ac_ext <<_ACEOF
31098 cat confdefs.h >>conftest.$ac_ext
31099 cat >>conftest.$ac_ext <<_ACEOF
31100 /* end confdefs.h. */
31101 $ac_includes_default
31102 #include <$ac_header>
31104 rm -f conftest.$ac_objext
31105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31106 (eval $ac_compile) 2>conftest.er1
31108 grep -v '^ *+' conftest.er1 >conftest.err
31110 cat conftest.err >&5
31111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); } &&
31113 { ac_try='test -z "$ac_c_werror_flag"
31114 || test ! -s conftest.err'
31115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31116 (eval $ac_try) 2>&5
31118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119 (exit $ac_status); }; } &&
31120 { ac_try='test -s conftest.$ac_objext'
31121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31122 (eval $ac_try) 2>&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); }; }; then
31126 ac_header_compiler=yes
31128 echo "$as_me: failed program was:" >&5
31129 sed 's/^/| /' conftest.$ac_ext >&5
31131 ac_header_compiler=no
31133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31135 echo "${ECHO_T}$ac_header_compiler" >&6
31137 # Is the header present?
31138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31140 cat >conftest.$ac_ext <<_ACEOF
31143 cat confdefs.h >>conftest.$ac_ext
31144 cat >>conftest.$ac_ext <<_ACEOF
31145 /* end confdefs.h. */
31146 #include <$ac_header>
31148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31151 grep -v '^ *+' conftest.er1 >conftest.err
31153 cat conftest.err >&5
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); } >/dev/null; then
31156 if test -s conftest.err; then
31157 ac_cpp_err=$ac_c_preproc_warn_flag
31158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31165 if test -z "$ac_cpp_err"; then
31166 ac_header_preproc=yes
31168 echo "$as_me: failed program was:" >&5
31169 sed 's/^/| /' conftest.$ac_ext >&5
31171 ac_header_preproc=no
31173 rm -f conftest.err conftest.$ac_ext
31174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31175 echo "${ECHO_T}$ac_header_preproc" >&6
31177 # So? What about this header?
31178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31184 ac_header_preproc=yes
31187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31201 ## ------------------------------------------ ##
31202 ## Report this to the AC_PACKAGE_NAME lists. ##
31203 ## ------------------------------------------ ##
31206 sed "s/^/$as_me: WARNING: /" >&2
31209 echo "$as_me:$LINENO: checking for $ac_header" >&5
31210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31212 echo $ECHO_N "(cached) $ECHO_C" >&6
31214 eval "$as_ac_Header=\$ac_header_preproc"
31216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31221 cat >>confdefs.h <<_ACEOF
31222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31229 if test $ac_cv_header_db_h = yes; then
31232 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31233 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31234 if test "${ol_cv_bdb_major+set}" = set; then
31235 echo $ECHO_N "(cached) $ECHO_C" >&6
31239 if test $ol_cv_bdb_major = 0 ; then
31240 cat >conftest.$ac_ext <<_ACEOF
31243 cat confdefs.h >>conftest.$ac_ext
31244 cat >>conftest.$ac_ext <<_ACEOF
31245 /* end confdefs.h. */
31248 #ifndef DB_VERSION_MAJOR
31249 # define DB_VERSION_MAJOR 1
31251 #if DB_VERSION_MAJOR == 4
31256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31257 $EGREP "__db_version" >/dev/null 2>&1; then
31265 if test $ol_cv_bdb_major = 0 ; then
31266 cat >conftest.$ac_ext <<_ACEOF
31269 cat confdefs.h >>conftest.$ac_ext
31270 cat >>conftest.$ac_ext <<_ACEOF
31271 /* end confdefs.h. */
31274 #ifndef DB_VERSION_MAJOR
31275 # define DB_VERSION_MAJOR 1
31277 #if DB_VERSION_MAJOR == 3
31282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31283 $EGREP "__db_version" >/dev/null 2>&1; then
31291 if test $ol_cv_bdb_major = 0 ; then
31292 cat >conftest.$ac_ext <<_ACEOF
31295 cat confdefs.h >>conftest.$ac_ext
31296 cat >>conftest.$ac_ext <<_ACEOF
31297 /* end confdefs.h. */
31300 #ifndef DB_VERSION_MAJOR
31301 # define DB_VERSION_MAJOR 1
31303 #if DB_VERSION_MAJOR == 2
31308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31309 $EGREP "__db_version" >/dev/null 2>&1; then
31317 if test $ol_cv_bdb_major = 0 ; then
31318 cat >conftest.$ac_ext <<_ACEOF
31321 cat confdefs.h >>conftest.$ac_ext
31322 cat >>conftest.$ac_ext <<_ACEOF
31323 /* end confdefs.h. */
31326 #ifndef DB_VERSION_MAJOR
31327 # define DB_VERSION_MAJOR 1
31329 #if DB_VERSION_MAJOR == 1
31334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31335 $EGREP "__db_version" >/dev/null 2>&1; then
31344 if test $ol_cv_bdb_major = 0 ; then
31345 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31346 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31347 { (exit 1); exit 1; }; }
31351 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31352 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31354 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31355 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31356 if test "${ol_cv_bdb_minor+set}" = set; then
31357 echo $ECHO_N "(cached) $ECHO_C" >&6
31361 if test $ol_cv_bdb_minor = 0 ; then
31362 cat >conftest.$ac_ext <<_ACEOF
31365 cat confdefs.h >>conftest.$ac_ext
31366 cat >>conftest.$ac_ext <<_ACEOF
31367 /* end confdefs.h. */
31370 #ifndef DB_VERSION_MINOR
31371 # define DB_VERSION_MINOR 0
31373 #if DB_VERSION_MINOR == 9
31378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31379 $EGREP "__db_version" >/dev/null 2>&1; then
31387 if test $ol_cv_bdb_minor = 0 ; then
31388 cat >conftest.$ac_ext <<_ACEOF
31391 cat confdefs.h >>conftest.$ac_ext
31392 cat >>conftest.$ac_ext <<_ACEOF
31393 /* end confdefs.h. */
31396 #ifndef DB_VERSION_MINOR
31397 # define DB_VERSION_MINOR 0
31399 #if DB_VERSION_MINOR == 8
31404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31405 $EGREP "__db_version" >/dev/null 2>&1; then
31413 if test $ol_cv_bdb_minor = 0 ; then
31414 cat >conftest.$ac_ext <<_ACEOF
31417 cat confdefs.h >>conftest.$ac_ext
31418 cat >>conftest.$ac_ext <<_ACEOF
31419 /* end confdefs.h. */
31422 #ifndef DB_VERSION_MINOR
31423 # define DB_VERSION_MINOR 0
31425 #if DB_VERSION_MINOR == 7
31430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31431 $EGREP "__db_version" >/dev/null 2>&1; then
31439 if test $ol_cv_bdb_minor = 0 ; then
31440 cat >conftest.$ac_ext <<_ACEOF
31443 cat confdefs.h >>conftest.$ac_ext
31444 cat >>conftest.$ac_ext <<_ACEOF
31445 /* end confdefs.h. */
31448 #ifndef DB_VERSION_MINOR
31449 # define DB_VERSION_MINOR 0
31451 #if DB_VERSION_MINOR == 6
31456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31457 $EGREP "__db_version" >/dev/null 2>&1; then
31465 if test $ol_cv_bdb_minor = 0 ; then
31466 cat >conftest.$ac_ext <<_ACEOF
31469 cat confdefs.h >>conftest.$ac_ext
31470 cat >>conftest.$ac_ext <<_ACEOF
31471 /* end confdefs.h. */
31474 #ifndef DB_VERSION_MINOR
31475 # define DB_VERSION_MINOR 0
31477 #if DB_VERSION_MINOR == 5
31482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31483 $EGREP "__db_version" >/dev/null 2>&1; then
31491 if test $ol_cv_bdb_minor = 0 ; then
31492 cat >conftest.$ac_ext <<_ACEOF
31495 cat confdefs.h >>conftest.$ac_ext
31496 cat >>conftest.$ac_ext <<_ACEOF
31497 /* end confdefs.h. */
31500 #ifndef DB_VERSION_MINOR
31501 # define DB_VERSION_MINOR 0
31503 #if DB_VERSION_MINOR == 4
31508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31509 $EGREP "__db_version" >/dev/null 2>&1; then
31517 if test $ol_cv_bdb_minor = 0 ; then
31518 cat >conftest.$ac_ext <<_ACEOF
31521 cat confdefs.h >>conftest.$ac_ext
31522 cat >>conftest.$ac_ext <<_ACEOF
31523 /* end confdefs.h. */
31526 #ifndef DB_VERSION_MINOR
31527 # define DB_VERSION_MINOR 0
31529 #if DB_VERSION_MINOR == 3
31534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31535 $EGREP "__db_version" >/dev/null 2>&1; then
31543 if test $ol_cv_bdb_minor = 0 ; then
31544 cat >conftest.$ac_ext <<_ACEOF
31547 cat confdefs.h >>conftest.$ac_ext
31548 cat >>conftest.$ac_ext <<_ACEOF
31549 /* end confdefs.h. */
31552 #ifndef DB_VERSION_MINOR
31553 # define DB_VERSION_MINOR 0
31555 #if DB_VERSION_MINOR == 2
31560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31561 $EGREP "__db_version" >/dev/null 2>&1; then
31569 if test $ol_cv_bdb_minor = 0 ; then
31570 cat >conftest.$ac_ext <<_ACEOF
31573 cat confdefs.h >>conftest.$ac_ext
31574 cat >>conftest.$ac_ext <<_ACEOF
31575 /* end confdefs.h. */
31578 #ifndef DB_VERSION_MINOR
31579 # define DB_VERSION_MINOR 0
31581 #if DB_VERSION_MINOR == 1
31586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31587 $EGREP "__db_version" >/dev/null 2>&1; then
31597 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31598 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31600 if test $ol_cv_bdb_major = 4 ; then
31601 if test $ol_cv_bdb_minor = 4 ; then
31602 if test $ol_cv_lib_db = no ; then
31603 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31604 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31605 if test "${ol_cv_db_db44+set}" = set; then
31606 echo $ECHO_N "(cached) $ECHO_C" >&6
31611 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31613 cat >conftest.$ac_ext <<_ACEOF
31616 cat confdefs.h >>conftest.$ac_ext
31617 cat >>conftest.$ac_ext <<_ACEOF
31618 /* end confdefs.h. */
31620 #ifdef HAVE_DB_185_H
31621 # include <db_185.h>
31626 #ifndef DB_VERSION_MAJOR
31627 # define DB_VERSION_MAJOR 1
31631 #define NULL ((void*)0)
31638 #if DB_VERSION_MAJOR > 1
31641 int major, minor, patch;
31643 version = db_version( &major, &minor, &patch );
31645 if( major != DB_VERSION_MAJOR ||
31646 minor < DB_VERSION_MINOR )
31648 printf("Berkeley DB version mismatch\n"
31649 "\theader: %s\n\tlibrary: %s\n",
31650 DB_VERSION_STRING, version);
31656 #if DB_VERSION_MAJOR > 2
31657 db_env_create( NULL, 0 );
31658 #elif DB_VERSION_MAJOR > 1
31659 db_appexit( NULL );
31661 (void) dbopen( NULL, 0, 0, 0, NULL);
31668 rm -f conftest.$ac_objext conftest$ac_exeext
31669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31670 (eval $ac_link) 2>conftest.er1
31672 grep -v '^ *+' conftest.er1 >conftest.err
31674 cat conftest.err >&5
31675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31676 (exit $ac_status); } &&
31677 { ac_try='test -z "$ac_c_werror_flag"
31678 || test ! -s conftest.err'
31679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31680 (eval $ac_try) 2>&5
31682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683 (exit $ac_status); }; } &&
31684 { ac_try='test -s conftest$ac_exeext'
31685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31686 (eval $ac_try) 2>&5
31688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31689 (exit $ac_status); }; }; then
31692 echo "$as_me: failed program was:" >&5
31693 sed 's/^/| /' conftest.$ac_ext >&5
31697 rm -f conftest.err conftest.$ac_objext \
31698 conftest$ac_exeext conftest.$ac_ext
31703 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31704 echo "${ECHO_T}$ol_cv_db_db44" >&6
31706 if test $ol_cv_db_db44 = yes ; then
31707 ol_cv_lib_db=-ldb44
31711 if test $ol_cv_lib_db = no ; then
31712 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31713 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31714 if test "${ol_cv_db_db_44+set}" = set; then
31715 echo $ECHO_N "(cached) $ECHO_C" >&6
31720 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31722 cat >conftest.$ac_ext <<_ACEOF
31725 cat confdefs.h >>conftest.$ac_ext
31726 cat >>conftest.$ac_ext <<_ACEOF
31727 /* end confdefs.h. */
31729 #ifdef HAVE_DB_185_H
31730 # include <db_185.h>
31735 #ifndef DB_VERSION_MAJOR
31736 # define DB_VERSION_MAJOR 1
31740 #define NULL ((void*)0)
31747 #if DB_VERSION_MAJOR > 1
31750 int major, minor, patch;
31752 version = db_version( &major, &minor, &patch );
31754 if( major != DB_VERSION_MAJOR ||
31755 minor < DB_VERSION_MINOR )
31757 printf("Berkeley DB version mismatch\n"
31758 "\theader: %s\n\tlibrary: %s\n",
31759 DB_VERSION_STRING, version);
31765 #if DB_VERSION_MAJOR > 2
31766 db_env_create( NULL, 0 );
31767 #elif DB_VERSION_MAJOR > 1
31768 db_appexit( NULL );
31770 (void) dbopen( NULL, 0, 0, 0, NULL);
31777 rm -f conftest.$ac_objext conftest$ac_exeext
31778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31779 (eval $ac_link) 2>conftest.er1
31781 grep -v '^ *+' conftest.er1 >conftest.err
31783 cat conftest.err >&5
31784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785 (exit $ac_status); } &&
31786 { ac_try='test -z "$ac_c_werror_flag"
31787 || test ! -s conftest.err'
31788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31789 (eval $ac_try) 2>&5
31791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31792 (exit $ac_status); }; } &&
31793 { ac_try='test -s conftest$ac_exeext'
31794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31795 (eval $ac_try) 2>&5
31797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798 (exit $ac_status); }; }; then
31801 echo "$as_me: failed program was:" >&5
31802 sed 's/^/| /' conftest.$ac_ext >&5
31806 rm -f conftest.err conftest.$ac_objext \
31807 conftest$ac_exeext conftest.$ac_ext
31812 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31813 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31815 if test $ol_cv_db_db_44 = yes ; then
31816 ol_cv_lib_db=-ldb-44
31820 if test $ol_cv_lib_db = no ; then
31821 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31822 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31823 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31824 echo $ECHO_N "(cached) $ECHO_C" >&6
31829 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31831 cat >conftest.$ac_ext <<_ACEOF
31834 cat confdefs.h >>conftest.$ac_ext
31835 cat >>conftest.$ac_ext <<_ACEOF
31836 /* end confdefs.h. */
31838 #ifdef HAVE_DB_185_H
31839 # include <db_185.h>
31844 #ifndef DB_VERSION_MAJOR
31845 # define DB_VERSION_MAJOR 1
31849 #define NULL ((void*)0)
31856 #if DB_VERSION_MAJOR > 1
31859 int major, minor, patch;
31861 version = db_version( &major, &minor, &patch );
31863 if( major != DB_VERSION_MAJOR ||
31864 minor < DB_VERSION_MINOR )
31866 printf("Berkeley DB version mismatch\n"
31867 "\theader: %s\n\tlibrary: %s\n",
31868 DB_VERSION_STRING, version);
31874 #if DB_VERSION_MAJOR > 2
31875 db_env_create( NULL, 0 );
31876 #elif DB_VERSION_MAJOR > 1
31877 db_appexit( NULL );
31879 (void) dbopen( NULL, 0, 0, 0, NULL);
31886 rm -f conftest.$ac_objext conftest$ac_exeext
31887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31888 (eval $ac_link) 2>conftest.er1
31890 grep -v '^ *+' conftest.er1 >conftest.err
31892 cat conftest.err >&5
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); } &&
31895 { ac_try='test -z "$ac_c_werror_flag"
31896 || test ! -s conftest.err'
31897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31898 (eval $ac_try) 2>&5
31900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901 (exit $ac_status); }; } &&
31902 { ac_try='test -s conftest$ac_exeext'
31903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31904 (eval $ac_try) 2>&5
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); }; }; then
31908 ol_cv_db_db_4_dot_4=yes
31910 echo "$as_me: failed program was:" >&5
31911 sed 's/^/| /' conftest.$ac_ext >&5
31913 ol_cv_db_db_4_dot_4=no
31915 rm -f conftest.err conftest.$ac_objext \
31916 conftest$ac_exeext conftest.$ac_ext
31921 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
31922 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
31924 if test $ol_cv_db_db_4_dot_4 = yes ; then
31925 ol_cv_lib_db=-ldb-4.4
31929 if test $ol_cv_lib_db = no ; then
31930 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
31931 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
31932 if test "${ol_cv_db_db_4_4+set}" = set; then
31933 echo $ECHO_N "(cached) $ECHO_C" >&6
31938 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31940 cat >conftest.$ac_ext <<_ACEOF
31943 cat confdefs.h >>conftest.$ac_ext
31944 cat >>conftest.$ac_ext <<_ACEOF
31945 /* end confdefs.h. */
31947 #ifdef HAVE_DB_185_H
31948 # include <db_185.h>
31953 #ifndef DB_VERSION_MAJOR
31954 # define DB_VERSION_MAJOR 1
31958 #define NULL ((void*)0)
31965 #if DB_VERSION_MAJOR > 1
31968 int major, minor, patch;
31970 version = db_version( &major, &minor, &patch );
31972 if( major != DB_VERSION_MAJOR ||
31973 minor < DB_VERSION_MINOR )
31975 printf("Berkeley DB version mismatch\n"
31976 "\theader: %s\n\tlibrary: %s\n",
31977 DB_VERSION_STRING, version);
31983 #if DB_VERSION_MAJOR > 2
31984 db_env_create( NULL, 0 );
31985 #elif DB_VERSION_MAJOR > 1
31986 db_appexit( NULL );
31988 (void) dbopen( NULL, 0, 0, 0, NULL);
31995 rm -f conftest.$ac_objext conftest$ac_exeext
31996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31997 (eval $ac_link) 2>conftest.er1
31999 grep -v '^ *+' conftest.er1 >conftest.err
32001 cat conftest.err >&5
32002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003 (exit $ac_status); } &&
32004 { ac_try='test -z "$ac_c_werror_flag"
32005 || test ! -s conftest.err'
32006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32007 (eval $ac_try) 2>&5
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); }; } &&
32011 { ac_try='test -s conftest$ac_exeext'
32012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32013 (eval $ac_try) 2>&5
32015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); }; }; then
32017 ol_cv_db_db_4_4=yes
32019 echo "$as_me: failed program was:" >&5
32020 sed 's/^/| /' conftest.$ac_ext >&5
32024 rm -f conftest.err conftest.$ac_objext \
32025 conftest$ac_exeext conftest.$ac_ext
32030 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32031 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32033 if test $ol_cv_db_db_4_4 = yes ; then
32034 ol_cv_lib_db=-ldb-4-4
32038 elif test $ol_cv_bdb_minor = 3 ; then
32039 if test $ol_cv_lib_db = no ; then
32040 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32041 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32042 if test "${ol_cv_db_db43+set}" = set; then
32043 echo $ECHO_N "(cached) $ECHO_C" >&6
32048 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32050 cat >conftest.$ac_ext <<_ACEOF
32053 cat confdefs.h >>conftest.$ac_ext
32054 cat >>conftest.$ac_ext <<_ACEOF
32055 /* end confdefs.h. */
32057 #ifdef HAVE_DB_185_H
32058 # include <db_185.h>
32063 #ifndef DB_VERSION_MAJOR
32064 # define DB_VERSION_MAJOR 1
32068 #define NULL ((void*)0)
32075 #if DB_VERSION_MAJOR > 1
32078 int major, minor, patch;
32080 version = db_version( &major, &minor, &patch );
32082 if( major != DB_VERSION_MAJOR ||
32083 minor < DB_VERSION_MINOR )
32085 printf("Berkeley DB version mismatch\n"
32086 "\theader: %s\n\tlibrary: %s\n",
32087 DB_VERSION_STRING, version);
32093 #if DB_VERSION_MAJOR > 2
32094 db_env_create( NULL, 0 );
32095 #elif DB_VERSION_MAJOR > 1
32096 db_appexit( NULL );
32098 (void) dbopen( NULL, 0, 0, 0, NULL);
32105 rm -f conftest.$ac_objext conftest$ac_exeext
32106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32107 (eval $ac_link) 2>conftest.er1
32109 grep -v '^ *+' conftest.er1 >conftest.err
32111 cat conftest.err >&5
32112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113 (exit $ac_status); } &&
32114 { ac_try='test -z "$ac_c_werror_flag"
32115 || test ! -s conftest.err'
32116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32117 (eval $ac_try) 2>&5
32119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); }; } &&
32121 { ac_try='test -s conftest$ac_exeext'
32122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32123 (eval $ac_try) 2>&5
32125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126 (exit $ac_status); }; }; then
32129 echo "$as_me: failed program was:" >&5
32130 sed 's/^/| /' conftest.$ac_ext >&5
32134 rm -f conftest.err conftest.$ac_objext \
32135 conftest$ac_exeext conftest.$ac_ext
32140 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32141 echo "${ECHO_T}$ol_cv_db_db43" >&6
32143 if test $ol_cv_db_db43 = yes ; then
32144 ol_cv_lib_db=-ldb43
32148 if test $ol_cv_lib_db = no ; then
32149 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32150 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32151 if test "${ol_cv_db_db_43+set}" = set; then
32152 echo $ECHO_N "(cached) $ECHO_C" >&6
32157 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32159 cat >conftest.$ac_ext <<_ACEOF
32162 cat confdefs.h >>conftest.$ac_ext
32163 cat >>conftest.$ac_ext <<_ACEOF
32164 /* end confdefs.h. */
32166 #ifdef HAVE_DB_185_H
32167 # include <db_185.h>
32172 #ifndef DB_VERSION_MAJOR
32173 # define DB_VERSION_MAJOR 1
32177 #define NULL ((void*)0)
32184 #if DB_VERSION_MAJOR > 1
32187 int major, minor, patch;
32189 version = db_version( &major, &minor, &patch );
32191 if( major != DB_VERSION_MAJOR ||
32192 minor < DB_VERSION_MINOR )
32194 printf("Berkeley DB version mismatch\n"
32195 "\theader: %s\n\tlibrary: %s\n",
32196 DB_VERSION_STRING, version);
32202 #if DB_VERSION_MAJOR > 2
32203 db_env_create( NULL, 0 );
32204 #elif DB_VERSION_MAJOR > 1
32205 db_appexit( NULL );
32207 (void) dbopen( NULL, 0, 0, 0, NULL);
32214 rm -f conftest.$ac_objext conftest$ac_exeext
32215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32216 (eval $ac_link) 2>conftest.er1
32218 grep -v '^ *+' conftest.er1 >conftest.err
32220 cat conftest.err >&5
32221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222 (exit $ac_status); } &&
32223 { ac_try='test -z "$ac_c_werror_flag"
32224 || test ! -s conftest.err'
32225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32226 (eval $ac_try) 2>&5
32228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32229 (exit $ac_status); }; } &&
32230 { ac_try='test -s conftest$ac_exeext'
32231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32232 (eval $ac_try) 2>&5
32234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32235 (exit $ac_status); }; }; then
32238 echo "$as_me: failed program was:" >&5
32239 sed 's/^/| /' conftest.$ac_ext >&5
32243 rm -f conftest.err conftest.$ac_objext \
32244 conftest$ac_exeext conftest.$ac_ext
32249 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32250 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32252 if test $ol_cv_db_db_43 = yes ; then
32253 ol_cv_lib_db=-ldb-43
32257 if test $ol_cv_lib_db = no ; then
32258 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32259 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32260 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32261 echo $ECHO_N "(cached) $ECHO_C" >&6
32266 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32268 cat >conftest.$ac_ext <<_ACEOF
32271 cat confdefs.h >>conftest.$ac_ext
32272 cat >>conftest.$ac_ext <<_ACEOF
32273 /* end confdefs.h. */
32275 #ifdef HAVE_DB_185_H
32276 # include <db_185.h>
32281 #ifndef DB_VERSION_MAJOR
32282 # define DB_VERSION_MAJOR 1
32286 #define NULL ((void*)0)
32293 #if DB_VERSION_MAJOR > 1
32296 int major, minor, patch;
32298 version = db_version( &major, &minor, &patch );
32300 if( major != DB_VERSION_MAJOR ||
32301 minor < DB_VERSION_MINOR )
32303 printf("Berkeley DB version mismatch\n"
32304 "\theader: %s\n\tlibrary: %s\n",
32305 DB_VERSION_STRING, version);
32311 #if DB_VERSION_MAJOR > 2
32312 db_env_create( NULL, 0 );
32313 #elif DB_VERSION_MAJOR > 1
32314 db_appexit( NULL );
32316 (void) dbopen( NULL, 0, 0, 0, NULL);
32323 rm -f conftest.$ac_objext conftest$ac_exeext
32324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32325 (eval $ac_link) 2>conftest.er1
32327 grep -v '^ *+' conftest.er1 >conftest.err
32329 cat conftest.err >&5
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); } &&
32332 { ac_try='test -z "$ac_c_werror_flag"
32333 || test ! -s conftest.err'
32334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32335 (eval $ac_try) 2>&5
32337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32338 (exit $ac_status); }; } &&
32339 { ac_try='test -s conftest$ac_exeext'
32340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32341 (eval $ac_try) 2>&5
32343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344 (exit $ac_status); }; }; then
32345 ol_cv_db_db_4_dot_3=yes
32347 echo "$as_me: failed program was:" >&5
32348 sed 's/^/| /' conftest.$ac_ext >&5
32350 ol_cv_db_db_4_dot_3=no
32352 rm -f conftest.err conftest.$ac_objext \
32353 conftest$ac_exeext conftest.$ac_ext
32358 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32359 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32361 if test $ol_cv_db_db_4_dot_3 = yes ; then
32362 ol_cv_lib_db=-ldb-4.3
32366 if test $ol_cv_lib_db = no ; then
32367 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32368 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32369 if test "${ol_cv_db_db_4_3+set}" = set; then
32370 echo $ECHO_N "(cached) $ECHO_C" >&6
32375 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32377 cat >conftest.$ac_ext <<_ACEOF
32380 cat confdefs.h >>conftest.$ac_ext
32381 cat >>conftest.$ac_ext <<_ACEOF
32382 /* end confdefs.h. */
32384 #ifdef HAVE_DB_185_H
32385 # include <db_185.h>
32390 #ifndef DB_VERSION_MAJOR
32391 # define DB_VERSION_MAJOR 1
32395 #define NULL ((void*)0)
32402 #if DB_VERSION_MAJOR > 1
32405 int major, minor, patch;
32407 version = db_version( &major, &minor, &patch );
32409 if( major != DB_VERSION_MAJOR ||
32410 minor < DB_VERSION_MINOR )
32412 printf("Berkeley DB version mismatch\n"
32413 "\theader: %s\n\tlibrary: %s\n",
32414 DB_VERSION_STRING, version);
32420 #if DB_VERSION_MAJOR > 2
32421 db_env_create( NULL, 0 );
32422 #elif DB_VERSION_MAJOR > 1
32423 db_appexit( NULL );
32425 (void) dbopen( NULL, 0, 0, 0, NULL);
32432 rm -f conftest.$ac_objext conftest$ac_exeext
32433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32434 (eval $ac_link) 2>conftest.er1
32436 grep -v '^ *+' conftest.er1 >conftest.err
32438 cat conftest.err >&5
32439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440 (exit $ac_status); } &&
32441 { ac_try='test -z "$ac_c_werror_flag"
32442 || test ! -s conftest.err'
32443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32444 (eval $ac_try) 2>&5
32446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32447 (exit $ac_status); }; } &&
32448 { ac_try='test -s conftest$ac_exeext'
32449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32450 (eval $ac_try) 2>&5
32452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453 (exit $ac_status); }; }; then
32454 ol_cv_db_db_4_3=yes
32456 echo "$as_me: failed program was:" >&5
32457 sed 's/^/| /' conftest.$ac_ext >&5
32461 rm -f conftest.err conftest.$ac_objext \
32462 conftest$ac_exeext conftest.$ac_ext
32467 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32468 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32470 if test $ol_cv_db_db_4_3 = yes ; then
32471 ol_cv_lib_db=-ldb-4-3
32475 elif test $ol_cv_bdb_minor = 2 ; then
32476 if test $ol_cv_lib_db = no ; then
32477 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32478 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32479 if test "${ol_cv_db_db42+set}" = set; then
32480 echo $ECHO_N "(cached) $ECHO_C" >&6
32485 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32487 cat >conftest.$ac_ext <<_ACEOF
32490 cat confdefs.h >>conftest.$ac_ext
32491 cat >>conftest.$ac_ext <<_ACEOF
32492 /* end confdefs.h. */
32494 #ifdef HAVE_DB_185_H
32495 # include <db_185.h>
32500 #ifndef DB_VERSION_MAJOR
32501 # define DB_VERSION_MAJOR 1
32505 #define NULL ((void*)0)
32512 #if DB_VERSION_MAJOR > 1
32515 int major, minor, patch;
32517 version = db_version( &major, &minor, &patch );
32519 if( major != DB_VERSION_MAJOR ||
32520 minor < DB_VERSION_MINOR )
32522 printf("Berkeley DB version mismatch\n"
32523 "\theader: %s\n\tlibrary: %s\n",
32524 DB_VERSION_STRING, version);
32530 #if DB_VERSION_MAJOR > 2
32531 db_env_create( NULL, 0 );
32532 #elif DB_VERSION_MAJOR > 1
32533 db_appexit( NULL );
32535 (void) dbopen( NULL, 0, 0, 0, NULL);
32542 rm -f conftest.$ac_objext conftest$ac_exeext
32543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32544 (eval $ac_link) 2>conftest.er1
32546 grep -v '^ *+' conftest.er1 >conftest.err
32548 cat conftest.err >&5
32549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 (exit $ac_status); } &&
32551 { ac_try='test -z "$ac_c_werror_flag"
32552 || test ! -s conftest.err'
32553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32554 (eval $ac_try) 2>&5
32556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557 (exit $ac_status); }; } &&
32558 { ac_try='test -s conftest$ac_exeext'
32559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32560 (eval $ac_try) 2>&5
32562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 (exit $ac_status); }; }; then
32566 echo "$as_me: failed program was:" >&5
32567 sed 's/^/| /' conftest.$ac_ext >&5
32571 rm -f conftest.err conftest.$ac_objext \
32572 conftest$ac_exeext conftest.$ac_ext
32577 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32578 echo "${ECHO_T}$ol_cv_db_db42" >&6
32580 if test $ol_cv_db_db42 = yes ; then
32581 ol_cv_lib_db=-ldb42
32585 if test $ol_cv_lib_db = no ; then
32586 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32587 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32588 if test "${ol_cv_db_db_42+set}" = set; then
32589 echo $ECHO_N "(cached) $ECHO_C" >&6
32594 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32596 cat >conftest.$ac_ext <<_ACEOF
32599 cat confdefs.h >>conftest.$ac_ext
32600 cat >>conftest.$ac_ext <<_ACEOF
32601 /* end confdefs.h. */
32603 #ifdef HAVE_DB_185_H
32604 # include <db_185.h>
32609 #ifndef DB_VERSION_MAJOR
32610 # define DB_VERSION_MAJOR 1
32614 #define NULL ((void*)0)
32621 #if DB_VERSION_MAJOR > 1
32624 int major, minor, patch;
32626 version = db_version( &major, &minor, &patch );
32628 if( major != DB_VERSION_MAJOR ||
32629 minor < DB_VERSION_MINOR )
32631 printf("Berkeley DB version mismatch\n"
32632 "\theader: %s\n\tlibrary: %s\n",
32633 DB_VERSION_STRING, version);
32639 #if DB_VERSION_MAJOR > 2
32640 db_env_create( NULL, 0 );
32641 #elif DB_VERSION_MAJOR > 1
32642 db_appexit( NULL );
32644 (void) dbopen( NULL, 0, 0, 0, NULL);
32651 rm -f conftest.$ac_objext conftest$ac_exeext
32652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32653 (eval $ac_link) 2>conftest.er1
32655 grep -v '^ *+' conftest.er1 >conftest.err
32657 cat conftest.err >&5
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); } &&
32660 { ac_try='test -z "$ac_c_werror_flag"
32661 || test ! -s conftest.err'
32662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32663 (eval $ac_try) 2>&5
32665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666 (exit $ac_status); }; } &&
32667 { ac_try='test -s conftest$ac_exeext'
32668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32669 (eval $ac_try) 2>&5
32671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32672 (exit $ac_status); }; }; then
32675 echo "$as_me: failed program was:" >&5
32676 sed 's/^/| /' conftest.$ac_ext >&5
32680 rm -f conftest.err conftest.$ac_objext \
32681 conftest$ac_exeext conftest.$ac_ext
32686 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32687 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32689 if test $ol_cv_db_db_42 = yes ; then
32690 ol_cv_lib_db=-ldb-42
32694 if test $ol_cv_lib_db = no ; then
32695 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32696 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32697 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32698 echo $ECHO_N "(cached) $ECHO_C" >&6
32703 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32705 cat >conftest.$ac_ext <<_ACEOF
32708 cat confdefs.h >>conftest.$ac_ext
32709 cat >>conftest.$ac_ext <<_ACEOF
32710 /* end confdefs.h. */
32712 #ifdef HAVE_DB_185_H
32713 # include <db_185.h>
32718 #ifndef DB_VERSION_MAJOR
32719 # define DB_VERSION_MAJOR 1
32723 #define NULL ((void*)0)
32730 #if DB_VERSION_MAJOR > 1
32733 int major, minor, patch;
32735 version = db_version( &major, &minor, &patch );
32737 if( major != DB_VERSION_MAJOR ||
32738 minor < DB_VERSION_MINOR )
32740 printf("Berkeley DB version mismatch\n"
32741 "\theader: %s\n\tlibrary: %s\n",
32742 DB_VERSION_STRING, version);
32748 #if DB_VERSION_MAJOR > 2
32749 db_env_create( NULL, 0 );
32750 #elif DB_VERSION_MAJOR > 1
32751 db_appexit( NULL );
32753 (void) dbopen( NULL, 0, 0, 0, NULL);
32760 rm -f conftest.$ac_objext conftest$ac_exeext
32761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32762 (eval $ac_link) 2>conftest.er1
32764 grep -v '^ *+' conftest.er1 >conftest.err
32766 cat conftest.err >&5
32767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768 (exit $ac_status); } &&
32769 { ac_try='test -z "$ac_c_werror_flag"
32770 || test ! -s conftest.err'
32771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32772 (eval $ac_try) 2>&5
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; } &&
32776 { ac_try='test -s conftest$ac_exeext'
32777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778 (eval $ac_try) 2>&5
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; }; then
32782 ol_cv_db_db_4_dot_2=yes
32784 echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32787 ol_cv_db_db_4_dot_2=no
32789 rm -f conftest.err conftest.$ac_objext \
32790 conftest$ac_exeext conftest.$ac_ext
32795 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32796 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32798 if test $ol_cv_db_db_4_dot_2 = yes ; then
32799 ol_cv_lib_db=-ldb-4.2
32803 if test $ol_cv_lib_db = no ; then
32804 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32805 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32806 if test "${ol_cv_db_db_4_2+set}" = set; then
32807 echo $ECHO_N "(cached) $ECHO_C" >&6
32812 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32814 cat >conftest.$ac_ext <<_ACEOF
32817 cat confdefs.h >>conftest.$ac_ext
32818 cat >>conftest.$ac_ext <<_ACEOF
32819 /* end confdefs.h. */
32821 #ifdef HAVE_DB_185_H
32822 # include <db_185.h>
32827 #ifndef DB_VERSION_MAJOR
32828 # define DB_VERSION_MAJOR 1
32832 #define NULL ((void*)0)
32839 #if DB_VERSION_MAJOR > 1
32842 int major, minor, patch;
32844 version = db_version( &major, &minor, &patch );
32846 if( major != DB_VERSION_MAJOR ||
32847 minor < DB_VERSION_MINOR )
32849 printf("Berkeley DB version mismatch\n"
32850 "\theader: %s\n\tlibrary: %s\n",
32851 DB_VERSION_STRING, version);
32857 #if DB_VERSION_MAJOR > 2
32858 db_env_create( NULL, 0 );
32859 #elif DB_VERSION_MAJOR > 1
32860 db_appexit( NULL );
32862 (void) dbopen( NULL, 0, 0, 0, NULL);
32869 rm -f conftest.$ac_objext conftest$ac_exeext
32870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32871 (eval $ac_link) 2>conftest.er1
32873 grep -v '^ *+' conftest.er1 >conftest.err
32875 cat conftest.err >&5
32876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877 (exit $ac_status); } &&
32878 { ac_try='test -z "$ac_c_werror_flag"
32879 || test ! -s conftest.err'
32880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32881 (eval $ac_try) 2>&5
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); }; } &&
32885 { ac_try='test -s conftest$ac_exeext'
32886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32887 (eval $ac_try) 2>&5
32889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890 (exit $ac_status); }; }; then
32891 ol_cv_db_db_4_2=yes
32893 echo "$as_me: failed program was:" >&5
32894 sed 's/^/| /' conftest.$ac_ext >&5
32898 rm -f conftest.err conftest.$ac_objext \
32899 conftest$ac_exeext conftest.$ac_ext
32904 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32905 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
32907 if test $ol_cv_db_db_4_2 = yes ; then
32908 ol_cv_lib_db=-ldb-4-2
32912 elif test $ol_cv_bdb_minor = 1 ; then
32913 if test $ol_cv_lib_db = no ; then
32914 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32915 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
32916 if test "${ol_cv_db_db41+set}" = set; then
32917 echo $ECHO_N "(cached) $ECHO_C" >&6
32922 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32924 cat >conftest.$ac_ext <<_ACEOF
32927 cat confdefs.h >>conftest.$ac_ext
32928 cat >>conftest.$ac_ext <<_ACEOF
32929 /* end confdefs.h. */
32931 #ifdef HAVE_DB_185_H
32932 # include <db_185.h>
32937 #ifndef DB_VERSION_MAJOR
32938 # define DB_VERSION_MAJOR 1
32942 #define NULL ((void*)0)
32949 #if DB_VERSION_MAJOR > 1
32952 int major, minor, patch;
32954 version = db_version( &major, &minor, &patch );
32956 if( major != DB_VERSION_MAJOR ||
32957 minor < DB_VERSION_MINOR )
32959 printf("Berkeley DB version mismatch\n"
32960 "\theader: %s\n\tlibrary: %s\n",
32961 DB_VERSION_STRING, version);
32967 #if DB_VERSION_MAJOR > 2
32968 db_env_create( NULL, 0 );
32969 #elif DB_VERSION_MAJOR > 1
32970 db_appexit( NULL );
32972 (void) dbopen( NULL, 0, 0, 0, NULL);
32979 rm -f conftest.$ac_objext conftest$ac_exeext
32980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32981 (eval $ac_link) 2>conftest.er1
32983 grep -v '^ *+' conftest.er1 >conftest.err
32985 cat conftest.err >&5
32986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32987 (exit $ac_status); } &&
32988 { ac_try='test -z "$ac_c_werror_flag"
32989 || test ! -s conftest.err'
32990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32991 (eval $ac_try) 2>&5
32993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994 (exit $ac_status); }; } &&
32995 { ac_try='test -s conftest$ac_exeext'
32996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32997 (eval $ac_try) 2>&5
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); }; }; then
33003 echo "$as_me: failed program was:" >&5
33004 sed 's/^/| /' conftest.$ac_ext >&5
33008 rm -f conftest.err conftest.$ac_objext \
33009 conftest$ac_exeext conftest.$ac_ext
33014 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33015 echo "${ECHO_T}$ol_cv_db_db41" >&6
33017 if test $ol_cv_db_db41 = yes ; then
33018 ol_cv_lib_db=-ldb41
33022 if test $ol_cv_lib_db = no ; then
33023 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33024 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33025 if test "${ol_cv_db_db_41+set}" = set; then
33026 echo $ECHO_N "(cached) $ECHO_C" >&6
33031 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33033 cat >conftest.$ac_ext <<_ACEOF
33036 cat confdefs.h >>conftest.$ac_ext
33037 cat >>conftest.$ac_ext <<_ACEOF
33038 /* end confdefs.h. */
33040 #ifdef HAVE_DB_185_H
33041 # include <db_185.h>
33046 #ifndef DB_VERSION_MAJOR
33047 # define DB_VERSION_MAJOR 1
33051 #define NULL ((void*)0)
33058 #if DB_VERSION_MAJOR > 1
33061 int major, minor, patch;
33063 version = db_version( &major, &minor, &patch );
33065 if( major != DB_VERSION_MAJOR ||
33066 minor < DB_VERSION_MINOR )
33068 printf("Berkeley DB version mismatch\n"
33069 "\theader: %s\n\tlibrary: %s\n",
33070 DB_VERSION_STRING, version);
33076 #if DB_VERSION_MAJOR > 2
33077 db_env_create( NULL, 0 );
33078 #elif DB_VERSION_MAJOR > 1
33079 db_appexit( NULL );
33081 (void) dbopen( NULL, 0, 0, 0, NULL);
33088 rm -f conftest.$ac_objext conftest$ac_exeext
33089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33090 (eval $ac_link) 2>conftest.er1
33092 grep -v '^ *+' conftest.er1 >conftest.err
33094 cat conftest.err >&5
33095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096 (exit $ac_status); } &&
33097 { ac_try='test -z "$ac_c_werror_flag"
33098 || test ! -s conftest.err'
33099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33100 (eval $ac_try) 2>&5
33102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 (exit $ac_status); }; } &&
33104 { ac_try='test -s conftest$ac_exeext'
33105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33106 (eval $ac_try) 2>&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); }; }; then
33112 echo "$as_me: failed program was:" >&5
33113 sed 's/^/| /' conftest.$ac_ext >&5
33117 rm -f conftest.err conftest.$ac_objext \
33118 conftest$ac_exeext conftest.$ac_ext
33123 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33124 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33126 if test $ol_cv_db_db_41 = yes ; then
33127 ol_cv_lib_db=-ldb-41
33131 if test $ol_cv_lib_db = no ; then
33132 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33133 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33134 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33135 echo $ECHO_N "(cached) $ECHO_C" >&6
33140 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33142 cat >conftest.$ac_ext <<_ACEOF
33145 cat confdefs.h >>conftest.$ac_ext
33146 cat >>conftest.$ac_ext <<_ACEOF
33147 /* end confdefs.h. */
33149 #ifdef HAVE_DB_185_H
33150 # include <db_185.h>
33155 #ifndef DB_VERSION_MAJOR
33156 # define DB_VERSION_MAJOR 1
33160 #define NULL ((void*)0)
33167 #if DB_VERSION_MAJOR > 1
33170 int major, minor, patch;
33172 version = db_version( &major, &minor, &patch );
33174 if( major != DB_VERSION_MAJOR ||
33175 minor < DB_VERSION_MINOR )
33177 printf("Berkeley DB version mismatch\n"
33178 "\theader: %s\n\tlibrary: %s\n",
33179 DB_VERSION_STRING, version);
33185 #if DB_VERSION_MAJOR > 2
33186 db_env_create( NULL, 0 );
33187 #elif DB_VERSION_MAJOR > 1
33188 db_appexit( NULL );
33190 (void) dbopen( NULL, 0, 0, 0, NULL);
33197 rm -f conftest.$ac_objext conftest$ac_exeext
33198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33199 (eval $ac_link) 2>conftest.er1
33201 grep -v '^ *+' conftest.er1 >conftest.err
33203 cat conftest.err >&5
33204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); } &&
33206 { ac_try='test -z "$ac_c_werror_flag"
33207 || test ! -s conftest.err'
33208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33209 (eval $ac_try) 2>&5
33211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33212 (exit $ac_status); }; } &&
33213 { ac_try='test -s conftest$ac_exeext'
33214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33215 (eval $ac_try) 2>&5
33217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 (exit $ac_status); }; }; then
33219 ol_cv_db_db_4_dot_1=yes
33221 echo "$as_me: failed program was:" >&5
33222 sed 's/^/| /' conftest.$ac_ext >&5
33224 ol_cv_db_db_4_dot_1=no
33226 rm -f conftest.err conftest.$ac_objext \
33227 conftest$ac_exeext conftest.$ac_ext
33232 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33233 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33235 if test $ol_cv_db_db_4_dot_1 = yes ; then
33236 ol_cv_lib_db=-ldb-4.1
33240 if test $ol_cv_lib_db = no ; then
33241 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33242 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33243 if test "${ol_cv_db_db_4_1+set}" = set; then
33244 echo $ECHO_N "(cached) $ECHO_C" >&6
33249 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33251 cat >conftest.$ac_ext <<_ACEOF
33254 cat confdefs.h >>conftest.$ac_ext
33255 cat >>conftest.$ac_ext <<_ACEOF
33256 /* end confdefs.h. */
33258 #ifdef HAVE_DB_185_H
33259 # include <db_185.h>
33264 #ifndef DB_VERSION_MAJOR
33265 # define DB_VERSION_MAJOR 1
33269 #define NULL ((void*)0)
33276 #if DB_VERSION_MAJOR > 1
33279 int major, minor, patch;
33281 version = db_version( &major, &minor, &patch );
33283 if( major != DB_VERSION_MAJOR ||
33284 minor < DB_VERSION_MINOR )
33286 printf("Berkeley DB version mismatch\n"
33287 "\theader: %s\n\tlibrary: %s\n",
33288 DB_VERSION_STRING, version);
33294 #if DB_VERSION_MAJOR > 2
33295 db_env_create( NULL, 0 );
33296 #elif DB_VERSION_MAJOR > 1
33297 db_appexit( NULL );
33299 (void) dbopen( NULL, 0, 0, 0, NULL);
33306 rm -f conftest.$ac_objext conftest$ac_exeext
33307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33308 (eval $ac_link) 2>conftest.er1
33310 grep -v '^ *+' conftest.er1 >conftest.err
33312 cat conftest.err >&5
33313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33314 (exit $ac_status); } &&
33315 { ac_try='test -z "$ac_c_werror_flag"
33316 || test ! -s conftest.err'
33317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33318 (eval $ac_try) 2>&5
33320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); }; } &&
33322 { ac_try='test -s conftest$ac_exeext'
33323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33324 (eval $ac_try) 2>&5
33326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327 (exit $ac_status); }; }; then
33328 ol_cv_db_db_4_1=yes
33330 echo "$as_me: failed program was:" >&5
33331 sed 's/^/| /' conftest.$ac_ext >&5
33335 rm -f conftest.err conftest.$ac_objext \
33336 conftest$ac_exeext conftest.$ac_ext
33341 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33342 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33344 if test $ol_cv_db_db_4_1 = yes ; then
33345 ol_cv_lib_db=-ldb-4-1
33350 if test $ol_cv_lib_db = no ; then
33351 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33352 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33353 if test "${ol_cv_db_db_4+set}" = set; then
33354 echo $ECHO_N "(cached) $ECHO_C" >&6
33359 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33361 cat >conftest.$ac_ext <<_ACEOF
33364 cat confdefs.h >>conftest.$ac_ext
33365 cat >>conftest.$ac_ext <<_ACEOF
33366 /* end confdefs.h. */
33368 #ifdef HAVE_DB_185_H
33369 # include <db_185.h>
33374 #ifndef DB_VERSION_MAJOR
33375 # define DB_VERSION_MAJOR 1
33379 #define NULL ((void*)0)
33386 #if DB_VERSION_MAJOR > 1
33389 int major, minor, patch;
33391 version = db_version( &major, &minor, &patch );
33393 if( major != DB_VERSION_MAJOR ||
33394 minor < DB_VERSION_MINOR )
33396 printf("Berkeley DB version mismatch\n"
33397 "\theader: %s\n\tlibrary: %s\n",
33398 DB_VERSION_STRING, version);
33404 #if DB_VERSION_MAJOR > 2
33405 db_env_create( NULL, 0 );
33406 #elif DB_VERSION_MAJOR > 1
33407 db_appexit( NULL );
33409 (void) dbopen( NULL, 0, 0, 0, NULL);
33416 rm -f conftest.$ac_objext conftest$ac_exeext
33417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33418 (eval $ac_link) 2>conftest.er1
33420 grep -v '^ *+' conftest.er1 >conftest.err
33422 cat conftest.err >&5
33423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33424 (exit $ac_status); } &&
33425 { ac_try='test -z "$ac_c_werror_flag"
33426 || test ! -s conftest.err'
33427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33428 (eval $ac_try) 2>&5
33430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431 (exit $ac_status); }; } &&
33432 { ac_try='test -s conftest$ac_exeext'
33433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33434 (eval $ac_try) 2>&5
33436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437 (exit $ac_status); }; }; then
33440 echo "$as_me: failed program was:" >&5
33441 sed 's/^/| /' conftest.$ac_ext >&5
33445 rm -f conftest.err conftest.$ac_objext \
33446 conftest$ac_exeext conftest.$ac_ext
33451 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33452 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33454 if test $ol_cv_db_db_4 = yes ; then
33455 ol_cv_lib_db=-ldb-4
33459 if test $ol_cv_lib_db = no ; then
33460 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33461 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33462 if test "${ol_cv_db_db4+set}" = set; then
33463 echo $ECHO_N "(cached) $ECHO_C" >&6
33468 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33470 cat >conftest.$ac_ext <<_ACEOF
33473 cat confdefs.h >>conftest.$ac_ext
33474 cat >>conftest.$ac_ext <<_ACEOF
33475 /* end confdefs.h. */
33477 #ifdef HAVE_DB_185_H
33478 # include <db_185.h>
33483 #ifndef DB_VERSION_MAJOR
33484 # define DB_VERSION_MAJOR 1
33488 #define NULL ((void*)0)
33495 #if DB_VERSION_MAJOR > 1
33498 int major, minor, patch;
33500 version = db_version( &major, &minor, &patch );
33502 if( major != DB_VERSION_MAJOR ||
33503 minor < DB_VERSION_MINOR )
33505 printf("Berkeley DB version mismatch\n"
33506 "\theader: %s\n\tlibrary: %s\n",
33507 DB_VERSION_STRING, version);
33513 #if DB_VERSION_MAJOR > 2
33514 db_env_create( NULL, 0 );
33515 #elif DB_VERSION_MAJOR > 1
33516 db_appexit( NULL );
33518 (void) dbopen( NULL, 0, 0, 0, NULL);
33525 rm -f conftest.$ac_objext conftest$ac_exeext
33526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33527 (eval $ac_link) 2>conftest.er1
33529 grep -v '^ *+' conftest.er1 >conftest.err
33531 cat conftest.err >&5
33532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533 (exit $ac_status); } &&
33534 { ac_try='test -z "$ac_c_werror_flag"
33535 || test ! -s conftest.err'
33536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33537 (eval $ac_try) 2>&5
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); }; } &&
33541 { ac_try='test -s conftest$ac_exeext'
33542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33543 (eval $ac_try) 2>&5
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); }; }; then
33549 echo "$as_me: failed program was:" >&5
33550 sed 's/^/| /' conftest.$ac_ext >&5
33554 rm -f conftest.err conftest.$ac_objext \
33555 conftest$ac_exeext conftest.$ac_ext
33560 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33561 echo "${ECHO_T}$ol_cv_db_db4" >&6
33563 if test $ol_cv_db_db4 = yes ; then
33568 if test $ol_cv_lib_db = no ; then
33569 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33570 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33571 if test "${ol_cv_db_db+set}" = set; then
33572 echo $ECHO_N "(cached) $ECHO_C" >&6
33577 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33579 cat >conftest.$ac_ext <<_ACEOF
33582 cat confdefs.h >>conftest.$ac_ext
33583 cat >>conftest.$ac_ext <<_ACEOF
33584 /* end confdefs.h. */
33586 #ifdef HAVE_DB_185_H
33587 # include <db_185.h>
33592 #ifndef DB_VERSION_MAJOR
33593 # define DB_VERSION_MAJOR 1
33597 #define NULL ((void*)0)
33604 #if DB_VERSION_MAJOR > 1
33607 int major, minor, patch;
33609 version = db_version( &major, &minor, &patch );
33611 if( major != DB_VERSION_MAJOR ||
33612 minor < DB_VERSION_MINOR )
33614 printf("Berkeley DB version mismatch\n"
33615 "\theader: %s\n\tlibrary: %s\n",
33616 DB_VERSION_STRING, version);
33622 #if DB_VERSION_MAJOR > 2
33623 db_env_create( NULL, 0 );
33624 #elif DB_VERSION_MAJOR > 1
33625 db_appexit( NULL );
33627 (void) dbopen( NULL, 0, 0, 0, NULL);
33634 rm -f conftest.$ac_objext conftest$ac_exeext
33635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33636 (eval $ac_link) 2>conftest.er1
33638 grep -v '^ *+' conftest.er1 >conftest.err
33640 cat conftest.err >&5
33641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33642 (exit $ac_status); } &&
33643 { ac_try='test -z "$ac_c_werror_flag"
33644 || test ! -s conftest.err'
33645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33646 (eval $ac_try) 2>&5
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); }; } &&
33650 { ac_try='test -s conftest$ac_exeext'
33651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33652 (eval $ac_try) 2>&5
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); }; }; then
33658 echo "$as_me: failed program was:" >&5
33659 sed 's/^/| /' conftest.$ac_ext >&5
33663 rm -f conftest.err conftest.$ac_objext \
33664 conftest$ac_exeext conftest.$ac_ext
33669 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33670 echo "${ECHO_T}$ol_cv_db_db" >&6
33672 if test $ol_cv_db_db = yes ; then
33678 elif test $ol_cv_bdb_major = 3 ; then
33679 if test $ol_cv_lib_db = no ; then
33680 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33681 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33682 if test "${ol_cv_db_db3+set}" = set; then
33683 echo $ECHO_N "(cached) $ECHO_C" >&6
33688 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33690 cat >conftest.$ac_ext <<_ACEOF
33693 cat confdefs.h >>conftest.$ac_ext
33694 cat >>conftest.$ac_ext <<_ACEOF
33695 /* end confdefs.h. */
33697 #ifdef HAVE_DB_185_H
33698 # include <db_185.h>
33703 #ifndef DB_VERSION_MAJOR
33704 # define DB_VERSION_MAJOR 1
33708 #define NULL ((void*)0)
33715 #if DB_VERSION_MAJOR > 1
33718 int major, minor, patch;
33720 version = db_version( &major, &minor, &patch );
33722 if( major != DB_VERSION_MAJOR ||
33723 minor < DB_VERSION_MINOR )
33725 printf("Berkeley DB version mismatch\n"
33726 "\theader: %s\n\tlibrary: %s\n",
33727 DB_VERSION_STRING, version);
33733 #if DB_VERSION_MAJOR > 2
33734 db_env_create( NULL, 0 );
33735 #elif DB_VERSION_MAJOR > 1
33736 db_appexit( NULL );
33738 (void) dbopen( NULL, 0, 0, 0, NULL);
33745 rm -f conftest.$ac_objext conftest$ac_exeext
33746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33747 (eval $ac_link) 2>conftest.er1
33749 grep -v '^ *+' conftest.er1 >conftest.err
33751 cat conftest.err >&5
33752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33753 (exit $ac_status); } &&
33754 { ac_try='test -z "$ac_c_werror_flag"
33755 || test ! -s conftest.err'
33756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33757 (eval $ac_try) 2>&5
33759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33760 (exit $ac_status); }; } &&
33761 { ac_try='test -s conftest$ac_exeext'
33762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33763 (eval $ac_try) 2>&5
33765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33766 (exit $ac_status); }; }; then
33769 echo "$as_me: failed program was:" >&5
33770 sed 's/^/| /' conftest.$ac_ext >&5
33774 rm -f conftest.err conftest.$ac_objext \
33775 conftest$ac_exeext conftest.$ac_ext
33780 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33781 echo "${ECHO_T}$ol_cv_db_db3" >&6
33783 if test $ol_cv_db_db3 = yes ; then
33788 if test $ol_cv_lib_db = no ; then
33789 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33790 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33791 if test "${ol_cv_db_db_3+set}" = set; then
33792 echo $ECHO_N "(cached) $ECHO_C" >&6
33797 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33799 cat >conftest.$ac_ext <<_ACEOF
33802 cat confdefs.h >>conftest.$ac_ext
33803 cat >>conftest.$ac_ext <<_ACEOF
33804 /* end confdefs.h. */
33806 #ifdef HAVE_DB_185_H
33807 # include <db_185.h>
33812 #ifndef DB_VERSION_MAJOR
33813 # define DB_VERSION_MAJOR 1
33817 #define NULL ((void*)0)
33824 #if DB_VERSION_MAJOR > 1
33827 int major, minor, patch;
33829 version = db_version( &major, &minor, &patch );
33831 if( major != DB_VERSION_MAJOR ||
33832 minor < DB_VERSION_MINOR )
33834 printf("Berkeley DB version mismatch\n"
33835 "\theader: %s\n\tlibrary: %s\n",
33836 DB_VERSION_STRING, version);
33842 #if DB_VERSION_MAJOR > 2
33843 db_env_create( NULL, 0 );
33844 #elif DB_VERSION_MAJOR > 1
33845 db_appexit( NULL );
33847 (void) dbopen( NULL, 0, 0, 0, NULL);
33854 rm -f conftest.$ac_objext conftest$ac_exeext
33855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33856 (eval $ac_link) 2>conftest.er1
33858 grep -v '^ *+' conftest.er1 >conftest.err
33860 cat conftest.err >&5
33861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33862 (exit $ac_status); } &&
33863 { ac_try='test -z "$ac_c_werror_flag"
33864 || test ! -s conftest.err'
33865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33866 (eval $ac_try) 2>&5
33868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33869 (exit $ac_status); }; } &&
33870 { ac_try='test -s conftest$ac_exeext'
33871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33872 (eval $ac_try) 2>&5
33874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33875 (exit $ac_status); }; }; then
33878 echo "$as_me: failed program was:" >&5
33879 sed 's/^/| /' conftest.$ac_ext >&5
33883 rm -f conftest.err conftest.$ac_objext \
33884 conftest$ac_exeext conftest.$ac_ext
33889 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33890 echo "${ECHO_T}$ol_cv_db_db_3" >&6
33892 if test $ol_cv_db_db_3 = yes ; then
33893 ol_cv_lib_db=-ldb-3
33898 elif test $ol_cv_bdb_major = 2 ; then
33899 if test $ol_cv_lib_db = no ; then
33900 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33901 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
33902 if test "${ol_cv_db_db2+set}" = set; then
33903 echo $ECHO_N "(cached) $ECHO_C" >&6
33908 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33910 cat >conftest.$ac_ext <<_ACEOF
33913 cat confdefs.h >>conftest.$ac_ext
33914 cat >>conftest.$ac_ext <<_ACEOF
33915 /* end confdefs.h. */
33917 #ifdef HAVE_DB_185_H
33918 # include <db_185.h>
33923 #ifndef DB_VERSION_MAJOR
33924 # define DB_VERSION_MAJOR 1
33928 #define NULL ((void*)0)
33935 #if DB_VERSION_MAJOR > 1
33938 int major, minor, patch;
33940 version = db_version( &major, &minor, &patch );
33942 if( major != DB_VERSION_MAJOR ||
33943 minor < DB_VERSION_MINOR )
33945 printf("Berkeley DB version mismatch\n"
33946 "\theader: %s\n\tlibrary: %s\n",
33947 DB_VERSION_STRING, version);
33953 #if DB_VERSION_MAJOR > 2
33954 db_env_create( NULL, 0 );
33955 #elif DB_VERSION_MAJOR > 1
33956 db_appexit( NULL );
33958 (void) dbopen( NULL, 0, 0, 0, NULL);
33965 rm -f conftest.$ac_objext conftest$ac_exeext
33966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33967 (eval $ac_link) 2>conftest.er1
33969 grep -v '^ *+' conftest.er1 >conftest.err
33971 cat conftest.err >&5
33972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973 (exit $ac_status); } &&
33974 { ac_try='test -z "$ac_c_werror_flag"
33975 || test ! -s conftest.err'
33976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33977 (eval $ac_try) 2>&5
33979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980 (exit $ac_status); }; } &&
33981 { ac_try='test -s conftest$ac_exeext'
33982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33983 (eval $ac_try) 2>&5
33985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986 (exit $ac_status); }; }; then
33989 echo "$as_me: failed program was:" >&5
33990 sed 's/^/| /' conftest.$ac_ext >&5
33994 rm -f conftest.err conftest.$ac_objext \
33995 conftest$ac_exeext conftest.$ac_ext
34000 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34001 echo "${ECHO_T}$ol_cv_db_db2" >&6
34003 if test $ol_cv_db_db2 = yes ; then
34008 if test $ol_cv_lib_db = no ; then
34009 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34010 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34011 if test "${ol_cv_db_db_2+set}" = set; then
34012 echo $ECHO_N "(cached) $ECHO_C" >&6
34017 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34019 cat >conftest.$ac_ext <<_ACEOF
34022 cat confdefs.h >>conftest.$ac_ext
34023 cat >>conftest.$ac_ext <<_ACEOF
34024 /* end confdefs.h. */
34026 #ifdef HAVE_DB_185_H
34027 # include <db_185.h>
34032 #ifndef DB_VERSION_MAJOR
34033 # define DB_VERSION_MAJOR 1
34037 #define NULL ((void*)0)
34044 #if DB_VERSION_MAJOR > 1
34047 int major, minor, patch;
34049 version = db_version( &major, &minor, &patch );
34051 if( major != DB_VERSION_MAJOR ||
34052 minor < DB_VERSION_MINOR )
34054 printf("Berkeley DB version mismatch\n"
34055 "\theader: %s\n\tlibrary: %s\n",
34056 DB_VERSION_STRING, version);
34062 #if DB_VERSION_MAJOR > 2
34063 db_env_create( NULL, 0 );
34064 #elif DB_VERSION_MAJOR > 1
34065 db_appexit( NULL );
34067 (void) dbopen( NULL, 0, 0, 0, NULL);
34074 rm -f conftest.$ac_objext conftest$ac_exeext
34075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34076 (eval $ac_link) 2>conftest.er1
34078 grep -v '^ *+' conftest.er1 >conftest.err
34080 cat conftest.err >&5
34081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082 (exit $ac_status); } &&
34083 { ac_try='test -z "$ac_c_werror_flag"
34084 || test ! -s conftest.err'
34085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34086 (eval $ac_try) 2>&5
34088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089 (exit $ac_status); }; } &&
34090 { ac_try='test -s conftest$ac_exeext'
34091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34092 (eval $ac_try) 2>&5
34094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095 (exit $ac_status); }; }; then
34098 echo "$as_me: failed program was:" >&5
34099 sed 's/^/| /' conftest.$ac_ext >&5
34103 rm -f conftest.err conftest.$ac_objext \
34104 conftest$ac_exeext conftest.$ac_ext
34109 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34110 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34112 if test $ol_cv_db_db_2 = yes ; then
34113 ol_cv_lib_db=-ldb-2
34118 elif test $ol_cv_bdb_major = 1 ; then
34119 if test $ol_cv_lib_db = no ; then
34120 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34121 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34122 if test "${ol_cv_db_db1+set}" = set; then
34123 echo $ECHO_N "(cached) $ECHO_C" >&6
34128 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34130 cat >conftest.$ac_ext <<_ACEOF
34133 cat confdefs.h >>conftest.$ac_ext
34134 cat >>conftest.$ac_ext <<_ACEOF
34135 /* end confdefs.h. */
34137 #ifdef HAVE_DB_185_H
34138 # include <db_185.h>
34143 #ifndef DB_VERSION_MAJOR
34144 # define DB_VERSION_MAJOR 1
34148 #define NULL ((void*)0)
34155 #if DB_VERSION_MAJOR > 1
34158 int major, minor, patch;
34160 version = db_version( &major, &minor, &patch );
34162 if( major != DB_VERSION_MAJOR ||
34163 minor < DB_VERSION_MINOR )
34165 printf("Berkeley DB version mismatch\n"
34166 "\theader: %s\n\tlibrary: %s\n",
34167 DB_VERSION_STRING, version);
34173 #if DB_VERSION_MAJOR > 2
34174 db_env_create( NULL, 0 );
34175 #elif DB_VERSION_MAJOR > 1
34176 db_appexit( NULL );
34178 (void) dbopen( NULL, 0, 0, 0, NULL);
34185 rm -f conftest.$ac_objext conftest$ac_exeext
34186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34187 (eval $ac_link) 2>conftest.er1
34189 grep -v '^ *+' conftest.er1 >conftest.err
34191 cat conftest.err >&5
34192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193 (exit $ac_status); } &&
34194 { ac_try='test -z "$ac_c_werror_flag"
34195 || test ! -s conftest.err'
34196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34197 (eval $ac_try) 2>&5
34199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200 (exit $ac_status); }; } &&
34201 { ac_try='test -s conftest$ac_exeext'
34202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34203 (eval $ac_try) 2>&5
34205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34206 (exit $ac_status); }; }; then
34209 echo "$as_me: failed program was:" >&5
34210 sed 's/^/| /' conftest.$ac_ext >&5
34214 rm -f conftest.err conftest.$ac_objext \
34215 conftest$ac_exeext conftest.$ac_ext
34220 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34221 echo "${ECHO_T}$ol_cv_db_db1" >&6
34223 if test $ol_cv_db_db1 = yes ; then
34228 if test $ol_cv_lib_db = no ; then
34229 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34230 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34231 if test "${ol_cv_db_db_1+set}" = set; then
34232 echo $ECHO_N "(cached) $ECHO_C" >&6
34237 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34239 cat >conftest.$ac_ext <<_ACEOF
34242 cat confdefs.h >>conftest.$ac_ext
34243 cat >>conftest.$ac_ext <<_ACEOF
34244 /* end confdefs.h. */
34246 #ifdef HAVE_DB_185_H
34247 # include <db_185.h>
34252 #ifndef DB_VERSION_MAJOR
34253 # define DB_VERSION_MAJOR 1
34257 #define NULL ((void*)0)
34264 #if DB_VERSION_MAJOR > 1
34267 int major, minor, patch;
34269 version = db_version( &major, &minor, &patch );
34271 if( major != DB_VERSION_MAJOR ||
34272 minor < DB_VERSION_MINOR )
34274 printf("Berkeley DB version mismatch\n"
34275 "\theader: %s\n\tlibrary: %s\n",
34276 DB_VERSION_STRING, version);
34282 #if DB_VERSION_MAJOR > 2
34283 db_env_create( NULL, 0 );
34284 #elif DB_VERSION_MAJOR > 1
34285 db_appexit( NULL );
34287 (void) dbopen( NULL, 0, 0, 0, NULL);
34294 rm -f conftest.$ac_objext conftest$ac_exeext
34295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34296 (eval $ac_link) 2>conftest.er1
34298 grep -v '^ *+' conftest.er1 >conftest.err
34300 cat conftest.err >&5
34301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); } &&
34303 { ac_try='test -z "$ac_c_werror_flag"
34304 || test ! -s conftest.err'
34305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34306 (eval $ac_try) 2>&5
34308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34309 (exit $ac_status); }; } &&
34310 { ac_try='test -s conftest$ac_exeext'
34311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34312 (eval $ac_try) 2>&5
34314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34315 (exit $ac_status); }; }; then
34318 echo "$as_me: failed program was:" >&5
34319 sed 's/^/| /' conftest.$ac_ext >&5
34323 rm -f conftest.err conftest.$ac_objext \
34324 conftest$ac_exeext conftest.$ac_ext
34329 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34330 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34332 if test $ol_cv_db_db_1 = yes ; then
34333 ol_cv_lib_db=-ldb-1
34338 if test $ol_cv_lib_db = no ; then
34339 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34340 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34341 if test "${ol_cv_db_none+set}" = set; then
34342 echo $ECHO_N "(cached) $ECHO_C" >&6
34347 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34349 cat >conftest.$ac_ext <<_ACEOF
34352 cat confdefs.h >>conftest.$ac_ext
34353 cat >>conftest.$ac_ext <<_ACEOF
34354 /* end confdefs.h. */
34356 #ifdef HAVE_DB_185_H
34357 # include <db_185.h>
34362 #ifndef DB_VERSION_MAJOR
34363 # define DB_VERSION_MAJOR 1
34367 #define NULL ((void*)0)
34374 #if DB_VERSION_MAJOR > 1
34377 int major, minor, patch;
34379 version = db_version( &major, &minor, &patch );
34381 if( major != DB_VERSION_MAJOR ||
34382 minor < DB_VERSION_MINOR )
34384 printf("Berkeley DB version mismatch\n"
34385 "\theader: %s\n\tlibrary: %s\n",
34386 DB_VERSION_STRING, version);
34392 #if DB_VERSION_MAJOR > 2
34393 db_env_create( NULL, 0 );
34394 #elif DB_VERSION_MAJOR > 1
34395 db_appexit( NULL );
34397 (void) dbopen( NULL, 0, 0, 0, NULL);
34404 rm -f conftest.$ac_objext conftest$ac_exeext
34405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34406 (eval $ac_link) 2>conftest.er1
34408 grep -v '^ *+' conftest.er1 >conftest.err
34410 cat conftest.err >&5
34411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34412 (exit $ac_status); } &&
34413 { ac_try='test -z "$ac_c_werror_flag"
34414 || test ! -s conftest.err'
34415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34416 (eval $ac_try) 2>&5
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419 (exit $ac_status); }; } &&
34420 { ac_try='test -s conftest$ac_exeext'
34421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34422 (eval $ac_try) 2>&5
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); }; }; then
34428 echo "$as_me: failed program was:" >&5
34429 sed 's/^/| /' conftest.$ac_ext >&5
34433 rm -f conftest.err conftest.$ac_objext \
34434 conftest$ac_exeext conftest.$ac_ext
34439 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34440 echo "${ECHO_T}$ol_cv_db_none" >&6
34442 if test $ol_cv_db_none = yes ; then
34448 if test "$ol_cv_lib_db" != no ; then
34449 ol_cv_berkeley_db=yes
34450 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34451 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34452 if test "${ol_cv_berkeley_db_version+set}" = set; then
34453 echo $ECHO_N "(cached) $ECHO_C" >&6
34457 LIBS="$LTHREAD_LIBS $LIBS"
34458 if test $ol_cv_lib_db != yes ; then
34459 LIBS="$ol_cv_lib_db $LIBS"
34462 if test "$cross_compiling" = yes; then
34463 ol_cv_berkeley_db_version=cross
34465 cat >conftest.$ac_ext <<_ACEOF
34468 cat confdefs.h >>conftest.$ac_ext
34469 cat >>conftest.$ac_ext <<_ACEOF
34470 /* end confdefs.h. */
34472 #ifdef HAVE_DB_185_H
34477 #ifndef DB_VERSION_MAJOR
34478 # define DB_VERSION_MAJOR 1
34481 #define NULL ((void *)0)
34485 #if DB_VERSION_MAJOR > 1
34487 int major, minor, patch;
34489 version = db_version( &major, &minor, &patch );
34491 if( major != DB_VERSION_MAJOR ||
34492 minor != DB_VERSION_MINOR ||
34493 patch != DB_VERSION_PATCH )
34495 printf("Berkeley DB version mismatch\n"
34496 "\theader: %s\n\tlibrary: %s\n",
34497 DB_VERSION_STRING, version);
34505 rm -f conftest$ac_exeext
34506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34507 (eval $ac_link) 2>&5
34509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34512 (eval $ac_try) 2>&5
34514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515 (exit $ac_status); }; }; then
34516 ol_cv_berkeley_db_version=yes
34518 echo "$as_me: program exited with status $ac_status" >&5
34519 echo "$as_me: failed program was:" >&5
34520 sed 's/^/| /' conftest.$ac_ext >&5
34522 ( exit $ac_status )
34523 ol_cv_berkeley_db_version=no
34525 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34531 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34532 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34534 if test $ol_cv_berkeley_db_version = no ; then
34535 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34536 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34537 { (exit 1); exit 1; }; }
34540 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34541 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34542 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34543 echo $ECHO_N "(cached) $ECHO_C" >&6
34547 LIBS="$LTHREAD_LIBS $LIBS"
34548 if test $ol_cv_lib_db != yes ; then
34549 LIBS="$ol_cv_lib_db $LIBS"
34552 if test "$cross_compiling" = yes; then
34553 ol_cv_berkeley_db_thread=cross
34555 cat >conftest.$ac_ext <<_ACEOF
34558 cat confdefs.h >>conftest.$ac_ext
34559 cat >>conftest.$ac_ext <<_ACEOF
34560 /* end confdefs.h. */
34562 #ifdef HAVE_DB_185_H
34568 #define NULL ((void *)0)
34573 u_int32_t flags = DB_CREATE |
34579 #if DB_VERSION_MAJOR > 2
34580 DB_ENV *env = NULL;
34582 rc = db_env_create( &env, 0 );
34584 flags |= DB_INIT_MPOOL;
34585 #ifdef DB_MPOOL_PRIVATE
34586 flags |= DB_MPOOL_PRIVATE;
34590 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34594 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34595 rc = env->open( env, NULL, flags, 0 );
34597 rc = env->open( env, NULL, NULL, flags, 0 );
34601 rc = env->close( env, 0 );
34605 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34611 memset( &env, '\0', sizeof(env) );
34613 rc = db_appinit( NULL, NULL, &env, flags );
34616 db_appexit( &env );
34619 unlink("__db_mpool.share");
34620 unlink("__db_lock.share");
34626 rm -f conftest$ac_exeext
34627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34628 (eval $ac_link) 2>&5
34630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34633 (eval $ac_try) 2>&5
34635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636 (exit $ac_status); }; }; then
34637 ol_cv_berkeley_db_thread=yes
34639 echo "$as_me: program exited with status $ac_status" >&5
34640 echo "$as_me: failed program was:" >&5
34641 sed 's/^/| /' conftest.$ac_ext >&5
34643 ( exit $ac_status )
34644 ol_cv_berkeley_db_thread=no
34646 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34652 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34653 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34655 if test $ol_cv_berkeley_db_thread != no ; then
34657 cat >>confdefs.h <<\_ACEOF
34658 #define HAVE_BERKELEY_DB_THREAD 1
34668 if test $ol_cv_berkeley_db != no ; then
34670 cat >>confdefs.h <<\_ACEOF
34671 #define HAVE_BERKELEY_DB 1
34675 ol_link_ldbm=berkeley
34676 ol_enable_ldbm_api=berkeley
34678 if test $ol_enable_ldbm_type = hash ; then
34680 cat >>confdefs.h <<\_ACEOF
34681 #define LDBM_USE_DBHASH 1
34686 cat >>confdefs.h <<\_ACEOF
34687 #define LDBM_USE_DBBTREE 1
34692 if test $ol_cv_lib_db != yes ; then
34693 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34699 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34700 if test $ol_link_ldbm != berkeley ; then
34701 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34702 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34703 { (exit 1); exit 1; }; }
34705 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34706 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34707 if test "${ol_cv_bdb_compat+set}" = set; then
34708 echo $ECHO_N "(cached) $ECHO_C" >&6
34711 cat >conftest.$ac_ext <<_ACEOF
34714 cat confdefs.h >>conftest.$ac_ext
34715 cat >>conftest.$ac_ext <<_ACEOF
34716 /* end confdefs.h. */
34720 /* this check could be improved */
34721 #ifndef DB_VERSION_MAJOR
34722 # define DB_VERSION_MAJOR 1
34724 #ifndef DB_VERSION_MINOR
34725 # define DB_VERSION_MINOR 0
34728 /* require 4.2 or later */
34729 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34730 __db_version_compat
34734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34735 $EGREP "__db_version_compat" >/dev/null 2>&1; then
34736 ol_cv_bdb_compat=yes
34738 ol_cv_bdb_compat=no
34743 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34744 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34747 if test $ol_cv_bdb_compat != yes ; then
34748 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34749 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34750 { (exit 1); exit 1; }; }
34755 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34756 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34757 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34758 ol_enable_ldbm_api=none
34761 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34762 echo "$as_me:$LINENO: checking for MDBM library" >&5
34763 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34764 if test "${ol_cv_lib_mdbm+set}" = set; then
34765 echo $ECHO_N "(cached) $ECHO_C" >&6
34768 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34769 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34770 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34771 echo $ECHO_N "(cached) $ECHO_C" >&6
34773 cat >conftest.$ac_ext <<_ACEOF
34776 cat confdefs.h >>conftest.$ac_ext
34777 cat >>conftest.$ac_ext <<_ACEOF
34778 /* end confdefs.h. */
34779 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34781 #define mdbm_set_chain innocuous_mdbm_set_chain
34783 /* System header to define __stub macros and hopefully few prototypes,
34784 which can conflict with char mdbm_set_chain (); below.
34785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34786 <limits.h> exists even on freestanding compilers. */
34789 # include <limits.h>
34791 # include <assert.h>
34794 #undef mdbm_set_chain
34796 /* Override any gcc2 internal prototype to avoid an error. */
34801 /* We use char because int might match the return type of a gcc2
34802 builtin and then its argument prototype would still apply. */
34803 char mdbm_set_chain ();
34804 /* The GNU C library defines this for functions which it implements
34805 to always fail with ENOSYS. Some functions are actually named
34806 something starting with __ and the normal name is an alias. */
34807 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34810 char (*f) () = mdbm_set_chain;
34819 return f != mdbm_set_chain;
34824 rm -f conftest.$ac_objext conftest$ac_exeext
34825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34826 (eval $ac_link) 2>conftest.er1
34828 grep -v '^ *+' conftest.er1 >conftest.err
34830 cat conftest.err >&5
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); } &&
34833 { ac_try='test -z "$ac_c_werror_flag"
34834 || test ! -s conftest.err'
34835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34836 (eval $ac_try) 2>&5
34838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839 (exit $ac_status); }; } &&
34840 { ac_try='test -s conftest$ac_exeext'
34841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34842 (eval $ac_try) 2>&5
34844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845 (exit $ac_status); }; }; then
34846 ac_cv_func_mdbm_set_chain=yes
34848 echo "$as_me: failed program was:" >&5
34849 sed 's/^/| /' conftest.$ac_ext >&5
34851 ac_cv_func_mdbm_set_chain=no
34853 rm -f conftest.err conftest.$ac_objext \
34854 conftest$ac_exeext conftest.$ac_ext
34856 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34857 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34858 if test $ac_cv_func_mdbm_set_chain = yes; then
34862 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34863 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34864 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34865 echo $ECHO_N "(cached) $ECHO_C" >&6
34867 ac_check_lib_save_LIBS=$LIBS
34868 LIBS="-lmdbm $LIBS"
34869 cat >conftest.$ac_ext <<_ACEOF
34872 cat confdefs.h >>conftest.$ac_ext
34873 cat >>conftest.$ac_ext <<_ACEOF
34874 /* end confdefs.h. */
34876 /* Override any gcc2 internal prototype to avoid an error. */
34880 /* We use char because int might match the return type of a gcc2
34881 builtin and then its argument prototype would still apply. */
34882 char mdbm_set_chain ();
34891 rm -f conftest.$ac_objext conftest$ac_exeext
34892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34893 (eval $ac_link) 2>conftest.er1
34895 grep -v '^ *+' conftest.er1 >conftest.err
34897 cat conftest.err >&5
34898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34899 (exit $ac_status); } &&
34900 { ac_try='test -z "$ac_c_werror_flag"
34901 || test ! -s conftest.err'
34902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34903 (eval $ac_try) 2>&5
34905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34906 (exit $ac_status); }; } &&
34907 { ac_try='test -s conftest$ac_exeext'
34908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34909 (eval $ac_try) 2>&5
34911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34912 (exit $ac_status); }; }; then
34913 ac_cv_lib_mdbm_mdbm_set_chain=yes
34915 echo "$as_me: failed program was:" >&5
34916 sed 's/^/| /' conftest.$ac_ext >&5
34918 ac_cv_lib_mdbm_mdbm_set_chain=no
34920 rm -f conftest.err conftest.$ac_objext \
34921 conftest$ac_exeext conftest.$ac_ext
34922 LIBS=$ac_check_lib_save_LIBS
34924 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
34925 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
34926 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
34927 ol_cv_lib_mdbm=-lmdbm
34938 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
34939 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
34943 for ac_header in mdbm.h
34945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34947 echo "$as_me:$LINENO: checking for $ac_header" >&5
34948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34950 echo $ECHO_N "(cached) $ECHO_C" >&6
34952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34955 # Is the header compilable?
34956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34958 cat >conftest.$ac_ext <<_ACEOF
34961 cat confdefs.h >>conftest.$ac_ext
34962 cat >>conftest.$ac_ext <<_ACEOF
34963 /* end confdefs.h. */
34964 $ac_includes_default
34965 #include <$ac_header>
34967 rm -f conftest.$ac_objext
34968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34969 (eval $ac_compile) 2>conftest.er1
34971 grep -v '^ *+' conftest.er1 >conftest.err
34973 cat conftest.err >&5
34974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975 (exit $ac_status); } &&
34976 { ac_try='test -z "$ac_c_werror_flag"
34977 || test ! -s conftest.err'
34978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34979 (eval $ac_try) 2>&5
34981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982 (exit $ac_status); }; } &&
34983 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
34989 ac_header_compiler=yes
34991 echo "$as_me: failed program was:" >&5
34992 sed 's/^/| /' conftest.$ac_ext >&5
34994 ac_header_compiler=no
34996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34998 echo "${ECHO_T}$ac_header_compiler" >&6
35000 # Is the header present?
35001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35003 cat >conftest.$ac_ext <<_ACEOF
35006 cat confdefs.h >>conftest.$ac_ext
35007 cat >>conftest.$ac_ext <<_ACEOF
35008 /* end confdefs.h. */
35009 #include <$ac_header>
35011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35014 grep -v '^ *+' conftest.er1 >conftest.err
35016 cat conftest.err >&5
35017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018 (exit $ac_status); } >/dev/null; then
35019 if test -s conftest.err; then
35020 ac_cpp_err=$ac_c_preproc_warn_flag
35021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35028 if test -z "$ac_cpp_err"; then
35029 ac_header_preproc=yes
35031 echo "$as_me: failed program was:" >&5
35032 sed 's/^/| /' conftest.$ac_ext >&5
35034 ac_header_preproc=no
35036 rm -f conftest.err conftest.$ac_ext
35037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35038 echo "${ECHO_T}$ac_header_preproc" >&6
35040 # So? What about this header?
35041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35047 ac_header_preproc=yes
35050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35064 ## ------------------------------------------ ##
35065 ## Report this to the AC_PACKAGE_NAME lists. ##
35066 ## ------------------------------------------ ##
35069 sed "s/^/$as_me: WARNING: /" >&2
35072 echo "$as_me:$LINENO: checking for $ac_header" >&5
35073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35075 echo $ECHO_N "(cached) $ECHO_C" >&6
35077 eval "$as_ac_Header=\$ac_header_preproc"
35079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35084 cat >>confdefs.h <<_ACEOF
35085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35092 echo "$as_me:$LINENO: checking for db" >&5
35093 echo $ECHO_N "checking for db... $ECHO_C" >&6
35094 if test "${ol_cv_mdbm+set}" = set; then
35095 echo $ECHO_N "(cached) $ECHO_C" >&6
35098 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35105 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35106 echo "${ECHO_T}$ol_cv_mdbm" >&6
35107 if test $ol_cv_mdbm = yes ; then
35109 cat >>confdefs.h <<\_ACEOF
35110 #define HAVE_MDBM 1
35116 if test $ol_cv_mdbm = yes ; then
35118 ol_enable_ldbm_api=mdbm
35119 if test $ol_cv_lib_mdbm != yes ; then
35120 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35125 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35126 echo "$as_me:$LINENO: checking for GDBM library" >&5
35127 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35128 if test "${ol_cv_lib_gdbm+set}" = set; then
35129 echo $ECHO_N "(cached) $ECHO_C" >&6
35132 echo "$as_me:$LINENO: checking for gdbm_open" >&5
35133 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35134 if test "${ac_cv_func_gdbm_open+set}" = set; then
35135 echo $ECHO_N "(cached) $ECHO_C" >&6
35137 cat >conftest.$ac_ext <<_ACEOF
35140 cat confdefs.h >>conftest.$ac_ext
35141 cat >>conftest.$ac_ext <<_ACEOF
35142 /* end confdefs.h. */
35143 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35145 #define gdbm_open innocuous_gdbm_open
35147 /* System header to define __stub macros and hopefully few prototypes,
35148 which can conflict with char gdbm_open (); below.
35149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35150 <limits.h> exists even on freestanding compilers. */
35153 # include <limits.h>
35155 # include <assert.h>
35160 /* Override any gcc2 internal prototype to avoid an error. */
35165 /* We use char because int might match the return type of a gcc2
35166 builtin and then its argument prototype would still apply. */
35168 /* The GNU C library defines this for functions which it implements
35169 to always fail with ENOSYS. Some functions are actually named
35170 something starting with __ and the normal name is an alias. */
35171 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35174 char (*f) () = gdbm_open;
35183 return f != gdbm_open;
35188 rm -f conftest.$ac_objext conftest$ac_exeext
35189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35190 (eval $ac_link) 2>conftest.er1
35192 grep -v '^ *+' conftest.er1 >conftest.err
35194 cat conftest.err >&5
35195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196 (exit $ac_status); } &&
35197 { ac_try='test -z "$ac_c_werror_flag"
35198 || test ! -s conftest.err'
35199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35200 (eval $ac_try) 2>&5
35202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35203 (exit $ac_status); }; } &&
35204 { ac_try='test -s conftest$ac_exeext'
35205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35206 (eval $ac_try) 2>&5
35208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209 (exit $ac_status); }; }; then
35210 ac_cv_func_gdbm_open=yes
35212 echo "$as_me: failed program was:" >&5
35213 sed 's/^/| /' conftest.$ac_ext >&5
35215 ac_cv_func_gdbm_open=no
35217 rm -f conftest.err conftest.$ac_objext \
35218 conftest$ac_exeext conftest.$ac_ext
35220 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35221 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35222 if test $ac_cv_func_gdbm_open = yes; then
35226 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35227 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35228 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35229 echo $ECHO_N "(cached) $ECHO_C" >&6
35231 ac_check_lib_save_LIBS=$LIBS
35232 LIBS="-lgdbm $LIBS"
35233 cat >conftest.$ac_ext <<_ACEOF
35236 cat confdefs.h >>conftest.$ac_ext
35237 cat >>conftest.$ac_ext <<_ACEOF
35238 /* end confdefs.h. */
35240 /* Override any gcc2 internal prototype to avoid an error. */
35244 /* We use char because int might match the return type of a gcc2
35245 builtin and then its argument prototype would still apply. */
35255 rm -f conftest.$ac_objext conftest$ac_exeext
35256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35257 (eval $ac_link) 2>conftest.er1
35259 grep -v '^ *+' conftest.er1 >conftest.err
35261 cat conftest.err >&5
35262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35263 (exit $ac_status); } &&
35264 { ac_try='test -z "$ac_c_werror_flag"
35265 || test ! -s conftest.err'
35266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35267 (eval $ac_try) 2>&5
35269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35270 (exit $ac_status); }; } &&
35271 { ac_try='test -s conftest$ac_exeext'
35272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35273 (eval $ac_try) 2>&5
35275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276 (exit $ac_status); }; }; then
35277 ac_cv_lib_gdbm_gdbm_open=yes
35279 echo "$as_me: failed program was:" >&5
35280 sed 's/^/| /' conftest.$ac_ext >&5
35282 ac_cv_lib_gdbm_gdbm_open=no
35284 rm -f conftest.err conftest.$ac_objext \
35285 conftest$ac_exeext conftest.$ac_ext
35286 LIBS=$ac_check_lib_save_LIBS
35288 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35289 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35290 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35291 ol_cv_lib_gdbm=-lgdbm
35302 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35303 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35307 for ac_header in gdbm.h
35309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35311 echo "$as_me:$LINENO: checking for $ac_header" >&5
35312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35314 echo $ECHO_N "(cached) $ECHO_C" >&6
35316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35319 # Is the header compilable?
35320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35322 cat >conftest.$ac_ext <<_ACEOF
35325 cat confdefs.h >>conftest.$ac_ext
35326 cat >>conftest.$ac_ext <<_ACEOF
35327 /* end confdefs.h. */
35328 $ac_includes_default
35329 #include <$ac_header>
35331 rm -f conftest.$ac_objext
35332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35333 (eval $ac_compile) 2>conftest.er1
35335 grep -v '^ *+' conftest.er1 >conftest.err
35337 cat conftest.err >&5
35338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35339 (exit $ac_status); } &&
35340 { ac_try='test -z "$ac_c_werror_flag"
35341 || test ! -s conftest.err'
35342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35343 (eval $ac_try) 2>&5
35345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35346 (exit $ac_status); }; } &&
35347 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
35353 ac_header_compiler=yes
35355 echo "$as_me: failed program was:" >&5
35356 sed 's/^/| /' conftest.$ac_ext >&5
35358 ac_header_compiler=no
35360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35362 echo "${ECHO_T}$ac_header_compiler" >&6
35364 # Is the header present?
35365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35367 cat >conftest.$ac_ext <<_ACEOF
35370 cat confdefs.h >>conftest.$ac_ext
35371 cat >>conftest.$ac_ext <<_ACEOF
35372 /* end confdefs.h. */
35373 #include <$ac_header>
35375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35378 grep -v '^ *+' conftest.er1 >conftest.err
35380 cat conftest.err >&5
35381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382 (exit $ac_status); } >/dev/null; then
35383 if test -s conftest.err; then
35384 ac_cpp_err=$ac_c_preproc_warn_flag
35385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35392 if test -z "$ac_cpp_err"; then
35393 ac_header_preproc=yes
35395 echo "$as_me: failed program was:" >&5
35396 sed 's/^/| /' conftest.$ac_ext >&5
35398 ac_header_preproc=no
35400 rm -f conftest.err conftest.$ac_ext
35401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35402 echo "${ECHO_T}$ac_header_preproc" >&6
35404 # So? What about this header?
35405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35411 ac_header_preproc=yes
35414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35428 ## ------------------------------------------ ##
35429 ## Report this to the AC_PACKAGE_NAME lists. ##
35430 ## ------------------------------------------ ##
35433 sed "s/^/$as_me: WARNING: /" >&2
35436 echo "$as_me:$LINENO: checking for $ac_header" >&5
35437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35439 echo $ECHO_N "(cached) $ECHO_C" >&6
35441 eval "$as_ac_Header=\$ac_header_preproc"
35443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35448 cat >>confdefs.h <<_ACEOF
35449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35456 echo "$as_me:$LINENO: checking for db" >&5
35457 echo $ECHO_N "checking for db... $ECHO_C" >&6
35458 if test "${ol_cv_gdbm+set}" = set; then
35459 echo $ECHO_N "(cached) $ECHO_C" >&6
35462 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35469 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35470 echo "${ECHO_T}$ol_cv_gdbm" >&6
35471 if test $ol_cv_gdbm = yes ; then
35473 cat >>confdefs.h <<\_ACEOF
35474 #define HAVE_GDBM 1
35480 if test $ol_cv_gdbm = yes ; then
35482 ol_enable_ldbm_api=gdbm
35484 if test $ol_cv_lib_gdbm != yes ; then
35485 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35490 if test $ol_enable_ldbm_api = ndbm ; then
35491 echo "$as_me:$LINENO: checking for NDBM library" >&5
35492 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35493 if test "${ol_cv_lib_ndbm+set}" = set; then
35494 echo $ECHO_N "(cached) $ECHO_C" >&6
35497 echo "$as_me:$LINENO: checking for dbm_open" >&5
35498 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35499 if test "${ac_cv_func_dbm_open+set}" = set; then
35500 echo $ECHO_N "(cached) $ECHO_C" >&6
35502 cat >conftest.$ac_ext <<_ACEOF
35505 cat confdefs.h >>conftest.$ac_ext
35506 cat >>conftest.$ac_ext <<_ACEOF
35507 /* end confdefs.h. */
35508 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35510 #define dbm_open innocuous_dbm_open
35512 /* System header to define __stub macros and hopefully few prototypes,
35513 which can conflict with char dbm_open (); below.
35514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35515 <limits.h> exists even on freestanding compilers. */
35518 # include <limits.h>
35520 # include <assert.h>
35525 /* Override any gcc2 internal prototype to avoid an error. */
35530 /* We use char because int might match the return type of a gcc2
35531 builtin and then its argument prototype would still apply. */
35533 /* The GNU C library defines this for functions which it implements
35534 to always fail with ENOSYS. Some functions are actually named
35535 something starting with __ and the normal name is an alias. */
35536 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35539 char (*f) () = dbm_open;
35548 return f != dbm_open;
35553 rm -f conftest.$ac_objext conftest$ac_exeext
35554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35555 (eval $ac_link) 2>conftest.er1
35557 grep -v '^ *+' conftest.er1 >conftest.err
35559 cat conftest.err >&5
35560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561 (exit $ac_status); } &&
35562 { ac_try='test -z "$ac_c_werror_flag"
35563 || test ! -s conftest.err'
35564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35565 (eval $ac_try) 2>&5
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); }; } &&
35569 { ac_try='test -s conftest$ac_exeext'
35570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35571 (eval $ac_try) 2>&5
35573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574 (exit $ac_status); }; }; then
35575 ac_cv_func_dbm_open=yes
35577 echo "$as_me: failed program was:" >&5
35578 sed 's/^/| /' conftest.$ac_ext >&5
35580 ac_cv_func_dbm_open=no
35582 rm -f conftest.err conftest.$ac_objext \
35583 conftest$ac_exeext conftest.$ac_ext
35585 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35586 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35587 if test $ac_cv_func_dbm_open = yes; then
35591 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35592 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35593 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35594 echo $ECHO_N "(cached) $ECHO_C" >&6
35596 ac_check_lib_save_LIBS=$LIBS
35597 LIBS="-lndbm $LIBS"
35598 cat >conftest.$ac_ext <<_ACEOF
35601 cat confdefs.h >>conftest.$ac_ext
35602 cat >>conftest.$ac_ext <<_ACEOF
35603 /* end confdefs.h. */
35605 /* Override any gcc2 internal prototype to avoid an error. */
35609 /* We use char because int might match the return type of a gcc2
35610 builtin and then its argument prototype would still apply. */
35620 rm -f conftest.$ac_objext conftest$ac_exeext
35621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35622 (eval $ac_link) 2>conftest.er1
35624 grep -v '^ *+' conftest.er1 >conftest.err
35626 cat conftest.err >&5
35627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628 (exit $ac_status); } &&
35629 { ac_try='test -z "$ac_c_werror_flag"
35630 || test ! -s conftest.err'
35631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35632 (eval $ac_try) 2>&5
35634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35635 (exit $ac_status); }; } &&
35636 { ac_try='test -s conftest$ac_exeext'
35637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35638 (eval $ac_try) 2>&5
35640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35641 (exit $ac_status); }; }; then
35642 ac_cv_lib_ndbm_dbm_open=yes
35644 echo "$as_me: failed program was:" >&5
35645 sed 's/^/| /' conftest.$ac_ext >&5
35647 ac_cv_lib_ndbm_dbm_open=no
35649 rm -f conftest.err conftest.$ac_objext \
35650 conftest$ac_exeext conftest.$ac_ext
35651 LIBS=$ac_check_lib_save_LIBS
35653 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35654 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35655 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35656 ol_cv_lib_ndbm=-lndbm
35659 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35660 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35661 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35662 echo $ECHO_N "(cached) $ECHO_C" >&6
35664 ac_check_lib_save_LIBS=$LIBS
35666 cat >conftest.$ac_ext <<_ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h. */
35673 /* Override any gcc2 internal prototype to avoid an error. */
35677 /* We use char because int might match the return type of a gcc2
35678 builtin and then its argument prototype would still apply. */
35688 rm -f conftest.$ac_objext conftest$ac_exeext
35689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35690 (eval $ac_link) 2>conftest.er1
35692 grep -v '^ *+' conftest.er1 >conftest.err
35694 cat conftest.err >&5
35695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696 (exit $ac_status); } &&
35697 { ac_try='test -z "$ac_c_werror_flag"
35698 || test ! -s conftest.err'
35699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700 (eval $ac_try) 2>&5
35702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703 (exit $ac_status); }; } &&
35704 { ac_try='test -s conftest$ac_exeext'
35705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35706 (eval $ac_try) 2>&5
35708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709 (exit $ac_status); }; }; then
35710 ac_cv_lib_dbm_dbm_open=yes
35712 echo "$as_me: failed program was:" >&5
35713 sed 's/^/| /' conftest.$ac_ext >&5
35715 ac_cv_lib_dbm_dbm_open=no
35717 rm -f conftest.err conftest.$ac_objext \
35718 conftest$ac_exeext conftest.$ac_ext
35719 LIBS=$ac_check_lib_save_LIBS
35721 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35722 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35723 if test $ac_cv_lib_dbm_dbm_open = yes; then
35724 ol_cv_lib_ndbm=-ldbm
35737 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35738 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35742 for ac_header in ndbm.h
35744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35746 echo "$as_me:$LINENO: checking for $ac_header" >&5
35747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35749 echo $ECHO_N "(cached) $ECHO_C" >&6
35751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35754 # Is the header compilable?
35755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35757 cat >conftest.$ac_ext <<_ACEOF
35760 cat confdefs.h >>conftest.$ac_ext
35761 cat >>conftest.$ac_ext <<_ACEOF
35762 /* end confdefs.h. */
35763 $ac_includes_default
35764 #include <$ac_header>
35766 rm -f conftest.$ac_objext
35767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35768 (eval $ac_compile) 2>conftest.er1
35770 grep -v '^ *+' conftest.er1 >conftest.err
35772 cat conftest.err >&5
35773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774 (exit $ac_status); } &&
35775 { ac_try='test -z "$ac_c_werror_flag"
35776 || test ! -s conftest.err'
35777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35778 (eval $ac_try) 2>&5
35780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781 (exit $ac_status); }; } &&
35782 { ac_try='test -s conftest.$ac_objext'
35783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35784 (eval $ac_try) 2>&5
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); }; }; then
35788 ac_header_compiler=yes
35790 echo "$as_me: failed program was:" >&5
35791 sed 's/^/| /' conftest.$ac_ext >&5
35793 ac_header_compiler=no
35795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35797 echo "${ECHO_T}$ac_header_compiler" >&6
35799 # Is the header present?
35800 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35802 cat >conftest.$ac_ext <<_ACEOF
35805 cat confdefs.h >>conftest.$ac_ext
35806 cat >>conftest.$ac_ext <<_ACEOF
35807 /* end confdefs.h. */
35808 #include <$ac_header>
35810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35813 grep -v '^ *+' conftest.er1 >conftest.err
35815 cat conftest.err >&5
35816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817 (exit $ac_status); } >/dev/null; then
35818 if test -s conftest.err; then
35819 ac_cpp_err=$ac_c_preproc_warn_flag
35820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35827 if test -z "$ac_cpp_err"; then
35828 ac_header_preproc=yes
35830 echo "$as_me: failed program was:" >&5
35831 sed 's/^/| /' conftest.$ac_ext >&5
35833 ac_header_preproc=no
35835 rm -f conftest.err conftest.$ac_ext
35836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35837 echo "${ECHO_T}$ac_header_preproc" >&6
35839 # So? What about this header?
35840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35846 ac_header_preproc=yes
35849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35856 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35863 ## ------------------------------------------ ##
35864 ## Report this to the AC_PACKAGE_NAME lists. ##
35865 ## ------------------------------------------ ##
35868 sed "s/^/$as_me: WARNING: /" >&2
35871 echo "$as_me:$LINENO: checking for $ac_header" >&5
35872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35874 echo $ECHO_N "(cached) $ECHO_C" >&6
35876 eval "$as_ac_Header=\$ac_header_preproc"
35878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35883 cat >>confdefs.h <<_ACEOF
35884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35891 echo "$as_me:$LINENO: checking for db" >&5
35892 echo $ECHO_N "checking for db... $ECHO_C" >&6
35893 if test "${ol_cv_ndbm+set}" = set; then
35894 echo $ECHO_N "(cached) $ECHO_C" >&6
35897 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
35904 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
35905 echo "${ECHO_T}$ol_cv_ndbm" >&6
35906 if test $ol_cv_ndbm = yes ; then
35908 cat >>confdefs.h <<\_ACEOF
35909 #define HAVE_NDBM 1
35915 if test $ol_cv_ndbm = yes ; then
35917 ol_enable_ldbm_api=ndbm
35919 if test $ol_cv_lib_ndbm != yes ; then
35920 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
35925 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
35926 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
35927 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
35928 { (exit 1); exit 1; }; }
35931 if test $ol_enable_bdb = yes ||
35932 test $ol_enable_hdb = yes ||
35933 test $ol_enable_ldbm = yes ; then
35934 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
35938 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
35939 BUILD_LIBS_DYNAMIC=shared
35941 cat >>confdefs.h <<\_ACEOF
35942 #define LDAP_LIBS_DYNAMIC 1
35947 BUILD_LIBS_DYNAMIC=static
35951 if test $ol_enable_wrappers != no ; then
35953 for ac_header in tcpd.h
35955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35957 echo "$as_me:$LINENO: checking for $ac_header" >&5
35958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35960 echo $ECHO_N "(cached) $ECHO_C" >&6
35962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35965 # Is the header compilable?
35966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35968 cat >conftest.$ac_ext <<_ACEOF
35971 cat confdefs.h >>conftest.$ac_ext
35972 cat >>conftest.$ac_ext <<_ACEOF
35973 /* end confdefs.h. */
35974 $ac_includes_default
35975 #include <$ac_header>
35977 rm -f conftest.$ac_objext
35978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35979 (eval $ac_compile) 2>conftest.er1
35981 grep -v '^ *+' conftest.er1 >conftest.err
35983 cat conftest.err >&5
35984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35985 (exit $ac_status); } &&
35986 { ac_try='test -z "$ac_c_werror_flag"
35987 || test ! -s conftest.err'
35988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35989 (eval $ac_try) 2>&5
35991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35992 (exit $ac_status); }; } &&
35993 { ac_try='test -s conftest.$ac_objext'
35994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35995 (eval $ac_try) 2>&5
35997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35998 (exit $ac_status); }; }; then
35999 ac_header_compiler=yes
36001 echo "$as_me: failed program was:" >&5
36002 sed 's/^/| /' conftest.$ac_ext >&5
36004 ac_header_compiler=no
36006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36008 echo "${ECHO_T}$ac_header_compiler" >&6
36010 # Is the header present?
36011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36013 cat >conftest.$ac_ext <<_ACEOF
36016 cat confdefs.h >>conftest.$ac_ext
36017 cat >>conftest.$ac_ext <<_ACEOF
36018 /* end confdefs.h. */
36019 #include <$ac_header>
36021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36024 grep -v '^ *+' conftest.er1 >conftest.err
36026 cat conftest.err >&5
36027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36028 (exit $ac_status); } >/dev/null; then
36029 if test -s conftest.err; then
36030 ac_cpp_err=$ac_c_preproc_warn_flag
36031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36038 if test -z "$ac_cpp_err"; then
36039 ac_header_preproc=yes
36041 echo "$as_me: failed program was:" >&5
36042 sed 's/^/| /' conftest.$ac_ext >&5
36044 ac_header_preproc=no
36046 rm -f conftest.err conftest.$ac_ext
36047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36048 echo "${ECHO_T}$ac_header_preproc" >&6
36050 # So? What about this header?
36051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36057 ac_header_preproc=yes
36060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36074 ## ------------------------------------------ ##
36075 ## Report this to the AC_PACKAGE_NAME lists. ##
36076 ## ------------------------------------------ ##
36079 sed "s/^/$as_me: WARNING: /" >&2
36082 echo "$as_me:$LINENO: checking for $ac_header" >&5
36083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36085 echo $ECHO_N "(cached) $ECHO_C" >&6
36087 eval "$as_ac_Header=\$ac_header_preproc"
36089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36094 cat >>confdefs.h <<_ACEOF
36095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36098 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36099 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36101 LIBS="$LIBS -lwrap"
36102 cat >conftest.$ac_ext <<_ACEOF
36105 cat confdefs.h >>conftest.$ac_ext
36106 cat >>conftest.$ac_ext <<_ACEOF
36107 /* end confdefs.h. */
36110 int allow_severity = 0;
36111 int deny_severity = 0;
36113 struct request_info *req;
36125 rm -f conftest.$ac_objext conftest$ac_exeext
36126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36127 (eval $ac_link) 2>conftest.er1
36129 grep -v '^ *+' conftest.er1 >conftest.err
36131 cat conftest.err >&5
36132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); } &&
36134 { ac_try='test -z "$ac_c_werror_flag"
36135 || test ! -s conftest.err'
36136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36137 (eval $ac_try) 2>&5
36139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140 (exit $ac_status); }; } &&
36141 { ac_try='test -s conftest$ac_exeext'
36142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36143 (eval $ac_try) 2>&5
36145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36146 (exit $ac_status); }; }; then
36147 echo "$as_me:$LINENO: result: -lwrap" >&5
36148 echo "${ECHO_T}-lwrap" >&6
36152 echo "$as_me: failed program was:" >&5
36153 sed 's/^/| /' conftest.$ac_ext >&5
36157 cat >conftest.$ac_ext <<_ACEOF
36160 cat confdefs.h >>conftest.$ac_ext
36161 cat >>conftest.$ac_ext <<_ACEOF
36162 /* end confdefs.h. */
36165 int allow_severity = 0;
36166 int deny_severity = 0;
36168 struct request_info *req;
36180 rm -f conftest.$ac_objext conftest$ac_exeext
36181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36182 (eval $ac_link) 2>conftest.er1
36184 grep -v '^ *+' conftest.er1 >conftest.err
36186 cat conftest.err >&5
36187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188 (exit $ac_status); } &&
36189 { ac_try='test -z "$ac_c_werror_flag"
36190 || test ! -s conftest.err'
36191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36192 (eval $ac_try) 2>&5
36194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36195 (exit $ac_status); }; } &&
36196 { ac_try='test -s conftest$ac_exeext'
36197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36198 (eval $ac_try) 2>&5
36200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36201 (exit $ac_status); }; }; then
36202 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36203 echo "${ECHO_T}-lwrap -lnsl" >&6
36205 LIBS="$save_LIBS -lnsl"
36207 echo "$as_me: failed program was:" >&5
36208 sed 's/^/| /' conftest.$ac_ext >&5
36211 echo "$as_me:$LINENO: result: no" >&5
36212 echo "${ECHO_T}no" >&6
36216 rm -f conftest.err conftest.$ac_objext \
36217 conftest$ac_exeext conftest.$ac_ext
36219 rm -f conftest.err conftest.$ac_objext \
36220 conftest$ac_exeext conftest.$ac_ext
36228 if test $have_wrappers = yes ; then
36230 cat >>confdefs.h <<\_ACEOF
36231 #define HAVE_TCPD 1
36235 elif test $ol_enable_wrappers = yes ; then
36236 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36237 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36238 { (exit 1); exit 1; }; }
36240 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36241 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36246 if test $ol_enable_syslog != no ; then
36247 echo "$as_me:$LINENO: checking for openlog" >&5
36248 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36249 if test "${ac_cv_func_openlog+set}" = set; then
36250 echo $ECHO_N "(cached) $ECHO_C" >&6
36252 cat >conftest.$ac_ext <<_ACEOF
36255 cat confdefs.h >>conftest.$ac_ext
36256 cat >>conftest.$ac_ext <<_ACEOF
36257 /* end confdefs.h. */
36258 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36260 #define openlog innocuous_openlog
36262 /* System header to define __stub macros and hopefully few prototypes,
36263 which can conflict with char openlog (); below.
36264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36265 <limits.h> exists even on freestanding compilers. */
36268 # include <limits.h>
36270 # include <assert.h>
36275 /* Override any gcc2 internal prototype to avoid an error. */
36280 /* We use char because int might match the return type of a gcc2
36281 builtin and then its argument prototype would still apply. */
36283 /* The GNU C library defines this for functions which it implements
36284 to always fail with ENOSYS. Some functions are actually named
36285 something starting with __ and the normal name is an alias. */
36286 #if defined (__stub_openlog) || defined (__stub___openlog)
36289 char (*f) () = openlog;
36298 return f != openlog;
36303 rm -f conftest.$ac_objext conftest$ac_exeext
36304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36305 (eval $ac_link) 2>conftest.er1
36307 grep -v '^ *+' conftest.er1 >conftest.err
36309 cat conftest.err >&5
36310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36311 (exit $ac_status); } &&
36312 { ac_try='test -z "$ac_c_werror_flag"
36313 || test ! -s conftest.err'
36314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36315 (eval $ac_try) 2>&5
36317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318 (exit $ac_status); }; } &&
36319 { ac_try='test -s conftest$ac_exeext'
36320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36321 (eval $ac_try) 2>&5
36323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36324 (exit $ac_status); }; }; then
36325 ac_cv_func_openlog=yes
36327 echo "$as_me: failed program was:" >&5
36328 sed 's/^/| /' conftest.$ac_ext >&5
36330 ac_cv_func_openlog=no
36332 rm -f conftest.err conftest.$ac_objext \
36333 conftest$ac_exeext conftest.$ac_ext
36335 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36336 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36338 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36339 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36340 echo "$as_me: error: could not find syslog" >&2;}
36341 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36343 ol_enable_syslog=$ac_cv_func_openlog
36347 if test $ol_enable_sql != no ; then
36350 for ac_header in sql.h sqlext.h
36352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36354 echo "$as_me:$LINENO: checking for $ac_header" >&5
36355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36357 echo $ECHO_N "(cached) $ECHO_C" >&6
36359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36362 # Is the header compilable?
36363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36365 cat >conftest.$ac_ext <<_ACEOF
36368 cat confdefs.h >>conftest.$ac_ext
36369 cat >>conftest.$ac_ext <<_ACEOF
36370 /* end confdefs.h. */
36371 $ac_includes_default
36372 #include <$ac_header>
36374 rm -f conftest.$ac_objext
36375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36376 (eval $ac_compile) 2>conftest.er1
36378 grep -v '^ *+' conftest.er1 >conftest.err
36380 cat conftest.err >&5
36381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36382 (exit $ac_status); } &&
36383 { ac_try='test -z "$ac_c_werror_flag"
36384 || test ! -s conftest.err'
36385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36386 (eval $ac_try) 2>&5
36388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389 (exit $ac_status); }; } &&
36390 { ac_try='test -s conftest.$ac_objext'
36391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36392 (eval $ac_try) 2>&5
36394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36395 (exit $ac_status); }; }; then
36396 ac_header_compiler=yes
36398 echo "$as_me: failed program was:" >&5
36399 sed 's/^/| /' conftest.$ac_ext >&5
36401 ac_header_compiler=no
36403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36405 echo "${ECHO_T}$ac_header_compiler" >&6
36407 # Is the header present?
36408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36410 cat >conftest.$ac_ext <<_ACEOF
36413 cat confdefs.h >>conftest.$ac_ext
36414 cat >>conftest.$ac_ext <<_ACEOF
36415 /* end confdefs.h. */
36416 #include <$ac_header>
36418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36421 grep -v '^ *+' conftest.er1 >conftest.err
36423 cat conftest.err >&5
36424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425 (exit $ac_status); } >/dev/null; then
36426 if test -s conftest.err; then
36427 ac_cpp_err=$ac_c_preproc_warn_flag
36428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36435 if test -z "$ac_cpp_err"; then
36436 ac_header_preproc=yes
36438 echo "$as_me: failed program was:" >&5
36439 sed 's/^/| /' conftest.$ac_ext >&5
36441 ac_header_preproc=no
36443 rm -f conftest.err conftest.$ac_ext
36444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36445 echo "${ECHO_T}$ac_header_preproc" >&6
36447 # So? What about this header?
36448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36454 ac_header_preproc=yes
36457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36471 ## ------------------------------------------ ##
36472 ## Report this to the AC_PACKAGE_NAME lists. ##
36473 ## ------------------------------------------ ##
36476 sed "s/^/$as_me: WARNING: /" >&2
36479 echo "$as_me:$LINENO: checking for $ac_header" >&5
36480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36482 echo $ECHO_N "(cached) $ECHO_C" >&6
36484 eval "$as_ac_Header=\$ac_header_preproc"
36486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36491 cat >>confdefs.h <<_ACEOF
36492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36497 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36498 echo "$as_me: error: could not locate SQL headers" >&2;}
36499 { (exit 1); exit 1; }; }
36507 LIBS="$LTHREAD_LIBS"
36509 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36510 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36511 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36512 echo $ECHO_N "(cached) $ECHO_C" >&6
36514 ac_check_lib_save_LIBS=$LIBS
36515 LIBS="-liodbc $LIBS"
36516 cat >conftest.$ac_ext <<_ACEOF
36519 cat confdefs.h >>conftest.$ac_ext
36520 cat >>conftest.$ac_ext <<_ACEOF
36521 /* end confdefs.h. */
36523 /* Override any gcc2 internal prototype to avoid an error. */
36527 /* We use char because int might match the return type of a gcc2
36528 builtin and then its argument prototype would still apply. */
36529 char SQLDriverConnect ();
36533 SQLDriverConnect ();
36538 rm -f conftest.$ac_objext conftest$ac_exeext
36539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36540 (eval $ac_link) 2>conftest.er1
36542 grep -v '^ *+' conftest.er1 >conftest.err
36544 cat conftest.err >&5
36545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546 (exit $ac_status); } &&
36547 { ac_try='test -z "$ac_c_werror_flag"
36548 || test ! -s conftest.err'
36549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36550 (eval $ac_try) 2>&5
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); }; } &&
36554 { ac_try='test -s conftest$ac_exeext'
36555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36556 (eval $ac_try) 2>&5
36558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36559 (exit $ac_status); }; }; then
36560 ac_cv_lib_iodbc_SQLDriverConnect=yes
36562 echo "$as_me: failed program was:" >&5
36563 sed 's/^/| /' conftest.$ac_ext >&5
36565 ac_cv_lib_iodbc_SQLDriverConnect=no
36567 rm -f conftest.err conftest.$ac_objext \
36568 conftest$ac_exeext conftest.$ac_ext
36569 LIBS=$ac_check_lib_save_LIBS
36571 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36572 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36573 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36579 if test $have_iodbc = yes ; then
36580 ol_link_sql="-liodbc"
36582 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36583 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36584 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36585 echo $ECHO_N "(cached) $ECHO_C" >&6
36587 ac_check_lib_save_LIBS=$LIBS
36588 LIBS="-lodbc $LIBS"
36589 cat >conftest.$ac_ext <<_ACEOF
36592 cat confdefs.h >>conftest.$ac_ext
36593 cat >>conftest.$ac_ext <<_ACEOF
36594 /* end confdefs.h. */
36596 /* Override any gcc2 internal prototype to avoid an error. */
36600 /* We use char because int might match the return type of a gcc2
36601 builtin and then its argument prototype would still apply. */
36602 char SQLDriverConnect ();
36606 SQLDriverConnect ();
36611 rm -f conftest.$ac_objext conftest$ac_exeext
36612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36613 (eval $ac_link) 2>conftest.er1
36615 grep -v '^ *+' conftest.er1 >conftest.err
36617 cat conftest.err >&5
36618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36619 (exit $ac_status); } &&
36620 { ac_try='test -z "$ac_c_werror_flag"
36621 || test ! -s conftest.err'
36622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36623 (eval $ac_try) 2>&5
36625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36626 (exit $ac_status); }; } &&
36627 { ac_try='test -s conftest$ac_exeext'
36628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36629 (eval $ac_try) 2>&5
36631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36632 (exit $ac_status); }; }; then
36633 ac_cv_lib_odbc_SQLDriverConnect=yes
36635 echo "$as_me: failed program was:" >&5
36636 sed 's/^/| /' conftest.$ac_ext >&5
36638 ac_cv_lib_odbc_SQLDriverConnect=no
36640 rm -f conftest.err conftest.$ac_objext \
36641 conftest$ac_exeext conftest.$ac_ext
36642 LIBS=$ac_check_lib_save_LIBS
36644 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36645 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36646 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36652 if test $have_odbc = yes ; then
36653 ol_link_sql="-lodbc"
36659 if test $ol_link_sql != no ; then
36660 SLAPD_SQL_LIBS="$ol_link_sql"
36662 elif test $ol_enable_sql != auto ; then
36663 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36664 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36665 { (exit 1); exit 1; }; }
36671 for ac_header in unicode/utypes.h
36673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36675 echo "$as_me:$LINENO: checking for $ac_header" >&5
36676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36678 echo $ECHO_N "(cached) $ECHO_C" >&6
36680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36683 # Is the header compilable?
36684 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36686 cat >conftest.$ac_ext <<_ACEOF
36689 cat confdefs.h >>conftest.$ac_ext
36690 cat >>conftest.$ac_ext <<_ACEOF
36691 /* end confdefs.h. */
36692 $ac_includes_default
36693 #include <$ac_header>
36695 rm -f conftest.$ac_objext
36696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36697 (eval $ac_compile) 2>conftest.er1
36699 grep -v '^ *+' conftest.er1 >conftest.err
36701 cat conftest.err >&5
36702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36703 (exit $ac_status); } &&
36704 { ac_try='test -z "$ac_c_werror_flag"
36705 || test ! -s conftest.err'
36706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36707 (eval $ac_try) 2>&5
36709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710 (exit $ac_status); }; } &&
36711 { ac_try='test -s conftest.$ac_objext'
36712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36713 (eval $ac_try) 2>&5
36715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36716 (exit $ac_status); }; }; then
36717 ac_header_compiler=yes
36719 echo "$as_me: failed program was:" >&5
36720 sed 's/^/| /' conftest.$ac_ext >&5
36722 ac_header_compiler=no
36724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36725 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36726 echo "${ECHO_T}$ac_header_compiler" >&6
36728 # Is the header present?
36729 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36731 cat >conftest.$ac_ext <<_ACEOF
36734 cat confdefs.h >>conftest.$ac_ext
36735 cat >>conftest.$ac_ext <<_ACEOF
36736 /* end confdefs.h. */
36737 #include <$ac_header>
36739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36742 grep -v '^ *+' conftest.er1 >conftest.err
36744 cat conftest.err >&5
36745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36746 (exit $ac_status); } >/dev/null; then
36747 if test -s conftest.err; then
36748 ac_cpp_err=$ac_c_preproc_warn_flag
36749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36756 if test -z "$ac_cpp_err"; then
36757 ac_header_preproc=yes
36759 echo "$as_me: failed program was:" >&5
36760 sed 's/^/| /' conftest.$ac_ext >&5
36762 ac_header_preproc=no
36764 rm -f conftest.err conftest.$ac_ext
36765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36766 echo "${ECHO_T}$ac_header_preproc" >&6
36768 # So? What about this header?
36769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36775 ac_header_preproc=yes
36778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36792 ## ------------------------------------------ ##
36793 ## Report this to the AC_PACKAGE_NAME lists. ##
36794 ## ------------------------------------------ ##
36797 sed "s/^/$as_me: WARNING: /" >&2
36800 echo "$as_me:$LINENO: checking for $ac_header" >&5
36801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36803 echo $ECHO_N "(cached) $ECHO_C" >&6
36805 eval "$as_ac_Header=\$ac_header_preproc"
36807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36812 cat >>confdefs.h <<_ACEOF
36813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36820 if test $ac_cv_header_unicode_utypes_h = yes ; then
36821 OL_ICULIBS="-licuuc -licudata"
36823 echo "$as_me:$LINENO: checking for ICU libraries" >&5
36824 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
36825 if test "${ol_cv_lib_icu+set}" = set; then
36826 echo $ECHO_N "(cached) $ECHO_C" >&6
36830 LIBS="$OL_ICULIBS $LIBS"
36831 cat >conftest.$ac_ext <<_ACEOF
36834 cat confdefs.h >>conftest.$ac_ext
36835 cat >>conftest.$ac_ext <<_ACEOF
36836 /* end confdefs.h. */
36838 #include <unicode/utypes.h>
36844 (void) u_errorName(0);
36850 rm -f conftest.$ac_objext conftest$ac_exeext
36851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36852 (eval $ac_link) 2>conftest.er1
36854 grep -v '^ *+' conftest.er1 >conftest.err
36856 cat conftest.err >&5
36857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36858 (exit $ac_status); } &&
36859 { ac_try='test -z "$ac_c_werror_flag"
36860 || test ! -s conftest.err'
36861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36862 (eval $ac_try) 2>&5
36864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36865 (exit $ac_status); }; } &&
36866 { ac_try='test -s conftest$ac_exeext'
36867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36868 (eval $ac_try) 2>&5
36870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36871 (exit $ac_status); }; }; then
36874 echo "$as_me: failed program was:" >&5
36875 sed 's/^/| /' conftest.$ac_ext >&5
36879 rm -f conftest.err conftest.$ac_objext \
36880 conftest$ac_exeext conftest.$ac_ext
36884 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
36885 echo "${ECHO_T}$ol_cv_lib_icu" >&6
36887 if test $ol_cv_lib_icu != no ; then
36888 ol_icu="$OL_ICULIBS"
36890 cat >>confdefs.h <<\_ACEOF
36897 if test "$ol_icu" = no ; then
36898 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
36899 echo "$as_me: WARNING: ICU not available" >&2;}
36906 if test $ol_with_cyrus_sasl != no ; then
36909 for ac_header in sasl/sasl.h sasl.h
36911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36913 echo "$as_me:$LINENO: checking for $ac_header" >&5
36914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36916 echo $ECHO_N "(cached) $ECHO_C" >&6
36918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36921 # Is the header compilable?
36922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36924 cat >conftest.$ac_ext <<_ACEOF
36927 cat confdefs.h >>conftest.$ac_ext
36928 cat >>conftest.$ac_ext <<_ACEOF
36929 /* end confdefs.h. */
36930 $ac_includes_default
36931 #include <$ac_header>
36933 rm -f conftest.$ac_objext
36934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36935 (eval $ac_compile) 2>conftest.er1
36937 grep -v '^ *+' conftest.er1 >conftest.err
36939 cat conftest.err >&5
36940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36941 (exit $ac_status); } &&
36942 { ac_try='test -z "$ac_c_werror_flag"
36943 || test ! -s conftest.err'
36944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36945 (eval $ac_try) 2>&5
36947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36948 (exit $ac_status); }; } &&
36949 { ac_try='test -s conftest.$ac_objext'
36950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36951 (eval $ac_try) 2>&5
36953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954 (exit $ac_status); }; }; then
36955 ac_header_compiler=yes
36957 echo "$as_me: failed program was:" >&5
36958 sed 's/^/| /' conftest.$ac_ext >&5
36960 ac_header_compiler=no
36962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36964 echo "${ECHO_T}$ac_header_compiler" >&6
36966 # Is the header present?
36967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36969 cat >conftest.$ac_ext <<_ACEOF
36972 cat confdefs.h >>conftest.$ac_ext
36973 cat >>conftest.$ac_ext <<_ACEOF
36974 /* end confdefs.h. */
36975 #include <$ac_header>
36977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36980 grep -v '^ *+' conftest.er1 >conftest.err
36982 cat conftest.err >&5
36983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36984 (exit $ac_status); } >/dev/null; then
36985 if test -s conftest.err; then
36986 ac_cpp_err=$ac_c_preproc_warn_flag
36987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36994 if test -z "$ac_cpp_err"; then
36995 ac_header_preproc=yes
36997 echo "$as_me: failed program was:" >&5
36998 sed 's/^/| /' conftest.$ac_ext >&5
37000 ac_header_preproc=no
37002 rm -f conftest.err conftest.$ac_ext
37003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37004 echo "${ECHO_T}$ac_header_preproc" >&6
37006 # So? What about this header?
37007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37013 ac_header_preproc=yes
37016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37030 ## ------------------------------------------ ##
37031 ## Report this to the AC_PACKAGE_NAME lists. ##
37032 ## ------------------------------------------ ##
37035 sed "s/^/$as_me: WARNING: /" >&2
37038 echo "$as_me:$LINENO: checking for $ac_header" >&5
37039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37041 echo $ECHO_N "(cached) $ECHO_C" >&6
37043 eval "$as_ac_Header=\$ac_header_preproc"
37045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37050 cat >>confdefs.h <<_ACEOF
37051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37059 if test $ac_cv_header_sasl_sasl_h = yes ||
37060 test $ac_cv_header_sasl_h = yes; then
37061 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37062 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37063 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37064 echo $ECHO_N "(cached) $ECHO_C" >&6
37066 ac_check_lib_save_LIBS=$LIBS
37067 LIBS="-lsasl2 $LIBS"
37068 cat >conftest.$ac_ext <<_ACEOF
37071 cat confdefs.h >>conftest.$ac_ext
37072 cat >>conftest.$ac_ext <<_ACEOF
37073 /* end confdefs.h. */
37075 /* Override any gcc2 internal prototype to avoid an error. */
37079 /* We use char because int might match the return type of a gcc2
37080 builtin and then its argument prototype would still apply. */
37081 char sasl_client_init ();
37085 sasl_client_init ();
37090 rm -f conftest.$ac_objext conftest$ac_exeext
37091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37092 (eval $ac_link) 2>conftest.er1
37094 grep -v '^ *+' conftest.er1 >conftest.err
37096 cat conftest.err >&5
37097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37098 (exit $ac_status); } &&
37099 { ac_try='test -z "$ac_c_werror_flag"
37100 || test ! -s conftest.err'
37101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37102 (eval $ac_try) 2>&5
37104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105 (exit $ac_status); }; } &&
37106 { ac_try='test -s conftest$ac_exeext'
37107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37108 (eval $ac_try) 2>&5
37110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111 (exit $ac_status); }; }; then
37112 ac_cv_lib_sasl2_sasl_client_init=yes
37114 echo "$as_me: failed program was:" >&5
37115 sed 's/^/| /' conftest.$ac_ext >&5
37117 ac_cv_lib_sasl2_sasl_client_init=no
37119 rm -f conftest.err conftest.$ac_objext \
37120 conftest$ac_exeext conftest.$ac_ext
37121 LIBS=$ac_check_lib_save_LIBS
37123 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37124 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37125 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37126 ol_link_sasl="-lsasl2"
37128 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37129 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37130 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37131 echo $ECHO_N "(cached) $ECHO_C" >&6
37133 ac_check_lib_save_LIBS=$LIBS
37134 LIBS="-lsasl $LIBS"
37135 cat >conftest.$ac_ext <<_ACEOF
37138 cat confdefs.h >>conftest.$ac_ext
37139 cat >>conftest.$ac_ext <<_ACEOF
37140 /* end confdefs.h. */
37142 /* Override any gcc2 internal prototype to avoid an error. */
37146 /* We use char because int might match the return type of a gcc2
37147 builtin and then its argument prototype would still apply. */
37148 char sasl_client_init ();
37152 sasl_client_init ();
37157 rm -f conftest.$ac_objext conftest$ac_exeext
37158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37159 (eval $ac_link) 2>conftest.er1
37161 grep -v '^ *+' conftest.er1 >conftest.err
37163 cat conftest.err >&5
37164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37165 (exit $ac_status); } &&
37166 { ac_try='test -z "$ac_c_werror_flag"
37167 || test ! -s conftest.err'
37168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37169 (eval $ac_try) 2>&5
37171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37172 (exit $ac_status); }; } &&
37173 { ac_try='test -s conftest$ac_exeext'
37174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37175 (eval $ac_try) 2>&5
37177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37178 (exit $ac_status); }; }; then
37179 ac_cv_lib_sasl_sasl_client_init=yes
37181 echo "$as_me: failed program was:" >&5
37182 sed 's/^/| /' conftest.$ac_ext >&5
37184 ac_cv_lib_sasl_sasl_client_init=no
37186 rm -f conftest.err conftest.$ac_objext \
37187 conftest$ac_exeext conftest.$ac_ext
37188 LIBS=$ac_check_lib_save_LIBS
37190 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37191 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37192 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37193 ol_link_sasl="-lsasl"
37200 if test $ol_link_sasl = no ; then
37201 if test $ol_with_cyrus_sasl != auto ; then
37202 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37203 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37204 { (exit 1); exit 1; }; }
37206 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37207 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37208 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37209 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37210 if test $ol_link_tls = no ; then
37211 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37212 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37216 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37217 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37218 if test "${ol_cv_sasl_compat+set}" = set; then
37219 echo $ECHO_N "(cached) $ECHO_C" >&6
37222 cat >conftest.$ac_ext <<_ACEOF
37225 cat confdefs.h >>conftest.$ac_ext
37226 cat >>conftest.$ac_ext <<_ACEOF
37227 /* end confdefs.h. */
37229 #ifdef HAVE_SASL_SASL_H
37230 #include <sasl/sasl.h>
37235 /* Require 2.1.15+ */
37236 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
37237 char *__sasl_compat = "2.2+ or better okay (we guess)";
37238 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
37239 && SASL_VERSION_STEP >=15
37240 char *__sasl_compat = "2.1.15+ or better okay";
37244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37245 $EGREP "__sasl_compat" >/dev/null 2>&1; then
37246 ol_cv_sasl_compat=yes
37248 ol_cv_sasl_compat=no
37253 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37254 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37256 if test $ol_cv_sasl_compat = no ; then
37258 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37259 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37260 { (exit 1); exit 1; }; }
37264 cat >>confdefs.h <<\_ACEOF
37265 #define HAVE_CYRUS_SASL 1
37268 SASL_LIBS="$ol_link_sasl"
37269 if test $ol_enable_spasswd != no ; then
37270 ol_link_spasswd=yes
37273 ac_save_LIBS="$LIBS"
37274 LIBS="$LIBS $ol_link_sasl"
37275 echo "$as_me:$LINENO: checking for sasl_version" >&5
37276 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37277 if test "${ac_cv_func_sasl_version+set}" = set; then
37278 echo $ECHO_N "(cached) $ECHO_C" >&6
37280 cat >conftest.$ac_ext <<_ACEOF
37283 cat confdefs.h >>conftest.$ac_ext
37284 cat >>conftest.$ac_ext <<_ACEOF
37285 /* end confdefs.h. */
37286 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37288 #define sasl_version innocuous_sasl_version
37290 /* System header to define __stub macros and hopefully few prototypes,
37291 which can conflict with char sasl_version (); below.
37292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37293 <limits.h> exists even on freestanding compilers. */
37296 # include <limits.h>
37298 # include <assert.h>
37301 #undef sasl_version
37303 /* Override any gcc2 internal prototype to avoid an error. */
37308 /* We use char because int might match the return type of a gcc2
37309 builtin and then its argument prototype would still apply. */
37310 char sasl_version ();
37311 /* The GNU C library defines this for functions which it implements
37312 to always fail with ENOSYS. Some functions are actually named
37313 something starting with __ and the normal name is an alias. */
37314 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37317 char (*f) () = sasl_version;
37326 return f != sasl_version;
37331 rm -f conftest.$ac_objext conftest$ac_exeext
37332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37333 (eval $ac_link) 2>conftest.er1
37335 grep -v '^ *+' conftest.er1 >conftest.err
37337 cat conftest.err >&5
37338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339 (exit $ac_status); } &&
37340 { ac_try='test -z "$ac_c_werror_flag"
37341 || test ! -s conftest.err'
37342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37343 (eval $ac_try) 2>&5
37345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37346 (exit $ac_status); }; } &&
37347 { ac_try='test -s conftest$ac_exeext'
37348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37349 (eval $ac_try) 2>&5
37351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37352 (exit $ac_status); }; }; then
37353 ac_cv_func_sasl_version=yes
37355 echo "$as_me: failed program was:" >&5
37356 sed 's/^/| /' conftest.$ac_ext >&5
37358 ac_cv_func_sasl_version=no
37360 rm -f conftest.err conftest.$ac_objext \
37361 conftest$ac_exeext conftest.$ac_ext
37363 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37364 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37365 if test $ac_cv_func_sasl_version = yes; then
37367 cat >>confdefs.h <<\_ACEOF
37368 #define HAVE_SASL_VERSION 1
37373 LIBS="$ac_save_LIBS"
37379 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37380 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37381 if test $ol_link_tls = no ; then
37382 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37383 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37387 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37389 if test -r /dev/urandom ; then
37390 dev="/dev/urandom";
37391 elif test -r /idev/urandom ; then
37392 dev="/idev/urandom";
37393 elif test -r /dev/srandom ; then
37394 dev="/dev/srandom";
37395 elif test -r /dev/random ; then
37397 elif test -r /idev/random ; then
37398 dev="/idev/random";
37401 if test $dev != no ; then
37403 cat >>confdefs.h <<_ACEOF
37404 #define URANDOM_DEVICE "$dev"
37411 if test $ol_with_fetch != no ; then
37413 LIBS="-lfetch -lcom_err $LIBS"
37414 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37415 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37416 if test "${ol_cv_lib_fetch+set}" = set; then
37417 echo $ECHO_N "(cached) $ECHO_C" >&6
37420 cat >conftest.$ac_ext <<_ACEOF
37423 cat confdefs.h >>conftest.$ac_ext
37424 cat >>conftest.$ac_ext <<_ACEOF
37425 /* end confdefs.h. */
37427 #include <sys/param.h>
37433 struct url *u = fetchParseURL("file:///");
37438 rm -f conftest.$ac_objext conftest$ac_exeext
37439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37440 (eval $ac_link) 2>conftest.er1
37442 grep -v '^ *+' conftest.er1 >conftest.err
37444 cat conftest.err >&5
37445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37446 (exit $ac_status); } &&
37447 { ac_try='test -z "$ac_c_werror_flag"
37448 || test ! -s conftest.err'
37449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37450 (eval $ac_try) 2>&5
37452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453 (exit $ac_status); }; } &&
37454 { ac_try='test -s conftest$ac_exeext'
37455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37456 (eval $ac_try) 2>&5
37458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459 (exit $ac_status); }; }; then
37460 ol_cv_lib_fetch=yes
37462 echo "$as_me: failed program was:" >&5
37463 sed 's/^/| /' conftest.$ac_ext >&5
37467 rm -f conftest.err conftest.$ac_objext \
37468 conftest$ac_exeext conftest.$ac_ext
37470 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37471 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37473 if test $ol_cv_lib_fetch != no ; then
37474 ol_link_fetch="-lfetch -lcom_err"
37476 cat >>confdefs.h <<\_ACEOF
37477 #define HAVE_FETCH 1
37483 if test $ol_cv_lib_fetch != no ; then
37484 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37485 ol_link_fetch=freebsd
37487 elif test $ol_with_fetch != auto ; then
37488 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37489 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37490 { (exit 1); exit 1; }; }
37494 if test $ol_enable_crypt != no ; then
37496 LIBS="$TLS_LIBS $LIBS"
37498 echo "$as_me:$LINENO: checking for crypt" >&5
37499 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37500 if test "${ac_cv_func_crypt+set}" = set; then
37501 echo $ECHO_N "(cached) $ECHO_C" >&6
37503 cat >conftest.$ac_ext <<_ACEOF
37506 cat confdefs.h >>conftest.$ac_ext
37507 cat >>conftest.$ac_ext <<_ACEOF
37508 /* end confdefs.h. */
37509 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37511 #define crypt innocuous_crypt
37513 /* System header to define __stub macros and hopefully few prototypes,
37514 which can conflict with char crypt (); below.
37515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37516 <limits.h> exists even on freestanding compilers. */
37519 # include <limits.h>
37521 # include <assert.h>
37526 /* Override any gcc2 internal prototype to avoid an error. */
37531 /* We use char because int might match the return type of a gcc2
37532 builtin and then its argument prototype would still apply. */
37534 /* The GNU C library defines this for functions which it implements
37535 to always fail with ENOSYS. Some functions are actually named
37536 something starting with __ and the normal name is an alias. */
37537 #if defined (__stub_crypt) || defined (__stub___crypt)
37540 char (*f) () = crypt;
37554 rm -f conftest.$ac_objext conftest$ac_exeext
37555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37556 (eval $ac_link) 2>conftest.er1
37558 grep -v '^ *+' conftest.er1 >conftest.err
37560 cat conftest.err >&5
37561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37562 (exit $ac_status); } &&
37563 { ac_try='test -z "$ac_c_werror_flag"
37564 || test ! -s conftest.err'
37565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37566 (eval $ac_try) 2>&5
37568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37569 (exit $ac_status); }; } &&
37570 { ac_try='test -s conftest$ac_exeext'
37571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37572 (eval $ac_try) 2>&5
37574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37575 (exit $ac_status); }; }; then
37576 ac_cv_func_crypt=yes
37578 echo "$as_me: failed program was:" >&5
37579 sed 's/^/| /' conftest.$ac_ext >&5
37581 ac_cv_func_crypt=no
37583 rm -f conftest.err conftest.$ac_objext \
37584 conftest$ac_exeext conftest.$ac_ext
37586 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37587 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37588 if test $ac_cv_func_crypt = yes; then
37593 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37594 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37595 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37596 echo $ECHO_N "(cached) $ECHO_C" >&6
37598 ac_check_lib_save_LIBS=$LIBS
37599 LIBS="-lcrypt $LIBS"
37600 cat >conftest.$ac_ext <<_ACEOF
37603 cat confdefs.h >>conftest.$ac_ext
37604 cat >>conftest.$ac_ext <<_ACEOF
37605 /* end confdefs.h. */
37607 /* Override any gcc2 internal prototype to avoid an error. */
37611 /* We use char because int might match the return type of a gcc2
37612 builtin and then its argument prototype would still apply. */
37622 rm -f conftest.$ac_objext conftest$ac_exeext
37623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37624 (eval $ac_link) 2>conftest.er1
37626 grep -v '^ *+' conftest.er1 >conftest.err
37628 cat conftest.err >&5
37629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630 (exit $ac_status); } &&
37631 { ac_try='test -z "$ac_c_werror_flag"
37632 || test ! -s conftest.err'
37633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37634 (eval $ac_try) 2>&5
37636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37637 (exit $ac_status); }; } &&
37638 { ac_try='test -s conftest$ac_exeext'
37639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37640 (eval $ac_try) 2>&5
37642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643 (exit $ac_status); }; }; then
37644 ac_cv_lib_crypt_crypt=yes
37646 echo "$as_me: failed program was:" >&5
37647 sed 's/^/| /' conftest.$ac_ext >&5
37649 ac_cv_lib_crypt_crypt=no
37651 rm -f conftest.err conftest.$ac_objext \
37652 conftest$ac_exeext conftest.$ac_ext
37653 LIBS=$ac_check_lib_save_LIBS
37655 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37656 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37657 if test $ac_cv_lib_crypt_crypt = yes; then
37658 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37669 if test $have_crypt = yes ; then
37671 cat >>confdefs.h <<\_ACEOF
37672 #define HAVE_CRYPT 1
37676 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37677 echo "$as_me: WARNING: could not find crypt" >&2;}
37678 if test $ol_enable_crypt = yes ; then
37679 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37680 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37681 { (exit 1); exit 1; }; }
37684 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37685 echo "$as_me: WARNING: disabling crypt support" >&2;}
37690 if test $ol_enable_proctitle != no ; then
37691 echo "$as_me:$LINENO: checking for setproctitle" >&5
37692 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37693 if test "${ac_cv_func_setproctitle+set}" = set; then
37694 echo $ECHO_N "(cached) $ECHO_C" >&6
37696 cat >conftest.$ac_ext <<_ACEOF
37699 cat confdefs.h >>conftest.$ac_ext
37700 cat >>conftest.$ac_ext <<_ACEOF
37701 /* end confdefs.h. */
37702 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37704 #define setproctitle innocuous_setproctitle
37706 /* System header to define __stub macros and hopefully few prototypes,
37707 which can conflict with char setproctitle (); below.
37708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37709 <limits.h> exists even on freestanding compilers. */
37712 # include <limits.h>
37714 # include <assert.h>
37717 #undef setproctitle
37719 /* Override any gcc2 internal prototype to avoid an error. */
37724 /* We use char because int might match the return type of a gcc2
37725 builtin and then its argument prototype would still apply. */
37726 char setproctitle ();
37727 /* The GNU C library defines this for functions which it implements
37728 to always fail with ENOSYS. Some functions are actually named
37729 something starting with __ and the normal name is an alias. */
37730 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37733 char (*f) () = setproctitle;
37742 return f != setproctitle;
37747 rm -f conftest.$ac_objext conftest$ac_exeext
37748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37749 (eval $ac_link) 2>conftest.er1
37751 grep -v '^ *+' conftest.er1 >conftest.err
37753 cat conftest.err >&5
37754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37755 (exit $ac_status); } &&
37756 { ac_try='test -z "$ac_c_werror_flag"
37757 || test ! -s conftest.err'
37758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37759 (eval $ac_try) 2>&5
37761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762 (exit $ac_status); }; } &&
37763 { ac_try='test -s conftest$ac_exeext'
37764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37765 (eval $ac_try) 2>&5
37767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37768 (exit $ac_status); }; }; then
37769 ac_cv_func_setproctitle=yes
37771 echo "$as_me: failed program was:" >&5
37772 sed 's/^/| /' conftest.$ac_ext >&5
37774 ac_cv_func_setproctitle=no
37776 rm -f conftest.err conftest.$ac_objext \
37777 conftest$ac_exeext conftest.$ac_ext
37779 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37780 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37781 if test $ac_cv_func_setproctitle = yes; then
37782 have_setproctitle=yes
37785 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37786 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37787 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37788 echo $ECHO_N "(cached) $ECHO_C" >&6
37790 ac_check_lib_save_LIBS=$LIBS
37791 LIBS="-lutil $LIBS"
37792 cat >conftest.$ac_ext <<_ACEOF
37795 cat confdefs.h >>conftest.$ac_ext
37796 cat >>conftest.$ac_ext <<_ACEOF
37797 /* end confdefs.h. */
37799 /* Override any gcc2 internal prototype to avoid an error. */
37803 /* We use char because int might match the return type of a gcc2
37804 builtin and then its argument prototype would still apply. */
37805 char setproctitle ();
37814 rm -f conftest.$ac_objext conftest$ac_exeext
37815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37816 (eval $ac_link) 2>conftest.er1
37818 grep -v '^ *+' conftest.er1 >conftest.err
37820 cat conftest.err >&5
37821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37822 (exit $ac_status); } &&
37823 { ac_try='test -z "$ac_c_werror_flag"
37824 || test ! -s conftest.err'
37825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37826 (eval $ac_try) 2>&5
37828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829 (exit $ac_status); }; } &&
37830 { ac_try='test -s conftest$ac_exeext'
37831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37832 (eval $ac_try) 2>&5
37834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37835 (exit $ac_status); }; }; then
37836 ac_cv_lib_util_setproctitle=yes
37838 echo "$as_me: failed program was:" >&5
37839 sed 's/^/| /' conftest.$ac_ext >&5
37841 ac_cv_lib_util_setproctitle=no
37843 rm -f conftest.err conftest.$ac_objext \
37844 conftest$ac_exeext conftest.$ac_ext
37845 LIBS=$ac_check_lib_save_LIBS
37847 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37848 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37849 if test $ac_cv_lib_util_setproctitle = yes; then
37850 have_setproctitle=yes
37851 LUTIL_LIBS="$LUTIL_LIBS -lutil"
37853 have_setproctitle=no
37855 "setproctitle.$ac_objext" | \
37856 *" setproctitle.$ac_objext" | \
37857 "setproctitle.$ac_objext "* | \
37858 *" setproctitle.$ac_objext "* ) ;;
37859 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37862 LIBSRCS="$LIBSRCS setproctitle.c"
37868 if test $have_setproctitle = yes ; then
37870 cat >>confdefs.h <<\_ACEOF
37871 #define HAVE_SETPROCTITLE 1
37877 if test $ol_enable_slp != no ; then
37879 for ac_header in slp.h
37881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37883 echo "$as_me:$LINENO: checking for $ac_header" >&5
37884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37886 echo $ECHO_N "(cached) $ECHO_C" >&6
37888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37891 # Is the header compilable?
37892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37894 cat >conftest.$ac_ext <<_ACEOF
37897 cat confdefs.h >>conftest.$ac_ext
37898 cat >>conftest.$ac_ext <<_ACEOF
37899 /* end confdefs.h. */
37900 $ac_includes_default
37901 #include <$ac_header>
37903 rm -f conftest.$ac_objext
37904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37905 (eval $ac_compile) 2>conftest.er1
37907 grep -v '^ *+' conftest.er1 >conftest.err
37909 cat conftest.err >&5
37910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37911 (exit $ac_status); } &&
37912 { ac_try='test -z "$ac_c_werror_flag"
37913 || test ! -s conftest.err'
37914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37915 (eval $ac_try) 2>&5
37917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37918 (exit $ac_status); }; } &&
37919 { ac_try='test -s conftest.$ac_objext'
37920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37921 (eval $ac_try) 2>&5
37923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37924 (exit $ac_status); }; }; then
37925 ac_header_compiler=yes
37927 echo "$as_me: failed program was:" >&5
37928 sed 's/^/| /' conftest.$ac_ext >&5
37930 ac_header_compiler=no
37932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37934 echo "${ECHO_T}$ac_header_compiler" >&6
37936 # Is the header present?
37937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37939 cat >conftest.$ac_ext <<_ACEOF
37942 cat confdefs.h >>conftest.$ac_ext
37943 cat >>conftest.$ac_ext <<_ACEOF
37944 /* end confdefs.h. */
37945 #include <$ac_header>
37947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37950 grep -v '^ *+' conftest.er1 >conftest.err
37952 cat conftest.err >&5
37953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37954 (exit $ac_status); } >/dev/null; then
37955 if test -s conftest.err; then
37956 ac_cpp_err=$ac_c_preproc_warn_flag
37957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37964 if test -z "$ac_cpp_err"; then
37965 ac_header_preproc=yes
37967 echo "$as_me: failed program was:" >&5
37968 sed 's/^/| /' conftest.$ac_ext >&5
37970 ac_header_preproc=no
37972 rm -f conftest.err conftest.$ac_ext
37973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37974 echo "${ECHO_T}$ac_header_preproc" >&6
37976 # So? What about this header?
37977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37983 ac_header_preproc=yes
37986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37993 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38000 ## ------------------------------------------ ##
38001 ## Report this to the AC_PACKAGE_NAME lists. ##
38002 ## ------------------------------------------ ##
38005 sed "s/^/$as_me: WARNING: /" >&2
38008 echo "$as_me:$LINENO: checking for $ac_header" >&5
38009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38011 echo $ECHO_N "(cached) $ECHO_C" >&6
38013 eval "$as_ac_Header=\$ac_header_preproc"
38015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38020 cat >>confdefs.h <<_ACEOF
38021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38029 if test $ac_cv_header_slp_h = yes ; then
38030 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38031 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38032 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38033 echo $ECHO_N "(cached) $ECHO_C" >&6
38035 ac_check_lib_save_LIBS=$LIBS
38037 cat >conftest.$ac_ext <<_ACEOF
38040 cat confdefs.h >>conftest.$ac_ext
38041 cat >>conftest.$ac_ext <<_ACEOF
38042 /* end confdefs.h. */
38044 /* Override any gcc2 internal prototype to avoid an error. */
38048 /* We use char because int might match the return type of a gcc2
38049 builtin and then its argument prototype would still apply. */
38059 rm -f conftest.$ac_objext conftest$ac_exeext
38060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38061 (eval $ac_link) 2>conftest.er1
38063 grep -v '^ *+' conftest.er1 >conftest.err
38065 cat conftest.err >&5
38066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38067 (exit $ac_status); } &&
38068 { ac_try='test -z "$ac_c_werror_flag"
38069 || test ! -s conftest.err'
38070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38071 (eval $ac_try) 2>&5
38073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38074 (exit $ac_status); }; } &&
38075 { ac_try='test -s conftest$ac_exeext'
38076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38077 (eval $ac_try) 2>&5
38079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38080 (exit $ac_status); }; }; then
38081 ac_cv_lib_slp_SLPOpen=yes
38083 echo "$as_me: failed program was:" >&5
38084 sed 's/^/| /' conftest.$ac_ext >&5
38086 ac_cv_lib_slp_SLPOpen=no
38088 rm -f conftest.err conftest.$ac_objext \
38089 conftest$ac_exeext conftest.$ac_ext
38090 LIBS=$ac_check_lib_save_LIBS
38092 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38093 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38094 if test $ac_cv_lib_slp_SLPOpen = yes; then
38100 if test $have_slp = yes ; then
38102 cat >>confdefs.h <<\_ACEOF
38106 SLAPD_SLP_LIBS=-lslp
38109 elif test $ol_enable_slp = yes ; then
38110 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38111 echo "$as_me: error: SLP not found" >&2;}
38112 { (exit 1); exit 1; }; }
38116 if test "$ol_with_multiple_precision" != "no" ; then
38122 for ac_header in openssl/bn.h bn.h
38124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38126 echo "$as_me:$LINENO: checking for $ac_header" >&5
38127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38129 echo $ECHO_N "(cached) $ECHO_C" >&6
38131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38134 # Is the header compilable?
38135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38137 cat >conftest.$ac_ext <<_ACEOF
38140 cat confdefs.h >>conftest.$ac_ext
38141 cat >>conftest.$ac_ext <<_ACEOF
38142 /* end confdefs.h. */
38143 $ac_includes_default
38144 #include <$ac_header>
38146 rm -f conftest.$ac_objext
38147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38148 (eval $ac_compile) 2>conftest.er1
38150 grep -v '^ *+' conftest.er1 >conftest.err
38152 cat conftest.err >&5
38153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38154 (exit $ac_status); } &&
38155 { ac_try='test -z "$ac_c_werror_flag"
38156 || test ! -s conftest.err'
38157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38158 (eval $ac_try) 2>&5
38160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38161 (exit $ac_status); }; } &&
38162 { ac_try='test -s conftest.$ac_objext'
38163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38164 (eval $ac_try) 2>&5
38166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38167 (exit $ac_status); }; }; then
38168 ac_header_compiler=yes
38170 echo "$as_me: failed program was:" >&5
38171 sed 's/^/| /' conftest.$ac_ext >&5
38173 ac_header_compiler=no
38175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38177 echo "${ECHO_T}$ac_header_compiler" >&6
38179 # Is the header present?
38180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38182 cat >conftest.$ac_ext <<_ACEOF
38185 cat confdefs.h >>conftest.$ac_ext
38186 cat >>conftest.$ac_ext <<_ACEOF
38187 /* end confdefs.h. */
38188 #include <$ac_header>
38190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38193 grep -v '^ *+' conftest.er1 >conftest.err
38195 cat conftest.err >&5
38196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38197 (exit $ac_status); } >/dev/null; then
38198 if test -s conftest.err; then
38199 ac_cpp_err=$ac_c_preproc_warn_flag
38200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38207 if test -z "$ac_cpp_err"; then
38208 ac_header_preproc=yes
38210 echo "$as_me: failed program was:" >&5
38211 sed 's/^/| /' conftest.$ac_ext >&5
38213 ac_header_preproc=no
38215 rm -f conftest.err conftest.$ac_ext
38216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38217 echo "${ECHO_T}$ac_header_preproc" >&6
38219 # So? What about this header?
38220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38226 ac_header_preproc=yes
38229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38243 ## ------------------------------------------ ##
38244 ## Report this to the AC_PACKAGE_NAME lists. ##
38245 ## ------------------------------------------ ##
38248 sed "s/^/$as_me: WARNING: /" >&2
38251 echo "$as_me:$LINENO: checking for $ac_header" >&5
38252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38254 echo $ECHO_N "(cached) $ECHO_C" >&6
38256 eval "$as_ac_Header=\$ac_header_preproc"
38258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38263 cat >>confdefs.h <<_ACEOF
38264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38273 for ac_header in openssl/crypto.h crypto.h
38275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38277 echo "$as_me:$LINENO: checking for $ac_header" >&5
38278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38280 echo $ECHO_N "(cached) $ECHO_C" >&6
38282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38285 # Is the header compilable?
38286 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38288 cat >conftest.$ac_ext <<_ACEOF
38291 cat confdefs.h >>conftest.$ac_ext
38292 cat >>conftest.$ac_ext <<_ACEOF
38293 /* end confdefs.h. */
38294 $ac_includes_default
38295 #include <$ac_header>
38297 rm -f conftest.$ac_objext
38298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38299 (eval $ac_compile) 2>conftest.er1
38301 grep -v '^ *+' conftest.er1 >conftest.err
38303 cat conftest.err >&5
38304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305 (exit $ac_status); } &&
38306 { ac_try='test -z "$ac_c_werror_flag"
38307 || test ! -s conftest.err'
38308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38309 (eval $ac_try) 2>&5
38311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38312 (exit $ac_status); }; } &&
38313 { ac_try='test -s conftest.$ac_objext'
38314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38315 (eval $ac_try) 2>&5
38317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38318 (exit $ac_status); }; }; then
38319 ac_header_compiler=yes
38321 echo "$as_me: failed program was:" >&5
38322 sed 's/^/| /' conftest.$ac_ext >&5
38324 ac_header_compiler=no
38326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38328 echo "${ECHO_T}$ac_header_compiler" >&6
38330 # Is the header present?
38331 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38333 cat >conftest.$ac_ext <<_ACEOF
38336 cat confdefs.h >>conftest.$ac_ext
38337 cat >>conftest.$ac_ext <<_ACEOF
38338 /* end confdefs.h. */
38339 #include <$ac_header>
38341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38344 grep -v '^ *+' conftest.er1 >conftest.err
38346 cat conftest.err >&5
38347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38348 (exit $ac_status); } >/dev/null; then
38349 if test -s conftest.err; then
38350 ac_cpp_err=$ac_c_preproc_warn_flag
38351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38358 if test -z "$ac_cpp_err"; then
38359 ac_header_preproc=yes
38361 echo "$as_me: failed program was:" >&5
38362 sed 's/^/| /' conftest.$ac_ext >&5
38364 ac_header_preproc=no
38366 rm -f conftest.err conftest.$ac_ext
38367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38368 echo "${ECHO_T}$ac_header_preproc" >&6
38370 # So? What about this header?
38371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38377 ac_header_preproc=yes
38380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38394 ## ------------------------------------------ ##
38395 ## Report this to the AC_PACKAGE_NAME lists. ##
38396 ## ------------------------------------------ ##
38399 sed "s/^/$as_me: WARNING: /" >&2
38402 echo "$as_me:$LINENO: checking for $ac_header" >&5
38403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38405 echo $ECHO_N "(cached) $ECHO_C" >&6
38407 eval "$as_ac_Header=\$ac_header_preproc"
38409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38414 cat >>confdefs.h <<_ACEOF
38415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38423 for ac_header in gmp.h
38425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38427 echo "$as_me:$LINENO: checking for $ac_header" >&5
38428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38430 echo $ECHO_N "(cached) $ECHO_C" >&6
38432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38435 # Is the header compilable?
38436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38438 cat >conftest.$ac_ext <<_ACEOF
38441 cat confdefs.h >>conftest.$ac_ext
38442 cat >>conftest.$ac_ext <<_ACEOF
38443 /* end confdefs.h. */
38444 $ac_includes_default
38445 #include <$ac_header>
38447 rm -f conftest.$ac_objext
38448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38449 (eval $ac_compile) 2>conftest.er1
38451 grep -v '^ *+' conftest.er1 >conftest.err
38453 cat conftest.err >&5
38454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38455 (exit $ac_status); } &&
38456 { ac_try='test -z "$ac_c_werror_flag"
38457 || test ! -s conftest.err'
38458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38459 (eval $ac_try) 2>&5
38461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38462 (exit $ac_status); }; } &&
38463 { ac_try='test -s conftest.$ac_objext'
38464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38465 (eval $ac_try) 2>&5
38467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38468 (exit $ac_status); }; }; then
38469 ac_header_compiler=yes
38471 echo "$as_me: failed program was:" >&5
38472 sed 's/^/| /' conftest.$ac_ext >&5
38474 ac_header_compiler=no
38476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38478 echo "${ECHO_T}$ac_header_compiler" >&6
38480 # Is the header present?
38481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38483 cat >conftest.$ac_ext <<_ACEOF
38486 cat confdefs.h >>conftest.$ac_ext
38487 cat >>conftest.$ac_ext <<_ACEOF
38488 /* end confdefs.h. */
38489 #include <$ac_header>
38491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38494 grep -v '^ *+' conftest.er1 >conftest.err
38496 cat conftest.err >&5
38497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38498 (exit $ac_status); } >/dev/null; then
38499 if test -s conftest.err; then
38500 ac_cpp_err=$ac_c_preproc_warn_flag
38501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38508 if test -z "$ac_cpp_err"; then
38509 ac_header_preproc=yes
38511 echo "$as_me: failed program was:" >&5
38512 sed 's/^/| /' conftest.$ac_ext >&5
38514 ac_header_preproc=no
38516 rm -f conftest.err conftest.$ac_ext
38517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38518 echo "${ECHO_T}$ac_header_preproc" >&6
38520 # So? What about this header?
38521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38527 ac_header_preproc=yes
38530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38544 ## ------------------------------------------ ##
38545 ## Report this to the AC_PACKAGE_NAME lists. ##
38546 ## ------------------------------------------ ##
38549 sed "s/^/$as_me: WARNING: /" >&2
38552 echo "$as_me:$LINENO: checking for $ac_header" >&5
38553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38555 echo $ECHO_N "(cached) $ECHO_C" >&6
38557 eval "$as_ac_Header=\$ac_header_preproc"
38559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38564 cat >>confdefs.h <<_ACEOF
38565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38573 if test "$ol_with_tls" = "found" ; then
38575 ol_have_crypto_h=no
38577 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38578 test "$ac_cv_header_bn_h" = "yes" ; then
38582 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38583 test "$ac_cv_header_crypto_h" = "yes" ; then
38584 ol_have_crypto_h=yes
38587 if test "$ol_have_bn_h" = "yes" &&
38588 test "$ol_have_crypto_h" = "yes" ; then
38593 if test $ac_cv_header_gmp_h = yes ; then
38594 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38595 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38596 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38597 echo $ECHO_N "(cached) $ECHO_C" >&6
38599 ac_check_lib_save_LIBS=$LIBS
38601 cat >conftest.$ac_ext <<_ACEOF
38604 cat confdefs.h >>conftest.$ac_ext
38605 cat >>conftest.$ac_ext <<_ACEOF
38606 /* end confdefs.h. */
38608 /* Override any gcc2 internal prototype to avoid an error. */
38612 /* We use char because int might match the return type of a gcc2
38613 builtin and then its argument prototype would still apply. */
38614 char __gmpz_add_ui ();
38623 rm -f conftest.$ac_objext conftest$ac_exeext
38624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38625 (eval $ac_link) 2>conftest.er1
38627 grep -v '^ *+' conftest.er1 >conftest.err
38629 cat conftest.err >&5
38630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38631 (exit $ac_status); } &&
38632 { ac_try='test -z "$ac_c_werror_flag"
38633 || test ! -s conftest.err'
38634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38635 (eval $ac_try) 2>&5
38637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38638 (exit $ac_status); }; } &&
38639 { ac_try='test -s conftest$ac_exeext'
38640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38641 (eval $ac_try) 2>&5
38643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38644 (exit $ac_status); }; }; then
38645 ac_cv_lib_gmp___gmpz_add_ui=yes
38647 echo "$as_me: failed program was:" >&5
38648 sed 's/^/| /' conftest.$ac_ext >&5
38650 ac_cv_lib_gmp___gmpz_add_ui=no
38652 rm -f conftest.err conftest.$ac_objext \
38653 conftest$ac_exeext conftest.$ac_ext
38654 LIBS=$ac_check_lib_save_LIBS
38656 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38657 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38658 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38664 if test $have_gmp = yes ; then
38669 echo "$as_me:$LINENO: checking for multiple precision support" >&5
38670 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38672 ol_mp_support="none"
38673 case "$ol_with_multiple_precision" in
38675 if test "$ol_have_bignum" = "yes" ; then
38676 ol_mp_support="bignum"
38678 if test "$ol_have_gmp" = "yes" ; then
38679 ol_mp_support="gmp"
38684 if test "$ol_have_bignum" != "yes" ; then
38685 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38686 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38687 { (exit 1); exit 1; }; }
38689 ol_mp_support="bignum"
38692 if test "$ol_have_gmp" != "yes" ; then
38693 { { echo "$as_me:$LINENO: error: GMP not available" >&5
38694 echo "$as_me: error: GMP not available" >&2;}
38695 { (exit 1); exit 1; }; }
38697 ol_mp_support="gmp"
38700 if test "$ol_have_bignum" = "yes" ; then
38701 ol_mp_support="bignum"
38702 elif test "$ol_have_gmp" = "yes" ; then
38703 ol_mp_support="gmp"
38705 { { echo "$as_me:$LINENO: error: not available" >&5
38706 echo "$as_me: error: not available" >&2;}
38707 { (exit 1); exit 1; }; }
38712 case "$ol_mp_support" in
38715 cat >>confdefs.h <<\_ACEOF
38716 #define HAVE_BIGNUM 1
38722 cat >>confdefs.h <<\_ACEOF
38726 SLAPD_GMP_LIBS=-lgmp
38732 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38733 echo "${ECHO_T}$ol_mp_support" >&6
38737 echo "$as_me:$LINENO: checking for mode_t" >&5
38738 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38739 if test "${ac_cv_type_mode_t+set}" = set; then
38740 echo $ECHO_N "(cached) $ECHO_C" >&6
38742 cat >conftest.$ac_ext <<_ACEOF
38745 cat confdefs.h >>conftest.$ac_ext
38746 cat >>conftest.$ac_ext <<_ACEOF
38747 /* end confdefs.h. */
38748 $ac_includes_default
38754 if (sizeof (mode_t))
38760 rm -f conftest.$ac_objext
38761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38762 (eval $ac_compile) 2>conftest.er1
38764 grep -v '^ *+' conftest.er1 >conftest.err
38766 cat conftest.err >&5
38767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38768 (exit $ac_status); } &&
38769 { ac_try='test -z "$ac_c_werror_flag"
38770 || test ! -s conftest.err'
38771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38772 (eval $ac_try) 2>&5
38774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38775 (exit $ac_status); }; } &&
38776 { ac_try='test -s conftest.$ac_objext'
38777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38778 (eval $ac_try) 2>&5
38780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38781 (exit $ac_status); }; }; then
38782 ac_cv_type_mode_t=yes
38784 echo "$as_me: failed program was:" >&5
38785 sed 's/^/| /' conftest.$ac_ext >&5
38787 ac_cv_type_mode_t=no
38789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38791 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38792 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38793 if test $ac_cv_type_mode_t = yes; then
38797 cat >>confdefs.h <<_ACEOF
38803 echo "$as_me:$LINENO: checking for off_t" >&5
38804 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38805 if test "${ac_cv_type_off_t+set}" = set; then
38806 echo $ECHO_N "(cached) $ECHO_C" >&6
38808 cat >conftest.$ac_ext <<_ACEOF
38811 cat confdefs.h >>conftest.$ac_ext
38812 cat >>conftest.$ac_ext <<_ACEOF
38813 /* end confdefs.h. */
38814 $ac_includes_default
38820 if (sizeof (off_t))
38826 rm -f conftest.$ac_objext
38827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38828 (eval $ac_compile) 2>conftest.er1
38830 grep -v '^ *+' conftest.er1 >conftest.err
38832 cat conftest.err >&5
38833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834 (exit $ac_status); } &&
38835 { ac_try='test -z "$ac_c_werror_flag"
38836 || test ! -s conftest.err'
38837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38838 (eval $ac_try) 2>&5
38840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38841 (exit $ac_status); }; } &&
38842 { ac_try='test -s conftest.$ac_objext'
38843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38844 (eval $ac_try) 2>&5
38846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38847 (exit $ac_status); }; }; then
38848 ac_cv_type_off_t=yes
38850 echo "$as_me: failed program was:" >&5
38851 sed 's/^/| /' conftest.$ac_ext >&5
38853 ac_cv_type_off_t=no
38855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38857 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38858 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38859 if test $ac_cv_type_off_t = yes; then
38863 cat >>confdefs.h <<_ACEOF
38869 echo "$as_me:$LINENO: checking for pid_t" >&5
38870 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38871 if test "${ac_cv_type_pid_t+set}" = set; then
38872 echo $ECHO_N "(cached) $ECHO_C" >&6
38874 cat >conftest.$ac_ext <<_ACEOF
38877 cat confdefs.h >>conftest.$ac_ext
38878 cat >>conftest.$ac_ext <<_ACEOF
38879 /* end confdefs.h. */
38880 $ac_includes_default
38886 if (sizeof (pid_t))
38892 rm -f conftest.$ac_objext
38893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38894 (eval $ac_compile) 2>conftest.er1
38896 grep -v '^ *+' conftest.er1 >conftest.err
38898 cat conftest.err >&5
38899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38900 (exit $ac_status); } &&
38901 { ac_try='test -z "$ac_c_werror_flag"
38902 || test ! -s conftest.err'
38903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38904 (eval $ac_try) 2>&5
38906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907 (exit $ac_status); }; } &&
38908 { ac_try='test -s conftest.$ac_objext'
38909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38910 (eval $ac_try) 2>&5
38912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38913 (exit $ac_status); }; }; then
38914 ac_cv_type_pid_t=yes
38916 echo "$as_me: failed program was:" >&5
38917 sed 's/^/| /' conftest.$ac_ext >&5
38919 ac_cv_type_pid_t=no
38921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38923 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38924 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38925 if test $ac_cv_type_pid_t = yes; then
38929 cat >>confdefs.h <<_ACEOF
38935 echo "$as_me:$LINENO: checking for ssize_t" >&5
38936 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38937 if test "${ac_cv_type_ssize_t+set}" = set; then
38938 echo $ECHO_N "(cached) $ECHO_C" >&6
38940 cat >conftest.$ac_ext <<_ACEOF
38943 cat confdefs.h >>conftest.$ac_ext
38944 cat >>conftest.$ac_ext <<_ACEOF
38945 /* end confdefs.h. */
38946 $ac_includes_default
38952 if (sizeof (ssize_t))
38958 rm -f conftest.$ac_objext
38959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38960 (eval $ac_compile) 2>conftest.er1
38962 grep -v '^ *+' conftest.er1 >conftest.err
38964 cat conftest.err >&5
38965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38966 (exit $ac_status); } &&
38967 { ac_try='test -z "$ac_c_werror_flag"
38968 || test ! -s conftest.err'
38969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38970 (eval $ac_try) 2>&5
38972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38973 (exit $ac_status); }; } &&
38974 { ac_try='test -s conftest.$ac_objext'
38975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38976 (eval $ac_try) 2>&5
38978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38979 (exit $ac_status); }; }; then
38980 ac_cv_type_ssize_t=yes
38982 echo "$as_me: failed program was:" >&5
38983 sed 's/^/| /' conftest.$ac_ext >&5
38985 ac_cv_type_ssize_t=no
38987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38989 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
38990 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
38991 if test $ac_cv_type_ssize_t = yes; then
38995 cat >>confdefs.h <<_ACEOF
38996 #define ssize_t signed int
39001 echo "$as_me:$LINENO: checking for caddr_t" >&5
39002 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
39003 if test "${ac_cv_type_caddr_t+set}" = set; then
39004 echo $ECHO_N "(cached) $ECHO_C" >&6
39006 cat >conftest.$ac_ext <<_ACEOF
39009 cat confdefs.h >>conftest.$ac_ext
39010 cat >>conftest.$ac_ext <<_ACEOF
39011 /* end confdefs.h. */
39012 $ac_includes_default
39018 if (sizeof (caddr_t))
39024 rm -f conftest.$ac_objext
39025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39026 (eval $ac_compile) 2>conftest.er1
39028 grep -v '^ *+' conftest.er1 >conftest.err
39030 cat conftest.err >&5
39031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39032 (exit $ac_status); } &&
39033 { ac_try='test -z "$ac_c_werror_flag"
39034 || test ! -s conftest.err'
39035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39036 (eval $ac_try) 2>&5
39038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39039 (exit $ac_status); }; } &&
39040 { ac_try='test -s conftest.$ac_objext'
39041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39042 (eval $ac_try) 2>&5
39044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39045 (exit $ac_status); }; }; then
39046 ac_cv_type_caddr_t=yes
39048 echo "$as_me: failed program was:" >&5
39049 sed 's/^/| /' conftest.$ac_ext >&5
39051 ac_cv_type_caddr_t=no
39053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39055 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39056 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39057 if test $ac_cv_type_caddr_t = yes; then
39061 cat >>confdefs.h <<_ACEOF
39062 #define caddr_t char *
39067 echo "$as_me:$LINENO: checking for size_t" >&5
39068 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39069 if test "${ac_cv_type_size_t+set}" = set; then
39070 echo $ECHO_N "(cached) $ECHO_C" >&6
39072 cat >conftest.$ac_ext <<_ACEOF
39075 cat confdefs.h >>conftest.$ac_ext
39076 cat >>conftest.$ac_ext <<_ACEOF
39077 /* end confdefs.h. */
39078 $ac_includes_default
39084 if (sizeof (size_t))
39090 rm -f conftest.$ac_objext
39091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39092 (eval $ac_compile) 2>conftest.er1
39094 grep -v '^ *+' conftest.er1 >conftest.err
39096 cat conftest.err >&5
39097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39098 (exit $ac_status); } &&
39099 { ac_try='test -z "$ac_c_werror_flag"
39100 || test ! -s conftest.err'
39101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39102 (eval $ac_try) 2>&5
39104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39105 (exit $ac_status); }; } &&
39106 { ac_try='test -s conftest.$ac_objext'
39107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39108 (eval $ac_try) 2>&5
39110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39111 (exit $ac_status); }; }; then
39112 ac_cv_type_size_t=yes
39114 echo "$as_me: failed program was:" >&5
39115 sed 's/^/| /' conftest.$ac_ext >&5
39117 ac_cv_type_size_t=no
39119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39121 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39122 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39123 if test $ac_cv_type_size_t = yes; then
39127 cat >>confdefs.h <<_ACEOF
39128 #define size_t unsigned
39134 echo "$as_me:$LINENO: checking for long long" >&5
39135 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39136 if test "${ac_cv_type_long_long+set}" = set; then
39137 echo $ECHO_N "(cached) $ECHO_C" >&6
39139 cat >conftest.$ac_ext <<_ACEOF
39142 cat confdefs.h >>conftest.$ac_ext
39143 cat >>conftest.$ac_ext <<_ACEOF
39144 /* end confdefs.h. */
39145 $ac_includes_default
39149 if ((long long *) 0)
39151 if (sizeof (long long))
39157 rm -f conftest.$ac_objext
39158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39159 (eval $ac_compile) 2>conftest.er1
39161 grep -v '^ *+' conftest.er1 >conftest.err
39163 cat conftest.err >&5
39164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39165 (exit $ac_status); } &&
39166 { ac_try='test -z "$ac_c_werror_flag"
39167 || test ! -s conftest.err'
39168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39169 (eval $ac_try) 2>&5
39171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172 (exit $ac_status); }; } &&
39173 { ac_try='test -s conftest.$ac_objext'
39174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39175 (eval $ac_try) 2>&5
39177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178 (exit $ac_status); }; }; then
39179 ac_cv_type_long_long=yes
39181 echo "$as_me: failed program was:" >&5
39182 sed 's/^/| /' conftest.$ac_ext >&5
39184 ac_cv_type_long_long=no
39186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39188 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39189 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39190 if test $ac_cv_type_long_long = yes; then
39192 cat >>confdefs.h <<_ACEOF
39193 #define HAVE_LONG_LONG 1
39199 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39200 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39201 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39202 echo $ECHO_N "(cached) $ECHO_C" >&6
39204 cat >conftest.$ac_ext <<_ACEOF
39207 cat confdefs.h >>conftest.$ac_ext
39208 cat >>conftest.$ac_ext <<_ACEOF
39209 /* end confdefs.h. */
39210 $ac_includes_default
39214 if ((ptrdiff_t *) 0)
39216 if (sizeof (ptrdiff_t))
39222 rm -f conftest.$ac_objext
39223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39224 (eval $ac_compile) 2>conftest.er1
39226 grep -v '^ *+' conftest.er1 >conftest.err
39228 cat conftest.err >&5
39229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39230 (exit $ac_status); } &&
39231 { ac_try='test -z "$ac_c_werror_flag"
39232 || test ! -s conftest.err'
39233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39234 (eval $ac_try) 2>&5
39236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39237 (exit $ac_status); }; } &&
39238 { ac_try='test -s conftest.$ac_objext'
39239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39240 (eval $ac_try) 2>&5
39242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39243 (exit $ac_status); }; }; then
39244 ac_cv_type_ptrdiff_t=yes
39246 echo "$as_me: failed program was:" >&5
39247 sed 's/^/| /' conftest.$ac_ext >&5
39249 ac_cv_type_ptrdiff_t=no
39251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39253 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39254 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39255 if test $ac_cv_type_ptrdiff_t = yes; then
39257 cat >>confdefs.h <<_ACEOF
39258 #define HAVE_PTRDIFF_T 1
39265 echo "$as_me:$LINENO: checking for socklen_t" >&5
39266 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39267 if test "${ac_cv_type_socklen_t+set}" = set; then
39268 echo $ECHO_N "(cached) $ECHO_C" >&6
39270 cat >conftest.$ac_ext <<_ACEOF
39273 cat confdefs.h >>conftest.$ac_ext
39274 cat >>conftest.$ac_ext <<_ACEOF
39275 /* end confdefs.h. */
39276 $ac_includes_default
39277 #ifdef HAVE_SYS_SOCKET_H
39278 #include <sys/socket.h>
39285 if ((socklen_t *) 0)
39287 if (sizeof (socklen_t))
39293 rm -f conftest.$ac_objext
39294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39295 (eval $ac_compile) 2>conftest.er1
39297 grep -v '^ *+' conftest.er1 >conftest.err
39299 cat conftest.err >&5
39300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39301 (exit $ac_status); } &&
39302 { ac_try='test -z "$ac_c_werror_flag"
39303 || test ! -s conftest.err'
39304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39305 (eval $ac_try) 2>&5
39307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39308 (exit $ac_status); }; } &&
39309 { ac_try='test -s conftest.$ac_objext'
39310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39311 (eval $ac_try) 2>&5
39313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39314 (exit $ac_status); }; }; then
39315 ac_cv_type_socklen_t=yes
39317 echo "$as_me: failed program was:" >&5
39318 sed 's/^/| /' conftest.$ac_ext >&5
39320 ac_cv_type_socklen_t=no
39322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39324 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39325 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39326 if test $ac_cv_type_socklen_t = yes; then
39330 cat >>confdefs.h <<_ACEOF
39331 #define socklen_t int
39337 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39338 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39339 if test "${ac_cv_type_signal+set}" = set; then
39340 echo $ECHO_N "(cached) $ECHO_C" >&6
39342 cat >conftest.$ac_ext <<_ACEOF
39345 cat confdefs.h >>conftest.$ac_ext
39346 cat >>conftest.$ac_ext <<_ACEOF
39347 /* end confdefs.h. */
39348 #include <sys/types.h>
39349 #include <signal.h>
39354 extern "C" void (*signal (int, void (*)(int)))(int);
39356 void (*signal ()) ();
39367 rm -f conftest.$ac_objext
39368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39369 (eval $ac_compile) 2>conftest.er1
39371 grep -v '^ *+' conftest.er1 >conftest.err
39373 cat conftest.err >&5
39374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39375 (exit $ac_status); } &&
39376 { ac_try='test -z "$ac_c_werror_flag"
39377 || test ! -s conftest.err'
39378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39379 (eval $ac_try) 2>&5
39381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39382 (exit $ac_status); }; } &&
39383 { ac_try='test -s conftest.$ac_objext'
39384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39385 (eval $ac_try) 2>&5
39387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39388 (exit $ac_status); }; }; then
39389 ac_cv_type_signal=void
39391 echo "$as_me: failed program was:" >&5
39392 sed 's/^/| /' conftest.$ac_ext >&5
39394 ac_cv_type_signal=int
39396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39398 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39399 echo "${ECHO_T}$ac_cv_type_signal" >&6
39401 cat >>confdefs.h <<_ACEOF
39402 #define RETSIGTYPE $ac_cv_type_signal
39407 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39408 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39409 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39410 echo $ECHO_N "(cached) $ECHO_C" >&6
39412 cat >conftest.$ac_ext <<_ACEOF
39415 cat confdefs.h >>conftest.$ac_ext
39416 cat >>conftest.$ac_ext <<_ACEOF
39417 /* end confdefs.h. */
39418 $ac_includes_default
39419 #include <signal.h>
39425 if ((sig_atomic_t *) 0)
39427 if (sizeof (sig_atomic_t))
39433 rm -f conftest.$ac_objext
39434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39435 (eval $ac_compile) 2>conftest.er1
39437 grep -v '^ *+' conftest.er1 >conftest.err
39439 cat conftest.err >&5
39440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39441 (exit $ac_status); } &&
39442 { ac_try='test -z "$ac_c_werror_flag"
39443 || test ! -s conftest.err'
39444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39445 (eval $ac_try) 2>&5
39447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39448 (exit $ac_status); }; } &&
39449 { ac_try='test -s conftest.$ac_objext'
39450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39451 (eval $ac_try) 2>&5
39453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39454 (exit $ac_status); }; }; then
39455 ac_cv_type_sig_atomic_t=yes
39457 echo "$as_me: failed program was:" >&5
39458 sed 's/^/| /' conftest.$ac_ext >&5
39460 ac_cv_type_sig_atomic_t=no
39462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39464 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39465 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39466 if test $ac_cv_type_sig_atomic_t = yes; then
39470 cat >>confdefs.h <<_ACEOF
39471 #define sig_atomic_t int
39477 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39478 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39479 if test "${ac_cv_type_uid_t+set}" = set; then
39480 echo $ECHO_N "(cached) $ECHO_C" >&6
39482 cat >conftest.$ac_ext <<_ACEOF
39485 cat confdefs.h >>conftest.$ac_ext
39486 cat >>conftest.$ac_ext <<_ACEOF
39487 /* end confdefs.h. */
39488 #include <sys/types.h>
39491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39492 $EGREP "uid_t" >/dev/null 2>&1; then
39493 ac_cv_type_uid_t=yes
39495 ac_cv_type_uid_t=no
39500 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39501 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39502 if test $ac_cv_type_uid_t = no; then
39504 cat >>confdefs.h <<\_ACEOF
39509 cat >>confdefs.h <<\_ACEOF
39516 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39517 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39518 if test "${ac_cv_header_time+set}" = set; then
39519 echo $ECHO_N "(cached) $ECHO_C" >&6
39521 cat >conftest.$ac_ext <<_ACEOF
39524 cat confdefs.h >>conftest.$ac_ext
39525 cat >>conftest.$ac_ext <<_ACEOF
39526 /* end confdefs.h. */
39527 #include <sys/types.h>
39528 #include <sys/time.h>
39534 if ((struct tm *) 0)
39540 rm -f conftest.$ac_objext
39541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39542 (eval $ac_compile) 2>conftest.er1
39544 grep -v '^ *+' conftest.er1 >conftest.err
39546 cat conftest.err >&5
39547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39548 (exit $ac_status); } &&
39549 { ac_try='test -z "$ac_c_werror_flag"
39550 || test ! -s conftest.err'
39551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39552 (eval $ac_try) 2>&5
39554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39555 (exit $ac_status); }; } &&
39556 { ac_try='test -s conftest.$ac_objext'
39557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39558 (eval $ac_try) 2>&5
39560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39561 (exit $ac_status); }; }; then
39562 ac_cv_header_time=yes
39564 echo "$as_me: failed program was:" >&5
39565 sed 's/^/| /' conftest.$ac_ext >&5
39567 ac_cv_header_time=no
39569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39571 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39572 echo "${ECHO_T}$ac_cv_header_time" >&6
39573 if test $ac_cv_header_time = yes; then
39575 cat >>confdefs.h <<\_ACEOF
39576 #define TIME_WITH_SYS_TIME 1
39581 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39582 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39583 if test "${ac_cv_struct_tm+set}" = set; then
39584 echo $ECHO_N "(cached) $ECHO_C" >&6
39586 cat >conftest.$ac_ext <<_ACEOF
39589 cat confdefs.h >>conftest.$ac_ext
39590 cat >>conftest.$ac_ext <<_ACEOF
39591 /* end confdefs.h. */
39592 #include <sys/types.h>
39598 struct tm *tp; tp->tm_sec;
39603 rm -f conftest.$ac_objext
39604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39605 (eval $ac_compile) 2>conftest.er1
39607 grep -v '^ *+' conftest.er1 >conftest.err
39609 cat conftest.err >&5
39610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39611 (exit $ac_status); } &&
39612 { ac_try='test -z "$ac_c_werror_flag"
39613 || test ! -s conftest.err'
39614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39615 (eval $ac_try) 2>&5
39617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39618 (exit $ac_status); }; } &&
39619 { ac_try='test -s conftest.$ac_objext'
39620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39621 (eval $ac_try) 2>&5
39623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39624 (exit $ac_status); }; }; then
39625 ac_cv_struct_tm=time.h
39627 echo "$as_me: failed program was:" >&5
39628 sed 's/^/| /' conftest.$ac_ext >&5
39630 ac_cv_struct_tm=sys/time.h
39632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39634 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39635 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39636 if test $ac_cv_struct_tm = sys/time.h; then
39638 cat >>confdefs.h <<\_ACEOF
39639 #define TM_IN_SYS_TIME 1
39644 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39645 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39646 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39647 echo $ECHO_N "(cached) $ECHO_C" >&6
39649 cat >conftest.$ac_ext <<_ACEOF
39652 cat confdefs.h >>conftest.$ac_ext
39653 cat >>conftest.$ac_ext <<_ACEOF
39654 /* end confdefs.h. */
39655 $ac_includes_default
39659 static struct stat ac_aggr;
39660 if (ac_aggr.st_blksize)
39666 rm -f conftest.$ac_objext
39667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39668 (eval $ac_compile) 2>conftest.er1
39670 grep -v '^ *+' conftest.er1 >conftest.err
39672 cat conftest.err >&5
39673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39674 (exit $ac_status); } &&
39675 { ac_try='test -z "$ac_c_werror_flag"
39676 || test ! -s conftest.err'
39677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39678 (eval $ac_try) 2>&5
39680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39681 (exit $ac_status); }; } &&
39682 { ac_try='test -s conftest.$ac_objext'
39683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39684 (eval $ac_try) 2>&5
39686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39687 (exit $ac_status); }; }; then
39688 ac_cv_member_struct_stat_st_blksize=yes
39690 echo "$as_me: failed program was:" >&5
39691 sed 's/^/| /' conftest.$ac_ext >&5
39693 cat >conftest.$ac_ext <<_ACEOF
39696 cat confdefs.h >>conftest.$ac_ext
39697 cat >>conftest.$ac_ext <<_ACEOF
39698 /* end confdefs.h. */
39699 $ac_includes_default
39703 static struct stat ac_aggr;
39704 if (sizeof ac_aggr.st_blksize)
39710 rm -f conftest.$ac_objext
39711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39712 (eval $ac_compile) 2>conftest.er1
39714 grep -v '^ *+' conftest.er1 >conftest.err
39716 cat conftest.err >&5
39717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39718 (exit $ac_status); } &&
39719 { ac_try='test -z "$ac_c_werror_flag"
39720 || test ! -s conftest.err'
39721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39722 (eval $ac_try) 2>&5
39724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39725 (exit $ac_status); }; } &&
39726 { ac_try='test -s conftest.$ac_objext'
39727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39728 (eval $ac_try) 2>&5
39730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39731 (exit $ac_status); }; }; then
39732 ac_cv_member_struct_stat_st_blksize=yes
39734 echo "$as_me: failed program was:" >&5
39735 sed 's/^/| /' conftest.$ac_ext >&5
39737 ac_cv_member_struct_stat_st_blksize=no
39739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39743 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39744 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39745 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39747 cat >>confdefs.h <<_ACEOF
39748 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39754 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39755 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39756 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39757 echo $ECHO_N "(cached) $ECHO_C" >&6
39759 cat >conftest.$ac_ext <<_ACEOF
39762 cat confdefs.h >>conftest.$ac_ext
39763 cat >>conftest.$ac_ext <<_ACEOF
39764 /* end confdefs.h. */
39765 $ac_includes_default
39771 static struct passwd ac_aggr;
39772 if (ac_aggr.pw_gecos)
39778 rm -f conftest.$ac_objext
39779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39780 (eval $ac_compile) 2>conftest.er1
39782 grep -v '^ *+' conftest.er1 >conftest.err
39784 cat conftest.err >&5
39785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39786 (exit $ac_status); } &&
39787 { ac_try='test -z "$ac_c_werror_flag"
39788 || test ! -s conftest.err'
39789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39790 (eval $ac_try) 2>&5
39792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39793 (exit $ac_status); }; } &&
39794 { ac_try='test -s conftest.$ac_objext'
39795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39796 (eval $ac_try) 2>&5
39798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39799 (exit $ac_status); }; }; then
39800 ac_cv_member_struct_passwd_pw_gecos=yes
39802 echo "$as_me: failed program was:" >&5
39803 sed 's/^/| /' conftest.$ac_ext >&5
39805 cat >conftest.$ac_ext <<_ACEOF
39808 cat confdefs.h >>conftest.$ac_ext
39809 cat >>conftest.$ac_ext <<_ACEOF
39810 /* end confdefs.h. */
39811 $ac_includes_default
39817 static struct passwd ac_aggr;
39818 if (sizeof ac_aggr.pw_gecos)
39824 rm -f conftest.$ac_objext
39825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39826 (eval $ac_compile) 2>conftest.er1
39828 grep -v '^ *+' conftest.er1 >conftest.err
39830 cat conftest.err >&5
39831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832 (exit $ac_status); } &&
39833 { ac_try='test -z "$ac_c_werror_flag"
39834 || test ! -s conftest.err'
39835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39836 (eval $ac_try) 2>&5
39838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839 (exit $ac_status); }; } &&
39840 { ac_try='test -s conftest.$ac_objext'
39841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39842 (eval $ac_try) 2>&5
39844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845 (exit $ac_status); }; }; then
39846 ac_cv_member_struct_passwd_pw_gecos=yes
39848 echo "$as_me: failed program was:" >&5
39849 sed 's/^/| /' conftest.$ac_ext >&5
39851 ac_cv_member_struct_passwd_pw_gecos=no
39853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39857 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39858 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39859 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39861 cat >>confdefs.h <<_ACEOF
39862 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39868 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39869 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39870 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39871 echo $ECHO_N "(cached) $ECHO_C" >&6
39873 cat >conftest.$ac_ext <<_ACEOF
39876 cat confdefs.h >>conftest.$ac_ext
39877 cat >>conftest.$ac_ext <<_ACEOF
39878 /* end confdefs.h. */
39879 $ac_includes_default
39885 static struct passwd ac_aggr;
39886 if (ac_aggr.pw_passwd)
39892 rm -f conftest.$ac_objext
39893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39894 (eval $ac_compile) 2>conftest.er1
39896 grep -v '^ *+' conftest.er1 >conftest.err
39898 cat conftest.err >&5
39899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900 (exit $ac_status); } &&
39901 { ac_try='test -z "$ac_c_werror_flag"
39902 || test ! -s conftest.err'
39903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39904 (eval $ac_try) 2>&5
39906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907 (exit $ac_status); }; } &&
39908 { ac_try='test -s conftest.$ac_objext'
39909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39910 (eval $ac_try) 2>&5
39912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913 (exit $ac_status); }; }; then
39914 ac_cv_member_struct_passwd_pw_passwd=yes
39916 echo "$as_me: failed program was:" >&5
39917 sed 's/^/| /' conftest.$ac_ext >&5
39919 cat >conftest.$ac_ext <<_ACEOF
39922 cat confdefs.h >>conftest.$ac_ext
39923 cat >>conftest.$ac_ext <<_ACEOF
39924 /* end confdefs.h. */
39925 $ac_includes_default
39931 static struct passwd ac_aggr;
39932 if (sizeof ac_aggr.pw_passwd)
39938 rm -f conftest.$ac_objext
39939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39940 (eval $ac_compile) 2>conftest.er1
39942 grep -v '^ *+' conftest.er1 >conftest.err
39944 cat conftest.err >&5
39945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39946 (exit $ac_status); } &&
39947 { ac_try='test -z "$ac_c_werror_flag"
39948 || test ! -s conftest.err'
39949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39950 (eval $ac_try) 2>&5
39952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39953 (exit $ac_status); }; } &&
39954 { ac_try='test -s conftest.$ac_objext'
39955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39956 (eval $ac_try) 2>&5
39958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39959 (exit $ac_status); }; }; then
39960 ac_cv_member_struct_passwd_pw_passwd=yes
39962 echo "$as_me: failed program was:" >&5
39963 sed 's/^/| /' conftest.$ac_ext >&5
39965 ac_cv_member_struct_passwd_pw_passwd=no
39967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39971 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
39972 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
39973 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
39975 cat >>confdefs.h <<_ACEOF
39976 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
39983 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
39984 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
39985 if test "${ol_cv_c_upper_lower+set}" = set; then
39986 echo $ECHO_N "(cached) $ECHO_C" >&6
39989 if test "$cross_compiling" = yes; then
39990 ol_cv_c_upper_lower=safe
39992 cat >conftest.$ac_ext <<_ACEOF
39995 cat confdefs.h >>conftest.$ac_ext
39996 cat >>conftest.$ac_ext <<_ACEOF
39997 /* end confdefs.h. */
40002 if ('C' == toupper('C'))
40008 rm -f conftest$ac_exeext
40009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40010 (eval $ac_link) 2>&5
40012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40015 (eval $ac_try) 2>&5
40017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40018 (exit $ac_status); }; }; then
40019 ol_cv_c_upper_lower=no
40021 echo "$as_me: program exited with status $ac_status" >&5
40022 echo "$as_me: failed program was:" >&5
40023 sed 's/^/| /' conftest.$ac_ext >&5
40025 ( exit $ac_status )
40026 ol_cv_c_upper_lower=yes
40028 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40031 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40032 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40033 if test $ol_cv_c_upper_lower != no ; then
40035 cat >>confdefs.h <<\_ACEOF
40036 #define C_UPPER_LOWER 1
40041 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40042 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40043 if test "${ac_cv_c_const+set}" = set; then
40044 echo $ECHO_N "(cached) $ECHO_C" >&6
40046 cat >conftest.$ac_ext <<_ACEOF
40049 cat confdefs.h >>conftest.$ac_ext
40050 cat >>conftest.$ac_ext <<_ACEOF
40051 /* end confdefs.h. */
40056 /* FIXME: Include the comments suggested by Paul. */
40057 #ifndef __cplusplus
40058 /* Ultrix mips cc rejects this. */
40059 typedef int charset[2];
40061 /* SunOS 4.1.1 cc rejects this. */
40062 char const *const *ccp;
40064 /* NEC SVR4.0.2 mips cc rejects this. */
40065 struct point {int x, y;};
40066 static struct point const zero = {0,0};
40067 /* AIX XL C 1.02.0.0 rejects this.
40068 It does not let you subtract one const X* pointer from another in
40069 an arm of an if-expression whose if-part is not a constant
40071 const char *g = "string";
40072 ccp = &g + (g ? g-g : 0);
40073 /* HPUX 7.0 cc rejects these. */
40076 ccp = (char const *const *) p;
40077 { /* SCO 3.2v4 cc rejects this. */
40079 char const *s = 0 ? (char *) 0 : (char const *) 0;
40083 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
40084 int x[] = {25, 17};
40085 const int *foo = &x[0];
40088 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40089 typedef const int *iptr;
40093 { /* AIX XL C 1.02.0.0 rejects this saying
40094 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40095 struct s { int j; const int *ap[3]; };
40096 struct s *b; b->j = 5;
40098 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40099 const int foo = 10;
40107 rm -f conftest.$ac_objext
40108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40109 (eval $ac_compile) 2>conftest.er1
40111 grep -v '^ *+' conftest.er1 >conftest.err
40113 cat conftest.err >&5
40114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40115 (exit $ac_status); } &&
40116 { ac_try='test -z "$ac_c_werror_flag"
40117 || test ! -s conftest.err'
40118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40119 (eval $ac_try) 2>&5
40121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40122 (exit $ac_status); }; } &&
40123 { ac_try='test -s conftest.$ac_objext'
40124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40125 (eval $ac_try) 2>&5
40127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40128 (exit $ac_status); }; }; then
40131 echo "$as_me: failed program was:" >&5
40132 sed 's/^/| /' conftest.$ac_ext >&5
40136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40138 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40139 echo "${ECHO_T}$ac_cv_c_const" >&6
40140 if test $ac_cv_c_const = no; then
40142 cat >>confdefs.h <<\_ACEOF
40148 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40149 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40150 if test "${ol_cv_c_volatile+set}" = set; then
40151 echo $ECHO_N "(cached) $ECHO_C" >&6
40153 cat >conftest.$ac_ext <<_ACEOF
40156 cat confdefs.h >>conftest.$ac_ext
40157 cat >>conftest.$ac_ext <<_ACEOF
40158 /* end confdefs.h. */
40163 volatile int a; int * volatile b = x ? &y : &z;
40164 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40170 rm -f conftest.$ac_objext
40171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40172 (eval $ac_compile) 2>conftest.er1
40174 grep -v '^ *+' conftest.er1 >conftest.err
40176 cat conftest.err >&5
40177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40178 (exit $ac_status); } &&
40179 { ac_try='test -z "$ac_c_werror_flag"
40180 || test ! -s conftest.err'
40181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40182 (eval $ac_try) 2>&5
40184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40185 (exit $ac_status); }; } &&
40186 { ac_try='test -s conftest.$ac_objext'
40187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40188 (eval $ac_try) 2>&5
40190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40191 (exit $ac_status); }; }; then
40192 ol_cv_c_volatile=yes
40194 echo "$as_me: failed program was:" >&5
40195 sed 's/^/| /' conftest.$ac_ext >&5
40197 ol_cv_c_volatile=no
40199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40201 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40202 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40203 if test $ol_cv_c_volatile = yes; then
40207 cat >>confdefs.h <<\_ACEOF
40214 if test $cross_compiling = yes ; then
40215 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40216 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40218 cat >>confdefs.h <<\_ACEOF
40219 #define CROSS_COMPILING 1
40223 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40224 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40225 if test "${ac_cv_c_bigendian+set}" = set; then
40226 echo $ECHO_N "(cached) $ECHO_C" >&6
40228 # See if sys/param.h defines the BYTE_ORDER macro.
40229 cat >conftest.$ac_ext <<_ACEOF
40232 cat confdefs.h >>conftest.$ac_ext
40233 cat >>conftest.$ac_ext <<_ACEOF
40234 /* end confdefs.h. */
40235 #include <sys/types.h>
40236 #include <sys/param.h>
40241 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40242 bogus endian macros
40249 rm -f conftest.$ac_objext
40250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40251 (eval $ac_compile) 2>conftest.er1
40253 grep -v '^ *+' conftest.er1 >conftest.err
40255 cat conftest.err >&5
40256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40257 (exit $ac_status); } &&
40258 { ac_try='test -z "$ac_c_werror_flag"
40259 || test ! -s conftest.err'
40260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40261 (eval $ac_try) 2>&5
40263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40264 (exit $ac_status); }; } &&
40265 { ac_try='test -s conftest.$ac_objext'
40266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40267 (eval $ac_try) 2>&5
40269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40270 (exit $ac_status); }; }; then
40271 # It does; now see whether it defined to BIG_ENDIAN or not.
40272 cat >conftest.$ac_ext <<_ACEOF
40275 cat confdefs.h >>conftest.$ac_ext
40276 cat >>conftest.$ac_ext <<_ACEOF
40277 /* end confdefs.h. */
40278 #include <sys/types.h>
40279 #include <sys/param.h>
40284 #if BYTE_ORDER != BIG_ENDIAN
40292 rm -f conftest.$ac_objext
40293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40294 (eval $ac_compile) 2>conftest.er1
40296 grep -v '^ *+' conftest.er1 >conftest.err
40298 cat conftest.err >&5
40299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40300 (exit $ac_status); } &&
40301 { ac_try='test -z "$ac_c_werror_flag"
40302 || test ! -s conftest.err'
40303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40304 (eval $ac_try) 2>&5
40306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40307 (exit $ac_status); }; } &&
40308 { ac_try='test -s conftest.$ac_objext'
40309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40310 (eval $ac_try) 2>&5
40312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40313 (exit $ac_status); }; }; then
40314 ac_cv_c_bigendian=yes
40316 echo "$as_me: failed program was:" >&5
40317 sed 's/^/| /' conftest.$ac_ext >&5
40319 ac_cv_c_bigendian=no
40321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40323 echo "$as_me: failed program was:" >&5
40324 sed 's/^/| /' conftest.$ac_ext >&5
40326 # It does not; compile a test program.
40327 if test "$cross_compiling" = yes; then
40328 # try to guess the endianness by grepping values into an object file
40329 ac_cv_c_bigendian=unknown
40330 cat >conftest.$ac_ext <<_ACEOF
40333 cat confdefs.h >>conftest.$ac_ext
40334 cat >>conftest.$ac_ext <<_ACEOF
40335 /* end confdefs.h. */
40336 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40337 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40338 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40339 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40340 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40341 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40345 _ascii (); _ebcdic ();
40350 rm -f conftest.$ac_objext
40351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40352 (eval $ac_compile) 2>conftest.er1
40354 grep -v '^ *+' conftest.er1 >conftest.err
40356 cat conftest.err >&5
40357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40358 (exit $ac_status); } &&
40359 { ac_try='test -z "$ac_c_werror_flag"
40360 || test ! -s conftest.err'
40361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40362 (eval $ac_try) 2>&5
40364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365 (exit $ac_status); }; } &&
40366 { ac_try='test -s conftest.$ac_objext'
40367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40368 (eval $ac_try) 2>&5
40370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40371 (exit $ac_status); }; }; then
40372 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40373 ac_cv_c_bigendian=yes
40375 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40376 if test "$ac_cv_c_bigendian" = unknown; then
40377 ac_cv_c_bigendian=no
40379 # finding both strings is unlikely to happen, but who knows?
40380 ac_cv_c_bigendian=unknown
40384 echo "$as_me: failed program was:" >&5
40385 sed 's/^/| /' conftest.$ac_ext >&5
40388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40390 cat >conftest.$ac_ext <<_ACEOF
40393 cat confdefs.h >>conftest.$ac_ext
40394 cat >>conftest.$ac_ext <<_ACEOF
40395 /* end confdefs.h. */
40399 /* Are we little or big endian? From Harbison&Steele. */
40403 char c[sizeof (long)];
40406 exit (u.c[sizeof (long) - 1] == 1);
40409 rm -f conftest$ac_exeext
40410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40411 (eval $ac_link) 2>&5
40413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40416 (eval $ac_try) 2>&5
40418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40419 (exit $ac_status); }; }; then
40420 ac_cv_c_bigendian=no
40422 echo "$as_me: program exited with status $ac_status" >&5
40423 echo "$as_me: failed program was:" >&5
40424 sed 's/^/| /' conftest.$ac_ext >&5
40426 ( exit $ac_status )
40427 ac_cv_c_bigendian=yes
40429 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40434 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40435 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40436 case $ac_cv_c_bigendian in
40439 cat >>confdefs.h <<\_ACEOF
40440 #define WORDS_BIGENDIAN 1
40446 { { echo "$as_me:$LINENO: error: unknown endianness
40447 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40448 echo "$as_me: error: unknown endianness
40449 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40450 { (exit 1); exit 1; }; } ;;
40455 echo "$as_me:$LINENO: checking for short" >&5
40456 echo $ECHO_N "checking for short... $ECHO_C" >&6
40457 if test "${ac_cv_type_short+set}" = set; then
40458 echo $ECHO_N "(cached) $ECHO_C" >&6
40460 cat >conftest.$ac_ext <<_ACEOF
40463 cat confdefs.h >>conftest.$ac_ext
40464 cat >>conftest.$ac_ext <<_ACEOF
40465 /* end confdefs.h. */
40466 $ac_includes_default
40472 if (sizeof (short))
40478 rm -f conftest.$ac_objext
40479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40480 (eval $ac_compile) 2>conftest.er1
40482 grep -v '^ *+' conftest.er1 >conftest.err
40484 cat conftest.err >&5
40485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40486 (exit $ac_status); } &&
40487 { ac_try='test -z "$ac_c_werror_flag"
40488 || test ! -s conftest.err'
40489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40490 (eval $ac_try) 2>&5
40492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40493 (exit $ac_status); }; } &&
40494 { ac_try='test -s conftest.$ac_objext'
40495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40496 (eval $ac_try) 2>&5
40498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40499 (exit $ac_status); }; }; then
40500 ac_cv_type_short=yes
40502 echo "$as_me: failed program was:" >&5
40503 sed 's/^/| /' conftest.$ac_ext >&5
40505 ac_cv_type_short=no
40507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40509 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40510 echo "${ECHO_T}$ac_cv_type_short" >&6
40512 echo "$as_me:$LINENO: checking size of short" >&5
40513 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40514 if test "${ac_cv_sizeof_short+set}" = set; then
40515 echo $ECHO_N "(cached) $ECHO_C" >&6
40517 if test "$ac_cv_type_short" = yes; then
40518 # The cast to unsigned long works around a bug in the HP C Compiler
40519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40521 # This bug is HP SR number 8606223364.
40522 if test "$cross_compiling" = yes; then
40523 # Depending upon the size, compute the lo and hi bounds.
40524 cat >conftest.$ac_ext <<_ACEOF
40527 cat confdefs.h >>conftest.$ac_ext
40528 cat >>conftest.$ac_ext <<_ACEOF
40529 /* end confdefs.h. */
40530 $ac_includes_default
40534 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40541 rm -f conftest.$ac_objext
40542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40543 (eval $ac_compile) 2>conftest.er1
40545 grep -v '^ *+' conftest.er1 >conftest.err
40547 cat conftest.err >&5
40548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40549 (exit $ac_status); } &&
40550 { ac_try='test -z "$ac_c_werror_flag"
40551 || test ! -s conftest.err'
40552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40553 (eval $ac_try) 2>&5
40555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40556 (exit $ac_status); }; } &&
40557 { ac_try='test -s conftest.$ac_objext'
40558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40559 (eval $ac_try) 2>&5
40561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40562 (exit $ac_status); }; }; then
40565 cat >conftest.$ac_ext <<_ACEOF
40568 cat confdefs.h >>conftest.$ac_ext
40569 cat >>conftest.$ac_ext <<_ACEOF
40570 /* end confdefs.h. */
40571 $ac_includes_default
40575 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40582 rm -f conftest.$ac_objext
40583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40584 (eval $ac_compile) 2>conftest.er1
40586 grep -v '^ *+' conftest.er1 >conftest.err
40588 cat conftest.err >&5
40589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40590 (exit $ac_status); } &&
40591 { ac_try='test -z "$ac_c_werror_flag"
40592 || test ! -s conftest.err'
40593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40594 (eval $ac_try) 2>&5
40596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40597 (exit $ac_status); }; } &&
40598 { ac_try='test -s conftest.$ac_objext'
40599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40600 (eval $ac_try) 2>&5
40602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40603 (exit $ac_status); }; }; then
40604 ac_hi=$ac_mid; break
40606 echo "$as_me: failed program was:" >&5
40607 sed 's/^/| /' conftest.$ac_ext >&5
40609 ac_lo=`expr $ac_mid + 1`
40610 if test $ac_lo -le $ac_mid; then
40614 ac_mid=`expr 2 '*' $ac_mid + 1`
40616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40619 echo "$as_me: failed program was:" >&5
40620 sed 's/^/| /' conftest.$ac_ext >&5
40622 cat >conftest.$ac_ext <<_ACEOF
40625 cat confdefs.h >>conftest.$ac_ext
40626 cat >>conftest.$ac_ext <<_ACEOF
40627 /* end confdefs.h. */
40628 $ac_includes_default
40632 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40639 rm -f conftest.$ac_objext
40640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40641 (eval $ac_compile) 2>conftest.er1
40643 grep -v '^ *+' conftest.er1 >conftest.err
40645 cat conftest.err >&5
40646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40647 (exit $ac_status); } &&
40648 { ac_try='test -z "$ac_c_werror_flag"
40649 || test ! -s conftest.err'
40650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40651 (eval $ac_try) 2>&5
40653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40654 (exit $ac_status); }; } &&
40655 { ac_try='test -s conftest.$ac_objext'
40656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40657 (eval $ac_try) 2>&5
40659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40660 (exit $ac_status); }; }; then
40663 cat >conftest.$ac_ext <<_ACEOF
40666 cat confdefs.h >>conftest.$ac_ext
40667 cat >>conftest.$ac_ext <<_ACEOF
40668 /* end confdefs.h. */
40669 $ac_includes_default
40673 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40680 rm -f conftest.$ac_objext
40681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40682 (eval $ac_compile) 2>conftest.er1
40684 grep -v '^ *+' conftest.er1 >conftest.err
40686 cat conftest.err >&5
40687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40688 (exit $ac_status); } &&
40689 { ac_try='test -z "$ac_c_werror_flag"
40690 || test ! -s conftest.err'
40691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40692 (eval $ac_try) 2>&5
40694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40695 (exit $ac_status); }; } &&
40696 { ac_try='test -s conftest.$ac_objext'
40697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40698 (eval $ac_try) 2>&5
40700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40701 (exit $ac_status); }; }; then
40702 ac_lo=$ac_mid; break
40704 echo "$as_me: failed program was:" >&5
40705 sed 's/^/| /' conftest.$ac_ext >&5
40707 ac_hi=`expr '(' $ac_mid ')' - 1`
40708 if test $ac_mid -le $ac_hi; then
40712 ac_mid=`expr 2 '*' $ac_mid`
40714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40717 echo "$as_me: failed program was:" >&5
40718 sed 's/^/| /' conftest.$ac_ext >&5
40722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40725 # Binary search between lo and hi bounds.
40726 while test "x$ac_lo" != "x$ac_hi"; do
40727 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40728 cat >conftest.$ac_ext <<_ACEOF
40731 cat confdefs.h >>conftest.$ac_ext
40732 cat >>conftest.$ac_ext <<_ACEOF
40733 /* end confdefs.h. */
40734 $ac_includes_default
40738 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40745 rm -f conftest.$ac_objext
40746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40747 (eval $ac_compile) 2>conftest.er1
40749 grep -v '^ *+' conftest.er1 >conftest.err
40751 cat conftest.err >&5
40752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40753 (exit $ac_status); } &&
40754 { ac_try='test -z "$ac_c_werror_flag"
40755 || test ! -s conftest.err'
40756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40757 (eval $ac_try) 2>&5
40759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40760 (exit $ac_status); }; } &&
40761 { ac_try='test -s conftest.$ac_objext'
40762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40763 (eval $ac_try) 2>&5
40765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40766 (exit $ac_status); }; }; then
40769 echo "$as_me: failed program was:" >&5
40770 sed 's/^/| /' conftest.$ac_ext >&5
40772 ac_lo=`expr '(' $ac_mid ')' + 1`
40774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40777 ?*) ac_cv_sizeof_short=$ac_lo;;
40778 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40779 See \`config.log' for more details." >&5
40780 echo "$as_me: error: cannot compute sizeof (short), 77
40781 See \`config.log' for more details." >&2;}
40782 { (exit 1); exit 1; }; } ;;
40785 if test "$cross_compiling" = yes; then
40786 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40787 See \`config.log' for more details." >&5
40788 echo "$as_me: error: cannot run test program while cross compiling
40789 See \`config.log' for more details." >&2;}
40790 { (exit 1); exit 1; }; }
40792 cat >conftest.$ac_ext <<_ACEOF
40795 cat confdefs.h >>conftest.$ac_ext
40796 cat >>conftest.$ac_ext <<_ACEOF
40797 /* end confdefs.h. */
40798 $ac_includes_default
40799 long longval () { return (long) (sizeof (short)); }
40800 unsigned long ulongval () { return (long) (sizeof (short)); }
40802 #include <stdlib.h>
40807 FILE *f = fopen ("conftest.val", "w");
40810 if (((long) (sizeof (short))) < 0)
40812 long i = longval ();
40813 if (i != ((long) (sizeof (short))))
40815 fprintf (f, "%ld\n", i);
40819 unsigned long i = ulongval ();
40820 if (i != ((long) (sizeof (short))))
40822 fprintf (f, "%lu\n", i);
40824 exit (ferror (f) || fclose (f) != 0);
40830 rm -f conftest$ac_exeext
40831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40832 (eval $ac_link) 2>&5
40834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40837 (eval $ac_try) 2>&5
40839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40840 (exit $ac_status); }; }; then
40841 ac_cv_sizeof_short=`cat conftest.val`
40843 echo "$as_me: program exited with status $ac_status" >&5
40844 echo "$as_me: failed program was:" >&5
40845 sed 's/^/| /' conftest.$ac_ext >&5
40847 ( exit $ac_status )
40848 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40849 See \`config.log' for more details." >&5
40850 echo "$as_me: error: cannot compute sizeof (short), 77
40851 See \`config.log' for more details." >&2;}
40852 { (exit 1); exit 1; }; }
40854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40859 ac_cv_sizeof_short=0
40862 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40863 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40864 cat >>confdefs.h <<_ACEOF
40865 #define SIZEOF_SHORT $ac_cv_sizeof_short
40869 echo "$as_me:$LINENO: checking for int" >&5
40870 echo $ECHO_N "checking for int... $ECHO_C" >&6
40871 if test "${ac_cv_type_int+set}" = set; then
40872 echo $ECHO_N "(cached) $ECHO_C" >&6
40874 cat >conftest.$ac_ext <<_ACEOF
40877 cat confdefs.h >>conftest.$ac_ext
40878 cat >>conftest.$ac_ext <<_ACEOF
40879 /* end confdefs.h. */
40880 $ac_includes_default
40892 rm -f conftest.$ac_objext
40893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40894 (eval $ac_compile) 2>conftest.er1
40896 grep -v '^ *+' conftest.er1 >conftest.err
40898 cat conftest.err >&5
40899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900 (exit $ac_status); } &&
40901 { ac_try='test -z "$ac_c_werror_flag"
40902 || test ! -s conftest.err'
40903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40904 (eval $ac_try) 2>&5
40906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40907 (exit $ac_status); }; } &&
40908 { ac_try='test -s conftest.$ac_objext'
40909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40910 (eval $ac_try) 2>&5
40912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40913 (exit $ac_status); }; }; then
40916 echo "$as_me: failed program was:" >&5
40917 sed 's/^/| /' conftest.$ac_ext >&5
40921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40923 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40924 echo "${ECHO_T}$ac_cv_type_int" >&6
40926 echo "$as_me:$LINENO: checking size of int" >&5
40927 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40928 if test "${ac_cv_sizeof_int+set}" = set; then
40929 echo $ECHO_N "(cached) $ECHO_C" >&6
40931 if test "$ac_cv_type_int" = yes; then
40932 # The cast to unsigned long works around a bug in the HP C Compiler
40933 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40934 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40935 # This bug is HP SR number 8606223364.
40936 if test "$cross_compiling" = yes; then
40937 # Depending upon the size, compute the lo and hi bounds.
40938 cat >conftest.$ac_ext <<_ACEOF
40941 cat confdefs.h >>conftest.$ac_ext
40942 cat >>conftest.$ac_ext <<_ACEOF
40943 /* end confdefs.h. */
40944 $ac_includes_default
40948 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
40955 rm -f conftest.$ac_objext
40956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40957 (eval $ac_compile) 2>conftest.er1
40959 grep -v '^ *+' conftest.er1 >conftest.err
40961 cat conftest.err >&5
40962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963 (exit $ac_status); } &&
40964 { ac_try='test -z "$ac_c_werror_flag"
40965 || test ! -s conftest.err'
40966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40967 (eval $ac_try) 2>&5
40969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40970 (exit $ac_status); }; } &&
40971 { ac_try='test -s conftest.$ac_objext'
40972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40973 (eval $ac_try) 2>&5
40975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40976 (exit $ac_status); }; }; then
40979 cat >conftest.$ac_ext <<_ACEOF
40982 cat confdefs.h >>conftest.$ac_ext
40983 cat >>conftest.$ac_ext <<_ACEOF
40984 /* end confdefs.h. */
40985 $ac_includes_default
40989 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40996 rm -f conftest.$ac_objext
40997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40998 (eval $ac_compile) 2>conftest.er1
41000 grep -v '^ *+' conftest.er1 >conftest.err
41002 cat conftest.err >&5
41003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41004 (exit $ac_status); } &&
41005 { ac_try='test -z "$ac_c_werror_flag"
41006 || test ! -s conftest.err'
41007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41008 (eval $ac_try) 2>&5
41010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41011 (exit $ac_status); }; } &&
41012 { ac_try='test -s conftest.$ac_objext'
41013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41014 (eval $ac_try) 2>&5
41016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41017 (exit $ac_status); }; }; then
41018 ac_hi=$ac_mid; break
41020 echo "$as_me: failed program was:" >&5
41021 sed 's/^/| /' conftest.$ac_ext >&5
41023 ac_lo=`expr $ac_mid + 1`
41024 if test $ac_lo -le $ac_mid; then
41028 ac_mid=`expr 2 '*' $ac_mid + 1`
41030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41033 echo "$as_me: failed program was:" >&5
41034 sed 's/^/| /' conftest.$ac_ext >&5
41036 cat >conftest.$ac_ext <<_ACEOF
41039 cat confdefs.h >>conftest.$ac_ext
41040 cat >>conftest.$ac_ext <<_ACEOF
41041 /* end confdefs.h. */
41042 $ac_includes_default
41046 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41053 rm -f conftest.$ac_objext
41054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41055 (eval $ac_compile) 2>conftest.er1
41057 grep -v '^ *+' conftest.er1 >conftest.err
41059 cat conftest.err >&5
41060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41061 (exit $ac_status); } &&
41062 { ac_try='test -z "$ac_c_werror_flag"
41063 || test ! -s conftest.err'
41064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41065 (eval $ac_try) 2>&5
41067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068 (exit $ac_status); }; } &&
41069 { ac_try='test -s conftest.$ac_objext'
41070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41071 (eval $ac_try) 2>&5
41073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41074 (exit $ac_status); }; }; then
41077 cat >conftest.$ac_ext <<_ACEOF
41080 cat confdefs.h >>conftest.$ac_ext
41081 cat >>conftest.$ac_ext <<_ACEOF
41082 /* end confdefs.h. */
41083 $ac_includes_default
41087 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
41094 rm -f conftest.$ac_objext
41095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41096 (eval $ac_compile) 2>conftest.er1
41098 grep -v '^ *+' conftest.er1 >conftest.err
41100 cat conftest.err >&5
41101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41102 (exit $ac_status); } &&
41103 { ac_try='test -z "$ac_c_werror_flag"
41104 || test ! -s conftest.err'
41105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41106 (eval $ac_try) 2>&5
41108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41109 (exit $ac_status); }; } &&
41110 { ac_try='test -s conftest.$ac_objext'
41111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41112 (eval $ac_try) 2>&5
41114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41115 (exit $ac_status); }; }; then
41116 ac_lo=$ac_mid; break
41118 echo "$as_me: failed program was:" >&5
41119 sed 's/^/| /' conftest.$ac_ext >&5
41121 ac_hi=`expr '(' $ac_mid ')' - 1`
41122 if test $ac_mid -le $ac_hi; then
41126 ac_mid=`expr 2 '*' $ac_mid`
41128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41131 echo "$as_me: failed program was:" >&5
41132 sed 's/^/| /' conftest.$ac_ext >&5
41136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41139 # Binary search between lo and hi bounds.
41140 while test "x$ac_lo" != "x$ac_hi"; do
41141 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41142 cat >conftest.$ac_ext <<_ACEOF
41145 cat confdefs.h >>conftest.$ac_ext
41146 cat >>conftest.$ac_ext <<_ACEOF
41147 /* end confdefs.h. */
41148 $ac_includes_default
41152 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41159 rm -f conftest.$ac_objext
41160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41161 (eval $ac_compile) 2>conftest.er1
41163 grep -v '^ *+' conftest.er1 >conftest.err
41165 cat conftest.err >&5
41166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41167 (exit $ac_status); } &&
41168 { ac_try='test -z "$ac_c_werror_flag"
41169 || test ! -s conftest.err'
41170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41171 (eval $ac_try) 2>&5
41173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41174 (exit $ac_status); }; } &&
41175 { ac_try='test -s conftest.$ac_objext'
41176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41177 (eval $ac_try) 2>&5
41179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41180 (exit $ac_status); }; }; then
41183 echo "$as_me: failed program was:" >&5
41184 sed 's/^/| /' conftest.$ac_ext >&5
41186 ac_lo=`expr '(' $ac_mid ')' + 1`
41188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41191 ?*) ac_cv_sizeof_int=$ac_lo;;
41192 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41193 See \`config.log' for more details." >&5
41194 echo "$as_me: error: cannot compute sizeof (int), 77
41195 See \`config.log' for more details." >&2;}
41196 { (exit 1); exit 1; }; } ;;
41199 if test "$cross_compiling" = yes; then
41200 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41201 See \`config.log' for more details." >&5
41202 echo "$as_me: error: cannot run test program while cross compiling
41203 See \`config.log' for more details." >&2;}
41204 { (exit 1); exit 1; }; }
41206 cat >conftest.$ac_ext <<_ACEOF
41209 cat confdefs.h >>conftest.$ac_ext
41210 cat >>conftest.$ac_ext <<_ACEOF
41211 /* end confdefs.h. */
41212 $ac_includes_default
41213 long longval () { return (long) (sizeof (int)); }
41214 unsigned long ulongval () { return (long) (sizeof (int)); }
41216 #include <stdlib.h>
41221 FILE *f = fopen ("conftest.val", "w");
41224 if (((long) (sizeof (int))) < 0)
41226 long i = longval ();
41227 if (i != ((long) (sizeof (int))))
41229 fprintf (f, "%ld\n", i);
41233 unsigned long i = ulongval ();
41234 if (i != ((long) (sizeof (int))))
41236 fprintf (f, "%lu\n", i);
41238 exit (ferror (f) || fclose (f) != 0);
41244 rm -f conftest$ac_exeext
41245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41246 (eval $ac_link) 2>&5
41248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41251 (eval $ac_try) 2>&5
41253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254 (exit $ac_status); }; }; then
41255 ac_cv_sizeof_int=`cat conftest.val`
41257 echo "$as_me: program exited with status $ac_status" >&5
41258 echo "$as_me: failed program was:" >&5
41259 sed 's/^/| /' conftest.$ac_ext >&5
41261 ( exit $ac_status )
41262 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41263 See \`config.log' for more details." >&5
41264 echo "$as_me: error: cannot compute sizeof (int), 77
41265 See \`config.log' for more details." >&2;}
41266 { (exit 1); exit 1; }; }
41268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41276 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41277 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41278 cat >>confdefs.h <<_ACEOF
41279 #define SIZEOF_INT $ac_cv_sizeof_int
41283 echo "$as_me:$LINENO: checking for long" >&5
41284 echo $ECHO_N "checking for long... $ECHO_C" >&6
41285 if test "${ac_cv_type_long+set}" = set; then
41286 echo $ECHO_N "(cached) $ECHO_C" >&6
41288 cat >conftest.$ac_ext <<_ACEOF
41291 cat confdefs.h >>conftest.$ac_ext
41292 cat >>conftest.$ac_ext <<_ACEOF
41293 /* end confdefs.h. */
41294 $ac_includes_default
41306 rm -f conftest.$ac_objext
41307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41308 (eval $ac_compile) 2>conftest.er1
41310 grep -v '^ *+' conftest.er1 >conftest.err
41312 cat conftest.err >&5
41313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41314 (exit $ac_status); } &&
41315 { ac_try='test -z "$ac_c_werror_flag"
41316 || test ! -s conftest.err'
41317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41318 (eval $ac_try) 2>&5
41320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41321 (exit $ac_status); }; } &&
41322 { ac_try='test -s conftest.$ac_objext'
41323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41324 (eval $ac_try) 2>&5
41326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41327 (exit $ac_status); }; }; then
41328 ac_cv_type_long=yes
41330 echo "$as_me: failed program was:" >&5
41331 sed 's/^/| /' conftest.$ac_ext >&5
41335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41337 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41338 echo "${ECHO_T}$ac_cv_type_long" >&6
41340 echo "$as_me:$LINENO: checking size of long" >&5
41341 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41342 if test "${ac_cv_sizeof_long+set}" = set; then
41343 echo $ECHO_N "(cached) $ECHO_C" >&6
41345 if test "$ac_cv_type_long" = yes; then
41346 # The cast to unsigned long works around a bug in the HP C Compiler
41347 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41348 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41349 # This bug is HP SR number 8606223364.
41350 if test "$cross_compiling" = yes; then
41351 # Depending upon the size, compute the lo and hi bounds.
41352 cat >conftest.$ac_ext <<_ACEOF
41355 cat confdefs.h >>conftest.$ac_ext
41356 cat >>conftest.$ac_ext <<_ACEOF
41357 /* end confdefs.h. */
41358 $ac_includes_default
41362 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41369 rm -f conftest.$ac_objext
41370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41371 (eval $ac_compile) 2>conftest.er1
41373 grep -v '^ *+' conftest.er1 >conftest.err
41375 cat conftest.err >&5
41376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377 (exit $ac_status); } &&
41378 { ac_try='test -z "$ac_c_werror_flag"
41379 || test ! -s conftest.err'
41380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41381 (eval $ac_try) 2>&5
41383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41384 (exit $ac_status); }; } &&
41385 { ac_try='test -s conftest.$ac_objext'
41386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41387 (eval $ac_try) 2>&5
41389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41390 (exit $ac_status); }; }; then
41393 cat >conftest.$ac_ext <<_ACEOF
41396 cat confdefs.h >>conftest.$ac_ext
41397 cat >>conftest.$ac_ext <<_ACEOF
41398 /* end confdefs.h. */
41399 $ac_includes_default
41403 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41410 rm -f conftest.$ac_objext
41411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41412 (eval $ac_compile) 2>conftest.er1
41414 grep -v '^ *+' conftest.er1 >conftest.err
41416 cat conftest.err >&5
41417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41418 (exit $ac_status); } &&
41419 { ac_try='test -z "$ac_c_werror_flag"
41420 || test ! -s conftest.err'
41421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41422 (eval $ac_try) 2>&5
41424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41425 (exit $ac_status); }; } &&
41426 { ac_try='test -s conftest.$ac_objext'
41427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41428 (eval $ac_try) 2>&5
41430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41431 (exit $ac_status); }; }; then
41432 ac_hi=$ac_mid; break
41434 echo "$as_me: failed program was:" >&5
41435 sed 's/^/| /' conftest.$ac_ext >&5
41437 ac_lo=`expr $ac_mid + 1`
41438 if test $ac_lo -le $ac_mid; then
41442 ac_mid=`expr 2 '*' $ac_mid + 1`
41444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41447 echo "$as_me: failed program was:" >&5
41448 sed 's/^/| /' conftest.$ac_ext >&5
41450 cat >conftest.$ac_ext <<_ACEOF
41453 cat confdefs.h >>conftest.$ac_ext
41454 cat >>conftest.$ac_ext <<_ACEOF
41455 /* end confdefs.h. */
41456 $ac_includes_default
41460 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41467 rm -f conftest.$ac_objext
41468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41469 (eval $ac_compile) 2>conftest.er1
41471 grep -v '^ *+' conftest.er1 >conftest.err
41473 cat conftest.err >&5
41474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41475 (exit $ac_status); } &&
41476 { ac_try='test -z "$ac_c_werror_flag"
41477 || test ! -s conftest.err'
41478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41479 (eval $ac_try) 2>&5
41481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482 (exit $ac_status); }; } &&
41483 { ac_try='test -s conftest.$ac_objext'
41484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41485 (eval $ac_try) 2>&5
41487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41488 (exit $ac_status); }; }; then
41491 cat >conftest.$ac_ext <<_ACEOF
41494 cat confdefs.h >>conftest.$ac_ext
41495 cat >>conftest.$ac_ext <<_ACEOF
41496 /* end confdefs.h. */
41497 $ac_includes_default
41501 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41508 rm -f conftest.$ac_objext
41509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41510 (eval $ac_compile) 2>conftest.er1
41512 grep -v '^ *+' conftest.er1 >conftest.err
41514 cat conftest.err >&5
41515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41516 (exit $ac_status); } &&
41517 { ac_try='test -z "$ac_c_werror_flag"
41518 || test ! -s conftest.err'
41519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41520 (eval $ac_try) 2>&5
41522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41523 (exit $ac_status); }; } &&
41524 { ac_try='test -s conftest.$ac_objext'
41525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41526 (eval $ac_try) 2>&5
41528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41529 (exit $ac_status); }; }; then
41530 ac_lo=$ac_mid; break
41532 echo "$as_me: failed program was:" >&5
41533 sed 's/^/| /' conftest.$ac_ext >&5
41535 ac_hi=`expr '(' $ac_mid ')' - 1`
41536 if test $ac_mid -le $ac_hi; then
41540 ac_mid=`expr 2 '*' $ac_mid`
41542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41545 echo "$as_me: failed program was:" >&5
41546 sed 's/^/| /' conftest.$ac_ext >&5
41550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41553 # Binary search between lo and hi bounds.
41554 while test "x$ac_lo" != "x$ac_hi"; do
41555 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41556 cat >conftest.$ac_ext <<_ACEOF
41559 cat confdefs.h >>conftest.$ac_ext
41560 cat >>conftest.$ac_ext <<_ACEOF
41561 /* end confdefs.h. */
41562 $ac_includes_default
41566 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41573 rm -f conftest.$ac_objext
41574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41575 (eval $ac_compile) 2>conftest.er1
41577 grep -v '^ *+' conftest.er1 >conftest.err
41579 cat conftest.err >&5
41580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41581 (exit $ac_status); } &&
41582 { ac_try='test -z "$ac_c_werror_flag"
41583 || test ! -s conftest.err'
41584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41585 (eval $ac_try) 2>&5
41587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41588 (exit $ac_status); }; } &&
41589 { ac_try='test -s conftest.$ac_objext'
41590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41591 (eval $ac_try) 2>&5
41593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41594 (exit $ac_status); }; }; then
41597 echo "$as_me: failed program was:" >&5
41598 sed 's/^/| /' conftest.$ac_ext >&5
41600 ac_lo=`expr '(' $ac_mid ')' + 1`
41602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41605 ?*) ac_cv_sizeof_long=$ac_lo;;
41606 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41607 See \`config.log' for more details." >&5
41608 echo "$as_me: error: cannot compute sizeof (long), 77
41609 See \`config.log' for more details." >&2;}
41610 { (exit 1); exit 1; }; } ;;
41613 if test "$cross_compiling" = yes; then
41614 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41615 See \`config.log' for more details." >&5
41616 echo "$as_me: error: cannot run test program while cross compiling
41617 See \`config.log' for more details." >&2;}
41618 { (exit 1); exit 1; }; }
41620 cat >conftest.$ac_ext <<_ACEOF
41623 cat confdefs.h >>conftest.$ac_ext
41624 cat >>conftest.$ac_ext <<_ACEOF
41625 /* end confdefs.h. */
41626 $ac_includes_default
41627 long longval () { return (long) (sizeof (long)); }
41628 unsigned long ulongval () { return (long) (sizeof (long)); }
41630 #include <stdlib.h>
41635 FILE *f = fopen ("conftest.val", "w");
41638 if (((long) (sizeof (long))) < 0)
41640 long i = longval ();
41641 if (i != ((long) (sizeof (long))))
41643 fprintf (f, "%ld\n", i);
41647 unsigned long i = ulongval ();
41648 if (i != ((long) (sizeof (long))))
41650 fprintf (f, "%lu\n", i);
41652 exit (ferror (f) || fclose (f) != 0);
41658 rm -f conftest$ac_exeext
41659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41660 (eval $ac_link) 2>&5
41662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41665 (eval $ac_try) 2>&5
41667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41668 (exit $ac_status); }; }; then
41669 ac_cv_sizeof_long=`cat conftest.val`
41671 echo "$as_me: program exited with status $ac_status" >&5
41672 echo "$as_me: failed program was:" >&5
41673 sed 's/^/| /' conftest.$ac_ext >&5
41675 ( exit $ac_status )
41676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41677 See \`config.log' for more details." >&5
41678 echo "$as_me: error: cannot compute sizeof (long), 77
41679 See \`config.log' for more details." >&2;}
41680 { (exit 1); exit 1; }; }
41682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41687 ac_cv_sizeof_long=0
41690 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41691 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41692 cat >>confdefs.h <<_ACEOF
41693 #define SIZEOF_LONG $ac_cv_sizeof_long
41697 echo "$as_me:$LINENO: checking for wchar_t" >&5
41698 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41699 if test "${ac_cv_type_wchar_t+set}" = set; then
41700 echo $ECHO_N "(cached) $ECHO_C" >&6
41702 cat >conftest.$ac_ext <<_ACEOF
41705 cat confdefs.h >>conftest.$ac_ext
41706 cat >>conftest.$ac_ext <<_ACEOF
41707 /* end confdefs.h. */
41708 $ac_includes_default
41714 if (sizeof (wchar_t))
41720 rm -f conftest.$ac_objext
41721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41722 (eval $ac_compile) 2>conftest.er1
41724 grep -v '^ *+' conftest.er1 >conftest.err
41726 cat conftest.err >&5
41727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41728 (exit $ac_status); } &&
41729 { ac_try='test -z "$ac_c_werror_flag"
41730 || test ! -s conftest.err'
41731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41732 (eval $ac_try) 2>&5
41734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41735 (exit $ac_status); }; } &&
41736 { ac_try='test -s conftest.$ac_objext'
41737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41738 (eval $ac_try) 2>&5
41740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41741 (exit $ac_status); }; }; then
41742 ac_cv_type_wchar_t=yes
41744 echo "$as_me: failed program was:" >&5
41745 sed 's/^/| /' conftest.$ac_ext >&5
41747 ac_cv_type_wchar_t=no
41749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41751 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41752 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41754 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41755 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41756 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41757 echo $ECHO_N "(cached) $ECHO_C" >&6
41759 if test "$ac_cv_type_wchar_t" = yes; then
41760 # The cast to unsigned long works around a bug in the HP C Compiler
41761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41763 # This bug is HP SR number 8606223364.
41764 if test "$cross_compiling" = yes; then
41765 # Depending upon the size, compute the lo and hi bounds.
41766 cat >conftest.$ac_ext <<_ACEOF
41769 cat confdefs.h >>conftest.$ac_ext
41770 cat >>conftest.$ac_ext <<_ACEOF
41771 /* end confdefs.h. */
41772 $ac_includes_default
41776 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41783 rm -f conftest.$ac_objext
41784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41785 (eval $ac_compile) 2>conftest.er1
41787 grep -v '^ *+' conftest.er1 >conftest.err
41789 cat conftest.err >&5
41790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41791 (exit $ac_status); } &&
41792 { ac_try='test -z "$ac_c_werror_flag"
41793 || test ! -s conftest.err'
41794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41795 (eval $ac_try) 2>&5
41797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41798 (exit $ac_status); }; } &&
41799 { ac_try='test -s conftest.$ac_objext'
41800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41801 (eval $ac_try) 2>&5
41803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41804 (exit $ac_status); }; }; then
41807 cat >conftest.$ac_ext <<_ACEOF
41810 cat confdefs.h >>conftest.$ac_ext
41811 cat >>conftest.$ac_ext <<_ACEOF
41812 /* end confdefs.h. */
41813 $ac_includes_default
41817 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41824 rm -f conftest.$ac_objext
41825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41826 (eval $ac_compile) 2>conftest.er1
41828 grep -v '^ *+' conftest.er1 >conftest.err
41830 cat conftest.err >&5
41831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41832 (exit $ac_status); } &&
41833 { ac_try='test -z "$ac_c_werror_flag"
41834 || test ! -s conftest.err'
41835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41836 (eval $ac_try) 2>&5
41838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41839 (exit $ac_status); }; } &&
41840 { ac_try='test -s conftest.$ac_objext'
41841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41842 (eval $ac_try) 2>&5
41844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41845 (exit $ac_status); }; }; then
41846 ac_hi=$ac_mid; break
41848 echo "$as_me: failed program was:" >&5
41849 sed 's/^/| /' conftest.$ac_ext >&5
41851 ac_lo=`expr $ac_mid + 1`
41852 if test $ac_lo -le $ac_mid; then
41856 ac_mid=`expr 2 '*' $ac_mid + 1`
41858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41861 echo "$as_me: failed program was:" >&5
41862 sed 's/^/| /' conftest.$ac_ext >&5
41864 cat >conftest.$ac_ext <<_ACEOF
41867 cat confdefs.h >>conftest.$ac_ext
41868 cat >>conftest.$ac_ext <<_ACEOF
41869 /* end confdefs.h. */
41870 $ac_includes_default
41874 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41881 rm -f conftest.$ac_objext
41882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41883 (eval $ac_compile) 2>conftest.er1
41885 grep -v '^ *+' conftest.er1 >conftest.err
41887 cat conftest.err >&5
41888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889 (exit $ac_status); } &&
41890 { ac_try='test -z "$ac_c_werror_flag"
41891 || test ! -s conftest.err'
41892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41893 (eval $ac_try) 2>&5
41895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41896 (exit $ac_status); }; } &&
41897 { ac_try='test -s conftest.$ac_objext'
41898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41899 (eval $ac_try) 2>&5
41901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902 (exit $ac_status); }; }; then
41905 cat >conftest.$ac_ext <<_ACEOF
41908 cat confdefs.h >>conftest.$ac_ext
41909 cat >>conftest.$ac_ext <<_ACEOF
41910 /* end confdefs.h. */
41911 $ac_includes_default
41915 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41922 rm -f conftest.$ac_objext
41923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41924 (eval $ac_compile) 2>conftest.er1
41926 grep -v '^ *+' conftest.er1 >conftest.err
41928 cat conftest.err >&5
41929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41930 (exit $ac_status); } &&
41931 { ac_try='test -z "$ac_c_werror_flag"
41932 || test ! -s conftest.err'
41933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41934 (eval $ac_try) 2>&5
41936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41937 (exit $ac_status); }; } &&
41938 { ac_try='test -s conftest.$ac_objext'
41939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41940 (eval $ac_try) 2>&5
41942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41943 (exit $ac_status); }; }; then
41944 ac_lo=$ac_mid; break
41946 echo "$as_me: failed program was:" >&5
41947 sed 's/^/| /' conftest.$ac_ext >&5
41949 ac_hi=`expr '(' $ac_mid ')' - 1`
41950 if test $ac_mid -le $ac_hi; then
41954 ac_mid=`expr 2 '*' $ac_mid`
41956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41959 echo "$as_me: failed program was:" >&5
41960 sed 's/^/| /' conftest.$ac_ext >&5
41964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41967 # Binary search between lo and hi bounds.
41968 while test "x$ac_lo" != "x$ac_hi"; do
41969 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41970 cat >conftest.$ac_ext <<_ACEOF
41973 cat confdefs.h >>conftest.$ac_ext
41974 cat >>conftest.$ac_ext <<_ACEOF
41975 /* end confdefs.h. */
41976 $ac_includes_default
41980 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41987 rm -f conftest.$ac_objext
41988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41989 (eval $ac_compile) 2>conftest.er1
41991 grep -v '^ *+' conftest.er1 >conftest.err
41993 cat conftest.err >&5
41994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41995 (exit $ac_status); } &&
41996 { ac_try='test -z "$ac_c_werror_flag"
41997 || test ! -s conftest.err'
41998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41999 (eval $ac_try) 2>&5
42001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42002 (exit $ac_status); }; } &&
42003 { ac_try='test -s conftest.$ac_objext'
42004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42005 (eval $ac_try) 2>&5
42007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42008 (exit $ac_status); }; }; then
42011 echo "$as_me: failed program was:" >&5
42012 sed 's/^/| /' conftest.$ac_ext >&5
42014 ac_lo=`expr '(' $ac_mid ')' + 1`
42016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42019 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42020 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42021 See \`config.log' for more details." >&5
42022 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42023 See \`config.log' for more details." >&2;}
42024 { (exit 1); exit 1; }; } ;;
42027 if test "$cross_compiling" = yes; then
42028 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42029 See \`config.log' for more details." >&5
42030 echo "$as_me: error: cannot run test program while cross compiling
42031 See \`config.log' for more details." >&2;}
42032 { (exit 1); exit 1; }; }
42034 cat >conftest.$ac_ext <<_ACEOF
42037 cat confdefs.h >>conftest.$ac_ext
42038 cat >>conftest.$ac_ext <<_ACEOF
42039 /* end confdefs.h. */
42040 $ac_includes_default
42041 long longval () { return (long) (sizeof (wchar_t)); }
42042 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42044 #include <stdlib.h>
42049 FILE *f = fopen ("conftest.val", "w");
42052 if (((long) (sizeof (wchar_t))) < 0)
42054 long i = longval ();
42055 if (i != ((long) (sizeof (wchar_t))))
42057 fprintf (f, "%ld\n", i);
42061 unsigned long i = ulongval ();
42062 if (i != ((long) (sizeof (wchar_t))))
42064 fprintf (f, "%lu\n", i);
42066 exit (ferror (f) || fclose (f) != 0);
42072 rm -f conftest$ac_exeext
42073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42074 (eval $ac_link) 2>&5
42076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42079 (eval $ac_try) 2>&5
42081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42082 (exit $ac_status); }; }; then
42083 ac_cv_sizeof_wchar_t=`cat conftest.val`
42085 echo "$as_me: program exited with status $ac_status" >&5
42086 echo "$as_me: failed program was:" >&5
42087 sed 's/^/| /' conftest.$ac_ext >&5
42089 ( exit $ac_status )
42090 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42091 See \`config.log' for more details." >&5
42092 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42093 See \`config.log' for more details." >&2;}
42094 { (exit 1); exit 1; }; }
42096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42101 ac_cv_sizeof_wchar_t=0
42104 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42105 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42106 cat >>confdefs.h <<_ACEOF
42107 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42112 if test "$ac_cv_sizeof_int" -lt 4 ; then
42113 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42114 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42117 cat >>confdefs.h <<\_ACEOF
42118 #define LBER_INT_T long
42123 cat >>confdefs.h <<\_ACEOF
42124 #define LBER_INT_T int
42130 cat >>confdefs.h <<\_ACEOF
42131 #define LBER_LEN_T long
42135 cat >>confdefs.h <<\_ACEOF
42136 #define LBER_SOCKET_T int
42140 cat >>confdefs.h <<\_ACEOF
42141 #define LBER_TAG_T long
42145 echo "$as_me:$LINENO: checking for working memcmp" >&5
42146 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42147 if test "${ac_cv_func_memcmp_working+set}" = set; then
42148 echo $ECHO_N "(cached) $ECHO_C" >&6
42150 if test "$cross_compiling" = yes; then
42151 ac_cv_func_memcmp_working=no
42153 cat >conftest.$ac_ext <<_ACEOF
42156 cat confdefs.h >>conftest.$ac_ext
42157 cat >>conftest.$ac_ext <<_ACEOF
42158 /* end confdefs.h. */
42159 $ac_includes_default
42164 /* Some versions of memcmp are not 8-bit clean. */
42165 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42166 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42169 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42170 or more and with at least one buffer not starting on a 4-byte boundary.
42171 William Lewis provided this test program. */
42176 for (i = 0; i < 4; i++)
42180 strcpy (a, "--------01111111");
42181 strcpy (b, "--------10000000");
42182 if (memcmp (a, b, 16) >= 0)
42192 rm -f conftest$ac_exeext
42193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42194 (eval $ac_link) 2>&5
42196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42199 (eval $ac_try) 2>&5
42201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42202 (exit $ac_status); }; }; then
42203 ac_cv_func_memcmp_working=yes
42205 echo "$as_me: program exited with status $ac_status" >&5
42206 echo "$as_me: failed program was:" >&5
42207 sed 's/^/| /' conftest.$ac_ext >&5
42209 ( exit $ac_status )
42210 ac_cv_func_memcmp_working=no
42212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42215 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42216 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42217 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42218 "memcmp.$ac_objext" | \
42219 *" memcmp.$ac_objext" | \
42220 "memcmp.$ac_objext "* | \
42221 *" memcmp.$ac_objext "* ) ;;
42222 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42227 if test $ac_cv_func_memcmp_working = no ; then
42229 cat >>confdefs.h <<\_ACEOF
42230 #define NEED_MEMCMP_REPLACEMENT 1
42236 for ac_func in strftime
42238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42239 echo "$as_me:$LINENO: checking for $ac_func" >&5
42240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42241 if eval "test \"\${$as_ac_var+set}\" = set"; then
42242 echo $ECHO_N "(cached) $ECHO_C" >&6
42244 cat >conftest.$ac_ext <<_ACEOF
42247 cat confdefs.h >>conftest.$ac_ext
42248 cat >>conftest.$ac_ext <<_ACEOF
42249 /* end confdefs.h. */
42250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42252 #define $ac_func innocuous_$ac_func
42254 /* System header to define __stub macros and hopefully few prototypes,
42255 which can conflict with char $ac_func (); below.
42256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42257 <limits.h> exists even on freestanding compilers. */
42260 # include <limits.h>
42262 # include <assert.h>
42267 /* Override any gcc2 internal prototype to avoid an error. */
42272 /* We use char because int might match the return type of a gcc2
42273 builtin and then its argument prototype would still apply. */
42275 /* The GNU C library defines this for functions which it implements
42276 to always fail with ENOSYS. Some functions are actually named
42277 something starting with __ and the normal name is an alias. */
42278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42281 char (*f) () = $ac_func;
42290 return f != $ac_func;
42295 rm -f conftest.$ac_objext conftest$ac_exeext
42296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42297 (eval $ac_link) 2>conftest.er1
42299 grep -v '^ *+' conftest.er1 >conftest.err
42301 cat conftest.err >&5
42302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42303 (exit $ac_status); } &&
42304 { ac_try='test -z "$ac_c_werror_flag"
42305 || test ! -s conftest.err'
42306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42307 (eval $ac_try) 2>&5
42309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42310 (exit $ac_status); }; } &&
42311 { ac_try='test -s conftest$ac_exeext'
42312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42313 (eval $ac_try) 2>&5
42315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42316 (exit $ac_status); }; }; then
42317 eval "$as_ac_var=yes"
42319 echo "$as_me: failed program was:" >&5
42320 sed 's/^/| /' conftest.$ac_ext >&5
42322 eval "$as_ac_var=no"
42324 rm -f conftest.err conftest.$ac_objext \
42325 conftest$ac_exeext conftest.$ac_ext
42327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42329 if test `eval echo '${'$as_ac_var'}'` = yes; then
42330 cat >>confdefs.h <<_ACEOF
42331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42335 # strftime is in -lintl on SCO UNIX.
42336 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42337 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42338 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42339 echo $ECHO_N "(cached) $ECHO_C" >&6
42341 ac_check_lib_save_LIBS=$LIBS
42342 LIBS="-lintl $LIBS"
42343 cat >conftest.$ac_ext <<_ACEOF
42346 cat confdefs.h >>conftest.$ac_ext
42347 cat >>conftest.$ac_ext <<_ACEOF
42348 /* end confdefs.h. */
42350 /* Override any gcc2 internal prototype to avoid an error. */
42354 /* We use char because int might match the return type of a gcc2
42355 builtin and then its argument prototype would still apply. */
42365 rm -f conftest.$ac_objext conftest$ac_exeext
42366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42367 (eval $ac_link) 2>conftest.er1
42369 grep -v '^ *+' conftest.er1 >conftest.err
42371 cat conftest.err >&5
42372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42373 (exit $ac_status); } &&
42374 { ac_try='test -z "$ac_c_werror_flag"
42375 || test ! -s conftest.err'
42376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42377 (eval $ac_try) 2>&5
42379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42380 (exit $ac_status); }; } &&
42381 { ac_try='test -s conftest$ac_exeext'
42382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42383 (eval $ac_try) 2>&5
42385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42386 (exit $ac_status); }; }; then
42387 ac_cv_lib_intl_strftime=yes
42389 echo "$as_me: failed program was:" >&5
42390 sed 's/^/| /' conftest.$ac_ext >&5
42392 ac_cv_lib_intl_strftime=no
42394 rm -f conftest.err conftest.$ac_objext \
42395 conftest$ac_exeext conftest.$ac_ext
42396 LIBS=$ac_check_lib_save_LIBS
42398 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42399 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42400 if test $ac_cv_lib_intl_strftime = yes; then
42401 cat >>confdefs.h <<\_ACEOF
42402 #define HAVE_STRFTIME 1
42405 LIBS="-lintl $LIBS"
42412 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42413 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42414 if test "${ol_cv_func_inet_aton+set}" = set; then
42415 echo $ECHO_N "(cached) $ECHO_C" >&6
42417 cat >conftest.$ac_ext <<_ACEOF
42420 cat confdefs.h >>conftest.$ac_ext
42421 cat >>conftest.$ac_ext <<_ACEOF
42422 /* end confdefs.h. */
42424 #ifdef HAVE_SYS_TYPES_H
42425 # include <sys/types.h>
42427 #ifdef HAVE_SYS_SOCKET_H
42428 # include <sys/socket.h>
42429 # ifdef HAVE_SYS_SELECT_H
42430 # include <sys/select.h>
42432 # include <netinet/in.h>
42433 # ifdef HAVE_ARPA_INET_H
42434 # include <arpa/inet.h>
42442 int rc = inet_aton( "255.255.255.255", &in );
42447 rm -f conftest.$ac_objext conftest$ac_exeext
42448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42449 (eval $ac_link) 2>conftest.er1
42451 grep -v '^ *+' conftest.er1 >conftest.err
42453 cat conftest.err >&5
42454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42455 (exit $ac_status); } &&
42456 { ac_try='test -z "$ac_c_werror_flag"
42457 || test ! -s conftest.err'
42458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42459 (eval $ac_try) 2>&5
42461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42462 (exit $ac_status); }; } &&
42463 { ac_try='test -s conftest$ac_exeext'
42464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42465 (eval $ac_try) 2>&5
42467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42468 (exit $ac_status); }; }; then
42469 ol_cv_func_inet_aton=yes
42471 echo "$as_me: failed program was:" >&5
42472 sed 's/^/| /' conftest.$ac_ext >&5
42474 ol_cv_func_inet_aton=no
42476 rm -f conftest.err conftest.$ac_objext \
42477 conftest$ac_exeext conftest.$ac_ext
42479 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42480 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42481 if test $ol_cv_func_inet_aton != no; then
42483 cat >>confdefs.h <<\_ACEOF
42484 #define HAVE_INET_ATON 1
42490 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42491 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42492 if test "${ac_cv_func__spawnlp+set}" = set; then
42493 echo $ECHO_N "(cached) $ECHO_C" >&6
42495 cat >conftest.$ac_ext <<_ACEOF
42498 cat confdefs.h >>conftest.$ac_ext
42499 cat >>conftest.$ac_ext <<_ACEOF
42500 /* end confdefs.h. */
42501 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42503 #define _spawnlp innocuous__spawnlp
42505 /* System header to define __stub macros and hopefully few prototypes,
42506 which can conflict with char _spawnlp (); below.
42507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42508 <limits.h> exists even on freestanding compilers. */
42511 # include <limits.h>
42513 # include <assert.h>
42518 /* Override any gcc2 internal prototype to avoid an error. */
42523 /* We use char because int might match the return type of a gcc2
42524 builtin and then its argument prototype would still apply. */
42526 /* The GNU C library defines this for functions which it implements
42527 to always fail with ENOSYS. Some functions are actually named
42528 something starting with __ and the normal name is an alias. */
42529 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42532 char (*f) () = _spawnlp;
42541 return f != _spawnlp;
42546 rm -f conftest.$ac_objext conftest$ac_exeext
42547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42548 (eval $ac_link) 2>conftest.er1
42550 grep -v '^ *+' conftest.er1 >conftest.err
42552 cat conftest.err >&5
42553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42554 (exit $ac_status); } &&
42555 { ac_try='test -z "$ac_c_werror_flag"
42556 || test ! -s conftest.err'
42557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42558 (eval $ac_try) 2>&5
42560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42561 (exit $ac_status); }; } &&
42562 { ac_try='test -s conftest$ac_exeext'
42563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42564 (eval $ac_try) 2>&5
42566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42567 (exit $ac_status); }; }; then
42568 ac_cv_func__spawnlp=yes
42570 echo "$as_me: failed program was:" >&5
42571 sed 's/^/| /' conftest.$ac_ext >&5
42573 ac_cv_func__spawnlp=no
42575 rm -f conftest.err conftest.$ac_objext \
42576 conftest$ac_exeext conftest.$ac_ext
42578 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42579 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42580 if test $ac_cv_func__spawnlp = yes; then
42582 cat >>confdefs.h <<\_ACEOF
42583 #define HAVE_SPAWNLP 1
42589 echo "$as_me:$LINENO: checking for _snprintf" >&5
42590 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42591 if test "${ac_cv_func__snprintf+set}" = set; then
42592 echo $ECHO_N "(cached) $ECHO_C" >&6
42594 cat >conftest.$ac_ext <<_ACEOF
42597 cat confdefs.h >>conftest.$ac_ext
42598 cat >>conftest.$ac_ext <<_ACEOF
42599 /* end confdefs.h. */
42600 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42602 #define _snprintf innocuous__snprintf
42604 /* System header to define __stub macros and hopefully few prototypes,
42605 which can conflict with char _snprintf (); below.
42606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42607 <limits.h> exists even on freestanding compilers. */
42610 # include <limits.h>
42612 # include <assert.h>
42617 /* Override any gcc2 internal prototype to avoid an error. */
42622 /* We use char because int might match the return type of a gcc2
42623 builtin and then its argument prototype would still apply. */
42625 /* The GNU C library defines this for functions which it implements
42626 to always fail with ENOSYS. Some functions are actually named
42627 something starting with __ and the normal name is an alias. */
42628 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42631 char (*f) () = _snprintf;
42640 return f != _snprintf;
42645 rm -f conftest.$ac_objext conftest$ac_exeext
42646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42647 (eval $ac_link) 2>conftest.er1
42649 grep -v '^ *+' conftest.er1 >conftest.err
42651 cat conftest.err >&5
42652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42653 (exit $ac_status); } &&
42654 { ac_try='test -z "$ac_c_werror_flag"
42655 || test ! -s conftest.err'
42656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42657 (eval $ac_try) 2>&5
42659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42660 (exit $ac_status); }; } &&
42661 { ac_try='test -s conftest$ac_exeext'
42662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42663 (eval $ac_try) 2>&5
42665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42666 (exit $ac_status); }; }; then
42667 ac_cv_func__snprintf=yes
42669 echo "$as_me: failed program was:" >&5
42670 sed 's/^/| /' conftest.$ac_ext >&5
42672 ac_cv_func__snprintf=no
42674 rm -f conftest.err conftest.$ac_objext \
42675 conftest$ac_exeext conftest.$ac_ext
42677 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42678 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42679 if test $ac_cv_func__snprintf = yes; then
42680 ac_cv_func_snprintf=yes
42682 cat >>confdefs.h <<\_ACEOF
42683 #define snprintf _snprintf
42690 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42691 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42692 if test "${ac_cv_func__vsnprintf+set}" = set; then
42693 echo $ECHO_N "(cached) $ECHO_C" >&6
42695 cat >conftest.$ac_ext <<_ACEOF
42698 cat confdefs.h >>conftest.$ac_ext
42699 cat >>conftest.$ac_ext <<_ACEOF
42700 /* end confdefs.h. */
42701 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42703 #define _vsnprintf innocuous__vsnprintf
42705 /* System header to define __stub macros and hopefully few prototypes,
42706 which can conflict with char _vsnprintf (); below.
42707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42708 <limits.h> exists even on freestanding compilers. */
42711 # include <limits.h>
42713 # include <assert.h>
42718 /* Override any gcc2 internal prototype to avoid an error. */
42723 /* We use char because int might match the return type of a gcc2
42724 builtin and then its argument prototype would still apply. */
42725 char _vsnprintf ();
42726 /* The GNU C library defines this for functions which it implements
42727 to always fail with ENOSYS. Some functions are actually named
42728 something starting with __ and the normal name is an alias. */
42729 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42732 char (*f) () = _vsnprintf;
42741 return f != _vsnprintf;
42746 rm -f conftest.$ac_objext conftest$ac_exeext
42747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42748 (eval $ac_link) 2>conftest.er1
42750 grep -v '^ *+' conftest.er1 >conftest.err
42752 cat conftest.err >&5
42753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42754 (exit $ac_status); } &&
42755 { ac_try='test -z "$ac_c_werror_flag"
42756 || test ! -s conftest.err'
42757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42758 (eval $ac_try) 2>&5
42760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42761 (exit $ac_status); }; } &&
42762 { ac_try='test -s conftest$ac_exeext'
42763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42764 (eval $ac_try) 2>&5
42766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42767 (exit $ac_status); }; }; then
42768 ac_cv_func__vsnprintf=yes
42770 echo "$as_me: failed program was:" >&5
42771 sed 's/^/| /' conftest.$ac_ext >&5
42773 ac_cv_func__vsnprintf=no
42775 rm -f conftest.err conftest.$ac_objext \
42776 conftest$ac_exeext conftest.$ac_ext
42778 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42779 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42780 if test $ac_cv_func__vsnprintf = yes; then
42781 ac_cv_func_vsnprintf=yes
42783 cat >>confdefs.h <<\_ACEOF
42784 #define vsnprintf _vsnprintf
42792 for ac_func in vprintf
42794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42795 echo "$as_me:$LINENO: checking for $ac_func" >&5
42796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42797 if eval "test \"\${$as_ac_var+set}\" = set"; then
42798 echo $ECHO_N "(cached) $ECHO_C" >&6
42800 cat >conftest.$ac_ext <<_ACEOF
42803 cat confdefs.h >>conftest.$ac_ext
42804 cat >>conftest.$ac_ext <<_ACEOF
42805 /* end confdefs.h. */
42806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42808 #define $ac_func innocuous_$ac_func
42810 /* System header to define __stub macros and hopefully few prototypes,
42811 which can conflict with char $ac_func (); below.
42812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42813 <limits.h> exists even on freestanding compilers. */
42816 # include <limits.h>
42818 # include <assert.h>
42823 /* Override any gcc2 internal prototype to avoid an error. */
42828 /* We use char because int might match the return type of a gcc2
42829 builtin and then its argument prototype would still apply. */
42831 /* The GNU C library defines this for functions which it implements
42832 to always fail with ENOSYS. Some functions are actually named
42833 something starting with __ and the normal name is an alias. */
42834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42837 char (*f) () = $ac_func;
42846 return f != $ac_func;
42851 rm -f conftest.$ac_objext conftest$ac_exeext
42852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42853 (eval $ac_link) 2>conftest.er1
42855 grep -v '^ *+' conftest.er1 >conftest.err
42857 cat conftest.err >&5
42858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42859 (exit $ac_status); } &&
42860 { ac_try='test -z "$ac_c_werror_flag"
42861 || test ! -s conftest.err'
42862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42863 (eval $ac_try) 2>&5
42865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42866 (exit $ac_status); }; } &&
42867 { ac_try='test -s conftest$ac_exeext'
42868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42869 (eval $ac_try) 2>&5
42871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42872 (exit $ac_status); }; }; then
42873 eval "$as_ac_var=yes"
42875 echo "$as_me: failed program was:" >&5
42876 sed 's/^/| /' conftest.$ac_ext >&5
42878 eval "$as_ac_var=no"
42880 rm -f conftest.err conftest.$ac_objext \
42881 conftest$ac_exeext conftest.$ac_ext
42883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42885 if test `eval echo '${'$as_ac_var'}'` = yes; then
42886 cat >>confdefs.h <<_ACEOF
42887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42890 echo "$as_me:$LINENO: checking for _doprnt" >&5
42891 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
42892 if test "${ac_cv_func__doprnt+set}" = set; then
42893 echo $ECHO_N "(cached) $ECHO_C" >&6
42895 cat >conftest.$ac_ext <<_ACEOF
42898 cat confdefs.h >>conftest.$ac_ext
42899 cat >>conftest.$ac_ext <<_ACEOF
42900 /* end confdefs.h. */
42901 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
42902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42903 #define _doprnt innocuous__doprnt
42905 /* System header to define __stub macros and hopefully few prototypes,
42906 which can conflict with char _doprnt (); below.
42907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42908 <limits.h> exists even on freestanding compilers. */
42911 # include <limits.h>
42913 # include <assert.h>
42918 /* Override any gcc2 internal prototype to avoid an error. */
42923 /* We use char because int might match the return type of a gcc2
42924 builtin and then its argument prototype would still apply. */
42926 /* The GNU C library defines this for functions which it implements
42927 to always fail with ENOSYS. Some functions are actually named
42928 something starting with __ and the normal name is an alias. */
42929 #if defined (__stub__doprnt) || defined (__stub____doprnt)
42932 char (*f) () = _doprnt;
42941 return f != _doprnt;
42946 rm -f conftest.$ac_objext conftest$ac_exeext
42947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42948 (eval $ac_link) 2>conftest.er1
42950 grep -v '^ *+' conftest.er1 >conftest.err
42952 cat conftest.err >&5
42953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42954 (exit $ac_status); } &&
42955 { ac_try='test -z "$ac_c_werror_flag"
42956 || test ! -s conftest.err'
42957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42958 (eval $ac_try) 2>&5
42960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42961 (exit $ac_status); }; } &&
42962 { ac_try='test -s conftest$ac_exeext'
42963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42964 (eval $ac_try) 2>&5
42966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42967 (exit $ac_status); }; }; then
42968 ac_cv_func__doprnt=yes
42970 echo "$as_me: failed program was:" >&5
42971 sed 's/^/| /' conftest.$ac_ext >&5
42973 ac_cv_func__doprnt=no
42975 rm -f conftest.err conftest.$ac_objext \
42976 conftest$ac_exeext conftest.$ac_ext
42978 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
42979 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
42980 if test $ac_cv_func__doprnt = yes; then
42982 cat >>confdefs.h <<\_ACEOF
42983 #define HAVE_DOPRNT 1
42993 if test $ac_cv_func_vprintf = yes ; then
42996 for ac_func in snprintf vsnprintf
42998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42999 echo "$as_me:$LINENO: checking for $ac_func" >&5
43000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43001 if eval "test \"\${$as_ac_var+set}\" = set"; then
43002 echo $ECHO_N "(cached) $ECHO_C" >&6
43004 cat >conftest.$ac_ext <<_ACEOF
43007 cat confdefs.h >>conftest.$ac_ext
43008 cat >>conftest.$ac_ext <<_ACEOF
43009 /* end confdefs.h. */
43010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43012 #define $ac_func innocuous_$ac_func
43014 /* System header to define __stub macros and hopefully few prototypes,
43015 which can conflict with char $ac_func (); below.
43016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43017 <limits.h> exists even on freestanding compilers. */
43020 # include <limits.h>
43022 # include <assert.h>
43027 /* Override any gcc2 internal prototype to avoid an error. */
43032 /* We use char because int might match the return type of a gcc2
43033 builtin and then its argument prototype would still apply. */
43035 /* The GNU C library defines this for functions which it implements
43036 to always fail with ENOSYS. Some functions are actually named
43037 something starting with __ and the normal name is an alias. */
43038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43041 char (*f) () = $ac_func;
43050 return f != $ac_func;
43055 rm -f conftest.$ac_objext conftest$ac_exeext
43056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43057 (eval $ac_link) 2>conftest.er1
43059 grep -v '^ *+' conftest.er1 >conftest.err
43061 cat conftest.err >&5
43062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43063 (exit $ac_status); } &&
43064 { ac_try='test -z "$ac_c_werror_flag"
43065 || test ! -s conftest.err'
43066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43067 (eval $ac_try) 2>&5
43069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43070 (exit $ac_status); }; } &&
43071 { ac_try='test -s conftest$ac_exeext'
43072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43073 (eval $ac_try) 2>&5
43075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43076 (exit $ac_status); }; }; then
43077 eval "$as_ac_var=yes"
43079 echo "$as_me: failed program was:" >&5
43080 sed 's/^/| /' conftest.$ac_ext >&5
43082 eval "$as_ac_var=no"
43084 rm -f conftest.err conftest.$ac_objext \
43085 conftest$ac_exeext conftest.$ac_ext
43087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43089 if test `eval echo '${'$as_ac_var'}'` = yes; then
43090 cat >>confdefs.h <<_ACEOF
43091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43211 echo "$as_me:$LINENO: checking for $ac_func" >&5
43212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43213 if eval "test \"\${$as_ac_var+set}\" = set"; then
43214 echo $ECHO_N "(cached) $ECHO_C" >&6
43216 cat >conftest.$ac_ext <<_ACEOF
43219 cat confdefs.h >>conftest.$ac_ext
43220 cat >>conftest.$ac_ext <<_ACEOF
43221 /* end confdefs.h. */
43222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43224 #define $ac_func innocuous_$ac_func
43226 /* System header to define __stub macros and hopefully few prototypes,
43227 which can conflict with char $ac_func (); below.
43228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43229 <limits.h> exists even on freestanding compilers. */
43232 # include <limits.h>
43234 # include <assert.h>
43239 /* Override any gcc2 internal prototype to avoid an error. */
43244 /* We use char because int might match the return type of a gcc2
43245 builtin and then its argument prototype would still apply. */
43247 /* The GNU C library defines this for functions which it implements
43248 to always fail with ENOSYS. Some functions are actually named
43249 something starting with __ and the normal name is an alias. */
43250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43253 char (*f) () = $ac_func;
43262 return f != $ac_func;
43267 rm -f conftest.$ac_objext conftest$ac_exeext
43268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43269 (eval $ac_link) 2>conftest.er1
43271 grep -v '^ *+' conftest.er1 >conftest.err
43273 cat conftest.err >&5
43274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43275 (exit $ac_status); } &&
43276 { ac_try='test -z "$ac_c_werror_flag"
43277 || test ! -s conftest.err'
43278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43279 (eval $ac_try) 2>&5
43281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43282 (exit $ac_status); }; } &&
43283 { ac_try='test -s conftest$ac_exeext'
43284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43285 (eval $ac_try) 2>&5
43287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43288 (exit $ac_status); }; }; then
43289 eval "$as_ac_var=yes"
43291 echo "$as_me: failed program was:" >&5
43292 sed 's/^/| /' conftest.$ac_ext >&5
43294 eval "$as_ac_var=no"
43296 rm -f conftest.err conftest.$ac_objext \
43297 conftest$ac_exeext conftest.$ac_ext
43299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43301 if test `eval echo '${'$as_ac_var'}'` = yes; then
43302 cat >>confdefs.h <<_ACEOF
43303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43312 for ac_func in getopt getpeereid
43314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43315 echo "$as_me:$LINENO: checking for $ac_func" >&5
43316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43317 if eval "test \"\${$as_ac_var+set}\" = set"; then
43318 echo $ECHO_N "(cached) $ECHO_C" >&6
43320 cat >conftest.$ac_ext <<_ACEOF
43323 cat confdefs.h >>conftest.$ac_ext
43324 cat >>conftest.$ac_ext <<_ACEOF
43325 /* end confdefs.h. */
43326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43328 #define $ac_func innocuous_$ac_func
43330 /* System header to define __stub macros and hopefully few prototypes,
43331 which can conflict with char $ac_func (); below.
43332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43333 <limits.h> exists even on freestanding compilers. */
43336 # include <limits.h>
43338 # include <assert.h>
43343 /* Override any gcc2 internal prototype to avoid an error. */
43348 /* We use char because int might match the return type of a gcc2
43349 builtin and then its argument prototype would still apply. */
43351 /* The GNU C library defines this for functions which it implements
43352 to always fail with ENOSYS. Some functions are actually named
43353 something starting with __ and the normal name is an alias. */
43354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43357 char (*f) () = $ac_func;
43366 return f != $ac_func;
43371 rm -f conftest.$ac_objext conftest$ac_exeext
43372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43373 (eval $ac_link) 2>conftest.er1
43375 grep -v '^ *+' conftest.er1 >conftest.err
43377 cat conftest.err >&5
43378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43379 (exit $ac_status); } &&
43380 { ac_try='test -z "$ac_c_werror_flag"
43381 || test ! -s conftest.err'
43382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43383 (eval $ac_try) 2>&5
43385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43386 (exit $ac_status); }; } &&
43387 { ac_try='test -s conftest$ac_exeext'
43388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43389 (eval $ac_try) 2>&5
43391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43392 (exit $ac_status); }; }; then
43393 eval "$as_ac_var=yes"
43395 echo "$as_me: failed program was:" >&5
43396 sed 's/^/| /' conftest.$ac_ext >&5
43398 eval "$as_ac_var=no"
43400 rm -f conftest.err conftest.$ac_objext \
43401 conftest$ac_exeext conftest.$ac_ext
43403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43405 if test `eval echo '${'$as_ac_var'}'` = yes; then
43406 cat >>confdefs.h <<_ACEOF
43407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43412 "$ac_func.$ac_objext" | \
43413 *" $ac_func.$ac_objext" | \
43414 "$ac_func.$ac_objext "* | \
43415 *" $ac_func.$ac_objext "* ) ;;
43416 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43424 if test "$ac_cv_func_getopt" != yes; then
43425 LIBSRCS="$LIBSRCS getopt.c"
43428 if test "$ac_cv_func_getpeereid" != yes; then
43430 for ac_func in getpeerucred
43432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43433 echo "$as_me:$LINENO: checking for $ac_func" >&5
43434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43435 if eval "test \"\${$as_ac_var+set}\" = set"; then
43436 echo $ECHO_N "(cached) $ECHO_C" >&6
43438 cat >conftest.$ac_ext <<_ACEOF
43441 cat confdefs.h >>conftest.$ac_ext
43442 cat >>conftest.$ac_ext <<_ACEOF
43443 /* end confdefs.h. */
43444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43446 #define $ac_func innocuous_$ac_func
43448 /* System header to define __stub macros and hopefully few prototypes,
43449 which can conflict with char $ac_func (); below.
43450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43451 <limits.h> exists even on freestanding compilers. */
43454 # include <limits.h>
43456 # include <assert.h>
43461 /* Override any gcc2 internal prototype to avoid an error. */
43466 /* We use char because int might match the return type of a gcc2
43467 builtin and then its argument prototype would still apply. */
43469 /* The GNU C library defines this for functions which it implements
43470 to always fail with ENOSYS. Some functions are actually named
43471 something starting with __ and the normal name is an alias. */
43472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43475 char (*f) () = $ac_func;
43484 return f != $ac_func;
43489 rm -f conftest.$ac_objext conftest$ac_exeext
43490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43491 (eval $ac_link) 2>conftest.er1
43493 grep -v '^ *+' conftest.er1 >conftest.err
43495 cat conftest.err >&5
43496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43497 (exit $ac_status); } &&
43498 { ac_try='test -z "$ac_c_werror_flag"
43499 || test ! -s conftest.err'
43500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43501 (eval $ac_try) 2>&5
43503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43504 (exit $ac_status); }; } &&
43505 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
43511 eval "$as_ac_var=yes"
43513 echo "$as_me: failed program was:" >&5
43514 sed 's/^/| /' conftest.$ac_ext >&5
43516 eval "$as_ac_var=no"
43518 rm -f conftest.err conftest.$ac_objext \
43519 conftest$ac_exeext conftest.$ac_ext
43521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43523 if test `eval echo '${'$as_ac_var'}'` = yes; then
43524 cat >>confdefs.h <<_ACEOF
43525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43531 if test "$ac_cv_func_getpeerucred" != yes ; then
43532 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43533 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43534 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43535 echo $ECHO_N "(cached) $ECHO_C" >&6
43537 cat >conftest.$ac_ext <<_ACEOF
43540 cat confdefs.h >>conftest.$ac_ext
43541 cat >>conftest.$ac_ext <<_ACEOF
43542 /* end confdefs.h. */
43543 $ac_includes_default
43544 #ifdef HAVE_SYS_SOCKET_H
43545 #include <sys/socket.h>
43551 static struct msghdr ac_aggr;
43552 if (ac_aggr.msg_accrightslen)
43558 rm -f conftest.$ac_objext
43559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43560 (eval $ac_compile) 2>conftest.er1
43562 grep -v '^ *+' conftest.er1 >conftest.err
43564 cat conftest.err >&5
43565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43566 (exit $ac_status); } &&
43567 { ac_try='test -z "$ac_c_werror_flag"
43568 || test ! -s conftest.err'
43569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43570 (eval $ac_try) 2>&5
43572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43573 (exit $ac_status); }; } &&
43574 { ac_try='test -s conftest.$ac_objext'
43575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43576 (eval $ac_try) 2>&5
43578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43579 (exit $ac_status); }; }; then
43580 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43582 echo "$as_me: failed program was:" >&5
43583 sed 's/^/| /' conftest.$ac_ext >&5
43585 cat >conftest.$ac_ext <<_ACEOF
43588 cat confdefs.h >>conftest.$ac_ext
43589 cat >>conftest.$ac_ext <<_ACEOF
43590 /* end confdefs.h. */
43591 $ac_includes_default
43592 #ifdef HAVE_SYS_SOCKET_H
43593 #include <sys/socket.h>
43599 static struct msghdr ac_aggr;
43600 if (sizeof ac_aggr.msg_accrightslen)
43606 rm -f conftest.$ac_objext
43607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43608 (eval $ac_compile) 2>conftest.er1
43610 grep -v '^ *+' conftest.er1 >conftest.err
43612 cat conftest.err >&5
43613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43614 (exit $ac_status); } &&
43615 { ac_try='test -z "$ac_c_werror_flag"
43616 || test ! -s conftest.err'
43617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43618 (eval $ac_try) 2>&5
43620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43621 (exit $ac_status); }; } &&
43622 { ac_try='test -s conftest.$ac_objext'
43623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43624 (eval $ac_try) 2>&5
43626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43627 (exit $ac_status); }; }; then
43628 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43630 echo "$as_me: failed program was:" >&5
43631 sed 's/^/| /' conftest.$ac_ext >&5
43633 ac_cv_member_struct_msghdr_msg_accrightslen=no
43635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43639 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43640 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43641 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43643 cat >>confdefs.h <<_ACEOF
43644 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43650 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43651 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43652 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43653 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43654 echo $ECHO_N "(cached) $ECHO_C" >&6
43656 cat >conftest.$ac_ext <<_ACEOF
43659 cat confdefs.h >>conftest.$ac_ext
43660 cat >>conftest.$ac_ext <<_ACEOF
43661 /* end confdefs.h. */
43662 $ac_includes_default
43663 #ifdef HAVE_SYS_SOCKET_H
43664 #include <sys/socket.h>
43670 static struct msghdr ac_aggr;
43671 if (ac_aggr.msg_control)
43677 rm -f conftest.$ac_objext
43678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43679 (eval $ac_compile) 2>conftest.er1
43681 grep -v '^ *+' conftest.er1 >conftest.err
43683 cat conftest.err >&5
43684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43685 (exit $ac_status); } &&
43686 { ac_try='test -z "$ac_c_werror_flag"
43687 || test ! -s conftest.err'
43688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43689 (eval $ac_try) 2>&5
43691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43692 (exit $ac_status); }; } &&
43693 { ac_try='test -s conftest.$ac_objext'
43694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43695 (eval $ac_try) 2>&5
43697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43698 (exit $ac_status); }; }; then
43699 ac_cv_member_struct_msghdr_msg_control=yes
43701 echo "$as_me: failed program was:" >&5
43702 sed 's/^/| /' conftest.$ac_ext >&5
43704 cat >conftest.$ac_ext <<_ACEOF
43707 cat confdefs.h >>conftest.$ac_ext
43708 cat >>conftest.$ac_ext <<_ACEOF
43709 /* end confdefs.h. */
43710 $ac_includes_default
43711 #ifdef HAVE_SYS_SOCKET_H
43712 #include <sys/socket.h>
43718 static struct msghdr ac_aggr;
43719 if (sizeof ac_aggr.msg_control)
43725 rm -f conftest.$ac_objext
43726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43727 (eval $ac_compile) 2>conftest.er1
43729 grep -v '^ *+' conftest.er1 >conftest.err
43731 cat conftest.err >&5
43732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43733 (exit $ac_status); } &&
43734 { ac_try='test -z "$ac_c_werror_flag"
43735 || test ! -s conftest.err'
43736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43737 (eval $ac_try) 2>&5
43739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43740 (exit $ac_status); }; } &&
43741 { ac_try='test -s conftest.$ac_objext'
43742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43743 (eval $ac_try) 2>&5
43745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43746 (exit $ac_status); }; }; then
43747 ac_cv_member_struct_msghdr_msg_control=yes
43749 echo "$as_me: failed program was:" >&5
43750 sed 's/^/| /' conftest.$ac_ext >&5
43752 ac_cv_member_struct_msghdr_msg_control=no
43754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43758 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43759 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43760 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43762 cat >>confdefs.h <<_ACEOF
43763 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43771 LIBSRCS="$LIBSRCS getpeereid.c"
43774 if test "$ac_cv_func_snprintf" != yes ||
43775 test "$ac_cv_func_vsnprintf" != yes; then
43776 if test "$ac_cv_func_snprintf" != yes; then
43778 cat >>confdefs.h <<\_ACEOF
43779 #define snprintf ber_pvt_snprintf
43783 if test "$ac_cv_func_vsnprintf" != yes; then
43785 cat >>confdefs.h <<\_ACEOF
43786 #define vsnprintf ber_pvt_vsnprintf
43793 if test "$ol_enable_slapi" != no ; then
43795 for ac_header in ltdl.h
43797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43799 echo "$as_me:$LINENO: checking for $ac_header" >&5
43800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43802 echo $ECHO_N "(cached) $ECHO_C" >&6
43804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43807 # Is the header compilable?
43808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43810 cat >conftest.$ac_ext <<_ACEOF
43813 cat confdefs.h >>conftest.$ac_ext
43814 cat >>conftest.$ac_ext <<_ACEOF
43815 /* end confdefs.h. */
43816 $ac_includes_default
43817 #include <$ac_header>
43819 rm -f conftest.$ac_objext
43820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43821 (eval $ac_compile) 2>conftest.er1
43823 grep -v '^ *+' conftest.er1 >conftest.err
43825 cat conftest.err >&5
43826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43827 (exit $ac_status); } &&
43828 { ac_try='test -z "$ac_c_werror_flag"
43829 || test ! -s conftest.err'
43830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43831 (eval $ac_try) 2>&5
43833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43834 (exit $ac_status); }; } &&
43835 { ac_try='test -s conftest.$ac_objext'
43836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43837 (eval $ac_try) 2>&5
43839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43840 (exit $ac_status); }; }; then
43841 ac_header_compiler=yes
43843 echo "$as_me: failed program was:" >&5
43844 sed 's/^/| /' conftest.$ac_ext >&5
43846 ac_header_compiler=no
43848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43850 echo "${ECHO_T}$ac_header_compiler" >&6
43852 # Is the header present?
43853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43855 cat >conftest.$ac_ext <<_ACEOF
43858 cat confdefs.h >>conftest.$ac_ext
43859 cat >>conftest.$ac_ext <<_ACEOF
43860 /* end confdefs.h. */
43861 #include <$ac_header>
43863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43866 grep -v '^ *+' conftest.er1 >conftest.err
43868 cat conftest.err >&5
43869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43870 (exit $ac_status); } >/dev/null; then
43871 if test -s conftest.err; then
43872 ac_cpp_err=$ac_c_preproc_warn_flag
43873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43880 if test -z "$ac_cpp_err"; then
43881 ac_header_preproc=yes
43883 echo "$as_me: failed program was:" >&5
43884 sed 's/^/| /' conftest.$ac_ext >&5
43886 ac_header_preproc=no
43888 rm -f conftest.err conftest.$ac_ext
43889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43890 echo "${ECHO_T}$ac_header_preproc" >&6
43892 # So? What about this header?
43893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43899 ac_header_preproc=yes
43902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43916 ## ------------------------------------------ ##
43917 ## Report this to the AC_PACKAGE_NAME lists. ##
43918 ## ------------------------------------------ ##
43921 sed "s/^/$as_me: WARNING: /" >&2
43924 echo "$as_me:$LINENO: checking for $ac_header" >&5
43925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43927 echo $ECHO_N "(cached) $ECHO_C" >&6
43929 eval "$as_ac_Header=\$ac_header_preproc"
43931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43936 cat >>confdefs.h <<_ACEOF
43937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43945 if test $ac_cv_header_ltdl_h != yes ; then
43946 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
43947 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
43948 { (exit 1); exit 1; }; }
43950 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
43951 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
43952 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
43953 echo $ECHO_N "(cached) $ECHO_C" >&6
43955 ac_check_lib_save_LIBS=$LIBS
43956 LIBS="-lltdl $LIBS"
43957 cat >conftest.$ac_ext <<_ACEOF
43960 cat confdefs.h >>conftest.$ac_ext
43961 cat >>conftest.$ac_ext <<_ACEOF
43962 /* end confdefs.h. */
43964 /* Override any gcc2 internal prototype to avoid an error. */
43968 /* We use char because int might match the return type of a gcc2
43969 builtin and then its argument prototype would still apply. */
43979 rm -f conftest.$ac_objext conftest$ac_exeext
43980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43981 (eval $ac_link) 2>conftest.er1
43983 grep -v '^ *+' conftest.er1 >conftest.err
43985 cat conftest.err >&5
43986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43987 (exit $ac_status); } &&
43988 { ac_try='test -z "$ac_c_werror_flag"
43989 || test ! -s conftest.err'
43990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43991 (eval $ac_try) 2>&5
43993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43994 (exit $ac_status); }; } &&
43995 { ac_try='test -s conftest$ac_exeext'
43996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43997 (eval $ac_try) 2>&5
43999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44000 (exit $ac_status); }; }; then
44001 ac_cv_lib_ltdl_lt_dlinit=yes
44003 echo "$as_me: failed program was:" >&5
44004 sed 's/^/| /' conftest.$ac_ext >&5
44006 ac_cv_lib_ltdl_lt_dlinit=no
44008 rm -f conftest.err conftest.$ac_objext \
44009 conftest$ac_exeext conftest.$ac_ext
44010 LIBS=$ac_check_lib_save_LIBS
44012 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44013 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44014 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44017 LIBSLAPI=libslapi.a
44018 LIBSLAPITOOLS=../libslapi.a
44020 cat >>confdefs.h <<\_ACEOF
44021 #define HAVE_LIBLTDL 1
44026 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44027 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44028 { (exit 1); exit 1; }; }
44033 cat >>confdefs.h <<\_ACEOF
44034 #define LDAP_SLAPI 1
44039 if test "$ol_enable_debug" != no ; then
44040 if test "$ol_enable_debug" = traditional; then
44042 cat >>confdefs.h <<\_ACEOF
44043 #define OLD_DEBUG 1
44048 cat >>confdefs.h <<\_ACEOF
44049 #define LDAP_DEBUG 1
44053 if test "$ol_enable_syslog" = yes ; then
44055 cat >>confdefs.h <<\_ACEOF
44056 #define LDAP_SYSLOG 1
44060 if test "$ol_link_kbind" != no ; then
44062 cat >>confdefs.h <<\_ACEOF
44063 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44067 if test "$ol_enable_proctitle" != no ; then
44069 cat >>confdefs.h <<\_ACEOF
44070 #define LDAP_PROCTITLE 1
44074 if test "$ol_enable_referrals" != no ; then
44076 cat >>confdefs.h <<\_ACEOF
44077 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44081 if test "$ol_enable_local" != no; then
44083 cat >>confdefs.h <<\_ACEOF
44084 #define LDAP_PF_LOCAL 1
44088 if test "$ol_link_ipv6" != no; then
44090 cat >>confdefs.h <<\_ACEOF
44091 #define LDAP_PF_INET6 1
44095 if test "$ol_enable_cleartext" != no ; then
44097 cat >>confdefs.h <<\_ACEOF
44098 #define SLAPD_CLEARTEXT 1
44102 if test "$ol_enable_crypt" != no ; then
44104 cat >>confdefs.h <<\_ACEOF
44105 #define SLAPD_CRYPT 1
44109 if test "$ol_link_spasswd" != no ; then
44111 cat >>confdefs.h <<\_ACEOF
44112 #define SLAPD_SPASSWD 1
44116 if test "$ol_enable_multimaster" != no ; then
44118 cat >>confdefs.h <<\_ACEOF
44119 #define SLAPD_MULTIMASTER 1
44123 if test "$ol_enable_rlookups" != no ; then
44125 cat >>confdefs.h <<\_ACEOF
44126 #define SLAPD_RLOOKUPS 1
44130 if test "$ol_enable_aci" != no ; then
44132 cat >>confdefs.h <<\_ACEOF
44133 #define SLAPD_ACI_ENABLED 1
44136 WITH_ACI_ENABLED=yes
44138 WITH_ACI_ENABLED=no
44141 if test "$ol_link_modules" != no ; then
44143 cat >>confdefs.h <<\_ACEOF
44144 #define SLAPD_MODULES 1
44148 SLAPD_MODULES_LDFLAGS="-dlopen self"
44152 cat >>confdefs.h <<\_ACEOF
44153 #define SLAPD_MOD_STATIC 1
44157 cat >>confdefs.h <<\_ACEOF
44158 #define SLAPD_MOD_DYNAMIC 2
44162 if test "$ol_enable_bdb" != no ; then
44164 BUILD_BDB=$ol_enable_bdb
44165 if test "$ol_enable_bdb" = mod ; then
44166 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44167 MFLAG=SLAPD_MOD_DYNAMIC
44169 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44170 MFLAG=SLAPD_MOD_STATIC
44173 cat >>confdefs.h <<_ACEOF
44174 #define SLAPD_BDB $MFLAG
44179 if test "$ol_enable_dnssrv" != no ; then
44181 BUILD_DNSSRV=$ol_enable_dnssrv
44182 if test "$ol_enable_dnssrv" = mod ; then
44183 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44184 MFLAG=SLAPD_MOD_DYNAMIC
44186 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44187 MFLAG=SLAPD_MOD_STATIC
44190 cat >>confdefs.h <<_ACEOF
44191 #define SLAPD_DNSSRV $MFLAG
44196 if test "$ol_enable_hdb" != no ; then
44198 BUILD_HDB=$ol_enable_hdb
44199 if test "$ol_enable_hdb" = mod ; then
44200 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44201 MFLAG=SLAPD_MOD_DYNAMIC
44203 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44204 MFLAG=SLAPD_MOD_STATIC
44207 cat >>confdefs.h <<_ACEOF
44208 #define SLAPD_HDB $MFLAG
44213 if test "$ol_enable_ldap" != no ; then
44215 BUILD_LDAP=$ol_enable_ldap
44216 if test "$ol_enable_ldap" = mod ; then
44217 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44218 MFLAG=SLAPD_MOD_DYNAMIC
44220 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44221 MFLAG=SLAPD_MOD_STATIC
44224 cat >>confdefs.h <<_ACEOF
44225 #define SLAPD_LDAP $MFLAG
44230 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44232 BUILD_LDBM=$ol_enable_ldbm
44233 if test "$ol_enable_ldbm" = mod ; then
44234 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44235 MFLAG=SLAPD_MOD_DYNAMIC
44237 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44238 MFLAG=SLAPD_MOD_STATIC
44241 cat >>confdefs.h <<_ACEOF
44242 #define SLAPD_LDBM $MFLAG
44247 if test "$ol_enable_meta" != no ; then
44249 BUILD_META=$ol_enable_meta
44251 if test "$ol_enable_meta" = mod ; then
44252 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44253 MFLAG=SLAPD_MOD_DYNAMIC
44255 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44256 MFLAG=SLAPD_MOD_STATIC
44259 cat >>confdefs.h <<_ACEOF
44260 #define SLAPD_META $MFLAG
44265 if test "$ol_enable_monitor" != no ; then
44267 BUILD_MONITOR=$ol_enable_monitor
44268 if test "$ol_enable_monitor" = mod ; then
44269 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44270 MFLAG=SLAPD_MOD_DYNAMIC
44272 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44273 MFLAG=SLAPD_MOD_STATIC
44276 cat >>confdefs.h <<_ACEOF
44277 #define SLAPD_MONITOR $MFLAG
44282 if test "$ol_enable_null" != no ; then
44284 BUILD_NULL=$ol_enable_null
44285 if test "$ol_enable_null" = mod ; then
44286 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44287 MFLAG=SLAPD_MOD_DYNAMIC
44289 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44290 MFLAG=SLAPD_MOD_STATIC
44293 cat >>confdefs.h <<_ACEOF
44294 #define SLAPD_NULL $MFLAG
44299 if test "$ol_enable_passwd" != no ; then
44301 BUILD_PASSWD=$ol_enable_passwd
44302 if test "$ol_enable_passwd" = mod ; then
44303 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44304 MFLAG=SLAPD_MOD_DYNAMIC
44306 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44307 MFLAG=SLAPD_MOD_STATIC
44310 cat >>confdefs.h <<_ACEOF
44311 #define SLAPD_PASSWD $MFLAG
44316 if test "$ol_link_perl" != no ; then
44318 BUILD_PERL=$ol_enable_perl
44319 if test "$ol_enable_perl" = mod ; then
44320 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44321 MFLAG=SLAPD_MOD_DYNAMIC
44323 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44324 MFLAG=SLAPD_MOD_STATIC
44327 cat >>confdefs.h <<_ACEOF
44328 #define SLAPD_PERL $MFLAG
44333 if test "$ol_enable_relay" != no ; then
44335 BUILD_RELAY=$ol_enable_relay
44336 if test "$ol_enable_relay" = mod ; then
44337 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44338 MFLAG=SLAPD_MOD_DYNAMIC
44340 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44341 MFLAG=SLAPD_MOD_STATIC
44344 cat >>confdefs.h <<_ACEOF
44345 #define SLAPD_RELAY $MFLAG
44350 if test "$ol_enable_shell" != no ; then
44351 if test "$ol_link_threads" != no ; then
44352 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44353 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44356 BUILD_SHELL=$ol_enable_shell
44357 if test "$ol_enable_shell" = mod ; then
44358 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44359 MFLAG=SLAPD_MOD_DYNAMIC
44361 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44362 MFLAG=SLAPD_MOD_STATIC
44365 cat >>confdefs.h <<_ACEOF
44366 #define SLAPD_SHELL $MFLAG
44371 if test "$ol_link_sql" != no ; then
44373 BUILD_SQL=$ol_enable_sql
44374 if test "$ol_enable_sql" = mod; then
44375 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44376 MFLAG=SLAPD_MOD_DYNAMIC
44378 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44379 MFLAG=SLAPD_MOD_STATIC
44382 cat >>confdefs.h <<_ACEOF
44383 #define SLAPD_SQL $MFLAG
44388 if test "$ol_enable_accesslog" != no ; then
44389 BUILD_ACCESSLOG=$ol_enable_accesslog
44390 if test "$ol_enable_accesslog" = mod ; then
44391 MFLAG=SLAPD_MOD_DYNAMIC
44392 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44394 MFLAG=SLAPD_MOD_STATIC
44395 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44398 cat >>confdefs.h <<_ACEOF
44399 #define SLAPD_OVER_ACCESSLOG $MFLAG
44404 if test "$ol_enable_denyop" != no ; then
44405 BUILD_DENYOP=$ol_enable_denyop
44406 if test "$ol_enable_denyop" = mod ; then
44407 MFLAG=SLAPD_MOD_DYNAMIC
44408 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44410 MFLAG=SLAPD_MOD_STATIC
44411 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44414 cat >>confdefs.h <<_ACEOF
44415 #define SLAPD_OVER_DENYOP $MFLAG
44420 if test "$ol_enable_dyngroup" != no ; then
44421 BUILD_DYNGROUP=$ol_enable_dyngroup
44422 if test "$ol_enable_dyngroup" = mod ; then
44423 MFLAG=SLAPD_MOD_DYNAMIC
44424 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44426 MFLAG=SLAPD_MOD_STATIC
44427 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44430 cat >>confdefs.h <<_ACEOF
44431 #define SLAPD_OVER_DYNGROUP $MFLAG
44436 if test "$ol_enable_dynlist" != no ; then
44437 BUILD_DYNLIST=$ol_enable_dynlist
44438 if test "$ol_enable_dynlist" = mod ; then
44439 MFLAG=SLAPD_MOD_DYNAMIC
44440 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44442 MFLAG=SLAPD_MOD_STATIC
44443 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44446 cat >>confdefs.h <<_ACEOF
44447 #define SLAPD_OVER_DYNLIST $MFLAG
44452 if test "$ol_enable_lastmod" != no ; then
44453 BUILD_LASTMOD=$ol_enable_lastmod
44454 if test "$ol_enable_lastmod" = mod ; then
44455 MFLAG=SLAPD_MOD_DYNAMIC
44456 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44458 MFLAG=SLAPD_MOD_STATIC
44459 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44462 cat >>confdefs.h <<_ACEOF
44463 #define SLAPD_OVER_LASTMOD $MFLAG
44468 if test "$ol_enable_ppolicy" != no ; then
44469 BUILD_PPOLICY=$ol_enable_ppolicy
44470 if test "$ol_enable_ppolicy" = mod ; then
44471 MFLAG=SLAPD_MOD_DYNAMIC
44472 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44474 MFLAG=SLAPD_MOD_STATIC
44475 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44478 cat >>confdefs.h <<_ACEOF
44479 #define SLAPD_OVER_PPOLICY $MFLAG
44484 if test "$ol_enable_proxycache" != no ; then
44485 BUILD_PROXYCACHE=$ol_enable_proxycache
44486 if test "$ol_enable_proxycache" = mod ; then
44487 MFLAG=SLAPD_MOD_DYNAMIC
44488 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44490 MFLAG=SLAPD_MOD_STATIC
44491 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44494 cat >>confdefs.h <<_ACEOF
44495 #define SLAPD_OVER_PROXYCACHE $MFLAG
44500 if test "$ol_enable_refint" != no ; then
44501 BUILD_REFINT=$ol_enable_refint
44502 if test "$ol_enable_refint" = mod ; then
44503 MFLAG=SLAPD_MOD_DYNAMIC
44504 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44506 MFLAG=SLAPD_MOD_STATIC
44507 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44510 cat >>confdefs.h <<_ACEOF
44511 #define SLAPD_OVER_REFINT $MFLAG
44516 if test "$ol_enable_retcode" != no ; then
44517 BUILD_RETCODE=$ol_enable_retcode
44518 if test "$ol_enable_retcode" = mod ; then
44519 MFLAG=SLAPD_MOD_DYNAMIC
44520 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44522 MFLAG=SLAPD_MOD_STATIC
44523 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44526 cat >>confdefs.h <<_ACEOF
44527 #define SLAPD_OVER_RETCODE $MFLAG
44532 if test "$ol_enable_rwm" != no ; then
44534 BUILD_RWM=$ol_enable_rwm
44535 if test "$ol_enable_rwm" = mod ; then
44536 MFLAG=SLAPD_MOD_DYNAMIC
44537 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44539 MFLAG=SLAPD_MOD_STATIC
44540 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44543 cat >>confdefs.h <<_ACEOF
44544 #define SLAPD_OVER_RWM $MFLAG
44549 if test "$ol_enable_syncprov" != no ; then
44550 BUILD_SYNCPROV=$ol_enable_syncprov
44551 if test "$ol_enable_syncprov" = mod ; then
44552 MFLAG=SLAPD_MOD_DYNAMIC
44553 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44555 MFLAG=SLAPD_MOD_STATIC
44556 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44559 cat >>confdefs.h <<_ACEOF
44560 #define SLAPD_OVER_SYNCPROV $MFLAG
44565 if test "$ol_enable_translucent" != no ; then
44566 BUILD_TRANSLUCENT=$ol_enable_translucent
44567 if test "$ol_enable_translucent" = mod ; then
44568 MFLAG=SLAPD_MOD_DYNAMIC
44569 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44571 MFLAG=SLAPD_MOD_STATIC
44572 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44575 cat >>confdefs.h <<_ACEOF
44576 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44581 if test "$ol_enable_unique" != no ; then
44582 BUILD_UNIQUE=$ol_enable_unique
44583 if test "$ol_enable_unique" = mod ; then
44584 MFLAG=SLAPD_MOD_DYNAMIC
44585 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44587 MFLAG=SLAPD_MOD_STATIC
44588 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44591 cat >>confdefs.h <<_ACEOF
44592 #define SLAPD_OVER_UNIQUE $MFLAG
44597 if test "$ol_enable_valsort" != no ; then
44598 BUILD_VALSORT=$ol_enable_valsort
44599 if test "$ol_enable_valsort" = mod ; then
44600 MFLAG=SLAPD_MOD_DYNAMIC
44601 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44603 MFLAG=SLAPD_MOD_STATIC
44604 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44607 cat >>confdefs.h <<_ACEOF
44608 #define SLAPD_OVER_VALSORT $MFLAG
44613 if test "$ol_enable_slurpd" != no &&
44614 test "$ol_link_threads" != no &&
44615 test $BUILD_SLAPD = yes ; then
44619 if test "$ol_enable_rewrite" != no ; then
44621 cat >>confdefs.h <<\_ACEOF
44622 #define ENABLE_REWRITE 1
44628 if test "$ol_enable_slapi" != no ; then
44630 cat >>confdefs.h <<\_ACEOF
44631 #define ENABLE_SLAPI 1
44635 SLAPD_SLAPI_DEPEND=libslapi.a
44640 if test "$ac_cv_mingw32" = yes ; then
44642 SLAPD_MODULES_LDFLAGS=
44728 # Check whether --with-xxinstall or --without-xxinstall was given.
44729 if test "${with_xxinstall+set}" = set; then
44730 withval="$with_xxinstall"
44735 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"
44738 ac_config_commands="$ac_config_commands default"
44742 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44743 # Let make expand exec_prefix.
44744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44748 # trailing colons and then remove the whole line if VPATH becomes empty
44749 # (actually we leave an empty line to preserve line numbers).
44750 if test "x$srcdir" = x.; then
44751 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44752 s/:*\$(srcdir):*/:/;
44753 s/:*\${srcdir}:*/:/;
44755 s/^\([^=]*=[ ]*\):*/\1/;
44761 DEFS=-DHAVE_CONFIG_H
44765 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44766 # 1. Remove the extension, and $U if already installed.
44767 ac_i=`echo "$ac_i" |
44768 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44770 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44771 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44773 LIBOBJS=$ac_libobjs
44775 LTLIBOBJS=$ac_ltlibobjs
44778 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44779 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44780 Usually this means the macro was only invoked conditionally." >&5
44781 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44782 Usually this means the macro was only invoked conditionally." >&2;}
44783 { (exit 1); exit 1; }; }
44785 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44786 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44787 Usually this means the macro was only invoked conditionally." >&5
44788 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44789 Usually this means the macro was only invoked conditionally." >&2;}
44790 { (exit 1); exit 1; }; }
44792 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44793 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44794 Usually this means the macro was only invoked conditionally." >&5
44795 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44796 Usually this means the macro was only invoked conditionally." >&2;}
44797 { (exit 1); exit 1; }; }
44800 : ${CONFIG_STATUS=./config.status}
44801 ac_clean_files_save=$ac_clean_files
44802 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44803 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44804 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44805 cat >$CONFIG_STATUS <<_ACEOF
44807 # Generated by $as_me.
44808 # Run this file to recreate the current configuration.
44809 # Compiler output produced by configure, useful for debugging
44810 # configure, is in config.log if it exists.
44813 ac_cs_recheck=false
44815 SHELL=\${CONFIG_SHELL-$SHELL}
44818 cat >>$CONFIG_STATUS <<\_ACEOF
44819 ## --------------------- ##
44820 ## M4sh Initialization. ##
44821 ## --------------------- ##
44823 # Be Bourne compatible
44824 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44827 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44828 # is contrary to our usage. Disable this feature.
44829 alias -g '${1+"$@"}'='"$@"'
44830 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44833 DUALCASE=1; export DUALCASE # for MKS sh
44835 # Support unset when possible.
44836 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44843 # Work around bugs in pre-3.0 UWIN ksh.
44844 $as_unset ENV MAIL MAILPATH
44851 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44852 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44853 LC_TELEPHONE LC_TIME
44855 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44856 eval $as_var=C; export $as_var
44862 # Required to use basename.
44863 if expr a : '\(a\)' >/dev/null 2>&1; then
44869 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44870 as_basename=basename
44876 # Name of the executable.
44877 as_me=`$as_basename "$0" ||
44878 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44879 X"$0" : 'X\(//\)$' \| \
44880 X"$0" : 'X\(/\)$' \| \
44881 . : '\(.\)' 2>/dev/null ||
44883 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44884 /^X\/\(\/\/\)$/{ s//\1/; q; }
44885 /^X\/\(\/\).*/{ s//\1/; q; }
44889 # PATH needs CR, and LINENO needs CR and PATH.
44890 # Avoid depending upon Character Ranges.
44891 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44892 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44893 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44894 as_cr_digits='0123456789'
44895 as_cr_alnum=$as_cr_Letters$as_cr_digits
44897 # The user is always right.
44898 if test "${PATH_SEPARATOR+set}" != set; then
44899 echo "#! /bin/sh" >conf$$.sh
44900 echo "exit 0" >>conf$$.sh
44902 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44911 as_lineno_1=$LINENO
44912 as_lineno_2=$LINENO
44913 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44914 test "x$as_lineno_1" != "x$as_lineno_2" &&
44915 test "x$as_lineno_3" = "x$as_lineno_2" || {
44916 # Find who we are. Look in the path if we contain no path at all
44919 *[\\/]* ) as_myself=$0 ;;
44920 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44921 for as_dir in $PATH
44924 test -z "$as_dir" && as_dir=.
44925 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44930 # We did not find ourselves, most probably we were run as `sh COMMAND'
44931 # in which case we are not to be found in the path.
44932 if test "x$as_myself" = x; then
44935 if test ! -f "$as_myself"; then
44936 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44937 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44938 { (exit 1); exit 1; }; }
44940 case $CONFIG_SHELL in
44942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44943 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44946 test -z "$as_dir" && as_dir=.
44947 for as_base in sh bash ksh sh5; do
44950 if ("$as_dir/$as_base" -c '
44951 as_lineno_1=$LINENO
44952 as_lineno_2=$LINENO
44953 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44954 test "x$as_lineno_1" != "x$as_lineno_2" &&
44955 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
44956 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44957 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44958 CONFIG_SHELL=$as_dir/$as_base
44959 export CONFIG_SHELL
44960 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44968 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44969 # uniformly replaced by the line number. The first 'sed' inserts a
44970 # line-number line before each line; the second 'sed' does the real
44971 # work. The second script uses 'N' to pair each line-number line
44972 # with the numbered line, and appends trailing '-' during
44973 # substitution so that $LINENO is not a special case at line end.
44974 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44975 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44976 sed '=' <$as_myself |
44981 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44984 s,^['$as_cr_digits']*\n,,
44985 ' >$as_me.lineno &&
44986 chmod +x $as_me.lineno ||
44987 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44988 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44989 { (exit 1); exit 1; }; }
44991 # Don't try to exec as it changes $[0], causing all sort of problems
44992 # (the dirname of $[0] is not the place where we might find the
44993 # original and so on. Autoconf is especially sensible to this).
44995 # Exit status is that of the last command.
45000 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45001 *c*,-n*) ECHO_N= ECHO_C='
45003 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45004 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45007 if expr a : '\(a\)' >/dev/null 2>&1; then
45013 rm -f conf$$ conf$$.exe conf$$.file
45015 if ln -s conf$$.file conf$$ 2>/dev/null; then
45016 # We could just check for DJGPP; but this test a) works b) is more generic
45017 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45018 if test -f conf$$.exe; then
45019 # Don't use ln at all; we don't have any links
45024 elif ln conf$$.file conf$$ 2>/dev/null; then
45029 rm -f conf$$ conf$$.exe conf$$.file
45031 if mkdir -p . 2>/dev/null; then
45034 test -d ./-p && rmdir ./-p
45038 as_executable_p="test -f"
45040 # Sed expression to map a string onto a valid CPP name.
45041 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45043 # Sed expression to map a string onto a valid variable name.
45044 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45048 # We need space, tab and new line, in precisely that order.
45058 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45059 # report actual input values of CONFIG_FILES etc. instead of their
45060 # values after options handling. Logging --version etc. is OK.
45064 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45065 ## Running $as_me. ##
45070 This file was extended by $as_me, which was
45071 generated by GNU Autoconf 2.59. Invocation command line was
45073 CONFIG_FILES = $CONFIG_FILES
45074 CONFIG_HEADERS = $CONFIG_HEADERS
45075 CONFIG_LINKS = $CONFIG_LINKS
45076 CONFIG_COMMANDS = $CONFIG_COMMANDS
45080 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45084 # Files that config.status was made for.
45085 if test -n "$ac_config_files"; then
45086 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45089 if test -n "$ac_config_headers"; then
45090 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45093 if test -n "$ac_config_links"; then
45094 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45097 if test -n "$ac_config_commands"; then
45098 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45101 cat >>$CONFIG_STATUS <<\_ACEOF
45104 \`$as_me' instantiates files from templates according to the
45105 current configuration.
45107 Usage: $0 [OPTIONS] [FILE]...
45109 -h, --help print this help, then exit
45110 -V, --version print version number, then exit
45111 -q, --quiet do not print progress messages
45112 -d, --debug don't remove temporary files
45113 --recheck update $as_me by reconfiguring in the same conditions
45114 --file=FILE[:TEMPLATE]
45115 instantiate the configuration file FILE
45116 --header=FILE[:TEMPLATE]
45117 instantiate the configuration header FILE
45119 Configuration files:
45122 Configuration headers:
45125 Configuration commands:
45128 Report bugs to <bug-autoconf@gnu.org>."
45131 cat >>$CONFIG_STATUS <<_ACEOF
45134 configured by $0, generated by GNU Autoconf 2.59,
45135 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45137 Copyright (C) 2003 Free Software Foundation, Inc.
45138 This config.status script is free software; the Free Software Foundation
45139 gives unlimited permission to copy, distribute and modify it."
45144 cat >>$CONFIG_STATUS <<\_ACEOF
45145 # If no file are specified by the user, then we need to provide default
45146 # value. By we need to know if files were specified by the user.
45152 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45153 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45161 *) # This is not an option, so the user has probably given explicit
45164 ac_need_defaults=false;;
45168 # Handling of the options.
45170 cat >>$CONFIG_STATUS <<\_ACEOF
45171 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45173 --version | --vers* | -V )
45174 echo "$ac_cs_version"; exit 0 ;;
45176 # Conflict between --help and --header
45177 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45178 Try \`$0 --help' for more information." >&5
45179 echo "$as_me: error: ambiguous option: $1
45180 Try \`$0 --help' for more information." >&2;}
45181 { (exit 1); exit 1; }; };;
45182 --help | --hel | -h )
45183 echo "$ac_cs_usage"; exit 0 ;;
45184 --debug | --d* | -d )
45186 --file | --fil | --fi | --f )
45188 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45189 ac_need_defaults=false;;
45190 --header | --heade | --head | --hea )
45192 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45193 ac_need_defaults=false;;
45194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45195 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45198 # This is an error.
45199 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45200 Try \`$0 --help' for more information." >&5
45201 echo "$as_me: error: unrecognized option: $1
45202 Try \`$0 --help' for more information." >&2;}
45203 { (exit 1); exit 1; }; } ;;
45205 *) ac_config_targets="$ac_config_targets $1" ;;
45211 ac_configure_extra_args=
45213 if $ac_cs_silent; then
45215 ac_configure_extra_args="$ac_configure_extra_args --silent"
45219 cat >>$CONFIG_STATUS <<_ACEOF
45220 if \$ac_cs_recheck; then
45221 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45222 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45227 cat >>$CONFIG_STATUS <<_ACEOF
45229 # INIT-COMMANDS section.
45232 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45234 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45235 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45242 cat >>$CONFIG_STATUS <<\_ACEOF
45243 for ac_config_target in $ac_config_targets
45245 case "$ac_config_target" in
45246 # Handling of arguments.
45247 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45248 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45249 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45250 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45251 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45252 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45253 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45254 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45255 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45256 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45257 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45258 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45259 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45260 "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" ;;
45261 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45262 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45263 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45264 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45265 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45266 "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" ;;
45267 "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" ;;
45268 "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" ;;
45269 "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" ;;
45270 "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" ;;
45271 "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" ;;
45272 "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" ;;
45273 "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" ;;
45274 "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" ;;
45275 "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" ;;
45276 "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" ;;
45277 "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" ;;
45278 "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" ;;
45279 "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" ;;
45280 "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" ;;
45281 "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" ;;
45282 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45283 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45284 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45285 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45286 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45287 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45288 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45289 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45290 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45291 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45292 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45293 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45294 { (exit 1); exit 1; }; };;
45298 # If the user did not use the arguments to specify the items to instantiate,
45299 # then the envvar interface is used. Set only those that are not.
45300 # We use the long form for the default assignment because of an extremely
45301 # bizarre bug on SunOS 4.1.3.
45302 if $ac_need_defaults; then
45303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45305 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45308 # Have a temporary directory for convenience. Make it in the build tree
45309 # simply because there is no reason to put it here, and in addition,
45310 # creating and moving files from /tmp can sometimes cause problems.
45311 # Create a temporary directory, and hook for its removal unless debugging.
45314 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45315 trap '{ (exit 1); exit 1; }' 1 2 13 15
45318 # Create a (secure) tmp directory for tmp files.
45321 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45322 test -n "$tmp" && test -d "$tmp"
45325 tmp=./confstat$$-$RANDOM
45326 (umask 077 && mkdir $tmp)
45329 echo "$me: cannot create a temporary directory in ." >&2
45330 { (exit 1); exit 1; }
45335 cat >>$CONFIG_STATUS <<_ACEOF
45338 # CONFIG_FILES section.
45341 # No need to generate the scripts if there are no CONFIG_FILES.
45342 # This happens for instance when ./config.status config.h
45343 if test -n "\$CONFIG_FILES"; then
45344 # Protect against being on the right side of a sed subst in config.status.
45345 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45346 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45347 s,@SHELL@,$SHELL,;t t
45348 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45349 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45350 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45351 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45352 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45353 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45354 s,@exec_prefix@,$exec_prefix,;t t
45355 s,@prefix@,$prefix,;t t
45356 s,@program_transform_name@,$program_transform_name,;t t
45357 s,@bindir@,$bindir,;t t
45358 s,@sbindir@,$sbindir,;t t
45359 s,@libexecdir@,$libexecdir,;t t
45360 s,@datadir@,$datadir,;t t
45361 s,@sysconfdir@,$sysconfdir,;t t
45362 s,@sharedstatedir@,$sharedstatedir,;t t
45363 s,@localstatedir@,$localstatedir,;t t
45364 s,@libdir@,$libdir,;t t
45365 s,@includedir@,$includedir,;t t
45366 s,@oldincludedir@,$oldincludedir,;t t
45367 s,@infodir@,$infodir,;t t
45368 s,@mandir@,$mandir,;t t
45369 s,@build_alias@,$build_alias,;t t
45370 s,@host_alias@,$host_alias,;t t
45371 s,@target_alias@,$target_alias,;t t
45372 s,@DEFS@,$DEFS,;t t
45373 s,@ECHO_C@,$ECHO_C,;t t
45374 s,@ECHO_N@,$ECHO_N,;t t
45375 s,@ECHO_T@,$ECHO_T,;t t
45376 s,@LIBS@,$LIBS,;t t
45377 s,@build@,$build,;t t
45378 s,@build_cpu@,$build_cpu,;t t
45379 s,@build_vendor@,$build_vendor,;t t
45380 s,@build_os@,$build_os,;t t
45381 s,@host@,$host,;t t
45382 s,@host_cpu@,$host_cpu,;t t
45383 s,@host_vendor@,$host_vendor,;t t
45384 s,@host_os@,$host_os,;t t
45385 s,@target@,$target,;t t
45386 s,@target_cpu@,$target_cpu,;t t
45387 s,@target_vendor@,$target_vendor,;t t
45388 s,@target_os@,$target_os,;t t
45389 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45390 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45391 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45392 s,@CYGPATH_W@,$CYGPATH_W,;t t
45393 s,@PACKAGE@,$PACKAGE,;t t
45394 s,@VERSION@,$VERSION,;t t
45395 s,@ACLOCAL@,$ACLOCAL,;t t
45396 s,@AUTOCONF@,$AUTOCONF,;t t
45397 s,@AUTOMAKE@,$AUTOMAKE,;t t
45398 s,@AUTOHEADER@,$AUTOHEADER,;t t
45399 s,@MAKEINFO@,$MAKEINFO,;t t
45400 s,@install_sh@,$install_sh,;t t
45401 s,@STRIP@,$STRIP,;t t
45402 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45403 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45404 s,@mkdir_p@,$mkdir_p,;t t
45406 s,@SET_MAKE@,$SET_MAKE,;t t
45407 s,@am__leading_dot@,$am__leading_dot,;t t
45408 s,@AMTAR@,$AMTAR,;t t
45409 s,@am__tar@,$am__tar,;t t
45410 s,@am__untar@,$am__untar,;t t
45411 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45412 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45413 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45414 s,@top_builddir@,$top_builddir,;t t
45415 s,@ldap_subdir@,$ldap_subdir,;t t
45418 s,@CFLAGS@,$CFLAGS,;t t
45419 s,@LDFLAGS@,$LDFLAGS,;t t
45420 s,@CPPFLAGS@,$CPPFLAGS,;t t
45421 s,@ac_ct_CC@,$ac_ct_CC,;t t
45422 s,@EXEEXT@,$EXEEXT,;t t
45423 s,@OBJEXT@,$OBJEXT,;t t
45424 s,@DEPDIR@,$DEPDIR,;t t
45425 s,@am__include@,$am__include,;t t
45426 s,@am__quote@,$am__quote,;t t
45427 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45428 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45429 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45430 s,@CCDEPMODE@,$CCDEPMODE,;t t
45431 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45432 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45433 s,@EGREP@,$EGREP,;t t
45434 s,@LN_S@,$LN_S,;t t
45435 s,@ECHO@,$ECHO,;t t
45436 s,@ac_ct_AR@,$ac_ct_AR,;t t
45437 s,@RANLIB@,$RANLIB,;t t
45438 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45439 s,@DLLTOOL@,$DLLTOOL,;t t
45440 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45442 s,@ac_ct_AS@,$ac_ct_AS,;t t
45443 s,@OBJDUMP@,$OBJDUMP,;t t
45444 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45446 s,@LIBTOOL@,$LIBTOOL,;t t
45447 s,@PERLBIN@,$PERLBIN,;t t
45448 s,@OL_MKDEP@,$OL_MKDEP,;t t
45449 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45450 s,@LTSTATIC@,$LTSTATIC,;t t
45451 s,@LIBOBJS@,$LIBOBJS,;t t
45452 s,@LIBSRCS@,$LIBSRCS,;t t
45453 s,@PLAT@,$PLAT,;t t
45454 s,@WITH_SASL@,$WITH_SASL,;t t
45455 s,@WITH_TLS@,$WITH_TLS,;t t
45456 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45457 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45458 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45459 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45460 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45461 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45462 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45463 s,@BUILD_BDB@,$BUILD_BDB,;t t
45464 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45465 s,@BUILD_HDB@,$BUILD_HDB,;t t
45466 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45467 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45468 s,@BUILD_META@,$BUILD_META,;t t
45469 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45470 s,@BUILD_NULL@,$BUILD_NULL,;t t
45471 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45472 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45473 s,@BUILD_PERL@,$BUILD_PERL,;t t
45474 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45475 s,@BUILD_SQL@,$BUILD_SQL,;t t
45476 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45477 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45478 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45479 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45480 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45481 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45482 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45483 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45484 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45485 s,@BUILD_RWM@,$BUILD_RWM,;t t
45486 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45487 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45488 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45489 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45490 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45491 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45492 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45493 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45494 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45495 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45496 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45497 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45498 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45499 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45500 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45501 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45502 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45503 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45504 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45505 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45506 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45507 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45508 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45509 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45510 s,@SASL_LIBS@,$SASL_LIBS,;t t
45511 s,@TLS_LIBS@,$TLS_LIBS,;t t
45512 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45513 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45514 s,@LIBSLAPI@,$LIBSLAPI,;t t
45515 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45516 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45517 s,@ICU_LIBS@,$ICU_LIBS,;t t
45518 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45519 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45520 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45521 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45522 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45523 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45528 cat >>$CONFIG_STATUS <<\_ACEOF
45529 # Split the substitutions into bite-sized pieces for seds with
45530 # small command number limits, like on Digital OSF/1 and HP-UX.
45531 ac_max_sed_lines=48
45532 ac_sed_frag=1 # Number of current file.
45533 ac_beg=1 # First line for current file.
45534 ac_end=$ac_max_sed_lines # Line after last line for current file.
45537 while $ac_more_lines; do
45538 if test $ac_beg -gt 1; then
45539 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45541 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45543 if test ! -s $tmp/subs.frag; then
45544 ac_more_lines=false
45546 # The purpose of the label and of the branching condition is to
45547 # speed up the sed processing (if there are no `@' at all, there
45548 # is no need to browse any of the substitutions).
45549 # These are the two extra sed commands mentioned above.
45551 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45552 if test -z "$ac_sed_cmds"; then
45553 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45555 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45557 ac_sed_frag=`expr $ac_sed_frag + 1`
45559 ac_end=`expr $ac_end + $ac_max_sed_lines`
45562 if test -z "$ac_sed_cmds"; then
45565 fi # test -n "$CONFIG_FILES"
45568 cat >>$CONFIG_STATUS <<\_ACEOF
45569 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45570 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45572 - | *:- | *:-:* ) # input from stdin
45574 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45575 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45576 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45577 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45578 * ) ac_file_in=$ac_file.in ;;
45581 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45582 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45583 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45584 X"$ac_file" : 'X\(//\)[^/]' \| \
45585 X"$ac_file" : 'X\(//\)$' \| \
45586 X"$ac_file" : 'X\(/\)' \| \
45587 . : '\(.\)' 2>/dev/null ||
45589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45590 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45591 /^X\(\/\/\)$/{ s//\1/; q; }
45592 /^X\(\/\).*/{ s//\1/; q; }
45594 { if $as_mkdir_p; then
45599 while test ! -d "$as_dir"; do
45600 as_dirs="$as_dir $as_dirs"
45601 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45602 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45603 X"$as_dir" : 'X\(//\)[^/]' \| \
45604 X"$as_dir" : 'X\(//\)$' \| \
45605 X"$as_dir" : 'X\(/\)' \| \
45606 . : '\(.\)' 2>/dev/null ||
45608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45609 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45610 /^X\(\/\/\)$/{ s//\1/; q; }
45611 /^X\(\/\).*/{ s//\1/; q; }
45614 test ! -n "$as_dirs" || mkdir $as_dirs
45615 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45616 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45617 { (exit 1); exit 1; }; }; }
45621 if test "$ac_dir" != .; then
45622 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45623 # A "../" for each directory in $ac_dir_suffix.
45624 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45626 ac_dir_suffix= ac_top_builddir=
45630 .) # No --srcdir option. We are building in place.
45632 if test -z "$ac_top_builddir"; then
45635 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45637 [\\/]* | ?:[\\/]* ) # Absolute path.
45638 ac_srcdir=$srcdir$ac_dir_suffix;
45639 ac_top_srcdir=$srcdir ;;
45640 *) # Relative path.
45641 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45642 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45645 # Do not use `cd foo && pwd` to compute absolute paths, because
45646 # the directories may not exist.
45648 .) ac_abs_builddir="$ac_dir";;
45651 .) ac_abs_builddir=`pwd`;;
45652 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45653 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45656 case $ac_abs_builddir in
45657 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45659 case ${ac_top_builddir}. in
45660 .) ac_abs_top_builddir=$ac_abs_builddir;;
45661 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45662 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45665 case $ac_abs_builddir in
45666 .) ac_abs_srcdir=$ac_srcdir;;
45669 .) ac_abs_srcdir=$ac_abs_builddir;;
45670 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45671 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45674 case $ac_abs_builddir in
45675 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45677 case $ac_top_srcdir in
45678 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45679 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45680 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45686 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45687 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45690 if test x"$ac_file" != x-; then
45691 { echo "$as_me:$LINENO: creating $ac_file" >&5
45692 echo "$as_me: creating $ac_file" >&6;}
45695 # Let's still pretend it is `configure' which instantiates (i.e., don't
45696 # use $as_me), people would be surprised to read:
45697 # /* config.h. Generated by config.status. */
45698 if test x"$ac_file" = x-; then
45701 configure_input="$ac_file. "
45703 configure_input=$configure_input"Generated from `echo $ac_file_in |
45704 sed 's,.*/,,'` by configure."
45706 # First look for the input files in the build tree, otherwise in the
45708 ac_file_inputs=`IFS=:
45709 for f in $ac_file_in; do
45711 -) echo $tmp/stdin ;;
45713 # Absolute (can't be DOS-style, as IFS=:)
45714 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45715 echo "$as_me: error: cannot find input file: $f" >&2;}
45716 { (exit 1); exit 1; }; }
45719 if test -f "$f"; then
45722 elif test -f "$srcdir/$f"; then
45727 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45728 echo "$as_me: error: cannot find input file: $f" >&2;}
45729 { (exit 1); exit 1; }; }
45732 done` || { (exit 1); exit 1; }
45734 cat >>$CONFIG_STATUS <<_ACEOF
45738 cat >>$CONFIG_STATUS <<\_ACEOF
45740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45741 s,@configure_input@,$configure_input,;t t
45742 s,@srcdir@,$ac_srcdir,;t t
45743 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45744 s,@top_srcdir@,$ac_top_srcdir,;t t
45745 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45746 s,@builddir@,$ac_builddir,;t t
45747 s,@abs_builddir@,$ac_abs_builddir,;t t
45748 s,@top_builddir@,$ac_top_builddir,;t t
45749 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45750 s,@INSTALL@,$ac_INSTALL,;t t
45751 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45753 if test x"$ac_file" != x-; then
45754 mv $tmp/out $ac_file
45762 cat >>$CONFIG_STATUS <<\_ACEOF
45765 # CONFIG_HEADER section.
45768 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45769 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45771 # ac_d sets the value in "#define NAME VALUE" lines.
45772 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45773 ac_dB='[ ].*$,\1#\2'
45776 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45777 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
45778 ac_uB='$,\1#\2define\3'
45782 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45783 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45785 - | *:- | *:-:* ) # input from stdin
45787 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45788 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45789 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45790 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45791 * ) ac_file_in=$ac_file.in ;;
45794 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45795 echo "$as_me: creating $ac_file" >&6;}
45797 # First look for the input files in the build tree, otherwise in the
45799 ac_file_inputs=`IFS=:
45800 for f in $ac_file_in; do
45802 -) echo $tmp/stdin ;;
45804 # Absolute (can't be DOS-style, as IFS=:)
45805 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45806 echo "$as_me: error: cannot find input file: $f" >&2;}
45807 { (exit 1); exit 1; }; }
45808 # Do quote $f, to prevent DOS paths from being IFS'd.
45811 if test -f "$f"; then
45814 elif test -f "$srcdir/$f"; then
45819 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45820 echo "$as_me: error: cannot find input file: $f" >&2;}
45821 { (exit 1); exit 1; }; }
45824 done` || { (exit 1); exit 1; }
45825 # Remove the trailing spaces.
45826 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
45830 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45831 # `conftest.undefs', that substitutes the proper values into
45832 # config.h.in to produce config.h. The first handles `#define'
45833 # templates, and the second `#undef' templates.
45834 # And first: Protect against being on the right side of a sed subst in
45835 # config.status. Protect against being in an unquoted here document
45836 # in config.status.
45837 rm -f conftest.defines conftest.undefs
45838 # Using a here document instead of a string reduces the quoting nightmare.
45839 # Putting comments in sed scripts is not portable.
45841 # `end' is used to avoid that the second main sed command (meant for
45842 # 0-ary CPP macros) applies to n-ary macro definitions.
45843 # See the Autoconf documentation for `clear'.
45844 cat >confdef2sed.sed <<\_ACEOF
45849 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45851 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45854 # If some macros were called several times there might be several times
45855 # the same #defines, which is useless. Nevertheless, we may not want to
45856 # sort them, since we want the *last* AC-DEFINE to be honored.
45857 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45858 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45859 rm -f confdef2sed.sed
45861 # This sed command replaces #undef with comments. This is necessary, for
45862 # example, in the case of _POSIX_SOURCE, which is predefined and required
45863 # on some systems where configure will not decide to define it.
45864 cat >>conftest.undefs <<\_ACEOF
45865 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45868 # Break up conftest.defines because some shells have a limit on the size
45869 # of here documents, and old seds have small limits too (100 cmds).
45870 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
45871 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
45872 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45873 echo ' :' >>$CONFIG_STATUS
45874 rm -f conftest.tail
45875 while grep . conftest.defines >/dev/null
45877 # Write a limited-size here document to $tmp/defines.sed.
45878 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45879 # Speed up: don't consider the non `#define' lines.
45880 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
45881 # Work around the forget-to-reset-the-flag bug.
45882 echo 't clr' >>$CONFIG_STATUS
45883 echo ': clr' >>$CONFIG_STATUS
45884 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45886 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45888 mv $tmp/out $tmp/in
45890 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45891 rm -f conftest.defines
45892 mv conftest.tail conftest.defines
45894 rm -f conftest.defines
45895 echo ' fi # grep' >>$CONFIG_STATUS
45896 echo >>$CONFIG_STATUS
45898 # Break up conftest.undefs because some shells have a limit on the size
45899 # of here documents, and old seds have small limits too (100 cmds).
45900 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45901 rm -f conftest.tail
45902 while grep . conftest.undefs >/dev/null
45904 # Write a limited-size here document to $tmp/undefs.sed.
45905 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45906 # Speed up: don't consider the non `#undef'
45907 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
45908 # Work around the forget-to-reset-the-flag bug.
45909 echo 't clr' >>$CONFIG_STATUS
45910 echo ': clr' >>$CONFIG_STATUS
45911 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45913 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45915 mv $tmp/out $tmp/in
45917 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45918 rm -f conftest.undefs
45919 mv conftest.tail conftest.undefs
45921 rm -f conftest.undefs
45923 cat >>$CONFIG_STATUS <<\_ACEOF
45924 # Let's still pretend it is `configure' which instantiates (i.e., don't
45925 # use $as_me), people would be surprised to read:
45926 # /* config.h. Generated by config.status. */
45927 if test x"$ac_file" = x-; then
45928 echo "/* Generated by configure. */" >$tmp/config.h
45930 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45932 cat $tmp/in >>$tmp/config.h
45934 if test x"$ac_file" != x-; then
45935 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45936 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45937 echo "$as_me: $ac_file is unchanged" >&6;}
45939 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45941 X"$ac_file" : 'X\(//\)[^/]' \| \
45942 X"$ac_file" : 'X\(//\)$' \| \
45943 X"$ac_file" : 'X\(/\)' \| \
45944 . : '\(.\)' 2>/dev/null ||
45946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45948 /^X\(\/\/\)$/{ s//\1/; q; }
45949 /^X\(\/\).*/{ s//\1/; q; }
45951 { if $as_mkdir_p; then
45956 while test ! -d "$as_dir"; do
45957 as_dirs="$as_dir $as_dirs"
45958 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45960 X"$as_dir" : 'X\(//\)[^/]' \| \
45961 X"$as_dir" : 'X\(//\)$' \| \
45962 X"$as_dir" : 'X\(/\)' \| \
45963 . : '\(.\)' 2>/dev/null ||
45965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45967 /^X\(\/\/\)$/{ s//\1/; q; }
45968 /^X\(\/\).*/{ s//\1/; q; }
45971 test ! -n "$as_dirs" || mkdir $as_dirs
45972 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45973 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45974 { (exit 1); exit 1; }; }; }
45977 mv $tmp/config.h $ac_file
45981 rm -f $tmp/config.h
45983 # Compute $ac_file's index in $config_headers.
45985 for _am_header in $config_headers :; do
45986 case $_am_header in
45987 $ac_file | $ac_file:* )
45990 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
45993 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
45994 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45995 X$ac_file : 'X\(//\)[^/]' \| \
45996 X$ac_file : 'X\(//\)$' \| \
45997 X$ac_file : 'X\(/\)' \| \
45998 . : '\(.\)' 2>/dev/null ||
46000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46002 /^X\(\/\/\)$/{ s//\1/; q; }
46003 /^X\(\/\).*/{ s//\1/; q; }
46004 s/.*/./; q'`/stamp-h$_am_stamp_count
46007 cat >>$CONFIG_STATUS <<\_ACEOF
46010 # CONFIG_COMMANDS section.
46012 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46013 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46014 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46015 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46016 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46017 X"$ac_dest" : 'X\(//\)[^/]' \| \
46018 X"$ac_dest" : 'X\(//\)$' \| \
46019 X"$ac_dest" : 'X\(/\)' \| \
46020 . : '\(.\)' 2>/dev/null ||
46022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46024 /^X\(\/\/\)$/{ s//\1/; q; }
46025 /^X\(\/\).*/{ s//\1/; q; }
46027 { if $as_mkdir_p; then
46032 while test ! -d "$as_dir"; do
46033 as_dirs="$as_dir $as_dirs"
46034 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46036 X"$as_dir" : 'X\(//\)[^/]' \| \
46037 X"$as_dir" : 'X\(//\)$' \| \
46038 X"$as_dir" : 'X\(/\)' \| \
46039 . : '\(.\)' 2>/dev/null ||
46041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46043 /^X\(\/\/\)$/{ s//\1/; q; }
46044 /^X\(\/\).*/{ s//\1/; q; }
46047 test ! -n "$as_dirs" || mkdir $as_dirs
46048 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46049 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46050 { (exit 1); exit 1; }; }; }
46054 if test "$ac_dir" != .; then
46055 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46056 # A "../" for each directory in $ac_dir_suffix.
46057 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46059 ac_dir_suffix= ac_top_builddir=
46063 .) # No --srcdir option. We are building in place.
46065 if test -z "$ac_top_builddir"; then
46068 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46070 [\\/]* | ?:[\\/]* ) # Absolute path.
46071 ac_srcdir=$srcdir$ac_dir_suffix;
46072 ac_top_srcdir=$srcdir ;;
46073 *) # Relative path.
46074 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46075 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46078 # Do not use `cd foo && pwd` to compute absolute paths, because
46079 # the directories may not exist.
46081 .) ac_abs_builddir="$ac_dir";;
46084 .) ac_abs_builddir=`pwd`;;
46085 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46086 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46089 case $ac_abs_builddir in
46090 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46092 case ${ac_top_builddir}. in
46093 .) ac_abs_top_builddir=$ac_abs_builddir;;
46094 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46095 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46098 case $ac_abs_builddir in
46099 .) ac_abs_srcdir=$ac_srcdir;;
46102 .) ac_abs_srcdir=$ac_abs_builddir;;
46103 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46104 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46107 case $ac_abs_builddir in
46108 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46110 case $ac_top_srcdir in
46111 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46112 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46113 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46118 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46119 echo "$as_me: executing $ac_dest commands" >&6;}
46121 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46122 # Strip MF so we end up with the name of the file.
46123 mf=`echo "$mf" | sed -e 's/:.*$//'`
46124 # Check whether this is an Automake generated Makefile or not.
46125 # We used to match only the files named `Makefile.in', but
46126 # some people rename them; so instead we look at the file content.
46127 # Grep'ing the first line is not enough: some people post-process
46128 # each Makefile.in and add a new line on top of each file to say so.
46129 # So let's grep whole file.
46130 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46131 dirpart=`(dirname "$mf") 2>/dev/null ||
46132 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46133 X"$mf" : 'X\(//\)[^/]' \| \
46134 X"$mf" : 'X\(//\)$' \| \
46135 X"$mf" : 'X\(/\)' \| \
46136 . : '\(.\)' 2>/dev/null ||
46138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46140 /^X\(\/\/\)$/{ s//\1/; q; }
46141 /^X\(\/\).*/{ s//\1/; q; }
46146 # Extract the definition of DEPDIR, am__include, and am__quote
46147 # from the Makefile without running `make'.
46148 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46149 test -z "$DEPDIR" && continue
46150 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46151 test -z "am__include" && continue
46152 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46153 # When using ansi2knr, U may be empty or an underscore; expand it
46154 U=`sed -n 's/^U = //p' < "$mf"`
46155 # Find all dependency output files, they are included files with
46156 # $(DEPDIR) in their names. We invoke sed twice because it is the
46157 # simplest approach to changing $(DEPDIR) to its actual value in the
46159 for file in `sed -n "
46160 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46161 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46162 # Make sure the directory exists.
46163 test -f "$dirpart/$file" && continue
46164 fdir=`(dirname "$file") 2>/dev/null ||
46165 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46166 X"$file" : 'X\(//\)[^/]' \| \
46167 X"$file" : 'X\(//\)$' \| \
46168 X"$file" : 'X\(/\)' \| \
46169 . : '\(.\)' 2>/dev/null ||
46171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46173 /^X\(\/\/\)$/{ s//\1/; q; }
46174 /^X\(\/\).*/{ s//\1/; q; }
46176 { if $as_mkdir_p; then
46177 mkdir -p $dirpart/$fdir
46179 as_dir=$dirpart/$fdir
46181 while test ! -d "$as_dir"; do
46182 as_dirs="$as_dir $as_dirs"
46183 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46185 X"$as_dir" : 'X\(//\)[^/]' \| \
46186 X"$as_dir" : 'X\(//\)$' \| \
46187 X"$as_dir" : 'X\(/\)' \| \
46188 . : '\(.\)' 2>/dev/null ||
46190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46192 /^X\(\/\/\)$/{ s//\1/; q; }
46193 /^X\(\/\).*/{ s//\1/; q; }
46196 test ! -n "$as_dirs" || mkdir $as_dirs
46197 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46198 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46199 { (exit 1); exit 1; }; }; }
46201 # echo "creating $dirpart/$file"
46202 echo '# dummy' > "$dirpart/$file"
46209 BACKENDSC="servers/slapd/backends.c"
46210 echo "Making $BACKENDSC"
46212 cat > $BACKENDSC << ENDX
46213 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46215 * Copyright 1998-2006 The OpenLDAP Foundation.
46216 * All rights reserved.
46218 * Redistribution and use in source and binary forms, with or without
46219 * modification, are permitted only as authorized by the OpenLDAP
46222 * A copy of this license is available in the file LICENSE in the
46223 * top-level directory of the distribution or, alternatively, at
46224 * <http://www.OpenLDAP.org/license.html>.
46226 /* This file is automatically generated by configure; please do not edit. */
46228 #include "portable.h"
46232 if test "${STATIC_BACKENDS}"; then
46233 for b in config ${STATIC_BACKENDS}; do
46234 bb=`echo "${b}" | sed -e 's/back-//'`
46235 cat >> $BACKENDSC << ENDX
46236 extern BI_init ${bb}_back_initialize;
46240 cat >> $BACKENDSC << ENDX
46242 BackendInfo slap_binfo[] = {
46245 for b in config ${STATIC_BACKENDS}; do
46246 bb=`echo "${b}" | sed -e 's/back-//'`
46247 echo " Add ${bb} ..."
46248 cat >> $BACKENDSC << ENDX
46249 { "${bb}", ${bb}_back_initialize },
46253 cat >> $BACKENDSC << ENDX
46257 /* end of generated file */
46260 OVERLAYSC="servers/slapd/overlays/statover.c"
46261 echo "Making $OVERLAYSC"
46263 cat > $OVERLAYSC << ENDX
46264 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46266 * Copyright 1998-2006 The OpenLDAP Foundation.
46267 * All rights reserved.
46269 * Redistribution and use in source and binary forms, with or without
46270 * modification, are permitted only as authorized by the OpenLDAP
46273 * A copy of this license is available in the file LICENSE in the
46274 * top-level directory of the distribution or, alternatively, at
46275 * <http://www.OpenLDAP.org/license.html>.
46277 /* This file is automatically generated by configure; please do not edit. */
46279 #include "portable.h"
46283 if test "${STATIC_OVERLAYS}"; then
46284 for o in ${STATIC_OVERLAYS}; do
46285 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46286 cat >> $OVERLAYSC << ENDX
46287 extern OV_init ${oo}_initialize;
46292 cat >> $OVERLAYSC << ENDX
46294 OverlayInit slap_oinfo[] = {
46297 if test "${STATIC_OVERLAYS}"; then
46298 for o in ${STATIC_OVERLAYS}; do
46299 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46300 echo " Add ${oo} ..."
46301 cat >> $OVERLAYSC << ENDX
46302 { "${oo}", ${oo}_initialize },
46307 cat >> $OVERLAYSC << ENDX
46311 /* end of generated file */
46314 echo Please run \"make depend\" to build dependencies
46320 cat >>$CONFIG_STATUS <<\_ACEOF
46322 { (exit 0); exit 0; }
46324 chmod +x $CONFIG_STATUS
46325 ac_clean_files=$ac_clean_files_save
46328 # configure is writing to config.log, and then calls config.status.
46329 # config.status does its own redirection, appending to config.log.
46330 # Unfortunately, on DOS this fails, as config.log is still kept open
46331 # by configure, so config.status won't be able to write to it; its
46332 # output is simply discarded. So we exec the FD to /dev/null,
46333 # effectively closing config.log, so it can be properly (re)opened and
46334 # appended to by config.status. When coming back to configure, we
46335 # need to make the FD available again.
46336 if test "$no_create" != yes; then
46338 ac_config_status_args=
46339 test "$silent" = yes &&
46340 ac_config_status_args="$ac_config_status_args --quiet"
46342 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46344 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46345 # would make configure fail if this is the last instruction.
46346 $ac_cs_success || { (exit 1); exit 1; }