2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.598 2005/08/27 22:23:35 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2005 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_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_GLUE BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
931 # Report the --help message.
933 if test "$ac_init_help" = "long"; then
934 # Omit some internal or obsolete options to make the list less imposing.
935 # This message is too long to be a string in the A/UX 3.1 sh.
937 \`configure' configures this package to adapt to many kinds of systems.
939 Usage: $0 [OPTION]... [VAR=VALUE]...
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE. See below for descriptions of some of the useful variables.
944 Defaults for the options are specified in brackets.
947 -h, --help display this help and exit
948 --help=short display options specific to this package
949 --help=recursive display the short help of all the included packages
950 -V, --version display version information and exit
951 -q, --quiet, --silent do not print \`checking...' messages
952 --cache-file=FILE cache test results in FILE [disabled]
953 -C, --config-cache alias for \`--cache-file=config.cache'
954 -n, --no-create do not create output files
955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960 Installation directories:
961 --prefix=PREFIX install architecture-independent files in PREFIX
963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
971 For better control, use the options below.
973 Fine tuning of the installation directories:
974 --bindir=DIR user executables [EPREFIX/bin]
975 --sbindir=DIR system admin executables [EPREFIX/sbin]
976 --libexecdir=DIR program executables [EPREFIX/libexec]
977 --datadir=DIR read-only architecture-independent data [PREFIX/share]
978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
981 --libdir=DIR object code libraries [EPREFIX/lib]
982 --includedir=DIR C header files [PREFIX/include]
983 --oldincludedir=DIR C header files for non-gcc [/usr/include]
984 --infodir=DIR info documentation [PREFIX/info]
985 --mandir=DIR man documentation [PREFIX/man]
991 --program-prefix=PREFIX prepend PREFIX to installed program names
992 --program-suffix=SUFFIX append SUFFIX to installed program names
993 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996 --build=BUILD configure for building on BUILD [guessed]
997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
998 --target=TARGET configure for building compilers for TARGET [HOST]
1002 if test -n "$ac_init_help"; then
1007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1009 --enable-debug enable debugging [yes]
1010 --enable-dynamic enable linking built binaries with dynamic libs [no]
1011 --enable-syslog enable syslog support [auto]
1012 --enable-proctitle enable proctitle support [yes]
1013 --enable-ipv6 enable IPv6 support [auto]
1014 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1016 SLAPD (Standalone LDAP Daemon) Options:
1017 --enable-slapd enable building slapd [yes]
1018 --enable-aci enable per-object ACIs (experimental) [no]
1019 --enable-cleartext enable cleartext passwords [yes]
1020 --enable-crypt enable crypt(3) passwords [no]
1021 --enable-lmpasswd enable LAN Manager passwords [no]
1022 --enable-spasswd enable (Cyrus) SASL password verification [no]
1023 --enable-modules enable dynamic module support [no]
1024 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1025 --enable-rlookups enable reverse lookups of client hostnames [no]
1026 --enable-slapi enable SLAPI support (experimental) [no]
1027 --enable-slp enable SLPv2 support [no]
1028 --enable-wrappers enable tcp wrapper support [no]
1030 SLAPD Backend Options:
1031 --enable-backends enable all available backends no|yes|mod
1032 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1033 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1034 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1035 --enable-ldap enable ldap backend no|yes|mod [no]
1036 --enable-ldbm enable ldbm backend no|yes|mod [no]
1037 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1039 --enable-meta enable metadirectory backend no|yes|mod [no]
1040 --enable-monitor enable monitor backend no|yes|mod [yes]
1041 --enable-null enable null backend no|yes|mod [no]
1042 --enable-passwd enable passwd backend no|yes|mod [no]
1043 --enable-perl enable perl backend no|yes|mod [no]
1044 --enable-relay enable relay backend no|yes|mod [yes]
1045 --enable-shell enable shell backend no|yes|mod [no]
1046 --enable-sql enable sql backend no|yes|mod [no]
1048 SLAPD Overlay Options:
1049 --enable-overlays enable all available overlays no|yes|mod
1050 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1051 --enable-denyop Deny Operation overlay no|yes|mod [no]
1052 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1053 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1054 --enable-glue Backend Glue overlay no|yes|mod [yes]
1055 --enable-lastmod Last Modification overlay no|yes|mod [no]
1056 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1057 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1058 --enable-refint Referential Integrity overlay no|yes|mod [no]
1059 --enable-retcode Return Code testing overlay no|yes|mod [no]
1060 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1061 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1062 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1063 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1064 --enable-valsort Value Sorting overlay no|yes|mod [no]
1066 SLURPD (Replication Daemon) Options:
1067 --enable-slurpd enable building slurpd [auto]
1069 Library Generation & Linking Options
1070 --enable-static[=PKGS]
1071 build static libraries [default=yes]
1072 --enable-shared[=PKGS]
1073 build shared libraries [default=yes]
1074 --enable-fast-install[=PKGS]
1075 optimize for fast installation [default=yes]
1076 --disable-dependency-tracking speeds up one-time build
1077 --enable-dependency-tracking do not reject slow dependency extractors
1078 --disable-libtool-lock avoid locking (might break parallel builds)
1081 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1082 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1083 --with-subdir=DIR change default subdirectory used for installs
1084 --with-cyrus-sasl with Cyrus SASL support [auto]
1085 --with-fetch with fetch(3) URL support [auto]
1086 --with-threads with threads [auto]
1087 --with-tls with TLS/SSL support [auto]
1088 --with-yielding-select with implicitly yielding select [auto]
1089 --with-multiple-precision
1090 multiple precision support for statistics
1091 auto|bignum|gmp [auto]
1093 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1094 --with-pic try to use only PIC/non-PIC objects [default=use
1097 include additional configurations [automatic]
1099 See INSTALL file for further details.
1101 Some influential environment variables:
1102 CC C compiler command
1103 CFLAGS C compiler flags
1104 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1105 nonstandard directory <lib dir>
1106 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107 headers in a nonstandard directory <include dir>
1110 Use these variables to override the choices made by `configure' or to help
1111 it to find libraries and programs with nonstandard names/locations.
1116 if test "$ac_init_help" = "recursive"; then
1117 # If there are subdirs, report their specific --help.
1119 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1120 test -d $ac_dir || continue
1123 if test "$ac_dir" != .; then
1124 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1125 # A "../" for each directory in $ac_dir_suffix.
1126 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1128 ac_dir_suffix= ac_top_builddir=
1132 .) # No --srcdir option. We are building in place.
1134 if test -z "$ac_top_builddir"; then
1137 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1139 [\\/]* | ?:[\\/]* ) # Absolute path.
1140 ac_srcdir=$srcdir$ac_dir_suffix;
1141 ac_top_srcdir=$srcdir ;;
1143 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1144 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1147 # Do not use `cd foo && pwd` to compute absolute paths, because
1148 # the directories may not exist.
1150 .) ac_abs_builddir="$ac_dir";;
1153 .) ac_abs_builddir=`pwd`;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1155 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1158 case $ac_abs_builddir in
1159 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 case ${ac_top_builddir}. in
1162 .) ac_abs_top_builddir=$ac_abs_builddir;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1164 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1167 case $ac_abs_builddir in
1168 .) ac_abs_srcdir=$ac_srcdir;;
1171 .) ac_abs_srcdir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1173 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1176 case $ac_abs_builddir in
1177 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 case $ac_top_srcdir in
1180 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1181 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1182 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1187 # Check for guested configure; otherwise get Cygnus style configure.
1188 if test -f $ac_srcdir/configure.gnu; then
1190 $SHELL $ac_srcdir/configure.gnu --help=recursive
1191 elif test -f $ac_srcdir/configure; then
1193 $SHELL $ac_srcdir/configure --help=recursive
1194 elif test -f $ac_srcdir/configure.ac ||
1195 test -f $ac_srcdir/configure.in; then
1197 $ac_configure --help
1199 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1205 test -n "$ac_init_help" && exit 0
1206 if $ac_init_version; then
1209 Copyright (C) 2003 Free Software Foundation, Inc.
1210 This configure script is free software; the Free Software Foundation
1211 gives unlimited permission to copy, distribute and modify it.
1213 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1214 Restrictions apply, see COPYRIGHT and LICENSE files.
1220 This file contains any messages produced by compilers while
1221 running configure, to aid debugging if configure makes a mistake.
1223 It was created by $as_me, which was
1224 generated by GNU Autoconf 2.59. Invocation command line was
1235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1242 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1244 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1245 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1247 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1248 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1249 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1250 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1258 test -z "$as_dir" && as_dir=.
1259 echo "PATH: $as_dir"
1274 # Keep a trace of the command line.
1275 # Strip out --no-create and --no-recursion so they do not pile up.
1276 # Strip out --silent because we don't want to record it for future runs.
1277 # Also quote any args containing shell meta-characters.
1278 # Make two passes to allow for proper duplicate-argument suppression.
1283 ac_must_keep_next=false
1289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291 | -silent | --silent | --silen | --sile | --sil)
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1297 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1299 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1300 if test $ac_must_keep_next = true; then
1301 ac_must_keep_next=false # Got value, back to normal.
1304 *=* | --config-cache | -C | -disable-* | --disable-* \
1305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1307 | -with-* | --with-* | -without-* | --without-* | --x)
1308 case "$ac_configure_args0 " in
1309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1312 -* ) ac_must_keep_next=true ;;
1315 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1316 # Get rid of the leading space.
1322 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1323 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1325 # When interrupted or exit'd, cleanup temporary files, and complete
1326 # config.log. We remove comments because anyway the quotes in there
1327 # would cause problems or look ugly.
1328 # WARNING: Be sure not to use single quotes in there, as some shells,
1329 # such as our DU 5.0 friend, will then `close' the trap.
1330 trap 'exit_status=$?
1331 # Save into config.log some information that might help in debugging.
1336 ## ---------------- ##
1337 ## Cache variables. ##
1338 ## ---------------- ##
1341 # The following way of writing the cache mishandles newlines in values,
1344 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1347 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1352 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1359 ## ----------------- ##
1360 ## Output variables. ##
1361 ## ----------------- ##
1364 for ac_var in $ac_subst_vars
1366 eval ac_val=$`echo $ac_var`
1367 echo "$ac_var='"'"'$ac_val'"'"'"
1371 if test -n "$ac_subst_files"; then
1378 for ac_var in $ac_subst_files
1380 eval ac_val=$`echo $ac_var`
1381 echo "$ac_var='"'"'$ac_val'"'"'"
1386 if test -s confdefs.h; then
1393 sed "/^$/d" confdefs.h | sort
1396 test "$ac_signal" != 0 &&
1397 echo "$as_me: caught signal $ac_signal"
1398 echo "$as_me: exit $exit_status"
1400 rm -f core *.core &&
1401 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1404 for ac_signal in 1 2 13 15; do
1405 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1409 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1410 rm -rf conftest* confdefs.h
1411 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1414 # Predefined preprocessor variables.
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_NAME "$PACKAGE_NAME"
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1431 cat >>confdefs.h <<_ACEOF
1432 #define PACKAGE_STRING "$PACKAGE_STRING"
1436 cat >>confdefs.h <<_ACEOF
1437 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1441 # Let the site file select an alternate cache file if it wants to.
1442 # Prefer explicitly selected file to automatically selected ones.
1443 if test -z "$CONFIG_SITE"; then
1444 if test "x$prefix" != xNONE; then
1445 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1447 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1450 for ac_site_file in $CONFIG_SITE; do
1451 if test -r "$ac_site_file"; then
1452 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1453 echo "$as_me: loading site script $ac_site_file" >&6;}
1454 sed 's/^/| /' "$ac_site_file" >&5
1460 # Check that the precious variables saved in the cache have kept the same
1462 ac_cache_corrupted=false
1463 for ac_var in `(set) 2>&1 |
1464 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466 eval ac_new_set=\$ac_env_${ac_var}_set
1467 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468 eval ac_new_val="\$ac_env_${ac_var}_value"
1469 case $ac_old_set,$ac_new_set in
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1480 if test "x$ac_old_val" != "x$ac_new_val"; then
1481 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1482 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1483 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1484 echo "$as_me: former value: $ac_old_val" >&2;}
1485 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1486 echo "$as_me: current value: $ac_new_val" >&2;}
1487 ac_cache_corrupted=:
1490 # Pass precious variables to config.status.
1491 if test "$ac_new_set" = set; then
1493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495 *) ac_arg=$ac_var=$ac_new_val ;;
1497 case " $ac_configure_args " in
1498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1499 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1503 if $ac_cache_corrupted; then
1504 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508 { (exit 1); exit 1; }; }
1512 ac_cpp='$CPP $CPPFLAGS'
1513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515 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" -a ! -d $ac_aux_dir/shtool; then
1590 ac_cv_shtool="$ac_aux_dir/shtool"
1592 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1593 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1594 { (exit 1); exit 1; }; }
1597 SHTOOL="$ac_cv_shtool"
1599 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1600 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1603 if test -d $ac_aux_dir/CVS; then
1604 OPENLDAP_CVS="(from CVS sources) "
1607 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1609 # Make sure we can run config.sub.
1610 $ac_config_sub sun4 >/dev/null 2>&1 ||
1611 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1612 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1613 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: checking build system type" >&5
1616 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1617 if test "${ac_cv_build+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 ac_cv_build_alias=$build_alias
1621 test -z "$ac_cv_build_alias" &&
1622 ac_cv_build_alias=`$ac_config_guess`
1623 test -z "$ac_cv_build_alias" &&
1624 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1625 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1626 { (exit 1); exit 1; }; }
1627 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1634 echo "${ECHO_T}$ac_cv_build" >&6
1636 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1641 echo "$as_me:$LINENO: checking host system type" >&5
1642 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1643 if test "${ac_cv_host+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 ac_cv_host_alias=$host_alias
1647 test -z "$ac_cv_host_alias" &&
1648 ac_cv_host_alias=$ac_cv_build_alias
1649 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1650 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1651 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1652 { (exit 1); exit 1; }; }
1655 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1656 echo "${ECHO_T}$ac_cv_host" >&6
1658 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663 echo "$as_me:$LINENO: checking target system type" >&5
1664 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1665 if test "${ac_cv_target+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 ac_cv_target_alias=$target_alias
1669 test "x$ac_cv_target_alias" = "x" &&
1670 ac_cv_target_alias=$ac_cv_host_alias
1671 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1677 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1678 echo "${ECHO_T}$ac_cv_target" >&6
1679 target=$ac_cv_target
1680 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 # The aliases save the names the user supplied, while $host etc.
1686 # will get canonicalized.
1687 test -n "$target_alias" &&
1688 test "$program_prefix$program_suffix$program_transform_name" = \
1690 program_prefix=${target_alias}-
1692 am__api_version="1.9"
1693 # Find a good install program. We prefer a C program (faster),
1694 # so one script is as good as another. But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # OS/2's system install, which has a completely different semantic
1705 # ./install, which can be erroneously created by make from ./install.sh.
1706 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1707 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1708 if test -z "$INSTALL"; then
1709 if test "${ac_cv_path_install+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 test -z "$as_dir" && as_dir=.
1717 # Account for people who put trailing slashes in PATH elements.
1719 ./ | .// | /cC/* | \
1720 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1721 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1724 # OSF1 and SCO ODT 3.0 have their own names for install.
1725 # Don't use installbsd from OSF since it installs stuff as root
1727 for ac_prog in ginstall scoinst install; do
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1730 if test $ac_prog = install &&
1731 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732 # AIX install. It has an incompatible calling convention.
1734 elif test $ac_prog = install &&
1735 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736 # program-specific install script used by HP pwplus--don't use.
1739 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1751 if test "${ac_cv_path_install+set}" = set; then
1752 INSTALL=$ac_cv_path_install
1754 # As a last resort, use the slow shell script. We don't cache a
1755 # path for INSTALL within a source directory, because that will
1756 # break other packages using the cache if that directory is
1757 # removed, or if the path is relative.
1758 INSTALL=$ac_install_sh
1761 echo "$as_me:$LINENO: result: $INSTALL" >&5
1762 echo "${ECHO_T}$INSTALL" >&6
1764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1765 # It thinks the first close brace ends the variable substitution.
1766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1772 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1773 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1776 echo timestamp > conftest.file
1777 # Do `set' in a subshell so we don't clobber the current shell's
1778 # arguments. Must try -L first in case configure is actually a
1779 # symlink; some systems play weird games with the mod time of symlinks
1780 # (eg FreeBSD returns the mod time of the symlink's containing
1783 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1784 if test "$*" = "X"; then
1786 set X `ls -t $srcdir/configure conftest.file`
1789 if test "$*" != "X $srcdir/configure conftest.file" \
1790 && test "$*" != "X conftest.file $srcdir/configure"; then
1792 # If neither matched, then we have a broken ls. This can happen
1793 # if, for instance, CONFIG_SHELL is bash and it inherits a
1794 # broken ls alias from the environment. This has actually
1795 # happened. Such a system could not be considered "sane".
1796 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1797 alias in your environment" >&5
1798 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1799 alias in your environment" >&2;}
1800 { (exit 1); exit 1; }; }
1803 test "$2" = conftest.file
1809 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1810 Check your system clock" >&5
1811 echo "$as_me: error: newly created file is older than distributed files!
1812 Check your system clock" >&2;}
1813 { (exit 1); exit 1; }; }
1815 echo "$as_me:$LINENO: result: yes" >&5
1816 echo "${ECHO_T}yes" >&6
1817 test "$program_prefix" != NONE &&
1818 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1819 # Use a double $ so make ignores it.
1820 test "$program_suffix" != NONE &&
1821 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1822 # Double any \ or $. echo might interpret backslashes.
1823 # By default was `s,x,x', remove it if useless.
1824 cat <<\_ACEOF >conftest.sed
1825 s/[\\$]/&&/g;s/;s,x,x,$//
1827 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1830 # expand $ac_aux_dir to an absolute path
1831 am_aux_dir=`cd $ac_aux_dir && pwd`
1833 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1834 # Use eval to expand $SHELL
1835 if eval "$MISSING --run true"; then
1836 am_missing_run="$MISSING --run "
1839 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1840 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1843 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1844 # We used to keeping the `.' as first argument, in order to
1845 # allow $(mkdir_p) to be used without argument. As in
1846 # $(mkdir_p) $(somedir)
1847 # where $(somedir) is conditionally defined. However this is wrong
1849 # 1. if the package is installed by a user who cannot write `.'
1850 # make install will fail,
1851 # 2. the above comment should most certainly read
1852 # $(mkdir_p) $(DESTDIR)$(somedir)
1853 # so it does not work when $(somedir) is undefined and
1854 # $(DESTDIR) is not.
1855 # To support the latter case, we have to write
1856 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1857 # so the `.' trick is pointless.
1858 mkdir_p='mkdir -p --'
1860 # On NextStep and OpenStep, the `mkdir' command does not
1861 # recognize any option. It will interpret all options as
1862 # directories to create, and then abort because `.' already
1864 for d in ./-p ./--version;
1866 test -d $d && rmdir $d
1868 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1869 if test -f "$ac_aux_dir/mkinstalldirs"; then
1870 mkdir_p='$(mkinstalldirs)'
1872 mkdir_p='$(install_sh) -d'
1876 for ac_prog in gawk mawk nawk awk
1878 # Extract the first word of "$ac_prog", so it can be a program name with args.
1879 set dummy $ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_AWK+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$AWK"; then
1886 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_AWK="$ac_prog"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 if test -n "$AWK"; then
1906 echo "$as_me:$LINENO: result: $AWK" >&5
1907 echo "${ECHO_T}$AWK" >&6
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1913 test -n "$AWK" && break
1916 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1917 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1918 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1919 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 cat >conftest.make <<\_ACEOF
1924 @echo 'ac_maketemp="$(MAKE)"'
1926 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1927 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1928 if test -n "$ac_maketemp"; then
1929 eval ac_cv_prog_make_${ac_make}_set=yes
1931 eval ac_cv_prog_make_${ac_make}_set=no
1935 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1936 echo "$as_me:$LINENO: result: yes" >&5
1937 echo "${ECHO_T}yes" >&6
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 SET_MAKE="MAKE=${MAKE-make}"
1945 rm -rf .tst 2>/dev/null
1946 mkdir .tst 2>/dev/null
1947 if test -d .tst; then
1952 rmdir .tst 2>/dev/null
1954 # test to see if srcdir already configured
1955 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1956 test -f $srcdir/config.status; then
1957 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1958 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1959 { (exit 1); exit 1; }; }
1962 # test whether we have cygpath
1963 if test -z "$CYGPATH_W"; then
1964 if (cygpath --version) >/dev/null 2>/dev/null; then
1965 CYGPATH_W='cygpath -w'
1972 # Define the identity of the package.
1977 # Some tools Automake needs.
1979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1993 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1995 # Installed binaries are usually stripped using `strip' when the user
1996 # run `make install-strip'. However `strip' might not be the right
1997 # tool to use in cross-compilation environments, therefore Automake
1998 # will honor the `STRIP' environment variable to overrule this program.
1999 if test "$cross_compiling" != no; then
2000 if test -n "$ac_tool_prefix"; then
2001 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2002 set dummy ${ac_tool_prefix}strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_STRIP+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$STRIP"; then
2009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 STRIP=$ac_cv_prog_STRIP
2028 if test -n "$STRIP"; then
2029 echo "$as_me:$LINENO: result: $STRIP" >&5
2030 echo "${ECHO_T}$STRIP" >&6
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2037 if test -z "$ac_cv_prog_STRIP"; then
2039 # Extract the first word of "strip", so it can be a program name with args.
2040 set dummy strip; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 if test -n "$ac_ct_STRIP"; then
2047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056 ac_cv_prog_ac_ct_STRIP="strip"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2067 if test -n "$ac_ct_STRIP"; then
2068 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2069 echo "${ECHO_T}$ac_ct_STRIP" >&6
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2077 STRIP="$ac_cv_prog_STRIP"
2081 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2083 # We need awk for the "check" target. The system "awk" is bad on
2085 # Always define AMTAR for backward compatibility.
2087 AMTAR=${AMTAR-"${am_missing_run}tar"}
2089 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2095 cat >>confdefs.h <<_ACEOF
2096 #define OPENLDAP_PACKAGE "$PACKAGE"
2100 cat >>confdefs.h <<_ACEOF
2101 #define OPENLDAP_VERSION "$VERSION"
2106 cat >>confdefs.h <<_ACEOF
2107 #define LDAP_VENDOR_VERSION $OL_API_INC
2111 cat >>confdefs.h <<_ACEOF
2112 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2116 cat >>confdefs.h <<_ACEOF
2117 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2121 cat >>confdefs.h <<_ACEOF
2122 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2126 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2128 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2130 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2138 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2140 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2142 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2145 echo "$as_me:$LINENO: checking configure arguments" >&5
2146 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2151 ldap_subdir="/openldap"
2154 # Check whether --with-subdir or --without-subdir was given.
2155 if test "${with_subdir+set}" = set; then
2156 withval="$with_subdir"
2163 ldap_subdir="$withval"
2166 ldap_subdir="/$withval"
2172 # OpenLDAP --enable-debug
2174 # Check whether --enable-debug or --disable-debug was given.
2175 if test "${enable_debug+set}" = set; then
2176 enableval="$enable_debug"
2179 for ol_val in auto yes no ; do
2180 if test "$enableval" = "$ol_val" ; then
2184 if test "$ol_arg" = "invalid" ; then
2185 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2186 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2187 { (exit 1); exit 1; }; }
2189 ol_enable_debug="$ol_arg"
2194 # end --enable-debug
2195 # OpenLDAP --enable-dynamic
2197 # Check whether --enable-dynamic or --disable-dynamic was given.
2198 if test "${enable_dynamic+set}" = set; then
2199 enableval="$enable_dynamic"
2202 for ol_val in auto yes no ; do
2203 if test "$enableval" = "$ol_val" ; then
2207 if test "$ol_arg" = "invalid" ; then
2208 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2209 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2210 { (exit 1); exit 1; }; }
2212 ol_enable_dynamic="$ol_arg"
2215 ol_enable_dynamic=no
2217 # end --enable-dynamic
2218 # OpenLDAP --enable-syslog
2220 # Check whether --enable-syslog or --disable-syslog was given.
2221 if test "${enable_syslog+set}" = set; then
2222 enableval="$enable_syslog"
2225 for ol_val in auto yes no ; do
2226 if test "$enableval" = "$ol_val" ; then
2230 if test "$ol_arg" = "invalid" ; then
2231 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2232 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2233 { (exit 1); exit 1; }; }
2235 ol_enable_syslog="$ol_arg"
2238 ol_enable_syslog=auto
2240 # end --enable-syslog
2241 # OpenLDAP --enable-proctitle
2243 # Check whether --enable-proctitle or --disable-proctitle was given.
2244 if test "${enable_proctitle+set}" = set; then
2245 enableval="$enable_proctitle"
2248 for ol_val in auto yes no ; do
2249 if test "$enableval" = "$ol_val" ; then
2253 if test "$ol_arg" = "invalid" ; then
2254 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2255 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2256 { (exit 1); exit 1; }; }
2258 ol_enable_proctitle="$ol_arg"
2261 ol_enable_proctitle=yes
2263 # end --enable-proctitle
2264 ol_enable_referrals=${ol_enable_referrals-no}
2265 ol_enable_kbind=${ol_enable_kbind-no}
2266 # OpenLDAP --enable-ipv6
2268 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2269 if test "${enable_ipv6+set}" = set; then
2270 enableval="$enable_ipv6"
2273 for ol_val in auto yes no ; do
2274 if test "$enableval" = "$ol_val" ; then
2278 if test "$ol_arg" = "invalid" ; then
2279 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2280 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2281 { (exit 1); exit 1; }; }
2283 ol_enable_ipv6="$ol_arg"
2289 # OpenLDAP --enable-local
2291 # Check whether --enable-local or --disable-local was given.
2292 if test "${enable_local+set}" = set; then
2293 enableval="$enable_local"
2296 for ol_val in auto yes no ; do
2297 if test "$enableval" = "$ol_val" ; then
2301 if test "$ol_arg" = "invalid" ; then
2302 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2303 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2304 { (exit 1); exit 1; }; }
2306 ol_enable_local="$ol_arg"
2309 ol_enable_local=auto
2311 # end --enable-local
2313 # OpenLDAP --with-cyrus_sasl
2315 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2316 if test "${with_cyrus_sasl+set}" = set; then
2317 withval="$with_cyrus_sasl"
2320 for ol_val in auto yes no ; do
2321 if test "$withval" = "$ol_val" ; then
2325 if test "$ol_arg" = "invalid" ; then
2326 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2327 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2328 { (exit 1); exit 1; }; }
2330 ol_with_cyrus_sasl="$ol_arg"
2333 ol_with_cyrus_sasl="auto"
2334 fi; # end --with-cyrus_sasl
2336 # OpenLDAP --with-fetch
2338 # Check whether --with-fetch or --without-fetch was given.
2339 if test "${with_fetch+set}" = set; then
2340 withval="$with_fetch"
2343 for ol_val in auto yes no ; do
2344 if test "$withval" = "$ol_val" ; then
2348 if test "$ol_arg" = "invalid" ; then
2349 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2350 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2351 { (exit 1); exit 1; }; }
2353 ol_with_fetch="$ol_arg"
2356 ol_with_fetch="auto"
2357 fi; # end --with-fetch
2359 ol_with_kerberos=${ol_with_kerberos-auto}
2360 # OpenLDAP --with-threads
2362 # Check whether --with-threads or --without-threads was given.
2363 if test "${with_threads+set}" = set; then
2364 withval="$with_threads"
2367 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2368 if test "$withval" = "$ol_val" ; then
2372 if test "$ol_arg" = "invalid" ; then
2373 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2374 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2375 { (exit 1); exit 1; }; }
2377 ol_with_threads="$ol_arg"
2380 ol_with_threads="auto"
2381 fi; # end --with-threads
2383 # OpenLDAP --with-tls
2385 # Check whether --with-tls or --without-tls was given.
2386 if test "${with_tls+set}" = set; then
2390 for ol_val in auto ssleay 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 \
3160 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3161 if test "${enable_xxslapoverlays+set}" = set; then
3162 enableval="$enable_xxslapoverlays"
3166 # OpenLDAP --enable-overlays
3168 # Check whether --enable-overlays or --disable-overlays was given.
3169 if test "${enable_overlays+set}" = set; then
3170 enableval="$enable_overlays"
3173 for ol_val in no yes mod ; do
3174 if test "$enableval" = "$ol_val" ; then
3178 if test "$ol_arg" = "invalid" ; then
3179 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3180 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3181 { (exit 1); exit 1; }; }
3183 ol_enable_overlays="$ol_arg"
3186 # end --enable-overlays
3187 # OpenLDAP --enable-accesslog
3189 # Check whether --enable-accesslog or --disable-accesslog was given.
3190 if test "${enable_accesslog+set}" = set; then
3191 enableval="$enable_accesslog"
3194 for ol_val in no yes mod ; do
3195 if test "$enableval" = "$ol_val" ; then
3199 if test "$ol_arg" = "invalid" ; then
3200 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3201 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3202 { (exit 1); exit 1; }; }
3204 ol_enable_accesslog="$ol_arg"
3207 ol_enable_accesslog=${ol_enable_overlays:-no}
3209 # end --enable-accesslog
3211 # OpenLDAP --enable-denyop
3213 # Check whether --enable-denyop or --disable-denyop was given.
3214 if test "${enable_denyop+set}" = set; then
3215 enableval="$enable_denyop"
3218 for ol_val in no yes mod ; do
3219 if test "$enableval" = "$ol_val" ; then
3223 if test "$ol_arg" = "invalid" ; then
3224 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3225 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3226 { (exit 1); exit 1; }; }
3228 ol_enable_denyop="$ol_arg"
3231 ol_enable_denyop=${ol_enable_overlays:-no}
3233 # end --enable-denyop
3235 # OpenLDAP --enable-dyngroup
3237 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3238 if test "${enable_dyngroup+set}" = set; then
3239 enableval="$enable_dyngroup"
3242 for ol_val in no yes mod ; do
3243 if test "$enableval" = "$ol_val" ; then
3247 if test "$ol_arg" = "invalid" ; then
3248 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3249 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3250 { (exit 1); exit 1; }; }
3252 ol_enable_dyngroup="$ol_arg"
3255 ol_enable_dyngroup=${ol_enable_overlays:-no}
3257 # end --enable-dyngroup
3259 # OpenLDAP --enable-dynlist
3261 # Check whether --enable-dynlist or --disable-dynlist was given.
3262 if test "${enable_dynlist+set}" = set; then
3263 enableval="$enable_dynlist"
3266 for ol_val in no yes mod ; do
3267 if test "$enableval" = "$ol_val" ; then
3271 if test "$ol_arg" = "invalid" ; then
3272 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3273 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3274 { (exit 1); exit 1; }; }
3276 ol_enable_dynlist="$ol_arg"
3279 ol_enable_dynlist=${ol_enable_overlays:-no}
3281 # end --enable-dynlist
3283 # OpenLDAP --enable-glue
3285 # Check whether --enable-glue or --disable-glue was given.
3286 if test "${enable_glue+set}" = set; then
3287 enableval="$enable_glue"
3290 for ol_val in no yes mod ; do
3291 if test "$enableval" = "$ol_val" ; then
3295 if test "$ol_arg" = "invalid" ; then
3296 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3297 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3298 { (exit 1); exit 1; }; }
3300 ol_enable_glue="$ol_arg"
3303 ol_enable_glue=${ol_enable_overlays:-yes}
3307 # OpenLDAP --enable-lastmod
3309 # Check whether --enable-lastmod or --disable-lastmod was given.
3310 if test "${enable_lastmod+set}" = set; then
3311 enableval="$enable_lastmod"
3314 for ol_val in no yes mod ; do
3315 if test "$enableval" = "$ol_val" ; then
3319 if test "$ol_arg" = "invalid" ; then
3320 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3322 { (exit 1); exit 1; }; }
3324 ol_enable_lastmod="$ol_arg"
3327 ol_enable_lastmod=${ol_enable_overlays:-no}
3329 # end --enable-lastmod
3331 # OpenLDAP --enable-ppolicy
3333 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3334 if test "${enable_ppolicy+set}" = set; then
3335 enableval="$enable_ppolicy"
3338 for ol_val in no yes mod ; do
3339 if test "$enableval" = "$ol_val" ; then
3343 if test "$ol_arg" = "invalid" ; then
3344 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3346 { (exit 1); exit 1; }; }
3348 ol_enable_ppolicy="$ol_arg"
3351 ol_enable_ppolicy=${ol_enable_overlays:-no}
3353 # end --enable-ppolicy
3355 # OpenLDAP --enable-proxycache
3357 # Check whether --enable-proxycache or --disable-proxycache was given.
3358 if test "${enable_proxycache+set}" = set; then
3359 enableval="$enable_proxycache"
3362 for ol_val in no yes mod ; do
3363 if test "$enableval" = "$ol_val" ; then
3367 if test "$ol_arg" = "invalid" ; then
3368 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3369 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3370 { (exit 1); exit 1; }; }
3372 ol_enable_proxycache="$ol_arg"
3375 ol_enable_proxycache=${ol_enable_overlays:-no}
3377 # end --enable-proxycache
3379 # OpenLDAP --enable-refint
3381 # Check whether --enable-refint or --disable-refint was given.
3382 if test "${enable_refint+set}" = set; then
3383 enableval="$enable_refint"
3386 for ol_val in no yes mod ; do
3387 if test "$enableval" = "$ol_val" ; then
3391 if test "$ol_arg" = "invalid" ; then
3392 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3393 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3394 { (exit 1); exit 1; }; }
3396 ol_enable_refint="$ol_arg"
3399 ol_enable_refint=${ol_enable_overlays:-no}
3401 # end --enable-refint
3403 # OpenLDAP --enable-retcode
3405 # Check whether --enable-retcode or --disable-retcode was given.
3406 if test "${enable_retcode+set}" = set; then
3407 enableval="$enable_retcode"
3410 for ol_val in no yes mod ; do
3411 if test "$enableval" = "$ol_val" ; then
3415 if test "$ol_arg" = "invalid" ; then
3416 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3417 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3418 { (exit 1); exit 1; }; }
3420 ol_enable_retcode="$ol_arg"
3423 ol_enable_retcode=${ol_enable_overlays:-no}
3425 # end --enable-retcode
3427 # OpenLDAP --enable-rwm
3429 # Check whether --enable-rwm or --disable-rwm was given.
3430 if test "${enable_rwm+set}" = set; then
3431 enableval="$enable_rwm"
3434 for ol_val in no yes mod ; do
3435 if test "$enableval" = "$ol_val" ; then
3439 if test "$ol_arg" = "invalid" ; then
3440 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3441 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3442 { (exit 1); exit 1; }; }
3444 ol_enable_rwm="$ol_arg"
3447 ol_enable_rwm=${ol_enable_overlays:-no}
3451 # OpenLDAP --enable-syncprov
3453 # Check whether --enable-syncprov or --disable-syncprov was given.
3454 if test "${enable_syncprov+set}" = set; then
3455 enableval="$enable_syncprov"
3458 for ol_val in no yes mod ; do
3459 if test "$enableval" = "$ol_val" ; then
3463 if test "$ol_arg" = "invalid" ; then
3464 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3465 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3466 { (exit 1); exit 1; }; }
3468 ol_enable_syncprov="$ol_arg"
3471 ol_enable_syncprov=${ol_enable_overlays:-yes}
3473 # end --enable-syncprov
3475 # OpenLDAP --enable-translucent
3477 # Check whether --enable-translucent or --disable-translucent was given.
3478 if test "${enable_translucent+set}" = set; then
3479 enableval="$enable_translucent"
3482 for ol_val in no yes mod ; do
3483 if test "$enableval" = "$ol_val" ; then
3487 if test "$ol_arg" = "invalid" ; then
3488 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3489 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3490 { (exit 1); exit 1; }; }
3492 ol_enable_translucent="$ol_arg"
3495 ol_enable_translucent=${ol_enable_overlays:-no}
3497 # end --enable-translucent
3499 # OpenLDAP --enable-unique
3501 # Check whether --enable-unique or --disable-unique was given.
3502 if test "${enable_unique+set}" = set; then
3503 enableval="$enable_unique"
3506 for ol_val in no yes mod ; do
3507 if test "$enableval" = "$ol_val" ; then
3511 if test "$ol_arg" = "invalid" ; then
3512 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3513 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3514 { (exit 1); exit 1; }; }
3516 ol_enable_unique="$ol_arg"
3519 ol_enable_unique=${ol_enable_overlays:-no}
3521 # end --enable-unique
3523 # OpenLDAP --enable-valsort
3525 # Check whether --enable-valsort or --disable-valsort was given.
3526 if test "${enable_valsort+set}" = set; then
3527 enableval="$enable_valsort"
3530 for ol_val in no yes mod ; do
3531 if test "$enableval" = "$ol_val" ; then
3535 if test "$ol_arg" = "invalid" ; then
3536 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3537 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3538 { (exit 1); exit 1; }; }
3540 ol_enable_valsort="$ol_arg"
3543 ol_enable_valsort=${ol_enable_overlays:-no}
3545 # end --enable-valsort
3548 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3549 if test "${enable_xxslurpdoptions+set}" = set; then
3550 enableval="$enable_xxslurpdoptions"
3553 # OpenLDAP --enable-slurpd
3555 # Check whether --enable-slurpd or --disable-slurpd was given.
3556 if test "${enable_slurpd+set}" = set; then
3557 enableval="$enable_slurpd"
3560 for ol_val in auto yes no ; do
3561 if test "$enableval" = "$ol_val" ; then
3565 if test "$ol_arg" = "invalid" ; then
3566 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3567 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3568 { (exit 1); exit 1; }; }
3570 ol_enable_slurpd="$ol_arg"
3573 ol_enable_slurpd=auto
3575 # end --enable-slurpd
3577 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3578 if test "${enable_xxliboptions+set}" = set; then
3579 enableval="$enable_xxliboptions"
3582 # Check whether --enable-static or --disable-static was given.
3583 if test "${enable_static+set}" = set; then
3584 enableval="$enable_static"
3585 p=${PACKAGE-default}
3587 yes) enable_static=yes ;;
3588 no) enable_static=no ;;
3591 # Look at the argument we got. We use all the common list separators.
3592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3593 for pkg in $enableval; do
3595 if test "X$pkg" = "X$p"; then
3606 # Check whether --enable-shared or --disable-shared was given.
3607 if test "${enable_shared+set}" = set; then
3608 enableval="$enable_shared"
3609 p=${PACKAGE-default}
3611 yes) enable_shared=yes ;;
3612 no) enable_shared=no ;;
3615 # Look at the argument we got. We use all the common list separators.
3616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617 for pkg in $enableval; do
3619 if test "X$pkg" = "X$p"; then
3633 if test $ol_enable_slapd = no ; then
3634 if test $ol_enable_slapi = yes ; then
3635 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3636 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3638 case "$ol_enable_backends" in yes | mod)
3639 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3640 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3642 for i in $Backends; do
3643 eval "ol_tmp=\$ol_enable_$i"
3644 if test $ol_tmp != no ; then
3645 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3647 eval "ol_enable_$i=no"
3650 if test $ol_enable_modules = yes ; then
3651 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3652 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3654 if test $ol_enable_multimaster = yes ; then
3655 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3656 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3658 if test $ol_enable_wrappers = yes ; then
3659 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3662 if test $ol_enable_rlookups = yes ; then
3663 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3666 if test $ol_enable_aci = yes ; then
3667 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3668 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3670 if test $ol_enable_ldbm_api != auto ; then
3671 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3672 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3674 if test $ol_enable_ldbm_type != auto ; then
3675 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3676 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3678 if test $ol_enable_slurpd = yes ; then
3679 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3680 echo "$as_me: error: slurpd requires slapd" >&2;}
3681 { (exit 1); exit 1; }; }
3683 if test $ol_enable_rewrite = yes ; then
3684 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3685 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3687 case "$ol_enable_overlays" in yes | mod)
3688 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3689 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3691 for i in $Overlays; do
3692 eval "ol_tmp=\$ol_enable_$i"
3693 if test $ol_tmp != no ; then
3694 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3695 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3696 eval "ol_enable_$i=no"
3700 # force settings to no
3705 ol_enable_modules=no
3706 ol_enable_multimaster=no
3707 ol_enable_rlookups=no
3709 ol_enable_wrappers=no
3711 ol_enable_ldbm_api=no
3712 ol_enable_ldbm_type=no
3716 ol_enable_rewrite=no
3718 elif test $ol_enable_ldbm = no ; then
3720 if test $ol_enable_ldbm_api != auto ; then
3721 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3722 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3725 if test $ol_enable_ldbm_type != auto ; then
3726 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3727 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3730 if test $ol_enable_modules != yes -a \
3731 $ol_enable_bdb = no -a \
3732 $ol_enable_dnssrv = no -a \
3733 $ol_enable_hdb = no -a \
3734 $ol_enable_ldap = no -a \
3735 $ol_enable_meta = no -a \
3736 $ol_enable_monitor = no -a \
3737 $ol_enable_null = no -a \
3738 $ol_enable_passwd = no -a \
3739 $ol_enable_perl = no -a \
3740 $ol_enable_relay = no -a \
3741 $ol_enable_shell = no -a \
3742 $ol_enable_sql = no ; then
3744 if test $ol_enable_slapd = yes ; then
3745 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3746 echo "$as_me: error: slapd requires a backend" >&2;}
3747 { (exit 1); exit 1; }; }
3749 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3750 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3755 ol_enable_ldbm_api=no
3756 ol_enable_ldbm_type=no
3758 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3759 ol_enable_ldbm_api=berkeley
3763 if test $ol_enable_ldbm_api = gdbm -a \
3764 $ol_enable_ldbm_type = btree ; then
3765 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3766 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3767 { (exit 1); exit 1; }; }
3769 if test $ol_enable_ldbm_api = mdbm -a \
3770 $ol_enable_ldbm_type = btree ; then
3771 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3772 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3773 { (exit 1); exit 1; }; }
3775 if test $ol_enable_ldbm_api = ndbm -a \
3776 $ol_enable_ldbm_type = btree ; then
3777 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3778 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3779 { (exit 1); exit 1; }; }
3782 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3783 if test $ol_enable_ldbm_api = auto ; then
3784 ol_enable_ldbm_api=berkeley
3785 elif test $ol_enable_ldbm_api != berkeley ; then
3786 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3787 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3788 { (exit 1); exit 1; }; }
3793 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3794 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3795 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3796 { (exit 1); exit 1; }; }
3799 if test $ol_enable_slurpd = yes ; then
3800 if test $ol_with_threads = no ; then
3801 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3802 echo "$as_me: error: slurpd requires threads" >&2;}
3803 { (exit 1); exit 1; }; }
3807 if test $ol_enable_lmpasswd = yes ; then
3808 if test $ol_with_tls = no ; then
3809 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3810 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3811 { (exit 1); exit 1; }; }
3815 if test $ol_enable_kbind = yes ; then
3816 if test $ol_with_kerberos = no ; then
3817 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3818 echo "$as_me: error: options require --with-kerberos" >&2;}
3819 { (exit 1); exit 1; }; }
3820 elif test $ol_with_kerberos = auto ; then
3821 ol_with_kerberos=yes
3824 elif test $ol_enable_kbind = no ; then
3825 if test $ol_with_kerberos = auto ; then
3827 elif test $ol_with_kerberos != no ; then
3828 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3829 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3834 if test $ol_enable_spasswd = yes ; then
3835 if test $ol_with_cyrus_sasl = no ; then
3836 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3837 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3838 { (exit 1); exit 1; }; }
3840 ol_with_cyrus_sasl=yes
3843 echo "$as_me:$LINENO: result: done" >&5
3844 echo "${ECHO_T}done" >&6
3888 BUILD_TRANSLUCENT=no
3892 SLAPD_STATIC_OVERLAYS=
3893 SLAPD_DYNAMIC_OVERLAYS=
3895 SLAPD_MODULES_LDFLAGS=
3896 SLAPD_MODULES_CPPFLAGS=
3898 SLAPD_STATIC_BACKENDS=back-ldif
3899 SLAPD_DYNAMIC_BACKENDS=
3924 cat >>confdefs.h <<\_ACEOF
3925 #define HAVE_MKVERSION 1
3933 *-*-aix*) if test -z "$CC" ; then
3934 case "$ol_with_threads" in
3935 auto | yes | posix) ol_aix_threads=yes ;;
3941 if test $ol_aix_threads = yes ; then
3942 if test -z "${CC}" ; then
3943 for ac_prog in cc_r xlc_r cc
3945 # Extract the first word of "$ac_prog", so it can be a program name with args.
3946 set dummy $ac_prog; ac_word=$2
3947 echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_CC+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 if test -n "$CC"; then
3953 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_CC="$ac_prog"
3963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 if test -n "$CC"; then
3973 echo "$as_me:$LINENO: result: $CC" >&5
3974 echo "${ECHO_T}$CC" >&6
3976 echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3980 test -n "$CC" && break
3984 if test "$CC" = cc ; then
3985 if test $ol_with_threads != auto ; then
3986 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3987 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3988 { (exit 1); exit 1; }; }
3990 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3991 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3997 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3998 ol_with_threads=posix
3999 ol_cv_pthread_create=yes
4003 if test -z "${CC}"; then
4004 for ac_prog in cc gcc
4006 # Extract the first word of "$ac_prog", so it can be a program name with args.
4007 set dummy $ac_prog; ac_word=$2
4008 echo "$as_me:$LINENO: checking for $ac_word" >&5
4009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4010 if test "${ac_cv_prog_CC+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 if test -n "$CC"; then
4014 ac_cv_prog_CC="$CC" # Let the user override the test.
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023 ac_cv_prog_CC="$ac_prog"
4024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 if test -n "$CC"; then
4034 echo "$as_me:$LINENO: result: $CC" >&5
4035 echo "${ECHO_T}$CC" >&6
4037 echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4041 test -n "$CC" && break
4043 test -n "$CC" || CC="missing"
4046 if test "${CC}" = "missing" ; then
4047 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4048 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4049 { (exit 1); exit 1; }; }
4053 if test -z "${AR}"; then
4054 for ac_prog in ar gar
4056 # Extract the first word of "$ac_prog", so it can be a program name with args.
4057 set dummy $ac_prog; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_prog_AR+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 if test -n "$AR"; then
4064 ac_cv_prog_AR="$AR" # Let the user override the test.
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_prog_AR="$ac_prog"
4074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 if test -n "$AR"; then
4084 echo "$as_me:$LINENO: result: $AR" >&5
4085 echo "${ECHO_T}$AR" >&6
4087 echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4091 test -n "$AR" && break
4093 test -n "$AR" || AR="missing"
4096 if test "${AR}" = "missing" ; then
4097 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4098 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4099 { (exit 1); exit 1; }; }
4107 # Check whether --enable-fast-install or --disable-fast-install was given.
4108 if test "${enable_fast_install+set}" = set; then
4109 enableval="$enable_fast_install"
4110 p=${PACKAGE-default}
4112 yes) enable_fast_install=yes ;;
4113 no) enable_fast_install=no ;;
4115 enable_fast_install=no
4116 # Look at the argument we got. We use all the common list separators.
4117 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4118 for pkg in $enableval; do
4120 if test "X$pkg" = "X$p"; then
4121 enable_fast_install=yes
4128 enable_fast_install=yes
4131 DEPDIR="${am__leading_dot}deps"
4133 ac_config_commands="$ac_config_commands depfiles"
4136 am_make=${MAKE-make}
4137 cat > confinc << 'END'
4142 # If we don't find an include directive, just comment out the code.
4143 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4144 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4148 # First try GNU make style include.
4149 echo "include confinc" > confmf
4150 # We grep out `Entering directory' and `Leaving directory'
4151 # messages which can occur if `w' ends up in MAKEFLAGS.
4152 # In particular we don't look at `^make:' because GNU make might
4153 # be invoked under some other name (usually "gmake"), in which
4154 # case it prints its new name instead of `make'.
4155 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4160 # Now try BSD make style include.
4161 if test "$am__include" = "#"; then
4162 echo '.include "confinc"' > confmf
4163 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4164 am__include=.include
4171 echo "$as_me:$LINENO: result: $_am_result" >&5
4172 echo "${ECHO_T}$_am_result" >&6
4173 rm -f confinc confmf
4175 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4176 if test "${enable_dependency_tracking+set}" = set; then
4177 enableval="$enable_dependency_tracking"
4180 if test "x$enable_dependency_tracking" != xno; then
4181 am_depcomp="$ac_aux_dir/depcomp"
4186 if test "x$enable_dependency_tracking" != xno; then
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4204 echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4206 if test "${ac_cv_prog_CC+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 if test -n "$CC"; then
4210 ac_cv_prog_CC="$CC" # Let the user override the test.
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 if test -n "$CC"; then
4230 echo "$as_me:$LINENO: result: $CC" >&5
4231 echo "${ECHO_T}$CC" >&6
4233 echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6
4238 if test -z "$ac_cv_prog_CC"; then
4240 # Extract the first word of "gcc", so it can be a program name with args.
4241 set dummy gcc; ac_word=$2
4242 echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 if test -n "$ac_ct_CC"; then
4248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_prog_ac_ct_CC="gcc"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4267 if test -n "$ac_ct_CC"; then
4268 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4269 echo "${ECHO_T}$ac_ct_CC" >&6
4271 echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6
4280 if test -z "$CC"; then
4281 if test -n "$ac_tool_prefix"; then
4282 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4283 set dummy ${ac_tool_prefix}cc; ac_word=$2
4284 echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286 if test "${ac_cv_prog_CC+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 if test -n "$CC"; then
4290 ac_cv_prog_CC="$CC" # Let the user override the test.
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_CC="${ac_tool_prefix}cc"
4300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 if test -n "$CC"; then
4310 echo "$as_me:$LINENO: result: $CC" >&5
4311 echo "${ECHO_T}$CC" >&6
4313 echo "$as_me:$LINENO: result: no" >&5
4314 echo "${ECHO_T}no" >&6
4318 if test -z "$ac_cv_prog_CC"; then
4320 # Extract the first word of "cc", so it can be a program name with args.
4321 set dummy cc; ac_word=$2
4322 echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 if test -n "$ac_ct_CC"; then
4328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337 ac_cv_prog_ac_ct_CC="cc"
4338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4347 if test -n "$ac_ct_CC"; then
4348 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4349 echo "${ECHO_T}$ac_ct_CC" >&6
4351 echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6
4361 if test -z "$CC"; then
4362 # Extract the first word of "cc", so it can be a program name with args.
4363 set dummy cc; ac_word=$2
4364 echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4366 if test "${ac_cv_prog_CC+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 if test -n "$CC"; then
4370 ac_cv_prog_CC="$CC" # Let the user override the test.
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4381 ac_prog_rejected=yes
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 if test $ac_prog_rejected = yes; then
4392 # We found a bogon in the path, so make sure we never use it.
4393 set dummy $ac_cv_prog_CC
4395 if test $# != 0; then
4396 # We chose a different compiler from the bogus one.
4397 # However, it has the same basename, so the bogon will be chosen
4398 # first if we set CC to just the basename; use the full file name.
4400 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4406 if test -n "$CC"; then
4407 echo "$as_me:$LINENO: result: $CC" >&5
4408 echo "${ECHO_T}$CC" >&6
4410 echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6
4415 if test -z "$CC"; then
4416 if test -n "$ac_tool_prefix"; then
4419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_prog_CC+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 if test -n "$CC"; then
4427 ac_cv_prog_CC="$CC" # Let the user override the test.
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 if test -n "$CC"; then
4447 echo "$as_me:$LINENO: result: $CC" >&5
4448 echo "${ECHO_T}$CC" >&6
4450 echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6
4454 test -n "$CC" && break
4457 if test -z "$CC"; then
4461 # Extract the first word of "$ac_prog", so it can be a program name with args.
4462 set dummy $ac_prog; ac_word=$2
4463 echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 if test -n "$ac_ct_CC"; then
4469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478 ac_cv_prog_ac_ct_CC="$ac_prog"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4488 if test -n "$ac_ct_CC"; then
4489 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4490 echo "${ECHO_T}$ac_ct_CC" >&6
4492 echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6
4496 test -n "$ac_ct_CC" && break
4505 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4506 See \`config.log' for more details." >&5
4507 echo "$as_me: error: no acceptable C compiler found in \$PATH
4508 See \`config.log' for more details." >&2;}
4509 { (exit 1); exit 1; }; }
4511 # Provide some information about the compiler.
4512 echo "$as_me:$LINENO:" \
4513 "checking for C compiler version" >&5
4514 ac_compiler=`set X $ac_compile; echo $2`
4515 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4516 (eval $ac_compiler --version </dev/null >&5) 2>&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }
4520 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4521 (eval $ac_compiler -v </dev/null >&5) 2>&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }
4525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4526 (eval $ac_compiler -V </dev/null >&5) 2>&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }
4531 cat >conftest.$ac_ext <<_ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4546 ac_clean_files_save=$ac_clean_files
4547 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4548 # Try to create an executable without -o first, disregard a.out.
4549 # It will help us diagnose broken compilers, and finding out an intuition
4551 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4552 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4553 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4554 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4555 (eval $ac_link_default) 2>&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; then
4559 # Find the output, starting from the most likely. This scheme is
4560 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4563 # Be careful to initialize this variable, since it used to be cached.
4564 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4566 # b.out is created by i960 compilers.
4567 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4569 test -f "$ac_file" || continue
4571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4574 # This is the source file.
4577 # We found the default executable, but exeext='' is most
4581 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4582 # FIXME: I believe we export ac_cv_exeext for Libtool,
4583 # but it would be cool to find out if it's true. Does anybody
4584 # maintain Libtool? --akim.
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4595 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4596 See \`config.log' for more details." >&5
4597 echo "$as_me: error: C compiler cannot create executables
4598 See \`config.log' for more details." >&2;}
4599 { (exit 77); exit 77; }; }
4602 ac_exeext=$ac_cv_exeext
4603 echo "$as_me:$LINENO: result: $ac_file" >&5
4604 echo "${ECHO_T}$ac_file" >&6
4606 # Check the compiler produces executables we can run. If not, either
4607 # the compiler is broken, or we cross compile.
4608 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4609 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4610 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4611 # If not cross compiling, check that we can run a simple program.
4612 if test "$cross_compiling" != yes; then
4613 if { ac_try='./$ac_file'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4621 if test "$cross_compiling" = maybe; then
4624 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4625 If you meant to cross compile, use \`--host'.
4626 See \`config.log' for more details." >&5
4627 echo "$as_me: error: cannot run C compiled programs.
4628 If you meant to cross compile, use \`--host'.
4629 See \`config.log' for more details." >&2;}
4630 { (exit 1); exit 1; }; }
4634 echo "$as_me:$LINENO: result: yes" >&5
4635 echo "${ECHO_T}yes" >&6
4637 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4638 ac_clean_files=$ac_clean_files_save
4639 # Check the compiler produces executables we can run. If not, either
4640 # the compiler is broken, or we cross compile.
4641 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4642 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4643 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4644 echo "${ECHO_T}$cross_compiling" >&6
4646 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4647 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4649 (eval $ac_link) 2>&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; then
4653 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4654 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4655 # work properly (i.e., refer to `conftest.exe'), while it won't with
4657 for ac_file in conftest.exe conftest conftest.*; do
4658 test -f "$ac_file" || continue
4660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4661 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4668 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4669 See \`config.log' for more details." >&5
4670 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4671 See \`config.log' for more details." >&2;}
4672 { (exit 1); exit 1; }; }
4675 rm -f conftest$ac_cv_exeext
4676 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4677 echo "${ECHO_T}$ac_cv_exeext" >&6
4679 rm -f conftest.$ac_ext
4680 EXEEXT=$ac_cv_exeext
4682 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4683 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4684 if test "${ac_cv_objext+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 cat >conftest.$ac_ext <<_ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4702 rm -f conftest.o conftest.obj
4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704 (eval $ac_compile) 2>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; then
4708 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4711 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4719 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4720 See \`config.log' for more details." >&5
4721 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4722 See \`config.log' for more details." >&2;}
4723 { (exit 1); exit 1; }; }
4726 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4728 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4729 echo "${ECHO_T}$ac_cv_objext" >&6
4730 OBJEXT=$ac_cv_objext
4732 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4733 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4734 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 cat >conftest.$ac_ext <<_ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4755 rm -f conftest.$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757 (eval $ac_compile) 2>conftest.er1
4759 grep -v '^ *+' conftest.er1 >conftest.err
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } &&
4764 { ac_try='test -z "$ac_c_werror_flag"
4765 || test ! -s conftest.err'
4766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; } &&
4771 { ac_try='test -s conftest.$ac_objext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4788 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4789 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4790 GCC=`test $ac_compiler_gnu = yes && echo yes`
4791 ac_test_CFLAGS=${CFLAGS+set}
4792 ac_save_CFLAGS=$CFLAGS
4794 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4795 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4796 if test "${ac_cv_prog_cc_g+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 cat >conftest.$ac_ext <<_ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4814 rm -f conftest.$ac_objext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816 (eval $ac_compile) 2>conftest.er1
4818 grep -v '^ *+' conftest.er1 >conftest.err
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try='test -z "$ac_c_werror_flag"
4824 || test ! -s conftest.err'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; } &&
4830 { ac_try='test -s conftest.$ac_objext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4846 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4847 if test "$ac_test_CFLAGS" = set; then
4848 CFLAGS=$ac_save_CFLAGS
4849 elif test $ac_cv_prog_cc_g = yes; then
4850 if test "$GCC" = yes; then
4856 if test "$GCC" = yes; then
4862 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4863 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4864 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 ac_cv_prog_cc_stdc=no
4869 cat >conftest.$ac_ext <<_ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4877 #include <sys/types.h>
4878 #include <sys/stat.h>
4879 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4880 struct buf { int x; };
4881 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4882 static char *e (p, i)
4888 static char *f (char * (*g) (char **, int), char **p, ...)
4893 s = g (p, va_arg (v,int));
4898 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4899 function prototypes and stuff, but not '\xHH' hex character constants.
4900 These don't provoke an error unfortunately, instead are silently treated
4901 as 'x'. The following induces an error, until -std1 is added to get
4902 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4903 array size at least. It's necessary to write '\x00'==0 to get something
4904 that's true only with -std1. */
4905 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4907 int test (int i, double x);
4908 struct s1 {int (*f) (int a);};
4909 struct s2 {int (*f) (double a);};
4910 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4916 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4921 # Don't try gcc -ansi; that turns off useful extensions and
4922 # breaks some systems' header files.
4923 # AIX -qlanglvl=ansi
4924 # Ultrix and OSF/1 -std1
4925 # HP-UX 10.20 and later -Ae
4926 # HP-UX older versions -Aa -D_HPUX_SOURCE
4927 # SVR4 -Xc -D__EXTENSIONS__
4928 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4930 CC="$ac_save_CC $ac_arg"
4931 rm -f conftest.$ac_objext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>conftest.er1
4935 grep -v '^ *+' conftest.er1 >conftest.err
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -z "$ac_c_werror_flag"
4941 || test ! -s conftest.err'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; } &&
4947 { ac_try='test -s conftest.$ac_objext'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; }; then
4953 ac_cv_prog_cc_stdc=$ac_arg
4956 echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4960 rm -f conftest.err conftest.$ac_objext
4962 rm -f conftest.$ac_ext conftest.$ac_objext
4967 case "x$ac_cv_prog_cc_stdc" in
4969 echo "$as_me:$LINENO: result: none needed" >&5
4970 echo "${ECHO_T}none needed" >&6 ;;
4972 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4973 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4974 CC="$CC $ac_cv_prog_cc_stdc" ;;
4977 # Some people use a C++ compiler to compile C. Since we use `exit',
4978 # in C++ we need to declare it. In case someone uses the same compiler
4979 # for both compiling C and C++ we need to have the C++ compiler decide
4980 # the declaration of exit, since it's the most demanding environment.
4981 cat >conftest.$ac_ext <<_ACEOF
4986 rm -f conftest.$ac_objext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988 (eval $ac_compile) 2>conftest.er1
4990 grep -v '^ *+' conftest.er1 >conftest.err
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } &&
4995 { ac_try='test -z "$ac_c_werror_flag"
4996 || test ! -s conftest.err'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; } &&
5002 { ac_try='test -s conftest.$ac_objext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 for ac_declaration in \
5010 'extern "C" void std::exit (int) throw (); using std::exit;' \
5011 'extern "C" void std::exit (int); using std::exit;' \
5012 'extern "C" void exit (int) throw ();' \
5013 'extern "C" void exit (int);' \
5016 cat >conftest.$ac_ext <<_ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5032 rm -f conftest.$ac_objext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034 (eval $ac_compile) 2>conftest.er1
5036 grep -v '^ *+' conftest.er1 >conftest.err
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } &&
5041 { ac_try='test -z "$ac_c_werror_flag"
5042 || test ! -s conftest.err'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; } &&
5048 { ac_try='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5062 cat >conftest.$ac_ext <<_ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>conftest.er1
5081 grep -v '^ *+' conftest.er1 >conftest.err
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
5086 { ac_try='test -z "$ac_c_werror_flag"
5087 || test ! -s conftest.err'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; } &&
5093 { ac_try='test -s conftest.$ac_objext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5108 if test -n "$ac_declaration"; then
5109 echo '#ifdef __cplusplus' >>confdefs.h
5110 echo $ac_declaration >>confdefs.h
5111 echo '#endif' >>confdefs.h
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5126 depcc="$CC" am_compiler_list=
5128 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5129 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5130 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5134 # We make a subdir and do the tests there. Otherwise we can end up
5135 # making bogus files that we don't know about and never remove. For
5136 # instance it was reported that on HP-UX the gcc test will end up
5137 # making a dummy file named `D' -- because `-MD' means `put the output
5140 # Copy depcomp to subdir because otherwise we won't find it if we're
5141 # using a relative directory.
5142 cp "$am_depcomp" conftest.dir
5144 # We will build objects and dependencies in a subdirectory because
5145 # it helps to detect inapplicable dependency modes. For instance
5146 # both Tru64's cc and ICC support -MD to output dependencies as a
5147 # side effect of compilation, but ICC will put the dependencies in
5148 # the current directory while Tru64 will put them in the object
5152 am_cv_CC_dependencies_compiler_type=none
5153 if test "$am_compiler_list" = ""; then
5154 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5156 for depmode in $am_compiler_list; do
5157 # Setup a source with many dependencies, because some compilers
5158 # like to wrap large dependency lists on column 80 (with \), and
5159 # we should not choose a depcomp mode which is confused by this.
5161 # We need to recreate these files for each test, as the compiler may
5162 # overwrite some of them when testing with obscure command lines.
5163 # This happens at least with the AIX C compiler.
5165 for i in 1 2 3 4 5 6; do
5166 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5167 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5168 # Solaris 8's {/usr,}/bin/sh.
5169 touch sub/conftst$i.h
5171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5175 # after this tag, mechanisms are not by side-effect, so they'll
5176 # only be used when explicitly requested
5177 if test "x$enable_dependency_tracking" = xyes; then
5185 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5186 # mode. It turns out that the SunPro C++ compiler does not properly
5187 # handle `-M -o', and we need to detect this.
5188 if depmode=$depmode \
5189 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5190 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5191 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5192 >/dev/null 2>conftest.err &&
5193 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5194 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5195 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5196 # icc doesn't choke on unknown options, it will just issue warnings
5197 # or remarks (even with -Werror). So we grep stderr for any message
5198 # that says an option was ignored or not supported.
5199 # When given -MP, icc 7.0 and 7.1 complain thusly:
5200 # icc: Command line warning: ignoring option '-M'; no argument required
5201 # The diagnosis changed in icc 8.0:
5202 # icc: Command line remark: option '-MP' not supported
5203 if (grep 'ignoring option' conftest.err ||
5204 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5205 am_cv_CC_dependencies_compiler_type=$depmode
5214 am_cv_CC_dependencies_compiler_type=none
5218 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5219 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5220 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5225 test "x$enable_dependency_tracking" != xno \
5226 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5228 am__fastdepCC_FALSE='#'
5230 am__fastdepCC_TRUE='#'
5231 am__fastdepCC_FALSE=
5235 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5236 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5237 if test "${lt_cv_path_SED+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 # Loop through the user's path and test for sed and gsed.
5241 # Then use that list of sed's as ones to test for truncation.
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 test -z "$as_dir" && as_dir=.
5247 for lt_ac_prog in sed gsed; do
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5250 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5257 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5258 # along with /bin/sed that truncates output.
5259 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5260 test ! -f $lt_ac_sed && continue
5261 cat /dev/null > conftest.in
5263 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5264 # Check for GNU sed and select it if it is found.
5265 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5266 lt_cv_path_SED=$lt_ac_sed
5270 cat conftest.in conftest.in >conftest.tmp
5271 mv conftest.tmp conftest.in
5272 cp conftest.in conftest.nl
5274 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5275 cmp -s conftest.out conftest.nl || break
5276 # 10000 chars as input seems more than enough
5277 test $lt_ac_count -gt 10 && break
5278 lt_ac_count=`expr $lt_ac_count + 1`
5279 if test $lt_ac_count -gt $lt_ac_max; then
5280 lt_ac_max=$lt_ac_count
5281 lt_cv_path_SED=$lt_ac_sed
5289 echo "$as_me:$LINENO: result: $SED" >&5
5290 echo "${ECHO_T}$SED" >&6
5292 echo "$as_me:$LINENO: checking for egrep" >&5
5293 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5294 if test "${ac_cv_prog_egrep+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5298 then ac_cv_prog_egrep='grep -E'
5299 else ac_cv_prog_egrep='egrep'
5302 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5303 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5304 EGREP=$ac_cv_prog_egrep
5308 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5309 if test "${with_gnu_ld+set}" = set; then
5310 withval="$with_gnu_ld"
5311 test "$withval" = no || with_gnu_ld=yes
5316 if test "$GCC" = yes; then
5317 # Check if gcc -print-prog-name=ld gives a path.
5318 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5319 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5322 # gcc leaves a trailing carriage return which upsets mingw
5323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5328 # Accept absolute paths.
5330 re_direlt='/[^/][^/]*/\.\./'
5331 # Canonicalize the pathname of ld
5332 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5333 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5334 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5336 test -z "$LD" && LD="$ac_prog"
5339 # If it fails, then pretend we aren't using GCC.
5343 # If it is relative, then search for the first ld in PATH.
5347 elif test "$with_gnu_ld" = yes; then
5348 echo "$as_me:$LINENO: checking for GNU ld" >&5
5349 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5351 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5352 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5354 if test "${lt_cv_path_LD+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 if test -z "$LD"; then
5358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5359 for ac_dir in $PATH; do
5361 test -z "$ac_dir" && ac_dir=.
5362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5363 lt_cv_path_LD="$ac_dir/$ac_prog"
5364 # Check to see if the program is GNU ld. I'd rather use --version,
5365 # but apparently some GNU ld's only accept -v.
5366 # Break only if it was the GNU/non-GNU ld that we prefer.
5367 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5368 *GNU* | *'with BFD'*)
5369 test "$with_gnu_ld" != no && break
5372 test "$with_gnu_ld" != yes && break
5379 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5384 if test -n "$LD"; then
5385 echo "$as_me:$LINENO: result: $LD" >&5
5386 echo "${ECHO_T}$LD" >&6
5388 echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6
5391 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5392 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5393 { (exit 1); exit 1; }; }
5394 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5395 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5396 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5400 case `$LD -v 2>&1 </dev/null` in
5401 *GNU* | *'with BFD'*)
5402 lt_cv_prog_gnu_ld=yes
5405 lt_cv_prog_gnu_ld=no
5409 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5410 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5411 with_gnu_ld=$lt_cv_prog_gnu_ld
5414 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5415 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5416 if test "${lt_cv_ld_reload_flag+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 lt_cv_ld_reload_flag='-r'
5421 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5422 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5423 reload_flag=$lt_cv_ld_reload_flag
5424 case $reload_flag in
5426 *) reload_flag=" $reload_flag" ;;
5428 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5431 if test "$GCC" = yes; then
5432 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5434 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5439 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5440 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5441 if test "${lt_cv_path_NM+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 if test -n "$NM"; then
5445 # Let the user override the test.
5448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5449 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5451 test -z "$ac_dir" && ac_dir=.
5452 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5453 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5454 # Check to see if the nm accepts a BSD-compat flag.
5455 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5456 # nm: unknown option "B" ignored
5457 # Tru64's nm complains that /dev/null is an invalid object file
5458 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5459 */dev/null* | *'Invalid file or object type'*)
5460 lt_cv_path_NM="$tmp_nm -B"
5464 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5466 lt_cv_path_NM="$tmp_nm -p"
5470 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5471 continue # so that we can try to find one that supports BSD flags
5478 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5481 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5482 echo "${ECHO_T}$lt_cv_path_NM" >&6
5485 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5486 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5488 if test "$LN_S" = "ln -s"; then
5489 echo "$as_me:$LINENO: result: yes" >&5
5490 echo "${ECHO_T}yes" >&6
5492 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5493 echo "${ECHO_T}no, using $LN_S" >&6
5496 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5497 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5498 if test "${lt_cv_deplibs_check_method+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 lt_cv_file_magic_cmd='$MAGIC_CMD'
5502 lt_cv_file_magic_test_file=
5503 lt_cv_deplibs_check_method='unknown'
5504 # Need to set the preceding variable on all platforms that support
5505 # interlibrary dependencies.
5506 # 'none' -- dependencies not supported.
5507 # `unknown' -- same as none, but documents that we really don't know.
5508 # 'pass_all' -- all dependencies passed with no checks.
5509 # 'test_compile' -- check by making test program.
5510 # 'file_magic [[regex]]' -- check by looking for files in library path
5511 # which responds to the $file_magic_cmd with a given extended regex.
5512 # If you have `file' or equivalent on your system and you're not sure
5513 # whether `pass_all' will *always* work, you probably want this one.
5517 lt_cv_deplibs_check_method=pass_all
5521 lt_cv_deplibs_check_method=pass_all
5525 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5526 lt_cv_file_magic_cmd='/usr/bin/file -L'
5527 lt_cv_file_magic_test_file=/shlib/libc.so
5531 # func_win32_libid is a shell function defined in ltmain.sh
5532 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5533 lt_cv_file_magic_cmd='func_win32_libid'
5537 # Base MSYS/MinGW do not provide the 'file' command needed by
5538 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5539 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5540 lt_cv_file_magic_cmd='$OBJDUMP -f'
5543 darwin* | rhapsody*)
5544 lt_cv_deplibs_check_method=pass_all
5547 freebsd* | kfreebsd*-gnu | dragonfly*)
5548 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5551 # Not sure whether the presence of OpenBSD here was a mistake.
5552 # Let's accept both of them until this is cleared up.
5553 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5554 lt_cv_file_magic_cmd=/usr/bin/file
5555 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5559 lt_cv_deplibs_check_method=pass_all
5564 lt_cv_deplibs_check_method=pass_all
5567 hpux10.20* | hpux11*)
5568 lt_cv_file_magic_cmd=/usr/bin/file
5571 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5572 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5575 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]'
5576 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5579 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5580 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5585 irix5* | irix6* | nonstopux*)
5587 *-32|*"-32 ") libmagic=32-bit;;
5588 *-n32|*"-n32 ") libmagic=N32;;
5589 *-64|*"-64 ") libmagic=64-bit;;
5590 *) libmagic=never-match;;
5592 lt_cv_deplibs_check_method=pass_all
5595 # This must be Linux ELF.
5597 lt_cv_deplibs_check_method=pass_all
5601 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5609 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5610 lt_cv_file_magic_cmd=/usr/bin/file
5611 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5615 lt_cv_deplibs_check_method=unknown
5619 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5626 osf3* | osf4* | osf5*)
5627 lt_cv_deplibs_check_method=pass_all
5631 lt_cv_deplibs_check_method=pass_all
5635 lt_cv_deplibs_check_method=pass_all
5638 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5639 case $host_vendor in
5641 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]'
5642 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5645 lt_cv_deplibs_check_method=pass_all
5648 lt_cv_file_magic_cmd='/bin/file'
5649 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5652 lt_cv_file_magic_cmd='/bin/file'
5653 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5654 lt_cv_file_magic_test_file=/lib/libc.so
5657 lt_cv_deplibs_check_method=pass_all
5662 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5663 lt_cv_deplibs_check_method=pass_all
5668 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5669 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5670 file_magic_cmd=$lt_cv_file_magic_cmd
5671 deplibs_check_method=$lt_cv_deplibs_check_method
5672 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5677 # If no C compiler was specified, use CC.
5680 # Allow CC to be a program name with arguments.
5684 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5685 if test "${enable_libtool_lock+set}" = set; then
5686 enableval="$enable_libtool_lock"
5689 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5691 # Some flags need to be propagated to the compiler or linker for good
5695 # Find out which ABI we are using.
5696 echo 'int i;' > conftest.$ac_ext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5698 (eval $ac_compile) 2>&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; then
5702 case `/usr/bin/file conftest.$ac_objext` in
5714 # Find out which ABI we are using.
5715 echo '#line 5715 "configure"' > conftest.$ac_ext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5717 (eval $ac_compile) 2>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; then
5721 if test "$lt_cv_prog_gnu_ld" = yes; then
5722 case `/usr/bin/file conftest.$ac_objext` in
5724 LD="${LD-ld} -melf32bsmip"
5727 LD="${LD-ld} -melf32bmipn32"
5730 LD="${LD-ld} -melf64bmip"
5734 case `/usr/bin/file conftest.$ac_objext` in
5750 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5751 # Find out which ABI we are using.
5752 echo 'int i;' > conftest.$ac_ext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; then
5758 case "`/usr/bin/file conftest.o`" in
5762 LD="${LD-ld} -m elf_i386"
5764 ppc64-*linux*|powerpc64-*linux*)
5765 LD="${LD-ld} -m elf32ppclinux"
5768 LD="${LD-ld} -m elf_s390"
5771 LD="${LD-ld} -m elf32_sparc"
5778 LD="${LD-ld} -m elf_x86_64"
5780 ppc*-*linux*|powerpc*-*linux*)
5781 LD="${LD-ld} -m elf64ppc"
5784 LD="${LD-ld} -m elf64_s390"
5787 LD="${LD-ld} -m elf64_sparc"
5797 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5798 SAVE_CFLAGS="$CFLAGS"
5799 CFLAGS="$CFLAGS -belf"
5800 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5801 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5802 if test "${lt_cv_cc_needs_belf+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 ac_cpp='$CPP $CPPFLAGS'
5807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811 cat >conftest.$ac_ext <<_ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5826 rm -f conftest.$ac_objext conftest$ac_exeext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5828 (eval $ac_link) 2>conftest.er1
5830 grep -v '^ *+' conftest.er1 >conftest.err
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try='test -z "$ac_c_werror_flag"
5836 || test ! -s conftest.err'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try='test -s conftest$ac_exeext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 lt_cv_cc_needs_belf=yes
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853 lt_cv_cc_needs_belf=no
5855 rm -f conftest.err conftest.$ac_objext \
5856 conftest$ac_exeext conftest.$ac_ext
5858 ac_cpp='$CPP $CPPFLAGS'
5859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5864 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5865 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5866 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5867 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5868 CFLAGS="$SAVE_CFLAGS"
5871 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5872 if test -n "$ac_tool_prefix"; then
5873 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5874 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5875 echo "$as_me:$LINENO: checking for $ac_word" >&5
5876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5877 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 if test -n "$DLLTOOL"; then
5881 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 DLLTOOL=$ac_cv_prog_DLLTOOL
5900 if test -n "$DLLTOOL"; then
5901 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5902 echo "${ECHO_T}$DLLTOOL" >&6
5904 echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6
5909 if test -z "$ac_cv_prog_DLLTOOL"; then
5910 ac_ct_DLLTOOL=$DLLTOOL
5911 # Extract the first word of "dlltool", so it can be a program name with args.
5912 set dummy dlltool; ac_word=$2
5913 echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5915 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 if test -n "$ac_ct_DLLTOOL"; then
5919 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5938 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5939 if test -n "$ac_ct_DLLTOOL"; then
5940 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5941 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5943 echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5947 DLLTOOL=$ac_ct_DLLTOOL
5949 DLLTOOL="$ac_cv_prog_DLLTOOL"
5952 if test -n "$ac_tool_prefix"; then
5953 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5954 set dummy ${ac_tool_prefix}as; ac_word=$2
5955 echo "$as_me:$LINENO: checking for $ac_word" >&5
5956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5957 if test "${ac_cv_prog_AS+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 if test -n "$AS"; then
5961 ac_cv_prog_AS="$AS" # Let the user override the test.
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5970 ac_cv_prog_AS="${ac_tool_prefix}as"
5971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 if test -n "$AS"; then
5981 echo "$as_me:$LINENO: result: $AS" >&5
5982 echo "${ECHO_T}$AS" >&6
5984 echo "$as_me:$LINENO: result: no" >&5
5985 echo "${ECHO_T}no" >&6
5989 if test -z "$ac_cv_prog_AS"; then
5991 # Extract the first word of "as", so it can be a program name with args.
5992 set dummy as; ac_word=$2
5993 echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5995 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 if test -n "$ac_ct_AS"; then
5999 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008 ac_cv_prog_ac_ct_AS="as"
6009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6018 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6019 if test -n "$ac_ct_AS"; then
6020 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6021 echo "${ECHO_T}$ac_ct_AS" >&6
6023 echo "$as_me:$LINENO: result: no" >&5
6024 echo "${ECHO_T}no" >&6
6032 if test -n "$ac_tool_prefix"; then
6033 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6034 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6035 echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6037 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 if test -n "$OBJDUMP"; then
6041 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 OBJDUMP=$ac_cv_prog_OBJDUMP
6060 if test -n "$OBJDUMP"; then
6061 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6062 echo "${ECHO_T}$OBJDUMP" >&6
6064 echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6
6069 if test -z "$ac_cv_prog_OBJDUMP"; then
6070 ac_ct_OBJDUMP=$OBJDUMP
6071 # Extract the first word of "objdump", so it can be a program name with args.
6072 set dummy objdump; ac_word=$2
6073 echo "$as_me:$LINENO: checking for $ac_word" >&5
6074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6075 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 if test -n "$ac_ct_OBJDUMP"; then
6079 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6098 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6099 if test -n "$ac_ct_OBJDUMP"; then
6100 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6101 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6103 echo "$as_me:$LINENO: result: no" >&5
6104 echo "${ECHO_T}no" >&6
6107 OBJDUMP=$ac_ct_OBJDUMP
6109 OBJDUMP="$ac_cv_prog_OBJDUMP"
6116 need_locks="$enable_libtool_lock"
6120 ac_cpp='$CPP $CPPFLAGS'
6121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6124 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6125 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6126 # On Suns, sometimes $CPP names a directory.
6127 if test -n "$CPP" && test -d "$CPP"; then
6130 if test -z "$CPP"; then
6131 if test "${ac_cv_prog_CPP+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 # Double quotes because CPP needs to be expanded
6135 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6138 for ac_c_preproc_warn_flag in '' yes
6140 # Use a header file that comes with gcc, so configuring glibc
6141 # with a fresh cross-compiler works.
6142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6143 # <limits.h> exists even on freestanding compilers.
6144 # On the NeXT, cc -E runs the code through the compiler's parser,
6145 # not just through cpp. "Syntax error" is here to catch this case.
6146 cat >conftest.$ac_ext <<_ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6153 # include <limits.h>
6155 # include <assert.h>
6159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6162 grep -v '^ *+' conftest.er1 >conftest.err
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } >/dev/null; then
6167 if test -s conftest.err; then
6168 ac_cpp_err=$ac_c_preproc_warn_flag
6169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6176 if test -z "$ac_cpp_err"; then
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 # Broken: fails on valid input.
6185 rm -f conftest.err conftest.$ac_ext
6187 # OK, works on sane cases. Now check whether non-existent headers
6188 # can be detected and how.
6189 cat >conftest.$ac_ext <<_ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6195 #include <ac_nonexistent.h>
6197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6200 grep -v '^ *+' conftest.er1 >conftest.err
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } >/dev/null; then
6205 if test -s conftest.err; then
6206 ac_cpp_err=$ac_c_preproc_warn_flag
6207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6214 if test -z "$ac_cpp_err"; then
6215 # Broken: success on invalid input.
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6221 # Passes both tests.
6225 rm -f conftest.err conftest.$ac_ext
6228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6229 rm -f conftest.err conftest.$ac_ext
6230 if $ac_preproc_ok; then
6242 echo "$as_me:$LINENO: result: $CPP" >&5
6243 echo "${ECHO_T}$CPP" >&6
6245 for ac_c_preproc_warn_flag in '' yes
6247 # Use a header file that comes with gcc, so configuring glibc
6248 # with a fresh cross-compiler works.
6249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6250 # <limits.h> exists even on freestanding compilers.
6251 # On the NeXT, cc -E runs the code through the compiler's parser,
6252 # not just through cpp. "Syntax error" is here to catch this case.
6253 cat >conftest.$ac_ext <<_ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6260 # include <limits.h>
6262 # include <assert.h>
6266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6269 grep -v '^ *+' conftest.er1 >conftest.err
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } >/dev/null; then
6274 if test -s conftest.err; then
6275 ac_cpp_err=$ac_c_preproc_warn_flag
6276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6283 if test -z "$ac_cpp_err"; then
6286 echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6289 # Broken: fails on valid input.
6292 rm -f conftest.err conftest.$ac_ext
6294 # OK, works on sane cases. Now check whether non-existent headers
6295 # can be detected and how.
6296 cat >conftest.$ac_ext <<_ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6302 #include <ac_nonexistent.h>
6304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6307 grep -v '^ *+' conftest.er1 >conftest.err
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } >/dev/null; then
6312 if test -s conftest.err; then
6313 ac_cpp_err=$ac_c_preproc_warn_flag
6314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6321 if test -z "$ac_cpp_err"; then
6322 # Broken: success on invalid input.
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 # Passes both tests.
6332 rm -f conftest.err conftest.$ac_ext
6335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6336 rm -f conftest.err conftest.$ac_ext
6337 if $ac_preproc_ok; then
6340 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6341 See \`config.log' for more details." >&5
6342 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6343 See \`config.log' for more details." >&2;}
6344 { (exit 1); exit 1; }; }
6348 ac_cpp='$CPP $CPPFLAGS'
6349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6354 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6355 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6356 if test "${ac_cv_header_stdc+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 cat >conftest.$ac_ext <<_ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6378 rm -f conftest.$ac_objext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380 (eval $ac_compile) 2>conftest.er1
6382 grep -v '^ *+' conftest.er1 >conftest.err
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } &&
6387 { ac_try='test -z "$ac_c_werror_flag"
6388 || test ! -s conftest.err'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; } &&
6394 { ac_try='test -s conftest.$ac_objext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 ac_cv_header_stdc=yes
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_cv_header_stdc=no
6407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6409 if test $ac_cv_header_stdc = yes; then
6410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6411 cat >conftest.$ac_ext <<_ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6421 $EGREP "memchr" >/dev/null 2>&1; then
6424 ac_cv_header_stdc=no
6430 if test $ac_cv_header_stdc = yes; then
6431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6432 cat >conftest.$ac_ext <<_ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6442 $EGREP "free" >/dev/null 2>&1; then
6445 ac_cv_header_stdc=no
6451 if test $ac_cv_header_stdc = yes; then
6452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6453 if test "$cross_compiling" = yes; then
6456 cat >conftest.$ac_ext <<_ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6463 #if ((' ' & 0x0FF) == 0x020)
6464 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6465 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6467 # define ISLOWER(c) \
6468 (('a' <= (c) && (c) <= 'i') \
6469 || ('j' <= (c) && (c) <= 'r') \
6470 || ('s' <= (c) && (c) <= 'z'))
6471 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6474 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6479 for (i = 0; i < 256; i++)
6480 if (XOR (islower (i), ISLOWER (i))
6481 || toupper (i) != TOUPPER (i))
6486 rm -f conftest$ac_exeext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488 (eval $ac_link) 2>&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6499 echo "$as_me: program exited with status $ac_status" >&5
6500 echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6504 ac_cv_header_stdc=no
6506 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6510 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6511 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6512 if test $ac_cv_header_stdc = yes; then
6514 cat >>confdefs.h <<\_ACEOF
6515 #define STDC_HEADERS 1
6520 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6530 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6531 inttypes.h stdint.h unistd.h
6533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6534 echo "$as_me:$LINENO: checking for $ac_header" >&5
6535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 cat >conftest.$ac_ext <<_ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6545 $ac_includes_default
6547 #include <$ac_header>
6549 rm -f conftest.$ac_objext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551 (eval $ac_compile) 2>conftest.er1
6553 grep -v '^ *+' conftest.er1 >conftest.err
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } &&
6558 { ac_try='test -z "$ac_c_werror_flag"
6559 || test ! -s conftest.err'
6560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); }; } &&
6565 { ac_try='test -s conftest.$ac_objext'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
6571 eval "$as_ac_Header=yes"
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6576 eval "$as_ac_Header=no"
6578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6583 cat >>confdefs.h <<_ACEOF
6584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6593 for ac_header in dlfcn.h
6595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6597 echo "$as_me:$LINENO: checking for $ac_header" >&5
6598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6605 # Is the header compilable?
6606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6608 cat >conftest.$ac_ext <<_ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 $ac_includes_default
6615 #include <$ac_header>
6617 rm -f conftest.$ac_objext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619 (eval $ac_compile) 2>conftest.er1
6621 grep -v '^ *+' conftest.er1 >conftest.err
6623 cat conftest.err >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } &&
6626 { ac_try='test -z "$ac_c_werror_flag"
6627 || test ! -s conftest.err'
6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; } &&
6633 { ac_try='test -s conftest.$ac_objext'
6634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); }; }; then
6639 ac_header_compiler=yes
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6644 ac_header_compiler=no
6646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6648 echo "${ECHO_T}$ac_header_compiler" >&6
6650 # Is the header present?
6651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6653 cat >conftest.$ac_ext <<_ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 #include <$ac_header>
6661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6664 grep -v '^ *+' conftest.er1 >conftest.err
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } >/dev/null; then
6669 if test -s conftest.err; then
6670 ac_cpp_err=$ac_c_preproc_warn_flag
6671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6678 if test -z "$ac_cpp_err"; then
6679 ac_header_preproc=yes
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6684 ac_header_preproc=no
6686 rm -f conftest.err conftest.$ac_ext
6687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6688 echo "${ECHO_T}$ac_header_preproc" >&6
6690 # So? What about this header?
6691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6697 ac_header_preproc=yes
6700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6707 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6714 ## ------------------------------------------ ##
6715 ## Report this to the AC_PACKAGE_NAME lists. ##
6716 ## ------------------------------------------ ##
6719 sed "s/^/$as_me: WARNING: /" >&2
6722 echo "$as_me:$LINENO: checking for $ac_header" >&5
6723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 eval "$as_ac_Header=\$ac_header_preproc"
6729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6734 cat >>confdefs.h <<_ACEOF
6735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6743 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6745 # find the maximum length of command line arguments
6746 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6747 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6748 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 # On DJGPP, this test can blow up pretty badly due to problems in libc
6757 # (any single argument exceeding 2000 bytes causes a buffer overrun
6758 # during glob expansion). Even if it were fixed, the result of this
6759 # check would be larger than it should be.
6760 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6764 # Under GNU Hurd, this test is not required because there is
6765 # no limit to the length of command line arguments.
6766 # Libtool will interpret -1 as no limit whatsoever
6767 lt_cv_sys_max_cmd_len=-1;
6771 # On Win9x/ME, this test blows up -- it succeeds, but takes
6772 # about 5 minutes as the teststring grows exponentially.
6773 # Worse, since 9x/ME are not pre-emptively multitasking,
6774 # you end up with a "frozen" computer, even though with patience
6775 # the test eventually succeeds (with a max line length of 256k).
6776 # Instead, let's just punt: use the minimum linelength reported by
6777 # all of the supported platforms: 8192 (on NT/2K/XP).
6778 lt_cv_sys_max_cmd_len=8192;
6782 # On AmigaOS with pdksh, this test takes hours, literally.
6783 # So we just punt and use a minimum line length of 8192.
6784 lt_cv_sys_max_cmd_len=8192;
6787 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6788 # This has been around since 386BSD, at least. Likely further.
6789 if test -x /sbin/sysctl; then
6790 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6791 elif test -x /usr/sbin/sysctl; then
6792 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6794 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6796 # And add a safety zone
6797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6801 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6802 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6803 # nice to cause kernel panics so lets avoid the loop below.
6804 # First set a reasonable default.
6805 lt_cv_sys_max_cmd_len=16384
6807 if test -x /sbin/sysconfig; then
6808 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6809 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6814 # If test is not a shell built-in, we'll probably end up computing a
6815 # maximum length that is only half of the actual maximum length, but
6817 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6818 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6819 = "XX$teststring") >/dev/null 2>&1 &&
6820 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6821 lt_cv_sys_max_cmd_len=$new_result &&
6822 test $i != 17 # 1/2 MB should be enough
6825 teststring=$teststring$teststring
6828 # Add a significant safety factor because C++ compilers can tack on massive
6829 # amounts of additional arguments before passing them to the linker.
6830 # It appears as though 1/2 is a usable value.
6831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6837 if test -n $lt_cv_sys_max_cmd_len ; then
6838 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6839 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6841 echo "$as_me:$LINENO: result: none" >&5
6842 echo "${ECHO_T}none" >&6
6848 # Check for command to grab the raw symbol name followed by C symbol from nm.
6849 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6850 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6851 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 # These are sane defaults that work on at least a few old systems.
6856 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6858 # Character class describing NM global symbol codes.
6859 symcode='[BCDEGRST]'
6861 # Regexp to match symbols that can be accessed directly from C.
6862 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6864 # Transform an extracted symbol line into a proper C declaration
6865 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6867 # Transform an extracted symbol line into symbol name and symbol address
6868 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'"
6870 # Define system-specific variables.
6875 cygwin* | mingw* | pw32*)
6876 symcode='[ABCDGISTW]'
6878 hpux*) # Its linker distinguishes data from code symbols
6879 if test "$host_cpu" = ia64; then
6880 symcode='[ABCDEGRST]'
6882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6883 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'"
6886 if test "$host_cpu" = ia64; then
6887 symcode='[ABCDGIRSTW]'
6888 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6889 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'"
6893 symcode='[BCDEGRST]'
6896 symcode='[BCDEGQRST]'
6906 # Handle CRLF in mingw tool chain
6910 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6914 # If we're using GNU nm, then use its standard symbol codes.
6915 case `$NM -V 2>&1` in
6916 *GNU* | *'with BFD'*)
6917 symcode='[ABCDGIRSTW]' ;;
6920 # Try without a prefix undercore, then with it.
6921 for ac_symprfx in "" "_"; do
6923 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6924 symxfrm="\\1 $ac_symprfx\\2 \\2"
6926 # Write the raw and C identifiers.
6927 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6929 # Check to see that the pipe works correctly.
6933 cat > conftest.$ac_ext <<EOF
6938 void nm_test_func(){}
6942 int main(){nm_test_var='a';nm_test_func();return(0);}
6945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6946 (eval $ac_compile) 2>&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; then
6950 # Now try to grab the symbols.
6952 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6953 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } && test -s "$nlist"; then
6957 # Try sorting and uniquifying the output.
6958 if sort "$nlist" | uniq > "$nlist"T; then
6959 mv -f "$nlist"T "$nlist"
6964 # Make sure that we snagged all the symbols we need.
6965 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6966 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6967 cat <<EOF > conftest.$ac_ext
6973 # Now generate the symbol file.
6974 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6976 cat <<EOF >> conftest.$ac_ext
6977 #if defined (__STDC__) && __STDC__
6978 # define lt_ptr_t void *
6980 # define lt_ptr_t char *
6984 /* The mapping between symbol names and symbols. */
6989 lt_preloaded_symbols[] =
6992 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6993 cat <<\EOF >> conftest.$ac_ext
7001 # Now try linking the two files.
7002 mv conftest.$ac_objext conftstm.$ac_objext
7003 lt_save_LIBS="$LIBS"
7004 lt_save_CFLAGS="$CFLAGS"
7005 LIBS="conftstm.$ac_objext"
7006 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7008 (eval $ac_link) 2>&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7014 LIBS="$lt_save_LIBS"
7015 CFLAGS="$lt_save_CFLAGS"
7017 echo "cannot find nm_test_func in $nlist" >&5
7020 echo "cannot find nm_test_var in $nlist" >&5
7023 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7026 echo "$progname: failed program was:" >&5
7027 cat conftest.$ac_ext >&5
7029 rm -f conftest* conftst*
7031 # Do not use the global_symbol_pipe unless it works.
7032 if test "$pipe_works" = yes; then
7035 lt_cv_sys_global_symbol_pipe=
7041 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7042 lt_cv_sys_global_symbol_to_cdecl=
7044 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7045 echo "$as_me:$LINENO: result: failed" >&5
7046 echo "${ECHO_T}failed" >&6
7048 echo "$as_me:$LINENO: result: ok" >&5
7049 echo "${ECHO_T}ok" >&6
7052 echo "$as_me:$LINENO: checking for objdir" >&5
7053 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7054 if test "${lt_cv_objdir+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 rm -f .libs 2>/dev/null
7058 mkdir .libs 2>/dev/null
7059 if test -d .libs; then
7062 # MS-DOS does not allow filenames that begin with a dot.
7065 rmdir .libs 2>/dev/null
7067 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7068 echo "${ECHO_T}$lt_cv_objdir" >&6
7069 objdir=$lt_cv_objdir
7077 # AIX sometimes has problems with the GCC collect2 program. For some
7078 # reason, if we set the COLLECT_NAMES environment variable, the problems
7079 # vanish in a puff of smoke.
7080 if test "X${COLLECT_NAMES+set}" != Xset; then
7082 export COLLECT_NAMES
7087 # Sed substitution that helps us do robust quoting. It backslashifies
7088 # metacharacters that are still active within double-quoted strings.
7089 Xsed='sed -e 1s/^X//'
7090 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7092 # Same as above, but do not quote variable references.
7093 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7095 # Sed substitution to delay expansion of an escaped shell variable in a
7096 # double_quote_subst'ed string.
7097 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7099 # Sed substitution to avoid accidental globbing in evaled expressions
7100 no_glob_subst='s/\*/\\\*/g'
7106 default_ofile=libtool
7107 can_build_shared=yes
7109 # All known linkers require a `.a' archive for static linking (except M$VC,
7110 # which needs '.lib').
7112 ltmain="$ac_aux_dir/ltmain.sh"
7113 ofile="$default_ofile"
7114 with_gnu_ld="$lt_cv_prog_gnu_ld"
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}ar; ac_word=$2
7119 echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7121 if test "${ac_cv_prog_AR+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 if test -n "$AR"; then
7125 ac_cv_prog_AR="$AR" # Let the user override the test.
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_AR="${ac_tool_prefix}ar"
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 if test -n "$AR"; then
7145 echo "$as_me:$LINENO: result: $AR" >&5
7146 echo "${ECHO_T}$AR" >&6
7148 echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6
7153 if test -z "$ac_cv_prog_AR"; then
7155 # Extract the first word of "ar", so it can be a program name with args.
7156 set dummy ar; ac_word=$2
7157 echo "$as_me:$LINENO: checking for $ac_word" >&5
7158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7159 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 if test -n "$ac_ct_AR"; then
7163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172 ac_cv_prog_ac_ct_AR="ar"
7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7182 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7183 if test -n "$ac_ct_AR"; then
7184 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7185 echo "${ECHO_T}$ac_ct_AR" >&6
7187 echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6
7196 if test -n "$ac_tool_prefix"; then
7197 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7198 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7199 echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7201 if test "${ac_cv_prog_RANLIB+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 if test -n "$RANLIB"; then
7205 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 RANLIB=$ac_cv_prog_RANLIB
7224 if test -n "$RANLIB"; then
7225 echo "$as_me:$LINENO: result: $RANLIB" >&5
7226 echo "${ECHO_T}$RANLIB" >&6
7228 echo "$as_me:$LINENO: result: no" >&5
7229 echo "${ECHO_T}no" >&6
7233 if test -z "$ac_cv_prog_RANLIB"; then
7234 ac_ct_RANLIB=$RANLIB
7235 # Extract the first word of "ranlib", so it can be a program name with args.
7236 set dummy ranlib; ac_word=$2
7237 echo "$as_me:$LINENO: checking for $ac_word" >&5
7238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7239 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 if test -n "$ac_ct_RANLIB"; then
7243 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_ac_ct_RANLIB="ranlib"
7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7262 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7263 if test -n "$ac_ct_RANLIB"; then
7264 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7265 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7267 echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6
7271 RANLIB=$ac_ct_RANLIB
7273 RANLIB="$ac_cv_prog_RANLIB"
7276 if test -n "$ac_tool_prefix"; then
7277 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7278 set dummy ${ac_tool_prefix}strip; ac_word=$2
7279 echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7281 if test "${ac_cv_prog_STRIP+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 if test -n "$STRIP"; then
7285 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 STRIP=$ac_cv_prog_STRIP
7304 if test -n "$STRIP"; then
7305 echo "$as_me:$LINENO: result: $STRIP" >&5
7306 echo "${ECHO_T}$STRIP" >&6
7308 echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6
7313 if test -z "$ac_cv_prog_STRIP"; then
7315 # Extract the first word of "strip", so it can be a program name with args.
7316 set dummy strip; ac_word=$2
7317 echo "$as_me:$LINENO: checking for $ac_word" >&5
7318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7319 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 if test -n "$ac_ct_STRIP"; then
7323 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332 ac_cv_prog_ac_ct_STRIP="strip"
7333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7342 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7343 if test -n "$ac_ct_STRIP"; then
7344 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7345 echo "${ECHO_T}$ac_ct_STRIP" >&6
7347 echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6
7353 STRIP="$ac_cv_prog_STRIP"
7358 old_CFLAGS="$CFLAGS"
7360 # Set sane defaults for various variables
7361 test -z "$AR" && AR=ar
7362 test -z "$AR_FLAGS" && AR_FLAGS=cru
7363 test -z "$AS" && AS=as
7364 test -z "$CC" && CC=cc
7365 test -z "$LTCC" && LTCC=$CC
7366 test -z "$DLLTOOL" && DLLTOOL=dlltool
7367 test -z "$LD" && LD=ld
7368 test -z "$LN_S" && LN_S="ln -s"
7369 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7370 test -z "$NM" && NM=nm
7371 test -z "$SED" && SED=sed
7372 test -z "$OBJDUMP" && OBJDUMP=objdump
7373 test -z "$RANLIB" && RANLIB=:
7374 test -z "$STRIP" && STRIP=:
7375 test -z "$ac_objext" && ac_objext=o
7377 # Determine commands to create old-style static archives.
7378 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7379 old_postinstall_cmds='chmod 644 $oldlib'
7380 old_postuninstall_cmds=
7382 if test -n "$RANLIB"; then
7385 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7388 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7391 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7394 for cc_temp in $compiler""; do
7396 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7397 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7402 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7405 # Only perform the check for file, if the check method requires it
7406 case $deplibs_check_method in
7408 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7409 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7410 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7411 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7419 lt_save_MAGIC_CMD="$MAGIC_CMD"
7420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7421 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7422 for ac_dir in $ac_dummy; do
7424 test -z "$ac_dir" && ac_dir=.
7425 if test -f $ac_dir/${ac_tool_prefix}file; then
7426 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7427 if test -n "$file_magic_test_file"; then
7428 case $deplibs_check_method in
7430 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7432 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7433 $EGREP "$file_magic_regex" > /dev/null; then
7438 *** Warning: the command libtool uses to detect shared libraries,
7439 *** $file_magic_cmd, produces output that libtool cannot recognize.
7440 *** The result is that libtool may fail to recognize shared libraries
7441 *** as such. This will affect the creation of libtool libraries that
7442 *** depend on shared libraries, but programs linked with such libtool
7443 *** libraries will work regardless of this problem. Nevertheless, you
7444 *** may want to report the problem to your system manager and/or to
7445 *** bug-libtool@gnu.org
7455 MAGIC_CMD="$lt_save_MAGIC_CMD"
7460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7461 if test -n "$MAGIC_CMD"; then
7462 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7463 echo "${ECHO_T}$MAGIC_CMD" >&6
7465 echo "$as_me:$LINENO: result: no" >&5
7466 echo "${ECHO_T}no" >&6
7469 if test -z "$lt_cv_path_MAGIC_CMD"; then
7470 if test -n "$ac_tool_prefix"; then
7471 echo "$as_me:$LINENO: checking for file" >&5
7472 echo $ECHO_N "checking for file... $ECHO_C" >&6
7473 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7481 lt_save_MAGIC_CMD="$MAGIC_CMD"
7482 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7483 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7484 for ac_dir in $ac_dummy; do
7486 test -z "$ac_dir" && ac_dir=.
7487 if test -f $ac_dir/file; then
7488 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7489 if test -n "$file_magic_test_file"; then
7490 case $deplibs_check_method in
7492 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7494 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7495 $EGREP "$file_magic_regex" > /dev/null; then
7500 *** Warning: the command libtool uses to detect shared libraries,
7501 *** $file_magic_cmd, produces output that libtool cannot recognize.
7502 *** The result is that libtool may fail to recognize shared libraries
7503 *** as such. This will affect the creation of libtool libraries that
7504 *** depend on shared libraries, but programs linked with such libtool
7505 *** libraries will work regardless of this problem. Nevertheless, you
7506 *** may want to report the problem to your system manager and/or to
7507 *** bug-libtool@gnu.org
7517 MAGIC_CMD="$lt_save_MAGIC_CMD"
7522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7523 if test -n "$MAGIC_CMD"; then
7524 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7525 echo "${ECHO_T}$MAGIC_CMD" >&6
7527 echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6
7541 enable_win32_dll=yes
7543 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7544 if test "${enable_libtool_lock+set}" = set; then
7545 enableval="$enable_libtool_lock"
7548 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7551 # Check whether --with-pic or --without-pic was given.
7552 if test "${with_pic+set}" = set; then
7558 test -z "$pic_mode" && pic_mode=default
7560 # Use C for the default configuration in the libtool script
7564 ac_cpp='$CPP $CPPFLAGS'
7565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7570 # Source file extension for C test sources.
7573 # Object file extension for compiled C test sources.
7577 # Code to be used in simple compile tests
7578 lt_simple_compile_test_code="int some_variable = 0;\n"
7580 # Code to be used in simple link tests
7581 lt_simple_link_test_code='int main(){return(0);}\n'
7584 # If no C compiler was specified, use CC.
7587 # Allow CC to be a program name with arguments.
7591 # save warnings/boilerplate of simple test code
7592 ac_outfile=conftest.$ac_objext
7593 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7594 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7595 _lt_compiler_boilerplate=`cat conftest.err`
7598 ac_outfile=conftest.$ac_objext
7599 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7600 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7601 _lt_linker_boilerplate=`cat conftest.err`
7606 # Check for any special shared library compilation flags.
7609 if test "$GCC" = no; then
7612 lt_prog_cc_shlib='-belf'
7616 if test -n "$lt_prog_cc_shlib"; then
7617 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7618 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7619 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7621 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7622 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7623 lt_cv_prog_cc_can_build_shared=no
7629 # Check to make sure the static flag actually works.
7631 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7632 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7633 if test "${lt_prog_compiler_static_works+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 lt_prog_compiler_static_works=no
7637 save_LDFLAGS="$LDFLAGS"
7638 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7639 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7640 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7641 # The compiler can only warn and ignore the option if not recognized
7642 # So say no if there are warnings
7643 if test -s conftest.err; then
7644 # Append any errors to the config.log.
7645 cat conftest.err 1>&5
7646 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7647 $SED '/^$/d' conftest.err >conftest.er2
7648 if diff conftest.exp conftest.er2 >/dev/null; then
7649 lt_prog_compiler_static_works=yes
7652 lt_prog_compiler_static_works=yes
7656 LDFLAGS="$save_LDFLAGS"
7659 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7660 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7662 if test x"$lt_prog_compiler_static_works" = xyes; then
7665 lt_prog_compiler_static=
7671 lt_prog_compiler_no_builtin_flag=
7673 if test "$GCC" = yes; then
7674 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7677 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7678 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7679 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 lt_cv_prog_compiler_rtti_exceptions=no
7683 ac_outfile=conftest.$ac_objext
7684 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7685 lt_compiler_flag="-fno-rtti -fno-exceptions"
7686 # Insert the option either (1) after the last *FLAGS variable, or
7687 # (2) before a word containing "conftest.", or (3) at the end.
7688 # Note that $ac_compile itself does not contain backslashes and begins
7689 # with a dollar sign (not a hyphen), so the echo should work correctly.
7690 # The option is referenced via a variable to avoid confusing sed.
7691 lt_compile=`echo "$ac_compile" | $SED \
7692 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7694 -e 's:$: $lt_compiler_flag:'`
7695 (eval echo "\"\$as_me:7695: $lt_compile\"" >&5)
7696 (eval "$lt_compile" 2>conftest.err)
7698 cat conftest.err >&5
7699 echo "$as_me:7699: \$? = $ac_status" >&5
7700 if (exit $ac_status) && test -s "$ac_outfile"; then
7701 # The compiler can only warn and ignore the option if not recognized
7702 # So say no if there are warnings other than the usual output.
7703 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7704 $SED '/^$/d' conftest.err >conftest.er2
7705 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7706 lt_cv_prog_compiler_rtti_exceptions=yes
7712 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7713 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7715 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7716 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7723 lt_prog_compiler_wl=
7724 lt_prog_compiler_pic=
7725 lt_prog_compiler_static=
7727 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7728 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7730 if test "$GCC" = yes; then
7731 lt_prog_compiler_wl='-Wl,'
7732 lt_prog_compiler_static='-static'
7736 # All AIX code is PIC.
7737 if test "$host_cpu" = ia64; then
7738 # AIX 5 now supports IA64 processor
7739 lt_prog_compiler_static='-Bstatic'
7744 # FIXME: we need at least 68020 code to build shared libraries, but
7745 # adding the `-m68020' flag to GCC prevents building anything better,
7747 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7750 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7751 # PIC is the default for these OSes.
7754 mingw* | pw32* | os2*)
7755 # This hack is so that the source file can tell whether it is being
7756 # built for inclusion in a dll (and should export symbols for example).
7757 lt_prog_compiler_pic='-DDLL_EXPORT'
7760 darwin* | rhapsody*)
7761 # PIC is the default on this platform
7762 # Common symbols not allowed in MH_DYLIB files
7763 lt_prog_compiler_pic='-fno-common'
7767 # Just because we use GCC doesn't mean we suddenly get shared libraries
7768 # on systems that don't support them.
7769 lt_prog_compiler_can_build_shared=no
7774 if test -d /usr/nec; then
7775 lt_prog_compiler_pic=-Kconform_pic
7780 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7787 lt_prog_compiler_pic='-fPIC'
7793 lt_prog_compiler_pic='-fPIC'
7797 # PORTME Check for flag to pass linker flags through the system compiler.
7800 lt_prog_compiler_wl='-Wl,'
7801 if test "$host_cpu" = ia64; then
7802 # AIX 5 now supports IA64 processor
7803 lt_prog_compiler_static='-Bstatic'
7805 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7809 # PIC is the default on this platform
7810 # Common symbols not allowed in MH_DYLIB files
7811 case $cc_basename in
7813 lt_prog_compiler_pic='-qnocommon'
7814 lt_prog_compiler_wl='-Wl,'
7819 mingw* | pw32* | os2*)
7820 # This hack is so that the source file can tell whether it is being
7821 # built for inclusion in a dll (and should export symbols for example).
7822 lt_prog_compiler_pic='-DDLL_EXPORT'
7825 hpux9* | hpux10* | hpux11*)
7826 lt_prog_compiler_wl='-Wl,'
7827 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7834 lt_prog_compiler_pic='+Z'
7837 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7838 lt_prog_compiler_static='${wl}-a ${wl}archive'
7841 irix5* | irix6* | nonstopux*)
7842 lt_prog_compiler_wl='-Wl,'
7843 # PIC (with -KPIC) is the default.
7844 lt_prog_compiler_static='-non_shared'
7848 lt_prog_compiler_pic='-KPIC'
7849 lt_prog_compiler_static='-Bstatic'
7853 case $cc_basename in
7855 lt_prog_compiler_wl='-Wl,'
7856 lt_prog_compiler_pic='-KPIC'
7857 lt_prog_compiler_static='-static'
7859 pgcc* | pgf77* | pgf90*)
7860 # Portland Group compilers (*not* the Pentium gcc compiler,
7861 # which looks to be a dead project)
7862 lt_prog_compiler_wl='-Wl,'
7863 lt_prog_compiler_pic='-fpic'
7864 lt_prog_compiler_static='-static'
7867 lt_prog_compiler_wl='-Wl,'
7868 # All Alpha code is PIC.
7869 lt_prog_compiler_static='-non_shared'
7874 osf3* | osf4* | osf5*)
7875 lt_prog_compiler_wl='-Wl,'
7876 # All OSF/1 code is PIC.
7877 lt_prog_compiler_static='-non_shared'
7881 lt_prog_compiler_pic='-Kpic'
7882 lt_prog_compiler_static='-dn'
7886 lt_prog_compiler_pic='-KPIC'
7887 lt_prog_compiler_static='-Bstatic'
7888 case $cc_basename in
7890 lt_prog_compiler_wl='-Qoption ld ';;
7892 lt_prog_compiler_wl='-Wl,';;
7897 lt_prog_compiler_wl='-Qoption ld '
7898 lt_prog_compiler_pic='-PIC'
7899 lt_prog_compiler_static='-Bstatic'
7902 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7903 lt_prog_compiler_wl='-Wl,'
7904 lt_prog_compiler_pic='-KPIC'
7905 lt_prog_compiler_static='-Bstatic'
7909 if test -d /usr/nec ;then
7910 lt_prog_compiler_pic='-Kconform_pic'
7911 lt_prog_compiler_static='-Bstatic'
7916 lt_prog_compiler_wl='-Wl,'
7917 lt_prog_compiler_can_build_shared=no
7921 lt_prog_compiler_pic='-pic'
7922 lt_prog_compiler_static='-Bstatic'
7926 lt_prog_compiler_can_build_shared=no
7931 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7932 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7935 # Check to make sure the PIC flag actually works.
7937 if test -n "$lt_prog_compiler_pic"; then
7939 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7940 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7941 if test "${lt_prog_compiler_pic_works+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 lt_prog_compiler_pic_works=no
7945 ac_outfile=conftest.$ac_objext
7946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7947 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7948 # Insert the option either (1) after the last *FLAGS variable, or
7949 # (2) before a word containing "conftest.", or (3) at the end.
7950 # Note that $ac_compile itself does not contain backslashes and begins
7951 # with a dollar sign (not a hyphen), so the echo should work correctly.
7952 # The option is referenced via a variable to avoid confusing sed.
7953 lt_compile=`echo "$ac_compile" | $SED \
7954 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7956 -e 's:$: $lt_compiler_flag:'`
7957 (eval echo "\"\$as_me:7957: $lt_compile\"" >&5)
7958 (eval "$lt_compile" 2>conftest.err)
7960 cat conftest.err >&5
7961 echo "$as_me:7961: \$? = $ac_status" >&5
7962 if (exit $ac_status) && test -s "$ac_outfile"; then
7963 # The compiler can only warn and ignore the option if not recognized
7964 # So say no if there are warnings other than the usual output.
7965 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7966 $SED '/^$/d' conftest.err >conftest.er2
7967 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7968 lt_prog_compiler_pic_works=yes
7974 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7975 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7977 if test x"$lt_prog_compiler_pic_works" = xyes; then
7978 case $lt_prog_compiler_pic in
7980 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7983 lt_prog_compiler_pic=
7984 lt_prog_compiler_can_build_shared=no
7989 # For platforms which do not support PIC, -DPIC is meaningless:
7991 lt_prog_compiler_pic=
7994 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7998 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7999 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8000 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 lt_cv_prog_compiler_c_o=no
8004 $rm -r conftest 2>/dev/null
8008 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8010 lt_compiler_flag="-o out/conftest2.$ac_objext"
8011 # Insert the option either (1) after the last *FLAGS variable, or
8012 # (2) before a word containing "conftest.", or (3) at the end.
8013 # Note that $ac_compile itself does not contain backslashes and begins
8014 # with a dollar sign (not a hyphen), so the echo should work correctly.
8015 lt_compile=`echo "$ac_compile" | $SED \
8016 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8018 -e 's:$: $lt_compiler_flag:'`
8019 (eval echo "\"\$as_me:8019: $lt_compile\"" >&5)
8020 (eval "$lt_compile" 2>out/conftest.err)
8022 cat out/conftest.err >&5
8023 echo "$as_me:8023: \$? = $ac_status" >&5
8024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8026 # The compiler can only warn and ignore the option if not recognized
8027 # So say no if there are warnings
8028 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8029 $SED '/^$/d' out/conftest.err >out/conftest.er2
8030 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8031 lt_cv_prog_compiler_c_o=yes
8036 # SGI C++ compiler will create directory out/ii_files/ for
8037 # template instantiation
8038 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8039 $rm out/* && rmdir out
8045 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8046 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8049 hard_links="nottested"
8050 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8051 # do not overwrite the value of need_locks provided by the user
8052 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8053 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8056 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8058 ln conftest.a conftest.b 2>&5 || hard_links=no
8059 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8060 echo "$as_me:$LINENO: result: $hard_links" >&5
8061 echo "${ECHO_T}$hard_links" >&6
8062 if test "$hard_links" = no; then
8063 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8064 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8071 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8072 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8075 allow_undefined_flag=
8076 enable_shared_with_static_runtimes=no
8078 archive_expsym_cmds=
8079 old_archive_From_new_cmds=
8080 old_archive_from_expsyms_cmds=
8081 export_dynamic_flag_spec=
8082 whole_archive_flag_spec=
8083 thread_safe_flag_spec=
8084 hardcode_libdir_flag_spec=
8085 hardcode_libdir_flag_spec_ld=
8086 hardcode_libdir_separator=
8089 hardcode_shlibpath_var=unsupported
8090 link_all_deplibs=unknown
8091 hardcode_automatic=no
8094 always_export_symbols=no
8095 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8096 # include_expsyms should be a list of space-separated symbols to be *always*
8097 # included in the symbol list
8099 # exclude_expsyms can be an extended regexp of symbols to exclude
8100 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8101 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8102 # as well as any symbol that contains `d'.
8103 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8104 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8105 # platforms (ab)use it in PIC code, but their linkers get confused if
8106 # the symbol is explicitly referenced. Since portable code cannot
8107 # rely on this symbol name, it's probably fine to never include it in
8108 # preloaded symbol tables.
8109 extract_expsyms_cmds=
8110 # Just being paranoid about ensuring that cc_basename is set.
8111 for cc_temp in $compiler""; do
8113 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8114 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8119 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8122 cygwin* | mingw* | pw32*)
8123 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8124 # When not using gcc, we currently assume that we are using
8125 # Microsoft Visual C++.
8126 if test "$GCC" != yes; then
8136 if test "$with_gnu_ld" = yes; then
8137 # If archive_cmds runs LD, not CC, wlarc should be empty
8140 # Set some defaults for GNU ld with shared library support. These
8141 # are reset later if shared libraries are not supported. Putting them
8142 # here allows them to be overridden if necessary.
8143 runpath_var=LD_RUN_PATH
8144 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8145 export_dynamic_flag_spec='${wl}--export-dynamic'
8146 # ancient GNU ld didn't support --whole-archive et. al.
8147 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8148 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8150 whole_archive_flag_spec=
8152 supports_anon_versioning=no
8153 case `$LD -v 2>/dev/null` in
8154 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8155 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8156 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8157 *\ 2.11.*) ;; # other 2.11 versions
8158 *) supports_anon_versioning=yes ;;
8161 # See if GNU ld supports shared libraries.
8163 aix3* | aix4* | aix5*)
8164 # On AIX/PPC, the GNU linker is very broken
8165 if test "$host_cpu" != ia64; then
8169 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8170 *** to be unable to reliably create shared libraries on AIX.
8171 *** Therefore, libtool is disabling shared libraries support. If you
8172 *** really care for shared libraries, you may want to modify your PATH
8173 *** so that a non-GNU linker is found, and then restart.
8180 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)'
8181 hardcode_libdir_flag_spec='-L$libdir'
8182 hardcode_minus_L=yes
8184 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8185 # that the semantics of dynamic libraries on AmigaOS, at least up
8186 # to version 4, is to share data among multiple programs linked
8187 # with the same dynamic library. Since this doesn't match the
8188 # behavior of shared libraries on other platforms, we can't use
8194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8195 allow_undefined_flag=unsupported
8196 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8197 # support --undefined. This deserves some investigation. FIXME
8198 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8204 cygwin* | mingw* | pw32*)
8205 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8206 # as there is no search path for DLLs.
8207 hardcode_libdir_flag_spec='-L$libdir'
8208 allow_undefined_flag=unsupported
8209 always_export_symbols=no
8210 enable_shared_with_static_runtimes=yes
8211 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8213 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8215 # If the export-symbols file already is a .def file (1st line
8216 # is EXPORTS), use it as is; otherwise, prepend...
8217 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8218 cp $export_symbols $output_objdir/$soname.def;
8220 echo EXPORTS > $output_objdir/$soname.def;
8221 cat $export_symbols >> $output_objdir/$soname.def;
8223 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8232 case $cc_basename,$host_cpu in
8233 pgcc*) # Portland Group C compiler
8234 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'
8235 tmp_addflag=' $pic_flag'
8237 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
8238 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'
8239 tmp_addflag=' $pic_flag -Mnomain' ;;
8240 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8241 tmp_addflag=' -i_dynamic' ;;
8242 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8243 tmp_addflag=' -i_dynamic -nofor_main' ;;
8244 ifc* | ifort*) # Intel Fortran compiler
8245 tmp_addflag=' -nofor_main' ;;
8247 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249 if test $supports_anon_versioning = yes; then
8250 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8252 $echo "local: *; };" >> $output_objdir/$libname.ver~
8253 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8262 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8271 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8275 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8276 *** create shared libraries on Solaris systems. Therefore, libtool
8277 *** is disabling shared libraries support. We urge you to upgrade GNU
8278 *** binutils to release 2.9.1 or newer. Another option is to modify
8279 *** your PATH or compiler configuration so that the native linker is
8280 *** used, and then restart.
8283 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8292 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8295 hardcode_shlibpath_var=no
8299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8308 if test "$ld_shlibs" = no; then
8310 hardcode_libdir_flag_spec=
8311 export_dynamic_flag_spec=
8312 whole_archive_flag_spec=
8315 # PORTME fill in a description of your system's linker (not GNU ld)
8318 allow_undefined_flag=unsupported
8319 always_export_symbols=yes
8320 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'
8321 # Note: this linker hardcodes the directories in LIBPATH if there
8322 # are no directories specified by -L.
8323 hardcode_minus_L=yes
8324 if test "$GCC" = yes && test -z "$link_static_flag"; then
8325 # Neither direct hardcoding nor static linking is supported with a
8327 hardcode_direct=unsupported
8332 if test "$host_cpu" = ia64; then
8333 # On IA64, the linker does run time linking by default, so we don't
8334 # have to do anything special.
8335 aix_use_runtimelinking=no
8336 exp_sym_flag='-Bexport'
8339 # If we're using GNU nm, then we don't want the "-C" option.
8340 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8341 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8342 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'
8344 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'
8346 aix_use_runtimelinking=no
8348 # Test if we are trying to use run time linking or normal
8349 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8350 # need to do runtime linking.
8351 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8352 for ld_flag in $LDFLAGS; do
8353 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8354 aix_use_runtimelinking=yes
8360 exp_sym_flag='-bexport'
8361 no_entry_flag='-bnoentry'
8364 # When large executables or shared objects are built, AIX ld can
8365 # have problems creating the table of contents. If linking a library
8366 # or program results in "error TOC overflow" add -mminimal-toc to
8367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8372 hardcode_libdir_separator=':'
8373 link_all_deplibs=yes
8375 if test "$GCC" = yes; then
8376 case $host_os in aix4.[012]|aix4.[012].*)
8377 # We only want to do this on AIX 4.2 and lower, the check
8378 # below for broken collect2 doesn't work under 4.3+
8379 collect2name=`${CC} -print-prog-name=collect2`
8380 if test -f "$collect2name" && \
8381 strings "$collect2name" | grep resolve_lib_name >/dev/null
8383 # We have reworked collect2
8386 # We have old collect2
8387 hardcode_direct=unsupported
8388 # It fails to find uninstalled libraries when the uninstalled
8389 # path is not listed in the libpath. Setting hardcode_minus_L
8390 # to unsupported forces relinking
8391 hardcode_minus_L=yes
8392 hardcode_libdir_flag_spec='-L$libdir'
8393 hardcode_libdir_separator=
8396 shared_flag='-shared'
8397 if test "$aix_use_runtimelinking" = yes; then
8398 shared_flag="$shared_flag "'${wl}-G'
8402 if test "$host_cpu" = ia64; then
8403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8404 # chokes on -Wl,-G. The following line is correct:
8407 if test "$aix_use_runtimelinking" = yes; then
8408 shared_flag='${wl}-G'
8410 shared_flag='${wl}-bM:SRE'
8415 # It seems that -bexpall does not export symbols beginning with
8416 # underscore (_), so it is better to generate a list of symbols to export.
8417 always_export_symbols=yes
8418 if test "$aix_use_runtimelinking" = yes; then
8419 # Warning - without using the other runtime loading flags (-brtl),
8420 # -berok will link without error, but may produce a broken library.
8421 allow_undefined_flag='-berok'
8422 # Determine the default libpath from the value encoded in an empty executable.
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440 (eval $ac_link) 2>conftest.er1
8442 grep -v '^ *+' conftest.er1 >conftest.err
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag"
8448 || test ! -s conftest.err'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; } &&
8454 { ac_try='test -s conftest$ac_exeext'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8463 # Check for a 64-bit object if we didn't find anything.
8464 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; }
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8471 rm -f conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
8473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8475 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8476 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"
8478 if test "$host_cpu" = ia64; then
8479 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8480 allow_undefined_flag="-z nodefs"
8481 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"
8483 # Determine the default libpath from the value encoded in an empty executable.
8484 cat >conftest.$ac_ext <<_ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8499 rm -f conftest.$ac_objext conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>conftest.er1
8503 grep -v '^ *+' conftest.er1 >conftest.err
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } &&
8508 { ac_try='test -z "$ac_c_werror_flag"
8509 || test ! -s conftest.err'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; } &&
8515 { ac_try='test -s conftest$ac_exeext'
8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
8522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8524 # Check for a 64-bit object if we didn't find anything.
8525 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; }
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8532 rm -f conftest.err conftest.$ac_objext \
8533 conftest$ac_exeext conftest.$ac_ext
8534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8536 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8537 # Warning - without using the other run time loading flags,
8538 # -berok will link without error, but may produce a broken library.
8539 no_undefined_flag=' ${wl}-bernotok'
8540 allow_undefined_flag=' ${wl}-berok'
8541 # -bexpall does not export symbols beginning with underscore (_)
8542 always_export_symbols=yes
8543 # Exported symbols can be pulled into shared objects from archives
8544 whole_archive_flag_spec=' '
8545 archive_cmds_need_lc=yes
8546 # This is similar to how AIX traditionally builds it's shared libraries.
8547 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'
8553 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)'
8554 hardcode_libdir_flag_spec='-L$libdir'
8555 hardcode_minus_L=yes
8556 # see comment about different semantics on the GNU ld section
8561 export_dynamic_flag_spec=-rdynamic
8564 cygwin* | mingw* | pw32*)
8565 # When not using gcc, we currently assume that we are using
8566 # Microsoft Visual C++.
8567 # hardcode_libdir_flag_spec is actually meaningless, as there is
8568 # no search path for DLLs.
8569 hardcode_libdir_flag_spec=' '
8570 allow_undefined_flag=unsupported
8571 # Tell ltmain to make .lib files, not .a files.
8573 # Tell ltmain to make .dll files, not .so files.
8575 # FIXME: Setting linknames here is a bad hack.
8576 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8577 # The linker will automatically build a .lib file if we build a DLL.
8578 old_archive_From_new_cmds='true'
8579 # FIXME: Should let the user specify the lib program.
8580 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8581 fix_srcfile_path='`cygpath -w "$srcfile"`'
8582 enable_shared_with_static_runtimes=yes
8585 darwin* | rhapsody*)
8587 rhapsody* | darwin1.[012])
8588 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8591 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8592 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8594 case ${MACOSX_DEPLOYMENT_TARGET} in
8596 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8599 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8605 archive_cmds_need_lc=no
8607 hardcode_automatic=yes
8608 hardcode_shlibpath_var=unsupported
8609 whole_archive_flag_spec=''
8610 link_all_deplibs=yes
8611 if test "$GCC" = yes ; then
8612 output_verbose_link_cmd='echo'
8613 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8614 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8615 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8616 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}'
8617 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}'
8619 case $cc_basename in
8621 output_verbose_link_cmd='echo'
8622 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8623 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8624 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8625 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}'
8626 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}'
8636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8637 hardcode_libdir_flag_spec='-L$libdir'
8638 hardcode_shlibpath_var=no
8645 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8646 # support. Future versions do this automatically, but an explicit c++rt0.o
8647 # does not break anything, and helps significantly (at the cost of a little
8650 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8651 hardcode_libdir_flag_spec='-R$libdir'
8653 hardcode_shlibpath_var=no
8656 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8660 hardcode_minus_L=yes
8661 hardcode_shlibpath_var=no
8664 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8665 freebsd* | kfreebsd*-gnu | dragonfly*)
8666 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8667 hardcode_libdir_flag_spec='-R$libdir'
8669 hardcode_shlibpath_var=no
8673 if test "$GCC" = yes; then
8674 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'
8676 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'
8678 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8679 hardcode_libdir_separator=:
8682 # hardcode_minus_L: Not really in the search PATH,
8683 # but as the default location of the library.
8684 hardcode_minus_L=yes
8685 export_dynamic_flag_spec='${wl}-E'
8689 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8692 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8695 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8701 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8704 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8708 if test "$with_gnu_ld" = no; then
8711 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8712 hardcode_libdir_flag_spec_ld='+b $libdir'
8713 hardcode_libdir_separator=:
8715 hardcode_shlibpath_var=no
8718 hardcode_libdir_flag_spec='-L$libdir'
8720 hardcode_shlibpath_var=no
8722 # hardcode_minus_L: Not really in the search PATH,
8723 # but as the default location of the library.
8724 hardcode_minus_L=yes
8727 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8728 hardcode_libdir_separator=:
8730 export_dynamic_flag_spec='${wl}-E'
8732 # hardcode_minus_L: Not really in the search PATH,
8733 # but as the default location of the library.
8734 hardcode_minus_L=yes
8740 irix5* | irix6* | nonstopux*)
8741 if test "$GCC" = yes; then
8742 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'
8744 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'
8745 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8748 hardcode_libdir_separator=:
8749 link_all_deplibs=yes
8753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8756 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8758 hardcode_libdir_flag_spec='-R$libdir'
8760 hardcode_shlibpath_var=no
8764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8767 hardcode_libdir_separator=:
8768 hardcode_shlibpath_var=no
8773 hardcode_shlibpath_var=no
8774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8776 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8778 export_dynamic_flag_spec='${wl}-E'
8781 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8783 hardcode_libdir_flag_spec='-R$libdir'
8786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8787 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8794 hardcode_libdir_flag_spec='-L$libdir'
8795 hardcode_minus_L=yes
8796 allow_undefined_flag=unsupported
8797 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'
8798 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8802 if test "$GCC" = yes; then
8803 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8804 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'
8806 allow_undefined_flag=' -expect_unresolved \*'
8807 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'
8809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8810 hardcode_libdir_separator=:
8813 osf4* | osf5*) # as osf3* with the addition of -msym flag
8814 if test "$GCC" = yes; then
8815 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8816 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'
8817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8819 allow_undefined_flag=' -expect_unresolved \*'
8820 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'
8821 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8822 $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'
8824 # Both c and cxx compiler support -rpath directly
8825 hardcode_libdir_flag_spec='-rpath $libdir'
8827 hardcode_libdir_separator=:
8831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832 hardcode_shlibpath_var=no
8833 export_dynamic_flag_spec='${wl}-Bexport'
8834 runpath_var=LD_RUN_PATH
8835 hardcode_runpath_var=yes
8839 no_undefined_flag=' -z text'
8840 if test "$GCC" = yes; then
8842 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8843 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8844 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8847 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8849 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8851 hardcode_libdir_flag_spec='-R$libdir'
8852 hardcode_shlibpath_var=no
8854 solaris2.[0-5] | solaris2.[0-5].*) ;;
8856 # The compiler driver will combine linker options so we
8857 # cannot just pass the convience library names through
8858 # without $wl, iff we do not link with $LD.
8859 # Luckily, gcc supports the same syntax we need for Sun Studio.
8860 # Supported since Solaris 2.6 (maybe 2.5.1?)
8863 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8865 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' ;;
8868 link_all_deplibs=yes
8872 if test "x$host_vendor" = xsequent; then
8873 # Use $CC to link under sequent, because it throws in some extra .o
8874 # files that make .init and .fini sections work.
8875 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8877 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8879 hardcode_libdir_flag_spec='-L$libdir'
8881 hardcode_minus_L=yes
8882 hardcode_shlibpath_var=no
8886 case $host_vendor in
8888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889 hardcode_direct=yes # is this really true???
8892 ## LD is ld it makes a PLAMLIB
8893 ## CC just makes a GrossModule.
8894 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8895 reload_cmds='$CC -r -o $output$reload_objs'
8899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8900 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8903 runpath_var='LD_RUN_PATH'
8904 hardcode_shlibpath_var=no
8908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8909 hardcode_shlibpath_var=no
8910 export_dynamic_flag_spec='-Bexport'
8914 if test -d /usr/nec; then
8915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916 hardcode_shlibpath_var=no
8917 runpath_var=LD_RUN_PATH
8918 hardcode_runpath_var=yes
8924 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8927 hardcode_shlibpath_var=no
8928 hardcode_runpath_var=yes
8929 runpath_var=LD_RUN_PATH
8932 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8933 no_undefined_flag='${wl}-z ${wl}text'
8934 if test "$GCC" = yes; then
8935 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8937 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8939 runpath_var='LD_RUN_PATH'
8940 hardcode_shlibpath_var=no
8944 no_undefined_flag=' -z text'
8945 # $CC -shared without GNU ld will not create a library from C++
8946 # object files and a static libstdc++, better avoid it by now
8947 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8949 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8950 hardcode_libdir_flag_spec=
8951 hardcode_shlibpath_var=no
8952 runpath_var='LD_RUN_PATH'
8956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8957 hardcode_libdir_flag_spec='-L$libdir'
8958 hardcode_shlibpath_var=no
8967 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8968 echo "${ECHO_T}$ld_shlibs" >&6
8969 test "$ld_shlibs" = no && can_build_shared=no
8971 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8972 if test "$GCC" = yes; then
8973 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8977 # Do we need to explicitly link libc?
8979 case "x$archive_cmds_need_lc" in
8981 # Assume -lc should be added
8982 archive_cmds_need_lc=yes
8984 if test "$enable_shared" = yes && test "$GCC" = yes; then
8985 case $archive_cmds in
8987 # FIXME: we may have to deal with multi-command sequences.
8990 # Test whether the compiler implicitly links with -lc since on some
8991 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8992 # to ld, don't add -lc before -lgcc.
8993 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8994 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8996 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } 2>conftest.err; then
9005 libobjs=conftest.$ac_objext
9007 wl=$lt_prog_compiler_wl
9013 lt_save_allow_undefined_flag=$allow_undefined_flag
9014 allow_undefined_flag=
9015 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9016 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }
9021 archive_cmds_need_lc=no
9023 archive_cmds_need_lc=yes
9025 allow_undefined_flag=$lt_save_allow_undefined_flag
9027 cat conftest.err 1>&5
9030 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9031 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9038 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9039 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9041 libname_spec='lib$name'
9049 shlibpath_overrides_runpath=unknown
9051 dynamic_linker="$host_os ld.so"
9052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9053 if test "$GCC" = yes; then
9054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9055 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9056 # if the path contains ";" then we assume it to be the separator
9057 # otherwise default to the standard path separator (i.e. ":") - it is
9058 # assumed that no part of a normal pathname contains ";" but that should
9059 # okay in the real world where ";" in dirpaths is itself problematic.
9060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9065 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9067 need_lib_prefix=unknown
9068 hardcode_into_libs=no
9070 # when you set need_version to no, make sure it does not cause -set_version
9071 # flags to be left without arguments
9072 need_version=unknown
9077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9078 shlibpath_var=LIBPATH
9080 # AIX 3 has no versioning support, so we append a major version to the name.
9081 soname_spec='${libname}${release}${shared_ext}$major'
9088 hardcode_into_libs=yes
9089 if test "$host_cpu" = ia64; then
9090 # AIX 5 supports IA64
9091 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9092 shlibpath_var=LD_LIBRARY_PATH
9094 # With GCC up to 2.95.x, collect2 would create an import file
9095 # for dependence libraries. The import file would start with
9096 # the line `#! .'. This would cause the generated library to
9097 # depend on `.', always an invalid library. This was fixed in
9098 # development snapshots of GCC prior to 3.0.
9100 aix4 | aix4.[01] | aix4.[01].*)
9101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9103 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9110 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9111 # soname into executable. Probably we can add versioning support to
9112 # collect2, so additional links can be useful in future.
9113 if test "$aix_use_runtimelinking" = yes; then
9114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9115 # instead of lib<name>.a to let people know that these are not
9116 # typical AIX shared libraries.
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119 # We preserve .a as extension for shared libraries through AIX4.2
9120 # and later when we are not doing run time linking.
9121 library_names_spec='${libname}${release}.a $libname.a'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9124 shlibpath_var=LIBPATH
9129 library_names_spec='$libname.ixlibrary $libname.a'
9130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9131 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'
9135 library_names_spec='${libname}${shared_ext}'
9136 dynamic_linker="$host_os ld.so"
9137 shlibpath_var=LIBRARY_PATH
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9149 # the default ld.so.conf also contains /usr/contrib/lib and
9150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9151 # libtool to hard-code these into programs
9154 cygwin* | mingw* | pw32*)
9155 version_type=windows
9160 case $GCC,$host_os in
9161 yes,cygwin* | yes,mingw* | yes,pw32*)
9162 library_names_spec='$libname.dll.a'
9163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9164 postinstall_cmds='base_file=`basename \${file}`~
9165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9166 dldir=$destdir/`dirname \$dlpath`~
9167 test -d \$dldir || mkdir -p \$dldir~
9168 $install_prog $dir/$dlname \$dldir/$dlname'
9169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9170 dlpath=$dir/\$dldll~
9172 shlibpath_overrides_runpath=yes
9176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9178 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9181 # MinGW DLLs use traditional 'lib' prefix
9182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9183 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9184 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9185 # It is most probably a Windows format PATH printed by
9186 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9187 # path with ; separators, and with drive letters. We can handle the
9188 # drive letters (cygwin fileutils understands them), so leave them,
9189 # especially as we might pass files found there to a mingw objdump,
9190 # which wouldn't understand a cygwinified path. Ahh.
9191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9197 # pw32 DLLs use 'pw' prefix rather than 'lib'
9198 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9204 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9207 dynamic_linker='Win32 ld.exe'
9208 # FIXME: first we should search . and the directory the executable is in
9212 darwin* | rhapsody*)
9213 dynamic_linker="$host_os dyld"
9217 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9218 soname_spec='${libname}${release}${major}$shared_ext'
9219 shlibpath_overrides_runpath=yes
9220 shlibpath_var=DYLD_LIBRARY_PATH
9221 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9222 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9223 if test "$GCC" = yes; then
9224 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"`
9226 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9236 soname_spec='${libname}${release}${shared_ext}$major'
9237 shlibpath_var=LD_LIBRARY_PATH
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9249 soname_spec='${libname}${release}${shared_ext}$major'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 shlibpath_overrides_runpath=no
9252 hardcode_into_libs=yes
9253 dynamic_linker='GNU ld.so'
9256 freebsd* | dragonfly*)
9257 # DragonFly does not have aout. When/if they implement a new
9258 # versioning mechanism, adjust this.
9259 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9260 version_type=freebsd-$objformat
9261 case $version_type in
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9272 shlibpath_var=LD_LIBRARY_PATH
9275 shlibpath_overrides_runpath=yes
9277 freebsd3.[01]* | freebsdelf3.[01]*)
9278 shlibpath_overrides_runpath=yes
9279 hardcode_into_libs=yes
9282 shlibpath_overrides_runpath=no
9283 hardcode_into_libs=yes
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 hardcode_into_libs=yes
9298 hpux9* | hpux10* | hpux11*)
9299 # Give a soname corresponding to the major version so that dld.sl refuses to
9300 # link against other versions.
9307 hardcode_into_libs=yes
9308 dynamic_linker="$host_os dld.so"
9309 shlibpath_var=LD_LIBRARY_PATH
9310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312 soname_spec='${libname}${release}${shared_ext}$major'
9313 if test "X$HPUX_IA64_MODE" = X32; then
9314 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9316 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9322 hardcode_into_libs=yes
9323 dynamic_linker="$host_os dld.sl"
9324 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9333 dynamic_linker="$host_os dld.sl"
9334 shlibpath_var=SHLIB_PATH
9335 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337 soname_spec='${libname}${release}${shared_ext}$major'
9340 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9341 postinstall_cmds='chmod 555 $lib'
9344 irix5* | irix6* | nonstopux*)
9346 nonstopux*) version_type=nonstopux ;;
9348 if test "$lt_cv_prog_gnu_ld" = yes; then
9356 soname_spec='${libname}${release}${shared_ext}$major'
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9359 irix5* | nonstopux*)
9363 case $LD in # libtool.m4 will add one of these switches to LD
9364 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9365 libsuff= shlibsuff= libmagic=32-bit;;
9366 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9367 libsuff=32 shlibsuff=N32 libmagic=N32;;
9368 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9369 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9370 *) libsuff= shlibsuff= libmagic=never-match;;
9374 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9375 shlibpath_overrides_runpath=no
9376 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9377 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9378 hardcode_into_libs=yes
9381 # No shared lib support for Linux oldld, aout, or coff.
9382 linux*oldld* | linux*aout* | linux*coff*)
9386 # This must be Linux ELF.
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath=no
9396 # This implies no fast_install, which is unacceptable.
9397 # Some rework will be needed to allow for fast_install
9398 # before this can be enabled.
9399 hardcode_into_libs=yes
9401 # Append ld.so.conf contents to the search path
9402 if test -f /etc/ld.so.conf; then
9403 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' ' '`
9404 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9407 # We used to test for /lib/ld.so.1 and disable shared libraries on
9408 # powerpc, because MkLinux only supported shared libraries with the
9409 # GNU dynamic linker. Since this was broken with cross compilers,
9410 # most powerpc-linux boxes support dynamic linking these days and
9411 # people can always --disable-shared, the test was removed, and we
9412 # assume the GNU/Linux dynamic linker is in use.
9413 dynamic_linker='GNU/Linux ld.so'
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 shlibpath_var=LD_LIBRARY_PATH
9423 shlibpath_overrides_runpath=no
9424 hardcode_into_libs=yes
9425 dynamic_linker='GNU ld.so'
9432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9435 dynamic_linker='NetBSD (a.out) ld.so'
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9438 soname_spec='${libname}${release}${shared_ext}$major'
9439 dynamic_linker='NetBSD ld.elf_so'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 shlibpath_overrides_runpath=yes
9443 hardcode_into_libs=yes
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449 shlibpath_var=LD_LIBRARY_PATH
9450 shlibpath_overrides_runpath=yes
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 shlibpath_var=LD_LIBRARY_PATH
9460 shlibpath_overrides_runpath=yes
9466 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9468 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9469 *) need_version=no ;;
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9476 openbsd2.[89] | openbsd2.[89].*)
9477 shlibpath_overrides_runpath=no
9480 shlibpath_overrides_runpath=yes
9484 shlibpath_overrides_runpath=yes
9489 libname_spec='$name'
9492 library_names_spec='$libname${shared_ext} $libname.a'
9493 dynamic_linker='OS/2 ld.exe'
9494 shlibpath_var=LIBPATH
9497 osf3* | osf4* | osf5*)
9501 soname_spec='${libname}${release}${shared_ext}$major'
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503 shlibpath_var=LD_LIBRARY_PATH
9504 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9505 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9510 soname_spec='${libname}${release}${shared_ext}$major'
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9512 shlibpath_var=LD_LIBRARY_PATH
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 shlibpath_var=LD_LIBRARY_PATH
9522 shlibpath_overrides_runpath=yes
9523 hardcode_into_libs=yes
9524 # ldd complains unless libraries are executable
9525 postinstall_cmds='chmod +x $lib'
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9531 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9532 shlibpath_var=LD_LIBRARY_PATH
9533 shlibpath_overrides_runpath=yes
9534 if test "$with_gnu_ld" = yes; then
9540 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543 soname_spec='${libname}${release}${shared_ext}$major'
9544 shlibpath_var=LD_LIBRARY_PATH
9545 case $host_vendor in
9547 shlibpath_overrides_runpath=no
9549 export_dynamic_flag_spec='${wl}-Blargedynsym'
9550 runpath_var=LD_RUN_PATH
9558 shlibpath_overrides_runpath=no
9559 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9565 if test -d /usr/nec ;then
9567 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9568 soname_spec='$libname${shared_ext}.$major'
9569 shlibpath_var=LD_LIBRARY_PATH
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 shlibpath_var=LD_LIBRARY_PATH
9584 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9585 echo "${ECHO_T}$dynamic_linker" >&6
9586 test "$dynamic_linker" = no && can_build_shared=no
9588 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9589 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9591 if test -n "$hardcode_libdir_flag_spec" || \
9592 test -n "$runpath_var" || \
9593 test "X$hardcode_automatic" = "Xyes" ; then
9595 # We can hardcode non-existant directories.
9596 if test "$hardcode_direct" != no &&
9597 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9598 # have to relink, otherwise we might link with an installed library
9599 # when we should be linking with a yet-to-be-installed one
9600 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9601 test "$hardcode_minus_L" != no; then
9602 # Linking always hardcodes the temporary library directory.
9603 hardcode_action=relink
9605 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9606 hardcode_action=immediate
9609 # We cannot hardcode anything, or else we can only hardcode existing
9611 hardcode_action=unsupported
9613 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9614 echo "${ECHO_T}$hardcode_action" >&6
9616 if test "$hardcode_action" = relink; then
9617 # Fast installation is not supported
9618 enable_fast_install=no
9619 elif test "$shlibpath_overrides_runpath" = yes ||
9620 test "$enable_shared" = no; then
9621 # Fast installation is not necessary
9622 enable_fast_install=needless
9627 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9628 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9629 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9630 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9631 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9632 echo "$as_me:$LINENO: result: yes" >&5
9633 echo "${ECHO_T}yes" >&6
9635 # FIXME - insert some real tests, host_os isn't really good enough
9638 if test -n "$STRIP" ; then
9639 striplib="$STRIP -x"
9640 echo "$as_me:$LINENO: result: yes" >&5
9641 echo "${ECHO_T}yes" >&6
9643 echo "$as_me:$LINENO: result: no" >&5
9644 echo "${ECHO_T}no" >&6
9648 echo "$as_me:$LINENO: result: no" >&5
9649 echo "${ECHO_T}no" >&6
9654 if test "x$enable_dlopen" != xyes; then
9655 enable_dlopen=unknown
9656 enable_dlopen_self=unknown
9657 enable_dlopen_self_static=unknown
9664 lt_cv_dlopen="load_add_on"
9666 lt_cv_dlopen_self=yes
9670 lt_cv_dlopen="LoadLibrary"
9675 lt_cv_dlopen="dlopen"
9680 # if libdl is installed we need to link against it
9681 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9682 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9683 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 ac_check_lib_save_LIBS=$LIBS
9688 cat >conftest.$ac_ext <<_ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9695 /* Override any gcc2 internal prototype to avoid an error. */
9699 /* We use char because int might match the return type of a gcc2
9700 builtin and then its argument prototype would still apply. */
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712 (eval $ac_link) 2>conftest.er1
9714 grep -v '^ *+' conftest.er1 >conftest.err
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_c_werror_flag"
9720 || test ! -s conftest.err'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 ac_cv_lib_dl_dlopen=yes
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9737 ac_cv_lib_dl_dlopen=no
9739 rm -f conftest.err conftest.$ac_objext \
9740 conftest$ac_exeext conftest.$ac_ext
9741 LIBS=$ac_check_lib_save_LIBS
9743 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9744 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9745 if test $ac_cv_lib_dl_dlopen = yes; then
9746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9751 lt_cv_dlopen_self=yes
9758 echo "$as_me:$LINENO: checking for shl_load" >&5
9759 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9760 if test "${ac_cv_func_shl_load+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 cat >conftest.$ac_ext <<_ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9771 #define shl_load innocuous_shl_load
9773 /* System header to define __stub macros and hopefully few prototypes,
9774 which can conflict with char shl_load (); below.
9775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9776 <limits.h> exists even on freestanding compilers. */
9779 # include <limits.h>
9781 # include <assert.h>
9786 /* Override any gcc2 internal prototype to avoid an error. */
9791 /* We use char because int might match the return type of a gcc2
9792 builtin and then its argument prototype would still apply. */
9794 /* The GNU C library defines this for functions which it implements
9795 to always fail with ENOSYS. Some functions are actually named
9796 something starting with __ and the normal name is an alias. */
9797 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9800 char (*f) () = shl_load;
9809 return f != shl_load;
9814 rm -f conftest.$ac_objext conftest$ac_exeext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9816 (eval $ac_link) 2>conftest.er1
9818 grep -v '^ *+' conftest.er1 >conftest.err
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -z "$ac_c_werror_flag"
9824 || test ! -s conftest.err'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest$ac_exeext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_cv_func_shl_load=yes
9838 echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9841 ac_cv_func_shl_load=no
9843 rm -f conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9846 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9847 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9848 if test $ac_cv_func_shl_load = yes; then
9849 lt_cv_dlopen="shl_load"
9851 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9852 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9853 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 ac_check_lib_save_LIBS=$LIBS
9858 cat >conftest.$ac_ext <<_ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9865 /* Override any gcc2 internal prototype to avoid an error. */
9869 /* We use char because int might match the return type of a gcc2
9870 builtin and then its argument prototype would still apply. */
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882 (eval $ac_link) 2>conftest.er1
9884 grep -v '^ *+' conftest.er1 >conftest.err
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
9889 { ac_try='test -z "$ac_c_werror_flag"
9890 || test ! -s conftest.err'
9891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; } &&
9896 { ac_try='test -s conftest$ac_exeext'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_lib_dld_shl_load=yes
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_cv_lib_dld_shl_load=no
9909 rm -f conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext conftest.$ac_ext
9911 LIBS=$ac_check_lib_save_LIBS
9913 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9914 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9915 if test $ac_cv_lib_dld_shl_load = yes; then
9916 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9918 echo "$as_me:$LINENO: checking for dlopen" >&5
9919 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9920 if test "${ac_cv_func_dlopen+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 cat >conftest.$ac_ext <<_ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9931 #define dlopen innocuous_dlopen
9933 /* System header to define __stub macros and hopefully few prototypes,
9934 which can conflict with char dlopen (); below.
9935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9936 <limits.h> exists even on freestanding compilers. */
9939 # include <limits.h>
9941 # include <assert.h>
9946 /* Override any gcc2 internal prototype to avoid an error. */
9951 /* We use char because int might match the return type of a gcc2
9952 builtin and then its argument prototype would still apply. */
9954 /* The GNU C library defines this for functions which it implements
9955 to always fail with ENOSYS. Some functions are actually named
9956 something starting with __ and the normal name is an alias. */
9957 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9960 char (*f) () = dlopen;
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9976 (eval $ac_link) 2>conftest.er1
9978 grep -v '^ *+' conftest.er1 >conftest.err
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -z "$ac_c_werror_flag"
9984 || test ! -s conftest.err'
9985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; } &&
9990 { ac_try='test -s conftest$ac_exeext'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 ac_cv_func_dlopen=yes
9998 echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10001 ac_cv_func_dlopen=no
10003 rm -f conftest.err conftest.$ac_objext \
10004 conftest$ac_exeext conftest.$ac_ext
10006 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10007 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10008 if test $ac_cv_func_dlopen = yes; then
10009 lt_cv_dlopen="dlopen"
10011 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10012 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10013 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 ac_check_lib_save_LIBS=$LIBS
10018 cat >conftest.$ac_ext <<_ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10025 /* Override any gcc2 internal prototype to avoid an error. */
10029 /* We use char because int might match the return type of a gcc2
10030 builtin and then its argument prototype would still apply. */
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042 (eval $ac_link) 2>conftest.er1
10044 grep -v '^ *+' conftest.er1 >conftest.err
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } &&
10049 { ac_try='test -z "$ac_c_werror_flag"
10050 || test ! -s conftest.err'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; } &&
10056 { ac_try='test -s conftest$ac_exeext'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10062 ac_cv_lib_dl_dlopen=yes
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10067 ac_cv_lib_dl_dlopen=no
10069 rm -f conftest.err conftest.$ac_objext \
10070 conftest$ac_exeext conftest.$ac_ext
10071 LIBS=$ac_check_lib_save_LIBS
10073 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10074 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10075 if test $ac_cv_lib_dl_dlopen = yes; then
10076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10078 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10079 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10080 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 ac_check_lib_save_LIBS=$LIBS
10084 LIBS="-lsvld $LIBS"
10085 cat >conftest.$ac_ext <<_ACEOF
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h. */
10092 /* Override any gcc2 internal prototype to avoid an error. */
10096 /* We use char because int might match the return type of a gcc2
10097 builtin and then its argument prototype would still apply. */
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109 (eval $ac_link) 2>conftest.er1
10111 grep -v '^ *+' conftest.er1 >conftest.err
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try='test -z "$ac_c_werror_flag"
10117 || test ! -s conftest.err'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; } &&
10123 { ac_try='test -s conftest$ac_exeext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_cv_lib_svld_dlopen=yes
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 ac_cv_lib_svld_dlopen=no
10136 rm -f conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10140 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10141 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10142 if test $ac_cv_lib_svld_dlopen = yes; then
10143 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10145 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10146 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10147 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 ac_check_lib_save_LIBS=$LIBS
10152 cat >conftest.$ac_ext <<_ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10159 /* Override any gcc2 internal prototype to avoid an error. */
10163 /* We use char because int might match the return type of a gcc2
10164 builtin and then its argument prototype would still apply. */
10174 rm -f conftest.$ac_objext conftest$ac_exeext
10175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10176 (eval $ac_link) 2>conftest.er1
10178 grep -v '^ *+' conftest.er1 >conftest.err
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } &&
10183 { ac_try='test -z "$ac_c_werror_flag"
10184 || test ! -s conftest.err'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; } &&
10190 { ac_try='test -s conftest$ac_exeext'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10196 ac_cv_lib_dld_dld_link=yes
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10201 ac_cv_lib_dld_dld_link=no
10203 rm -f conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
10205 LIBS=$ac_check_lib_save_LIBS
10207 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10208 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10209 if test $ac_cv_lib_dld_dld_link = yes; then
10210 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10231 if test "x$lt_cv_dlopen" != xno; then
10237 case $lt_cv_dlopen in
10239 save_CPPFLAGS="$CPPFLAGS"
10240 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10242 save_LDFLAGS="$LDFLAGS"
10243 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10246 LIBS="$lt_cv_dlopen_libs $LIBS"
10248 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10249 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10250 if test "${lt_cv_dlopen_self+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 if test "$cross_compiling" = yes; then :
10254 lt_cv_dlopen_self=cross
10256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10257 lt_status=$lt_dlunknown
10258 cat > conftest.$ac_ext <<EOF
10259 #line 10259 "configure"
10260 #include "confdefs.h"
10269 # define LT_DLGLOBAL RTLD_GLOBAL
10272 # define LT_DLGLOBAL DL_GLOBAL
10274 # define LT_DLGLOBAL 0
10278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10279 find out it does not work in some platform. */
10280 #ifndef LT_DLLAZY_OR_NOW
10282 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10285 # define LT_DLLAZY_OR_NOW DL_LAZY
10288 # define LT_DLLAZY_OR_NOW RTLD_NOW
10291 # define LT_DLLAZY_OR_NOW DL_NOW
10293 # define LT_DLLAZY_OR_NOW 0
10301 extern "C" void exit (int);
10304 void fnord() { int i=42;}
10307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10308 int status = $lt_dlunknown;
10312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10313 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10314 /* dlclose (self); */
10320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10321 (eval $ac_link) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10325 (./conftest; exit; ) 2>/dev/null
10327 case x$lt_status in
10328 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10329 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10330 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10333 # compilation failed
10334 lt_cv_dlopen_self=no
10341 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10342 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10344 if test "x$lt_cv_dlopen_self" = xyes; then
10345 LDFLAGS="$LDFLAGS $link_static_flag"
10346 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10347 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10348 if test "${lt_cv_dlopen_self_static+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 if test "$cross_compiling" = yes; then :
10352 lt_cv_dlopen_self_static=cross
10354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10355 lt_status=$lt_dlunknown
10356 cat > conftest.$ac_ext <<EOF
10357 #line 10357 "configure"
10358 #include "confdefs.h"
10367 # define LT_DLGLOBAL RTLD_GLOBAL
10370 # define LT_DLGLOBAL DL_GLOBAL
10372 # define LT_DLGLOBAL 0
10376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10377 find out it does not work in some platform. */
10378 #ifndef LT_DLLAZY_OR_NOW
10380 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10383 # define LT_DLLAZY_OR_NOW DL_LAZY
10386 # define LT_DLLAZY_OR_NOW RTLD_NOW
10389 # define LT_DLLAZY_OR_NOW DL_NOW
10391 # define LT_DLLAZY_OR_NOW 0
10399 extern "C" void exit (int);
10402 void fnord() { int i=42;}
10405 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10406 int status = $lt_dlunknown;
10410 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10411 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10412 /* dlclose (self); */
10418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10419 (eval $ac_link) 2>&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10423 (./conftest; exit; ) 2>/dev/null
10425 case x$lt_status in
10426 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10427 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10428 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10431 # compilation failed
10432 lt_cv_dlopen_self_static=no
10439 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10440 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10443 CPPFLAGS="$save_CPPFLAGS"
10444 LDFLAGS="$save_LDFLAGS"
10449 case $lt_cv_dlopen_self in
10450 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10451 *) enable_dlopen_self=unknown ;;
10454 case $lt_cv_dlopen_self_static in
10455 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10456 *) enable_dlopen_self_static=unknown ;;
10461 # Report which librarie types wil actually be built
10462 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10463 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10464 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10465 echo "${ECHO_T}$can_build_shared" >&6
10467 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10468 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10469 test "$can_build_shared" = "no" && enable_shared=no
10471 # On AIX, shared libraries and static libraries use the same namespace, and
10472 # are all built from PIC.
10475 test "$enable_shared" = yes && enable_static=no
10476 if test -n "$RANLIB"; then
10477 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10478 postinstall_cmds='$RANLIB $lib'
10483 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10484 test "$enable_shared" = yes && enable_static=no
10488 echo "$as_me:$LINENO: result: $enable_shared" >&5
10489 echo "${ECHO_T}$enable_shared" >&6
10491 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10492 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10493 # Make sure either enable_shared or enable_static is yes.
10494 test "$enable_shared" = yes || enable_static=yes
10495 echo "$as_me:$LINENO: result: $enable_static" >&5
10496 echo "${ECHO_T}$enable_static" >&6
10498 # The else clause should only fire when bootstrapping the
10499 # libtool distribution, otherwise you forgot to ship ltmain.sh
10500 # with your package, and you will get complaints that there are
10501 # no rules to generate ltmain.sh.
10502 if test -f "$ltmain"; then
10503 # See if we are running on zsh, and set the options which allow our commands through
10504 # without removal of \ escapes.
10505 if test -n "${ZSH_VERSION+set}" ; then
10506 setopt NO_GLOB_SUBST
10508 # Now quote all the things that may contain metacharacters while being
10509 # careful not to overquote the AC_SUBSTed values. We take copies of the
10510 # variables and quote the copies for generation of the libtool script.
10511 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10513 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10514 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10515 deplibs_check_method reload_flag reload_cmds need_locks \
10516 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10517 lt_cv_sys_global_symbol_to_c_name_address \
10518 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10519 old_postinstall_cmds old_postuninstall_cmds \
10523 lt_prog_compiler_wl \
10524 lt_prog_compiler_pic \
10525 lt_prog_compiler_static \
10526 lt_prog_compiler_no_builtin_flag \
10527 export_dynamic_flag_spec \
10528 thread_safe_flag_spec \
10529 whole_archive_flag_spec \
10530 enable_shared_with_static_runtimes \
10532 old_archive_from_new_cmds \
10537 compiler_lib_search_path \
10539 archive_expsym_cmds \
10541 postuninstall_cmds \
10542 old_archive_from_expsyms_cmds \
10543 allow_undefined_flag \
10544 no_undefined_flag \
10545 export_symbols_cmds \
10546 hardcode_libdir_flag_spec \
10547 hardcode_libdir_flag_spec_ld \
10548 hardcode_libdir_separator \
10549 hardcode_automatic \
10551 module_expsym_cmds \
10552 lt_cv_prog_compiler_c_o \
10554 include_expsyms; do
10557 old_archive_cmds | \
10558 old_archive_from_new_cmds | \
10560 archive_expsym_cmds | \
10562 module_expsym_cmds | \
10563 old_archive_from_expsyms_cmds | \
10564 export_symbols_cmds | \
10565 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10566 postinstall_cmds | postuninstall_cmds | \
10567 old_postinstall_cmds | old_postuninstall_cmds | \
10568 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10569 # Double-quote double-evaled strings.
10570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10573 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10579 *'\$0 --fallback-echo"')
10580 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10584 cfgfile="${ofile}T"
10585 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10587 { echo "$as_me:$LINENO: creating $ofile" >&5
10588 echo "$as_me: creating $ofile" >&6;}
10590 cat <<__EOF__ >> "$cfgfile"
10593 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10594 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10595 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10597 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10598 # Free Software Foundation, Inc.
10600 # This file is part of GNU Libtool:
10601 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10603 # This program is free software; you can redistribute it and/or modify
10604 # it under the terms of the GNU General Public License as published by
10605 # the Free Software Foundation; either version 2 of the License, or
10606 # (at your option) any later version.
10608 # This program is distributed in the hope that it will be useful, but
10609 # WITHOUT ANY WARRANTY; without even the implied warranty of
10610 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10611 # General Public License for more details.
10613 # You should have received a copy of the GNU General Public License
10614 # along with this program; if not, write to the Free Software
10615 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10617 # As a special exception to the GNU General Public License, if you
10618 # distribute this file as part of a program that contains a
10619 # configuration script generated by Autoconf, you may include it under
10620 # the same distribution terms that you use for the rest of that program.
10622 # A sed program that does not truncate output.
10625 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10626 Xsed="$SED -e 1s/^X//"
10628 # The HP-UX ksh and POSIX shell print the target directory to stdout
10629 # if CDPATH is set.
10630 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10632 # The names of the tagged configurations supported by this script.
10635 # ### BEGIN LIBTOOL CONFIG
10637 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10639 # Shell to use when invoking shell scripts.
10642 # Whether or not to build shared libraries.
10643 build_libtool_libs=$enable_shared
10645 # Whether or not to build static libraries.
10646 build_old_libs=$enable_static
10648 # Whether or not to add -lc for building shared libraries.
10649 build_libtool_need_lc=$archive_cmds_need_lc
10651 # Whether or not to disallow shared libs when runtime libs are static
10652 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10654 # Whether or not to optimize for fast installation.
10655 fast_install=$enable_fast_install
10658 host_alias=$host_alias
10662 # The build system.
10663 build_alias=$build_alias
10667 # An echo program that does not interpret backslashes.
10672 AR_FLAGS=$lt_AR_FLAGS
10677 # A language-specific compiler.
10680 # Is the compiler the GNU C compiler?
10686 # The linker used to build libraries.
10689 # Whether we need hard or soft links.
10692 # A BSD-compatible nm program.
10695 # A symbol stripping program
10698 # Used to examine libraries when file_magic_cmd begins "file"
10699 MAGIC_CMD=$MAGIC_CMD
10701 # Used on cygwin: DLL creation program.
10704 # Used on cygwin: object dumper.
10707 # Used on cygwin: assembler.
10710 # The name of the directory that contains temporary libtool files.
10713 # How to create reloadable object files.
10714 reload_flag=$lt_reload_flag
10715 reload_cmds=$lt_reload_cmds
10717 # How to pass a linker flag through the compiler.
10718 wl=$lt_lt_prog_compiler_wl
10720 # Object file suffix (normally "o").
10721 objext="$ac_objext"
10723 # Old archive suffix (normally "a").
10726 # Shared library suffix (normally ".so").
10727 shrext_cmds='$shrext_cmds'
10729 # Executable file suffix (normally "").
10732 # Additional compiler flags for building library objects.
10733 pic_flag=$lt_lt_prog_compiler_pic
10736 # What is the maximum length of a command?
10737 max_cmd_len=$lt_cv_sys_max_cmd_len
10739 # Does compiler simultaneously support -c and -o options?
10740 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10742 # Must we lock files when doing compilation?
10743 need_locks=$lt_need_locks
10745 # Do we need the lib prefix for modules?
10746 need_lib_prefix=$need_lib_prefix
10748 # Do we need a version for libraries?
10749 need_version=$need_version
10751 # Whether dlopen is supported.
10752 dlopen_support=$enable_dlopen
10754 # Whether dlopen of programs is supported.
10755 dlopen_self=$enable_dlopen_self
10757 # Whether dlopen of statically linked programs is supported.
10758 dlopen_self_static=$enable_dlopen_self_static
10760 # Compiler flag to prevent dynamic linking.
10761 link_static_flag=$lt_lt_prog_compiler_static
10763 # Compiler flag to turn off builtin functions.
10764 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10766 # Compiler flag to allow reflexive dlopens.
10767 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10769 # Compiler flag to generate shared objects directly from archives.
10770 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10772 # Compiler flag to generate thread-safe objects.
10773 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10775 # Library versioning type.
10776 version_type=$version_type
10778 # Format of library name prefix.
10779 libname_spec=$lt_libname_spec
10781 # List of archive names. First name is the real one, the rest are links.
10782 # The last name is the one that the linker finds with -lNAME.
10783 library_names_spec=$lt_library_names_spec
10785 # The coded name of the library, if different from the real name.
10786 soname_spec=$lt_soname_spec
10788 # Commands used to build and install an old-style archive.
10790 old_archive_cmds=$lt_old_archive_cmds
10791 old_postinstall_cmds=$lt_old_postinstall_cmds
10792 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10794 # Create an old-style archive from a shared archive.
10795 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10797 # Create a temporary old-style archive to link instead of a shared archive.
10798 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10800 # Commands used to build and install a shared archive.
10801 archive_cmds=$lt_archive_cmds
10802 archive_expsym_cmds=$lt_archive_expsym_cmds
10803 postinstall_cmds=$lt_postinstall_cmds
10804 postuninstall_cmds=$lt_postuninstall_cmds
10806 # Commands used to build a loadable module (assumed same as above if empty)
10807 module_cmds=$lt_module_cmds
10808 module_expsym_cmds=$lt_module_expsym_cmds
10810 # Commands to strip libraries.
10811 old_striplib=$lt_old_striplib
10812 striplib=$lt_striplib
10814 # Dependencies to place before the objects being linked to create a
10816 predep_objects=$lt_predep_objects
10818 # Dependencies to place after the objects being linked to create a
10820 postdep_objects=$lt_postdep_objects
10822 # Dependencies to place before the objects being linked to create a
10824 predeps=$lt_predeps
10826 # Dependencies to place after the objects being linked to create a
10828 postdeps=$lt_postdeps
10830 # The library search path used internally by the compiler when linking
10831 # a shared library.
10832 compiler_lib_search_path=$lt_compiler_lib_search_path
10834 # Method to check whether dependent libraries are shared objects.
10835 deplibs_check_method=$lt_deplibs_check_method
10837 # Command to use when deplibs_check_method == file_magic.
10838 file_magic_cmd=$lt_file_magic_cmd
10840 # Flag that allows shared libraries with undefined symbols to be built.
10841 allow_undefined_flag=$lt_allow_undefined_flag
10843 # Flag that forces no undefined symbols.
10844 no_undefined_flag=$lt_no_undefined_flag
10846 # Commands used to finish a libtool library installation in a directory.
10847 finish_cmds=$lt_finish_cmds
10849 # Same as above, but a single script fragment to be evaled but not shown.
10850 finish_eval=$lt_finish_eval
10852 # Take the output of nm and produce a listing of raw symbols and C names.
10853 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10855 # Transform the output of nm in a proper C declaration
10856 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10858 # Transform the output of nm in a C name address pair
10859 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10861 # This is the shared library runtime path variable.
10862 runpath_var=$runpath_var
10864 # This is the shared library path variable.
10865 shlibpath_var=$shlibpath_var
10867 # Is shlibpath searched before the hard-coded library search path?
10868 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10870 # How to hardcode a shared library path into an executable.
10871 hardcode_action=$hardcode_action
10873 # Whether we should hardcode library paths into libraries.
10874 hardcode_into_libs=$hardcode_into_libs
10876 # Flag to hardcode \$libdir into a binary during linking.
10877 # This must work even if \$libdir does not exist.
10878 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10880 # If ld is used when linking, flag to hardcode \$libdir into
10881 # a binary during linking. This must work even if \$libdir does
10883 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10885 # Whether we need a single -rpath flag with a separated argument.
10886 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10888 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10889 # resulting binary.
10890 hardcode_direct=$hardcode_direct
10892 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10893 # resulting binary.
10894 hardcode_minus_L=$hardcode_minus_L
10896 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10897 # the resulting binary.
10898 hardcode_shlibpath_var=$hardcode_shlibpath_var
10900 # Set to yes if building a shared library automatically hardcodes DIR into the library
10901 # and all subsequent libraries and executables linked against it.
10902 hardcode_automatic=$hardcode_automatic
10904 # Variables whose values should be saved in libtool wrapper scripts and
10905 # restored at relink time.
10906 variables_saved_for_relink="$variables_saved_for_relink"
10908 # Whether libtool must link a program against all its dependency libraries.
10909 link_all_deplibs=$link_all_deplibs
10911 # Compile-time system search path for libraries
10912 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10914 # Run-time system search path for libraries
10915 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10917 # Fix the shell variable \$srcfile for the compiler.
10918 fix_srcfile_path="$fix_srcfile_path"
10920 # Set to yes if exported symbols are required.
10921 always_export_symbols=$always_export_symbols
10923 # The commands to list exported symbols.
10924 export_symbols_cmds=$lt_export_symbols_cmds
10926 # The commands to extract the exported symbol list from a shared archive.
10927 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10929 # Symbols that should not be listed in the preloaded symbols.
10930 exclude_expsyms=$lt_exclude_expsyms
10932 # Symbols that must always be exported.
10933 include_expsyms=$lt_include_expsyms
10935 # ### END LIBTOOL CONFIG
10942 cat <<\EOF >> "$cfgfile"
10944 # AIX sometimes has problems with the GCC collect2 program. For some
10945 # reason, if we set the COLLECT_NAMES environment variable, the problems
10946 # vanish in a puff of smoke.
10947 if test "X${COLLECT_NAMES+set}" != Xset; then
10949 export COLLECT_NAMES
10955 # We use sed instead of cat because bash on DJGPP gets confused if
10956 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10957 # text mode, it properly converts lines to CR/LF. This bash problem
10958 # is reportedly fixed, but why not run on old versions too?
10959 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10961 mv -f "$cfgfile" "$ofile" || \
10962 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10966 # If there is no Makefile yet, we rely on a make rule to execute
10967 # `config.status --recheck' to rerun these tests and create the
10968 # libtool script then.
10969 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10970 if test -f "$ltmain_in"; then
10971 test -f Makefile && make "$ltmain"
10977 ac_cpp='$CPP $CPPFLAGS'
10978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10985 # Check whether --with-tags or --without-tags was given.
10986 if test "${with_tags+set}" = set; then
10987 withval="$with_tags"
10988 tagnames="$withval"
10991 if test -f "$ltmain" && test -n "$tagnames"; then
10992 if test ! -f "${ofile}"; then
10993 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10994 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10997 if test -z "$LTCC"; then
10998 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10999 if test -z "$LTCC"; then
11000 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11001 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11003 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11004 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11008 # Extract list of available tagged configurations in $ofile.
11009 # Note that this assumes the entire list is on one line.
11010 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11013 for tagname in $tagnames; do
11015 # Check whether tagname contains only valid characters
11016 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11018 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11019 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11020 { (exit 1); exit 1; }; }
11024 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11026 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11027 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11028 { (exit 1); exit 1; }; }
11031 # Update the list of available tags.
11032 if test -n "$tagname"; then
11033 echo appending configuration tag \"$tagname\" to $ofile
11037 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11038 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11039 (test "X$CXX" != "Xg++"))) ; then
11047 if test -n "$F77" && test "X$F77" != "Xno"; then
11055 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11066 # Source file extension for RC test sources.
11069 # Object file extension for compiled RC test sources.
11073 # Code to be used in simple compile tests
11074 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11076 # Code to be used in simple link tests
11077 lt_simple_link_test_code="$lt_simple_compile_test_code"
11079 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11081 # If no C compiler was specified, use CC.
11084 # Allow CC to be a program name with arguments.
11088 # save warnings/boilerplate of simple test code
11089 ac_outfile=conftest.$ac_objext
11090 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11091 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11092 _lt_compiler_boilerplate=`cat conftest.err`
11095 ac_outfile=conftest.$ac_objext
11096 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11097 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11098 _lt_linker_boilerplate=`cat conftest.err`
11102 # Allow CC to be a program name with arguments.
11107 for cc_temp in $compiler""; do
11109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11115 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11117 lt_cv_prog_compiler_c_o_RC=yes
11119 # The else clause should only fire when bootstrapping the
11120 # libtool distribution, otherwise you forgot to ship ltmain.sh
11121 # with your package, and you will get complaints that there are
11122 # no rules to generate ltmain.sh.
11123 if test -f "$ltmain"; then
11124 # See if we are running on zsh, and set the options which allow our commands through
11125 # without removal of \ escapes.
11126 if test -n "${ZSH_VERSION+set}" ; then
11127 setopt NO_GLOB_SUBST
11129 # Now quote all the things that may contain metacharacters while being
11130 # careful not to overquote the AC_SUBSTed values. We take copies of the
11131 # variables and quote the copies for generation of the libtool script.
11132 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11134 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11135 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11136 deplibs_check_method reload_flag reload_cmds need_locks \
11137 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11138 lt_cv_sys_global_symbol_to_c_name_address \
11139 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11140 old_postinstall_cmds old_postuninstall_cmds \
11144 lt_prog_compiler_wl_RC \
11145 lt_prog_compiler_pic_RC \
11146 lt_prog_compiler_static_RC \
11147 lt_prog_compiler_no_builtin_flag_RC \
11148 export_dynamic_flag_spec_RC \
11149 thread_safe_flag_spec_RC \
11150 whole_archive_flag_spec_RC \
11151 enable_shared_with_static_runtimes_RC \
11152 old_archive_cmds_RC \
11153 old_archive_from_new_cmds_RC \
11154 predep_objects_RC \
11155 postdep_objects_RC \
11158 compiler_lib_search_path_RC \
11160 archive_expsym_cmds_RC \
11161 postinstall_cmds_RC \
11162 postuninstall_cmds_RC \
11163 old_archive_from_expsyms_cmds_RC \
11164 allow_undefined_flag_RC \
11165 no_undefined_flag_RC \
11166 export_symbols_cmds_RC \
11167 hardcode_libdir_flag_spec_RC \
11168 hardcode_libdir_flag_spec_ld_RC \
11169 hardcode_libdir_separator_RC \
11170 hardcode_automatic_RC \
11172 module_expsym_cmds_RC \
11173 lt_cv_prog_compiler_c_o_RC \
11174 exclude_expsyms_RC \
11175 include_expsyms_RC; do
11178 old_archive_cmds_RC | \
11179 old_archive_from_new_cmds_RC | \
11180 archive_cmds_RC | \
11181 archive_expsym_cmds_RC | \
11183 module_expsym_cmds_RC | \
11184 old_archive_from_expsyms_cmds_RC | \
11185 export_symbols_cmds_RC | \
11186 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11187 postinstall_cmds | postuninstall_cmds | \
11188 old_postinstall_cmds | old_postuninstall_cmds | \
11189 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11190 # Double-quote double-evaled strings.
11191 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11200 *'\$0 --fallback-echo"')
11201 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11207 cat <<__EOF__ >> "$cfgfile"
11208 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11210 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11212 # Shell to use when invoking shell scripts.
11215 # Whether or not to build shared libraries.
11216 build_libtool_libs=$enable_shared
11218 # Whether or not to build static libraries.
11219 build_old_libs=$enable_static
11221 # Whether or not to add -lc for building shared libraries.
11222 build_libtool_need_lc=$archive_cmds_need_lc_RC
11224 # Whether or not to disallow shared libs when runtime libs are static
11225 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11227 # Whether or not to optimize for fast installation.
11228 fast_install=$enable_fast_install
11231 host_alias=$host_alias
11235 # The build system.
11236 build_alias=$build_alias
11240 # An echo program that does not interpret backslashes.
11245 AR_FLAGS=$lt_AR_FLAGS
11250 # A language-specific compiler.
11253 # Is the compiler the GNU C compiler?
11259 # The linker used to build libraries.
11262 # Whether we need hard or soft links.
11265 # A BSD-compatible nm program.
11268 # A symbol stripping program
11271 # Used to examine libraries when file_magic_cmd begins "file"
11272 MAGIC_CMD=$MAGIC_CMD
11274 # Used on cygwin: DLL creation program.
11277 # Used on cygwin: object dumper.
11280 # Used on cygwin: assembler.
11283 # The name of the directory that contains temporary libtool files.
11286 # How to create reloadable object files.
11287 reload_flag=$lt_reload_flag
11288 reload_cmds=$lt_reload_cmds
11290 # How to pass a linker flag through the compiler.
11291 wl=$lt_lt_prog_compiler_wl_RC
11293 # Object file suffix (normally "o").
11294 objext="$ac_objext"
11296 # Old archive suffix (normally "a").
11299 # Shared library suffix (normally ".so").
11300 shrext_cmds='$shrext_cmds'
11302 # Executable file suffix (normally "").
11305 # Additional compiler flags for building library objects.
11306 pic_flag=$lt_lt_prog_compiler_pic_RC
11309 # What is the maximum length of a command?
11310 max_cmd_len=$lt_cv_sys_max_cmd_len
11312 # Does compiler simultaneously support -c and -o options?
11313 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11315 # Must we lock files when doing compilation?
11316 need_locks=$lt_need_locks
11318 # Do we need the lib prefix for modules?
11319 need_lib_prefix=$need_lib_prefix
11321 # Do we need a version for libraries?
11322 need_version=$need_version
11324 # Whether dlopen is supported.
11325 dlopen_support=$enable_dlopen
11327 # Whether dlopen of programs is supported.
11328 dlopen_self=$enable_dlopen_self
11330 # Whether dlopen of statically linked programs is supported.
11331 dlopen_self_static=$enable_dlopen_self_static
11333 # Compiler flag to prevent dynamic linking.
11334 link_static_flag=$lt_lt_prog_compiler_static_RC
11336 # Compiler flag to turn off builtin functions.
11337 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11339 # Compiler flag to allow reflexive dlopens.
11340 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11342 # Compiler flag to generate shared objects directly from archives.
11343 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11345 # Compiler flag to generate thread-safe objects.
11346 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11348 # Library versioning type.
11349 version_type=$version_type
11351 # Format of library name prefix.
11352 libname_spec=$lt_libname_spec
11354 # List of archive names. First name is the real one, the rest are links.
11355 # The last name is the one that the linker finds with -lNAME.
11356 library_names_spec=$lt_library_names_spec
11358 # The coded name of the library, if different from the real name.
11359 soname_spec=$lt_soname_spec
11361 # Commands used to build and install an old-style archive.
11363 old_archive_cmds=$lt_old_archive_cmds_RC
11364 old_postinstall_cmds=$lt_old_postinstall_cmds
11365 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11367 # Create an old-style archive from a shared archive.
11368 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11370 # Create a temporary old-style archive to link instead of a shared archive.
11371 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11373 # Commands used to build and install a shared archive.
11374 archive_cmds=$lt_archive_cmds_RC
11375 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11376 postinstall_cmds=$lt_postinstall_cmds
11377 postuninstall_cmds=$lt_postuninstall_cmds
11379 # Commands used to build a loadable module (assumed same as above if empty)
11380 module_cmds=$lt_module_cmds_RC
11381 module_expsym_cmds=$lt_module_expsym_cmds_RC
11383 # Commands to strip libraries.
11384 old_striplib=$lt_old_striplib
11385 striplib=$lt_striplib
11387 # Dependencies to place before the objects being linked to create a
11389 predep_objects=$lt_predep_objects_RC
11391 # Dependencies to place after the objects being linked to create a
11393 postdep_objects=$lt_postdep_objects_RC
11395 # Dependencies to place before the objects being linked to create a
11397 predeps=$lt_predeps_RC
11399 # Dependencies to place after the objects being linked to create a
11401 postdeps=$lt_postdeps_RC
11403 # The library search path used internally by the compiler when linking
11404 # a shared library.
11405 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11407 # Method to check whether dependent libraries are shared objects.
11408 deplibs_check_method=$lt_deplibs_check_method
11410 # Command to use when deplibs_check_method == file_magic.
11411 file_magic_cmd=$lt_file_magic_cmd
11413 # Flag that allows shared libraries with undefined symbols to be built.
11414 allow_undefined_flag=$lt_allow_undefined_flag_RC
11416 # Flag that forces no undefined symbols.
11417 no_undefined_flag=$lt_no_undefined_flag_RC
11419 # Commands used to finish a libtool library installation in a directory.
11420 finish_cmds=$lt_finish_cmds
11422 # Same as above, but a single script fragment to be evaled but not shown.
11423 finish_eval=$lt_finish_eval
11425 # Take the output of nm and produce a listing of raw symbols and C names.
11426 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11428 # Transform the output of nm in a proper C declaration
11429 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11431 # Transform the output of nm in a C name address pair
11432 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11434 # This is the shared library runtime path variable.
11435 runpath_var=$runpath_var
11437 # This is the shared library path variable.
11438 shlibpath_var=$shlibpath_var
11440 # Is shlibpath searched before the hard-coded library search path?
11441 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11443 # How to hardcode a shared library path into an executable.
11444 hardcode_action=$hardcode_action_RC
11446 # Whether we should hardcode library paths into libraries.
11447 hardcode_into_libs=$hardcode_into_libs
11449 # Flag to hardcode \$libdir into a binary during linking.
11450 # This must work even if \$libdir does not exist.
11451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11453 # If ld is used when linking, flag to hardcode \$libdir into
11454 # a binary during linking. This must work even if \$libdir does
11456 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11458 # Whether we need a single -rpath flag with a separated argument.
11459 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11461 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11462 # resulting binary.
11463 hardcode_direct=$hardcode_direct_RC
11465 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11466 # resulting binary.
11467 hardcode_minus_L=$hardcode_minus_L_RC
11469 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11470 # the resulting binary.
11471 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11473 # Set to yes if building a shared library automatically hardcodes DIR into the library
11474 # and all subsequent libraries and executables linked against it.
11475 hardcode_automatic=$hardcode_automatic_RC
11477 # Variables whose values should be saved in libtool wrapper scripts and
11478 # restored at relink time.
11479 variables_saved_for_relink="$variables_saved_for_relink"
11481 # Whether libtool must link a program against all its dependency libraries.
11482 link_all_deplibs=$link_all_deplibs_RC
11484 # Compile-time system search path for libraries
11485 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11487 # Run-time system search path for libraries
11488 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11490 # Fix the shell variable \$srcfile for the compiler.
11491 fix_srcfile_path="$fix_srcfile_path_RC"
11493 # Set to yes if exported symbols are required.
11494 always_export_symbols=$always_export_symbols_RC
11496 # The commands to list exported symbols.
11497 export_symbols_cmds=$lt_export_symbols_cmds_RC
11499 # The commands to extract the exported symbol list from a shared archive.
11500 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11502 # Symbols that should not be listed in the preloaded symbols.
11503 exclude_expsyms=$lt_exclude_expsyms_RC
11505 # Symbols that must always be exported.
11506 include_expsyms=$lt_include_expsyms_RC
11508 # ### END LIBTOOL TAG CONFIG: $tagname
11514 # If there is no Makefile yet, we rely on a make rule to execute
11515 # `config.status --recheck' to rerun these tests and create the
11516 # libtool script then.
11517 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11518 if test -f "$ltmain_in"; then
11519 test -f Makefile && make "$ltmain"
11525 ac_cpp='$CPP $CPPFLAGS'
11526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11535 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11536 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11537 { (exit 1); exit 1; }; }
11541 # Append the new tag name to the list of available tags.
11542 if test -n "$tagname" ; then
11543 available_tags="$available_tags $tagname"
11549 # Now substitute the updated list of available tags.
11550 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11551 mv "${ofile}T" "$ofile"
11555 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11556 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11557 { (exit 1); exit 1; }; }
11563 # This can be used to rebuild libtool when needed
11564 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11566 # Always use our own libtool.
11567 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11569 # Prevent multiple expansion
11581 if test $ol_enable_perl != no ; then
11582 # Extract the first word of "perl", so it can be a program name with args.
11583 set dummy perl; ac_word=$2
11584 echo "$as_me:$LINENO: checking for $ac_word" >&5
11585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11586 if test "${ac_cv_path_PERLBIN+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11601 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11612 PERLBIN=$ac_cv_path_PERLBIN
11614 if test -n "$PERLBIN"; then
11615 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11616 echo "${ECHO_T}$PERLBIN" >&6
11618 echo "$as_me:$LINENO: result: no" >&5
11619 echo "${ECHO_T}no" >&6
11623 if test "no$PERLBIN" = "no" ; then
11624 if test $ol_enable_perl = yes ; then
11625 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11626 echo "$as_me: error: could not locate perl" >&2;}
11627 { (exit 1); exit 1; }; }
11631 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11632 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11634 if test x"$ol_enable_perl" = "xyes" ; then
11635 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11637 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11644 ac_cpp='$CPP $CPPFLAGS'
11645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11648 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11649 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11650 # On Suns, sometimes $CPP names a directory.
11651 if test -n "$CPP" && test -d "$CPP"; then
11654 if test -z "$CPP"; then
11655 if test "${ac_cv_prog_CPP+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 # Double quotes because CPP needs to be expanded
11659 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11661 ac_preproc_ok=false
11662 for ac_c_preproc_warn_flag in '' yes
11664 # Use a header file that comes with gcc, so configuring glibc
11665 # with a fresh cross-compiler works.
11666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11667 # <limits.h> exists even on freestanding compilers.
11668 # On the NeXT, cc -E runs the code through the compiler's parser,
11669 # not just through cpp. "Syntax error" is here to catch this case.
11670 cat >conftest.$ac_ext <<_ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h. */
11677 # include <limits.h>
11679 # include <assert.h>
11683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11686 grep -v '^ *+' conftest.er1 >conftest.err
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } >/dev/null; then
11691 if test -s conftest.err; then
11692 ac_cpp_err=$ac_c_preproc_warn_flag
11693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11700 if test -z "$ac_cpp_err"; then
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11706 # Broken: fails on valid input.
11709 rm -f conftest.err conftest.$ac_ext
11711 # OK, works on sane cases. Now check whether non-existent headers
11712 # can be detected and how.
11713 cat >conftest.$ac_ext <<_ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 #include <ac_nonexistent.h>
11721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11724 grep -v '^ *+' conftest.er1 >conftest.err
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } >/dev/null; then
11729 if test -s conftest.err; then
11730 ac_cpp_err=$ac_c_preproc_warn_flag
11731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11738 if test -z "$ac_cpp_err"; then
11739 # Broken: success on invalid input.
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11745 # Passes both tests.
11749 rm -f conftest.err conftest.$ac_ext
11752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11753 rm -f conftest.err conftest.$ac_ext
11754 if $ac_preproc_ok; then
11759 ac_cv_prog_CPP=$CPP
11762 CPP=$ac_cv_prog_CPP
11764 ac_cv_prog_CPP=$CPP
11766 echo "$as_me:$LINENO: result: $CPP" >&5
11767 echo "${ECHO_T}$CPP" >&6
11768 ac_preproc_ok=false
11769 for ac_c_preproc_warn_flag in '' yes
11771 # Use a header file that comes with gcc, so configuring glibc
11772 # with a fresh cross-compiler works.
11773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774 # <limits.h> exists even on freestanding compilers.
11775 # On the NeXT, cc -E runs the code through the compiler's parser,
11776 # not just through cpp. "Syntax error" is here to catch this case.
11777 cat >conftest.$ac_ext <<_ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11784 # include <limits.h>
11786 # include <assert.h>
11790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11793 grep -v '^ *+' conftest.er1 >conftest.err
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } >/dev/null; then
11798 if test -s conftest.err; then
11799 ac_cpp_err=$ac_c_preproc_warn_flag
11800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11807 if test -z "$ac_cpp_err"; then
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11813 # Broken: fails on valid input.
11816 rm -f conftest.err conftest.$ac_ext
11818 # OK, works on sane cases. Now check whether non-existent headers
11819 # can be detected and how.
11820 cat >conftest.$ac_ext <<_ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 #include <ac_nonexistent.h>
11828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11831 grep -v '^ *+' conftest.er1 >conftest.err
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } >/dev/null; then
11836 if test -s conftest.err; then
11837 ac_cpp_err=$ac_c_preproc_warn_flag
11838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11845 if test -z "$ac_cpp_err"; then
11846 # Broken: success on invalid input.
11849 echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11852 # Passes both tests.
11856 rm -f conftest.err conftest.$ac_ext
11859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11860 rm -f conftest.err conftest.$ac_ext
11861 if $ac_preproc_ok; then
11864 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11865 See \`config.log' for more details." >&5
11866 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11867 See \`config.log' for more details." >&2;}
11868 { (exit 1); exit 1; }; }
11872 ac_cpp='$CPP $CPPFLAGS'
11873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11879 *mingw32* ) ac_cv_mingw32=yes ;;
11880 *cygwin* ) ac_cv_cygwin=yes ;;
11886 cat >>confdefs.h <<_ACEOF
11887 #define EXEEXT "${EXEEXT}"
11891 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11892 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11893 if test "${ac_cv_lib_be_be_app+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 ac_check_lib_save_LIBS=$LIBS
11897 LIBS="-lbe -lroot -lnet $LIBS"
11898 cat >conftest.$ac_ext <<_ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11905 /* Override any gcc2 internal prototype to avoid an error. */
11909 /* We use char because int might match the return type of a gcc2
11910 builtin and then its argument prototype would still apply. */
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922 (eval $ac_link) 2>conftest.er1
11924 grep -v '^ *+' conftest.er1 >conftest.err
11926 cat conftest.err >&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } &&
11929 { ac_try='test -z "$ac_c_werror_flag"
11930 || test ! -s conftest.err'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; } &&
11936 { ac_try='test -s conftest$ac_exeext'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 ac_cv_lib_be_be_app=yes
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 ac_cv_lib_be_be_app=no
11949 rm -f conftest.err conftest.$ac_objext \
11950 conftest$ac_exeext conftest.$ac_ext
11951 LIBS=$ac_check_lib_save_LIBS
11953 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11954 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11955 if test $ac_cv_lib_be_be_app = yes; then
11956 LIBS="$LIBS -lbe -lroot -lnet"
11963 ac_cpp='$CPP $CPPFLAGS'
11964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11967 if test -n "$ac_tool_prefix"; then
11968 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11970 echo "$as_me:$LINENO: checking for $ac_word" >&5
11971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11972 if test "${ac_cv_prog_CC+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 if test -n "$CC"; then
11976 ac_cv_prog_CC="$CC" # Let the user override the test.
11978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11979 for as_dir in $PATH
11982 test -z "$as_dir" && as_dir=.
11983 for ac_exec_ext in '' $ac_executable_extensions; do
11984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11985 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11995 if test -n "$CC"; then
11996 echo "$as_me:$LINENO: result: $CC" >&5
11997 echo "${ECHO_T}$CC" >&6
11999 echo "$as_me:$LINENO: result: no" >&5
12000 echo "${ECHO_T}no" >&6
12004 if test -z "$ac_cv_prog_CC"; then
12006 # Extract the first word of "gcc", so it can be a program name with args.
12007 set dummy gcc; ac_word=$2
12008 echo "$as_me:$LINENO: checking for $ac_word" >&5
12009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 if test -n "$ac_ct_CC"; then
12014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017 for as_dir in $PATH
12020 test -z "$as_dir" && as_dir=.
12021 for ac_exec_ext in '' $ac_executable_extensions; do
12022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12023 ac_cv_prog_ac_ct_CC="gcc"
12024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12033 if test -n "$ac_ct_CC"; then
12034 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12035 echo "${ECHO_T}$ac_ct_CC" >&6
12037 echo "$as_me:$LINENO: result: no" >&5
12038 echo "${ECHO_T}no" >&6
12043 CC="$ac_cv_prog_CC"
12046 if test -z "$CC"; then
12047 if test -n "$ac_tool_prefix"; then
12048 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12049 set dummy ${ac_tool_prefix}cc; ac_word=$2
12050 echo "$as_me:$LINENO: checking for $ac_word" >&5
12051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12052 if test "${ac_cv_prog_CC+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 if test -n "$CC"; then
12056 ac_cv_prog_CC="$CC" # Let the user override the test.
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12062 test -z "$as_dir" && as_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12065 ac_cv_prog_CC="${ac_tool_prefix}cc"
12066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 if test -n "$CC"; then
12076 echo "$as_me:$LINENO: result: $CC" >&5
12077 echo "${ECHO_T}$CC" >&6
12079 echo "$as_me:$LINENO: result: no" >&5
12080 echo "${ECHO_T}no" >&6
12084 if test -z "$ac_cv_prog_CC"; then
12086 # Extract the first word of "cc", so it can be a program name with args.
12087 set dummy cc; ac_word=$2
12088 echo "$as_me:$LINENO: checking for $ac_word" >&5
12089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 if test -n "$ac_ct_CC"; then
12094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097 for as_dir in $PATH
12100 test -z "$as_dir" && as_dir=.
12101 for ac_exec_ext in '' $ac_executable_extensions; do
12102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12103 ac_cv_prog_ac_ct_CC="cc"
12104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12113 if test -n "$ac_ct_CC"; then
12114 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12115 echo "${ECHO_T}$ac_ct_CC" >&6
12117 echo "$as_me:$LINENO: result: no" >&5
12118 echo "${ECHO_T}no" >&6
12123 CC="$ac_cv_prog_CC"
12127 if test -z "$CC"; then
12128 # Extract the first word of "cc", so it can be a program name with args.
12129 set dummy cc; ac_word=$2
12130 echo "$as_me:$LINENO: checking for $ac_word" >&5
12131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12132 if test "${ac_cv_prog_CC+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 if test -n "$CC"; then
12136 ac_cv_prog_CC="$CC" # Let the user override the test.
12138 ac_prog_rejected=no
12139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140 for as_dir in $PATH
12143 test -z "$as_dir" && as_dir=.
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12146 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12147 ac_prog_rejected=yes
12151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 if test $ac_prog_rejected = yes; then
12158 # We found a bogon in the path, so make sure we never use it.
12159 set dummy $ac_cv_prog_CC
12161 if test $# != 0; then
12162 # We chose a different compiler from the bogus one.
12163 # However, it has the same basename, so the bogon will be chosen
12164 # first if we set CC to just the basename; use the full file name.
12166 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12172 if test -n "$CC"; then
12173 echo "$as_me:$LINENO: result: $CC" >&5
12174 echo "${ECHO_T}$CC" >&6
12176 echo "$as_me:$LINENO: result: no" >&5
12177 echo "${ECHO_T}no" >&6
12181 if test -z "$CC"; then
12182 if test -n "$ac_tool_prefix"; then
12185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12187 echo "$as_me:$LINENO: checking for $ac_word" >&5
12188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12189 if test "${ac_cv_prog_CC+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 if test -n "$CC"; then
12193 ac_cv_prog_CC="$CC" # Let the user override the test.
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
12201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12212 if test -n "$CC"; then
12213 echo "$as_me:$LINENO: result: $CC" >&5
12214 echo "${ECHO_T}$CC" >&6
12216 echo "$as_me:$LINENO: result: no" >&5
12217 echo "${ECHO_T}no" >&6
12220 test -n "$CC" && break
12223 if test -z "$CC"; then
12227 # Extract the first word of "$ac_prog", so it can be a program name with args.
12228 set dummy $ac_prog; ac_word=$2
12229 echo "$as_me:$LINENO: checking for $ac_word" >&5
12230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 if test -n "$ac_ct_CC"; then
12235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in $PATH
12241 test -z "$as_dir" && as_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12244 ac_cv_prog_ac_ct_CC="$ac_prog"
12245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12254 if test -n "$ac_ct_CC"; then
12255 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12256 echo "${ECHO_T}$ac_ct_CC" >&6
12258 echo "$as_me:$LINENO: result: no" >&5
12259 echo "${ECHO_T}no" >&6
12262 test -n "$ac_ct_CC" && break
12271 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12272 See \`config.log' for more details." >&5
12273 echo "$as_me: error: no acceptable C compiler found in \$PATH
12274 See \`config.log' for more details." >&2;}
12275 { (exit 1); exit 1; }; }
12277 # Provide some information about the compiler.
12278 echo "$as_me:$LINENO:" \
12279 "checking for C compiler version" >&5
12280 ac_compiler=`set X $ac_compile; echo $2`
12281 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12282 (eval $ac_compiler --version </dev/null >&5) 2>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }
12286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12287 (eval $ac_compiler -v </dev/null >&5) 2>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }
12291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12292 (eval $ac_compiler -V </dev/null >&5) 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }
12297 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12298 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12299 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 cat >conftest.$ac_ext <<_ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12320 rm -f conftest.$ac_objext
12321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12322 (eval $ac_compile) 2>conftest.er1
12324 grep -v '^ *+' conftest.er1 >conftest.err
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } &&
12329 { ac_try='test -z "$ac_c_werror_flag"
12330 || test ! -s conftest.err'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; } &&
12336 { ac_try='test -s conftest.$ac_objext'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 ac_compiler_gnu=yes
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12353 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12354 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12355 GCC=`test $ac_compiler_gnu = yes && echo yes`
12356 ac_test_CFLAGS=${CFLAGS+set}
12357 ac_save_CFLAGS=$CFLAGS
12359 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12361 if test "${ac_cv_prog_cc_g+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12364 cat >conftest.$ac_ext <<_ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12379 rm -f conftest.$ac_objext
12380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12381 (eval $ac_compile) 2>conftest.er1
12383 grep -v '^ *+' conftest.er1 >conftest.err
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -z "$ac_c_werror_flag"
12389 || test ! -s conftest.err'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try='test -s conftest.$ac_objext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 ac_cv_prog_cc_g=yes
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12410 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12411 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12412 if test "$ac_test_CFLAGS" = set; then
12413 CFLAGS=$ac_save_CFLAGS
12414 elif test $ac_cv_prog_cc_g = yes; then
12415 if test "$GCC" = yes; then
12421 if test "$GCC" = yes; then
12427 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12428 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12429 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12432 ac_cv_prog_cc_stdc=no
12434 cat >conftest.$ac_ext <<_ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12440 #include <stdarg.h>
12442 #include <sys/types.h>
12443 #include <sys/stat.h>
12444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12445 struct buf { int x; };
12446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12447 static char *e (p, i)
12453 static char *f (char * (*g) (char **, int), char **p, ...)
12458 s = g (p, va_arg (v,int));
12463 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12464 function prototypes and stuff, but not '\xHH' hex character constants.
12465 These don't provoke an error unfortunately, instead are silently treated
12466 as 'x'. The following induces an error, until -std1 is added to get
12467 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12468 array size at least. It's necessary to write '\x00'==0 to get something
12469 that's true only with -std1. */
12470 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12472 int test (int i, double x);
12473 struct s1 {int (*f) (int a);};
12474 struct s2 {int (*f) (double a);};
12475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12481 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12486 # Don't try gcc -ansi; that turns off useful extensions and
12487 # breaks some systems' header files.
12488 # AIX -qlanglvl=ansi
12489 # Ultrix and OSF/1 -std1
12490 # HP-UX 10.20 and later -Ae
12491 # HP-UX older versions -Aa -D_HPUX_SOURCE
12492 # SVR4 -Xc -D__EXTENSIONS__
12493 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12495 CC="$ac_save_CC $ac_arg"
12496 rm -f conftest.$ac_objext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498 (eval $ac_compile) 2>conftest.er1
12500 grep -v '^ *+' conftest.er1 >conftest.err
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } &&
12505 { ac_try='test -z "$ac_c_werror_flag"
12506 || test ! -s conftest.err'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; } &&
12512 { ac_try='test -s conftest.$ac_objext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12518 ac_cv_prog_cc_stdc=$ac_arg
12521 echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12525 rm -f conftest.err conftest.$ac_objext
12527 rm -f conftest.$ac_ext conftest.$ac_objext
12532 case "x$ac_cv_prog_cc_stdc" in
12534 echo "$as_me:$LINENO: result: none needed" >&5
12535 echo "${ECHO_T}none needed" >&6 ;;
12537 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12538 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12539 CC="$CC $ac_cv_prog_cc_stdc" ;;
12542 # Some people use a C++ compiler to compile C. Since we use `exit',
12543 # in C++ we need to declare it. In case someone uses the same compiler
12544 # for both compiling C and C++ we need to have the C++ compiler decide
12545 # the declaration of exit, since it's the most demanding environment.
12546 cat >conftest.$ac_ext <<_ACEOF
12547 #ifndef __cplusplus
12551 rm -f conftest.$ac_objext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12553 (eval $ac_compile) 2>conftest.er1
12555 grep -v '^ *+' conftest.er1 >conftest.err
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
12560 { ac_try='test -z "$ac_c_werror_flag"
12561 || test ! -s conftest.err'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; } &&
12567 { ac_try='test -s conftest.$ac_objext'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573 for ac_declaration in \
12575 'extern "C" void std::exit (int) throw (); using std::exit;' \
12576 'extern "C" void std::exit (int); using std::exit;' \
12577 'extern "C" void exit (int) throw ();' \
12578 'extern "C" void exit (int);' \
12581 cat >conftest.$ac_ext <<_ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12588 #include <stdlib.h>
12597 rm -f conftest.$ac_objext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599 (eval $ac_compile) 2>conftest.er1
12601 grep -v '^ *+' conftest.er1 >conftest.err
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try='test -z "$ac_c_werror_flag"
12607 || test ! -s conftest.err'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; } &&
12613 { ac_try='test -s conftest.$ac_objext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12627 cat >conftest.$ac_ext <<_ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12642 rm -f conftest.$ac_objext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12644 (eval $ac_compile) 2>conftest.er1
12646 grep -v '^ *+' conftest.er1 >conftest.err
12648 cat conftest.err >&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } &&
12651 { ac_try='test -z "$ac_c_werror_flag"
12652 || test ! -s conftest.err'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; } &&
12658 { ac_try='test -s conftest.$ac_objext'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; }; then
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12673 if test -n "$ac_declaration"; then
12674 echo '#ifdef __cplusplus' >>confdefs.h
12675 echo $ac_declaration >>confdefs.h
12676 echo '#endif' >>confdefs.h
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12686 ac_cpp='$CPP $CPPFLAGS'
12687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12691 depcc="$CC" am_compiler_list=
12693 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12694 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12695 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12699 # We make a subdir and do the tests there. Otherwise we can end up
12700 # making bogus files that we don't know about and never remove. For
12701 # instance it was reported that on HP-UX the gcc test will end up
12702 # making a dummy file named `D' -- because `-MD' means `put the output
12705 # Copy depcomp to subdir because otherwise we won't find it if we're
12706 # using a relative directory.
12707 cp "$am_depcomp" conftest.dir
12709 # We will build objects and dependencies in a subdirectory because
12710 # it helps to detect inapplicable dependency modes. For instance
12711 # both Tru64's cc and ICC support -MD to output dependencies as a
12712 # side effect of compilation, but ICC will put the dependencies in
12713 # the current directory while Tru64 will put them in the object
12717 am_cv_CC_dependencies_compiler_type=none
12718 if test "$am_compiler_list" = ""; then
12719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12721 for depmode in $am_compiler_list; do
12722 # Setup a source with many dependencies, because some compilers
12723 # like to wrap large dependency lists on column 80 (with \), and
12724 # we should not choose a depcomp mode which is confused by this.
12726 # We need to recreate these files for each test, as the compiler may
12727 # overwrite some of them when testing with obscure command lines.
12728 # This happens at least with the AIX C compiler.
12730 for i in 1 2 3 4 5 6; do
12731 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12732 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12733 # Solaris 8's {/usr,}/bin/sh.
12734 touch sub/conftst$i.h
12736 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12740 # after this tag, mechanisms are not by side-effect, so they'll
12741 # only be used when explicitly requested
12742 if test "x$enable_dependency_tracking" = xyes; then
12750 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12751 # mode. It turns out that the SunPro C++ compiler does not properly
12752 # handle `-M -o', and we need to detect this.
12753 if depmode=$depmode \
12754 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12755 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12756 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12757 >/dev/null 2>conftest.err &&
12758 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12759 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12760 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12761 # icc doesn't choke on unknown options, it will just issue warnings
12762 # or remarks (even with -Werror). So we grep stderr for any message
12763 # that says an option was ignored or not supported.
12764 # When given -MP, icc 7.0 and 7.1 complain thusly:
12765 # icc: Command line warning: ignoring option '-M'; no argument required
12766 # The diagnosis changed in icc 8.0:
12767 # icc: Command line remark: option '-MP' not supported
12768 if (grep 'ignoring option' conftest.err ||
12769 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12770 am_cv_CC_dependencies_compiler_type=$depmode
12777 rm -rf conftest.dir
12779 am_cv_CC_dependencies_compiler_type=none
12783 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12784 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12785 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12790 test "x$enable_dependency_tracking" != xno \
12791 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12792 am__fastdepCC_TRUE=
12793 am__fastdepCC_FALSE='#'
12795 am__fastdepCC_TRUE='#'
12796 am__fastdepCC_FALSE=
12800 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12801 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12802 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12803 { (exit 1); exit 1; }; }
12806 # test for make depend flag
12809 if test -z "${MKDEP}"; then
12810 OL_MKDEP="${CC-cc}"
12811 if test -z "${MKDEP_FLAGS}"; then
12812 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12813 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12814 if test "${ol_cv_mkdep+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 for flag in "-M" "-xM"; do
12820 cat > conftest.c <<EOF
12823 if { ac_try='$OL_MKDEP $flag conftest.c'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; } \
12829 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12831 if test ! -f conftest."${ac_object}" ; then
12833 OL_MKDEP_FLAGS="$flag"
12841 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12842 echo "${ECHO_T}$ol_cv_mkdep" >&6
12845 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12849 OL_MKDEP="${MKDEP}"
12850 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12855 if test "${ol_cv_mkdep}" = no ; then
12856 # this will soon become an error
12857 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12858 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12861 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12862 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12863 if test "${ac_cv_lib_s_afopen+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 ac_check_lib_save_LIBS=$LIBS
12868 cat >conftest.$ac_ext <<_ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12875 /* Override any gcc2 internal prototype to avoid an error. */
12879 /* We use char because int might match the return type of a gcc2
12880 builtin and then its argument prototype would still apply. */
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12892 (eval $ac_link) 2>conftest.er1
12894 grep -v '^ *+' conftest.er1 >conftest.err
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } &&
12899 { ac_try='test -z "$ac_c_werror_flag"
12900 || test ! -s conftest.err'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest$ac_exeext'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 ac_cv_lib_s_afopen=yes
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12917 ac_cv_lib_s_afopen=no
12919 rm -f conftest.err conftest.$ac_objext \
12920 conftest$ac_exeext conftest.$ac_ext
12921 LIBS=$ac_check_lib_save_LIBS
12923 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12924 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12925 if test $ac_cv_lib_s_afopen = yes; then
12929 cat >>confdefs.h <<\_ACEOF
12930 #define HAVE_AIX_SECURITY 1
12939 ac_cv_func_getopt=no
12941 cat >>confdefs.h <<\_ACEOF
12942 #define BOTH_STRINGS_H 1
12949 WITH_MODULES_ENABLED=no
12950 if test $ol_enable_modules != no ; then
12952 for ac_header in ltdl.h
12954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12956 echo "$as_me:$LINENO: checking for $ac_header" >&5
12957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12964 # Is the header compilable?
12965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12967 cat >conftest.$ac_ext <<_ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12973 $ac_includes_default
12974 #include <$ac_header>
12976 rm -f conftest.$ac_objext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12978 (eval $ac_compile) 2>conftest.er1
12980 grep -v '^ *+' conftest.er1 >conftest.err
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try='test -z "$ac_c_werror_flag"
12986 || test ! -s conftest.err'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; } &&
12992 { ac_try='test -s conftest.$ac_objext'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 ac_header_compiler=yes
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003 ac_header_compiler=no
13005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13007 echo "${ECHO_T}$ac_header_compiler" >&6
13009 # Is the header present?
13010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13012 cat >conftest.$ac_ext <<_ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 #include <$ac_header>
13020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13023 grep -v '^ *+' conftest.er1 >conftest.err
13025 cat conftest.err >&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } >/dev/null; then
13028 if test -s conftest.err; then
13029 ac_cpp_err=$ac_c_preproc_warn_flag
13030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13037 if test -z "$ac_cpp_err"; then
13038 ac_header_preproc=yes
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13043 ac_header_preproc=no
13045 rm -f conftest.err conftest.$ac_ext
13046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13047 echo "${ECHO_T}$ac_header_preproc" >&6
13049 # So? What about this header?
13050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13056 ac_header_preproc=yes
13059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13073 ## ------------------------------------------ ##
13074 ## Report this to the AC_PACKAGE_NAME lists. ##
13075 ## ------------------------------------------ ##
13078 sed "s/^/$as_me: WARNING: /" >&2
13081 echo "$as_me:$LINENO: checking for $ac_header" >&5
13082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 eval "$as_ac_Header=\$ac_header_preproc"
13088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13093 cat >>confdefs.h <<_ACEOF
13094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13102 if test $ac_cv_header_ltdl_h = no ; then
13103 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13104 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13105 { (exit 1); exit 1; }; }
13108 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13109 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13110 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 ac_check_lib_save_LIBS=$LIBS
13114 LIBS="-lltdl $LIBS"
13115 cat >conftest.$ac_ext <<_ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13122 /* Override any gcc2 internal prototype to avoid an error. */
13126 /* We use char because int might match the return type of a gcc2
13127 builtin and then its argument prototype would still apply. */
13137 rm -f conftest.$ac_objext conftest$ac_exeext
13138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13139 (eval $ac_link) 2>conftest.er1
13141 grep -v '^ *+' conftest.er1 >conftest.err
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } &&
13146 { ac_try='test -z "$ac_c_werror_flag"
13147 || test ! -s conftest.err'
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; } &&
13153 { ac_try='test -s conftest$ac_exeext'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; }; then
13159 ac_cv_lib_ltdl_lt_dlinit=yes
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13164 ac_cv_lib_ltdl_lt_dlinit=no
13166 rm -f conftest.err conftest.$ac_objext \
13167 conftest$ac_exeext conftest.$ac_ext
13168 LIBS=$ac_check_lib_save_LIBS
13170 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13171 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13172 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13174 MODULES_LIBS=-lltdl
13176 cat >>confdefs.h <<\_ACEOF
13177 #define HAVE_LIBLTDL 1
13184 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13185 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13186 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13187 { (exit 1); exit 1; }; }
13189 ol_link_modules=yes
13190 WITH_MODULES_ENABLED=yes
13193 for i in $Backends; do
13194 eval "ol_tmp=\$ol_enable_$i"
13195 if test $ol_tmp = mod ; then
13196 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13197 echo "$as_me: WARNING: building static $i backend" >&2;}
13198 eval "ol_enable_$i=yes"
13201 for i in $Overlays; do
13202 eval "ol_tmp=\$ol_enable_$i"
13203 if test $ol_tmp = mod ; then
13204 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13205 echo "$as_me: WARNING: building static $i overlay" >&2;}
13206 eval "ol_enable_$i=yes"
13212 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13213 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13214 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 cat >conftest.$ac_ext <<_ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h. */
13226 #include <__ASCII__/generate_error.h>
13230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13233 grep -v '^ *+' conftest.er1 >conftest.err
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } >/dev/null; then
13238 if test -s conftest.err; then
13239 ac_cpp_err=$ac_c_preproc_warn_flag
13240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13247 if test -z "$ac_cpp_err"; then
13248 ol_cv_cpp_ebcdic=yes
13250 echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13253 ol_cv_cpp_ebcdic=no
13255 rm -f conftest.err conftest.$ac_ext
13257 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13258 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13259 if test $ol_cv_cpp_ebcdic = yes ; then
13261 cat >>confdefs.h <<\_ACEOF
13262 #define HAVE_EBCDIC 1
13267 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13268 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13269 if test "${ol_cv_header_stdc+set}" = set; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 cat >conftest.$ac_ext <<_ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13278 #include <stdlib.h>
13279 #include <stdarg.h>
13280 #include <string.h>
13283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13286 grep -v '^ *+' conftest.er1 >conftest.err
13288 cat conftest.err >&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } >/dev/null; then
13291 if test -s conftest.err; then
13292 ac_cpp_err=$ac_c_preproc_warn_flag
13293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13300 if test -z "$ac_cpp_err"; then
13301 ol_cv_header_stdc=yes
13303 echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13306 ol_cv_header_stdc=no
13308 rm -f conftest.err conftest.$ac_ext
13310 if test $ol_cv_header_stdc = yes; then
13311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13312 cat >conftest.$ac_ext <<_ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13318 #include <string.h>
13321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13322 $EGREP "memchr" >/dev/null 2>&1; then
13325 ol_cv_header_stdc=no
13331 if test $ol_cv_header_stdc = yes; then
13332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13333 cat >conftest.$ac_ext <<_ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13339 #include <stdlib.h>
13342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13343 $EGREP "free" >/dev/null 2>&1; then
13346 ol_cv_header_stdc=no
13352 if test $ol_cv_header_stdc = yes; then
13353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13354 if test "$cross_compiling" = yes; then
13357 cat >conftest.$ac_ext <<_ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13364 #ifndef HAVE_EBCDIC
13365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13368 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13369 || ('j' <= (c) && (c) <= 'r') \
13370 || ('s' <= (c) && (c) <= 'z'))
13371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13374 int main () { int i; for (i = 0; i < 256; i++)
13375 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13379 rm -f conftest$ac_exeext
13380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13381 (eval $ac_link) 2>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13392 echo "$as_me: program exited with status $ac_status" >&5
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13396 ( exit $ac_status )
13397 ol_cv_header_stdc=no
13399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13403 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13404 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13405 if test $ol_cv_header_stdc = yes; then
13406 cat >>confdefs.h <<\_ACEOF
13407 #define STDC_HEADERS 1
13411 ac_cv_header_stdc=disable
13414 if test $ol_cv_header_stdc != yes; then
13415 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13416 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13424 ac_header_dirent=no
13425 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13426 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13427 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13428 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 cat >conftest.$ac_ext <<_ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 #include <sys/types.h>
13450 rm -f conftest.$ac_objext
13451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13452 (eval $ac_compile) 2>conftest.er1
13454 grep -v '^ *+' conftest.er1 >conftest.err
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } &&
13459 { ac_try='test -z "$ac_c_werror_flag"
13460 || test ! -s conftest.err'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; } &&
13466 { ac_try='test -s conftest.$ac_objext'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13472 eval "$as_ac_Header=yes"
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477 eval "$as_ac_Header=no"
13479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13484 cat >>confdefs.h <<_ACEOF
13485 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13488 ac_header_dirent=$ac_hdr; break
13492 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13493 if test $ac_header_dirent = dirent.h; then
13494 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13495 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13496 if test "${ac_cv_search_opendir+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 ac_func_search_save_LIBS=$LIBS
13500 ac_cv_search_opendir=no
13501 cat >conftest.$ac_ext <<_ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h. */
13508 /* Override any gcc2 internal prototype to avoid an error. */
13512 /* We use char because int might match the return type of a gcc2
13513 builtin and then its argument prototype would still apply. */
13523 rm -f conftest.$ac_objext conftest$ac_exeext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13525 (eval $ac_link) 2>conftest.er1
13527 grep -v '^ *+' conftest.er1 >conftest.err
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } &&
13532 { ac_try='test -z "$ac_c_werror_flag"
13533 || test ! -s conftest.err'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } &&
13539 { ac_try='test -s conftest$ac_exeext'
13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; }; then
13545 ac_cv_search_opendir="none required"
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13551 rm -f conftest.err conftest.$ac_objext \
13552 conftest$ac_exeext conftest.$ac_ext
13553 if test "$ac_cv_search_opendir" = no; then
13554 for ac_lib in dir; do
13555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13563 /* Override any gcc2 internal prototype to avoid an error. */
13567 /* We use char because int might match the return type of a gcc2
13568 builtin and then its argument prototype would still apply. */
13578 rm -f conftest.$ac_objext conftest$ac_exeext
13579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13580 (eval $ac_link) 2>conftest.er1
13582 grep -v '^ *+' conftest.er1 >conftest.err
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
13587 { ac_try='test -z "$ac_c_werror_flag"
13588 || test ! -s conftest.err'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; } &&
13594 { ac_try='test -s conftest$ac_exeext'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13600 ac_cv_search_opendir="-l$ac_lib"
13603 echo "$as_me: failed program was:" >&5
13604 sed 's/^/| /' conftest.$ac_ext >&5
13607 rm -f conftest.err conftest.$ac_objext \
13608 conftest$ac_exeext conftest.$ac_ext
13611 LIBS=$ac_func_search_save_LIBS
13613 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13614 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13615 if test "$ac_cv_search_opendir" != no; then
13616 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13621 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13622 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13623 if test "${ac_cv_search_opendir+set}" = set; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 ac_func_search_save_LIBS=$LIBS
13627 ac_cv_search_opendir=no
13628 cat >conftest.$ac_ext <<_ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h. */
13635 /* Override any gcc2 internal prototype to avoid an error. */
13639 /* We use char because int might match the return type of a gcc2
13640 builtin and then its argument prototype would still apply. */
13650 rm -f conftest.$ac_objext conftest$ac_exeext
13651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13652 (eval $ac_link) 2>conftest.er1
13654 grep -v '^ *+' conftest.er1 >conftest.err
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
13659 { ac_try='test -z "$ac_c_werror_flag"
13660 || test ! -s conftest.err'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; } &&
13666 { ac_try='test -s conftest$ac_exeext'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13672 ac_cv_search_opendir="none required"
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13678 rm -f conftest.err conftest.$ac_objext \
13679 conftest$ac_exeext conftest.$ac_ext
13680 if test "$ac_cv_search_opendir" = no; then
13681 for ac_lib in x; do
13682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13683 cat >conftest.$ac_ext <<_ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13690 /* Override any gcc2 internal prototype to avoid an error. */
13694 /* We use char because int might match the return type of a gcc2
13695 builtin and then its argument prototype would still apply. */
13705 rm -f conftest.$ac_objext conftest$ac_exeext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13707 (eval $ac_link) 2>conftest.er1
13709 grep -v '^ *+' conftest.er1 >conftest.err
13711 cat conftest.err >&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } &&
13714 { ac_try='test -z "$ac_c_werror_flag"
13715 || test ! -s conftest.err'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest$ac_exeext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 ac_cv_search_opendir="-l$ac_lib"
13730 echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13734 rm -f conftest.err conftest.$ac_objext \
13735 conftest$ac_exeext conftest.$ac_ext
13738 LIBS=$ac_func_search_save_LIBS
13740 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13741 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13742 if test "$ac_cv_search_opendir" != no; then
13743 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13749 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13750 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13751 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 cat >conftest.$ac_ext <<_ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760 #include <sys/types.h>
13761 #include <sys/wait.h>
13762 #ifndef WEXITSTATUS
13763 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13766 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13774 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13779 rm -f conftest.$ac_objext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13781 (eval $ac_compile) 2>conftest.er1
13783 grep -v '^ *+' conftest.er1 >conftest.err
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
13788 { ac_try='test -z "$ac_c_werror_flag"
13789 || test ! -s conftest.err'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; } &&
13795 { ac_try='test -s conftest.$ac_objext'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13801 ac_cv_header_sys_wait_h=yes
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13806 ac_cv_header_sys_wait_h=no
13808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13810 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13811 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13812 if test $ac_cv_header_sys_wait_h = yes; then
13814 cat >>confdefs.h <<\_ACEOF
13815 #define HAVE_SYS_WAIT_H 1
13820 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13821 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13822 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 cat >conftest.$ac_ext <<_ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831 #include <sys/types.h>
13832 #include <termios.h>
13838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13839 $EGREP "yes" >/dev/null 2>&1; then
13840 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13842 ac_cv_sys_tiocgwinsz_in_termios_h=no
13847 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13848 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13850 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13851 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13852 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13853 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13854 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 cat >conftest.$ac_ext <<_ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13862 #include <sys/types.h>
13863 #include <sys/ioctl.h>
13869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13870 $EGREP "yes" >/dev/null 2>&1; then
13871 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13873 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13878 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13879 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13881 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13883 cat >>confdefs.h <<\_ACEOF
13884 #define GWINSZ_IN_SYS_IOCTL 1
13988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13990 echo "$as_me:$LINENO: checking for $ac_header" >&5
13991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13998 # Is the header compilable?
13999 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14001 cat >conftest.$ac_ext <<_ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h. */
14007 $ac_includes_default
14008 #include <$ac_header>
14010 rm -f conftest.$ac_objext
14011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14012 (eval $ac_compile) 2>conftest.er1
14014 grep -v '^ *+' conftest.er1 >conftest.err
14016 cat conftest.err >&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } &&
14019 { ac_try='test -z "$ac_c_werror_flag"
14020 || test ! -s conftest.err'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; } &&
14026 { ac_try='test -s conftest.$ac_objext'
14027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028 (eval $ac_try) 2>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; }; then
14032 ac_header_compiler=yes
14034 echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14037 ac_header_compiler=no
14039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14041 echo "${ECHO_T}$ac_header_compiler" >&6
14043 # Is the header present?
14044 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14046 cat >conftest.$ac_ext <<_ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 #include <$ac_header>
14054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14057 grep -v '^ *+' conftest.er1 >conftest.err
14059 cat conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } >/dev/null; then
14062 if test -s conftest.err; then
14063 ac_cpp_err=$ac_c_preproc_warn_flag
14064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14071 if test -z "$ac_cpp_err"; then
14072 ac_header_preproc=yes
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 ac_header_preproc=no
14079 rm -f conftest.err conftest.$ac_ext
14080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14081 echo "${ECHO_T}$ac_header_preproc" >&6
14083 # So? What about this header?
14084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14090 ac_header_preproc=yes
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14107 ## ------------------------------------------ ##
14108 ## Report this to the AC_PACKAGE_NAME lists. ##
14109 ## ------------------------------------------ ##
14112 sed "s/^/$as_me: WARNING: /" >&2
14115 echo "$as_me:$LINENO: checking for $ac_header" >&5
14116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 eval "$as_ac_Header=\$ac_header_preproc"
14122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14127 cat >>confdefs.h <<_ACEOF
14128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14137 for ac_header in resolv.h
14139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14140 echo "$as_me:$LINENO: checking for $ac_header" >&5
14141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 cat >conftest.$ac_ext <<_ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 $ac_includes_default
14152 #include <netinet/in.h>
14155 #include <$ac_header>
14157 rm -f conftest.$ac_objext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14159 (eval $ac_compile) 2>conftest.er1
14161 grep -v '^ *+' conftest.er1 >conftest.err
14163 cat conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -z "$ac_c_werror_flag"
14167 || test ! -s conftest.err'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; } &&
14173 { ac_try='test -s conftest.$ac_objext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 eval "$as_ac_Header=yes"
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14184 eval "$as_ac_Header=no"
14186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14191 cat >>confdefs.h <<_ACEOF
14192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14201 for ac_header in sys/ucred.h
14203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14204 echo "$as_me:$LINENO: checking for $ac_header" >&5
14205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 cat >conftest.$ac_ext <<_ACEOF
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h. */
14215 $ac_includes_default
14216 #ifdef HAVE_SYS_PARAM_H
14217 #include <sys/param.h>
14221 #include <$ac_header>
14223 rm -f conftest.$ac_objext
14224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14225 (eval $ac_compile) 2>conftest.er1
14227 grep -v '^ *+' conftest.er1 >conftest.err
14229 cat conftest.err >&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } &&
14232 { ac_try='test -z "$ac_c_werror_flag"
14233 || test ! -s conftest.err'
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 (eval $ac_try) 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; } &&
14239 { ac_try='test -s conftest.$ac_objext'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245 eval "$as_ac_Header=yes"
14247 echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14250 eval "$as_ac_Header=no"
14252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14257 cat >>confdefs.h <<_ACEOF
14258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14269 for ac_func in sigaction sigset
14271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14272 echo "$as_me:$LINENO: checking for $ac_func" >&5
14273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14274 if eval "test \"\${$as_ac_var+set}\" = set"; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 cat >conftest.$ac_ext <<_ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14285 #define $ac_func innocuous_$ac_func
14287 /* System header to define __stub macros and hopefully few prototypes,
14288 which can conflict with char $ac_func (); below.
14289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14290 <limits.h> exists even on freestanding compilers. */
14293 # include <limits.h>
14295 # include <assert.h>
14300 /* Override any gcc2 internal prototype to avoid an error. */
14305 /* We use char because int might match the return type of a gcc2
14306 builtin and then its argument prototype would still apply. */
14308 /* The GNU C library defines this for functions which it implements
14309 to always fail with ENOSYS. Some functions are actually named
14310 something starting with __ and the normal name is an alias. */
14311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14314 char (*f) () = $ac_func;
14323 return f != $ac_func;
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14330 (eval $ac_link) 2>conftest.er1
14332 grep -v '^ *+' conftest.er1 >conftest.err
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } &&
14337 { ac_try='test -z "$ac_c_werror_flag"
14338 || test ! -s conftest.err'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } &&
14344 { ac_try='test -s conftest$ac_exeext'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14350 eval "$as_ac_var=yes"
14352 echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14355 eval "$as_ac_var=no"
14357 rm -f conftest.err conftest.$ac_objext \
14358 conftest$ac_exeext conftest.$ac_ext
14360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14362 if test `eval echo '${'$as_ac_var'}'` = yes; then
14363 cat >>confdefs.h <<_ACEOF
14364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14371 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14373 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14374 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14375 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 ac_check_lib_save_LIBS=$LIBS
14380 cat >conftest.$ac_ext <<_ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14387 /* Override any gcc2 internal prototype to avoid an error. */
14391 /* We use char because int might match the return type of a gcc2
14392 builtin and then its argument prototype would still apply. */
14402 rm -f conftest.$ac_objext conftest$ac_exeext
14403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14404 (eval $ac_link) 2>conftest.er1
14406 grep -v '^ *+' conftest.er1 >conftest.err
14408 cat conftest.err >&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
14411 { ac_try='test -z "$ac_c_werror_flag"
14412 || test ! -s conftest.err'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; } &&
14418 { ac_try='test -s conftest$ac_exeext'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }; then
14424 ac_cv_lib_V3_sigset=yes
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14429 ac_cv_lib_V3_sigset=no
14431 rm -f conftest.err conftest.$ac_objext \
14432 conftest$ac_exeext conftest.$ac_ext
14433 LIBS=$ac_check_lib_save_LIBS
14435 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14436 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14437 if test $ac_cv_lib_V3_sigset = yes; then
14438 cat >>confdefs.h <<_ACEOF
14439 #define HAVE_LIBV3 1
14448 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14449 echo "$as_me:$LINENO: checking for winsock" >&5
14450 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14451 if test "${ol_cv_winsock+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 for curlib in ws2_32 wsock32; do
14456 LIBS="$LIBS -l$curlib"
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 #include <winsock.h>
14470 select(0,NULL,NULL,NULL,NULL);
14472 gethostname(NULL,0);
14478 rm -f conftest.$ac_objext conftest$ac_exeext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14480 (eval $ac_link) 2>conftest.er1
14482 grep -v '^ *+' conftest.er1 >conftest.err
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
14487 { ac_try='test -z "$ac_c_werror_flag"
14488 || test ! -s conftest.err'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; } &&
14494 { ac_try='test -s conftest$ac_exeext'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14507 rm -f conftest.err conftest.$ac_objext \
14508 conftest$ac_exeext conftest.$ac_ext
14510 if test $ol_cv_winsock = yes; then
14512 cat >>confdefs.h <<\_ACEOF
14513 #define HAVE_WINSOCK 1
14516 ac_cv_func_socket=yes
14517 ac_cv_func_select=yes
14518 ac_cv_func_closesocket=yes
14519 ac_cv_func_gethostname=yes
14520 if test $curlib = ws2_32; then
14521 ol_cv_winsock=winsock2
14523 cat >>confdefs.h <<\_ACEOF
14524 #define HAVE_WINSOCK2 1
14533 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14534 echo "${ECHO_T}$ol_cv_winsock" >&6
14538 echo "$as_me:$LINENO: checking for socket" >&5
14539 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14540 if test "${ac_cv_func_socket+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14543 cat >conftest.$ac_ext <<_ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h. */
14549 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14551 #define socket innocuous_socket
14553 /* System header to define __stub macros and hopefully few prototypes,
14554 which can conflict with char socket (); below.
14555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14556 <limits.h> exists even on freestanding compilers. */
14559 # include <limits.h>
14561 # include <assert.h>
14566 /* Override any gcc2 internal prototype to avoid an error. */
14571 /* We use char because int might match the return type of a gcc2
14572 builtin and then its argument prototype would still apply. */
14574 /* The GNU C library defines this for functions which it implements
14575 to always fail with ENOSYS. Some functions are actually named
14576 something starting with __ and the normal name is an alias. */
14577 #if defined (__stub_socket) || defined (__stub___socket)
14580 char (*f) () = socket;
14589 return f != socket;
14594 rm -f conftest.$ac_objext conftest$ac_exeext
14595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14596 (eval $ac_link) 2>conftest.er1
14598 grep -v '^ *+' conftest.er1 >conftest.err
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } &&
14603 { ac_try='test -z "$ac_c_werror_flag"
14604 || test ! -s conftest.err'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try='test -s conftest$ac_exeext'
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
14616 ac_cv_func_socket=yes
14618 echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14621 ac_cv_func_socket=no
14623 rm -f conftest.err conftest.$ac_objext \
14624 conftest$ac_exeext conftest.$ac_ext
14626 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14627 echo "${ECHO_T}$ac_cv_func_socket" >&6
14628 if test $ac_cv_func_socket = yes; then
14633 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14634 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14635 if test "${ac_cv_lib_socket_main+set}" = set; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 ac_check_lib_save_LIBS=$LIBS
14639 LIBS="-lsocket $LIBS"
14640 cat >conftest.$ac_ext <<_ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14656 rm -f conftest.$ac_objext conftest$ac_exeext
14657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14658 (eval $ac_link) 2>conftest.er1
14660 grep -v '^ *+' conftest.er1 >conftest.err
14662 cat conftest.err >&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } &&
14665 { ac_try='test -z "$ac_c_werror_flag"
14666 || test ! -s conftest.err'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; } &&
14672 { ac_try='test -s conftest$ac_exeext'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678 ac_cv_lib_socket_main=yes
14680 echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14683 ac_cv_lib_socket_main=no
14685 rm -f conftest.err conftest.$ac_objext \
14686 conftest$ac_exeext conftest.$ac_ext
14687 LIBS=$ac_check_lib_save_LIBS
14689 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14690 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14691 if test $ac_cv_lib_socket_main = yes; then
14692 cat >>confdefs.h <<_ACEOF
14693 #define HAVE_LIBSOCKET 1
14696 LIBS="-lsocket $LIBS"
14701 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14702 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14703 if test "${ac_cv_lib_net_main+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14706 ac_check_lib_save_LIBS=$LIBS
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14724 rm -f conftest.$ac_objext conftest$ac_exeext
14725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14726 (eval $ac_link) 2>conftest.er1
14728 grep -v '^ *+' conftest.er1 >conftest.err
14730 cat conftest.err >&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } &&
14733 { ac_try='test -z "$ac_c_werror_flag"
14734 || test ! -s conftest.err'
14735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736 (eval $ac_try) 2>&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; } &&
14740 { ac_try='test -s conftest$ac_exeext'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
14746 ac_cv_lib_net_main=yes
14748 echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14751 ac_cv_lib_net_main=no
14753 rm -f conftest.err conftest.$ac_objext \
14754 conftest$ac_exeext conftest.$ac_ext
14755 LIBS=$ac_check_lib_save_LIBS
14757 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14758 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14759 if test $ac_cv_lib_net_main = yes; then
14760 cat >>confdefs.h <<_ACEOF
14761 #define HAVE_LIBNET 1
14769 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14770 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14771 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 ac_check_lib_save_LIBS=$LIBS
14775 LIBS="-lnsl_s $LIBS"
14776 cat >conftest.$ac_ext <<_ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14792 rm -f conftest.$ac_objext conftest$ac_exeext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14794 (eval $ac_link) 2>conftest.er1
14796 grep -v '^ *+' conftest.er1 >conftest.err
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -z "$ac_c_werror_flag"
14802 || test ! -s conftest.err'
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; } &&
14808 { ac_try='test -s conftest$ac_exeext'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; }; then
14814 ac_cv_lib_nsl_s_main=yes
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14819 ac_cv_lib_nsl_s_main=no
14821 rm -f conftest.err conftest.$ac_objext \
14822 conftest$ac_exeext conftest.$ac_ext
14823 LIBS=$ac_check_lib_save_LIBS
14825 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14826 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14827 if test $ac_cv_lib_nsl_s_main = yes; then
14828 cat >>confdefs.h <<_ACEOF
14829 #define HAVE_LIBNSL_S 1
14832 LIBS="-lnsl_s $LIBS"
14837 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14838 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14839 if test "${ac_cv_lib_nsl_main+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 ac_check_lib_save_LIBS=$LIBS
14844 cat >conftest.$ac_ext <<_ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14860 rm -f conftest.$ac_objext conftest$ac_exeext
14861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14862 (eval $ac_link) 2>conftest.er1
14864 grep -v '^ *+' conftest.er1 >conftest.err
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
14869 { ac_try='test -z "$ac_c_werror_flag"
14870 || test ! -s conftest.err'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; } &&
14876 { ac_try='test -s conftest$ac_exeext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_lib_nsl_main=yes
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14887 ac_cv_lib_nsl_main=no
14889 rm -f conftest.err conftest.$ac_objext \
14890 conftest$ac_exeext conftest.$ac_ext
14891 LIBS=$ac_check_lib_save_LIBS
14893 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14894 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14895 if test $ac_cv_lib_nsl_main = yes; then
14896 cat >>confdefs.h <<_ACEOF
14897 #define HAVE_LIBNSL 1
14905 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14906 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14907 if test "${ac_cv_lib_inet_socket+set}" = set; then
14908 echo $ECHO_N "(cached) $ECHO_C" >&6
14910 ac_check_lib_save_LIBS=$LIBS
14911 LIBS="-linet $LIBS"
14912 cat >conftest.$ac_ext <<_ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14919 /* Override any gcc2 internal prototype to avoid an error. */
14923 /* We use char because int might match the return type of a gcc2
14924 builtin and then its argument prototype would still apply. */
14934 rm -f conftest.$ac_objext conftest$ac_exeext
14935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14936 (eval $ac_link) 2>conftest.er1
14938 grep -v '^ *+' conftest.er1 >conftest.err
14940 cat conftest.err >&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
14943 { ac_try='test -z "$ac_c_werror_flag"
14944 || test ! -s conftest.err'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; } &&
14950 { ac_try='test -s conftest$ac_exeext'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14956 ac_cv_lib_inet_socket=yes
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14961 ac_cv_lib_inet_socket=no
14963 rm -f conftest.err conftest.$ac_objext \
14964 conftest$ac_exeext conftest.$ac_ext
14965 LIBS=$ac_check_lib_save_LIBS
14967 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14968 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14969 if test $ac_cv_lib_inet_socket = yes; then
14970 cat >>confdefs.h <<_ACEOF
14971 #define HAVE_LIBINET 1
14974 LIBS="-linet $LIBS"
14979 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14980 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14981 if test "${ac_cv_lib_gen_main+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 ac_check_lib_save_LIBS=$LIBS
14986 cat >conftest.$ac_ext <<_ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
15002 rm -f conftest.$ac_objext conftest$ac_exeext
15003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15004 (eval $ac_link) 2>conftest.er1
15006 grep -v '^ *+' conftest.er1 >conftest.err
15008 cat conftest.err >&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
15011 { ac_try='test -z "$ac_c_werror_flag"
15012 || test ! -s conftest.err'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } &&
15018 { ac_try='test -s conftest$ac_exeext'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_cv_lib_gen_main=yes
15026 echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15029 ac_cv_lib_gen_main=no
15031 rm -f conftest.err conftest.$ac_objext \
15032 conftest$ac_exeext conftest.$ac_ext
15033 LIBS=$ac_check_lib_save_LIBS
15035 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15036 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15037 if test $ac_cv_lib_gen_main = yes; then
15038 cat >>confdefs.h <<_ACEOF
15039 #define HAVE_LIBGEN 1
15050 echo "$as_me:$LINENO: checking for select" >&5
15051 echo $ECHO_N "checking for select... $ECHO_C" >&6
15052 if test "${ac_cv_func_select+set}" = set; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 cat >conftest.$ac_ext <<_ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15061 /* Define select to an innocuous variant, in case <limits.h> declares select.
15062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15063 #define select innocuous_select
15065 /* System header to define __stub macros and hopefully few prototypes,
15066 which can conflict with char select (); below.
15067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15068 <limits.h> exists even on freestanding compilers. */
15071 # include <limits.h>
15073 # include <assert.h>
15078 /* Override any gcc2 internal prototype to avoid an error. */
15083 /* We use char because int might match the return type of a gcc2
15084 builtin and then its argument prototype would still apply. */
15086 /* The GNU C library defines this for functions which it implements
15087 to always fail with ENOSYS. Some functions are actually named
15088 something starting with __ and the normal name is an alias. */
15089 #if defined (__stub_select) || defined (__stub___select)
15092 char (*f) () = select;
15101 return f != select;
15106 rm -f conftest.$ac_objext conftest$ac_exeext
15107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15108 (eval $ac_link) 2>conftest.er1
15110 grep -v '^ *+' conftest.er1 >conftest.err
15112 cat conftest.err >&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try='test -z "$ac_c_werror_flag"
15116 || test ! -s conftest.err'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; } &&
15122 { ac_try='test -s conftest$ac_exeext'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; }; then
15128 ac_cv_func_select=yes
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_cv_func_select=no
15135 rm -f conftest.err conftest.$ac_objext \
15136 conftest$ac_exeext conftest.$ac_ext
15138 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15139 echo "${ECHO_T}$ac_cv_func_select" >&6
15140 if test $ac_cv_func_select = yes; then
15143 { { echo "$as_me:$LINENO: error: select() required." >&5
15144 echo "$as_me: error: select() required." >&2;}
15145 { (exit 1); exit 1; }; }
15149 if test "${ac_cv_header_winsock_h}" != yes; then
15152 for ac_header in sys/select.h sys/socket.h
15154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15156 echo "$as_me:$LINENO: checking for $ac_header" >&5
15157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15159 echo $ECHO_N "(cached) $ECHO_C" >&6
15161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15164 # Is the header compilable?
15165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15167 cat >conftest.$ac_ext <<_ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 $ac_includes_default
15174 #include <$ac_header>
15176 rm -f conftest.$ac_objext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15178 (eval $ac_compile) 2>conftest.er1
15180 grep -v '^ *+' conftest.er1 >conftest.err
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try='test -z "$ac_c_werror_flag"
15186 || test ! -s conftest.err'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; } &&
15192 { ac_try='test -s conftest.$ac_objext'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; }; then
15198 ac_header_compiler=yes
15200 echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15203 ac_header_compiler=no
15205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15207 echo "${ECHO_T}$ac_header_compiler" >&6
15209 # Is the header present?
15210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15212 cat >conftest.$ac_ext <<_ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15218 #include <$ac_header>
15220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15223 grep -v '^ *+' conftest.er1 >conftest.err
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } >/dev/null; then
15228 if test -s conftest.err; then
15229 ac_cpp_err=$ac_c_preproc_warn_flag
15230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15237 if test -z "$ac_cpp_err"; then
15238 ac_header_preproc=yes
15240 echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15243 ac_header_preproc=no
15245 rm -f conftest.err conftest.$ac_ext
15246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15247 echo "${ECHO_T}$ac_header_preproc" >&6
15249 # So? What about this header?
15250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15256 ac_header_preproc=yes
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15273 ## ------------------------------------------ ##
15274 ## Report this to the AC_PACKAGE_NAME lists. ##
15275 ## ------------------------------------------ ##
15278 sed "s/^/$as_me: WARNING: /" >&2
15281 echo "$as_me:$LINENO: checking for $ac_header" >&5
15282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 eval "$as_ac_Header=\$ac_header_preproc"
15288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15293 cat >>confdefs.h <<_ACEOF
15294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15301 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15302 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15303 if test "${ac_cv_func_select_args+set}" = set; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6
15306 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15307 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15308 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15309 cat >conftest.$ac_ext <<_ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15315 $ac_includes_default
15316 #if HAVE_SYS_SELECT_H
15317 # include <sys/select.h>
15319 #if HAVE_SYS_SOCKET_H
15320 # include <sys/socket.h>
15326 extern int select ($ac_arg1,
15327 $ac_arg234, $ac_arg234, $ac_arg234,
15333 rm -f conftest.$ac_objext
15334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15335 (eval $ac_compile) 2>conftest.er1
15337 grep -v '^ *+' conftest.er1 >conftest.err
15339 cat conftest.err >&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } &&
15342 { ac_try='test -z "$ac_c_werror_flag"
15343 || test ! -s conftest.err'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; } &&
15349 { ac_try='test -s conftest.$ac_objext'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
15355 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15365 # Provide a safe default value.
15366 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15369 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15370 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15371 ac_save_IFS=$IFS; IFS=','
15372 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15376 cat >>confdefs.h <<_ACEOF
15377 #define SELECT_TYPE_ARG1 $1
15381 cat >>confdefs.h <<_ACEOF
15382 #define SELECT_TYPE_ARG234 ($2)
15386 cat >>confdefs.h <<_ACEOF
15387 #define SELECT_TYPE_ARG5 ($3)
15396 for ac_func in poll
15398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15399 echo "$as_me:$LINENO: checking for $ac_func" >&5
15400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15401 if eval "test \"\${$as_ac_var+set}\" = set"; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 cat >conftest.$ac_ext <<_ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15412 #define $ac_func innocuous_$ac_func
15414 /* System header to define __stub macros and hopefully few prototypes,
15415 which can conflict with char $ac_func (); below.
15416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15417 <limits.h> exists even on freestanding compilers. */
15420 # include <limits.h>
15422 # include <assert.h>
15427 /* Override any gcc2 internal prototype to avoid an error. */
15432 /* We use char because int might match the return type of a gcc2
15433 builtin and then its argument prototype would still apply. */
15435 /* The GNU C library defines this for functions which it implements
15436 to always fail with ENOSYS. Some functions are actually named
15437 something starting with __ and the normal name is an alias. */
15438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15441 char (*f) () = $ac_func;
15450 return f != $ac_func;
15455 rm -f conftest.$ac_objext conftest$ac_exeext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15457 (eval $ac_link) 2>conftest.er1
15459 grep -v '^ *+' conftest.er1 >conftest.err
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
15464 { ac_try='test -z "$ac_c_werror_flag"
15465 || test ! -s conftest.err'
15466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; } &&
15471 { ac_try='test -s conftest$ac_exeext'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 eval "$as_ac_var=yes"
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 eval "$as_ac_var=no"
15484 rm -f conftest.err conftest.$ac_objext \
15485 conftest$ac_exeext conftest.$ac_ext
15487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15489 if test `eval echo '${'$as_ac_var'}'` = yes; then
15490 cat >>confdefs.h <<_ACEOF
15491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15498 for ac_header in poll.h
15500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15502 echo "$as_me:$LINENO: checking for $ac_header" >&5
15503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15510 # Is the header compilable?
15511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15513 cat >conftest.$ac_ext <<_ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 $ac_includes_default
15520 #include <$ac_header>
15522 rm -f conftest.$ac_objext
15523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15524 (eval $ac_compile) 2>conftest.er1
15526 grep -v '^ *+' conftest.er1 >conftest.err
15528 cat conftest.err >&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
15531 { ac_try='test -z "$ac_c_werror_flag"
15532 || test ! -s conftest.err'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; } &&
15538 { ac_try='test -s conftest.$ac_objext'
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
15544 ac_header_compiler=yes
15546 echo "$as_me: failed program was:" >&5
15547 sed 's/^/| /' conftest.$ac_ext >&5
15549 ac_header_compiler=no
15551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15553 echo "${ECHO_T}$ac_header_compiler" >&6
15555 # Is the header present?
15556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15558 cat >conftest.$ac_ext <<_ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 #include <$ac_header>
15566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15569 grep -v '^ *+' conftest.er1 >conftest.err
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } >/dev/null; then
15574 if test -s conftest.err; then
15575 ac_cpp_err=$ac_c_preproc_warn_flag
15576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15583 if test -z "$ac_cpp_err"; then
15584 ac_header_preproc=yes
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_header_preproc=no
15591 rm -f conftest.err conftest.$ac_ext
15592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15593 echo "${ECHO_T}$ac_header_preproc" >&6
15595 # So? What about this header?
15596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15602 ac_header_preproc=yes
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15612 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15619 ## ------------------------------------------ ##
15620 ## Report this to the AC_PACKAGE_NAME lists. ##
15621 ## ------------------------------------------ ##
15624 sed "s/^/$as_me: WARNING: /" >&2
15627 echo "$as_me:$LINENO: checking for $ac_header" >&5
15628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 eval "$as_ac_Header=\$ac_header_preproc"
15634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15639 cat >>confdefs.h <<_ACEOF
15640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15649 for ac_header in sys/epoll.h
15651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15653 echo "$as_me:$LINENO: checking for $ac_header" >&5
15654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15656 echo $ECHO_N "(cached) $ECHO_C" >&6
15658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15661 # Is the header compilable?
15662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15664 cat >conftest.$ac_ext <<_ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15670 $ac_includes_default
15671 #include <$ac_header>
15673 rm -f conftest.$ac_objext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675 (eval $ac_compile) 2>conftest.er1
15677 grep -v '^ *+' conftest.er1 >conftest.err
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
15682 { ac_try='test -z "$ac_c_werror_flag"
15683 || test ! -s conftest.err'
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; } &&
15689 { ac_try='test -s conftest.$ac_objext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_header_compiler=yes
15697 echo "$as_me: failed program was:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15700 ac_header_compiler=no
15702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15704 echo "${ECHO_T}$ac_header_compiler" >&6
15706 # Is the header present?
15707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15709 cat >conftest.$ac_ext <<_ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15715 #include <$ac_header>
15717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15720 grep -v '^ *+' conftest.er1 >conftest.err
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } >/dev/null; then
15725 if test -s conftest.err; then
15726 ac_cpp_err=$ac_c_preproc_warn_flag
15727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15734 if test -z "$ac_cpp_err"; then
15735 ac_header_preproc=yes
15737 echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15740 ac_header_preproc=no
15742 rm -f conftest.err conftest.$ac_ext
15743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15744 echo "${ECHO_T}$ac_header_preproc" >&6
15746 # So? What about this header?
15747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15753 ac_header_preproc=yes
15756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15770 ## ------------------------------------------ ##
15771 ## Report this to the AC_PACKAGE_NAME lists. ##
15772 ## ------------------------------------------ ##
15775 sed "s/^/$as_me: WARNING: /" >&2
15778 echo "$as_me:$LINENO: checking for $ac_header" >&5
15779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 eval "$as_ac_Header=\$ac_header_preproc"
15785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15790 cat >>confdefs.h <<_ACEOF
15791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15798 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15799 echo "$as_me:$LINENO: checking for epoll system call" >&5
15800 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15801 if test "$cross_compiling" = yes; then
15802 echo "$as_me:$LINENO: result: no" >&5
15803 echo "${ECHO_T}no" >&6
15805 cat >conftest.$ac_ext <<_ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 int main(int argc, char *argv)
15813 int epfd = epoll_create(256);
15814 exit (epfd == -1 ? 1 : 0);
15817 rm -f conftest$ac_exeext
15818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15819 (eval $ac_link) 2>&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; }; then
15828 echo "$as_me:$LINENO: result: yes" >&5
15829 echo "${ECHO_T}yes" >&6
15831 cat >>confdefs.h <<\_ACEOF
15832 #define HAVE_EPOLL 1
15836 echo "$as_me: program exited with status $ac_status" >&5
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15840 ( exit $ac_status )
15841 echo "$as_me:$LINENO: result: no" >&5
15842 echo "${ECHO_T}no" >&6
15844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15849 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15850 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15851 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15855 cat >conftest.$ac_ext <<_ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h. */
15863 #include <sys/types.h>
15866 #include <stdlib.h>
15871 char *c = (char *) *sys_errlist
15876 rm -f conftest.$ac_objext
15877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15878 (eval $ac_compile) 2>conftest.er1
15880 grep -v '^ *+' conftest.er1 >conftest.err
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } &&
15885 { ac_try='test -z "$ac_c_werror_flag"
15886 || test ! -s conftest.err'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; } &&
15892 { ac_try='test -s conftest.$ac_objext'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; }; then
15898 ol_cv_dcl_sys_errlist=yes
15899 ol_cv_have_sys_errlist=yes
15901 echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15904 ol_cv_dcl_sys_errlist=no
15906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15908 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15909 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15911 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15912 if test $ol_cv_dcl_sys_errlist = no ; then
15914 cat >>confdefs.h <<\_ACEOF
15915 #define DECL_SYS_ERRLIST 1
15919 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15920 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15921 if test "${ol_cv_have_sys_errlist+set}" = set; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 cat >conftest.$ac_ext <<_ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15935 char *c = (char *) *sys_errlist
15940 rm -f conftest.$ac_objext conftest$ac_exeext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15942 (eval $ac_link) 2>conftest.er1
15944 grep -v '^ *+' conftest.er1 >conftest.err
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -z "$ac_c_werror_flag"
15950 || test ! -s conftest.err'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; } &&
15956 { ac_try='test -s conftest$ac_exeext'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 ol_cv_have_sys_errlist=yes
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15967 ol_cv_have_sys_errlist=no
15969 rm -f conftest.err conftest.$ac_objext \
15970 conftest$ac_exeext conftest.$ac_ext
15972 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15973 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15975 if test $ol_cv_have_sys_errlist = yes ; then
15977 cat >>confdefs.h <<\_ACEOF
15978 #define HAVE_SYS_ERRLIST 1
15984 for ac_func in strerror strerror_r
15986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15987 echo "$as_me:$LINENO: checking for $ac_func" >&5
15988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15989 if eval "test \"\${$as_ac_var+set}\" = set"; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 cat >conftest.$ac_ext <<_ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16000 #define $ac_func innocuous_$ac_func
16002 /* System header to define __stub macros and hopefully few prototypes,
16003 which can conflict with char $ac_func (); below.
16004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16005 <limits.h> exists even on freestanding compilers. */
16008 # include <limits.h>
16010 # include <assert.h>
16015 /* Override any gcc2 internal prototype to avoid an error. */
16020 /* We use char because int might match the return type of a gcc2
16021 builtin and then its argument prototype would still apply. */
16023 /* The GNU C library defines this for functions which it implements
16024 to always fail with ENOSYS. Some functions are actually named
16025 something starting with __ and the normal name is an alias. */
16026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16029 char (*f) () = $ac_func;
16038 return f != $ac_func;
16043 rm -f conftest.$ac_objext conftest$ac_exeext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16045 (eval $ac_link) 2>conftest.er1
16047 grep -v '^ *+' conftest.er1 >conftest.err
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -z "$ac_c_werror_flag"
16053 || test ! -s conftest.err'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; } &&
16059 { ac_try='test -s conftest$ac_exeext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 eval "$as_ac_var=yes"
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 eval "$as_ac_var=no"
16072 rm -f conftest.err conftest.$ac_objext \
16073 conftest$ac_exeext conftest.$ac_ext
16075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16077 if test `eval echo '${'$as_ac_var'}'` = yes; then
16078 cat >>confdefs.h <<_ACEOF
16079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16085 ol_cv_func_strerror_r=no
16086 if test "${ac_cv_func_strerror_r}" = yes ; then
16087 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16088 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16089 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 cat >conftest.$ac_ext <<_ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16099 #include <string.h>
16101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16102 $EGREP "strerror_r" >/dev/null 2>&1; then
16103 ol_decl_strerror_r=yes
16105 ol_decl_strerror_r=no
16109 if test $ol_decl_strerror_r = yes ; then
16110 cat >conftest.$ac_ext <<_ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 #include <string.h>
16120 /* from autoconf 2.59 */
16122 char x = *strerror_r (0, buf, sizeof buf);
16123 char *p = strerror_r (0, buf, sizeof buf);
16129 rm -f conftest.$ac_objext
16130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16131 (eval $ac_compile) 2>conftest.er1
16133 grep -v '^ *+' conftest.er1 >conftest.err
16135 cat conftest.err >&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } &&
16138 { ac_try='test -z "$ac_c_werror_flag"
16139 || test ! -s conftest.err'
16140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 (eval $ac_try) 2>&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); }; } &&
16145 { ac_try='test -s conftest.$ac_objext'
16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 ol_cv_nonposix_strerror_r=yes
16153 echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16156 ol_cv_nonposix_strerror_r=no
16158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16160 if test "$cross_compiling" = yes; then
16161 ol_cv_nonposix_strerror=no
16163 cat >conftest.$ac_ext <<_ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h. */
16173 strerror_r( 1, buf, sizeof buf );
16174 exit( buf[0] == 0 );
16178 rm -f conftest$ac_exeext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16180 (eval $ac_link) 2>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; }; then
16189 ol_cv_nonposix_strerror_r=yes
16191 echo "$as_me: program exited with status $ac_status" >&5
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16195 ( exit $ac_status )
16196 ol_cv_nonposix_strerror=no
16198 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16203 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16204 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16205 if test $ol_cv_nonposix_strerror_r = yes ; then
16207 cat >>confdefs.h <<\_ACEOF
16208 #define HAVE_NONPOSIX_STRERROR_R 1
16213 elif test "${ac_cv_func_strerror}" = no ; then
16214 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16215 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16216 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16220 cat >conftest.$ac_ext <<_ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16228 #include <sys/types.h>
16231 #include <stdlib.h>
16236 char *c = (char *) *sys_errlist
16241 rm -f conftest.$ac_objext
16242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16243 (eval $ac_compile) 2>conftest.er1
16245 grep -v '^ *+' conftest.er1 >conftest.err
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
16250 { ac_try='test -z "$ac_c_werror_flag"
16251 || test ! -s conftest.err'
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; } &&
16257 { ac_try='test -s conftest.$ac_objext'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; }; then
16263 ol_cv_dcl_sys_errlist=yes
16264 ol_cv_have_sys_errlist=yes
16266 echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16269 ol_cv_dcl_sys_errlist=no
16271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16273 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16274 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16276 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16277 if test $ol_cv_dcl_sys_errlist = no ; then
16279 cat >>confdefs.h <<\_ACEOF
16280 #define DECL_SYS_ERRLIST 1
16284 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16285 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16286 if test "${ol_cv_have_sys_errlist+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16290 cat >conftest.$ac_ext <<_ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16300 char *c = (char *) *sys_errlist
16305 rm -f conftest.$ac_objext conftest$ac_exeext
16306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16307 (eval $ac_link) 2>conftest.er1
16309 grep -v '^ *+' conftest.er1 >conftest.err
16311 cat conftest.err >&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } &&
16314 { ac_try='test -z "$ac_c_werror_flag"
16315 || test ! -s conftest.err'
16316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; } &&
16321 { ac_try='test -s conftest$ac_exeext'
16322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323 (eval $ac_try) 2>&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 ol_cv_have_sys_errlist=yes
16329 echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16332 ol_cv_have_sys_errlist=no
16334 rm -f conftest.err conftest.$ac_objext \
16335 conftest$ac_exeext conftest.$ac_ext
16337 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16338 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16340 if test $ol_cv_have_sys_errlist = yes ; then
16342 cat >>confdefs.h <<\_ACEOF
16343 #define HAVE_SYS_ERRLIST 1
16352 for ac_header in regex.h
16354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16356 echo "$as_me:$LINENO: checking for $ac_header" >&5
16357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16364 # Is the header compilable?
16365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16367 cat >conftest.$ac_ext <<_ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 $ac_includes_default
16374 #include <$ac_header>
16376 rm -f conftest.$ac_objext
16377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16378 (eval $ac_compile) 2>conftest.er1
16380 grep -v '^ *+' conftest.er1 >conftest.err
16382 cat conftest.err >&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } &&
16385 { ac_try='test -z "$ac_c_werror_flag"
16386 || test ! -s conftest.err'
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; } &&
16392 { ac_try='test -s conftest.$ac_objext'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16398 ac_header_compiler=yes
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 ac_header_compiler=no
16405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16407 echo "${ECHO_T}$ac_header_compiler" >&6
16409 # Is the header present?
16410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16412 cat >conftest.$ac_ext <<_ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 #include <$ac_header>
16420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16423 grep -v '^ *+' conftest.er1 >conftest.err
16425 cat conftest.err >&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } >/dev/null; then
16428 if test -s conftest.err; then
16429 ac_cpp_err=$ac_c_preproc_warn_flag
16430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16437 if test -z "$ac_cpp_err"; then
16438 ac_header_preproc=yes
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16443 ac_header_preproc=no
16445 rm -f conftest.err conftest.$ac_ext
16446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16447 echo "${ECHO_T}$ac_header_preproc" >&6
16449 # So? What about this header?
16450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16456 ac_header_preproc=yes
16459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16473 ## ------------------------------------------ ##
16474 ## Report this to the AC_PACKAGE_NAME lists. ##
16475 ## ------------------------------------------ ##
16478 sed "s/^/$as_me: WARNING: /" >&2
16481 echo "$as_me:$LINENO: checking for $ac_header" >&5
16482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16484 echo $ECHO_N "(cached) $ECHO_C" >&6
16486 eval "$as_ac_Header=\$ac_header_preproc"
16488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16493 cat >>confdefs.h <<_ACEOF
16494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16501 if test "$ac_cv_header_regex_h" != yes ; then
16502 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16503 echo "$as_me: error: POSIX regex.h required." >&2;}
16504 { (exit 1); exit 1; }; }
16506 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16507 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16508 if test "${ac_cv_search_regfree+set}" = set; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 ac_func_search_save_LIBS=$LIBS
16512 ac_cv_search_regfree=no
16513 cat >conftest.$ac_ext <<_ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h. */
16520 /* Override any gcc2 internal prototype to avoid an error. */
16524 /* We use char because int might match the return type of a gcc2
16525 builtin and then its argument prototype would still apply. */
16535 rm -f conftest.$ac_objext conftest$ac_exeext
16536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16537 (eval $ac_link) 2>conftest.er1
16539 grep -v '^ *+' conftest.er1 >conftest.err
16541 cat conftest.err >&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } &&
16544 { ac_try='test -z "$ac_c_werror_flag"
16545 || test ! -s conftest.err'
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; } &&
16551 { ac_try='test -s conftest$ac_exeext'
16552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553 (eval $ac_try) 2>&5
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); }; }; then
16557 ac_cv_search_regfree="none required"
16559 echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16563 rm -f conftest.err conftest.$ac_objext \
16564 conftest$ac_exeext conftest.$ac_ext
16565 if test "$ac_cv_search_regfree" = no; then
16566 for ac_lib in regex gnuregex; do
16567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16568 cat >conftest.$ac_ext <<_ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16575 /* Override any gcc2 internal prototype to avoid an error. */
16579 /* We use char because int might match the return type of a gcc2
16580 builtin and then its argument prototype would still apply. */
16590 rm -f conftest.$ac_objext conftest$ac_exeext
16591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16592 (eval $ac_link) 2>conftest.er1
16594 grep -v '^ *+' conftest.er1 >conftest.err
16596 cat conftest.err >&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
16599 { ac_try='test -z "$ac_c_werror_flag"
16600 || test ! -s conftest.err'
16601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602 (eval $ac_try) 2>&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; } &&
16606 { ac_try='test -s conftest$ac_exeext'
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ac_cv_search_regfree="-l$ac_lib"
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16619 rm -f conftest.err conftest.$ac_objext \
16620 conftest$ac_exeext conftest.$ac_ext
16623 LIBS=$ac_func_search_save_LIBS
16625 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16626 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16627 if test "$ac_cv_search_regfree" != no; then
16628 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16631 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16632 echo "$as_me: error: POSIX regex required." >&2;}
16633 { (exit 1); exit 1; }; }
16638 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16639 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16640 if test "${ol_cv_c_posix_regex+set}" = set; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 if test "$cross_compiling" = yes; then
16645 ol_cv_c_posix_regex=cross
16647 cat >conftest.$ac_ext <<_ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h. */
16654 #include <sys/types.h>
16656 static char *pattern, *string;
16664 if(regcomp(&re, pattern, 0)) {
16668 string = "ALL MATCH";
16670 rc = regexec(&re, string, 0, (void*)0, 0);
16677 rm -f conftest$ac_exeext
16678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16679 (eval $ac_link) 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684 (eval $ac_try) 2>&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; }; then
16688 ol_cv_c_posix_regex=yes
16690 echo "$as_me: program exited with status $ac_status" >&5
16691 echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16694 ( exit $ac_status )
16695 ol_cv_c_posix_regex=no
16697 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16700 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16701 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16703 if test "$ol_cv_c_posix_regex" = no ; then
16704 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16705 echo "$as_me: error: broken POSIX regex!" >&2;}
16706 { (exit 1); exit 1; }; }
16712 for ac_header in sys/uuid.h
16714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16716 echo "$as_me:$LINENO: checking for $ac_header" >&5
16717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16724 # Is the header compilable?
16725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16727 cat >conftest.$ac_ext <<_ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733 $ac_includes_default
16734 #include <$ac_header>
16736 rm -f conftest.$ac_objext
16737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16738 (eval $ac_compile) 2>conftest.er1
16740 grep -v '^ *+' conftest.er1 >conftest.err
16742 cat conftest.err >&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } &&
16745 { ac_try='test -z "$ac_c_werror_flag"
16746 || test ! -s conftest.err'
16747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748 (eval $ac_try) 2>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; } &&
16752 { ac_try='test -s conftest.$ac_objext'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; }; then
16758 ac_header_compiler=yes
16760 echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16763 ac_header_compiler=no
16765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16767 echo "${ECHO_T}$ac_header_compiler" >&6
16769 # Is the header present?
16770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16772 cat >conftest.$ac_ext <<_ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h. */
16778 #include <$ac_header>
16780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16783 grep -v '^ *+' conftest.er1 >conftest.err
16785 cat conftest.err >&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } >/dev/null; then
16788 if test -s conftest.err; then
16789 ac_cpp_err=$ac_c_preproc_warn_flag
16790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16797 if test -z "$ac_cpp_err"; then
16798 ac_header_preproc=yes
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 ac_header_preproc=no
16805 rm -f conftest.err conftest.$ac_ext
16806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16807 echo "${ECHO_T}$ac_header_preproc" >&6
16809 # So? What about this header?
16810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16816 ac_header_preproc=yes
16819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16833 ## ------------------------------------------ ##
16834 ## Report this to the AC_PACKAGE_NAME lists. ##
16835 ## ------------------------------------------ ##
16838 sed "s/^/$as_me: WARNING: /" >&2
16841 echo "$as_me:$LINENO: checking for $ac_header" >&5
16842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16846 eval "$as_ac_Header=\$ac_header_preproc"
16848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16853 cat >>confdefs.h <<_ACEOF
16854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16861 if test $ac_cv_header_sys_uuid_h = yes ; then
16863 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16864 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16865 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16868 ac_func_search_save_LIBS=$LIBS
16869 ac_cv_search_uuid_to_str=no
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16877 /* Override any gcc2 internal prototype to avoid an error. */
16881 /* We use char because int might match the return type of a gcc2
16882 builtin and then its argument prototype would still apply. */
16883 char uuid_to_str ();
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16894 (eval $ac_link) 2>conftest.er1
16896 grep -v '^ *+' conftest.er1 >conftest.err
16898 cat conftest.err >&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try='test -z "$ac_c_werror_flag"
16902 || test ! -s conftest.err'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; } &&
16908 { ac_try='test -s conftest$ac_exeext'
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 ac_cv_search_uuid_to_str="none required"
16916 echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16920 rm -f conftest.err conftest.$ac_objext \
16921 conftest$ac_exeext conftest.$ac_ext
16922 if test "$ac_cv_search_uuid_to_str" = no; then
16923 for ac_lib in uuid; do
16924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16925 cat >conftest.$ac_ext <<_ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h. */
16932 /* Override any gcc2 internal prototype to avoid an error. */
16936 /* We use char because int might match the return type of a gcc2
16937 builtin and then its argument prototype would still apply. */
16938 char uuid_to_str ();
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16949 (eval $ac_link) 2>conftest.er1
16951 grep -v '^ *+' conftest.er1 >conftest.err
16953 cat conftest.err >&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } &&
16956 { ac_try='test -z "$ac_c_werror_flag"
16957 || test ! -s conftest.err'
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; } &&
16963 { ac_try='test -s conftest$ac_exeext'
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; }; then
16969 ac_cv_search_uuid_to_str="-l$ac_lib"
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16976 rm -f conftest.err conftest.$ac_objext \
16977 conftest$ac_exeext conftest.$ac_ext
16980 LIBS=$ac_func_search_save_LIBS
16982 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16983 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16984 if test "$ac_cv_search_uuid_to_str" != no; then
16985 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16993 if test have_uuid = yes ; then
16995 cat >>confdefs.h <<\_ACEOF
16996 #define HAVE_UUID_TO_STR 1
17000 test "$ac_cv_search_uuid_to_str" = "none required" || \
17001 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17005 if test $have_uuid = no ; then
17006 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17007 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17009 LIBS="$LIBS -lrpcrt4"
17010 cat >conftest.$ac_ext <<_ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17017 int __stdcall UuidCreate(void *);
17018 int __stdcall UuidToStringA(void *,void **);
17025 UuidToStringA(0,0);
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17033 (eval $ac_link) 2>conftest.er1
17035 grep -v '^ *+' conftest.er1 >conftest.err
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -z "$ac_c_werror_flag"
17041 || test ! -s conftest.err'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; } &&
17047 { ac_try='test -s conftest$ac_exeext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17060 rm -f conftest.err conftest.$ac_objext \
17061 conftest$ac_exeext conftest.$ac_ext
17062 if test $need_rpcrt = yes; then
17063 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17066 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17067 echo "${ECHO_T}$need_rpcrt" >&6
17070 ol_cv_lib_resolver=no
17071 if test $ol_cv_lib_resolver = no ; then
17072 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17073 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17074 if test "${ol_cv_resolver_none+set}" = set; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 LIBS="$ol_RESOLVER_LIB $LIBS"
17082 cat >conftest.$ac_ext <<_ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h. */
17089 #ifdef HAVE_SYS_TYPES_H
17090 # include <sys/types.h>
17092 #include <netinet/in.h>
17093 #ifdef HAVE_ARPA_NAMESER_H
17094 # include <arpa/nameser.h>
17096 #ifdef HAVE_RESOLV_H
17097 # include <resolv.h>
17105 char *request = NULL;
17106 unsigned char reply[64*1024];
17107 unsigned char host[64*1024];
17111 /* Bind 8/9 interface */
17112 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17114 /* Bind 4 interface */
17118 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17122 /* Bind 8/9 interface */
17124 #elif defined(HFIXEDSZ)
17125 /* Bind 4 interface w/ HFIXEDSZ */
17128 /* Bind 4 interface w/o HFIXEDSZ */
17129 p += sizeof(HEADER);
17131 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17137 rm -f conftest.$ac_objext conftest$ac_exeext
17138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139 (eval $ac_link) 2>conftest.er1
17141 grep -v '^ *+' conftest.er1 >conftest.err
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } &&
17146 { ac_try='test -z "$ac_c_werror_flag"
17147 || test ! -s conftest.err'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; } &&
17153 { ac_try='test -s conftest$ac_exeext'
17154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; }; then
17159 ol_cv_resolver_none=yes
17161 echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17164 ol_cv_resolver_none=no
17166 rm -f conftest.err conftest.$ac_objext \
17167 conftest$ac_exeext conftest.$ac_ext
17172 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17173 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17175 if test $ol_cv_resolver_none = yes ; then
17176 ol_cv_lib_resolver=yes
17180 if test $ol_cv_lib_resolver = no ; then
17181 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17182 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17183 if test "${ol_cv_resolver_resolv+set}" = set; then
17184 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 ol_RESOLVER_LIB=-lresolv
17189 LIBS="$ol_RESOLVER_LIB $LIBS"
17191 cat >conftest.$ac_ext <<_ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17198 #ifdef HAVE_SYS_TYPES_H
17199 # include <sys/types.h>
17201 #include <netinet/in.h>
17202 #ifdef HAVE_ARPA_NAMESER_H
17203 # include <arpa/nameser.h>
17205 #ifdef HAVE_RESOLV_H
17206 # include <resolv.h>
17214 char *request = NULL;
17215 unsigned char reply[64*1024];
17216 unsigned char host[64*1024];
17220 /* Bind 8/9 interface */
17221 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17223 /* Bind 4 interface */
17227 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17231 /* Bind 8/9 interface */
17233 #elif defined(HFIXEDSZ)
17234 /* Bind 4 interface w/ HFIXEDSZ */
17237 /* Bind 4 interface w/o HFIXEDSZ */
17238 p += sizeof(HEADER);
17240 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17246 rm -f conftest.$ac_objext conftest$ac_exeext
17247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17248 (eval $ac_link) 2>conftest.er1
17250 grep -v '^ *+' conftest.er1 >conftest.err
17252 cat conftest.err >&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } &&
17255 { ac_try='test -z "$ac_c_werror_flag"
17256 || test ! -s conftest.err'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } &&
17262 { ac_try='test -s conftest$ac_exeext'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 ol_cv_resolver_resolv=yes
17270 echo "$as_me: failed program was:" >&5
17271 sed 's/^/| /' conftest.$ac_ext >&5
17273 ol_cv_resolver_resolv=no
17275 rm -f conftest.err conftest.$ac_objext \
17276 conftest$ac_exeext conftest.$ac_ext
17281 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17282 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17284 if test $ol_cv_resolver_resolv = yes ; then
17285 ol_cv_lib_resolver=-lresolv
17289 if test $ol_cv_lib_resolver = no ; then
17290 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17291 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17292 if test "${ol_cv_resolver_bind+set}" = set; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 ol_RESOLVER_LIB=-lbind
17298 LIBS="$ol_RESOLVER_LIB $LIBS"
17300 cat >conftest.$ac_ext <<_ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17307 #ifdef HAVE_SYS_TYPES_H
17308 # include <sys/types.h>
17310 #include <netinet/in.h>
17311 #ifdef HAVE_ARPA_NAMESER_H
17312 # include <arpa/nameser.h>
17314 #ifdef HAVE_RESOLV_H
17315 # include <resolv.h>
17323 char *request = NULL;
17324 unsigned char reply[64*1024];
17325 unsigned char host[64*1024];
17329 /* Bind 8/9 interface */
17330 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17332 /* Bind 4 interface */
17336 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17340 /* Bind 8/9 interface */
17342 #elif defined(HFIXEDSZ)
17343 /* Bind 4 interface w/ HFIXEDSZ */
17346 /* Bind 4 interface w/o HFIXEDSZ */
17347 p += sizeof(HEADER);
17349 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17355 rm -f conftest.$ac_objext conftest$ac_exeext
17356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17357 (eval $ac_link) 2>conftest.er1
17359 grep -v '^ *+' conftest.er1 >conftest.err
17361 cat conftest.err >&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } &&
17364 { ac_try='test -z "$ac_c_werror_flag"
17365 || test ! -s conftest.err'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try='test -s conftest$ac_exeext'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 ol_cv_resolver_bind=yes
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 ol_cv_resolver_bind=no
17384 rm -f conftest.err conftest.$ac_objext \
17385 conftest$ac_exeext conftest.$ac_ext
17390 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17391 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17393 if test $ol_cv_resolver_bind = yes ; then
17394 ol_cv_lib_resolver=-lbind
17401 if test "$ol_cv_lib_resolver" != no ; then
17403 cat >>confdefs.h <<\_ACEOF
17404 #define HAVE_RES_QUERY 1
17408 if test "$ol_enable_dnssrv" != no ; then
17412 if test "$ol_cv_lib_resolver" != yes ; then
17413 LIBS="$ol_cv_lib_resolver $LIBS"
17417 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
17418 if test "$ol_link_dnssrv" = no ; then
17419 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17420 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17421 { (exit 1); exit 1; }; }
17424 ol_enable_dnssrv=no
17428 for ac_func in hstrerror
17430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17431 echo "$as_me:$LINENO: checking for $ac_func" >&5
17432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17433 if eval "test \"\${$as_ac_var+set}\" = set"; then
17434 echo $ECHO_N "(cached) $ECHO_C" >&6
17436 cat >conftest.$ac_ext <<_ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17444 #define $ac_func innocuous_$ac_func
17446 /* System header to define __stub macros and hopefully few prototypes,
17447 which can conflict with char $ac_func (); below.
17448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17449 <limits.h> exists even on freestanding compilers. */
17452 # include <limits.h>
17454 # include <assert.h>
17459 /* Override any gcc2 internal prototype to avoid an error. */
17464 /* We use char because int might match the return type of a gcc2
17465 builtin and then its argument prototype would still apply. */
17467 /* The GNU C library defines this for functions which it implements
17468 to always fail with ENOSYS. Some functions are actually named
17469 something starting with __ and the normal name is an alias. */
17470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17473 char (*f) () = $ac_func;
17482 return f != $ac_func;
17487 rm -f conftest.$ac_objext conftest$ac_exeext
17488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17489 (eval $ac_link) 2>conftest.er1
17491 grep -v '^ *+' conftest.er1 >conftest.err
17493 cat conftest.err >&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
17496 { ac_try='test -z "$ac_c_werror_flag"
17497 || test ! -s conftest.err'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; } &&
17503 { ac_try='test -s conftest$ac_exeext'
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; }; then
17509 eval "$as_ac_var=yes"
17511 echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17514 eval "$as_ac_var=no"
17516 rm -f conftest.err conftest.$ac_objext \
17517 conftest$ac_exeext conftest.$ac_ext
17519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17521 if test `eval echo '${'$as_ac_var'}'` = yes; then
17522 cat >>confdefs.h <<_ACEOF
17523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17534 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17537 echo "$as_me:$LINENO: checking for $ac_func" >&5
17538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17539 if eval "test \"\${$as_ac_var+set}\" = set"; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17542 cat >conftest.$ac_ext <<_ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h. */
17548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17550 #define $ac_func innocuous_$ac_func
17552 /* System header to define __stub macros and hopefully few prototypes,
17553 which can conflict with char $ac_func (); below.
17554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17555 <limits.h> exists even on freestanding compilers. */
17558 # include <limits.h>
17560 # include <assert.h>
17565 /* Override any gcc2 internal prototype to avoid an error. */
17570 /* We use char because int might match the return type of a gcc2
17571 builtin and then its argument prototype would still apply. */
17573 /* The GNU C library defines this for functions which it implements
17574 to always fail with ENOSYS. Some functions are actually named
17575 something starting with __ and the normal name is an alias. */
17576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17579 char (*f) () = $ac_func;
17588 return f != $ac_func;
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17595 (eval $ac_link) 2>conftest.er1
17597 grep -v '^ *+' conftest.er1 >conftest.err
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -z "$ac_c_werror_flag"
17603 || test ! -s conftest.err'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest$ac_exeext'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 eval "$as_ac_var=yes"
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17620 eval "$as_ac_var=no"
17622 rm -f conftest.err conftest.$ac_objext \
17623 conftest$ac_exeext conftest.$ac_ext
17625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17627 if test `eval echo '${'$as_ac_var'}'` = yes; then
17628 cat >>confdefs.h <<_ACEOF
17629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17637 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
17638 if test $ol_enable_ipv6 = yes ; then
17639 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17640 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17641 { (exit 1); exit 1; }; }
17643 elif test $ol_enable_ipv6 != no ; then
17644 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17645 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17646 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17650 cat >conftest.$ac_ext <<_ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17657 # include <netinet/in.h>
17658 # ifdef INET6_ADDRSTRLEN
17659 __has_inet6_addrstrlen__;
17663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17664 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17665 ol_cv_inet6_addrstrlen=yes
17667 ol_cv_inet6_addrstrlen=no
17672 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17673 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17676 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17677 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17678 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17689 #include <sys/types.h>
17690 #include <sys/socket.h>
17696 struct sockaddr_storage ss;
17702 rm -f conftest.$ac_objext
17703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17704 (eval $ac_compile) 2>conftest.er1
17706 grep -v '^ *+' conftest.er1 >conftest.err
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag"
17712 || test ! -s conftest.err'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; } &&
17718 { ac_try='test -s conftest.$ac_objext'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; }; then
17724 ol_cv_struct_sockaddr_storage=yes
17726 echo "$as_me: failed program was:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17729 ol_cv_struct_sockaddr_storage=no
17731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17733 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17734 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17736 if test $ol_cv_inet6_addrstrlen = yes \
17737 -a $ol_cv_struct_sockaddr_storage = yes ; then
17739 elif test $ol_enable_ipv6 = yes \
17740 -a $ol_cv_inet6_addrstrlen = no ; then
17741 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17742 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17743 { (exit 1); exit 1; }; }
17744 elif test $ol_enable_ipv6 = yes \
17745 -a $ol_cv_struct_sockaddr_storage = no ; then
17746 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17747 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17748 { (exit 1); exit 1; }; }
17752 if test $ol_enable_local != no ; then
17754 for ac_header in sys/un.h
17756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17758 echo "$as_me:$LINENO: checking for $ac_header" >&5
17759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17761 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17766 # Is the header compilable?
17767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17769 cat >conftest.$ac_ext <<_ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17775 $ac_includes_default
17776 #include <$ac_header>
17778 rm -f conftest.$ac_objext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17780 (eval $ac_compile) 2>conftest.er1
17782 grep -v '^ *+' conftest.er1 >conftest.err
17784 cat conftest.err >&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
17787 { ac_try='test -z "$ac_c_werror_flag"
17788 || test ! -s conftest.err'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; } &&
17794 { ac_try='test -s conftest.$ac_objext'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; }; then
17800 ac_header_compiler=yes
17802 echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17805 ac_header_compiler=no
17807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17809 echo "${ECHO_T}$ac_header_compiler" >&6
17811 # Is the header present?
17812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17814 cat >conftest.$ac_ext <<_ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17820 #include <$ac_header>
17822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17825 grep -v '^ *+' conftest.er1 >conftest.err
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } >/dev/null; then
17830 if test -s conftest.err; then
17831 ac_cpp_err=$ac_c_preproc_warn_flag
17832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17839 if test -z "$ac_cpp_err"; then
17840 ac_header_preproc=yes
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 ac_header_preproc=no
17847 rm -f conftest.err conftest.$ac_ext
17848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17849 echo "${ECHO_T}$ac_header_preproc" >&6
17851 # So? What about this header?
17852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17858 ac_header_preproc=yes
17861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17875 ## ------------------------------------------ ##
17876 ## Report this to the AC_PACKAGE_NAME lists. ##
17877 ## ------------------------------------------ ##
17880 sed "s/^/$as_me: WARNING: /" >&2
17883 echo "$as_me:$LINENO: checking for $ac_header" >&5
17884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17886 echo $ECHO_N "(cached) $ECHO_C" >&6
17888 eval "$as_ac_Header=\$ac_header_preproc"
17890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17895 cat >>confdefs.h <<_ACEOF
17896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17904 if test $ol_enable_local = auto ; then
17905 ol_enable_local=$ac_cv_header_sys_un_h
17906 elif test $ac_cv_header_sys_un_h = no ; then
17907 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17908 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17909 { (exit 1); exit 1; }; }
17917 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
17918 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
17919 -o $ol_with_kerberos = k425 ; then
17922 for ac_header in krb5.h
17924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17926 echo "$as_me:$LINENO: checking for $ac_header" >&5
17927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17934 # Is the header compilable?
17935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17937 cat >conftest.$ac_ext <<_ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17943 $ac_includes_default
17944 #include <$ac_header>
17946 rm -f conftest.$ac_objext
17947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17948 (eval $ac_compile) 2>conftest.er1
17950 grep -v '^ *+' conftest.er1 >conftest.err
17952 cat conftest.err >&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } &&
17955 { ac_try='test -z "$ac_c_werror_flag"
17956 || test ! -s conftest.err'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; } &&
17962 { ac_try='test -s conftest.$ac_objext'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 ac_header_compiler=yes
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 ac_header_compiler=no
17975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17977 echo "${ECHO_T}$ac_header_compiler" >&6
17979 # Is the header present?
17980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17982 cat >conftest.$ac_ext <<_ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17988 #include <$ac_header>
17990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17993 grep -v '^ *+' conftest.er1 >conftest.err
17995 cat conftest.err >&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } >/dev/null; then
17998 if test -s conftest.err; then
17999 ac_cpp_err=$ac_c_preproc_warn_flag
18000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18007 if test -z "$ac_cpp_err"; then
18008 ac_header_preproc=yes
18010 echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18013 ac_header_preproc=no
18015 rm -f conftest.err conftest.$ac_ext
18016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18017 echo "${ECHO_T}$ac_header_preproc" >&6
18019 # So? What about this header?
18020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18026 ac_header_preproc=yes
18029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18043 ## ------------------------------------------ ##
18044 ## Report this to the AC_PACKAGE_NAME lists. ##
18045 ## ------------------------------------------ ##
18048 sed "s/^/$as_me: WARNING: /" >&2
18051 echo "$as_me:$LINENO: checking for $ac_header" >&5
18052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18056 eval "$as_ac_Header=\$ac_header_preproc"
18058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18063 cat >>confdefs.h <<_ACEOF
18064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18072 if test $ac_cv_header_krb5_h = yes ; then
18074 for ac_header in heim_err.h
18076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18078 echo "$as_me:$LINENO: checking for $ac_header" >&5
18079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18086 # Is the header compilable?
18087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18089 cat >conftest.$ac_ext <<_ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h. */
18095 $ac_includes_default
18096 #include <$ac_header>
18098 rm -f conftest.$ac_objext
18099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18100 (eval $ac_compile) 2>conftest.er1
18102 grep -v '^ *+' conftest.er1 >conftest.err
18104 cat conftest.err >&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } &&
18107 { ac_try='test -z "$ac_c_werror_flag"
18108 || test ! -s conftest.err'
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; } &&
18114 { ac_try='test -s conftest.$ac_objext'
18115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 ac_header_compiler=yes
18122 echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18125 ac_header_compiler=no
18127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18129 echo "${ECHO_T}$ac_header_compiler" >&6
18131 # Is the header present?
18132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18134 cat >conftest.$ac_ext <<_ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18140 #include <$ac_header>
18142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18145 grep -v '^ *+' conftest.er1 >conftest.err
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } >/dev/null; then
18150 if test -s conftest.err; then
18151 ac_cpp_err=$ac_c_preproc_warn_flag
18152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18159 if test -z "$ac_cpp_err"; then
18160 ac_header_preproc=yes
18162 echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18165 ac_header_preproc=no
18167 rm -f conftest.err conftest.$ac_ext
18168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18169 echo "${ECHO_T}$ac_header_preproc" >&6
18171 # So? What about this header?
18172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18178 ac_header_preproc=yes
18181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18195 ## ------------------------------------------ ##
18196 ## Report this to the AC_PACKAGE_NAME lists. ##
18197 ## ------------------------------------------ ##
18200 sed "s/^/$as_me: WARNING: /" >&2
18203 echo "$as_me:$LINENO: checking for $ac_header" >&5
18204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18208 eval "$as_ac_Header=\$ac_header_preproc"
18210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18215 cat >>confdefs.h <<_ACEOF
18216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18223 if test $ac_cv_header_heim_err_h = yes ; then
18229 if test $krb5_impl = mit; then
18230 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18231 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18232 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18235 ac_check_lib_save_LIBS=$LIBS
18236 LIBS="-lk5crypto $LIBS"
18237 cat >conftest.$ac_ext <<_ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18253 rm -f conftest.$ac_objext conftest$ac_exeext
18254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18255 (eval $ac_link) 2>conftest.er1
18257 grep -v '^ *+' conftest.er1 >conftest.err
18259 cat conftest.err >&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } &&
18262 { ac_try='test -z "$ac_c_werror_flag"
18263 || test ! -s conftest.err'
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265 (eval $ac_try) 2>&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; } &&
18269 { ac_try='test -s conftest$ac_exeext'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; }; then
18275 ac_cv_lib_k5crypto_main=yes
18277 echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18280 ac_cv_lib_k5crypto_main=no
18282 rm -f conftest.err conftest.$ac_objext \
18283 conftest$ac_exeext conftest.$ac_ext
18284 LIBS=$ac_check_lib_save_LIBS
18286 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18287 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18288 if test $ac_cv_lib_k5crypto_main = yes; then
18289 krb5crypto=k5crypto
18295 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18296 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18297 if test "${ac_cv_lib_krb5_main+set}" = set; then
18298 echo $ECHO_N "(cached) $ECHO_C" >&6
18300 ac_check_lib_save_LIBS=$LIBS
18301 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18302 cat >conftest.$ac_ext <<_ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18320 (eval $ac_link) 2>conftest.er1
18322 grep -v '^ *+' conftest.er1 >conftest.err
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -z "$ac_c_werror_flag"
18328 || test ! -s conftest.err'
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest$ac_exeext'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 ac_cv_lib_krb5_main=yes
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_cv_lib_krb5_main=no
18347 rm -f conftest.err conftest.$ac_objext \
18348 conftest$ac_exeext conftest.$ac_ext
18349 LIBS=$ac_check_lib_save_LIBS
18351 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18352 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18353 if test $ac_cv_lib_krb5_main = yes; then
18355 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18361 elif test $krb5_impl = heimdal; then
18362 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18363 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18364 if test "${ac_cv_lib_des_main+set}" = set; then
18365 echo $ECHO_N "(cached) $ECHO_C" >&6
18367 ac_check_lib_save_LIBS=$LIBS
18369 cat >conftest.$ac_ext <<_ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18387 (eval $ac_link) 2>conftest.er1
18389 grep -v '^ *+' conftest.er1 >conftest.err
18391 cat conftest.err >&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } &&
18394 { ac_try='test -z "$ac_c_werror_flag"
18395 || test ! -s conftest.err'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; } &&
18401 { ac_try='test -s conftest$ac_exeext'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 ac_cv_lib_des_main=yes
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 ac_cv_lib_des_main=no
18414 rm -f conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18416 LIBS=$ac_check_lib_save_LIBS
18418 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18419 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18420 if test $ac_cv_lib_des_main = yes; then
18427 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18428 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18429 if test "${ac_cv_lib_krb5_main+set}" = set; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18432 ac_check_lib_save_LIBS=$LIBS
18433 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18434 cat >conftest.$ac_ext <<_ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18450 rm -f conftest.$ac_objext conftest$ac_exeext
18451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18452 (eval $ac_link) 2>conftest.er1
18454 grep -v '^ *+' conftest.er1 >conftest.err
18456 cat conftest.err >&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } &&
18459 { ac_try='test -z "$ac_c_werror_flag"
18460 || test ! -s conftest.err'
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; } &&
18466 { ac_try='test -s conftest$ac_exeext'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 ac_cv_lib_krb5_main=yes
18474 echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18477 ac_cv_lib_krb5_main=no
18479 rm -f conftest.err conftest.$ac_objext \
18480 conftest$ac_exeext conftest.$ac_ext
18481 LIBS=$ac_check_lib_save_LIBS
18483 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18484 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18485 if test $ac_cv_lib_krb5_main = yes; then
18487 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18494 cat >>confdefs.h <<\_ACEOF
18495 #define HAVE_HEIMDAL_KERBEROS 1
18501 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18502 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18505 if test $have_krb5 = yes ; then
18509 cat >>confdefs.h <<\_ACEOF
18510 #define HAVE_KRB5 1
18514 if test $ol_with_kerberos = k5only ; then
18515 ol_with_kerberos=found
18518 elif test $ol_with_kerberos != auto ; then
18519 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18520 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18521 { (exit 1); exit 1; }; }
18527 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
18528 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
18532 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18536 echo "$as_me:$LINENO: checking for $ac_header" >&5
18537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18539 echo $ECHO_N "(cached) $ECHO_C" >&6
18541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18544 # Is the header compilable?
18545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18547 cat >conftest.$ac_ext <<_ACEOF
18550 cat confdefs.h >>conftest.$ac_ext
18551 cat >>conftest.$ac_ext <<_ACEOF
18552 /* end confdefs.h. */
18553 $ac_includes_default
18554 #include <$ac_header>
18556 rm -f conftest.$ac_objext
18557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18558 (eval $ac_compile) 2>conftest.er1
18560 grep -v '^ *+' conftest.er1 >conftest.err
18562 cat conftest.err >&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } &&
18565 { ac_try='test -z "$ac_c_werror_flag"
18566 || test ! -s conftest.err'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest.$ac_objext'
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_header_compiler=yes
18580 echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18583 ac_header_compiler=no
18585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18587 echo "${ECHO_T}$ac_header_compiler" >&6
18589 # Is the header present?
18590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18592 cat >conftest.$ac_ext <<_ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h. */
18598 #include <$ac_header>
18600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18603 grep -v '^ *+' conftest.er1 >conftest.err
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } >/dev/null; then
18608 if test -s conftest.err; then
18609 ac_cpp_err=$ac_c_preproc_warn_flag
18610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18617 if test -z "$ac_cpp_err"; then
18618 ac_header_preproc=yes
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 ac_header_preproc=no
18625 rm -f conftest.err conftest.$ac_ext
18626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18627 echo "${ECHO_T}$ac_header_preproc" >&6
18629 # So? What about this header?
18630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18636 ac_header_preproc=yes
18639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18653 ## ------------------------------------------ ##
18654 ## Report this to the AC_PACKAGE_NAME lists. ##
18655 ## ------------------------------------------ ##
18658 sed "s/^/$as_me: WARNING: /" >&2
18661 echo "$as_me:$LINENO: checking for $ac_header" >&5
18662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 eval "$as_ac_Header=\$ac_header_preproc"
18668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18673 cat >>confdefs.h <<_ACEOF
18674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18682 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18683 if test $krb5_impl = mit; then
18684 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18685 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18686 if test "${ac_cv_lib_krb4_main+set}" = set; then
18687 echo $ECHO_N "(cached) $ECHO_C" >&6
18689 ac_check_lib_save_LIBS=$LIBS
18690 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18691 cat >conftest.$ac_ext <<_ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h. */
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18709 (eval $ac_link) 2>conftest.er1
18711 grep -v '^ *+' conftest.er1 >conftest.err
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
18716 { ac_try='test -z "$ac_c_werror_flag"
18717 || test ! -s conftest.err'
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; } &&
18723 { ac_try='test -s conftest$ac_exeext'
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 ac_cv_lib_krb4_main=yes
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 ac_cv_lib_krb4_main=no
18736 rm -f conftest.err conftest.$ac_objext \
18737 conftest$ac_exeext conftest.$ac_ext
18738 LIBS=$ac_check_lib_save_LIBS
18740 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18741 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18742 if test $ac_cv_lib_krb4_main = yes; then
18744 KRB4_LIBS="-lkrb4 -ldes425"
18750 elif test $krb5_impl = heimdal; then
18751 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18752 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18753 if test "${ac_cv_lib_krb4_main+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 ac_check_lib_save_LIBS=$LIBS
18757 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18758 cat >conftest.$ac_ext <<_ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18774 rm -f conftest.$ac_objext conftest$ac_exeext
18775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18776 (eval $ac_link) 2>conftest.er1
18778 grep -v '^ *+' conftest.er1 >conftest.err
18780 cat conftest.err >&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } &&
18783 { ac_try='test -z "$ac_c_werror_flag"
18784 || test ! -s conftest.err'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; } &&
18790 { ac_try='test -s conftest$ac_exeext'
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; }; then
18796 ac_cv_lib_krb4_main=yes
18798 echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18801 ac_cv_lib_krb4_main=no
18803 rm -f conftest.err conftest.$ac_objext \
18804 conftest$ac_exeext conftest.$ac_ext
18805 LIBS=$ac_check_lib_save_LIBS
18807 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18808 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18809 if test $ac_cv_lib_krb4_main = yes; then
18819 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18820 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18823 if test $have_k425 = yes ; then
18824 ol_with_kerberos=found
18828 cat >>confdefs.h <<\_ACEOF
18829 #define HAVE_KRB425 1
18833 cat >>confdefs.h <<\_ACEOF
18834 #define HAVE_KRB4 1
18838 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18839 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18840 if test "${ol_cv_var_des_debug+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18846 cat >conftest.$ac_ext <<_ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18853 #include <kerberosIV/krb.h>
18854 #include <kerberosIV/des.h>
18855 extern int des_debug;
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869 (eval $ac_link) 2>conftest.er1
18871 grep -v '^ *+' conftest.er1 >conftest.err
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try='test -z "$ac_c_werror_flag"
18877 || test ! -s conftest.err'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; } &&
18883 { ac_try='test -s conftest$ac_exeext'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 ol_cv_var_des_debug=yes
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18894 ol_cv_var_des_debug=no
18896 rm -f conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18901 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18902 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18904 if test $ol_cv_var_des_debug = yes ; then
18906 cat >>confdefs.h <<\_ACEOF
18907 #define HAVE_DES_DEBUG 1
18917 if test $ol_link_krb5 = yes ; then
18918 ol_with_kerberos=found
18921 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
18922 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
18927 for ac_header in krb.h des.h krb-archaeology.h
18929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18931 echo "$as_me:$LINENO: checking for $ac_header" >&5
18932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18939 # Is the header compilable?
18940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18942 cat >conftest.$ac_ext <<_ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18948 $ac_includes_default
18949 #include <$ac_header>
18951 rm -f conftest.$ac_objext
18952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953 (eval $ac_compile) 2>conftest.er1
18955 grep -v '^ *+' conftest.er1 >conftest.err
18957 cat conftest.err >&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
18960 { ac_try='test -z "$ac_c_werror_flag"
18961 || test ! -s conftest.err'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; } &&
18967 { ac_try='test -s conftest.$ac_objext'
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; }; then
18973 ac_header_compiler=yes
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18978 ac_header_compiler=no
18980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18982 echo "${ECHO_T}$ac_header_compiler" >&6
18984 # Is the header present?
18985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18987 cat >conftest.$ac_ext <<_ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h. */
18993 #include <$ac_header>
18995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18998 grep -v '^ *+' conftest.er1 >conftest.err
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } >/dev/null; then
19003 if test -s conftest.err; then
19004 ac_cpp_err=$ac_c_preproc_warn_flag
19005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19012 if test -z "$ac_cpp_err"; then
19013 ac_header_preproc=yes
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19018 ac_header_preproc=no
19020 rm -f conftest.err conftest.$ac_ext
19021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19022 echo "${ECHO_T}$ac_header_preproc" >&6
19024 # So? What about this header?
19025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19031 ac_header_preproc=yes
19034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19048 ## ------------------------------------------ ##
19049 ## Report this to the AC_PACKAGE_NAME lists. ##
19050 ## ------------------------------------------ ##
19053 sed "s/^/$as_me: WARNING: /" >&2
19056 echo "$as_me:$LINENO: checking for $ac_header" >&5
19057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 eval "$as_ac_Header=\$ac_header_preproc"
19063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19068 cat >>confdefs.h <<_ACEOF
19069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19077 if test $ac_cv_header_krb_h = yes ; then
19078 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19079 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19080 if test "${ac_cv_lib_krb_main+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 ac_check_lib_save_LIBS=$LIBS
19084 LIBS="-lkrb -ldes $LIBS"
19085 cat >conftest.$ac_ext <<_ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19101 rm -f conftest.$ac_objext conftest$ac_exeext
19102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19103 (eval $ac_link) 2>conftest.er1
19105 grep -v '^ *+' conftest.er1 >conftest.err
19107 cat conftest.err >&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } &&
19110 { ac_try='test -z "$ac_c_werror_flag"
19111 || test ! -s conftest.err'
19112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113 (eval $ac_try) 2>&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; } &&
19117 { ac_try='test -s conftest$ac_exeext'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 ac_cv_lib_krb_main=yes
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19128 ac_cv_lib_krb_main=no
19130 rm -f conftest.err conftest.$ac_objext \
19131 conftest$ac_exeext conftest.$ac_ext
19132 LIBS=$ac_check_lib_save_LIBS
19134 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19135 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19136 if test $ac_cv_lib_krb_main = yes; then
19143 if test $have_k4 = yes ; then
19144 ol_with_kerberos=found
19148 cat >>confdefs.h <<\_ACEOF
19149 #define HAVE_KRB4 1
19153 KRB4_LIBS="-lkrb -ldes"
19155 if test $ac_cv_header_krb_archaeology_h = yes ; then
19157 cat >>confdefs.h <<\_ACEOF
19158 #define HAVE_KTH_KERBEROS 1
19166 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
19169 elif test $ol_enable_kbind = yes ; then
19170 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19171 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19172 { (exit 1); exit 1; }; }
19175 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
19177 cat >>confdefs.h <<\_ACEOF
19178 #define HAVE_KERBEROS 1
19182 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
19183 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19184 echo "$as_me: error: Kerberos detection failed" >&2;}
19185 { (exit 1); exit 1; }; }
19190 if test $ol_with_tls != no ; then
19193 for ac_header in openssl/ssl.h ssl.h
19195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19197 echo "$as_me:$LINENO: checking for $ac_header" >&5
19198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19205 # Is the header compilable?
19206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19208 cat >conftest.$ac_ext <<_ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h. */
19214 $ac_includes_default
19215 #include <$ac_header>
19217 rm -f conftest.$ac_objext
19218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19219 (eval $ac_compile) 2>conftest.er1
19221 grep -v '^ *+' conftest.er1 >conftest.err
19223 cat conftest.err >&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
19226 { ac_try='test -z "$ac_c_werror_flag"
19227 || test ! -s conftest.err'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; } &&
19233 { ac_try='test -s conftest.$ac_objext'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_header_compiler=yes
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19244 ac_header_compiler=no
19246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19248 echo "${ECHO_T}$ac_header_compiler" >&6
19250 # Is the header present?
19251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19253 cat >conftest.$ac_ext <<_ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 #include <$ac_header>
19261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19264 grep -v '^ *+' conftest.er1 >conftest.err
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } >/dev/null; then
19269 if test -s conftest.err; then
19270 ac_cpp_err=$ac_c_preproc_warn_flag
19271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19278 if test -z "$ac_cpp_err"; then
19279 ac_header_preproc=yes
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 ac_header_preproc=no
19286 rm -f conftest.err conftest.$ac_ext
19287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19288 echo "${ECHO_T}$ac_header_preproc" >&6
19290 # So? What about this header?
19291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19297 ac_header_preproc=yes
19300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19314 ## ------------------------------------------ ##
19315 ## Report this to the AC_PACKAGE_NAME lists. ##
19316 ## ------------------------------------------ ##
19319 sed "s/^/$as_me: WARNING: /" >&2
19322 echo "$as_me:$LINENO: checking for $ac_header" >&5
19323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19327 eval "$as_ac_Header=\$ac_header_preproc"
19329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19334 cat >>confdefs.h <<_ACEOF
19335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19343 if test $ac_cv_header_openssl_ssl_h = yes \
19344 -o $ac_cv_header_ssl_h = yes ; then
19345 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
19346 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
19347 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19350 ac_check_lib_save_LIBS=$LIBS
19351 LIBS="-lssl -lcrypto $LIBS"
19352 cat >conftest.$ac_ext <<_ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19359 /* Override any gcc2 internal prototype to avoid an error. */
19363 /* We use char because int might match the return type of a gcc2
19364 builtin and then its argument prototype would still apply. */
19365 char SSLeay_add_ssl_algorithms ();
19369 SSLeay_add_ssl_algorithms ();
19374 rm -f conftest.$ac_objext conftest$ac_exeext
19375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19376 (eval $ac_link) 2>conftest.er1
19378 grep -v '^ *+' conftest.er1 >conftest.err
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try='test -z "$ac_c_werror_flag"
19384 || test ! -s conftest.err'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest$ac_exeext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19401 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
19403 rm -f conftest.err conftest.$ac_objext \
19404 conftest$ac_exeext conftest.$ac_ext
19405 LIBS=$ac_check_lib_save_LIBS
19407 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
19408 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
19409 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
19417 if test $have_ssleay = no ; then
19418 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19419 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19420 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19423 ac_check_lib_save_LIBS=$LIBS
19424 LIBS="-lssl -lcrypto $LIBS"
19425 cat >conftest.$ac_ext <<_ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19432 /* Override any gcc2 internal prototype to avoid an error. */
19436 /* We use char because int might match the return type of a gcc2
19437 builtin and then its argument prototype would still apply. */
19438 char SSL_library_init ();
19442 SSL_library_init ();
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19449 (eval $ac_link) 2>conftest.er1
19451 grep -v '^ *+' conftest.er1 >conftest.err
19453 cat conftest.err >&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } &&
19456 { ac_try='test -z "$ac_c_werror_flag"
19457 || test ! -s conftest.err'
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; } &&
19463 { ac_try='test -s conftest$ac_exeext'
19464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465 (eval $ac_try) 2>&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; }; then
19469 ac_cv_lib_ssl_SSL_library_init=yes
19471 echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ac_cv_lib_ssl_SSL_library_init=no
19476 rm -f conftest.err conftest.$ac_objext \
19477 conftest$ac_exeext conftest.$ac_ext
19478 LIBS=$ac_check_lib_save_LIBS
19480 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19481 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19482 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19491 if test $have_ssleay = no ; then
19492 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19493 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19494 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19497 ac_check_lib_save_LIBS=$LIBS
19498 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19499 cat >conftest.$ac_ext <<_ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19506 /* Override any gcc2 internal prototype to avoid an error. */
19510 /* We use char because int might match the return type of a gcc2
19511 builtin and then its argument prototype would still apply. */
19512 char ssl3_accept ();
19521 rm -f conftest.$ac_objext conftest$ac_exeext
19522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19523 (eval $ac_link) 2>conftest.er1
19525 grep -v '^ *+' conftest.er1 >conftest.err
19527 cat conftest.err >&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } &&
19530 { ac_try='test -z "$ac_c_werror_flag"
19531 || test ! -s conftest.err'
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; } &&
19537 { ac_try='test -s conftest$ac_exeext'
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; }; then
19543 ac_cv_lib_ssl_ssl3_accept=yes
19545 echo "$as_me: failed program was:" >&5
19546 sed 's/^/| /' conftest.$ac_ext >&5
19548 ac_cv_lib_ssl_ssl3_accept=no
19550 rm -f conftest.err conftest.$ac_objext \
19551 conftest$ac_exeext conftest.$ac_ext
19552 LIBS=$ac_check_lib_save_LIBS
19554 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19555 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19556 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19565 if test $have_ssleay = yes ; then
19570 cat >>confdefs.h <<\_ACEOF
19571 #define HAVE_SSLEAY 1
19575 if test $need_rsaref = yes; then
19577 cat >>confdefs.h <<\_ACEOF
19578 #define HAVE_RSAREF 1
19582 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19584 TLS_LIBS="-lssl -lcrypto"
19587 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19588 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19589 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19590 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19600 #ifdef HAVE_OPENSSL_SSL_H
19601 #include <openssl/ssl.h>
19606 /* Require 0.9.7d+ */
19607 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19608 char *__ssl_compat = "0.9.7d";
19612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19613 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19614 ol_cv_ssl_crl_compat=yes
19616 ol_cv_ssl_crl_compat=no
19621 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19622 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19624 if test $ol_cv_ssl_crl_compat = no ; then
19628 cat >>confdefs.h <<\_ACEOF
19629 #define HAVE_OPENSSL_CRL 1
19636 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19637 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19641 if test $ol_link_tls = yes ; then
19643 cat >>confdefs.h <<\_ACEOF
19649 elif test $ol_with_tls = auto ; then
19650 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19651 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19652 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19653 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19655 elif test $ol_with_tls != no ; then
19656 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19657 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19658 { (exit 1); exit 1; }; }
19661 if test $ol_enable_lmpasswd != no; then
19662 if test $ol_link_tls != yes ; then
19663 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19664 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19665 { (exit 1); exit 1; }; }
19669 cat >>confdefs.h <<\_ACEOF
19670 #define SLAPD_LMHASH 1
19677 if test $ol_with_threads = auto -o $ol_with_threads = yes \
19678 -o $ol_with_threads = nt ; then
19681 echo "$as_me:$LINENO: checking for _beginthread" >&5
19682 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19683 if test "${ac_cv_func__beginthread+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 cat >conftest.$ac_ext <<_ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19694 #define _beginthread innocuous__beginthread
19696 /* System header to define __stub macros and hopefully few prototypes,
19697 which can conflict with char _beginthread (); below.
19698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19699 <limits.h> exists even on freestanding compilers. */
19702 # include <limits.h>
19704 # include <assert.h>
19707 #undef _beginthread
19709 /* Override any gcc2 internal prototype to avoid an error. */
19714 /* We use char because int might match the return type of a gcc2
19715 builtin and then its argument prototype would still apply. */
19716 char _beginthread ();
19717 /* The GNU C library defines this for functions which it implements
19718 to always fail with ENOSYS. Some functions are actually named
19719 something starting with __ and the normal name is an alias. */
19720 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19723 char (*f) () = _beginthread;
19732 return f != _beginthread;
19737 rm -f conftest.$ac_objext conftest$ac_exeext
19738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19739 (eval $ac_link) 2>conftest.er1
19741 grep -v '^ *+' conftest.er1 >conftest.err
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } &&
19746 { ac_try='test -z "$ac_c_werror_flag"
19747 || test ! -s conftest.err'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; } &&
19753 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19759 ac_cv_func__beginthread=yes
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 ac_cv_func__beginthread=no
19766 rm -f conftest.err conftest.$ac_objext \
19767 conftest$ac_exeext conftest.$ac_ext
19769 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19770 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19773 if test $ac_cv_func__beginthread = yes ; then
19775 cat >>confdefs.h <<\_ACEOF
19776 #define HAVE_NT_THREADS 1
19779 ol_cv_nt_threads=yes
19783 if test "$ol_cv_nt_threads" = yes ; then
19785 ol_with_threads=found
19786 ol_with_yielding_select=yes
19789 cat >>confdefs.h <<\_ACEOF
19790 #define HAVE_NT_SERVICE_MANAGER 1
19794 cat >>confdefs.h <<\_ACEOF
19795 #define HAVE_NT_EVENT_LOG 1
19800 if test $ol_with_threads = nt ; then
19801 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19802 echo "$as_me: error: could not locate NT Threads" >&2;}
19803 { (exit 1); exit 1; }; }
19807 if test $ol_with_threads = auto -o $ol_with_threads = yes \
19808 -o $ol_with_threads = posix ; then
19811 for ac_header in pthread.h
19813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19815 echo "$as_me:$LINENO: checking for $ac_header" >&5
19816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19818 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19823 # Is the header compilable?
19824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19826 cat >conftest.$ac_ext <<_ACEOF
19829 cat confdefs.h >>conftest.$ac_ext
19830 cat >>conftest.$ac_ext <<_ACEOF
19831 /* end confdefs.h. */
19832 $ac_includes_default
19833 #include <$ac_header>
19835 rm -f conftest.$ac_objext
19836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19837 (eval $ac_compile) 2>conftest.er1
19839 grep -v '^ *+' conftest.er1 >conftest.err
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
19844 { ac_try='test -z "$ac_c_werror_flag"
19845 || test ! -s conftest.err'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest.$ac_objext'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 ac_header_compiler=yes
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19862 ac_header_compiler=no
19864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19866 echo "${ECHO_T}$ac_header_compiler" >&6
19868 # Is the header present?
19869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19871 cat >conftest.$ac_ext <<_ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19877 #include <$ac_header>
19879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19882 grep -v '^ *+' conftest.er1 >conftest.err
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } >/dev/null; then
19887 if test -s conftest.err; then
19888 ac_cpp_err=$ac_c_preproc_warn_flag
19889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19896 if test -z "$ac_cpp_err"; then
19897 ac_header_preproc=yes
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_header_preproc=no
19904 rm -f conftest.err conftest.$ac_ext
19905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19906 echo "${ECHO_T}$ac_header_preproc" >&6
19908 # So? What about this header?
19909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19915 ac_header_preproc=yes
19918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19932 ## ------------------------------------------ ##
19933 ## Report this to the AC_PACKAGE_NAME lists. ##
19934 ## ------------------------------------------ ##
19937 sed "s/^/$as_me: WARNING: /" >&2
19940 echo "$as_me:$LINENO: checking for $ac_header" >&5
19941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 eval "$as_ac_Header=\$ac_header_preproc"
19947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19952 cat >>confdefs.h <<_ACEOF
19953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19961 if test $ac_cv_header_pthread_h = yes ; then
19962 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19963 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19964 if test "${ol_cv_pthread_version+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 cat >conftest.$ac_ext <<_ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19975 # include <pthread.h>
19981 int i = PTHREAD_CREATE_JOINABLE;
19987 rm -f conftest.$ac_objext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19989 (eval $ac_compile) 2>conftest.er1
19991 grep -v '^ *+' conftest.er1 >conftest.err
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try='test -z "$ac_c_werror_flag"
19997 || test ! -s conftest.err'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try='test -s conftest.$ac_objext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
20010 cat >conftest.$ac_ext <<_ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20016 #include <pthread.h>
20019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20020 $EGREP "pthread_detach" >/dev/null 2>&1; then
20021 ol_cv_pthread_version=10
20023 ol_cv_pthread_version=8
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20032 cat >conftest.$ac_ext <<_ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20039 # include <pthread.h>
20040 # ifdef PTHREAD_CREATE_UNDETACHED
20045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20046 $EGREP "draft7" >/dev/null 2>&1; then
20047 ol_cv_pthread_version=7
20050 cat >conftest.$ac_ext <<_ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h. */
20056 #include <pthread.h>
20059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20060 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20061 ol_cv_pthread_version=6
20064 cat >conftest.$ac_ext <<_ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h. */
20071 # include <pthread.h>
20072 #ifdef PTHREAD_MUTEX_INITIALIZER
20077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20078 $EGREP "draft5" >/dev/null 2>&1; then
20079 ol_cv_pthread_version=5
20081 ol_cv_pthread_version=4
20092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20095 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20096 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20099 if test $ol_cv_pthread_version != 0 ; then
20101 cat >>confdefs.h <<_ACEOF
20102 #define HAVE_PTHREADS $ol_cv_pthread_version
20106 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20107 echo "$as_me: error: unknown pthread version" >&2;}
20108 { (exit 1); exit 1; }; }
20111 # consider threads found
20112 ol_with_threads=found
20115 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20116 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20117 if test "${ol_cv_header_linux_threads+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20120 cat >conftest.$ac_ext <<_ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h. */
20126 #include <pthread.h>
20128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20129 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20130 ol_cv_header_linux_threads=yes
20132 ol_cv_header_linux_threads=no
20138 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20139 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20140 if test $ol_cv_header_linux_threads = yes; then
20142 cat >>confdefs.h <<\_ACEOF
20143 #define HAVE_LINUX_THREADS 1
20149 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20150 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20151 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 cat >conftest.$ac_ext <<_ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20160 #include <pthread.h>
20161 #ifdef _POSIX_THREAD_IS_GNU_PTH
20166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20167 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20168 ol_cv_header_gnu_pth_pthread_h=yes
20170 ol_cv_header_gnu_pth_pthread_h=no
20176 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20177 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20180 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20182 for ac_header in sched.h
20184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20186 echo "$as_me:$LINENO: checking for $ac_header" >&5
20187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20194 # Is the header compilable?
20195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20197 cat >conftest.$ac_ext <<_ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20203 $ac_includes_default
20204 #include <$ac_header>
20206 rm -f conftest.$ac_objext
20207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20208 (eval $ac_compile) 2>conftest.er1
20210 grep -v '^ *+' conftest.er1 >conftest.err
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } &&
20215 { ac_try='test -z "$ac_c_werror_flag"
20216 || test ! -s conftest.err'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; } &&
20222 { ac_try='test -s conftest.$ac_objext'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
20228 ac_header_compiler=yes
20230 echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20233 ac_header_compiler=no
20235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20237 echo "${ECHO_T}$ac_header_compiler" >&6
20239 # Is the header present?
20240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20242 cat >conftest.$ac_ext <<_ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20248 #include <$ac_header>
20250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20253 grep -v '^ *+' conftest.er1 >conftest.err
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } >/dev/null; then
20258 if test -s conftest.err; then
20259 ac_cpp_err=$ac_c_preproc_warn_flag
20260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20267 if test -z "$ac_cpp_err"; then
20268 ac_header_preproc=yes
20270 echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20273 ac_header_preproc=no
20275 rm -f conftest.err conftest.$ac_ext
20276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20277 echo "${ECHO_T}$ac_header_preproc" >&6
20279 # So? What about this header?
20280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20286 ac_header_preproc=yes
20289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20303 ## ------------------------------------------ ##
20304 ## Report this to the AC_PACKAGE_NAME lists. ##
20305 ## ------------------------------------------ ##
20308 sed "s/^/$as_me: WARNING: /" >&2
20311 echo "$as_me:$LINENO: checking for $ac_header" >&5
20312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20314 echo $ECHO_N "(cached) $ECHO_C" >&6
20316 eval "$as_ac_Header=\$ac_header_preproc"
20318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20323 cat >>confdefs.h <<_ACEOF
20324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20334 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20335 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20336 if test "${ol_cv_pthread_create+set}" = set; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20340 if test "$cross_compiling" = yes; then
20341 cat >conftest.$ac_ext <<_ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20348 /* pthread test headers */
20349 #include <pthread.h>
20350 #if HAVE_PTHREADS < 7
20354 #define NULL (void*)0
20357 static void *task(p)
20360 return (void *) (p == NULL);
20367 /* pthread test function */
20368 #ifndef PTHREAD_CREATE_DETACHED
20369 #define PTHREAD_CREATE_DETACHED 1
20373 int detach = PTHREAD_CREATE_DETACHED;
20375 #if HAVE_PTHREADS > 4
20376 /* Final pthreads */
20377 pthread_attr_t attr;
20379 status = pthread_attr_init(&attr);
20380 if( status ) return status;
20382 #if HAVE_PTHREADS < 7
20383 status = pthread_attr_setdetachstate(&attr, &detach);
20384 if( status < 0 ) status = errno;
20386 status = pthread_attr_setdetachstate(&attr, detach);
20388 if( status ) return status;
20389 status = pthread_create( &t, &attr, task, NULL );
20390 #if HAVE_PTHREADS < 7
20391 if( status < 0 ) status = errno;
20393 if( status ) return status;
20395 /* Draft 4 pthreads */
20396 status = pthread_create( &t, pthread_attr_default, task, NULL );
20397 if( status ) return errno;
20399 /* give thread a chance to complete */
20400 /* it should remain joinable and hence detachable */
20403 status = pthread_detach( &t );
20404 if( status ) return errno;
20407 #ifdef HAVE_LINUX_THREADS
20408 pthread_kill_other_threads_np();
20417 rm -f conftest.$ac_objext conftest$ac_exeext
20418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20419 (eval $ac_link) 2>conftest.er1
20421 grep -v '^ *+' conftest.er1 >conftest.err
20423 cat conftest.err >&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } &&
20426 { ac_try='test -z "$ac_c_werror_flag"
20427 || test ! -s conftest.err'
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try='test -s conftest$ac_exeext'
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20439 ol_cv_pthread_create=yes
20441 echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20444 ol_cv_pthread_create=no
20446 rm -f conftest.err conftest.$ac_objext \
20447 conftest$ac_exeext conftest.$ac_ext
20449 cat >conftest.$ac_ext <<_ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20456 /* pthread test headers */
20457 #include <pthread.h>
20458 #if HAVE_PTHREADS < 7
20462 #define NULL (void*)0
20465 static void *task(p)
20468 return (void *) (p == NULL);
20472 int main(argc, argv)
20477 /* pthread test function */
20478 #ifndef PTHREAD_CREATE_DETACHED
20479 #define PTHREAD_CREATE_DETACHED 1
20483 int detach = PTHREAD_CREATE_DETACHED;
20485 #if HAVE_PTHREADS > 4
20486 /* Final pthreads */
20487 pthread_attr_t attr;
20489 status = pthread_attr_init(&attr);
20490 if( status ) return status;
20492 #if HAVE_PTHREADS < 7
20493 status = pthread_attr_setdetachstate(&attr, &detach);
20494 if( status < 0 ) status = errno;
20496 status = pthread_attr_setdetachstate(&attr, detach);
20498 if( status ) return status;
20499 status = pthread_create( &t, &attr, task, NULL );
20500 #if HAVE_PTHREADS < 7
20501 if( status < 0 ) status = errno;
20503 if( status ) return status;
20505 /* Draft 4 pthreads */
20506 status = pthread_create( &t, pthread_attr_default, task, NULL );
20507 if( status ) return errno;
20509 /* give thread a chance to complete */
20510 /* it should remain joinable and hence detachable */
20513 status = pthread_detach( &t );
20514 if( status ) return errno;
20517 #ifdef HAVE_LINUX_THREADS
20518 pthread_kill_other_threads_np();
20526 rm -f conftest$ac_exeext
20527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20528 (eval $ac_link) 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; }; then
20537 ol_cv_pthread_create=yes
20539 echo "$as_me: program exited with status $ac_status" >&5
20540 echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20543 ( exit $ac_status )
20544 ol_cv_pthread_create=no
20546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20549 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20550 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20552 if test $ol_cv_pthread_create != no ; then
20553 ol_link_threads=posix
20554 ol_link_pthreads=""
20557 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20558 if test "$ol_link_threads" = no ; then
20560 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20561 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20562 if test "${ol_cv_pthread_kthread+set}" = set; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 LIBS="-kthread $LIBS"
20570 if test "$cross_compiling" = yes; then
20571 cat >conftest.$ac_ext <<_ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h. */
20578 /* pthread test headers */
20579 #include <pthread.h>
20580 #if HAVE_PTHREADS < 7
20584 #define NULL (void*)0
20587 static void *task(p)
20590 return (void *) (p == NULL);
20597 /* pthread test function */
20598 #ifndef PTHREAD_CREATE_DETACHED
20599 #define PTHREAD_CREATE_DETACHED 1
20603 int detach = PTHREAD_CREATE_DETACHED;
20605 #if HAVE_PTHREADS > 4
20606 /* Final pthreads */
20607 pthread_attr_t attr;
20609 status = pthread_attr_init(&attr);
20610 if( status ) return status;
20612 #if HAVE_PTHREADS < 7
20613 status = pthread_attr_setdetachstate(&attr, &detach);
20614 if( status < 0 ) status = errno;
20616 status = pthread_attr_setdetachstate(&attr, detach);
20618 if( status ) return status;
20619 status = pthread_create( &t, &attr, task, NULL );
20620 #if HAVE_PTHREADS < 7
20621 if( status < 0 ) status = errno;
20623 if( status ) return status;
20625 /* Draft 4 pthreads */
20626 status = pthread_create( &t, pthread_attr_default, task, NULL );
20627 if( status ) return errno;
20629 /* give thread a chance to complete */
20630 /* it should remain joinable and hence detachable */
20633 status = pthread_detach( &t );
20634 if( status ) return errno;
20637 #ifdef HAVE_LINUX_THREADS
20638 pthread_kill_other_threads_np();
20647 rm -f conftest.$ac_objext conftest$ac_exeext
20648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20649 (eval $ac_link) 2>conftest.er1
20651 grep -v '^ *+' conftest.er1 >conftest.err
20653 cat conftest.err >&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } &&
20656 { ac_try='test -z "$ac_c_werror_flag"
20657 || test ! -s conftest.err'
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; } &&
20663 { ac_try='test -s conftest$ac_exeext'
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; }; then
20669 ol_cv_pthread_kthread=yes
20671 echo "$as_me: failed program was:" >&5
20672 sed 's/^/| /' conftest.$ac_ext >&5
20674 ol_cv_pthread_kthread=no
20676 rm -f conftest.err conftest.$ac_objext \
20677 conftest$ac_exeext conftest.$ac_ext
20679 cat >conftest.$ac_ext <<_ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20686 /* pthread test headers */
20687 #include <pthread.h>
20688 #if HAVE_PTHREADS < 7
20692 #define NULL (void*)0
20695 static void *task(p)
20698 return (void *) (p == NULL);
20702 int main(argc, argv)
20707 /* pthread test function */
20708 #ifndef PTHREAD_CREATE_DETACHED
20709 #define PTHREAD_CREATE_DETACHED 1
20713 int detach = PTHREAD_CREATE_DETACHED;
20715 #if HAVE_PTHREADS > 4
20716 /* Final pthreads */
20717 pthread_attr_t attr;
20719 status = pthread_attr_init(&attr);
20720 if( status ) return status;
20722 #if HAVE_PTHREADS < 7
20723 status = pthread_attr_setdetachstate(&attr, &detach);
20724 if( status < 0 ) status = errno;
20726 status = pthread_attr_setdetachstate(&attr, detach);
20728 if( status ) return status;
20729 status = pthread_create( &t, &attr, task, NULL );
20730 #if HAVE_PTHREADS < 7
20731 if( status < 0 ) status = errno;
20733 if( status ) return status;
20735 /* Draft 4 pthreads */
20736 status = pthread_create( &t, pthread_attr_default, task, NULL );
20737 if( status ) return errno;
20739 /* give thread a chance to complete */
20740 /* it should remain joinable and hence detachable */
20743 status = pthread_detach( &t );
20744 if( status ) return errno;
20747 #ifdef HAVE_LINUX_THREADS
20748 pthread_kill_other_threads_np();
20756 rm -f conftest$ac_exeext
20757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20758 (eval $ac_link) 2>&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
20767 ol_cv_pthread_kthread=yes
20769 echo "$as_me: program exited with status $ac_status" >&5
20770 echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20773 ( exit $ac_status )
20774 ol_cv_pthread_kthread=no
20776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20783 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20784 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20786 if test $ol_cv_pthread_kthread = yes ; then
20787 ol_link_pthreads="-kthread"
20788 ol_link_threads=posix
20792 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20793 if test "$ol_link_threads" = no ; then
20795 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20796 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20797 if test "${ol_cv_pthread_pthread+set}" = set; then
20798 echo $ECHO_N "(cached) $ECHO_C" >&6
20803 LIBS="-pthread $LIBS"
20805 if test "$cross_compiling" = yes; then
20806 cat >conftest.$ac_ext <<_ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h. */
20813 /* pthread test headers */
20814 #include <pthread.h>
20815 #if HAVE_PTHREADS < 7
20819 #define NULL (void*)0
20822 static void *task(p)
20825 return (void *) (p == NULL);
20832 /* pthread test function */
20833 #ifndef PTHREAD_CREATE_DETACHED
20834 #define PTHREAD_CREATE_DETACHED 1
20838 int detach = PTHREAD_CREATE_DETACHED;
20840 #if HAVE_PTHREADS > 4
20841 /* Final pthreads */
20842 pthread_attr_t attr;
20844 status = pthread_attr_init(&attr);
20845 if( status ) return status;
20847 #if HAVE_PTHREADS < 7
20848 status = pthread_attr_setdetachstate(&attr, &detach);
20849 if( status < 0 ) status = errno;
20851 status = pthread_attr_setdetachstate(&attr, detach);
20853 if( status ) return status;
20854 status = pthread_create( &t, &attr, task, NULL );
20855 #if HAVE_PTHREADS < 7
20856 if( status < 0 ) status = errno;
20858 if( status ) return status;
20860 /* Draft 4 pthreads */
20861 status = pthread_create( &t, pthread_attr_default, task, NULL );
20862 if( status ) return errno;
20864 /* give thread a chance to complete */
20865 /* it should remain joinable and hence detachable */
20868 status = pthread_detach( &t );
20869 if( status ) return errno;
20872 #ifdef HAVE_LINUX_THREADS
20873 pthread_kill_other_threads_np();
20882 rm -f conftest.$ac_objext conftest$ac_exeext
20883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20884 (eval $ac_link) 2>conftest.er1
20886 grep -v '^ *+' conftest.er1 >conftest.err
20888 cat conftest.err >&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); } &&
20891 { ac_try='test -z "$ac_c_werror_flag"
20892 || test ! -s conftest.err'
20893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894 (eval $ac_try) 2>&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; } &&
20898 { ac_try='test -s conftest$ac_exeext'
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; }; then
20904 ol_cv_pthread_pthread=yes
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 ol_cv_pthread_pthread=no
20911 rm -f conftest.err conftest.$ac_objext \
20912 conftest$ac_exeext conftest.$ac_ext
20914 cat >conftest.$ac_ext <<_ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h. */
20921 /* pthread test headers */
20922 #include <pthread.h>
20923 #if HAVE_PTHREADS < 7
20927 #define NULL (void*)0
20930 static void *task(p)
20933 return (void *) (p == NULL);
20937 int main(argc, argv)
20942 /* pthread test function */
20943 #ifndef PTHREAD_CREATE_DETACHED
20944 #define PTHREAD_CREATE_DETACHED 1
20948 int detach = PTHREAD_CREATE_DETACHED;
20950 #if HAVE_PTHREADS > 4
20951 /* Final pthreads */
20952 pthread_attr_t attr;
20954 status = pthread_attr_init(&attr);
20955 if( status ) return status;
20957 #if HAVE_PTHREADS < 7
20958 status = pthread_attr_setdetachstate(&attr, &detach);
20959 if( status < 0 ) status = errno;
20961 status = pthread_attr_setdetachstate(&attr, detach);
20963 if( status ) return status;
20964 status = pthread_create( &t, &attr, task, NULL );
20965 #if HAVE_PTHREADS < 7
20966 if( status < 0 ) status = errno;
20968 if( status ) return status;
20970 /* Draft 4 pthreads */
20971 status = pthread_create( &t, pthread_attr_default, task, NULL );
20972 if( status ) return errno;
20974 /* give thread a chance to complete */
20975 /* it should remain joinable and hence detachable */
20978 status = pthread_detach( &t );
20979 if( status ) return errno;
20982 #ifdef HAVE_LINUX_THREADS
20983 pthread_kill_other_threads_np();
20991 rm -f conftest$ac_exeext
20992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20993 (eval $ac_link) 2>&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20998 (eval $ac_try) 2>&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); }; }; then
21002 ol_cv_pthread_pthread=yes
21004 echo "$as_me: program exited with status $ac_status" >&5
21005 echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.$ac_ext >&5
21008 ( exit $ac_status )
21009 ol_cv_pthread_pthread=no
21011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21018 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21019 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21021 if test $ol_cv_pthread_pthread = yes ; then
21022 ol_link_pthreads="-pthread"
21023 ol_link_threads=posix
21027 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21028 if test "$ol_link_threads" = no ; then
21030 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21031 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21032 if test "${ol_cv_pthread_pthreads+set}" = set; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21038 LIBS="-pthreads $LIBS"
21040 if test "$cross_compiling" = yes; then
21041 cat >conftest.$ac_ext <<_ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h. */
21048 /* pthread test headers */
21049 #include <pthread.h>
21050 #if HAVE_PTHREADS < 7
21054 #define NULL (void*)0
21057 static void *task(p)
21060 return (void *) (p == NULL);
21067 /* pthread test function */
21068 #ifndef PTHREAD_CREATE_DETACHED
21069 #define PTHREAD_CREATE_DETACHED 1
21073 int detach = PTHREAD_CREATE_DETACHED;
21075 #if HAVE_PTHREADS > 4
21076 /* Final pthreads */
21077 pthread_attr_t attr;
21079 status = pthread_attr_init(&attr);
21080 if( status ) return status;
21082 #if HAVE_PTHREADS < 7
21083 status = pthread_attr_setdetachstate(&attr, &detach);
21084 if( status < 0 ) status = errno;
21086 status = pthread_attr_setdetachstate(&attr, detach);
21088 if( status ) return status;
21089 status = pthread_create( &t, &attr, task, NULL );
21090 #if HAVE_PTHREADS < 7
21091 if( status < 0 ) status = errno;
21093 if( status ) return status;
21095 /* Draft 4 pthreads */
21096 status = pthread_create( &t, pthread_attr_default, task, NULL );
21097 if( status ) return errno;
21099 /* give thread a chance to complete */
21100 /* it should remain joinable and hence detachable */
21103 status = pthread_detach( &t );
21104 if( status ) return errno;
21107 #ifdef HAVE_LINUX_THREADS
21108 pthread_kill_other_threads_np();
21117 rm -f conftest.$ac_objext conftest$ac_exeext
21118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21119 (eval $ac_link) 2>conftest.er1
21121 grep -v '^ *+' conftest.er1 >conftest.err
21123 cat conftest.err >&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); } &&
21126 { ac_try='test -z "$ac_c_werror_flag"
21127 || test ! -s conftest.err'
21128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21129 (eval $ac_try) 2>&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); }; } &&
21133 { ac_try='test -s conftest$ac_exeext'
21134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21135 (eval $ac_try) 2>&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); }; }; then
21139 ol_cv_pthread_pthreads=yes
21141 echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21144 ol_cv_pthread_pthreads=no
21146 rm -f conftest.err conftest.$ac_objext \
21147 conftest$ac_exeext conftest.$ac_ext
21149 cat >conftest.$ac_ext <<_ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h. */
21156 /* pthread test headers */
21157 #include <pthread.h>
21158 #if HAVE_PTHREADS < 7
21162 #define NULL (void*)0
21165 static void *task(p)
21168 return (void *) (p == NULL);
21172 int main(argc, argv)
21177 /* pthread test function */
21178 #ifndef PTHREAD_CREATE_DETACHED
21179 #define PTHREAD_CREATE_DETACHED 1
21183 int detach = PTHREAD_CREATE_DETACHED;
21185 #if HAVE_PTHREADS > 4
21186 /* Final pthreads */
21187 pthread_attr_t attr;
21189 status = pthread_attr_init(&attr);
21190 if( status ) return status;
21192 #if HAVE_PTHREADS < 7
21193 status = pthread_attr_setdetachstate(&attr, &detach);
21194 if( status < 0 ) status = errno;
21196 status = pthread_attr_setdetachstate(&attr, detach);
21198 if( status ) return status;
21199 status = pthread_create( &t, &attr, task, NULL );
21200 #if HAVE_PTHREADS < 7
21201 if( status < 0 ) status = errno;
21203 if( status ) return status;
21205 /* Draft 4 pthreads */
21206 status = pthread_create( &t, pthread_attr_default, task, NULL );
21207 if( status ) return errno;
21209 /* give thread a chance to complete */
21210 /* it should remain joinable and hence detachable */
21213 status = pthread_detach( &t );
21214 if( status ) return errno;
21217 #ifdef HAVE_LINUX_THREADS
21218 pthread_kill_other_threads_np();
21226 rm -f conftest$ac_exeext
21227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21228 (eval $ac_link) 2>&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }; then
21237 ol_cv_pthread_pthreads=yes
21239 echo "$as_me: program exited with status $ac_status" >&5
21240 echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21243 ( exit $ac_status )
21244 ol_cv_pthread_pthreads=no
21246 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21253 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21254 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21256 if test $ol_cv_pthread_pthreads = yes ; then
21257 ol_link_pthreads="-pthreads"
21258 ol_link_threads=posix
21262 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21263 if test "$ol_link_threads" = no ; then
21265 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21266 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21267 if test "${ol_cv_pthread_mthreads+set}" = set; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21273 LIBS="-mthreads $LIBS"
21275 if test "$cross_compiling" = yes; then
21276 cat >conftest.$ac_ext <<_ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21283 /* pthread test headers */
21284 #include <pthread.h>
21285 #if HAVE_PTHREADS < 7
21289 #define NULL (void*)0
21292 static void *task(p)
21295 return (void *) (p == NULL);
21302 /* pthread test function */
21303 #ifndef PTHREAD_CREATE_DETACHED
21304 #define PTHREAD_CREATE_DETACHED 1
21308 int detach = PTHREAD_CREATE_DETACHED;
21310 #if HAVE_PTHREADS > 4
21311 /* Final pthreads */
21312 pthread_attr_t attr;
21314 status = pthread_attr_init(&attr);
21315 if( status ) return status;
21317 #if HAVE_PTHREADS < 7
21318 status = pthread_attr_setdetachstate(&attr, &detach);
21319 if( status < 0 ) status = errno;
21321 status = pthread_attr_setdetachstate(&attr, detach);
21323 if( status ) return status;
21324 status = pthread_create( &t, &attr, task, NULL );
21325 #if HAVE_PTHREADS < 7
21326 if( status < 0 ) status = errno;
21328 if( status ) return status;
21330 /* Draft 4 pthreads */
21331 status = pthread_create( &t, pthread_attr_default, task, NULL );
21332 if( status ) return errno;
21334 /* give thread a chance to complete */
21335 /* it should remain joinable and hence detachable */
21338 status = pthread_detach( &t );
21339 if( status ) return errno;
21342 #ifdef HAVE_LINUX_THREADS
21343 pthread_kill_other_threads_np();
21352 rm -f conftest.$ac_objext conftest$ac_exeext
21353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21354 (eval $ac_link) 2>conftest.er1
21356 grep -v '^ *+' conftest.er1 >conftest.err
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } &&
21361 { ac_try='test -z "$ac_c_werror_flag"
21362 || test ! -s conftest.err'
21363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; } &&
21368 { ac_try='test -s conftest$ac_exeext'
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; }; then
21374 ol_cv_pthread_mthreads=yes
21376 echo "$as_me: failed program was:" >&5
21377 sed 's/^/| /' conftest.$ac_ext >&5
21379 ol_cv_pthread_mthreads=no
21381 rm -f conftest.err conftest.$ac_objext \
21382 conftest$ac_exeext conftest.$ac_ext
21384 cat >conftest.$ac_ext <<_ACEOF
21387 cat confdefs.h >>conftest.$ac_ext
21388 cat >>conftest.$ac_ext <<_ACEOF
21389 /* end confdefs.h. */
21391 /* pthread test headers */
21392 #include <pthread.h>
21393 #if HAVE_PTHREADS < 7
21397 #define NULL (void*)0
21400 static void *task(p)
21403 return (void *) (p == NULL);
21407 int main(argc, argv)
21412 /* pthread test function */
21413 #ifndef PTHREAD_CREATE_DETACHED
21414 #define PTHREAD_CREATE_DETACHED 1
21418 int detach = PTHREAD_CREATE_DETACHED;
21420 #if HAVE_PTHREADS > 4
21421 /* Final pthreads */
21422 pthread_attr_t attr;
21424 status = pthread_attr_init(&attr);
21425 if( status ) return status;
21427 #if HAVE_PTHREADS < 7
21428 status = pthread_attr_setdetachstate(&attr, &detach);
21429 if( status < 0 ) status = errno;
21431 status = pthread_attr_setdetachstate(&attr, detach);
21433 if( status ) return status;
21434 status = pthread_create( &t, &attr, task, NULL );
21435 #if HAVE_PTHREADS < 7
21436 if( status < 0 ) status = errno;
21438 if( status ) return status;
21440 /* Draft 4 pthreads */
21441 status = pthread_create( &t, pthread_attr_default, task, NULL );
21442 if( status ) return errno;
21444 /* give thread a chance to complete */
21445 /* it should remain joinable and hence detachable */
21448 status = pthread_detach( &t );
21449 if( status ) return errno;
21452 #ifdef HAVE_LINUX_THREADS
21453 pthread_kill_other_threads_np();
21461 rm -f conftest$ac_exeext
21462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21463 (eval $ac_link) 2>&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21468 (eval $ac_try) 2>&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); }; }; then
21472 ol_cv_pthread_mthreads=yes
21474 echo "$as_me: program exited with status $ac_status" >&5
21475 echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21478 ( exit $ac_status )
21479 ol_cv_pthread_mthreads=no
21481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21488 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21489 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21491 if test $ol_cv_pthread_mthreads = yes ; then
21492 ol_link_pthreads="-mthreads"
21493 ol_link_threads=posix
21497 # Pthread try link: -thread (ol_cv_pthread_thread)
21498 if test "$ol_link_threads" = no ; then
21500 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21501 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21502 if test "${ol_cv_pthread_thread+set}" = set; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 LIBS="-thread $LIBS"
21510 if test "$cross_compiling" = yes; then
21511 cat >conftest.$ac_ext <<_ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21518 /* pthread test headers */
21519 #include <pthread.h>
21520 #if HAVE_PTHREADS < 7
21524 #define NULL (void*)0
21527 static void *task(p)
21530 return (void *) (p == NULL);
21537 /* pthread test function */
21538 #ifndef PTHREAD_CREATE_DETACHED
21539 #define PTHREAD_CREATE_DETACHED 1
21543 int detach = PTHREAD_CREATE_DETACHED;
21545 #if HAVE_PTHREADS > 4
21546 /* Final pthreads */
21547 pthread_attr_t attr;
21549 status = pthread_attr_init(&attr);
21550 if( status ) return status;
21552 #if HAVE_PTHREADS < 7
21553 status = pthread_attr_setdetachstate(&attr, &detach);
21554 if( status < 0 ) status = errno;
21556 status = pthread_attr_setdetachstate(&attr, detach);
21558 if( status ) return status;
21559 status = pthread_create( &t, &attr, task, NULL );
21560 #if HAVE_PTHREADS < 7
21561 if( status < 0 ) status = errno;
21563 if( status ) return status;
21565 /* Draft 4 pthreads */
21566 status = pthread_create( &t, pthread_attr_default, task, NULL );
21567 if( status ) return errno;
21569 /* give thread a chance to complete */
21570 /* it should remain joinable and hence detachable */
21573 status = pthread_detach( &t );
21574 if( status ) return errno;
21577 #ifdef HAVE_LINUX_THREADS
21578 pthread_kill_other_threads_np();
21587 rm -f conftest.$ac_objext conftest$ac_exeext
21588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21589 (eval $ac_link) 2>conftest.er1
21591 grep -v '^ *+' conftest.er1 >conftest.err
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } &&
21596 { ac_try='test -z "$ac_c_werror_flag"
21597 || test ! -s conftest.err'
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; } &&
21603 { ac_try='test -s conftest$ac_exeext'
21604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605 (eval $ac_try) 2>&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; }; then
21609 ol_cv_pthread_thread=yes
21611 echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21614 ol_cv_pthread_thread=no
21616 rm -f conftest.err conftest.$ac_objext \
21617 conftest$ac_exeext conftest.$ac_ext
21619 cat >conftest.$ac_ext <<_ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h. */
21626 /* pthread test headers */
21627 #include <pthread.h>
21628 #if HAVE_PTHREADS < 7
21632 #define NULL (void*)0
21635 static void *task(p)
21638 return (void *) (p == NULL);
21642 int main(argc, argv)
21647 /* pthread test function */
21648 #ifndef PTHREAD_CREATE_DETACHED
21649 #define PTHREAD_CREATE_DETACHED 1
21653 int detach = PTHREAD_CREATE_DETACHED;
21655 #if HAVE_PTHREADS > 4
21656 /* Final pthreads */
21657 pthread_attr_t attr;
21659 status = pthread_attr_init(&attr);
21660 if( status ) return status;
21662 #if HAVE_PTHREADS < 7
21663 status = pthread_attr_setdetachstate(&attr, &detach);
21664 if( status < 0 ) status = errno;
21666 status = pthread_attr_setdetachstate(&attr, detach);
21668 if( status ) return status;
21669 status = pthread_create( &t, &attr, task, NULL );
21670 #if HAVE_PTHREADS < 7
21671 if( status < 0 ) status = errno;
21673 if( status ) return status;
21675 /* Draft 4 pthreads */
21676 status = pthread_create( &t, pthread_attr_default, task, NULL );
21677 if( status ) return errno;
21679 /* give thread a chance to complete */
21680 /* it should remain joinable and hence detachable */
21683 status = pthread_detach( &t );
21684 if( status ) return errno;
21687 #ifdef HAVE_LINUX_THREADS
21688 pthread_kill_other_threads_np();
21696 rm -f conftest$ac_exeext
21697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21698 (eval $ac_link) 2>&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703 (eval $ac_try) 2>&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; }; then
21707 ol_cv_pthread_thread=yes
21709 echo "$as_me: program exited with status $ac_status" >&5
21710 echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21713 ( exit $ac_status )
21714 ol_cv_pthread_thread=no
21716 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21723 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21724 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21726 if test $ol_cv_pthread_thread = yes ; then
21727 ol_link_pthreads="-thread"
21728 ol_link_threads=posix
21733 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21734 if test "$ol_link_threads" = no ; then
21735 # try -lpthread -lmach -lexc -lc_r
21736 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21737 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21738 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21739 echo $ECHO_N "(cached) $ECHO_C" >&6
21744 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21746 if test "$cross_compiling" = yes; then
21747 cat >conftest.$ac_ext <<_ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h. */
21754 /* pthread test headers */
21755 #include <pthread.h>
21756 #if HAVE_PTHREADS < 7
21760 #define NULL (void*)0
21763 static void *task(p)
21766 return (void *) (p == NULL);
21773 /* pthread test function */
21774 #ifndef PTHREAD_CREATE_DETACHED
21775 #define PTHREAD_CREATE_DETACHED 1
21779 int detach = PTHREAD_CREATE_DETACHED;
21781 #if HAVE_PTHREADS > 4
21782 /* Final pthreads */
21783 pthread_attr_t attr;
21785 status = pthread_attr_init(&attr);
21786 if( status ) return status;
21788 #if HAVE_PTHREADS < 7
21789 status = pthread_attr_setdetachstate(&attr, &detach);
21790 if( status < 0 ) status = errno;
21792 status = pthread_attr_setdetachstate(&attr, detach);
21794 if( status ) return status;
21795 status = pthread_create( &t, &attr, task, NULL );
21796 #if HAVE_PTHREADS < 7
21797 if( status < 0 ) status = errno;
21799 if( status ) return status;
21801 /* Draft 4 pthreads */
21802 status = pthread_create( &t, pthread_attr_default, task, NULL );
21803 if( status ) return errno;
21805 /* give thread a chance to complete */
21806 /* it should remain joinable and hence detachable */
21809 status = pthread_detach( &t );
21810 if( status ) return errno;
21813 #ifdef HAVE_LINUX_THREADS
21814 pthread_kill_other_threads_np();
21823 rm -f conftest.$ac_objext conftest$ac_exeext
21824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21825 (eval $ac_link) 2>conftest.er1
21827 grep -v '^ *+' conftest.er1 >conftest.err
21829 cat conftest.err >&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } &&
21832 { ac_try='test -z "$ac_c_werror_flag"
21833 || test ! -s conftest.err'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; } &&
21839 { ac_try='test -s conftest$ac_exeext'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; }; then
21845 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21847 echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21850 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21852 rm -f conftest.err conftest.$ac_objext \
21853 conftest$ac_exeext conftest.$ac_ext
21855 cat >conftest.$ac_ext <<_ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h. */
21862 /* pthread test headers */
21863 #include <pthread.h>
21864 #if HAVE_PTHREADS < 7
21868 #define NULL (void*)0
21871 static void *task(p)
21874 return (void *) (p == NULL);
21878 int main(argc, argv)
21883 /* pthread test function */
21884 #ifndef PTHREAD_CREATE_DETACHED
21885 #define PTHREAD_CREATE_DETACHED 1
21889 int detach = PTHREAD_CREATE_DETACHED;
21891 #if HAVE_PTHREADS > 4
21892 /* Final pthreads */
21893 pthread_attr_t attr;
21895 status = pthread_attr_init(&attr);
21896 if( status ) return status;
21898 #if HAVE_PTHREADS < 7
21899 status = pthread_attr_setdetachstate(&attr, &detach);
21900 if( status < 0 ) status = errno;
21902 status = pthread_attr_setdetachstate(&attr, detach);
21904 if( status ) return status;
21905 status = pthread_create( &t, &attr, task, NULL );
21906 #if HAVE_PTHREADS < 7
21907 if( status < 0 ) status = errno;
21909 if( status ) return status;
21911 /* Draft 4 pthreads */
21912 status = pthread_create( &t, pthread_attr_default, task, NULL );
21913 if( status ) return errno;
21915 /* give thread a chance to complete */
21916 /* it should remain joinable and hence detachable */
21919 status = pthread_detach( &t );
21920 if( status ) return errno;
21923 #ifdef HAVE_LINUX_THREADS
21924 pthread_kill_other_threads_np();
21932 rm -f conftest$ac_exeext
21933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21934 (eval $ac_link) 2>&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939 (eval $ac_try) 2>&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); }; }; then
21943 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21945 echo "$as_me: program exited with status $ac_status" >&5
21946 echo "$as_me: failed program was:" >&5
21947 sed 's/^/| /' conftest.$ac_ext >&5
21949 ( exit $ac_status )
21950 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21959 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21960 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21962 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21963 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21964 ol_link_threads=posix
21968 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21969 if test "$ol_link_threads" = no ; then
21970 # try -lpthread -lmach -lexc
21971 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21972 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21973 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21974 echo $ECHO_N "(cached) $ECHO_C" >&6
21979 LIBS="-lpthread -lmach -lexc $LIBS"
21981 if test "$cross_compiling" = yes; then
21982 cat >conftest.$ac_ext <<_ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21989 /* pthread test headers */
21990 #include <pthread.h>
21991 #if HAVE_PTHREADS < 7
21995 #define NULL (void*)0
21998 static void *task(p)
22001 return (void *) (p == NULL);
22008 /* pthread test function */
22009 #ifndef PTHREAD_CREATE_DETACHED
22010 #define PTHREAD_CREATE_DETACHED 1
22014 int detach = PTHREAD_CREATE_DETACHED;
22016 #if HAVE_PTHREADS > 4
22017 /* Final pthreads */
22018 pthread_attr_t attr;
22020 status = pthread_attr_init(&attr);
22021 if( status ) return status;
22023 #if HAVE_PTHREADS < 7
22024 status = pthread_attr_setdetachstate(&attr, &detach);
22025 if( status < 0 ) status = errno;
22027 status = pthread_attr_setdetachstate(&attr, detach);
22029 if( status ) return status;
22030 status = pthread_create( &t, &attr, task, NULL );
22031 #if HAVE_PTHREADS < 7
22032 if( status < 0 ) status = errno;
22034 if( status ) return status;
22036 /* Draft 4 pthreads */
22037 status = pthread_create( &t, pthread_attr_default, task, NULL );
22038 if( status ) return errno;
22040 /* give thread a chance to complete */
22041 /* it should remain joinable and hence detachable */
22044 status = pthread_detach( &t );
22045 if( status ) return errno;
22048 #ifdef HAVE_LINUX_THREADS
22049 pthread_kill_other_threads_np();
22058 rm -f conftest.$ac_objext conftest$ac_exeext
22059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22060 (eval $ac_link) 2>conftest.er1
22062 grep -v '^ *+' conftest.er1 >conftest.err
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } &&
22067 { ac_try='test -z "$ac_c_werror_flag"
22068 || test ! -s conftest.err'
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; } &&
22074 { ac_try='test -s conftest$ac_exeext'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }; then
22080 ol_cv_pthread_lpthread_lmach_lexc=yes
22082 echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22085 ol_cv_pthread_lpthread_lmach_lexc=no
22087 rm -f conftest.err conftest.$ac_objext \
22088 conftest$ac_exeext conftest.$ac_ext
22090 cat >conftest.$ac_ext <<_ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22097 /* pthread test headers */
22098 #include <pthread.h>
22099 #if HAVE_PTHREADS < 7
22103 #define NULL (void*)0
22106 static void *task(p)
22109 return (void *) (p == NULL);
22113 int main(argc, argv)
22118 /* pthread test function */
22119 #ifndef PTHREAD_CREATE_DETACHED
22120 #define PTHREAD_CREATE_DETACHED 1
22124 int detach = PTHREAD_CREATE_DETACHED;
22126 #if HAVE_PTHREADS > 4
22127 /* Final pthreads */
22128 pthread_attr_t attr;
22130 status = pthread_attr_init(&attr);
22131 if( status ) return status;
22133 #if HAVE_PTHREADS < 7
22134 status = pthread_attr_setdetachstate(&attr, &detach);
22135 if( status < 0 ) status = errno;
22137 status = pthread_attr_setdetachstate(&attr, detach);
22139 if( status ) return status;
22140 status = pthread_create( &t, &attr, task, NULL );
22141 #if HAVE_PTHREADS < 7
22142 if( status < 0 ) status = errno;
22144 if( status ) return status;
22146 /* Draft 4 pthreads */
22147 status = pthread_create( &t, pthread_attr_default, task, NULL );
22148 if( status ) return errno;
22150 /* give thread a chance to complete */
22151 /* it should remain joinable and hence detachable */
22154 status = pthread_detach( &t );
22155 if( status ) return errno;
22158 #ifdef HAVE_LINUX_THREADS
22159 pthread_kill_other_threads_np();
22167 rm -f conftest$ac_exeext
22168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22169 (eval $ac_link) 2>&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 ol_cv_pthread_lpthread_lmach_lexc=yes
22180 echo "$as_me: program exited with status $ac_status" >&5
22181 echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22184 ( exit $ac_status )
22185 ol_cv_pthread_lpthread_lmach_lexc=no
22187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22194 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22195 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22197 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22198 ol_link_pthreads="-lpthread -lmach -lexc"
22199 ol_link_threads=posix
22204 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22205 if test "$ol_link_threads" = no ; then
22206 # try -lpthread -Wl,-woff,85
22207 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22208 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22209 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22210 echo $ECHO_N "(cached) $ECHO_C" >&6
22215 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22217 if test "$cross_compiling" = yes; then
22218 cat >conftest.$ac_ext <<_ACEOF
22221 cat confdefs.h >>conftest.$ac_ext
22222 cat >>conftest.$ac_ext <<_ACEOF
22223 /* end confdefs.h. */
22225 /* pthread test headers */
22226 #include <pthread.h>
22227 #if HAVE_PTHREADS < 7
22231 #define NULL (void*)0
22234 static void *task(p)
22237 return (void *) (p == NULL);
22244 /* pthread test function */
22245 #ifndef PTHREAD_CREATE_DETACHED
22246 #define PTHREAD_CREATE_DETACHED 1
22250 int detach = PTHREAD_CREATE_DETACHED;
22252 #if HAVE_PTHREADS > 4
22253 /* Final pthreads */
22254 pthread_attr_t attr;
22256 status = pthread_attr_init(&attr);
22257 if( status ) return status;
22259 #if HAVE_PTHREADS < 7
22260 status = pthread_attr_setdetachstate(&attr, &detach);
22261 if( status < 0 ) status = errno;
22263 status = pthread_attr_setdetachstate(&attr, detach);
22265 if( status ) return status;
22266 status = pthread_create( &t, &attr, task, NULL );
22267 #if HAVE_PTHREADS < 7
22268 if( status < 0 ) status = errno;
22270 if( status ) return status;
22272 /* Draft 4 pthreads */
22273 status = pthread_create( &t, pthread_attr_default, task, NULL );
22274 if( status ) return errno;
22276 /* give thread a chance to complete */
22277 /* it should remain joinable and hence detachable */
22280 status = pthread_detach( &t );
22281 if( status ) return errno;
22284 #ifdef HAVE_LINUX_THREADS
22285 pthread_kill_other_threads_np();
22294 rm -f conftest.$ac_objext conftest$ac_exeext
22295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22296 (eval $ac_link) 2>conftest.er1
22298 grep -v '^ *+' conftest.er1 >conftest.err
22300 cat conftest.err >&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } &&
22303 { ac_try='test -z "$ac_c_werror_flag"
22304 || test ! -s conftest.err'
22305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306 (eval $ac_try) 2>&5
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; } &&
22310 { ac_try='test -s conftest$ac_exeext'
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; }; then
22316 ol_cv_pthread_lib_lpthread_woff=yes
22318 echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22321 ol_cv_pthread_lib_lpthread_woff=no
22323 rm -f conftest.err conftest.$ac_objext \
22324 conftest$ac_exeext conftest.$ac_ext
22326 cat >conftest.$ac_ext <<_ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22333 /* pthread test headers */
22334 #include <pthread.h>
22335 #if HAVE_PTHREADS < 7
22339 #define NULL (void*)0
22342 static void *task(p)
22345 return (void *) (p == NULL);
22349 int main(argc, argv)
22354 /* pthread test function */
22355 #ifndef PTHREAD_CREATE_DETACHED
22356 #define PTHREAD_CREATE_DETACHED 1
22360 int detach = PTHREAD_CREATE_DETACHED;
22362 #if HAVE_PTHREADS > 4
22363 /* Final pthreads */
22364 pthread_attr_t attr;
22366 status = pthread_attr_init(&attr);
22367 if( status ) return status;
22369 #if HAVE_PTHREADS < 7
22370 status = pthread_attr_setdetachstate(&attr, &detach);
22371 if( status < 0 ) status = errno;
22373 status = pthread_attr_setdetachstate(&attr, detach);
22375 if( status ) return status;
22376 status = pthread_create( &t, &attr, task, NULL );
22377 #if HAVE_PTHREADS < 7
22378 if( status < 0 ) status = errno;
22380 if( status ) return status;
22382 /* Draft 4 pthreads */
22383 status = pthread_create( &t, pthread_attr_default, task, NULL );
22384 if( status ) return errno;
22386 /* give thread a chance to complete */
22387 /* it should remain joinable and hence detachable */
22390 status = pthread_detach( &t );
22391 if( status ) return errno;
22394 #ifdef HAVE_LINUX_THREADS
22395 pthread_kill_other_threads_np();
22403 rm -f conftest$ac_exeext
22404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22405 (eval $ac_link) 2>&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410 (eval $ac_try) 2>&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; }; then
22414 ol_cv_pthread_lib_lpthread_woff=yes
22416 echo "$as_me: program exited with status $ac_status" >&5
22417 echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22420 ( exit $ac_status )
22421 ol_cv_pthread_lib_lpthread_woff=no
22423 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22430 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22431 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22433 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22434 ol_link_pthreads="-lpthread -Wl,-woff,85"
22435 ol_link_threads=posix
22440 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22441 if test "$ol_link_threads" = no ; then
22443 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22444 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22445 if test "${ol_cv_pthread_lpthread+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22451 LIBS="-lpthread $LIBS"
22453 if test "$cross_compiling" = yes; then
22454 cat >conftest.$ac_ext <<_ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h. */
22461 /* pthread test headers */
22462 #include <pthread.h>
22463 #if HAVE_PTHREADS < 7
22467 #define NULL (void*)0
22470 static void *task(p)
22473 return (void *) (p == NULL);
22480 /* pthread test function */
22481 #ifndef PTHREAD_CREATE_DETACHED
22482 #define PTHREAD_CREATE_DETACHED 1
22486 int detach = PTHREAD_CREATE_DETACHED;
22488 #if HAVE_PTHREADS > 4
22489 /* Final pthreads */
22490 pthread_attr_t attr;
22492 status = pthread_attr_init(&attr);
22493 if( status ) return status;
22495 #if HAVE_PTHREADS < 7
22496 status = pthread_attr_setdetachstate(&attr, &detach);
22497 if( status < 0 ) status = errno;
22499 status = pthread_attr_setdetachstate(&attr, detach);
22501 if( status ) return status;
22502 status = pthread_create( &t, &attr, task, NULL );
22503 #if HAVE_PTHREADS < 7
22504 if( status < 0 ) status = errno;
22506 if( status ) return status;
22508 /* Draft 4 pthreads */
22509 status = pthread_create( &t, pthread_attr_default, task, NULL );
22510 if( status ) return errno;
22512 /* give thread a chance to complete */
22513 /* it should remain joinable and hence detachable */
22516 status = pthread_detach( &t );
22517 if( status ) return errno;
22520 #ifdef HAVE_LINUX_THREADS
22521 pthread_kill_other_threads_np();
22530 rm -f conftest.$ac_objext conftest$ac_exeext
22531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22532 (eval $ac_link) 2>conftest.er1
22534 grep -v '^ *+' conftest.er1 >conftest.err
22536 cat conftest.err >&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } &&
22539 { ac_try='test -z "$ac_c_werror_flag"
22540 || test ! -s conftest.err'
22541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542 (eval $ac_try) 2>&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; } &&
22546 { ac_try='test -s conftest$ac_exeext'
22547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548 (eval $ac_try) 2>&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; }; then
22552 ol_cv_pthread_lpthread=yes
22554 echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22557 ol_cv_pthread_lpthread=no
22559 rm -f conftest.err conftest.$ac_objext \
22560 conftest$ac_exeext conftest.$ac_ext
22562 cat >conftest.$ac_ext <<_ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h. */
22569 /* pthread test headers */
22570 #include <pthread.h>
22571 #if HAVE_PTHREADS < 7
22575 #define NULL (void*)0
22578 static void *task(p)
22581 return (void *) (p == NULL);
22585 int main(argc, argv)
22590 /* pthread test function */
22591 #ifndef PTHREAD_CREATE_DETACHED
22592 #define PTHREAD_CREATE_DETACHED 1
22596 int detach = PTHREAD_CREATE_DETACHED;
22598 #if HAVE_PTHREADS > 4
22599 /* Final pthreads */
22600 pthread_attr_t attr;
22602 status = pthread_attr_init(&attr);
22603 if( status ) return status;
22605 #if HAVE_PTHREADS < 7
22606 status = pthread_attr_setdetachstate(&attr, &detach);
22607 if( status < 0 ) status = errno;
22609 status = pthread_attr_setdetachstate(&attr, detach);
22611 if( status ) return status;
22612 status = pthread_create( &t, &attr, task, NULL );
22613 #if HAVE_PTHREADS < 7
22614 if( status < 0 ) status = errno;
22616 if( status ) return status;
22618 /* Draft 4 pthreads */
22619 status = pthread_create( &t, pthread_attr_default, task, NULL );
22620 if( status ) return errno;
22622 /* give thread a chance to complete */
22623 /* it should remain joinable and hence detachable */
22626 status = pthread_detach( &t );
22627 if( status ) return errno;
22630 #ifdef HAVE_LINUX_THREADS
22631 pthread_kill_other_threads_np();
22639 rm -f conftest$ac_exeext
22640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22641 (eval $ac_link) 2>&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646 (eval $ac_try) 2>&5
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); }; }; then
22650 ol_cv_pthread_lpthread=yes
22652 echo "$as_me: program exited with status $ac_status" >&5
22653 echo "$as_me: failed program was:" >&5
22654 sed 's/^/| /' conftest.$ac_ext >&5
22656 ( exit $ac_status )
22657 ol_cv_pthread_lpthread=no
22659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22666 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22667 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22669 if test $ol_cv_pthread_lpthread = yes ; then
22670 ol_link_pthreads="-lpthread"
22671 ol_link_threads=posix
22675 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22676 if test "$ol_link_threads" = no ; then
22678 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22679 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22680 if test "${ol_cv_pthread_lc_r+set}" = set; then
22681 echo $ECHO_N "(cached) $ECHO_C" >&6
22688 if test "$cross_compiling" = yes; then
22689 cat >conftest.$ac_ext <<_ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22696 /* pthread test headers */
22697 #include <pthread.h>
22698 #if HAVE_PTHREADS < 7
22702 #define NULL (void*)0
22705 static void *task(p)
22708 return (void *) (p == NULL);
22715 /* pthread test function */
22716 #ifndef PTHREAD_CREATE_DETACHED
22717 #define PTHREAD_CREATE_DETACHED 1
22721 int detach = PTHREAD_CREATE_DETACHED;
22723 #if HAVE_PTHREADS > 4
22724 /* Final pthreads */
22725 pthread_attr_t attr;
22727 status = pthread_attr_init(&attr);
22728 if( status ) return status;
22730 #if HAVE_PTHREADS < 7
22731 status = pthread_attr_setdetachstate(&attr, &detach);
22732 if( status < 0 ) status = errno;
22734 status = pthread_attr_setdetachstate(&attr, detach);
22736 if( status ) return status;
22737 status = pthread_create( &t, &attr, task, NULL );
22738 #if HAVE_PTHREADS < 7
22739 if( status < 0 ) status = errno;
22741 if( status ) return status;
22743 /* Draft 4 pthreads */
22744 status = pthread_create( &t, pthread_attr_default, task, NULL );
22745 if( status ) return errno;
22747 /* give thread a chance to complete */
22748 /* it should remain joinable and hence detachable */
22751 status = pthread_detach( &t );
22752 if( status ) return errno;
22755 #ifdef HAVE_LINUX_THREADS
22756 pthread_kill_other_threads_np();
22765 rm -f conftest.$ac_objext conftest$ac_exeext
22766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22767 (eval $ac_link) 2>conftest.er1
22769 grep -v '^ *+' conftest.er1 >conftest.err
22771 cat conftest.err >&5
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); } &&
22774 { ac_try='test -z "$ac_c_werror_flag"
22775 || test ! -s conftest.err'
22776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777 (eval $ac_try) 2>&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; } &&
22781 { ac_try='test -s conftest$ac_exeext'
22782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783 (eval $ac_try) 2>&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; }; then
22787 ol_cv_pthread_lc_r=yes
22789 echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22792 ol_cv_pthread_lc_r=no
22794 rm -f conftest.err conftest.$ac_objext \
22795 conftest$ac_exeext conftest.$ac_ext
22797 cat >conftest.$ac_ext <<_ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22804 /* pthread test headers */
22805 #include <pthread.h>
22806 #if HAVE_PTHREADS < 7
22810 #define NULL (void*)0
22813 static void *task(p)
22816 return (void *) (p == NULL);
22820 int main(argc, argv)
22825 /* pthread test function */
22826 #ifndef PTHREAD_CREATE_DETACHED
22827 #define PTHREAD_CREATE_DETACHED 1
22831 int detach = PTHREAD_CREATE_DETACHED;
22833 #if HAVE_PTHREADS > 4
22834 /* Final pthreads */
22835 pthread_attr_t attr;
22837 status = pthread_attr_init(&attr);
22838 if( status ) return status;
22840 #if HAVE_PTHREADS < 7
22841 status = pthread_attr_setdetachstate(&attr, &detach);
22842 if( status < 0 ) status = errno;
22844 status = pthread_attr_setdetachstate(&attr, detach);
22846 if( status ) return status;
22847 status = pthread_create( &t, &attr, task, NULL );
22848 #if HAVE_PTHREADS < 7
22849 if( status < 0 ) status = errno;
22851 if( status ) return status;
22853 /* Draft 4 pthreads */
22854 status = pthread_create( &t, pthread_attr_default, task, NULL );
22855 if( status ) return errno;
22857 /* give thread a chance to complete */
22858 /* it should remain joinable and hence detachable */
22861 status = pthread_detach( &t );
22862 if( status ) return errno;
22865 #ifdef HAVE_LINUX_THREADS
22866 pthread_kill_other_threads_np();
22874 rm -f conftest$ac_exeext
22875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22876 (eval $ac_link) 2>&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881 (eval $ac_try) 2>&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); }; }; then
22885 ol_cv_pthread_lc_r=yes
22887 echo "$as_me: program exited with status $ac_status" >&5
22888 echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22891 ( exit $ac_status )
22892 ol_cv_pthread_lc_r=no
22894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22901 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22902 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22904 if test $ol_cv_pthread_lc_r = yes ; then
22905 ol_link_pthreads="-lc_r"
22906 ol_link_threads=posix
22911 # Pthread try link: -threads (ol_cv_pthread_threads)
22912 if test "$ol_link_threads" = no ; then
22914 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22915 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22916 if test "${ol_cv_pthread_threads+set}" = set; then
22917 echo $ECHO_N "(cached) $ECHO_C" >&6
22922 LIBS="-threads $LIBS"
22924 if test "$cross_compiling" = yes; then
22925 cat >conftest.$ac_ext <<_ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22932 /* pthread test headers */
22933 #include <pthread.h>
22934 #if HAVE_PTHREADS < 7
22938 #define NULL (void*)0
22941 static void *task(p)
22944 return (void *) (p == NULL);
22951 /* pthread test function */
22952 #ifndef PTHREAD_CREATE_DETACHED
22953 #define PTHREAD_CREATE_DETACHED 1
22957 int detach = PTHREAD_CREATE_DETACHED;
22959 #if HAVE_PTHREADS > 4
22960 /* Final pthreads */
22961 pthread_attr_t attr;
22963 status = pthread_attr_init(&attr);
22964 if( status ) return status;
22966 #if HAVE_PTHREADS < 7
22967 status = pthread_attr_setdetachstate(&attr, &detach);
22968 if( status < 0 ) status = errno;
22970 status = pthread_attr_setdetachstate(&attr, detach);
22972 if( status ) return status;
22973 status = pthread_create( &t, &attr, task, NULL );
22974 #if HAVE_PTHREADS < 7
22975 if( status < 0 ) status = errno;
22977 if( status ) return status;
22979 /* Draft 4 pthreads */
22980 status = pthread_create( &t, pthread_attr_default, task, NULL );
22981 if( status ) return errno;
22983 /* give thread a chance to complete */
22984 /* it should remain joinable and hence detachable */
22987 status = pthread_detach( &t );
22988 if( status ) return errno;
22991 #ifdef HAVE_LINUX_THREADS
22992 pthread_kill_other_threads_np();
23001 rm -f conftest.$ac_objext conftest$ac_exeext
23002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23003 (eval $ac_link) 2>conftest.er1
23005 grep -v '^ *+' conftest.er1 >conftest.err
23007 cat conftest.err >&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } &&
23010 { ac_try='test -z "$ac_c_werror_flag"
23011 || test ! -s conftest.err'
23012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013 (eval $ac_try) 2>&5
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); }; } &&
23017 { ac_try='test -s conftest$ac_exeext'
23018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23019 (eval $ac_try) 2>&5
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); }; }; then
23023 ol_cv_pthread_threads=yes
23025 echo "$as_me: failed program was:" >&5
23026 sed 's/^/| /' conftest.$ac_ext >&5
23028 ol_cv_pthread_threads=no
23030 rm -f conftest.err conftest.$ac_objext \
23031 conftest$ac_exeext conftest.$ac_ext
23033 cat >conftest.$ac_ext <<_ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h. */
23040 /* pthread test headers */
23041 #include <pthread.h>
23042 #if HAVE_PTHREADS < 7
23046 #define NULL (void*)0
23049 static void *task(p)
23052 return (void *) (p == NULL);
23056 int main(argc, argv)
23061 /* pthread test function */
23062 #ifndef PTHREAD_CREATE_DETACHED
23063 #define PTHREAD_CREATE_DETACHED 1
23067 int detach = PTHREAD_CREATE_DETACHED;
23069 #if HAVE_PTHREADS > 4
23070 /* Final pthreads */
23071 pthread_attr_t attr;
23073 status = pthread_attr_init(&attr);
23074 if( status ) return status;
23076 #if HAVE_PTHREADS < 7
23077 status = pthread_attr_setdetachstate(&attr, &detach);
23078 if( status < 0 ) status = errno;
23080 status = pthread_attr_setdetachstate(&attr, detach);
23082 if( status ) return status;
23083 status = pthread_create( &t, &attr, task, NULL );
23084 #if HAVE_PTHREADS < 7
23085 if( status < 0 ) status = errno;
23087 if( status ) return status;
23089 /* Draft 4 pthreads */
23090 status = pthread_create( &t, pthread_attr_default, task, NULL );
23091 if( status ) return errno;
23093 /* give thread a chance to complete */
23094 /* it should remain joinable and hence detachable */
23097 status = pthread_detach( &t );
23098 if( status ) return errno;
23101 #ifdef HAVE_LINUX_THREADS
23102 pthread_kill_other_threads_np();
23110 rm -f conftest$ac_exeext
23111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23112 (eval $ac_link) 2>&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117 (eval $ac_try) 2>&5
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); }; }; then
23121 ol_cv_pthread_threads=yes
23123 echo "$as_me: program exited with status $ac_status" >&5
23124 echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23127 ( exit $ac_status )
23128 ol_cv_pthread_threads=no
23130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23137 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23138 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23140 if test $ol_cv_pthread_threads = yes ; then
23141 ol_link_pthreads="-threads"
23142 ol_link_threads=posix
23147 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23148 if test "$ol_link_threads" = no ; then
23149 # try -lpthreads -lmach -lexc -lc_r
23150 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23151 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23152 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23158 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23160 if test "$cross_compiling" = yes; then
23161 cat >conftest.$ac_ext <<_ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h. */
23168 /* pthread test headers */
23169 #include <pthread.h>
23170 #if HAVE_PTHREADS < 7
23174 #define NULL (void*)0
23177 static void *task(p)
23180 return (void *) (p == NULL);
23187 /* pthread test function */
23188 #ifndef PTHREAD_CREATE_DETACHED
23189 #define PTHREAD_CREATE_DETACHED 1
23193 int detach = PTHREAD_CREATE_DETACHED;
23195 #if HAVE_PTHREADS > 4
23196 /* Final pthreads */
23197 pthread_attr_t attr;
23199 status = pthread_attr_init(&attr);
23200 if( status ) return status;
23202 #if HAVE_PTHREADS < 7
23203 status = pthread_attr_setdetachstate(&attr, &detach);
23204 if( status < 0 ) status = errno;
23206 status = pthread_attr_setdetachstate(&attr, detach);
23208 if( status ) return status;
23209 status = pthread_create( &t, &attr, task, NULL );
23210 #if HAVE_PTHREADS < 7
23211 if( status < 0 ) status = errno;
23213 if( status ) return status;
23215 /* Draft 4 pthreads */
23216 status = pthread_create( &t, pthread_attr_default, task, NULL );
23217 if( status ) return errno;
23219 /* give thread a chance to complete */
23220 /* it should remain joinable and hence detachable */
23223 status = pthread_detach( &t );
23224 if( status ) return errno;
23227 #ifdef HAVE_LINUX_THREADS
23228 pthread_kill_other_threads_np();
23237 rm -f conftest.$ac_objext conftest$ac_exeext
23238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23239 (eval $ac_link) 2>conftest.er1
23241 grep -v '^ *+' conftest.er1 >conftest.err
23243 cat conftest.err >&5
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); } &&
23246 { ac_try='test -z "$ac_c_werror_flag"
23247 || test ! -s conftest.err'
23248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249 (eval $ac_try) 2>&5
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); }; } &&
23253 { ac_try='test -s conftest$ac_exeext'
23254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255 (eval $ac_try) 2>&5
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); }; }; then
23259 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23261 echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.$ac_ext >&5
23264 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23266 rm -f conftest.err conftest.$ac_objext \
23267 conftest$ac_exeext conftest.$ac_ext
23269 cat >conftest.$ac_ext <<_ACEOF
23272 cat confdefs.h >>conftest.$ac_ext
23273 cat >>conftest.$ac_ext <<_ACEOF
23274 /* end confdefs.h. */
23276 /* pthread test headers */
23277 #include <pthread.h>
23278 #if HAVE_PTHREADS < 7
23282 #define NULL (void*)0
23285 static void *task(p)
23288 return (void *) (p == NULL);
23292 int main(argc, argv)
23297 /* pthread test function */
23298 #ifndef PTHREAD_CREATE_DETACHED
23299 #define PTHREAD_CREATE_DETACHED 1
23303 int detach = PTHREAD_CREATE_DETACHED;
23305 #if HAVE_PTHREADS > 4
23306 /* Final pthreads */
23307 pthread_attr_t attr;
23309 status = pthread_attr_init(&attr);
23310 if( status ) return status;
23312 #if HAVE_PTHREADS < 7
23313 status = pthread_attr_setdetachstate(&attr, &detach);
23314 if( status < 0 ) status = errno;
23316 status = pthread_attr_setdetachstate(&attr, detach);
23318 if( status ) return status;
23319 status = pthread_create( &t, &attr, task, NULL );
23320 #if HAVE_PTHREADS < 7
23321 if( status < 0 ) status = errno;
23323 if( status ) return status;
23325 /* Draft 4 pthreads */
23326 status = pthread_create( &t, pthread_attr_default, task, NULL );
23327 if( status ) return errno;
23329 /* give thread a chance to complete */
23330 /* it should remain joinable and hence detachable */
23333 status = pthread_detach( &t );
23334 if( status ) return errno;
23337 #ifdef HAVE_LINUX_THREADS
23338 pthread_kill_other_threads_np();
23346 rm -f conftest$ac_exeext
23347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23348 (eval $ac_link) 2>&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; }; then
23357 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23359 echo "$as_me: program exited with status $ac_status" >&5
23360 echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23363 ( exit $ac_status )
23364 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23373 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23374 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23376 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23377 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23378 ol_link_threads=posix
23382 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23383 if test "$ol_link_threads" = no ; then
23384 # try -lpthreads -lmach -lexc
23385 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23386 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23387 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23388 echo $ECHO_N "(cached) $ECHO_C" >&6
23393 LIBS="-lpthreads -lmach -lexc $LIBS"
23395 if test "$cross_compiling" = yes; then
23396 cat >conftest.$ac_ext <<_ACEOF
23399 cat confdefs.h >>conftest.$ac_ext
23400 cat >>conftest.$ac_ext <<_ACEOF
23401 /* end confdefs.h. */
23403 /* pthread test headers */
23404 #include <pthread.h>
23405 #if HAVE_PTHREADS < 7
23409 #define NULL (void*)0
23412 static void *task(p)
23415 return (void *) (p == NULL);
23422 /* pthread test function */
23423 #ifndef PTHREAD_CREATE_DETACHED
23424 #define PTHREAD_CREATE_DETACHED 1
23428 int detach = PTHREAD_CREATE_DETACHED;
23430 #if HAVE_PTHREADS > 4
23431 /* Final pthreads */
23432 pthread_attr_t attr;
23434 status = pthread_attr_init(&attr);
23435 if( status ) return status;
23437 #if HAVE_PTHREADS < 7
23438 status = pthread_attr_setdetachstate(&attr, &detach);
23439 if( status < 0 ) status = errno;
23441 status = pthread_attr_setdetachstate(&attr, detach);
23443 if( status ) return status;
23444 status = pthread_create( &t, &attr, task, NULL );
23445 #if HAVE_PTHREADS < 7
23446 if( status < 0 ) status = errno;
23448 if( status ) return status;
23450 /* Draft 4 pthreads */
23451 status = pthread_create( &t, pthread_attr_default, task, NULL );
23452 if( status ) return errno;
23454 /* give thread a chance to complete */
23455 /* it should remain joinable and hence detachable */
23458 status = pthread_detach( &t );
23459 if( status ) return errno;
23462 #ifdef HAVE_LINUX_THREADS
23463 pthread_kill_other_threads_np();
23472 rm -f conftest.$ac_objext conftest$ac_exeext
23473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23474 (eval $ac_link) 2>conftest.er1
23476 grep -v '^ *+' conftest.er1 >conftest.err
23478 cat conftest.err >&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } &&
23481 { ac_try='test -z "$ac_c_werror_flag"
23482 || test ! -s conftest.err'
23483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23484 (eval $ac_try) 2>&5
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); }; } &&
23488 { ac_try='test -s conftest$ac_exeext'
23489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490 (eval $ac_try) 2>&5
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); }; }; then
23494 ol_cv_pthread_lpthreads_lmach_lexc=yes
23496 echo "$as_me: failed program was:" >&5
23497 sed 's/^/| /' conftest.$ac_ext >&5
23499 ol_cv_pthread_lpthreads_lmach_lexc=no
23501 rm -f conftest.err conftest.$ac_objext \
23502 conftest$ac_exeext conftest.$ac_ext
23504 cat >conftest.$ac_ext <<_ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h. */
23511 /* pthread test headers */
23512 #include <pthread.h>
23513 #if HAVE_PTHREADS < 7
23517 #define NULL (void*)0
23520 static void *task(p)
23523 return (void *) (p == NULL);
23527 int main(argc, argv)
23532 /* pthread test function */
23533 #ifndef PTHREAD_CREATE_DETACHED
23534 #define PTHREAD_CREATE_DETACHED 1
23538 int detach = PTHREAD_CREATE_DETACHED;
23540 #if HAVE_PTHREADS > 4
23541 /* Final pthreads */
23542 pthread_attr_t attr;
23544 status = pthread_attr_init(&attr);
23545 if( status ) return status;
23547 #if HAVE_PTHREADS < 7
23548 status = pthread_attr_setdetachstate(&attr, &detach);
23549 if( status < 0 ) status = errno;
23551 status = pthread_attr_setdetachstate(&attr, detach);
23553 if( status ) return status;
23554 status = pthread_create( &t, &attr, task, NULL );
23555 #if HAVE_PTHREADS < 7
23556 if( status < 0 ) status = errno;
23558 if( status ) return status;
23560 /* Draft 4 pthreads */
23561 status = pthread_create( &t, pthread_attr_default, task, NULL );
23562 if( status ) return errno;
23564 /* give thread a chance to complete */
23565 /* it should remain joinable and hence detachable */
23568 status = pthread_detach( &t );
23569 if( status ) return errno;
23572 #ifdef HAVE_LINUX_THREADS
23573 pthread_kill_other_threads_np();
23581 rm -f conftest$ac_exeext
23582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23583 (eval $ac_link) 2>&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588 (eval $ac_try) 2>&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); }; }; then
23592 ol_cv_pthread_lpthreads_lmach_lexc=yes
23594 echo "$as_me: program exited with status $ac_status" >&5
23595 echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23598 ( exit $ac_status )
23599 ol_cv_pthread_lpthreads_lmach_lexc=no
23601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23608 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23609 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23611 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23612 ol_link_pthreads="-lpthreads -lmach -lexc"
23613 ol_link_threads=posix
23617 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23618 if test "$ol_link_threads" = no ; then
23619 # try -lpthreads -lexc
23620 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23621 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23622 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23623 echo $ECHO_N "(cached) $ECHO_C" >&6
23628 LIBS="-lpthreads -lexc $LIBS"
23630 if test "$cross_compiling" = yes; then
23631 cat >conftest.$ac_ext <<_ACEOF
23634 cat confdefs.h >>conftest.$ac_ext
23635 cat >>conftest.$ac_ext <<_ACEOF
23636 /* end confdefs.h. */
23638 /* pthread test headers */
23639 #include <pthread.h>
23640 #if HAVE_PTHREADS < 7
23644 #define NULL (void*)0
23647 static void *task(p)
23650 return (void *) (p == NULL);
23657 /* pthread test function */
23658 #ifndef PTHREAD_CREATE_DETACHED
23659 #define PTHREAD_CREATE_DETACHED 1
23663 int detach = PTHREAD_CREATE_DETACHED;
23665 #if HAVE_PTHREADS > 4
23666 /* Final pthreads */
23667 pthread_attr_t attr;
23669 status = pthread_attr_init(&attr);
23670 if( status ) return status;
23672 #if HAVE_PTHREADS < 7
23673 status = pthread_attr_setdetachstate(&attr, &detach);
23674 if( status < 0 ) status = errno;
23676 status = pthread_attr_setdetachstate(&attr, detach);
23678 if( status ) return status;
23679 status = pthread_create( &t, &attr, task, NULL );
23680 #if HAVE_PTHREADS < 7
23681 if( status < 0 ) status = errno;
23683 if( status ) return status;
23685 /* Draft 4 pthreads */
23686 status = pthread_create( &t, pthread_attr_default, task, NULL );
23687 if( status ) return errno;
23689 /* give thread a chance to complete */
23690 /* it should remain joinable and hence detachable */
23693 status = pthread_detach( &t );
23694 if( status ) return errno;
23697 #ifdef HAVE_LINUX_THREADS
23698 pthread_kill_other_threads_np();
23707 rm -f conftest.$ac_objext conftest$ac_exeext
23708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23709 (eval $ac_link) 2>conftest.er1
23711 grep -v '^ *+' conftest.er1 >conftest.err
23713 cat conftest.err >&5
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); } &&
23716 { ac_try='test -z "$ac_c_werror_flag"
23717 || test ! -s conftest.err'
23718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23719 (eval $ac_try) 2>&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); }; } &&
23723 { ac_try='test -s conftest$ac_exeext'
23724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23725 (eval $ac_try) 2>&5
23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); }; }; then
23729 ol_cv_pthread_lpthreads_lexc=yes
23731 echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23734 ol_cv_pthread_lpthreads_lexc=no
23736 rm -f conftest.err conftest.$ac_objext \
23737 conftest$ac_exeext conftest.$ac_ext
23739 cat >conftest.$ac_ext <<_ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23746 /* pthread test headers */
23747 #include <pthread.h>
23748 #if HAVE_PTHREADS < 7
23752 #define NULL (void*)0
23755 static void *task(p)
23758 return (void *) (p == NULL);
23762 int main(argc, argv)
23767 /* pthread test function */
23768 #ifndef PTHREAD_CREATE_DETACHED
23769 #define PTHREAD_CREATE_DETACHED 1
23773 int detach = PTHREAD_CREATE_DETACHED;
23775 #if HAVE_PTHREADS > 4
23776 /* Final pthreads */
23777 pthread_attr_t attr;
23779 status = pthread_attr_init(&attr);
23780 if( status ) return status;
23782 #if HAVE_PTHREADS < 7
23783 status = pthread_attr_setdetachstate(&attr, &detach);
23784 if( status < 0 ) status = errno;
23786 status = pthread_attr_setdetachstate(&attr, detach);
23788 if( status ) return status;
23789 status = pthread_create( &t, &attr, task, NULL );
23790 #if HAVE_PTHREADS < 7
23791 if( status < 0 ) status = errno;
23793 if( status ) return status;
23795 /* Draft 4 pthreads */
23796 status = pthread_create( &t, pthread_attr_default, task, NULL );
23797 if( status ) return errno;
23799 /* give thread a chance to complete */
23800 /* it should remain joinable and hence detachable */
23803 status = pthread_detach( &t );
23804 if( status ) return errno;
23807 #ifdef HAVE_LINUX_THREADS
23808 pthread_kill_other_threads_np();
23816 rm -f conftest$ac_exeext
23817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23818 (eval $ac_link) 2>&5
23820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23823 (eval $ac_try) 2>&5
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); }; }; then
23827 ol_cv_pthread_lpthreads_lexc=yes
23829 echo "$as_me: program exited with status $ac_status" >&5
23830 echo "$as_me: failed program was:" >&5
23831 sed 's/^/| /' conftest.$ac_ext >&5
23833 ( exit $ac_status )
23834 ol_cv_pthread_lpthreads_lexc=no
23836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23843 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23844 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23846 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23847 ol_link_pthreads="-lpthreads -lexc"
23848 ol_link_threads=posix
23853 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23854 if test "$ol_link_threads" = no ; then
23856 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23857 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23858 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23859 echo $ECHO_N "(cached) $ECHO_C" >&6
23864 LIBS="-lpthreads $LIBS"
23866 if test "$cross_compiling" = yes; then
23867 cat >conftest.$ac_ext <<_ACEOF
23870 cat confdefs.h >>conftest.$ac_ext
23871 cat >>conftest.$ac_ext <<_ACEOF
23872 /* end confdefs.h. */
23874 /* pthread test headers */
23875 #include <pthread.h>
23876 #if HAVE_PTHREADS < 7
23880 #define NULL (void*)0
23883 static void *task(p)
23886 return (void *) (p == NULL);
23893 /* pthread test function */
23894 #ifndef PTHREAD_CREATE_DETACHED
23895 #define PTHREAD_CREATE_DETACHED 1
23899 int detach = PTHREAD_CREATE_DETACHED;
23901 #if HAVE_PTHREADS > 4
23902 /* Final pthreads */
23903 pthread_attr_t attr;
23905 status = pthread_attr_init(&attr);
23906 if( status ) return status;
23908 #if HAVE_PTHREADS < 7
23909 status = pthread_attr_setdetachstate(&attr, &detach);
23910 if( status < 0 ) status = errno;
23912 status = pthread_attr_setdetachstate(&attr, detach);
23914 if( status ) return status;
23915 status = pthread_create( &t, &attr, task, NULL );
23916 #if HAVE_PTHREADS < 7
23917 if( status < 0 ) status = errno;
23919 if( status ) return status;
23921 /* Draft 4 pthreads */
23922 status = pthread_create( &t, pthread_attr_default, task, NULL );
23923 if( status ) return errno;
23925 /* give thread a chance to complete */
23926 /* it should remain joinable and hence detachable */
23929 status = pthread_detach( &t );
23930 if( status ) return errno;
23933 #ifdef HAVE_LINUX_THREADS
23934 pthread_kill_other_threads_np();
23943 rm -f conftest.$ac_objext conftest$ac_exeext
23944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23945 (eval $ac_link) 2>conftest.er1
23947 grep -v '^ *+' conftest.er1 >conftest.err
23949 cat conftest.err >&5
23950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); } &&
23952 { ac_try='test -z "$ac_c_werror_flag"
23953 || test ! -s conftest.err'
23954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955 (eval $ac_try) 2>&5
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); }; } &&
23959 { ac_try='test -s conftest$ac_exeext'
23960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23961 (eval $ac_try) 2>&5
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); }; }; then
23965 ol_cv_pthread_lib_lpthreads=yes
23967 echo "$as_me: failed program was:" >&5
23968 sed 's/^/| /' conftest.$ac_ext >&5
23970 ol_cv_pthread_lib_lpthreads=no
23972 rm -f conftest.err conftest.$ac_objext \
23973 conftest$ac_exeext conftest.$ac_ext
23975 cat >conftest.$ac_ext <<_ACEOF
23978 cat confdefs.h >>conftest.$ac_ext
23979 cat >>conftest.$ac_ext <<_ACEOF
23980 /* end confdefs.h. */
23982 /* pthread test headers */
23983 #include <pthread.h>
23984 #if HAVE_PTHREADS < 7
23988 #define NULL (void*)0
23991 static void *task(p)
23994 return (void *) (p == NULL);
23998 int main(argc, argv)
24003 /* pthread test function */
24004 #ifndef PTHREAD_CREATE_DETACHED
24005 #define PTHREAD_CREATE_DETACHED 1
24009 int detach = PTHREAD_CREATE_DETACHED;
24011 #if HAVE_PTHREADS > 4
24012 /* Final pthreads */
24013 pthread_attr_t attr;
24015 status = pthread_attr_init(&attr);
24016 if( status ) return status;
24018 #if HAVE_PTHREADS < 7
24019 status = pthread_attr_setdetachstate(&attr, &detach);
24020 if( status < 0 ) status = errno;
24022 status = pthread_attr_setdetachstate(&attr, detach);
24024 if( status ) return status;
24025 status = pthread_create( &t, &attr, task, NULL );
24026 #if HAVE_PTHREADS < 7
24027 if( status < 0 ) status = errno;
24029 if( status ) return status;
24031 /* Draft 4 pthreads */
24032 status = pthread_create( &t, pthread_attr_default, task, NULL );
24033 if( status ) return errno;
24035 /* give thread a chance to complete */
24036 /* it should remain joinable and hence detachable */
24039 status = pthread_detach( &t );
24040 if( status ) return errno;
24043 #ifdef HAVE_LINUX_THREADS
24044 pthread_kill_other_threads_np();
24052 rm -f conftest$ac_exeext
24053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24054 (eval $ac_link) 2>&5
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24059 (eval $ac_try) 2>&5
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); }; }; then
24063 ol_cv_pthread_lib_lpthreads=yes
24065 echo "$as_me: program exited with status $ac_status" >&5
24066 echo "$as_me: failed program was:" >&5
24067 sed 's/^/| /' conftest.$ac_ext >&5
24069 ( exit $ac_status )
24070 ol_cv_pthread_lib_lpthreads=no
24072 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24079 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24080 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24082 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24083 ol_link_pthreads="-lpthreads"
24084 ol_link_threads=posix
24089 if test $ol_link_threads != no ; then
24090 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24092 save_CPPFLAGS="$CPPFLAGS"
24094 LIBS="$LTHREAD_LIBS $LIBS"
24099 for ac_func in sched_yield pthread_yield thr_yield
24101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24102 echo "$as_me:$LINENO: checking for $ac_func" >&5
24103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24104 if eval "test \"\${$as_ac_var+set}\" = set"; then
24105 echo $ECHO_N "(cached) $ECHO_C" >&6
24107 cat >conftest.$ac_ext <<_ACEOF
24110 cat confdefs.h >>conftest.$ac_ext
24111 cat >>conftest.$ac_ext <<_ACEOF
24112 /* end confdefs.h. */
24113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24115 #define $ac_func innocuous_$ac_func
24117 /* System header to define __stub macros and hopefully few prototypes,
24118 which can conflict with char $ac_func (); below.
24119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24120 <limits.h> exists even on freestanding compilers. */
24123 # include <limits.h>
24125 # include <assert.h>
24130 /* Override any gcc2 internal prototype to avoid an error. */
24135 /* We use char because int might match the return type of a gcc2
24136 builtin and then its argument prototype would still apply. */
24138 /* The GNU C library defines this for functions which it implements
24139 to always fail with ENOSYS. Some functions are actually named
24140 something starting with __ and the normal name is an alias. */
24141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24144 char (*f) () = $ac_func;
24153 return f != $ac_func;
24158 rm -f conftest.$ac_objext conftest$ac_exeext
24159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24160 (eval $ac_link) 2>conftest.er1
24162 grep -v '^ *+' conftest.er1 >conftest.err
24164 cat conftest.err >&5
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); } &&
24167 { ac_try='test -z "$ac_c_werror_flag"
24168 || test ! -s conftest.err'
24169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24170 (eval $ac_try) 2>&5
24172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); }; } &&
24174 { ac_try='test -s conftest$ac_exeext'
24175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24176 (eval $ac_try) 2>&5
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); }; }; then
24180 eval "$as_ac_var=yes"
24182 echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24185 eval "$as_ac_var=no"
24187 rm -f conftest.err conftest.$ac_objext \
24188 conftest$ac_exeext conftest.$ac_ext
24190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24192 if test `eval echo '${'$as_ac_var'}'` = yes; then
24193 cat >>confdefs.h <<_ACEOF
24194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24201 if test $ac_cv_func_sched_yield = no -a \
24202 $ac_cv_func_pthread_yield = no -a \
24203 $ac_cv_func_thr_yield = no ; then
24204 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24205 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24206 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24207 echo $ECHO_N "(cached) $ECHO_C" >&6
24209 ac_check_lib_save_LIBS=$LIBS
24211 cat >conftest.$ac_ext <<_ACEOF
24214 cat confdefs.h >>conftest.$ac_ext
24215 cat >>conftest.$ac_ext <<_ACEOF
24216 /* end confdefs.h. */
24218 /* Override any gcc2 internal prototype to avoid an error. */
24222 /* We use char because int might match the return type of a gcc2
24223 builtin and then its argument prototype would still apply. */
24224 char sched_yield ();
24233 rm -f conftest.$ac_objext conftest$ac_exeext
24234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24235 (eval $ac_link) 2>conftest.er1
24237 grep -v '^ *+' conftest.er1 >conftest.err
24239 cat conftest.err >&5
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); } &&
24242 { ac_try='test -z "$ac_c_werror_flag"
24243 || test ! -s conftest.err'
24244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24245 (eval $ac_try) 2>&5
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); }; } &&
24249 { ac_try='test -s conftest$ac_exeext'
24250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24251 (eval $ac_try) 2>&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); }; }; then
24255 ac_cv_lib_rt_sched_yield=yes
24257 echo "$as_me: failed program was:" >&5
24258 sed 's/^/| /' conftest.$ac_ext >&5
24260 ac_cv_lib_rt_sched_yield=no
24262 rm -f conftest.err conftest.$ac_objext \
24263 conftest$ac_exeext conftest.$ac_ext
24264 LIBS=$ac_check_lib_save_LIBS
24266 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24267 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24268 if test $ac_cv_lib_rt_sched_yield = yes; then
24269 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24271 cat >>confdefs.h <<\_ACEOF
24272 #define HAVE_SCHED_YIELD 1
24275 ac_cv_func_sched_yield=yes
24277 ac_cv_func_sched_yield=no
24281 if test $ac_cv_func_sched_yield = no -a \
24282 $ac_cv_func_pthread_yield = no -a \
24283 "$ac_cv_func_thr_yield" = no ; then
24284 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24285 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24290 for ac_func in pthread_kill pthread_rwlock_destroy
24292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24293 echo "$as_me:$LINENO: checking for $ac_func" >&5
24294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24295 if eval "test \"\${$as_ac_var+set}\" = set"; then
24296 echo $ECHO_N "(cached) $ECHO_C" >&6
24298 cat >conftest.$ac_ext <<_ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h. */
24304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24306 #define $ac_func innocuous_$ac_func
24308 /* System header to define __stub macros and hopefully few prototypes,
24309 which can conflict with char $ac_func (); below.
24310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24311 <limits.h> exists even on freestanding compilers. */
24314 # include <limits.h>
24316 # include <assert.h>
24321 /* Override any gcc2 internal prototype to avoid an error. */
24326 /* We use char because int might match the return type of a gcc2
24327 builtin and then its argument prototype would still apply. */
24329 /* The GNU C library defines this for functions which it implements
24330 to always fail with ENOSYS. Some functions are actually named
24331 something starting with __ and the normal name is an alias. */
24332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24335 char (*f) () = $ac_func;
24344 return f != $ac_func;
24349 rm -f conftest.$ac_objext conftest$ac_exeext
24350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24351 (eval $ac_link) 2>conftest.er1
24353 grep -v '^ *+' conftest.er1 >conftest.err
24355 cat conftest.err >&5
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); } &&
24358 { ac_try='test -z "$ac_c_werror_flag"
24359 || test ! -s conftest.err'
24360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361 (eval $ac_try) 2>&5
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; } &&
24365 { ac_try='test -s conftest$ac_exeext'
24366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24367 (eval $ac_try) 2>&5
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); }; }; then
24371 eval "$as_ac_var=yes"
24373 echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24376 eval "$as_ac_var=no"
24378 rm -f conftest.err conftest.$ac_objext \
24379 conftest$ac_exeext conftest.$ac_ext
24381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24383 if test `eval echo '${'$as_ac_var'}'` = yes; then
24384 cat >>confdefs.h <<_ACEOF
24385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24392 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24393 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24394 if test "${ol_cv_func_pthread_detach+set}" = set; then
24395 echo $ECHO_N "(cached) $ECHO_C" >&6
24398 cat >conftest.$ac_ext <<_ACEOF
24401 cat confdefs.h >>conftest.$ac_ext
24402 cat >>conftest.$ac_ext <<_ACEOF
24403 /* end confdefs.h. */
24405 #include <pthread.h>
24407 #define NULL (void*)0
24413 pthread_detach(NULL);
24418 rm -f conftest.$ac_objext conftest$ac_exeext
24419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24420 (eval $ac_link) 2>conftest.er1
24422 grep -v '^ *+' conftest.er1 >conftest.err
24424 cat conftest.err >&5
24425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); } &&
24427 { ac_try='test -z "$ac_c_werror_flag"
24428 || test ! -s conftest.err'
24429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430 (eval $ac_try) 2>&5
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); }; } &&
24434 { ac_try='test -s conftest$ac_exeext'
24435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; }; then
24440 ol_cv_func_pthread_detach=yes
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24445 ol_cv_func_pthread_detach=no
24447 rm -f conftest.err conftest.$ac_objext \
24448 conftest$ac_exeext conftest.$ac_ext
24451 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24452 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24454 if test $ol_cv_func_pthread_detach = no ; then
24455 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24456 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24457 { (exit 1); exit 1; }; }
24461 cat >>confdefs.h <<\_ACEOF
24462 #define HAVE_PTHREAD_DETACH 1
24471 pthread_setconcurrency \
24472 pthread_getconcurrency \
24473 thr_setconcurrency \
24474 thr_getconcurrency \
24477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24478 echo "$as_me:$LINENO: checking for $ac_func" >&5
24479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24480 if eval "test \"\${$as_ac_var+set}\" = set"; then
24481 echo $ECHO_N "(cached) $ECHO_C" >&6
24483 cat >conftest.$ac_ext <<_ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h. */
24489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24491 #define $ac_func innocuous_$ac_func
24493 /* System header to define __stub macros and hopefully few prototypes,
24494 which can conflict with char $ac_func (); below.
24495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24496 <limits.h> exists even on freestanding compilers. */
24499 # include <limits.h>
24501 # include <assert.h>
24506 /* Override any gcc2 internal prototype to avoid an error. */
24511 /* We use char because int might match the return type of a gcc2
24512 builtin and then its argument prototype would still apply. */
24514 /* The GNU C library defines this for functions which it implements
24515 to always fail with ENOSYS. Some functions are actually named
24516 something starting with __ and the normal name is an alias. */
24517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24520 char (*f) () = $ac_func;
24529 return f != $ac_func;
24534 rm -f conftest.$ac_objext conftest$ac_exeext
24535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24536 (eval $ac_link) 2>conftest.er1
24538 grep -v '^ *+' conftest.er1 >conftest.err
24540 cat conftest.err >&5
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); } &&
24543 { ac_try='test -z "$ac_c_werror_flag"
24544 || test ! -s conftest.err'
24545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24546 (eval $ac_try) 2>&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); }; } &&
24550 { ac_try='test -s conftest$ac_exeext'
24551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24552 (eval $ac_try) 2>&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); }; }; then
24556 eval "$as_ac_var=yes"
24558 echo "$as_me: failed program was:" >&5
24559 sed 's/^/| /' conftest.$ac_ext >&5
24561 eval "$as_ac_var=no"
24563 rm -f conftest.err conftest.$ac_objext \
24564 conftest$ac_exeext conftest.$ac_ext
24566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24568 if test `eval echo '${'$as_ac_var'}'` = yes; then
24569 cat >>confdefs.h <<_ACEOF
24570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24579 for ac_func in pthread_kill_other_threads_np
24581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24582 echo "$as_me:$LINENO: checking for $ac_func" >&5
24583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24584 if eval "test \"\${$as_ac_var+set}\" = set"; then
24585 echo $ECHO_N "(cached) $ECHO_C" >&6
24587 cat >conftest.$ac_ext <<_ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24595 #define $ac_func innocuous_$ac_func
24597 /* System header to define __stub macros and hopefully few prototypes,
24598 which can conflict with char $ac_func (); below.
24599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24600 <limits.h> exists even on freestanding compilers. */
24603 # include <limits.h>
24605 # include <assert.h>
24610 /* Override any gcc2 internal prototype to avoid an error. */
24615 /* We use char because int might match the return type of a gcc2
24616 builtin and then its argument prototype would still apply. */
24618 /* The GNU C library defines this for functions which it implements
24619 to always fail with ENOSYS. Some functions are actually named
24620 something starting with __ and the normal name is an alias. */
24621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24624 char (*f) () = $ac_func;
24633 return f != $ac_func;
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24640 (eval $ac_link) 2>conftest.er1
24642 grep -v '^ *+' conftest.er1 >conftest.err
24644 cat conftest.err >&5
24645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); } &&
24647 { ac_try='test -z "$ac_c_werror_flag"
24648 || test ! -s conftest.err'
24649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24650 (eval $ac_try) 2>&5
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); }; } &&
24654 { ac_try='test -s conftest$ac_exeext'
24655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24656 (eval $ac_try) 2>&5
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); }; }; then
24660 eval "$as_ac_var=yes"
24662 echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24665 eval "$as_ac_var=no"
24667 rm -f conftest.err conftest.$ac_objext \
24668 conftest$ac_exeext conftest.$ac_ext
24670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24672 if test `eval echo '${'$as_ac_var'}'` = yes; then
24673 cat >>confdefs.h <<_ACEOF
24674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24680 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24681 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24682 if test "${ol_cv_sys_linux_threads+set}" = set; then
24683 echo $ECHO_N "(cached) $ECHO_C" >&6
24685 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24687 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24688 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24693 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24694 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24695 if test "${ol_cv_linux_threads+set}" = set; then
24696 echo $ECHO_N "(cached) $ECHO_C" >&6
24699 if test $ol_cv_header_linux_threads = yes -a \
24700 $ol_cv_sys_linux_threads = yes; then
24701 ol_cv_linux_threads=yes
24702 elif test $ol_cv_header_linux_threads = no -a \
24703 $ol_cv_sys_linux_threads = no; then
24704 ol_cv_linux_threads=no
24706 ol_cv_linux_threads=error
24710 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24711 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24714 if test $ol_cv_linux_threads = error; then
24715 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24716 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24717 { (exit 1); exit 1; }; };
24720 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24721 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24722 if test "${ol_cv_pthread_create_works+set}" = set; then
24723 echo $ECHO_N "(cached) $ECHO_C" >&6
24726 if test "$cross_compiling" = yes; then
24727 ol_cv_pthread_create_works=yes
24729 cat >conftest.$ac_ext <<_ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h. */
24736 /* pthread test headers */
24737 #include <pthread.h>
24738 #if HAVE_PTHREADS < 7
24742 #define NULL (void*)0
24745 static void *task(p)
24748 return (void *) (p == NULL);
24752 int main(argc, argv)
24757 /* pthread test function */
24758 #ifndef PTHREAD_CREATE_DETACHED
24759 #define PTHREAD_CREATE_DETACHED 1
24763 int detach = PTHREAD_CREATE_DETACHED;
24765 #if HAVE_PTHREADS > 4
24766 /* Final pthreads */
24767 pthread_attr_t attr;
24769 status = pthread_attr_init(&attr);
24770 if( status ) return status;
24772 #if HAVE_PTHREADS < 7
24773 status = pthread_attr_setdetachstate(&attr, &detach);
24774 if( status < 0 ) status = errno;
24776 status = pthread_attr_setdetachstate(&attr, detach);
24778 if( status ) return status;
24779 status = pthread_create( &t, &attr, task, NULL );
24780 #if HAVE_PTHREADS < 7
24781 if( status < 0 ) status = errno;
24783 if( status ) return status;
24785 /* Draft 4 pthreads */
24786 status = pthread_create( &t, pthread_attr_default, task, NULL );
24787 if( status ) return errno;
24789 /* give thread a chance to complete */
24790 /* it should remain joinable and hence detachable */
24793 status = pthread_detach( &t );
24794 if( status ) return errno;
24797 #ifdef HAVE_LINUX_THREADS
24798 pthread_kill_other_threads_np();
24806 rm -f conftest$ac_exeext
24807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24808 (eval $ac_link) 2>&5
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24813 (eval $ac_try) 2>&5
24815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 (exit $ac_status); }; }; then
24817 ol_cv_pthread_create_works=yes
24819 echo "$as_me: program exited with status $ac_status" >&5
24820 echo "$as_me: failed program was:" >&5
24821 sed 's/^/| /' conftest.$ac_ext >&5
24823 ( exit $ac_status )
24824 ol_cv_pthread_create_works=no
24826 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24829 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24830 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24832 if test $ol_cv_pthread_create_works = no ; then
24833 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24834 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24835 { (exit 1); exit 1; }; }
24838 if test $ol_with_yielding_select = auto ; then
24839 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24840 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24841 if test "${ol_cv_pthread_select_yields+set}" = set; then
24842 echo $ECHO_N "(cached) $ECHO_C" >&6
24845 if test "$cross_compiling" = yes; then
24846 ol_cv_pthread_select_yields=cross
24848 cat >conftest.$ac_ext <<_ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h. */
24855 #include <sys/types.h>
24856 #include <sys/time.h>
24857 #include <unistd.h>
24858 #include <pthread.h>
24860 #define NULL (void*) 0
24863 static int fildes[2];
24865 static void *task(p)
24877 FD_SET(fildes[0], &rfds);
24879 /* we're not interested in any fds */
24880 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24887 exit(0); /* if we exit here, the select blocked the whole process */
24890 int main(argc, argv)
24896 /* create a pipe to select */
24897 if(pipe(&fildes[0])) {
24902 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24903 (void) pthread_setconcurrency(2);
24905 #ifdef HAVE_THR_SETCONCURRENCY
24906 /* Set Solaris LWP concurrency to 2 */
24907 thr_setconcurrency(2);
24911 #if HAVE_PTHREADS < 6
24912 pthread_create(&t, pthread_attr_default, task, NULL);
24914 pthread_create(&t, NULL, task, NULL);
24917 /* make sure task runs first */
24920 #elif defined( HAVE_SCHED_YIELD )
24922 #elif defined( HAVE_PTHREAD_YIELD )
24929 rm -f conftest$ac_exeext
24930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24931 (eval $ac_link) 2>&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; }; then
24940 ol_cv_pthread_select_yields=no
24942 echo "$as_me: program exited with status $ac_status" >&5
24943 echo "$as_me: failed program was:" >&5
24944 sed 's/^/| /' conftest.$ac_ext >&5
24946 ( exit $ac_status )
24947 ol_cv_pthread_select_yields=yes
24949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24952 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24953 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24955 if test $ol_cv_pthread_select_yields = cross ; then
24956 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24957 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24958 { (exit 1); exit 1; }; }
24961 if test $ol_cv_pthread_select_yields = yes ; then
24962 ol_with_yielding_select=yes
24966 CPPFLAGS="$save_CPPFLAGS"
24969 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24970 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24971 { (exit 1); exit 1; }; }
24975 if test $ol_with_threads = posix ; then
24976 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24977 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24978 { (exit 1); exit 1; }; }
24982 if test $ol_with_threads = auto -o $ol_with_threads = yes \
24983 -o $ol_with_threads = mach ; then
24987 for ac_header in mach/cthreads.h cthreads.h
24989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24991 echo "$as_me:$LINENO: checking for $ac_header" >&5
24992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24994 echo $ECHO_N "(cached) $ECHO_C" >&6
24996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24999 # Is the header compilable?
25000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25002 cat >conftest.$ac_ext <<_ACEOF
25005 cat confdefs.h >>conftest.$ac_ext
25006 cat >>conftest.$ac_ext <<_ACEOF
25007 /* end confdefs.h. */
25008 $ac_includes_default
25009 #include <$ac_header>
25011 rm -f conftest.$ac_objext
25012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25013 (eval $ac_compile) 2>conftest.er1
25015 grep -v '^ *+' conftest.er1 >conftest.err
25017 cat conftest.err >&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); } &&
25020 { ac_try='test -z "$ac_c_werror_flag"
25021 || test ! -s conftest.err'
25022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25023 (eval $ac_try) 2>&5
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); }; } &&
25027 { ac_try='test -s conftest.$ac_objext'
25028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25029 (eval $ac_try) 2>&5
25031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032 (exit $ac_status); }; }; then
25033 ac_header_compiler=yes
25035 echo "$as_me: failed program was:" >&5
25036 sed 's/^/| /' conftest.$ac_ext >&5
25038 ac_header_compiler=no
25040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25042 echo "${ECHO_T}$ac_header_compiler" >&6
25044 # Is the header present?
25045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25047 cat >conftest.$ac_ext <<_ACEOF
25050 cat confdefs.h >>conftest.$ac_ext
25051 cat >>conftest.$ac_ext <<_ACEOF
25052 /* end confdefs.h. */
25053 #include <$ac_header>
25055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25058 grep -v '^ *+' conftest.er1 >conftest.err
25060 cat conftest.err >&5
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); } >/dev/null; then
25063 if test -s conftest.err; then
25064 ac_cpp_err=$ac_c_preproc_warn_flag
25065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25072 if test -z "$ac_cpp_err"; then
25073 ac_header_preproc=yes
25075 echo "$as_me: failed program was:" >&5
25076 sed 's/^/| /' conftest.$ac_ext >&5
25078 ac_header_preproc=no
25080 rm -f conftest.err conftest.$ac_ext
25081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25082 echo "${ECHO_T}$ac_header_preproc" >&6
25084 # So? What about this header?
25085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25091 ac_header_preproc=yes
25094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25108 ## ------------------------------------------ ##
25109 ## Report this to the AC_PACKAGE_NAME lists. ##
25110 ## ------------------------------------------ ##
25113 sed "s/^/$as_me: WARNING: /" >&2
25116 echo "$as_me:$LINENO: checking for $ac_header" >&5
25117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25119 echo $ECHO_N "(cached) $ECHO_C" >&6
25121 eval "$as_ac_Header=\$ac_header_preproc"
25123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25128 cat >>confdefs.h <<_ACEOF
25129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25136 if test $ac_cv_header_mach_cthreads_h = yes ; then
25137 ol_with_threads=found
25139 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25140 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25141 if test "${ac_cv_func_cthread_fork+set}" = set; then
25142 echo $ECHO_N "(cached) $ECHO_C" >&6
25144 cat >conftest.$ac_ext <<_ACEOF
25147 cat confdefs.h >>conftest.$ac_ext
25148 cat >>conftest.$ac_ext <<_ACEOF
25149 /* end confdefs.h. */
25150 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25152 #define cthread_fork innocuous_cthread_fork
25154 /* System header to define __stub macros and hopefully few prototypes,
25155 which can conflict with char cthread_fork (); below.
25156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25157 <limits.h> exists even on freestanding compilers. */
25160 # include <limits.h>
25162 # include <assert.h>
25165 #undef cthread_fork
25167 /* Override any gcc2 internal prototype to avoid an error. */
25172 /* We use char because int might match the return type of a gcc2
25173 builtin and then its argument prototype would still apply. */
25174 char cthread_fork ();
25175 /* The GNU C library defines this for functions which it implements
25176 to always fail with ENOSYS. Some functions are actually named
25177 something starting with __ and the normal name is an alias. */
25178 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25181 char (*f) () = cthread_fork;
25190 return f != cthread_fork;
25195 rm -f conftest.$ac_objext conftest$ac_exeext
25196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25197 (eval $ac_link) 2>conftest.er1
25199 grep -v '^ *+' conftest.er1 >conftest.err
25201 cat conftest.err >&5
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } &&
25204 { ac_try='test -z "$ac_c_werror_flag"
25205 || test ! -s conftest.err'
25206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25207 (eval $ac_try) 2>&5
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); }; } &&
25211 { ac_try='test -s conftest$ac_exeext'
25212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25213 (eval $ac_try) 2>&5
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); }; }; then
25217 ac_cv_func_cthread_fork=yes
25219 echo "$as_me: failed program was:" >&5
25220 sed 's/^/| /' conftest.$ac_ext >&5
25222 ac_cv_func_cthread_fork=no
25224 rm -f conftest.err conftest.$ac_objext \
25225 conftest$ac_exeext conftest.$ac_ext
25227 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25228 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25229 if test $ac_cv_func_cthread_fork = yes; then
25230 ol_link_threads=yes
25234 if test $ol_link_threads = no ; then
25235 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25236 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25237 if test "${ol_cv_cthread_all_load+set}" = set; then
25238 echo $ECHO_N "(cached) $ECHO_C" >&6
25242 LIBS="-all_load $LIBS"
25243 cat >conftest.$ac_ext <<_ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h. */
25249 #include <mach/cthreads.h>
25254 cthread_fork((void *)0, (void *)0);
25260 rm -f conftest.$ac_objext conftest$ac_exeext
25261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25262 (eval $ac_link) 2>conftest.er1
25264 grep -v '^ *+' conftest.er1 >conftest.err
25266 cat conftest.err >&5
25267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); } &&
25269 { ac_try='test -z "$ac_c_werror_flag"
25270 || test ! -s conftest.err'
25271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25272 (eval $ac_try) 2>&5
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); }; } &&
25276 { ac_try='test -s conftest$ac_exeext'
25277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25278 (eval $ac_try) 2>&5
25280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); }; }; then
25282 ol_cv_cthread_all_load=yes
25284 echo "$as_me: failed program was:" >&5
25285 sed 's/^/| /' conftest.$ac_ext >&5
25287 ol_cv_cthread_all_load=no
25289 rm -f conftest.err conftest.$ac_objext \
25290 conftest$ac_exeext conftest.$ac_ext
25294 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25295 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25297 if test $ol_cv_cthread_all_load = yes ; then
25298 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25299 ol_link_threads=mach
25300 ol_with_threads=found
25304 elif test $ac_cv_header_cthreads_h = yes ; then
25306 ol_with_threads=found
25309 LIBS="$LIBS -lthreads"
25310 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25311 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25312 if test "${ac_cv_func_cthread_fork+set}" = set; then
25313 echo $ECHO_N "(cached) $ECHO_C" >&6
25315 cat >conftest.$ac_ext <<_ACEOF
25318 cat confdefs.h >>conftest.$ac_ext
25319 cat >>conftest.$ac_ext <<_ACEOF
25320 /* end confdefs.h. */
25321 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25323 #define cthread_fork innocuous_cthread_fork
25325 /* System header to define __stub macros and hopefully few prototypes,
25326 which can conflict with char cthread_fork (); below.
25327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25328 <limits.h> exists even on freestanding compilers. */
25331 # include <limits.h>
25333 # include <assert.h>
25336 #undef cthread_fork
25338 /* Override any gcc2 internal prototype to avoid an error. */
25343 /* We use char because int might match the return type of a gcc2
25344 builtin and then its argument prototype would still apply. */
25345 char cthread_fork ();
25346 /* The GNU C library defines this for functions which it implements
25347 to always fail with ENOSYS. Some functions are actually named
25348 something starting with __ and the normal name is an alias. */
25349 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25352 char (*f) () = cthread_fork;
25361 return f != cthread_fork;
25366 rm -f conftest.$ac_objext conftest$ac_exeext
25367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25368 (eval $ac_link) 2>conftest.er1
25370 grep -v '^ *+' conftest.er1 >conftest.err
25372 cat conftest.err >&5
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } &&
25375 { ac_try='test -z "$ac_c_werror_flag"
25376 || test ! -s conftest.err'
25377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378 (eval $ac_try) 2>&5
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); }; } &&
25382 { ac_try='test -s conftest$ac_exeext'
25383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384 (eval $ac_try) 2>&5
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); }; }; then
25388 ac_cv_func_cthread_fork=yes
25390 echo "$as_me: failed program was:" >&5
25391 sed 's/^/| /' conftest.$ac_ext >&5
25393 ac_cv_func_cthread_fork=no
25395 rm -f conftest.err conftest.$ac_objext \
25396 conftest$ac_exeext conftest.$ac_ext
25398 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25399 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25400 if test $ac_cv_func_cthread_fork = yes; then
25401 ol_link_threads=yes
25406 if test $ol_link_threads = yes ; then
25407 LTHREAD_LIBS="-lthreads"
25408 ol_link_threads=mach
25409 ol_with_threads=found
25411 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25412 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25413 { (exit 1); exit 1; }; }
25416 elif test $ol_with_threads = mach ; then
25417 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25418 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25419 { (exit 1); exit 1; }; }
25422 if test $ol_link_threads = mach ; then
25424 cat >>confdefs.h <<\_ACEOF
25425 #define HAVE_MACH_CTHREADS 1
25428 elif test $ol_with_threads = found ; then
25429 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25430 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25431 { (exit 1); exit 1; }; }
25435 if test $ol_with_threads = auto -o $ol_with_threads = yes \
25436 -o $ol_with_threads = pth ; then
25439 for ac_header in pth.h
25441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25443 echo "$as_me:$LINENO: checking for $ac_header" >&5
25444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25446 echo $ECHO_N "(cached) $ECHO_C" >&6
25448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25451 # Is the header compilable?
25452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25454 cat >conftest.$ac_ext <<_ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h. */
25460 $ac_includes_default
25461 #include <$ac_header>
25463 rm -f conftest.$ac_objext
25464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25465 (eval $ac_compile) 2>conftest.er1
25467 grep -v '^ *+' conftest.er1 >conftest.err
25469 cat conftest.err >&5
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } &&
25472 { ac_try='test -z "$ac_c_werror_flag"
25473 || test ! -s conftest.err'
25474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475 (eval $ac_try) 2>&5
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); }; } &&
25479 { ac_try='test -s conftest.$ac_objext'
25480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481 (eval $ac_try) 2>&5
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); }; }; then
25485 ac_header_compiler=yes
25487 echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25490 ac_header_compiler=no
25492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25494 echo "${ECHO_T}$ac_header_compiler" >&6
25496 # Is the header present?
25497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25499 cat >conftest.$ac_ext <<_ACEOF
25502 cat confdefs.h >>conftest.$ac_ext
25503 cat >>conftest.$ac_ext <<_ACEOF
25504 /* end confdefs.h. */
25505 #include <$ac_header>
25507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25510 grep -v '^ *+' conftest.er1 >conftest.err
25512 cat conftest.err >&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } >/dev/null; then
25515 if test -s conftest.err; then
25516 ac_cpp_err=$ac_c_preproc_warn_flag
25517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25524 if test -z "$ac_cpp_err"; then
25525 ac_header_preproc=yes
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25530 ac_header_preproc=no
25532 rm -f conftest.err conftest.$ac_ext
25533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25534 echo "${ECHO_T}$ac_header_preproc" >&6
25536 # So? What about this header?
25537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25543 ac_header_preproc=yes
25546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25560 ## ------------------------------------------ ##
25561 ## Report this to the AC_PACKAGE_NAME lists. ##
25562 ## ------------------------------------------ ##
25565 sed "s/^/$as_me: WARNING: /" >&2
25568 echo "$as_me:$LINENO: checking for $ac_header" >&5
25569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25571 echo $ECHO_N "(cached) $ECHO_C" >&6
25573 eval "$as_ac_Header=\$ac_header_preproc"
25575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25580 cat >>confdefs.h <<_ACEOF
25581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25589 if test $ac_cv_header_pth_h = yes ; then
25590 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25591 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25592 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25593 echo $ECHO_N "(cached) $ECHO_C" >&6
25595 ac_check_lib_save_LIBS=$LIBS
25597 cat >conftest.$ac_ext <<_ACEOF
25600 cat confdefs.h >>conftest.$ac_ext
25601 cat >>conftest.$ac_ext <<_ACEOF
25602 /* end confdefs.h. */
25604 /* Override any gcc2 internal prototype to avoid an error. */
25608 /* We use char because int might match the return type of a gcc2
25609 builtin and then its argument prototype would still apply. */
25610 char pth_version ();
25619 rm -f conftest.$ac_objext conftest$ac_exeext
25620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25621 (eval $ac_link) 2>conftest.er1
25623 grep -v '^ *+' conftest.er1 >conftest.err
25625 cat conftest.err >&5
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); } &&
25628 { ac_try='test -z "$ac_c_werror_flag"
25629 || test ! -s conftest.err'
25630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631 (eval $ac_try) 2>&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); }; } &&
25635 { ac_try='test -s conftest$ac_exeext'
25636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25637 (eval $ac_try) 2>&5
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); }; }; then
25641 ac_cv_lib_pth_pth_version=yes
25643 echo "$as_me: failed program was:" >&5
25644 sed 's/^/| /' conftest.$ac_ext >&5
25646 ac_cv_lib_pth_pth_version=no
25648 rm -f conftest.err conftest.$ac_objext \
25649 conftest$ac_exeext conftest.$ac_ext
25650 LIBS=$ac_check_lib_save_LIBS
25652 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25653 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25654 if test $ac_cv_lib_pth_pth_version = yes; then
25661 if test $have_pth = yes ; then
25663 cat >>confdefs.h <<\_ACEOF
25664 #define HAVE_GNU_PTH 1
25667 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25668 ol_link_threads=pth
25669 ol_with_threads=found
25671 if test $ol_with_yielding_select = auto ; then
25672 ol_with_yielding_select=yes
25678 if test $ol_with_threads = auto -o $ol_with_threads = yes \
25679 -o $ol_with_threads = lwp ; then
25683 for ac_header in thread.h synch.h
25685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25687 echo "$as_me:$LINENO: checking for $ac_header" >&5
25688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25690 echo $ECHO_N "(cached) $ECHO_C" >&6
25692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25695 # Is the header compilable?
25696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25698 cat >conftest.$ac_ext <<_ACEOF
25701 cat confdefs.h >>conftest.$ac_ext
25702 cat >>conftest.$ac_ext <<_ACEOF
25703 /* end confdefs.h. */
25704 $ac_includes_default
25705 #include <$ac_header>
25707 rm -f conftest.$ac_objext
25708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25709 (eval $ac_compile) 2>conftest.er1
25711 grep -v '^ *+' conftest.er1 >conftest.err
25713 cat conftest.err >&5
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); } &&
25716 { ac_try='test -z "$ac_c_werror_flag"
25717 || test ! -s conftest.err'
25718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25719 (eval $ac_try) 2>&5
25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); }; } &&
25723 { ac_try='test -s conftest.$ac_objext'
25724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25725 (eval $ac_try) 2>&5
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); }; }; then
25729 ac_header_compiler=yes
25731 echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25734 ac_header_compiler=no
25736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25738 echo "${ECHO_T}$ac_header_compiler" >&6
25740 # Is the header present?
25741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25743 cat >conftest.$ac_ext <<_ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h. */
25749 #include <$ac_header>
25751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25754 grep -v '^ *+' conftest.er1 >conftest.err
25756 cat conftest.err >&5
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); } >/dev/null; then
25759 if test -s conftest.err; then
25760 ac_cpp_err=$ac_c_preproc_warn_flag
25761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25768 if test -z "$ac_cpp_err"; then
25769 ac_header_preproc=yes
25771 echo "$as_me: failed program was:" >&5
25772 sed 's/^/| /' conftest.$ac_ext >&5
25774 ac_header_preproc=no
25776 rm -f conftest.err conftest.$ac_ext
25777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25778 echo "${ECHO_T}$ac_header_preproc" >&6
25780 # So? What about this header?
25781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25787 ac_header_preproc=yes
25790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25797 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25804 ## ------------------------------------------ ##
25805 ## Report this to the AC_PACKAGE_NAME lists. ##
25806 ## ------------------------------------------ ##
25809 sed "s/^/$as_me: WARNING: /" >&2
25812 echo "$as_me:$LINENO: checking for $ac_header" >&5
25813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25815 echo $ECHO_N "(cached) $ECHO_C" >&6
25817 eval "$as_ac_Header=\$ac_header_preproc"
25819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25824 cat >>confdefs.h <<_ACEOF
25825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25832 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
25833 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25834 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25835 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25836 echo $ECHO_N "(cached) $ECHO_C" >&6
25838 ac_check_lib_save_LIBS=$LIBS
25839 LIBS="-lthread $LIBS"
25840 cat >conftest.$ac_ext <<_ACEOF
25843 cat confdefs.h >>conftest.$ac_ext
25844 cat >>conftest.$ac_ext <<_ACEOF
25845 /* end confdefs.h. */
25847 /* Override any gcc2 internal prototype to avoid an error. */
25851 /* We use char because int might match the return type of a gcc2
25852 builtin and then its argument prototype would still apply. */
25853 char thr_create ();
25862 rm -f conftest.$ac_objext conftest$ac_exeext
25863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25864 (eval $ac_link) 2>conftest.er1
25866 grep -v '^ *+' conftest.er1 >conftest.err
25868 cat conftest.err >&5
25869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); } &&
25871 { ac_try='test -z "$ac_c_werror_flag"
25872 || test ! -s conftest.err'
25873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25874 (eval $ac_try) 2>&5
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); }; } &&
25878 { ac_try='test -s conftest$ac_exeext'
25879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25880 (eval $ac_try) 2>&5
25882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883 (exit $ac_status); }; }; then
25884 ac_cv_lib_thread_thr_create=yes
25886 echo "$as_me: failed program was:" >&5
25887 sed 's/^/| /' conftest.$ac_ext >&5
25889 ac_cv_lib_thread_thr_create=no
25891 rm -f conftest.err conftest.$ac_objext \
25892 conftest$ac_exeext conftest.$ac_ext
25893 LIBS=$ac_check_lib_save_LIBS
25895 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25896 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25897 if test $ac_cv_lib_thread_thr_create = yes; then
25904 if test $have_thr = yes ; then
25906 cat >>confdefs.h <<\_ACEOF
25910 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25911 ol_link_threads=thr
25913 if test $ol_with_yielding_select = auto ; then
25914 ol_with_yielding_select=yes
25920 thr_setconcurrency \
25921 thr_getconcurrency \
25924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25925 echo "$as_me:$LINENO: checking for $ac_func" >&5
25926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25927 if eval "test \"\${$as_ac_var+set}\" = set"; then
25928 echo $ECHO_N "(cached) $ECHO_C" >&6
25930 cat >conftest.$ac_ext <<_ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h. */
25936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25938 #define $ac_func innocuous_$ac_func
25940 /* System header to define __stub macros and hopefully few prototypes,
25941 which can conflict with char $ac_func (); below.
25942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25943 <limits.h> exists even on freestanding compilers. */
25946 # include <limits.h>
25948 # include <assert.h>
25953 /* Override any gcc2 internal prototype to avoid an error. */
25958 /* We use char because int might match the return type of a gcc2
25959 builtin and then its argument prototype would still apply. */
25961 /* The GNU C library defines this for functions which it implements
25962 to always fail with ENOSYS. Some functions are actually named
25963 something starting with __ and the normal name is an alias. */
25964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25967 char (*f) () = $ac_func;
25976 return f != $ac_func;
25981 rm -f conftest.$ac_objext conftest$ac_exeext
25982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25983 (eval $ac_link) 2>conftest.er1
25985 grep -v '^ *+' conftest.er1 >conftest.err
25987 cat conftest.err >&5
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); } &&
25990 { ac_try='test -z "$ac_c_werror_flag"
25991 || test ! -s conftest.err'
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); }; } &&
25997 { ac_try='test -s conftest$ac_exeext'
25998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25999 (eval $ac_try) 2>&5
26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); }; }; then
26003 eval "$as_ac_var=yes"
26005 echo "$as_me: failed program was:" >&5
26006 sed 's/^/| /' conftest.$ac_ext >&5
26008 eval "$as_ac_var=no"
26010 rm -f conftest.err conftest.$ac_objext \
26011 conftest$ac_exeext conftest.$ac_ext
26013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26015 if test `eval echo '${'$as_ac_var'}'` = yes; then
26016 cat >>confdefs.h <<_ACEOF
26017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26027 for ac_header in lwp/lwp.h
26029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26031 echo "$as_me:$LINENO: checking for $ac_header" >&5
26032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26034 echo $ECHO_N "(cached) $ECHO_C" >&6
26036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26039 # Is the header compilable?
26040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26042 cat >conftest.$ac_ext <<_ACEOF
26045 cat confdefs.h >>conftest.$ac_ext
26046 cat >>conftest.$ac_ext <<_ACEOF
26047 /* end confdefs.h. */
26048 $ac_includes_default
26049 #include <$ac_header>
26051 rm -f conftest.$ac_objext
26052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26053 (eval $ac_compile) 2>conftest.er1
26055 grep -v '^ *+' conftest.er1 >conftest.err
26057 cat conftest.err >&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); } &&
26060 { ac_try='test -z "$ac_c_werror_flag"
26061 || test ! -s conftest.err'
26062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063 (eval $ac_try) 2>&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); }; } &&
26067 { ac_try='test -s conftest.$ac_objext'
26068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069 (eval $ac_try) 2>&5
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); }; }; then
26073 ac_header_compiler=yes
26075 echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26078 ac_header_compiler=no
26080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26082 echo "${ECHO_T}$ac_header_compiler" >&6
26084 # Is the header present?
26085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26087 cat >conftest.$ac_ext <<_ACEOF
26090 cat confdefs.h >>conftest.$ac_ext
26091 cat >>conftest.$ac_ext <<_ACEOF
26092 /* end confdefs.h. */
26093 #include <$ac_header>
26095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26098 grep -v '^ *+' conftest.er1 >conftest.err
26100 cat conftest.err >&5
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); } >/dev/null; then
26103 if test -s conftest.err; then
26104 ac_cpp_err=$ac_c_preproc_warn_flag
26105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26112 if test -z "$ac_cpp_err"; then
26113 ac_header_preproc=yes
26115 echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26118 ac_header_preproc=no
26120 rm -f conftest.err conftest.$ac_ext
26121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26122 echo "${ECHO_T}$ac_header_preproc" >&6
26124 # So? What about this header?
26125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26131 ac_header_preproc=yes
26134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26148 ## ------------------------------------------ ##
26149 ## Report this to the AC_PACKAGE_NAME lists. ##
26150 ## ------------------------------------------ ##
26153 sed "s/^/$as_me: WARNING: /" >&2
26156 echo "$as_me:$LINENO: checking for $ac_header" >&5
26157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26159 echo $ECHO_N "(cached) $ECHO_C" >&6
26161 eval "$as_ac_Header=\$ac_header_preproc"
26163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26168 cat >>confdefs.h <<_ACEOF
26169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26176 if test $ac_cv_header_lwp_lwp_h = yes ; then
26177 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26178 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26179 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26180 echo $ECHO_N "(cached) $ECHO_C" >&6
26182 ac_check_lib_save_LIBS=$LIBS
26184 cat >conftest.$ac_ext <<_ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h. */
26191 /* Override any gcc2 internal prototype to avoid an error. */
26195 /* We use char because int might match the return type of a gcc2
26196 builtin and then its argument prototype would still apply. */
26197 char lwp_create ();
26206 rm -f conftest.$ac_objext conftest$ac_exeext
26207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26208 (eval $ac_link) 2>conftest.er1
26210 grep -v '^ *+' conftest.er1 >conftest.err
26212 cat conftest.err >&5
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); } &&
26215 { ac_try='test -z "$ac_c_werror_flag"
26216 || test ! -s conftest.err'
26217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26218 (eval $ac_try) 2>&5
26220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221 (exit $ac_status); }; } &&
26222 { ac_try='test -s conftest$ac_exeext'
26223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26224 (eval $ac_try) 2>&5
26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); }; }; then
26228 ac_cv_lib_lwp_lwp_create=yes
26230 echo "$as_me: failed program was:" >&5
26231 sed 's/^/| /' conftest.$ac_ext >&5
26233 ac_cv_lib_lwp_lwp_create=no
26235 rm -f conftest.err conftest.$ac_objext \
26236 conftest$ac_exeext conftest.$ac_ext
26237 LIBS=$ac_check_lib_save_LIBS
26239 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26240 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26241 if test $ac_cv_lib_lwp_lwp_create = yes; then
26248 if test $have_lwp = yes ; then
26250 cat >>confdefs.h <<\_ACEOF
26254 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26255 ol_link_threads=lwp
26257 if test $ol_with_yielding_select = auto ; then
26258 ol_with_yielding_select=no
26264 if test $ol_with_yielding_select = yes ; then
26266 cat >>confdefs.h <<\_ACEOF
26267 #define HAVE_YIELDING_SELECT 1
26272 if test $ol_with_threads = manual ; then
26273 ol_link_threads=yes
26275 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26276 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26280 for ac_header in pthread.h sched.h
26282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26284 echo "$as_me:$LINENO: checking for $ac_header" >&5
26285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26287 echo $ECHO_N "(cached) $ECHO_C" >&6
26289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26292 # Is the header compilable?
26293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26295 cat >conftest.$ac_ext <<_ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h. */
26301 $ac_includes_default
26302 #include <$ac_header>
26304 rm -f conftest.$ac_objext
26305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26306 (eval $ac_compile) 2>conftest.er1
26308 grep -v '^ *+' conftest.er1 >conftest.err
26310 cat conftest.err >&5
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } &&
26313 { ac_try='test -z "$ac_c_werror_flag"
26314 || test ! -s conftest.err'
26315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26316 (eval $ac_try) 2>&5
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); }; } &&
26320 { ac_try='test -s conftest.$ac_objext'
26321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322 (eval $ac_try) 2>&5
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; }; then
26326 ac_header_compiler=yes
26328 echo "$as_me: failed program was:" >&5
26329 sed 's/^/| /' conftest.$ac_ext >&5
26331 ac_header_compiler=no
26333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26335 echo "${ECHO_T}$ac_header_compiler" >&6
26337 # Is the header present?
26338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26340 cat >conftest.$ac_ext <<_ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h. */
26346 #include <$ac_header>
26348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26351 grep -v '^ *+' conftest.er1 >conftest.err
26353 cat conftest.err >&5
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); } >/dev/null; then
26356 if test -s conftest.err; then
26357 ac_cpp_err=$ac_c_preproc_warn_flag
26358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26365 if test -z "$ac_cpp_err"; then
26366 ac_header_preproc=yes
26368 echo "$as_me: failed program was:" >&5
26369 sed 's/^/| /' conftest.$ac_ext >&5
26371 ac_header_preproc=no
26373 rm -f conftest.err conftest.$ac_ext
26374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26375 echo "${ECHO_T}$ac_header_preproc" >&6
26377 # So? What about this header?
26378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26384 ac_header_preproc=yes
26387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26401 ## ------------------------------------------ ##
26402 ## Report this to the AC_PACKAGE_NAME lists. ##
26403 ## ------------------------------------------ ##
26406 sed "s/^/$as_me: WARNING: /" >&2
26409 echo "$as_me:$LINENO: checking for $ac_header" >&5
26410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26412 echo $ECHO_N "(cached) $ECHO_C" >&6
26414 eval "$as_ac_Header=\$ac_header_preproc"
26416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26421 cat >>confdefs.h <<_ACEOF
26422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26431 for ac_func in sched_yield pthread_yield
26433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26434 echo "$as_me:$LINENO: checking for $ac_func" >&5
26435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26436 if eval "test \"\${$as_ac_var+set}\" = set"; then
26437 echo $ECHO_N "(cached) $ECHO_C" >&6
26439 cat >conftest.$ac_ext <<_ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h. */
26445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26447 #define $ac_func innocuous_$ac_func
26449 /* System header to define __stub macros and hopefully few prototypes,
26450 which can conflict with char $ac_func (); below.
26451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26452 <limits.h> exists even on freestanding compilers. */
26455 # include <limits.h>
26457 # include <assert.h>
26462 /* Override any gcc2 internal prototype to avoid an error. */
26467 /* We use char because int might match the return type of a gcc2
26468 builtin and then its argument prototype would still apply. */
26470 /* The GNU C library defines this for functions which it implements
26471 to always fail with ENOSYS. Some functions are actually named
26472 something starting with __ and the normal name is an alias. */
26473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26476 char (*f) () = $ac_func;
26485 return f != $ac_func;
26490 rm -f conftest.$ac_objext conftest$ac_exeext
26491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26492 (eval $ac_link) 2>conftest.er1
26494 grep -v '^ *+' conftest.er1 >conftest.err
26496 cat conftest.err >&5
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); } &&
26499 { ac_try='test -z "$ac_c_werror_flag"
26500 || test ! -s conftest.err'
26501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26502 (eval $ac_try) 2>&5
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); }; } &&
26506 { ac_try='test -s conftest$ac_exeext'
26507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26508 (eval $ac_try) 2>&5
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511 (exit $ac_status); }; }; then
26512 eval "$as_ac_var=yes"
26514 echo "$as_me: failed program was:" >&5
26515 sed 's/^/| /' conftest.$ac_ext >&5
26517 eval "$as_ac_var=no"
26519 rm -f conftest.err conftest.$ac_objext \
26520 conftest$ac_exeext conftest.$ac_ext
26522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26524 if test `eval echo '${'$as_ac_var'}'` = yes; then
26525 cat >>confdefs.h <<_ACEOF
26526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26533 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26534 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26535 if test "${ol_cv_header_linux_threads+set}" = set; then
26536 echo $ECHO_N "(cached) $ECHO_C" >&6
26538 cat >conftest.$ac_ext <<_ACEOF
26541 cat confdefs.h >>conftest.$ac_ext
26542 cat >>conftest.$ac_ext <<_ACEOF
26543 /* end confdefs.h. */
26544 #include <pthread.h>
26546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26547 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26548 ol_cv_header_linux_threads=yes
26550 ol_cv_header_linux_threads=no
26556 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26557 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26558 if test $ol_cv_header_linux_threads = yes; then
26560 cat >>confdefs.h <<\_ACEOF
26561 #define HAVE_LINUX_THREADS 1
26568 for ac_header in mach/cthreads.h
26570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26572 echo "$as_me:$LINENO: checking for $ac_header" >&5
26573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26575 echo $ECHO_N "(cached) $ECHO_C" >&6
26577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26580 # Is the header compilable?
26581 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26583 cat >conftest.$ac_ext <<_ACEOF
26586 cat confdefs.h >>conftest.$ac_ext
26587 cat >>conftest.$ac_ext <<_ACEOF
26588 /* end confdefs.h. */
26589 $ac_includes_default
26590 #include <$ac_header>
26592 rm -f conftest.$ac_objext
26593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26594 (eval $ac_compile) 2>conftest.er1
26596 grep -v '^ *+' conftest.er1 >conftest.err
26598 cat conftest.err >&5
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); } &&
26601 { ac_try='test -z "$ac_c_werror_flag"
26602 || test ! -s conftest.err'
26603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26604 (eval $ac_try) 2>&5
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); }; } &&
26608 { ac_try='test -s conftest.$ac_objext'
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; }; then
26614 ac_header_compiler=yes
26616 echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26619 ac_header_compiler=no
26621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26623 echo "${ECHO_T}$ac_header_compiler" >&6
26625 # Is the header present?
26626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26628 cat >conftest.$ac_ext <<_ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h. */
26634 #include <$ac_header>
26636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26639 grep -v '^ *+' conftest.er1 >conftest.err
26641 cat conftest.err >&5
26642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26643 (exit $ac_status); } >/dev/null; then
26644 if test -s conftest.err; then
26645 ac_cpp_err=$ac_c_preproc_warn_flag
26646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26653 if test -z "$ac_cpp_err"; then
26654 ac_header_preproc=yes
26656 echo "$as_me: failed program was:" >&5
26657 sed 's/^/| /' conftest.$ac_ext >&5
26659 ac_header_preproc=no
26661 rm -f conftest.err conftest.$ac_ext
26662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26663 echo "${ECHO_T}$ac_header_preproc" >&6
26665 # So? What about this header?
26666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26672 ac_header_preproc=yes
26675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26689 ## ------------------------------------------ ##
26690 ## Report this to the AC_PACKAGE_NAME lists. ##
26691 ## ------------------------------------------ ##
26694 sed "s/^/$as_me: WARNING: /" >&2
26697 echo "$as_me:$LINENO: checking for $ac_header" >&5
26698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26700 echo $ECHO_N "(cached) $ECHO_C" >&6
26702 eval "$as_ac_Header=\$ac_header_preproc"
26704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26709 cat >>confdefs.h <<_ACEOF
26710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26718 for ac_header in lwp/lwp.h
26720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26722 echo "$as_me:$LINENO: checking for $ac_header" >&5
26723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26725 echo $ECHO_N "(cached) $ECHO_C" >&6
26727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26730 # Is the header compilable?
26731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26733 cat >conftest.$ac_ext <<_ACEOF
26736 cat confdefs.h >>conftest.$ac_ext
26737 cat >>conftest.$ac_ext <<_ACEOF
26738 /* end confdefs.h. */
26739 $ac_includes_default
26740 #include <$ac_header>
26742 rm -f conftest.$ac_objext
26743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26744 (eval $ac_compile) 2>conftest.er1
26746 grep -v '^ *+' conftest.er1 >conftest.err
26748 cat conftest.err >&5
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); } &&
26751 { ac_try='test -z "$ac_c_werror_flag"
26752 || test ! -s conftest.err'
26753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26754 (eval $ac_try) 2>&5
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); }; } &&
26758 { ac_try='test -s conftest.$ac_objext'
26759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26760 (eval $ac_try) 2>&5
26762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763 (exit $ac_status); }; }; then
26764 ac_header_compiler=yes
26766 echo "$as_me: failed program was:" >&5
26767 sed 's/^/| /' conftest.$ac_ext >&5
26769 ac_header_compiler=no
26771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26773 echo "${ECHO_T}$ac_header_compiler" >&6
26775 # Is the header present?
26776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26778 cat >conftest.$ac_ext <<_ACEOF
26781 cat confdefs.h >>conftest.$ac_ext
26782 cat >>conftest.$ac_ext <<_ACEOF
26783 /* end confdefs.h. */
26784 #include <$ac_header>
26786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26789 grep -v '^ *+' conftest.er1 >conftest.err
26791 cat conftest.err >&5
26792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793 (exit $ac_status); } >/dev/null; then
26794 if test -s conftest.err; then
26795 ac_cpp_err=$ac_c_preproc_warn_flag
26796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26803 if test -z "$ac_cpp_err"; then
26804 ac_header_preproc=yes
26806 echo "$as_me: failed program was:" >&5
26807 sed 's/^/| /' conftest.$ac_ext >&5
26809 ac_header_preproc=no
26811 rm -f conftest.err conftest.$ac_ext
26812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26813 echo "${ECHO_T}$ac_header_preproc" >&6
26815 # So? What about this header?
26816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26822 ac_header_preproc=yes
26825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26839 ## ------------------------------------------ ##
26840 ## Report this to the AC_PACKAGE_NAME lists. ##
26841 ## ------------------------------------------ ##
26844 sed "s/^/$as_me: WARNING: /" >&2
26847 echo "$as_me:$LINENO: checking for $ac_header" >&5
26848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26850 echo $ECHO_N "(cached) $ECHO_C" >&6
26852 eval "$as_ac_Header=\$ac_header_preproc"
26854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26859 cat >>confdefs.h <<_ACEOF
26860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26869 for ac_header in thread.h synch.h
26871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26873 echo "$as_me:$LINENO: checking for $ac_header" >&5
26874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26876 echo $ECHO_N "(cached) $ECHO_C" >&6
26878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26881 # Is the header compilable?
26882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26884 cat >conftest.$ac_ext <<_ACEOF
26887 cat confdefs.h >>conftest.$ac_ext
26888 cat >>conftest.$ac_ext <<_ACEOF
26889 /* end confdefs.h. */
26890 $ac_includes_default
26891 #include <$ac_header>
26893 rm -f conftest.$ac_objext
26894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26895 (eval $ac_compile) 2>conftest.er1
26897 grep -v '^ *+' conftest.er1 >conftest.err
26899 cat conftest.err >&5
26900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901 (exit $ac_status); } &&
26902 { ac_try='test -z "$ac_c_werror_flag"
26903 || test ! -s conftest.err'
26904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26905 (eval $ac_try) 2>&5
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); }; } &&
26909 { ac_try='test -s conftest.$ac_objext'
26910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26911 (eval $ac_try) 2>&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); }; }; then
26915 ac_header_compiler=yes
26917 echo "$as_me: failed program was:" >&5
26918 sed 's/^/| /' conftest.$ac_ext >&5
26920 ac_header_compiler=no
26922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26924 echo "${ECHO_T}$ac_header_compiler" >&6
26926 # Is the header present?
26927 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26929 cat >conftest.$ac_ext <<_ACEOF
26932 cat confdefs.h >>conftest.$ac_ext
26933 cat >>conftest.$ac_ext <<_ACEOF
26934 /* end confdefs.h. */
26935 #include <$ac_header>
26937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26940 grep -v '^ *+' conftest.er1 >conftest.err
26942 cat conftest.err >&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); } >/dev/null; then
26945 if test -s conftest.err; then
26946 ac_cpp_err=$ac_c_preproc_warn_flag
26947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26954 if test -z "$ac_cpp_err"; then
26955 ac_header_preproc=yes
26957 echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26960 ac_header_preproc=no
26962 rm -f conftest.err conftest.$ac_ext
26963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26964 echo "${ECHO_T}$ac_header_preproc" >&6
26966 # So? What about this header?
26967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26973 ac_header_preproc=yes
26976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26990 ## ------------------------------------------ ##
26991 ## Report this to the AC_PACKAGE_NAME lists. ##
26992 ## ------------------------------------------ ##
26995 sed "s/^/$as_me: WARNING: /" >&2
26998 echo "$as_me:$LINENO: checking for $ac_header" >&5
26999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27001 echo $ECHO_N "(cached) $ECHO_C" >&6
27003 eval "$as_ac_Header=\$ac_header_preproc"
27005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27010 cat >>confdefs.h <<_ACEOF
27011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27020 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
27021 cat >>confdefs.h <<\_ACEOF
27022 #define REENTRANT 1
27025 cat >>confdefs.h <<\_ACEOF
27026 #define _REENTRANT 1
27029 cat >>confdefs.h <<\_ACEOF
27030 #define THREAD_SAFE 1
27033 cat >>confdefs.h <<\_ACEOF
27034 #define _THREAD_SAFE 1
27037 cat >>confdefs.h <<\_ACEOF
27038 #define THREADSAFE 1
27041 cat >>confdefs.h <<\_ACEOF
27042 #define _THREADSAFE 1
27045 cat >>confdefs.h <<\_ACEOF
27046 #define _SGI_MP_SOURCE 1
27050 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27051 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27052 if test "${ol_cv_errno_thread_specific+set}" = set; then
27053 echo $ECHO_N "(cached) $ECHO_C" >&6
27056 cat >conftest.$ac_ext <<_ACEOF
27059 cat confdefs.h >>conftest.$ac_ext
27060 cat >>conftest.$ac_ext <<_ACEOF
27061 /* end confdefs.h. */
27071 rm -f conftest.$ac_objext conftest$ac_exeext
27072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27073 (eval $ac_link) 2>conftest.er1
27075 grep -v '^ *+' conftest.er1 >conftest.err
27077 cat conftest.err >&5
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); } &&
27080 { ac_try='test -z "$ac_c_werror_flag"
27081 || test ! -s conftest.err'
27082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27083 (eval $ac_try) 2>&5
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); }; } &&
27087 { ac_try='test -s conftest$ac_exeext'
27088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27089 (eval $ac_try) 2>&5
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); }; }; then
27093 ol_cv_errno_thread_specific=yes
27095 echo "$as_me: failed program was:" >&5
27096 sed 's/^/| /' conftest.$ac_ext >&5
27098 ol_cv_errno_thread_specific=no
27100 rm -f conftest.err conftest.$ac_objext \
27101 conftest$ac_exeext conftest.$ac_ext
27104 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27105 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27107 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27108 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27109 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27110 echo $ECHO_N "(cached) $ECHO_C" >&6
27113 cat >conftest.$ac_ext <<_ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h. */
27128 rm -f conftest.$ac_objext conftest$ac_exeext
27129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27130 (eval $ac_link) 2>conftest.er1
27132 grep -v '^ *+' conftest.er1 >conftest.err
27134 cat conftest.err >&5
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); } &&
27137 { ac_try='test -z "$ac_c_werror_flag"
27138 || test ! -s conftest.err'
27139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27140 (eval $ac_try) 2>&5
27142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); }; } &&
27144 { ac_try='test -s conftest$ac_exeext'
27145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27146 (eval $ac_try) 2>&5
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); }; }; then
27150 ol_cv_h_errno_thread_specific=yes
27152 echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27155 ol_cv_h_errno_thread_specific=no
27157 rm -f conftest.err conftest.$ac_objext \
27158 conftest$ac_exeext conftest.$ac_ext
27161 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27162 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27164 if test $ol_cv_errno_thread_specific != yes \
27165 -o $ol_cv_h_errno_thread_specific != yes ; then
27166 LIBS="$LTHREAD_LIBS $LIBS"
27172 if test $ol_link_threads = no ; then
27173 if test $ol_with_threads = yes ; then
27174 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27175 echo "$as_me: error: no suitable thread support" >&2;}
27176 { (exit 1); exit 1; }; }
27179 if test $ol_with_threads = auto ; then
27180 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27181 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27186 cat >>confdefs.h <<\_ACEOF
27187 #define NO_THREADS 1
27193 if test $ol_link_threads != no ; then
27195 cat >>confdefs.h <<\_ACEOF
27196 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27206 gethostbyname_r gethostbyaddr_r \
27209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27210 echo "$as_me:$LINENO: checking for $ac_func" >&5
27211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27212 if eval "test \"\${$as_ac_var+set}\" = set"; then
27213 echo $ECHO_N "(cached) $ECHO_C" >&6
27215 cat >conftest.$ac_ext <<_ACEOF
27218 cat confdefs.h >>conftest.$ac_ext
27219 cat >>conftest.$ac_ext <<_ACEOF
27220 /* end confdefs.h. */
27221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27223 #define $ac_func innocuous_$ac_func
27225 /* System header to define __stub macros and hopefully few prototypes,
27226 which can conflict with char $ac_func (); below.
27227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27228 <limits.h> exists even on freestanding compilers. */
27231 # include <limits.h>
27233 # include <assert.h>
27238 /* Override any gcc2 internal prototype to avoid an error. */
27243 /* We use char because int might match the return type of a gcc2
27244 builtin and then its argument prototype would still apply. */
27246 /* The GNU C library defines this for functions which it implements
27247 to always fail with ENOSYS. Some functions are actually named
27248 something starting with __ and the normal name is an alias. */
27249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27252 char (*f) () = $ac_func;
27261 return f != $ac_func;
27266 rm -f conftest.$ac_objext conftest$ac_exeext
27267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27268 (eval $ac_link) 2>conftest.er1
27270 grep -v '^ *+' conftest.er1 >conftest.err
27272 cat conftest.err >&5
27273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274 (exit $ac_status); } &&
27275 { ac_try='test -z "$ac_c_werror_flag"
27276 || test ! -s conftest.err'
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); }; } &&
27282 { ac_try='test -s conftest$ac_exeext'
27283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27284 (eval $ac_try) 2>&5
27286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); }; }; then
27288 eval "$as_ac_var=yes"
27290 echo "$as_me: failed program was:" >&5
27291 sed 's/^/| /' conftest.$ac_ext >&5
27293 eval "$as_ac_var=no"
27295 rm -f conftest.err conftest.$ac_objext \
27296 conftest$ac_exeext conftest.$ac_ext
27298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27300 if test `eval echo '${'$as_ac_var'}'` = yes; then
27301 cat >>confdefs.h <<_ACEOF
27302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27309 if test "$ac_cv_func_ctime_r" = no ; then
27310 ol_cv_func_ctime_r_nargs=0
27312 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27313 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27314 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27315 echo $ECHO_N "(cached) $ECHO_C" >&6
27317 cat >conftest.$ac_ext <<_ACEOF
27320 cat confdefs.h >>conftest.$ac_ext
27321 cat >>conftest.$ac_ext <<_ACEOF
27322 /* end confdefs.h. */
27327 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27332 rm -f conftest.$ac_objext
27333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27334 (eval $ac_compile) 2>conftest.er1
27336 grep -v '^ *+' conftest.er1 >conftest.err
27338 cat conftest.err >&5
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); } &&
27341 { ac_try='test -z "$ac_c_werror_flag"
27342 || test ! -s conftest.err'
27343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27344 (eval $ac_try) 2>&5
27346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); }; } &&
27348 { ac_try='test -s conftest.$ac_objext'
27349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27350 (eval $ac_try) 2>&5
27352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); }; }; then
27354 ol_cv_func_ctime_r_nargs3=yes
27356 echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27359 ol_cv_func_ctime_r_nargs3=no
27361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27363 cat >conftest.$ac_ext <<_ACEOF
27366 cat confdefs.h >>conftest.$ac_ext
27367 cat >>conftest.$ac_ext <<_ACEOF
27368 /* end confdefs.h. */
27373 time_t ti; char *buffer; ctime_r(&ti,buffer);
27378 rm -f conftest.$ac_objext
27379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27380 (eval $ac_compile) 2>conftest.er1
27382 grep -v '^ *+' conftest.er1 >conftest.err
27384 cat conftest.err >&5
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); } &&
27387 { ac_try='test -z "$ac_c_werror_flag"
27388 || test ! -s conftest.err'
27389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27390 (eval $ac_try) 2>&5
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); }; } &&
27394 { ac_try='test -s conftest.$ac_objext'
27395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27396 (eval $ac_try) 2>&5
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); }; }; then
27400 ol_cv_func_ctime_r_nargs2=yes
27402 echo "$as_me: failed program was:" >&5
27403 sed 's/^/| /' conftest.$ac_ext >&5
27405 ol_cv_func_ctime_r_nargs2=no
27407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27409 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
27410 $ol_cv_func_ctime_r_nargs2 = no ; then
27412 ol_cv_func_ctime_r_nargs=3
27414 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
27415 $ol_cv_func_ctime_r_nargs2 = yes ; then
27417 ol_cv_func_ctime_r_nargs=2
27420 ol_cv_func_ctime_r_nargs=0
27424 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27425 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27427 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27429 cat >>confdefs.h <<_ACEOF
27430 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27437 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27438 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27439 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27440 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27441 echo $ECHO_N "(cached) $ECHO_C" >&6
27443 cat >conftest.$ac_ext <<_ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h. */
27449 #include <sys/types.h>
27450 #include <sys/socket.h>
27451 #include <netinet/in.h>
27453 #define BUFSIZE (sizeof(struct hostent)+10)
27457 struct hostent hent; char buffer[BUFSIZE];
27458 int bufsize=BUFSIZE;int h_errno;
27459 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27460 buffer, bufsize, &h_errno);
27465 rm -f conftest.$ac_objext
27466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27467 (eval $ac_compile) 2>conftest.er1
27469 grep -v '^ *+' conftest.er1 >conftest.err
27471 cat conftest.err >&5
27472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473 (exit $ac_status); } &&
27474 { ac_try='test -z "$ac_c_werror_flag"
27475 || test ! -s conftest.err'
27476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27477 (eval $ac_try) 2>&5
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; } &&
27481 { ac_try='test -s conftest.$ac_objext'
27482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27483 (eval $ac_try) 2>&5
27485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486 (exit $ac_status); }; }; then
27487 ol_cv_func_gethostbyname_r_nargs5=yes
27489 echo "$as_me: failed program was:" >&5
27490 sed 's/^/| /' conftest.$ac_ext >&5
27492 ol_cv_func_gethostbyname_r_nargs5=no
27494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27496 cat >conftest.$ac_ext <<_ACEOF
27499 cat confdefs.h >>conftest.$ac_ext
27500 cat >>conftest.$ac_ext <<_ACEOF
27501 /* end confdefs.h. */
27502 #include <sys/types.h>
27503 #include <sys/socket.h>
27504 #include <netinet/in.h>
27506 #define BUFSIZE (sizeof(struct hostent)+10)
27510 struct hostent hent;struct hostent *rhent;
27511 char buffer[BUFSIZE];
27512 int bufsize=BUFSIZE;int h_errno;
27513 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27519 rm -f conftest.$ac_objext
27520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27521 (eval $ac_compile) 2>conftest.er1
27523 grep -v '^ *+' conftest.er1 >conftest.err
27525 cat conftest.err >&5
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); } &&
27528 { ac_try='test -z "$ac_c_werror_flag"
27529 || test ! -s conftest.err'
27530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27531 (eval $ac_try) 2>&5
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; } &&
27535 { ac_try='test -s conftest.$ac_objext'
27536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27537 (eval $ac_try) 2>&5
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); }; }; then
27541 ol_cv_func_gethostbyname_r_nargs6=yes
27543 echo "$as_me: failed program was:" >&5
27544 sed 's/^/| /' conftest.$ac_ext >&5
27546 ol_cv_func_gethostbyname_r_nargs6=no
27548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27550 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
27551 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27553 ol_cv_func_gethostbyname_r_nargs=5
27555 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
27556 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27558 ol_cv_func_gethostbyname_r_nargs=6
27561 ol_cv_func_gethostbyname_r_nargs=0
27565 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27566 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27567 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27569 cat >>confdefs.h <<_ACEOF
27570 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27576 ol_cv_func_gethostbyname_r_nargs=0
27579 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27580 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27581 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27582 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27583 echo $ECHO_N "(cached) $ECHO_C" >&6
27585 cat >conftest.$ac_ext <<_ACEOF
27588 cat confdefs.h >>conftest.$ac_ext
27589 cat >>conftest.$ac_ext <<_ACEOF
27590 /* end confdefs.h. */
27591 #include <sys/types.h>
27592 #include <sys/socket.h>
27593 #include <netinet/in.h>
27595 #define BUFSIZE (sizeof(struct hostent)+10)
27599 struct hostent hent; char buffer[BUFSIZE];
27600 struct in_addr add;
27601 size_t alen=sizeof(struct in_addr);
27602 int bufsize=BUFSIZE;int h_errno;
27603 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27604 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27609 rm -f conftest.$ac_objext
27610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27611 (eval $ac_compile) 2>conftest.er1
27613 grep -v '^ *+' conftest.er1 >conftest.err
27615 cat conftest.err >&5
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); } &&
27618 { ac_try='test -z "$ac_c_werror_flag"
27619 || test ! -s conftest.err'
27620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27621 (eval $ac_try) 2>&5
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); }; } &&
27625 { ac_try='test -s conftest.$ac_objext'
27626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27627 (eval $ac_try) 2>&5
27629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630 (exit $ac_status); }; }; then
27631 ol_cv_func_gethostbyaddr_r_nargs7=yes
27633 echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27636 ol_cv_func_gethostbyaddr_r_nargs7=no
27638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27640 cat >conftest.$ac_ext <<_ACEOF
27643 cat confdefs.h >>conftest.$ac_ext
27644 cat >>conftest.$ac_ext <<_ACEOF
27645 /* end confdefs.h. */
27646 #include <sys/types.h>
27647 #include <sys/socket.h>
27648 #include <netinet/in.h>
27650 #define BUFSIZE (sizeof(struct hostent)+10)
27654 struct hostent hent;
27655 struct hostent *rhent; char buffer[BUFSIZE];
27656 struct in_addr add;
27657 size_t alen=sizeof(struct in_addr);
27658 int bufsize=BUFSIZE;int h_errno;
27659 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27660 alen, AF_INET, &hent, buffer, bufsize,
27666 rm -f conftest.$ac_objext
27667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27668 (eval $ac_compile) 2>conftest.er1
27670 grep -v '^ *+' conftest.er1 >conftest.err
27672 cat conftest.err >&5
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); } &&
27675 { ac_try='test -z "$ac_c_werror_flag"
27676 || test ! -s conftest.err'
27677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27678 (eval $ac_try) 2>&5
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); }; } &&
27682 { ac_try='test -s conftest.$ac_objext'
27683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27684 (eval $ac_try) 2>&5
27686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687 (exit $ac_status); }; }; then
27688 ol_cv_func_gethostbyaddr_r_nargs8=yes
27690 echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27693 ol_cv_func_gethostbyaddr_r_nargs8=no
27695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27697 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
27698 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27700 ol_cv_func_gethostbyaddr_r_nargs=7
27702 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
27703 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27705 ol_cv_func_gethostbyaddr_r_nargs=8
27708 ol_cv_func_gethostbyaddr_r_nargs=0
27712 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27713 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27714 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27716 cat >>confdefs.h <<_ACEOF
27717 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27723 ol_cv_func_gethostbyaddr_r_nargs=0
27728 if test $ol_enable_ldbm_api = auto \
27729 -o $ol_enable_ldbm_api = berkeley \
27730 -o $ol_enable_ldbm_api = bcompat ; then
27732 if test $ol_enable_ldbm_api = bcompat; then \
27735 for ac_header in db_185.h db.h
27737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27739 echo "$as_me:$LINENO: checking for $ac_header" >&5
27740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27742 echo $ECHO_N "(cached) $ECHO_C" >&6
27744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27747 # Is the header compilable?
27748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27750 cat >conftest.$ac_ext <<_ACEOF
27753 cat confdefs.h >>conftest.$ac_ext
27754 cat >>conftest.$ac_ext <<_ACEOF
27755 /* end confdefs.h. */
27756 $ac_includes_default
27757 #include <$ac_header>
27759 rm -f conftest.$ac_objext
27760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27761 (eval $ac_compile) 2>conftest.er1
27763 grep -v '^ *+' conftest.er1 >conftest.err
27765 cat conftest.err >&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); } &&
27768 { ac_try='test -z "$ac_c_werror_flag"
27769 || test ! -s conftest.err'
27770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27771 (eval $ac_try) 2>&5
27773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774 (exit $ac_status); }; } &&
27775 { ac_try='test -s conftest.$ac_objext'
27776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27777 (eval $ac_try) 2>&5
27779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780 (exit $ac_status); }; }; then
27781 ac_header_compiler=yes
27783 echo "$as_me: failed program was:" >&5
27784 sed 's/^/| /' conftest.$ac_ext >&5
27786 ac_header_compiler=no
27788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27790 echo "${ECHO_T}$ac_header_compiler" >&6
27792 # Is the header present?
27793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27795 cat >conftest.$ac_ext <<_ACEOF
27798 cat confdefs.h >>conftest.$ac_ext
27799 cat >>conftest.$ac_ext <<_ACEOF
27800 /* end confdefs.h. */
27801 #include <$ac_header>
27803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27806 grep -v '^ *+' conftest.er1 >conftest.err
27808 cat conftest.err >&5
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); } >/dev/null; then
27811 if test -s conftest.err; then
27812 ac_cpp_err=$ac_c_preproc_warn_flag
27813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27820 if test -z "$ac_cpp_err"; then
27821 ac_header_preproc=yes
27823 echo "$as_me: failed program was:" >&5
27824 sed 's/^/| /' conftest.$ac_ext >&5
27826 ac_header_preproc=no
27828 rm -f conftest.err conftest.$ac_ext
27829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27830 echo "${ECHO_T}$ac_header_preproc" >&6
27832 # So? What about this header?
27833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27839 ac_header_preproc=yes
27842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27856 ## ------------------------------------------ ##
27857 ## Report this to the AC_PACKAGE_NAME lists. ##
27858 ## ------------------------------------------ ##
27861 sed "s/^/$as_me: WARNING: /" >&2
27864 echo "$as_me:$LINENO: checking for $ac_header" >&5
27865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27867 echo $ECHO_N "(cached) $ECHO_C" >&6
27869 eval "$as_ac_Header=\$ac_header_preproc"
27871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27876 cat >>confdefs.h <<_ACEOF
27877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27884 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
27885 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27886 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27887 if test "${ol_cv_header_db1+set}" = set; then
27888 echo $ECHO_N "(cached) $ECHO_C" >&6
27891 cat >conftest.$ac_ext <<_ACEOF
27894 cat confdefs.h >>conftest.$ac_ext
27895 cat >>conftest.$ac_ext <<_ACEOF
27896 /* end confdefs.h. */
27899 # include <db_185.h>
27904 /* this check could be improved */
27905 #ifndef DB_VERSION_MAJOR
27906 # define DB_VERSION_MAJOR 1
27909 #if DB_VERSION_MAJOR == 1
27914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27915 $EGREP "__db_version_1" >/dev/null 2>&1; then
27916 ol_cv_header_db1=yes
27918 ol_cv_header_db1=no
27923 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27924 echo "${ECHO_T}$ol_cv_header_db1" >&6
27926 if test $ol_cv_header_db1 = yes ; then
27928 if test $ol_cv_lib_db = no ; then
27929 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
27930 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
27931 if test "${ol_cv_db_none+set}" = set; then
27932 echo $ECHO_N "(cached) $ECHO_C" >&6
27937 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27939 cat >conftest.$ac_ext <<_ACEOF
27942 cat confdefs.h >>conftest.$ac_ext
27943 cat >>conftest.$ac_ext <<_ACEOF
27944 /* end confdefs.h. */
27946 #ifdef HAVE_DB_185_H
27947 # include <db_185.h>
27952 #ifndef DB_VERSION_MAJOR
27953 # define DB_VERSION_MAJOR 1
27957 #define NULL ((void*)0)
27964 #if DB_VERSION_MAJOR > 1
27967 int major, minor, patch;
27969 version = db_version( &major, &minor, &patch );
27971 if( major != DB_VERSION_MAJOR ||
27972 minor < DB_VERSION_MINOR )
27974 printf("Berkeley DB version mismatch\n"
27975 "\theader: %s\n\tlibrary: %s\n",
27976 DB_VERSION_STRING, version);
27982 #if DB_VERSION_MAJOR > 2
27983 db_env_create( NULL, 0 );
27984 #elif DB_VERSION_MAJOR > 1
27985 db_appexit( NULL );
27987 (void) dbopen( NULL, 0, 0, 0, NULL);
27994 rm -f conftest.$ac_objext conftest$ac_exeext
27995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27996 (eval $ac_link) 2>conftest.er1
27998 grep -v '^ *+' conftest.er1 >conftest.err
28000 cat conftest.err >&5
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); } &&
28003 { ac_try='test -z "$ac_c_werror_flag"
28004 || test ! -s conftest.err'
28005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28006 (eval $ac_try) 2>&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); }; } &&
28010 { ac_try='test -s conftest$ac_exeext'
28011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012 (eval $ac_try) 2>&5
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; }; then
28018 echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28023 rm -f conftest.err conftest.$ac_objext \
28024 conftest$ac_exeext conftest.$ac_ext
28029 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28030 echo "${ECHO_T}$ol_cv_db_none" >&6
28032 if test $ol_cv_db_none = yes ; then
28037 if test $ol_cv_lib_db = no ; then
28038 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28039 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28040 if test "${ol_cv_db_db43+set}" = set; then
28041 echo $ECHO_N "(cached) $ECHO_C" >&6
28046 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28048 cat >conftest.$ac_ext <<_ACEOF
28051 cat confdefs.h >>conftest.$ac_ext
28052 cat >>conftest.$ac_ext <<_ACEOF
28053 /* end confdefs.h. */
28055 #ifdef HAVE_DB_185_H
28056 # include <db_185.h>
28061 #ifndef DB_VERSION_MAJOR
28062 # define DB_VERSION_MAJOR 1
28066 #define NULL ((void*)0)
28073 #if DB_VERSION_MAJOR > 1
28076 int major, minor, patch;
28078 version = db_version( &major, &minor, &patch );
28080 if( major != DB_VERSION_MAJOR ||
28081 minor < DB_VERSION_MINOR )
28083 printf("Berkeley DB version mismatch\n"
28084 "\theader: %s\n\tlibrary: %s\n",
28085 DB_VERSION_STRING, version);
28091 #if DB_VERSION_MAJOR > 2
28092 db_env_create( NULL, 0 );
28093 #elif DB_VERSION_MAJOR > 1
28094 db_appexit( NULL );
28096 (void) dbopen( NULL, 0, 0, 0, NULL);
28103 rm -f conftest.$ac_objext conftest$ac_exeext
28104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28105 (eval $ac_link) 2>conftest.er1
28107 grep -v '^ *+' conftest.er1 >conftest.err
28109 cat conftest.err >&5
28110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111 (exit $ac_status); } &&
28112 { ac_try='test -z "$ac_c_werror_flag"
28113 || test ! -s conftest.err'
28114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115 (eval $ac_try) 2>&5
28117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118 (exit $ac_status); }; } &&
28119 { ac_try='test -s conftest$ac_exeext'
28120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28121 (eval $ac_try) 2>&5
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; }; then
28127 echo "$as_me: failed program was:" >&5
28128 sed 's/^/| /' conftest.$ac_ext >&5
28132 rm -f conftest.err conftest.$ac_objext \
28133 conftest$ac_exeext conftest.$ac_ext
28138 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28139 echo "${ECHO_T}$ol_cv_db_db43" >&6
28141 if test $ol_cv_db_db43 = yes ; then
28142 ol_cv_lib_db=-ldb43
28146 if test $ol_cv_lib_db = no ; then
28147 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28148 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28149 if test "${ol_cv_db_db_43+set}" = set; then
28150 echo $ECHO_N "(cached) $ECHO_C" >&6
28155 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28157 cat >conftest.$ac_ext <<_ACEOF
28160 cat confdefs.h >>conftest.$ac_ext
28161 cat >>conftest.$ac_ext <<_ACEOF
28162 /* end confdefs.h. */
28164 #ifdef HAVE_DB_185_H
28165 # include <db_185.h>
28170 #ifndef DB_VERSION_MAJOR
28171 # define DB_VERSION_MAJOR 1
28175 #define NULL ((void*)0)
28182 #if DB_VERSION_MAJOR > 1
28185 int major, minor, patch;
28187 version = db_version( &major, &minor, &patch );
28189 if( major != DB_VERSION_MAJOR ||
28190 minor < DB_VERSION_MINOR )
28192 printf("Berkeley DB version mismatch\n"
28193 "\theader: %s\n\tlibrary: %s\n",
28194 DB_VERSION_STRING, version);
28200 #if DB_VERSION_MAJOR > 2
28201 db_env_create( NULL, 0 );
28202 #elif DB_VERSION_MAJOR > 1
28203 db_appexit( NULL );
28205 (void) dbopen( NULL, 0, 0, 0, NULL);
28212 rm -f conftest.$ac_objext conftest$ac_exeext
28213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28214 (eval $ac_link) 2>conftest.er1
28216 grep -v '^ *+' conftest.er1 >conftest.err
28218 cat conftest.err >&5
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); } &&
28221 { ac_try='test -z "$ac_c_werror_flag"
28222 || test ! -s conftest.err'
28223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28224 (eval $ac_try) 2>&5
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); }; } &&
28228 { ac_try='test -s conftest$ac_exeext'
28229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28230 (eval $ac_try) 2>&5
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; }; then
28236 echo "$as_me: failed program was:" >&5
28237 sed 's/^/| /' conftest.$ac_ext >&5
28241 rm -f conftest.err conftest.$ac_objext \
28242 conftest$ac_exeext conftest.$ac_ext
28247 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28248 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28250 if test $ol_cv_db_db_43 = yes ; then
28251 ol_cv_lib_db=-ldb-43
28255 if test $ol_cv_lib_db = no ; then
28256 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28257 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28258 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28259 echo $ECHO_N "(cached) $ECHO_C" >&6
28264 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28266 cat >conftest.$ac_ext <<_ACEOF
28269 cat confdefs.h >>conftest.$ac_ext
28270 cat >>conftest.$ac_ext <<_ACEOF
28271 /* end confdefs.h. */
28273 #ifdef HAVE_DB_185_H
28274 # include <db_185.h>
28279 #ifndef DB_VERSION_MAJOR
28280 # define DB_VERSION_MAJOR 1
28284 #define NULL ((void*)0)
28291 #if DB_VERSION_MAJOR > 1
28294 int major, minor, patch;
28296 version = db_version( &major, &minor, &patch );
28298 if( major != DB_VERSION_MAJOR ||
28299 minor < DB_VERSION_MINOR )
28301 printf("Berkeley DB version mismatch\n"
28302 "\theader: %s\n\tlibrary: %s\n",
28303 DB_VERSION_STRING, version);
28309 #if DB_VERSION_MAJOR > 2
28310 db_env_create( NULL, 0 );
28311 #elif DB_VERSION_MAJOR > 1
28312 db_appexit( NULL );
28314 (void) dbopen( NULL, 0, 0, 0, NULL);
28321 rm -f conftest.$ac_objext conftest$ac_exeext
28322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28323 (eval $ac_link) 2>conftest.er1
28325 grep -v '^ *+' conftest.er1 >conftest.err
28327 cat conftest.err >&5
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); } &&
28330 { ac_try='test -z "$ac_c_werror_flag"
28331 || test ! -s conftest.err'
28332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28333 (eval $ac_try) 2>&5
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); }; } &&
28337 { ac_try='test -s conftest$ac_exeext'
28338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28339 (eval $ac_try) 2>&5
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); }; }; then
28343 ol_cv_db_db_4_dot_3=yes
28345 echo "$as_me: failed program was:" >&5
28346 sed 's/^/| /' conftest.$ac_ext >&5
28348 ol_cv_db_db_4_dot_3=no
28350 rm -f conftest.err conftest.$ac_objext \
28351 conftest$ac_exeext conftest.$ac_ext
28356 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28357 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28359 if test $ol_cv_db_db_4_dot_3 = yes ; then
28360 ol_cv_lib_db=-ldb-4.3
28364 if test $ol_cv_lib_db = no ; then
28365 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28366 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28367 if test "${ol_cv_db_db_4_3+set}" = set; then
28368 echo $ECHO_N "(cached) $ECHO_C" >&6
28373 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28375 cat >conftest.$ac_ext <<_ACEOF
28378 cat confdefs.h >>conftest.$ac_ext
28379 cat >>conftest.$ac_ext <<_ACEOF
28380 /* end confdefs.h. */
28382 #ifdef HAVE_DB_185_H
28383 # include <db_185.h>
28388 #ifndef DB_VERSION_MAJOR
28389 # define DB_VERSION_MAJOR 1
28393 #define NULL ((void*)0)
28400 #if DB_VERSION_MAJOR > 1
28403 int major, minor, patch;
28405 version = db_version( &major, &minor, &patch );
28407 if( major != DB_VERSION_MAJOR ||
28408 minor < DB_VERSION_MINOR )
28410 printf("Berkeley DB version mismatch\n"
28411 "\theader: %s\n\tlibrary: %s\n",
28412 DB_VERSION_STRING, version);
28418 #if DB_VERSION_MAJOR > 2
28419 db_env_create( NULL, 0 );
28420 #elif DB_VERSION_MAJOR > 1
28421 db_appexit( NULL );
28423 (void) dbopen( NULL, 0, 0, 0, NULL);
28430 rm -f conftest.$ac_objext conftest$ac_exeext
28431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28432 (eval $ac_link) 2>conftest.er1
28434 grep -v '^ *+' conftest.er1 >conftest.err
28436 cat conftest.err >&5
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); } &&
28439 { ac_try='test -z "$ac_c_werror_flag"
28440 || test ! -s conftest.err'
28441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442 (eval $ac_try) 2>&5
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); }; } &&
28446 { ac_try='test -s conftest$ac_exeext'
28447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448 (eval $ac_try) 2>&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); }; }; then
28452 ol_cv_db_db_4_3=yes
28454 echo "$as_me: failed program was:" >&5
28455 sed 's/^/| /' conftest.$ac_ext >&5
28459 rm -f conftest.err conftest.$ac_objext \
28460 conftest$ac_exeext conftest.$ac_ext
28465 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28466 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28468 if test $ol_cv_db_db_4_3 = yes ; then
28469 ol_cv_lib_db=-ldb-4-3
28473 if test $ol_cv_lib_db = no ; then
28474 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28475 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28476 if test "${ol_cv_db_db42+set}" = set; then
28477 echo $ECHO_N "(cached) $ECHO_C" >&6
28482 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28484 cat >conftest.$ac_ext <<_ACEOF
28487 cat confdefs.h >>conftest.$ac_ext
28488 cat >>conftest.$ac_ext <<_ACEOF
28489 /* end confdefs.h. */
28491 #ifdef HAVE_DB_185_H
28492 # include <db_185.h>
28497 #ifndef DB_VERSION_MAJOR
28498 # define DB_VERSION_MAJOR 1
28502 #define NULL ((void*)0)
28509 #if DB_VERSION_MAJOR > 1
28512 int major, minor, patch;
28514 version = db_version( &major, &minor, &patch );
28516 if( major != DB_VERSION_MAJOR ||
28517 minor < DB_VERSION_MINOR )
28519 printf("Berkeley DB version mismatch\n"
28520 "\theader: %s\n\tlibrary: %s\n",
28521 DB_VERSION_STRING, version);
28527 #if DB_VERSION_MAJOR > 2
28528 db_env_create( NULL, 0 );
28529 #elif DB_VERSION_MAJOR > 1
28530 db_appexit( NULL );
28532 (void) dbopen( NULL, 0, 0, 0, NULL);
28539 rm -f conftest.$ac_objext conftest$ac_exeext
28540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28541 (eval $ac_link) 2>conftest.er1
28543 grep -v '^ *+' conftest.er1 >conftest.err
28545 cat conftest.err >&5
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); } &&
28548 { ac_try='test -z "$ac_c_werror_flag"
28549 || test ! -s conftest.err'
28550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28551 (eval $ac_try) 2>&5
28553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554 (exit $ac_status); }; } &&
28555 { ac_try='test -s conftest$ac_exeext'
28556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28557 (eval $ac_try) 2>&5
28559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560 (exit $ac_status); }; }; then
28563 echo "$as_me: failed program was:" >&5
28564 sed 's/^/| /' conftest.$ac_ext >&5
28568 rm -f conftest.err conftest.$ac_objext \
28569 conftest$ac_exeext conftest.$ac_ext
28574 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28575 echo "${ECHO_T}$ol_cv_db_db42" >&6
28577 if test $ol_cv_db_db42 = yes ; then
28578 ol_cv_lib_db=-ldb42
28582 if test $ol_cv_lib_db = no ; then
28583 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28584 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28585 if test "${ol_cv_db_db_42+set}" = set; then
28586 echo $ECHO_N "(cached) $ECHO_C" >&6
28591 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28593 cat >conftest.$ac_ext <<_ACEOF
28596 cat confdefs.h >>conftest.$ac_ext
28597 cat >>conftest.$ac_ext <<_ACEOF
28598 /* end confdefs.h. */
28600 #ifdef HAVE_DB_185_H
28601 # include <db_185.h>
28606 #ifndef DB_VERSION_MAJOR
28607 # define DB_VERSION_MAJOR 1
28611 #define NULL ((void*)0)
28618 #if DB_VERSION_MAJOR > 1
28621 int major, minor, patch;
28623 version = db_version( &major, &minor, &patch );
28625 if( major != DB_VERSION_MAJOR ||
28626 minor < DB_VERSION_MINOR )
28628 printf("Berkeley DB version mismatch\n"
28629 "\theader: %s\n\tlibrary: %s\n",
28630 DB_VERSION_STRING, version);
28636 #if DB_VERSION_MAJOR > 2
28637 db_env_create( NULL, 0 );
28638 #elif DB_VERSION_MAJOR > 1
28639 db_appexit( NULL );
28641 (void) dbopen( NULL, 0, 0, 0, NULL);
28648 rm -f conftest.$ac_objext conftest$ac_exeext
28649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28650 (eval $ac_link) 2>conftest.er1
28652 grep -v '^ *+' conftest.er1 >conftest.err
28654 cat conftest.err >&5
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); } &&
28657 { ac_try='test -z "$ac_c_werror_flag"
28658 || test ! -s conftest.err'
28659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28660 (eval $ac_try) 2>&5
28662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 (exit $ac_status); }; } &&
28664 { ac_try='test -s conftest$ac_exeext'
28665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666 (eval $ac_try) 2>&5
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); }; }; then
28672 echo "$as_me: failed program was:" >&5
28673 sed 's/^/| /' conftest.$ac_ext >&5
28677 rm -f conftest.err conftest.$ac_objext \
28678 conftest$ac_exeext conftest.$ac_ext
28683 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
28684 echo "${ECHO_T}$ol_cv_db_db_42" >&6
28686 if test $ol_cv_db_db_42 = yes ; then
28687 ol_cv_lib_db=-ldb-42
28691 if test $ol_cv_lib_db = no ; then
28692 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
28693 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
28694 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
28695 echo $ECHO_N "(cached) $ECHO_C" >&6
28700 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28702 cat >conftest.$ac_ext <<_ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h. */
28709 #ifdef HAVE_DB_185_H
28710 # include <db_185.h>
28715 #ifndef DB_VERSION_MAJOR
28716 # define DB_VERSION_MAJOR 1
28720 #define NULL ((void*)0)
28727 #if DB_VERSION_MAJOR > 1
28730 int major, minor, patch;
28732 version = db_version( &major, &minor, &patch );
28734 if( major != DB_VERSION_MAJOR ||
28735 minor < DB_VERSION_MINOR )
28737 printf("Berkeley DB version mismatch\n"
28738 "\theader: %s\n\tlibrary: %s\n",
28739 DB_VERSION_STRING, version);
28745 #if DB_VERSION_MAJOR > 2
28746 db_env_create( NULL, 0 );
28747 #elif DB_VERSION_MAJOR > 1
28748 db_appexit( NULL );
28750 (void) dbopen( NULL, 0, 0, 0, NULL);
28757 rm -f conftest.$ac_objext conftest$ac_exeext
28758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28759 (eval $ac_link) 2>conftest.er1
28761 grep -v '^ *+' conftest.er1 >conftest.err
28763 cat conftest.err >&5
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); } &&
28766 { ac_try='test -z "$ac_c_werror_flag"
28767 || test ! -s conftest.err'
28768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28769 (eval $ac_try) 2>&5
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); }; } &&
28773 { ac_try='test -s conftest$ac_exeext'
28774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775 (eval $ac_try) 2>&5
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); }; }; then
28779 ol_cv_db_db_4_dot_2=yes
28781 echo "$as_me: failed program was:" >&5
28782 sed 's/^/| /' conftest.$ac_ext >&5
28784 ol_cv_db_db_4_dot_2=no
28786 rm -f conftest.err conftest.$ac_objext \
28787 conftest$ac_exeext conftest.$ac_ext
28792 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
28793 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
28795 if test $ol_cv_db_db_4_dot_2 = yes ; then
28796 ol_cv_lib_db=-ldb-4.2
28800 if test $ol_cv_lib_db = no ; then
28801 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
28802 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
28803 if test "${ol_cv_db_db_4_2+set}" = set; then
28804 echo $ECHO_N "(cached) $ECHO_C" >&6
28809 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28811 cat >conftest.$ac_ext <<_ACEOF
28814 cat confdefs.h >>conftest.$ac_ext
28815 cat >>conftest.$ac_ext <<_ACEOF
28816 /* end confdefs.h. */
28818 #ifdef HAVE_DB_185_H
28819 # include <db_185.h>
28824 #ifndef DB_VERSION_MAJOR
28825 # define DB_VERSION_MAJOR 1
28829 #define NULL ((void*)0)
28836 #if DB_VERSION_MAJOR > 1
28839 int major, minor, patch;
28841 version = db_version( &major, &minor, &patch );
28843 if( major != DB_VERSION_MAJOR ||
28844 minor < DB_VERSION_MINOR )
28846 printf("Berkeley DB version mismatch\n"
28847 "\theader: %s\n\tlibrary: %s\n",
28848 DB_VERSION_STRING, version);
28854 #if DB_VERSION_MAJOR > 2
28855 db_env_create( NULL, 0 );
28856 #elif DB_VERSION_MAJOR > 1
28857 db_appexit( NULL );
28859 (void) dbopen( NULL, 0, 0, 0, NULL);
28866 rm -f conftest.$ac_objext conftest$ac_exeext
28867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28868 (eval $ac_link) 2>conftest.er1
28870 grep -v '^ *+' conftest.er1 >conftest.err
28872 cat conftest.err >&5
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); } &&
28875 { ac_try='test -z "$ac_c_werror_flag"
28876 || test ! -s conftest.err'
28877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28878 (eval $ac_try) 2>&5
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); }; } &&
28882 { ac_try='test -s conftest$ac_exeext'
28883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884 (eval $ac_try) 2>&5
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); }; }; then
28888 ol_cv_db_db_4_2=yes
28890 echo "$as_me: failed program was:" >&5
28891 sed 's/^/| /' conftest.$ac_ext >&5
28895 rm -f conftest.err conftest.$ac_objext \
28896 conftest$ac_exeext conftest.$ac_ext
28901 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
28902 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
28904 if test $ol_cv_db_db_4_2 = yes ; then
28905 ol_cv_lib_db=-ldb-4-2
28909 if test $ol_cv_lib_db = no ; then
28910 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28911 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28912 if test "${ol_cv_db_db_4+set}" = set; then
28913 echo $ECHO_N "(cached) $ECHO_C" >&6
28918 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28920 cat >conftest.$ac_ext <<_ACEOF
28923 cat confdefs.h >>conftest.$ac_ext
28924 cat >>conftest.$ac_ext <<_ACEOF
28925 /* end confdefs.h. */
28927 #ifdef HAVE_DB_185_H
28928 # include <db_185.h>
28933 #ifndef DB_VERSION_MAJOR
28934 # define DB_VERSION_MAJOR 1
28938 #define NULL ((void*)0)
28945 #if DB_VERSION_MAJOR > 1
28948 int major, minor, patch;
28950 version = db_version( &major, &minor, &patch );
28952 if( major != DB_VERSION_MAJOR ||
28953 minor < DB_VERSION_MINOR )
28955 printf("Berkeley DB version mismatch\n"
28956 "\theader: %s\n\tlibrary: %s\n",
28957 DB_VERSION_STRING, version);
28963 #if DB_VERSION_MAJOR > 2
28964 db_env_create( NULL, 0 );
28965 #elif DB_VERSION_MAJOR > 1
28966 db_appexit( NULL );
28968 (void) dbopen( NULL, 0, 0, 0, NULL);
28975 rm -f conftest.$ac_objext conftest$ac_exeext
28976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28977 (eval $ac_link) 2>conftest.er1
28979 grep -v '^ *+' conftest.er1 >conftest.err
28981 cat conftest.err >&5
28982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983 (exit $ac_status); } &&
28984 { ac_try='test -z "$ac_c_werror_flag"
28985 || test ! -s conftest.err'
28986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28987 (eval $ac_try) 2>&5
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); }; } &&
28991 { ac_try='test -s conftest$ac_exeext'
28992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993 (eval $ac_try) 2>&5
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; }; then
28999 echo "$as_me: failed program was:" >&5
29000 sed 's/^/| /' conftest.$ac_ext >&5
29004 rm -f conftest.err conftest.$ac_objext \
29005 conftest$ac_exeext conftest.$ac_ext
29010 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29011 echo "${ECHO_T}$ol_cv_db_db_4" >&6
29013 if test $ol_cv_db_db_4 = yes ; then
29014 ol_cv_lib_db=-ldb-4
29018 if test $ol_cv_lib_db = no ; then
29019 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29020 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
29021 if test "${ol_cv_db_db4+set}" = set; then
29022 echo $ECHO_N "(cached) $ECHO_C" >&6
29027 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29029 cat >conftest.$ac_ext <<_ACEOF
29032 cat confdefs.h >>conftest.$ac_ext
29033 cat >>conftest.$ac_ext <<_ACEOF
29034 /* end confdefs.h. */
29036 #ifdef HAVE_DB_185_H
29037 # include <db_185.h>
29042 #ifndef DB_VERSION_MAJOR
29043 # define DB_VERSION_MAJOR 1
29047 #define NULL ((void*)0)
29054 #if DB_VERSION_MAJOR > 1
29057 int major, minor, patch;
29059 version = db_version( &major, &minor, &patch );
29061 if( major != DB_VERSION_MAJOR ||
29062 minor < DB_VERSION_MINOR )
29064 printf("Berkeley DB version mismatch\n"
29065 "\theader: %s\n\tlibrary: %s\n",
29066 DB_VERSION_STRING, version);
29072 #if DB_VERSION_MAJOR > 2
29073 db_env_create( NULL, 0 );
29074 #elif DB_VERSION_MAJOR > 1
29075 db_appexit( NULL );
29077 (void) dbopen( NULL, 0, 0, 0, NULL);
29084 rm -f conftest.$ac_objext conftest$ac_exeext
29085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29086 (eval $ac_link) 2>conftest.er1
29088 grep -v '^ *+' conftest.er1 >conftest.err
29090 cat conftest.err >&5
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); } &&
29093 { ac_try='test -z "$ac_c_werror_flag"
29094 || test ! -s conftest.err'
29095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29096 (eval $ac_try) 2>&5
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); }; } &&
29100 { ac_try='test -s conftest$ac_exeext'
29101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102 (eval $ac_try) 2>&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; }; then
29108 echo "$as_me: failed program was:" >&5
29109 sed 's/^/| /' conftest.$ac_ext >&5
29113 rm -f conftest.err conftest.$ac_objext \
29114 conftest$ac_exeext conftest.$ac_ext
29119 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29120 echo "${ECHO_T}$ol_cv_db_db4" >&6
29122 if test $ol_cv_db_db4 = yes ; then
29127 if test $ol_cv_lib_db = no ; then
29128 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29129 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29130 if test "${ol_cv_db_db+set}" = set; then
29131 echo $ECHO_N "(cached) $ECHO_C" >&6
29136 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29138 cat >conftest.$ac_ext <<_ACEOF
29141 cat confdefs.h >>conftest.$ac_ext
29142 cat >>conftest.$ac_ext <<_ACEOF
29143 /* end confdefs.h. */
29145 #ifdef HAVE_DB_185_H
29146 # include <db_185.h>
29151 #ifndef DB_VERSION_MAJOR
29152 # define DB_VERSION_MAJOR 1
29156 #define NULL ((void*)0)
29163 #if DB_VERSION_MAJOR > 1
29166 int major, minor, patch;
29168 version = db_version( &major, &minor, &patch );
29170 if( major != DB_VERSION_MAJOR ||
29171 minor < DB_VERSION_MINOR )
29173 printf("Berkeley DB version mismatch\n"
29174 "\theader: %s\n\tlibrary: %s\n",
29175 DB_VERSION_STRING, version);
29181 #if DB_VERSION_MAJOR > 2
29182 db_env_create( NULL, 0 );
29183 #elif DB_VERSION_MAJOR > 1
29184 db_appexit( NULL );
29186 (void) dbopen( NULL, 0, 0, 0, NULL);
29193 rm -f conftest.$ac_objext conftest$ac_exeext
29194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29195 (eval $ac_link) 2>conftest.er1
29197 grep -v '^ *+' conftest.er1 >conftest.err
29199 cat conftest.err >&5
29200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201 (exit $ac_status); } &&
29202 { ac_try='test -z "$ac_c_werror_flag"
29203 || test ! -s conftest.err'
29204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29205 (eval $ac_try) 2>&5
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); }; } &&
29209 { ac_try='test -s conftest$ac_exeext'
29210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29211 (eval $ac_try) 2>&5
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); }; }; then
29217 echo "$as_me: failed program was:" >&5
29218 sed 's/^/| /' conftest.$ac_ext >&5
29222 rm -f conftest.err conftest.$ac_objext \
29223 conftest$ac_exeext conftest.$ac_ext
29228 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29229 echo "${ECHO_T}$ol_cv_db_db" >&6
29231 if test $ol_cv_db_db = yes ; then
29236 if test $ol_cv_lib_db = no ; then
29237 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29238 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29239 if test "${ol_cv_db_db41+set}" = set; then
29240 echo $ECHO_N "(cached) $ECHO_C" >&6
29245 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29247 cat >conftest.$ac_ext <<_ACEOF
29250 cat confdefs.h >>conftest.$ac_ext
29251 cat >>conftest.$ac_ext <<_ACEOF
29252 /* end confdefs.h. */
29254 #ifdef HAVE_DB_185_H
29255 # include <db_185.h>
29260 #ifndef DB_VERSION_MAJOR
29261 # define DB_VERSION_MAJOR 1
29265 #define NULL ((void*)0)
29272 #if DB_VERSION_MAJOR > 1
29275 int major, minor, patch;
29277 version = db_version( &major, &minor, &patch );
29279 if( major != DB_VERSION_MAJOR ||
29280 minor < DB_VERSION_MINOR )
29282 printf("Berkeley DB version mismatch\n"
29283 "\theader: %s\n\tlibrary: %s\n",
29284 DB_VERSION_STRING, version);
29290 #if DB_VERSION_MAJOR > 2
29291 db_env_create( NULL, 0 );
29292 #elif DB_VERSION_MAJOR > 1
29293 db_appexit( NULL );
29295 (void) dbopen( NULL, 0, 0, 0, NULL);
29302 rm -f conftest.$ac_objext conftest$ac_exeext
29303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29304 (eval $ac_link) 2>conftest.er1
29306 grep -v '^ *+' conftest.er1 >conftest.err
29308 cat conftest.err >&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); } &&
29311 { ac_try='test -z "$ac_c_werror_flag"
29312 || test ! -s conftest.err'
29313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29314 (eval $ac_try) 2>&5
29316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317 (exit $ac_status); }; } &&
29318 { ac_try='test -s conftest$ac_exeext'
29319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320 (eval $ac_try) 2>&5
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; }; then
29326 echo "$as_me: failed program was:" >&5
29327 sed 's/^/| /' conftest.$ac_ext >&5
29331 rm -f conftest.err conftest.$ac_objext \
29332 conftest$ac_exeext conftest.$ac_ext
29337 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29338 echo "${ECHO_T}$ol_cv_db_db41" >&6
29340 if test $ol_cv_db_db41 = yes ; then
29341 ol_cv_lib_db=-ldb41
29345 if test $ol_cv_lib_db = no ; then
29346 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29347 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29348 if test "${ol_cv_db_db_41+set}" = set; then
29349 echo $ECHO_N "(cached) $ECHO_C" >&6
29354 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29356 cat >conftest.$ac_ext <<_ACEOF
29359 cat confdefs.h >>conftest.$ac_ext
29360 cat >>conftest.$ac_ext <<_ACEOF
29361 /* end confdefs.h. */
29363 #ifdef HAVE_DB_185_H
29364 # include <db_185.h>
29369 #ifndef DB_VERSION_MAJOR
29370 # define DB_VERSION_MAJOR 1
29374 #define NULL ((void*)0)
29381 #if DB_VERSION_MAJOR > 1
29384 int major, minor, patch;
29386 version = db_version( &major, &minor, &patch );
29388 if( major != DB_VERSION_MAJOR ||
29389 minor < DB_VERSION_MINOR )
29391 printf("Berkeley DB version mismatch\n"
29392 "\theader: %s\n\tlibrary: %s\n",
29393 DB_VERSION_STRING, version);
29399 #if DB_VERSION_MAJOR > 2
29400 db_env_create( NULL, 0 );
29401 #elif DB_VERSION_MAJOR > 1
29402 db_appexit( NULL );
29404 (void) dbopen( NULL, 0, 0, 0, NULL);
29411 rm -f conftest.$ac_objext conftest$ac_exeext
29412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29413 (eval $ac_link) 2>conftest.er1
29415 grep -v '^ *+' conftest.er1 >conftest.err
29417 cat conftest.err >&5
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); } &&
29420 { ac_try='test -z "$ac_c_werror_flag"
29421 || test ! -s conftest.err'
29422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29423 (eval $ac_try) 2>&5
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); }; } &&
29427 { ac_try='test -s conftest$ac_exeext'
29428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29429 (eval $ac_try) 2>&5
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); }; }; then
29435 echo "$as_me: failed program was:" >&5
29436 sed 's/^/| /' conftest.$ac_ext >&5
29440 rm -f conftest.err conftest.$ac_objext \
29441 conftest$ac_exeext conftest.$ac_ext
29446 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29447 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29449 if test $ol_cv_db_db_41 = yes ; then
29450 ol_cv_lib_db=-ldb-41
29454 if test $ol_cv_lib_db = no ; then
29455 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29456 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29457 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29458 echo $ECHO_N "(cached) $ECHO_C" >&6
29463 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29465 cat >conftest.$ac_ext <<_ACEOF
29468 cat confdefs.h >>conftest.$ac_ext
29469 cat >>conftest.$ac_ext <<_ACEOF
29470 /* end confdefs.h. */
29472 #ifdef HAVE_DB_185_H
29473 # include <db_185.h>
29478 #ifndef DB_VERSION_MAJOR
29479 # define DB_VERSION_MAJOR 1
29483 #define NULL ((void*)0)
29490 #if DB_VERSION_MAJOR > 1
29493 int major, minor, patch;
29495 version = db_version( &major, &minor, &patch );
29497 if( major != DB_VERSION_MAJOR ||
29498 minor < DB_VERSION_MINOR )
29500 printf("Berkeley DB version mismatch\n"
29501 "\theader: %s\n\tlibrary: %s\n",
29502 DB_VERSION_STRING, version);
29508 #if DB_VERSION_MAJOR > 2
29509 db_env_create( NULL, 0 );
29510 #elif DB_VERSION_MAJOR > 1
29511 db_appexit( NULL );
29513 (void) dbopen( NULL, 0, 0, 0, NULL);
29520 rm -f conftest.$ac_objext conftest$ac_exeext
29521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29522 (eval $ac_link) 2>conftest.er1
29524 grep -v '^ *+' conftest.er1 >conftest.err
29526 cat conftest.err >&5
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); } &&
29529 { ac_try='test -z "$ac_c_werror_flag"
29530 || test ! -s conftest.err'
29531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29532 (eval $ac_try) 2>&5
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); }; } &&
29536 { ac_try='test -s conftest$ac_exeext'
29537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538 (eval $ac_try) 2>&5
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); }; }; then
29542 ol_cv_db_db_4_dot_1=yes
29544 echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29547 ol_cv_db_db_4_dot_1=no
29549 rm -f conftest.err conftest.$ac_objext \
29550 conftest$ac_exeext conftest.$ac_ext
29555 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29556 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29558 if test $ol_cv_db_db_4_dot_1 = yes ; then
29559 ol_cv_lib_db=-ldb-4.1
29563 if test $ol_cv_lib_db = no ; then
29564 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29565 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29566 if test "${ol_cv_db_db_4_1+set}" = set; then
29567 echo $ECHO_N "(cached) $ECHO_C" >&6
29572 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29574 cat >conftest.$ac_ext <<_ACEOF
29577 cat confdefs.h >>conftest.$ac_ext
29578 cat >>conftest.$ac_ext <<_ACEOF
29579 /* end confdefs.h. */
29581 #ifdef HAVE_DB_185_H
29582 # include <db_185.h>
29587 #ifndef DB_VERSION_MAJOR
29588 # define DB_VERSION_MAJOR 1
29592 #define NULL ((void*)0)
29599 #if DB_VERSION_MAJOR > 1
29602 int major, minor, patch;
29604 version = db_version( &major, &minor, &patch );
29606 if( major != DB_VERSION_MAJOR ||
29607 minor < DB_VERSION_MINOR )
29609 printf("Berkeley DB version mismatch\n"
29610 "\theader: %s\n\tlibrary: %s\n",
29611 DB_VERSION_STRING, version);
29617 #if DB_VERSION_MAJOR > 2
29618 db_env_create( NULL, 0 );
29619 #elif DB_VERSION_MAJOR > 1
29620 db_appexit( NULL );
29622 (void) dbopen( NULL, 0, 0, 0, NULL);
29629 rm -f conftest.$ac_objext conftest$ac_exeext
29630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29631 (eval $ac_link) 2>conftest.er1
29633 grep -v '^ *+' conftest.er1 >conftest.err
29635 cat conftest.err >&5
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); } &&
29638 { ac_try='test -z "$ac_c_werror_flag"
29639 || test ! -s conftest.err'
29640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29641 (eval $ac_try) 2>&5
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; } &&
29645 { ac_try='test -s conftest$ac_exeext'
29646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647 (eval $ac_try) 2>&5
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); }; }; then
29651 ol_cv_db_db_4_1=yes
29653 echo "$as_me: failed program was:" >&5
29654 sed 's/^/| /' conftest.$ac_ext >&5
29658 rm -f conftest.err conftest.$ac_objext \
29659 conftest$ac_exeext conftest.$ac_ext
29664 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29665 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29667 if test $ol_cv_db_db_4_1 = yes ; then
29668 ol_cv_lib_db=-ldb-4-1
29672 if test $ol_cv_lib_db = no ; then
29673 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29674 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29675 if test "${ol_cv_db_db3+set}" = set; then
29676 echo $ECHO_N "(cached) $ECHO_C" >&6
29681 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29683 cat >conftest.$ac_ext <<_ACEOF
29686 cat confdefs.h >>conftest.$ac_ext
29687 cat >>conftest.$ac_ext <<_ACEOF
29688 /* end confdefs.h. */
29690 #ifdef HAVE_DB_185_H
29691 # include <db_185.h>
29696 #ifndef DB_VERSION_MAJOR
29697 # define DB_VERSION_MAJOR 1
29701 #define NULL ((void*)0)
29708 #if DB_VERSION_MAJOR > 1
29711 int major, minor, patch;
29713 version = db_version( &major, &minor, &patch );
29715 if( major != DB_VERSION_MAJOR ||
29716 minor < DB_VERSION_MINOR )
29718 printf("Berkeley DB version mismatch\n"
29719 "\theader: %s\n\tlibrary: %s\n",
29720 DB_VERSION_STRING, version);
29726 #if DB_VERSION_MAJOR > 2
29727 db_env_create( NULL, 0 );
29728 #elif DB_VERSION_MAJOR > 1
29729 db_appexit( NULL );
29731 (void) dbopen( NULL, 0, 0, 0, NULL);
29738 rm -f conftest.$ac_objext conftest$ac_exeext
29739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29740 (eval $ac_link) 2>conftest.er1
29742 grep -v '^ *+' conftest.er1 >conftest.err
29744 cat conftest.err >&5
29745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746 (exit $ac_status); } &&
29747 { ac_try='test -z "$ac_c_werror_flag"
29748 || test ! -s conftest.err'
29749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29750 (eval $ac_try) 2>&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); }; } &&
29754 { ac_try='test -s conftest$ac_exeext'
29755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29756 (eval $ac_try) 2>&5
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; }; then
29762 echo "$as_me: failed program was:" >&5
29763 sed 's/^/| /' conftest.$ac_ext >&5
29767 rm -f conftest.err conftest.$ac_objext \
29768 conftest$ac_exeext conftest.$ac_ext
29773 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
29774 echo "${ECHO_T}$ol_cv_db_db3" >&6
29776 if test $ol_cv_db_db3 = yes ; then
29781 if test $ol_cv_lib_db = no ; then
29782 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
29783 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
29784 if test "${ol_cv_db_db_3+set}" = set; then
29785 echo $ECHO_N "(cached) $ECHO_C" >&6
29790 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29792 cat >conftest.$ac_ext <<_ACEOF
29795 cat confdefs.h >>conftest.$ac_ext
29796 cat >>conftest.$ac_ext <<_ACEOF
29797 /* end confdefs.h. */
29799 #ifdef HAVE_DB_185_H
29800 # include <db_185.h>
29805 #ifndef DB_VERSION_MAJOR
29806 # define DB_VERSION_MAJOR 1
29810 #define NULL ((void*)0)
29817 #if DB_VERSION_MAJOR > 1
29820 int major, minor, patch;
29822 version = db_version( &major, &minor, &patch );
29824 if( major != DB_VERSION_MAJOR ||
29825 minor < DB_VERSION_MINOR )
29827 printf("Berkeley DB version mismatch\n"
29828 "\theader: %s\n\tlibrary: %s\n",
29829 DB_VERSION_STRING, version);
29835 #if DB_VERSION_MAJOR > 2
29836 db_env_create( NULL, 0 );
29837 #elif DB_VERSION_MAJOR > 1
29838 db_appexit( NULL );
29840 (void) dbopen( NULL, 0, 0, 0, NULL);
29847 rm -f conftest.$ac_objext conftest$ac_exeext
29848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29849 (eval $ac_link) 2>conftest.er1
29851 grep -v '^ *+' conftest.er1 >conftest.err
29853 cat conftest.err >&5
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); } &&
29856 { ac_try='test -z "$ac_c_werror_flag"
29857 || test ! -s conftest.err'
29858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29859 (eval $ac_try) 2>&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); }; } &&
29863 { ac_try='test -s conftest$ac_exeext'
29864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29865 (eval $ac_try) 2>&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); }; }; then
29871 echo "$as_me: failed program was:" >&5
29872 sed 's/^/| /' conftest.$ac_ext >&5
29876 rm -f conftest.err conftest.$ac_objext \
29877 conftest$ac_exeext conftest.$ac_ext
29882 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
29883 echo "${ECHO_T}$ol_cv_db_db_3" >&6
29885 if test $ol_cv_db_db_3 = yes ; then
29886 ol_cv_lib_db=-ldb-3
29890 if test $ol_cv_lib_db = no ; then
29891 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
29892 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
29893 if test "${ol_cv_db_db2+set}" = set; then
29894 echo $ECHO_N "(cached) $ECHO_C" >&6
29899 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29901 cat >conftest.$ac_ext <<_ACEOF
29904 cat confdefs.h >>conftest.$ac_ext
29905 cat >>conftest.$ac_ext <<_ACEOF
29906 /* end confdefs.h. */
29908 #ifdef HAVE_DB_185_H
29909 # include <db_185.h>
29914 #ifndef DB_VERSION_MAJOR
29915 # define DB_VERSION_MAJOR 1
29919 #define NULL ((void*)0)
29926 #if DB_VERSION_MAJOR > 1
29929 int major, minor, patch;
29931 version = db_version( &major, &minor, &patch );
29933 if( major != DB_VERSION_MAJOR ||
29934 minor < DB_VERSION_MINOR )
29936 printf("Berkeley DB version mismatch\n"
29937 "\theader: %s\n\tlibrary: %s\n",
29938 DB_VERSION_STRING, version);
29944 #if DB_VERSION_MAJOR > 2
29945 db_env_create( NULL, 0 );
29946 #elif DB_VERSION_MAJOR > 1
29947 db_appexit( NULL );
29949 (void) dbopen( NULL, 0, 0, 0, NULL);
29956 rm -f conftest.$ac_objext conftest$ac_exeext
29957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29958 (eval $ac_link) 2>conftest.er1
29960 grep -v '^ *+' conftest.er1 >conftest.err
29962 cat conftest.err >&5
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); } &&
29965 { ac_try='test -z "$ac_c_werror_flag"
29966 || test ! -s conftest.err'
29967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29968 (eval $ac_try) 2>&5
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); }; } &&
29972 { ac_try='test -s conftest$ac_exeext'
29973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974 (eval $ac_try) 2>&5
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); }; }; then
29980 echo "$as_me: failed program was:" >&5
29981 sed 's/^/| /' conftest.$ac_ext >&5
29985 rm -f conftest.err conftest.$ac_objext \
29986 conftest$ac_exeext conftest.$ac_ext
29991 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
29992 echo "${ECHO_T}$ol_cv_db_db2" >&6
29994 if test $ol_cv_db_db2 = yes ; then
29999 if test $ol_cv_lib_db = no ; then
30000 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30001 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30002 if test "${ol_cv_db_db_2+set}" = set; then
30003 echo $ECHO_N "(cached) $ECHO_C" >&6
30008 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30010 cat >conftest.$ac_ext <<_ACEOF
30013 cat confdefs.h >>conftest.$ac_ext
30014 cat >>conftest.$ac_ext <<_ACEOF
30015 /* end confdefs.h. */
30017 #ifdef HAVE_DB_185_H
30018 # include <db_185.h>
30023 #ifndef DB_VERSION_MAJOR
30024 # define DB_VERSION_MAJOR 1
30028 #define NULL ((void*)0)
30035 #if DB_VERSION_MAJOR > 1
30038 int major, minor, patch;
30040 version = db_version( &major, &minor, &patch );
30042 if( major != DB_VERSION_MAJOR ||
30043 minor < DB_VERSION_MINOR )
30045 printf("Berkeley DB version mismatch\n"
30046 "\theader: %s\n\tlibrary: %s\n",
30047 DB_VERSION_STRING, version);
30053 #if DB_VERSION_MAJOR > 2
30054 db_env_create( NULL, 0 );
30055 #elif DB_VERSION_MAJOR > 1
30056 db_appexit( NULL );
30058 (void) dbopen( NULL, 0, 0, 0, NULL);
30065 rm -f conftest.$ac_objext conftest$ac_exeext
30066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30067 (eval $ac_link) 2>conftest.er1
30069 grep -v '^ *+' conftest.er1 >conftest.err
30071 cat conftest.err >&5
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); } &&
30074 { ac_try='test -z "$ac_c_werror_flag"
30075 || test ! -s conftest.err'
30076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30077 (eval $ac_try) 2>&5
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); }; } &&
30081 { ac_try='test -s conftest$ac_exeext'
30082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30083 (eval $ac_try) 2>&5
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); }; }; then
30089 echo "$as_me: failed program was:" >&5
30090 sed 's/^/| /' conftest.$ac_ext >&5
30094 rm -f conftest.err conftest.$ac_objext \
30095 conftest$ac_exeext conftest.$ac_ext
30100 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30101 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30103 if test $ol_cv_db_db_2 = yes ; then
30104 ol_cv_lib_db=-ldb-2
30108 if test $ol_cv_lib_db = no ; then
30109 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30110 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30111 if test "${ol_cv_db_db1+set}" = set; then
30112 echo $ECHO_N "(cached) $ECHO_C" >&6
30117 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30119 cat >conftest.$ac_ext <<_ACEOF
30122 cat confdefs.h >>conftest.$ac_ext
30123 cat >>conftest.$ac_ext <<_ACEOF
30124 /* end confdefs.h. */
30126 #ifdef HAVE_DB_185_H
30127 # include <db_185.h>
30132 #ifndef DB_VERSION_MAJOR
30133 # define DB_VERSION_MAJOR 1
30137 #define NULL ((void*)0)
30144 #if DB_VERSION_MAJOR > 1
30147 int major, minor, patch;
30149 version = db_version( &major, &minor, &patch );
30151 if( major != DB_VERSION_MAJOR ||
30152 minor < DB_VERSION_MINOR )
30154 printf("Berkeley DB version mismatch\n"
30155 "\theader: %s\n\tlibrary: %s\n",
30156 DB_VERSION_STRING, version);
30162 #if DB_VERSION_MAJOR > 2
30163 db_env_create( NULL, 0 );
30164 #elif DB_VERSION_MAJOR > 1
30165 db_appexit( NULL );
30167 (void) dbopen( NULL, 0, 0, 0, NULL);
30174 rm -f conftest.$ac_objext conftest$ac_exeext
30175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30176 (eval $ac_link) 2>conftest.er1
30178 grep -v '^ *+' conftest.er1 >conftest.err
30180 cat conftest.err >&5
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); } &&
30183 { ac_try='test -z "$ac_c_werror_flag"
30184 || test ! -s conftest.err'
30185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30186 (eval $ac_try) 2>&5
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; } &&
30190 { ac_try='test -s conftest$ac_exeext'
30191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30192 (eval $ac_try) 2>&5
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); }; }; then
30198 echo "$as_me: failed program was:" >&5
30199 sed 's/^/| /' conftest.$ac_ext >&5
30203 rm -f conftest.err conftest.$ac_objext \
30204 conftest$ac_exeext conftest.$ac_ext
30209 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30210 echo "${ECHO_T}$ol_cv_db_db1" >&6
30212 if test $ol_cv_db_db1 = yes ; then
30217 if test $ol_cv_lib_db = no ; then
30218 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30219 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30220 if test "${ol_cv_db_db_1+set}" = set; then
30221 echo $ECHO_N "(cached) $ECHO_C" >&6
30226 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30228 cat >conftest.$ac_ext <<_ACEOF
30231 cat confdefs.h >>conftest.$ac_ext
30232 cat >>conftest.$ac_ext <<_ACEOF
30233 /* end confdefs.h. */
30235 #ifdef HAVE_DB_185_H
30236 # include <db_185.h>
30241 #ifndef DB_VERSION_MAJOR
30242 # define DB_VERSION_MAJOR 1
30246 #define NULL ((void*)0)
30253 #if DB_VERSION_MAJOR > 1
30256 int major, minor, patch;
30258 version = db_version( &major, &minor, &patch );
30260 if( major != DB_VERSION_MAJOR ||
30261 minor < DB_VERSION_MINOR )
30263 printf("Berkeley DB version mismatch\n"
30264 "\theader: %s\n\tlibrary: %s\n",
30265 DB_VERSION_STRING, version);
30271 #if DB_VERSION_MAJOR > 2
30272 db_env_create( NULL, 0 );
30273 #elif DB_VERSION_MAJOR > 1
30274 db_appexit( NULL );
30276 (void) dbopen( NULL, 0, 0, 0, NULL);
30283 rm -f conftest.$ac_objext conftest$ac_exeext
30284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30285 (eval $ac_link) 2>conftest.er1
30287 grep -v '^ *+' conftest.er1 >conftest.err
30289 cat conftest.err >&5
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); } &&
30292 { ac_try='test -z "$ac_c_werror_flag"
30293 || test ! -s conftest.err'
30294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30295 (eval $ac_try) 2>&5
30297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298 (exit $ac_status); }; } &&
30299 { ac_try='test -s conftest$ac_exeext'
30300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30301 (eval $ac_try) 2>&5
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; }; then
30307 echo "$as_me: failed program was:" >&5
30308 sed 's/^/| /' conftest.$ac_ext >&5
30312 rm -f conftest.err conftest.$ac_objext \
30313 conftest$ac_exeext conftest.$ac_ext
30318 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30319 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30321 if test $ol_cv_db_db_1 = yes ; then
30322 ol_cv_lib_db=-ldb-1
30327 if test "$ol_cv_lib_db" != no ; then
30328 ol_cv_berkeley_db=yes
30334 ol_cv_berkeley_db=no
30336 for ac_header in db.h
30338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30340 echo "$as_me:$LINENO: checking for $ac_header" >&5
30341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30343 echo $ECHO_N "(cached) $ECHO_C" >&6
30345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30348 # Is the header compilable?
30349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30351 cat >conftest.$ac_ext <<_ACEOF
30354 cat confdefs.h >>conftest.$ac_ext
30355 cat >>conftest.$ac_ext <<_ACEOF
30356 /* end confdefs.h. */
30357 $ac_includes_default
30358 #include <$ac_header>
30360 rm -f conftest.$ac_objext
30361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30362 (eval $ac_compile) 2>conftest.er1
30364 grep -v '^ *+' conftest.er1 >conftest.err
30366 cat conftest.err >&5
30367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368 (exit $ac_status); } &&
30369 { ac_try='test -z "$ac_c_werror_flag"
30370 || test ! -s conftest.err'
30371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30372 (eval $ac_try) 2>&5
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); }; } &&
30376 { ac_try='test -s conftest.$ac_objext'
30377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30378 (eval $ac_try) 2>&5
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); }; }; then
30382 ac_header_compiler=yes
30384 echo "$as_me: failed program was:" >&5
30385 sed 's/^/| /' conftest.$ac_ext >&5
30387 ac_header_compiler=no
30389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30391 echo "${ECHO_T}$ac_header_compiler" >&6
30393 # Is the header present?
30394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30396 cat >conftest.$ac_ext <<_ACEOF
30399 cat confdefs.h >>conftest.$ac_ext
30400 cat >>conftest.$ac_ext <<_ACEOF
30401 /* end confdefs.h. */
30402 #include <$ac_header>
30404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30407 grep -v '^ *+' conftest.er1 >conftest.err
30409 cat conftest.err >&5
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); } >/dev/null; then
30412 if test -s conftest.err; then
30413 ac_cpp_err=$ac_c_preproc_warn_flag
30414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30421 if test -z "$ac_cpp_err"; then
30422 ac_header_preproc=yes
30424 echo "$as_me: failed program was:" >&5
30425 sed 's/^/| /' conftest.$ac_ext >&5
30427 ac_header_preproc=no
30429 rm -f conftest.err conftest.$ac_ext
30430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30431 echo "${ECHO_T}$ac_header_preproc" >&6
30433 # So? What about this header?
30434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30440 ac_header_preproc=yes
30443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30457 ## ------------------------------------------ ##
30458 ## Report this to the AC_PACKAGE_NAME lists. ##
30459 ## ------------------------------------------ ##
30462 sed "s/^/$as_me: WARNING: /" >&2
30465 echo "$as_me:$LINENO: checking for $ac_header" >&5
30466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30468 echo $ECHO_N "(cached) $ECHO_C" >&6
30470 eval "$as_ac_Header=\$ac_header_preproc"
30472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30477 cat >>confdefs.h <<_ACEOF
30478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30485 if test $ac_cv_header_db_h = yes; then
30487 if test $ol_cv_lib_db = no ; then
30488 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30489 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30490 if test "${ol_cv_db_none+set}" = set; then
30491 echo $ECHO_N "(cached) $ECHO_C" >&6
30496 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30498 cat >conftest.$ac_ext <<_ACEOF
30501 cat confdefs.h >>conftest.$ac_ext
30502 cat >>conftest.$ac_ext <<_ACEOF
30503 /* end confdefs.h. */
30505 #ifdef HAVE_DB_185_H
30506 # include <db_185.h>
30511 #ifndef DB_VERSION_MAJOR
30512 # define DB_VERSION_MAJOR 1
30516 #define NULL ((void*)0)
30523 #if DB_VERSION_MAJOR > 1
30526 int major, minor, patch;
30528 version = db_version( &major, &minor, &patch );
30530 if( major != DB_VERSION_MAJOR ||
30531 minor < DB_VERSION_MINOR )
30533 printf("Berkeley DB version mismatch\n"
30534 "\theader: %s\n\tlibrary: %s\n",
30535 DB_VERSION_STRING, version);
30541 #if DB_VERSION_MAJOR > 2
30542 db_env_create( NULL, 0 );
30543 #elif DB_VERSION_MAJOR > 1
30544 db_appexit( NULL );
30546 (void) dbopen( NULL, 0, 0, 0, NULL);
30553 rm -f conftest.$ac_objext conftest$ac_exeext
30554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30555 (eval $ac_link) 2>conftest.er1
30557 grep -v '^ *+' conftest.er1 >conftest.err
30559 cat conftest.err >&5
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); } &&
30562 { ac_try='test -z "$ac_c_werror_flag"
30563 || test ! -s conftest.err'
30564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30565 (eval $ac_try) 2>&5
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); }; } &&
30569 { ac_try='test -s conftest$ac_exeext'
30570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30571 (eval $ac_try) 2>&5
30573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574 (exit $ac_status); }; }; then
30577 echo "$as_me: failed program was:" >&5
30578 sed 's/^/| /' conftest.$ac_ext >&5
30582 rm -f conftest.err conftest.$ac_objext \
30583 conftest$ac_exeext conftest.$ac_ext
30588 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30589 echo "${ECHO_T}$ol_cv_db_none" >&6
30591 if test $ol_cv_db_none = yes ; then
30596 if test $ol_cv_lib_db = no ; then
30597 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
30598 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
30599 if test "${ol_cv_db_db43+set}" = set; then
30600 echo $ECHO_N "(cached) $ECHO_C" >&6
30605 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30607 cat >conftest.$ac_ext <<_ACEOF
30610 cat confdefs.h >>conftest.$ac_ext
30611 cat >>conftest.$ac_ext <<_ACEOF
30612 /* end confdefs.h. */
30614 #ifdef HAVE_DB_185_H
30615 # include <db_185.h>
30620 #ifndef DB_VERSION_MAJOR
30621 # define DB_VERSION_MAJOR 1
30625 #define NULL ((void*)0)
30632 #if DB_VERSION_MAJOR > 1
30635 int major, minor, patch;
30637 version = db_version( &major, &minor, &patch );
30639 if( major != DB_VERSION_MAJOR ||
30640 minor < DB_VERSION_MINOR )
30642 printf("Berkeley DB version mismatch\n"
30643 "\theader: %s\n\tlibrary: %s\n",
30644 DB_VERSION_STRING, version);
30650 #if DB_VERSION_MAJOR > 2
30651 db_env_create( NULL, 0 );
30652 #elif DB_VERSION_MAJOR > 1
30653 db_appexit( NULL );
30655 (void) dbopen( NULL, 0, 0, 0, NULL);
30662 rm -f conftest.$ac_objext conftest$ac_exeext
30663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30664 (eval $ac_link) 2>conftest.er1
30666 grep -v '^ *+' conftest.er1 >conftest.err
30668 cat conftest.err >&5
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); } &&
30671 { ac_try='test -z "$ac_c_werror_flag"
30672 || test ! -s conftest.err'
30673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30674 (eval $ac_try) 2>&5
30676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677 (exit $ac_status); }; } &&
30678 { ac_try='test -s conftest$ac_exeext'
30679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30680 (eval $ac_try) 2>&5
30682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30683 (exit $ac_status); }; }; then
30686 echo "$as_me: failed program was:" >&5
30687 sed 's/^/| /' conftest.$ac_ext >&5
30691 rm -f conftest.err conftest.$ac_objext \
30692 conftest$ac_exeext conftest.$ac_ext
30697 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
30698 echo "${ECHO_T}$ol_cv_db_db43" >&6
30700 if test $ol_cv_db_db43 = yes ; then
30701 ol_cv_lib_db=-ldb43
30705 if test $ol_cv_lib_db = no ; then
30706 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
30707 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
30708 if test "${ol_cv_db_db_43+set}" = set; then
30709 echo $ECHO_N "(cached) $ECHO_C" >&6
30714 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30716 cat >conftest.$ac_ext <<_ACEOF
30719 cat confdefs.h >>conftest.$ac_ext
30720 cat >>conftest.$ac_ext <<_ACEOF
30721 /* end confdefs.h. */
30723 #ifdef HAVE_DB_185_H
30724 # include <db_185.h>
30729 #ifndef DB_VERSION_MAJOR
30730 # define DB_VERSION_MAJOR 1
30734 #define NULL ((void*)0)
30741 #if DB_VERSION_MAJOR > 1
30744 int major, minor, patch;
30746 version = db_version( &major, &minor, &patch );
30748 if( major != DB_VERSION_MAJOR ||
30749 minor < DB_VERSION_MINOR )
30751 printf("Berkeley DB version mismatch\n"
30752 "\theader: %s\n\tlibrary: %s\n",
30753 DB_VERSION_STRING, version);
30759 #if DB_VERSION_MAJOR > 2
30760 db_env_create( NULL, 0 );
30761 #elif DB_VERSION_MAJOR > 1
30762 db_appexit( NULL );
30764 (void) dbopen( NULL, 0, 0, 0, NULL);
30771 rm -f conftest.$ac_objext conftest$ac_exeext
30772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30773 (eval $ac_link) 2>conftest.er1
30775 grep -v '^ *+' conftest.er1 >conftest.err
30777 cat conftest.err >&5
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); } &&
30780 { ac_try='test -z "$ac_c_werror_flag"
30781 || test ! -s conftest.err'
30782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30783 (eval $ac_try) 2>&5
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786 (exit $ac_status); }; } &&
30787 { ac_try='test -s conftest$ac_exeext'
30788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30789 (eval $ac_try) 2>&5
30791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792 (exit $ac_status); }; }; then
30795 echo "$as_me: failed program was:" >&5
30796 sed 's/^/| /' conftest.$ac_ext >&5
30800 rm -f conftest.err conftest.$ac_objext \
30801 conftest$ac_exeext conftest.$ac_ext
30806 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
30807 echo "${ECHO_T}$ol_cv_db_db_43" >&6
30809 if test $ol_cv_db_db_43 = yes ; then
30810 ol_cv_lib_db=-ldb-43
30814 if test $ol_cv_lib_db = no ; then
30815 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
30816 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
30817 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
30818 echo $ECHO_N "(cached) $ECHO_C" >&6
30823 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30825 cat >conftest.$ac_ext <<_ACEOF
30828 cat confdefs.h >>conftest.$ac_ext
30829 cat >>conftest.$ac_ext <<_ACEOF
30830 /* end confdefs.h. */
30832 #ifdef HAVE_DB_185_H
30833 # include <db_185.h>
30838 #ifndef DB_VERSION_MAJOR
30839 # define DB_VERSION_MAJOR 1
30843 #define NULL ((void*)0)
30850 #if DB_VERSION_MAJOR > 1
30853 int major, minor, patch;
30855 version = db_version( &major, &minor, &patch );
30857 if( major != DB_VERSION_MAJOR ||
30858 minor < DB_VERSION_MINOR )
30860 printf("Berkeley DB version mismatch\n"
30861 "\theader: %s\n\tlibrary: %s\n",
30862 DB_VERSION_STRING, version);
30868 #if DB_VERSION_MAJOR > 2
30869 db_env_create( NULL, 0 );
30870 #elif DB_VERSION_MAJOR > 1
30871 db_appexit( NULL );
30873 (void) dbopen( NULL, 0, 0, 0, NULL);
30880 rm -f conftest.$ac_objext conftest$ac_exeext
30881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30882 (eval $ac_link) 2>conftest.er1
30884 grep -v '^ *+' conftest.er1 >conftest.err
30886 cat conftest.err >&5
30887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888 (exit $ac_status); } &&
30889 { ac_try='test -z "$ac_c_werror_flag"
30890 || test ! -s conftest.err'
30891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30892 (eval $ac_try) 2>&5
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); }; } &&
30896 { ac_try='test -s conftest$ac_exeext'
30897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30898 (eval $ac_try) 2>&5
30900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901 (exit $ac_status); }; }; then
30902 ol_cv_db_db_4_dot_3=yes
30904 echo "$as_me: failed program was:" >&5
30905 sed 's/^/| /' conftest.$ac_ext >&5
30907 ol_cv_db_db_4_dot_3=no
30909 rm -f conftest.err conftest.$ac_objext \
30910 conftest$ac_exeext conftest.$ac_ext
30915 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
30916 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
30918 if test $ol_cv_db_db_4_dot_3 = yes ; then
30919 ol_cv_lib_db=-ldb-4.3
30923 if test $ol_cv_lib_db = no ; then
30924 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
30925 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
30926 if test "${ol_cv_db_db_4_3+set}" = set; then
30927 echo $ECHO_N "(cached) $ECHO_C" >&6
30932 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30934 cat >conftest.$ac_ext <<_ACEOF
30937 cat confdefs.h >>conftest.$ac_ext
30938 cat >>conftest.$ac_ext <<_ACEOF
30939 /* end confdefs.h. */
30941 #ifdef HAVE_DB_185_H
30942 # include <db_185.h>
30947 #ifndef DB_VERSION_MAJOR
30948 # define DB_VERSION_MAJOR 1
30952 #define NULL ((void*)0)
30959 #if DB_VERSION_MAJOR > 1
30962 int major, minor, patch;
30964 version = db_version( &major, &minor, &patch );
30966 if( major != DB_VERSION_MAJOR ||
30967 minor < DB_VERSION_MINOR )
30969 printf("Berkeley DB version mismatch\n"
30970 "\theader: %s\n\tlibrary: %s\n",
30971 DB_VERSION_STRING, version);
30977 #if DB_VERSION_MAJOR > 2
30978 db_env_create( NULL, 0 );
30979 #elif DB_VERSION_MAJOR > 1
30980 db_appexit( NULL );
30982 (void) dbopen( NULL, 0, 0, 0, NULL);
30989 rm -f conftest.$ac_objext conftest$ac_exeext
30990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30991 (eval $ac_link) 2>conftest.er1
30993 grep -v '^ *+' conftest.er1 >conftest.err
30995 cat conftest.err >&5
30996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997 (exit $ac_status); } &&
30998 { ac_try='test -z "$ac_c_werror_flag"
30999 || test ! -s conftest.err'
31000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31001 (eval $ac_try) 2>&5
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); }; } &&
31005 { ac_try='test -s conftest$ac_exeext'
31006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31007 (eval $ac_try) 2>&5
31009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31010 (exit $ac_status); }; }; then
31011 ol_cv_db_db_4_3=yes
31013 echo "$as_me: failed program was:" >&5
31014 sed 's/^/| /' conftest.$ac_ext >&5
31018 rm -f conftest.err conftest.$ac_objext \
31019 conftest$ac_exeext conftest.$ac_ext
31024 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
31025 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
31027 if test $ol_cv_db_db_4_3 = yes ; then
31028 ol_cv_lib_db=-ldb-4-3
31032 if test $ol_cv_lib_db = no ; then
31033 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
31034 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
31035 if test "${ol_cv_db_db42+set}" = set; then
31036 echo $ECHO_N "(cached) $ECHO_C" >&6
31041 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31043 cat >conftest.$ac_ext <<_ACEOF
31046 cat confdefs.h >>conftest.$ac_ext
31047 cat >>conftest.$ac_ext <<_ACEOF
31048 /* end confdefs.h. */
31050 #ifdef HAVE_DB_185_H
31051 # include <db_185.h>
31056 #ifndef DB_VERSION_MAJOR
31057 # define DB_VERSION_MAJOR 1
31061 #define NULL ((void*)0)
31068 #if DB_VERSION_MAJOR > 1
31071 int major, minor, patch;
31073 version = db_version( &major, &minor, &patch );
31075 if( major != DB_VERSION_MAJOR ||
31076 minor < DB_VERSION_MINOR )
31078 printf("Berkeley DB version mismatch\n"
31079 "\theader: %s\n\tlibrary: %s\n",
31080 DB_VERSION_STRING, version);
31086 #if DB_VERSION_MAJOR > 2
31087 db_env_create( NULL, 0 );
31088 #elif DB_VERSION_MAJOR > 1
31089 db_appexit( NULL );
31091 (void) dbopen( NULL, 0, 0, 0, NULL);
31098 rm -f conftest.$ac_objext conftest$ac_exeext
31099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31100 (eval $ac_link) 2>conftest.er1
31102 grep -v '^ *+' conftest.er1 >conftest.err
31104 cat conftest.err >&5
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); } &&
31107 { ac_try='test -z "$ac_c_werror_flag"
31108 || test ! -s conftest.err'
31109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31110 (eval $ac_try) 2>&5
31112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31113 (exit $ac_status); }; } &&
31114 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
31122 echo "$as_me: failed program was:" >&5
31123 sed 's/^/| /' conftest.$ac_ext >&5
31127 rm -f conftest.err conftest.$ac_objext \
31128 conftest$ac_exeext conftest.$ac_ext
31133 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
31134 echo "${ECHO_T}$ol_cv_db_db42" >&6
31136 if test $ol_cv_db_db42 = yes ; then
31137 ol_cv_lib_db=-ldb42
31141 if test $ol_cv_lib_db = no ; then
31142 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
31143 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
31144 if test "${ol_cv_db_db_42+set}" = set; then
31145 echo $ECHO_N "(cached) $ECHO_C" >&6
31150 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31152 cat >conftest.$ac_ext <<_ACEOF
31155 cat confdefs.h >>conftest.$ac_ext
31156 cat >>conftest.$ac_ext <<_ACEOF
31157 /* end confdefs.h. */
31159 #ifdef HAVE_DB_185_H
31160 # include <db_185.h>
31165 #ifndef DB_VERSION_MAJOR
31166 # define DB_VERSION_MAJOR 1
31170 #define NULL ((void*)0)
31177 #if DB_VERSION_MAJOR > 1
31180 int major, minor, patch;
31182 version = db_version( &major, &minor, &patch );
31184 if( major != DB_VERSION_MAJOR ||
31185 minor < DB_VERSION_MINOR )
31187 printf("Berkeley DB version mismatch\n"
31188 "\theader: %s\n\tlibrary: %s\n",
31189 DB_VERSION_STRING, version);
31195 #if DB_VERSION_MAJOR > 2
31196 db_env_create( NULL, 0 );
31197 #elif DB_VERSION_MAJOR > 1
31198 db_appexit( NULL );
31200 (void) dbopen( NULL, 0, 0, 0, NULL);
31207 rm -f conftest.$ac_objext conftest$ac_exeext
31208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31209 (eval $ac_link) 2>conftest.er1
31211 grep -v '^ *+' conftest.er1 >conftest.err
31213 cat conftest.err >&5
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); } &&
31216 { ac_try='test -z "$ac_c_werror_flag"
31217 || test ! -s conftest.err'
31218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31219 (eval $ac_try) 2>&5
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); }; } &&
31223 { ac_try='test -s conftest$ac_exeext'
31224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31225 (eval $ac_try) 2>&5
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228 (exit $ac_status); }; }; then
31231 echo "$as_me: failed program was:" >&5
31232 sed 's/^/| /' conftest.$ac_ext >&5
31236 rm -f conftest.err conftest.$ac_objext \
31237 conftest$ac_exeext conftest.$ac_ext
31242 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
31243 echo "${ECHO_T}$ol_cv_db_db_42" >&6
31245 if test $ol_cv_db_db_42 = yes ; then
31246 ol_cv_lib_db=-ldb-42
31250 if test $ol_cv_lib_db = no ; then
31251 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
31252 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
31253 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
31254 echo $ECHO_N "(cached) $ECHO_C" >&6
31259 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31261 cat >conftest.$ac_ext <<_ACEOF
31264 cat confdefs.h >>conftest.$ac_ext
31265 cat >>conftest.$ac_ext <<_ACEOF
31266 /* end confdefs.h. */
31268 #ifdef HAVE_DB_185_H
31269 # include <db_185.h>
31274 #ifndef DB_VERSION_MAJOR
31275 # define DB_VERSION_MAJOR 1
31279 #define NULL ((void*)0)
31286 #if DB_VERSION_MAJOR > 1
31289 int major, minor, patch;
31291 version = db_version( &major, &minor, &patch );
31293 if( major != DB_VERSION_MAJOR ||
31294 minor < DB_VERSION_MINOR )
31296 printf("Berkeley DB version mismatch\n"
31297 "\theader: %s\n\tlibrary: %s\n",
31298 DB_VERSION_STRING, version);
31304 #if DB_VERSION_MAJOR > 2
31305 db_env_create( NULL, 0 );
31306 #elif DB_VERSION_MAJOR > 1
31307 db_appexit( NULL );
31309 (void) dbopen( NULL, 0, 0, 0, NULL);
31316 rm -f conftest.$ac_objext conftest$ac_exeext
31317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31318 (eval $ac_link) 2>conftest.er1
31320 grep -v '^ *+' conftest.er1 >conftest.err
31322 cat conftest.err >&5
31323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324 (exit $ac_status); } &&
31325 { ac_try='test -z "$ac_c_werror_flag"
31326 || test ! -s conftest.err'
31327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31328 (eval $ac_try) 2>&5
31330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331 (exit $ac_status); }; } &&
31332 { ac_try='test -s conftest$ac_exeext'
31333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31334 (eval $ac_try) 2>&5
31336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337 (exit $ac_status); }; }; then
31338 ol_cv_db_db_4_dot_2=yes
31340 echo "$as_me: failed program was:" >&5
31341 sed 's/^/| /' conftest.$ac_ext >&5
31343 ol_cv_db_db_4_dot_2=no
31345 rm -f conftest.err conftest.$ac_objext \
31346 conftest$ac_exeext conftest.$ac_ext
31351 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
31352 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
31354 if test $ol_cv_db_db_4_dot_2 = yes ; then
31355 ol_cv_lib_db=-ldb-4.2
31359 if test $ol_cv_lib_db = no ; then
31360 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
31361 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
31362 if test "${ol_cv_db_db_4_2+set}" = set; then
31363 echo $ECHO_N "(cached) $ECHO_C" >&6
31368 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31370 cat >conftest.$ac_ext <<_ACEOF
31373 cat confdefs.h >>conftest.$ac_ext
31374 cat >>conftest.$ac_ext <<_ACEOF
31375 /* end confdefs.h. */
31377 #ifdef HAVE_DB_185_H
31378 # include <db_185.h>
31383 #ifndef DB_VERSION_MAJOR
31384 # define DB_VERSION_MAJOR 1
31388 #define NULL ((void*)0)
31395 #if DB_VERSION_MAJOR > 1
31398 int major, minor, patch;
31400 version = db_version( &major, &minor, &patch );
31402 if( major != DB_VERSION_MAJOR ||
31403 minor < DB_VERSION_MINOR )
31405 printf("Berkeley DB version mismatch\n"
31406 "\theader: %s\n\tlibrary: %s\n",
31407 DB_VERSION_STRING, version);
31413 #if DB_VERSION_MAJOR > 2
31414 db_env_create( NULL, 0 );
31415 #elif DB_VERSION_MAJOR > 1
31416 db_appexit( NULL );
31418 (void) dbopen( NULL, 0, 0, 0, NULL);
31425 rm -f conftest.$ac_objext conftest$ac_exeext
31426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31427 (eval $ac_link) 2>conftest.er1
31429 grep -v '^ *+' conftest.er1 >conftest.err
31431 cat conftest.err >&5
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); } &&
31434 { ac_try='test -z "$ac_c_werror_flag"
31435 || test ! -s conftest.err'
31436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31437 (eval $ac_try) 2>&5
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); }; } &&
31441 { ac_try='test -s conftest$ac_exeext'
31442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31443 (eval $ac_try) 2>&5
31445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446 (exit $ac_status); }; }; then
31447 ol_cv_db_db_4_2=yes
31449 echo "$as_me: failed program was:" >&5
31450 sed 's/^/| /' conftest.$ac_ext >&5
31454 rm -f conftest.err conftest.$ac_objext \
31455 conftest$ac_exeext conftest.$ac_ext
31460 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
31461 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
31463 if test $ol_cv_db_db_4_2 = yes ; then
31464 ol_cv_lib_db=-ldb-4-2
31468 if test $ol_cv_lib_db = no ; then
31469 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
31470 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
31471 if test "${ol_cv_db_db_4+set}" = set; then
31472 echo $ECHO_N "(cached) $ECHO_C" >&6
31477 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31479 cat >conftest.$ac_ext <<_ACEOF
31482 cat confdefs.h >>conftest.$ac_ext
31483 cat >>conftest.$ac_ext <<_ACEOF
31484 /* end confdefs.h. */
31486 #ifdef HAVE_DB_185_H
31487 # include <db_185.h>
31492 #ifndef DB_VERSION_MAJOR
31493 # define DB_VERSION_MAJOR 1
31497 #define NULL ((void*)0)
31504 #if DB_VERSION_MAJOR > 1
31507 int major, minor, patch;
31509 version = db_version( &major, &minor, &patch );
31511 if( major != DB_VERSION_MAJOR ||
31512 minor < DB_VERSION_MINOR )
31514 printf("Berkeley DB version mismatch\n"
31515 "\theader: %s\n\tlibrary: %s\n",
31516 DB_VERSION_STRING, version);
31522 #if DB_VERSION_MAJOR > 2
31523 db_env_create( NULL, 0 );
31524 #elif DB_VERSION_MAJOR > 1
31525 db_appexit( NULL );
31527 (void) dbopen( NULL, 0, 0, 0, NULL);
31534 rm -f conftest.$ac_objext conftest$ac_exeext
31535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31536 (eval $ac_link) 2>conftest.er1
31538 grep -v '^ *+' conftest.er1 >conftest.err
31540 cat conftest.err >&5
31541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542 (exit $ac_status); } &&
31543 { ac_try='test -z "$ac_c_werror_flag"
31544 || test ! -s conftest.err'
31545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31546 (eval $ac_try) 2>&5
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); }; } &&
31550 { ac_try='test -s conftest$ac_exeext'
31551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31552 (eval $ac_try) 2>&5
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); }; }; then
31558 echo "$as_me: failed program was:" >&5
31559 sed 's/^/| /' conftest.$ac_ext >&5
31563 rm -f conftest.err conftest.$ac_objext \
31564 conftest$ac_exeext conftest.$ac_ext
31569 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
31570 echo "${ECHO_T}$ol_cv_db_db_4" >&6
31572 if test $ol_cv_db_db_4 = yes ; then
31573 ol_cv_lib_db=-ldb-4
31577 if test $ol_cv_lib_db = no ; then
31578 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
31579 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
31580 if test "${ol_cv_db_db4+set}" = set; then
31581 echo $ECHO_N "(cached) $ECHO_C" >&6
31586 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31588 cat >conftest.$ac_ext <<_ACEOF
31591 cat confdefs.h >>conftest.$ac_ext
31592 cat >>conftest.$ac_ext <<_ACEOF
31593 /* end confdefs.h. */
31595 #ifdef HAVE_DB_185_H
31596 # include <db_185.h>
31601 #ifndef DB_VERSION_MAJOR
31602 # define DB_VERSION_MAJOR 1
31606 #define NULL ((void*)0)
31613 #if DB_VERSION_MAJOR > 1
31616 int major, minor, patch;
31618 version = db_version( &major, &minor, &patch );
31620 if( major != DB_VERSION_MAJOR ||
31621 minor < DB_VERSION_MINOR )
31623 printf("Berkeley DB version mismatch\n"
31624 "\theader: %s\n\tlibrary: %s\n",
31625 DB_VERSION_STRING, version);
31631 #if DB_VERSION_MAJOR > 2
31632 db_env_create( NULL, 0 );
31633 #elif DB_VERSION_MAJOR > 1
31634 db_appexit( NULL );
31636 (void) dbopen( NULL, 0, 0, 0, NULL);
31643 rm -f conftest.$ac_objext conftest$ac_exeext
31644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31645 (eval $ac_link) 2>conftest.er1
31647 grep -v '^ *+' conftest.er1 >conftest.err
31649 cat conftest.err >&5
31650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651 (exit $ac_status); } &&
31652 { ac_try='test -z "$ac_c_werror_flag"
31653 || test ! -s conftest.err'
31654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31655 (eval $ac_try) 2>&5
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); }; } &&
31659 { ac_try='test -s conftest$ac_exeext'
31660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31661 (eval $ac_try) 2>&5
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); }; }; then
31667 echo "$as_me: failed program was:" >&5
31668 sed 's/^/| /' conftest.$ac_ext >&5
31672 rm -f conftest.err conftest.$ac_objext \
31673 conftest$ac_exeext conftest.$ac_ext
31678 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
31679 echo "${ECHO_T}$ol_cv_db_db4" >&6
31681 if test $ol_cv_db_db4 = yes ; then
31686 if test $ol_cv_lib_db = no ; then
31687 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
31688 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
31689 if test "${ol_cv_db_db+set}" = set; then
31690 echo $ECHO_N "(cached) $ECHO_C" >&6
31695 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31697 cat >conftest.$ac_ext <<_ACEOF
31700 cat confdefs.h >>conftest.$ac_ext
31701 cat >>conftest.$ac_ext <<_ACEOF
31702 /* end confdefs.h. */
31704 #ifdef HAVE_DB_185_H
31705 # include <db_185.h>
31710 #ifndef DB_VERSION_MAJOR
31711 # define DB_VERSION_MAJOR 1
31715 #define NULL ((void*)0)
31722 #if DB_VERSION_MAJOR > 1
31725 int major, minor, patch;
31727 version = db_version( &major, &minor, &patch );
31729 if( major != DB_VERSION_MAJOR ||
31730 minor < DB_VERSION_MINOR )
31732 printf("Berkeley DB version mismatch\n"
31733 "\theader: %s\n\tlibrary: %s\n",
31734 DB_VERSION_STRING, version);
31740 #if DB_VERSION_MAJOR > 2
31741 db_env_create( NULL, 0 );
31742 #elif DB_VERSION_MAJOR > 1
31743 db_appexit( NULL );
31745 (void) dbopen( NULL, 0, 0, 0, NULL);
31752 rm -f conftest.$ac_objext conftest$ac_exeext
31753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31754 (eval $ac_link) 2>conftest.er1
31756 grep -v '^ *+' conftest.er1 >conftest.err
31758 cat conftest.err >&5
31759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760 (exit $ac_status); } &&
31761 { ac_try='test -z "$ac_c_werror_flag"
31762 || test ! -s conftest.err'
31763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31764 (eval $ac_try) 2>&5
31766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767 (exit $ac_status); }; } &&
31768 { ac_try='test -s conftest$ac_exeext'
31769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31770 (eval $ac_try) 2>&5
31772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773 (exit $ac_status); }; }; then
31776 echo "$as_me: failed program was:" >&5
31777 sed 's/^/| /' conftest.$ac_ext >&5
31781 rm -f conftest.err conftest.$ac_objext \
31782 conftest$ac_exeext conftest.$ac_ext
31787 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
31788 echo "${ECHO_T}$ol_cv_db_db" >&6
31790 if test $ol_cv_db_db = yes ; then
31795 if test $ol_cv_lib_db = no ; then
31796 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
31797 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
31798 if test "${ol_cv_db_db41+set}" = set; then
31799 echo $ECHO_N "(cached) $ECHO_C" >&6
31804 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31806 cat >conftest.$ac_ext <<_ACEOF
31809 cat confdefs.h >>conftest.$ac_ext
31810 cat >>conftest.$ac_ext <<_ACEOF
31811 /* end confdefs.h. */
31813 #ifdef HAVE_DB_185_H
31814 # include <db_185.h>
31819 #ifndef DB_VERSION_MAJOR
31820 # define DB_VERSION_MAJOR 1
31824 #define NULL ((void*)0)
31831 #if DB_VERSION_MAJOR > 1
31834 int major, minor, patch;
31836 version = db_version( &major, &minor, &patch );
31838 if( major != DB_VERSION_MAJOR ||
31839 minor < DB_VERSION_MINOR )
31841 printf("Berkeley DB version mismatch\n"
31842 "\theader: %s\n\tlibrary: %s\n",
31843 DB_VERSION_STRING, version);
31849 #if DB_VERSION_MAJOR > 2
31850 db_env_create( NULL, 0 );
31851 #elif DB_VERSION_MAJOR > 1
31852 db_appexit( NULL );
31854 (void) dbopen( NULL, 0, 0, 0, NULL);
31861 rm -f conftest.$ac_objext conftest$ac_exeext
31862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31863 (eval $ac_link) 2>conftest.er1
31865 grep -v '^ *+' conftest.er1 >conftest.err
31867 cat conftest.err >&5
31868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869 (exit $ac_status); } &&
31870 { ac_try='test -z "$ac_c_werror_flag"
31871 || test ! -s conftest.err'
31872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31873 (eval $ac_try) 2>&5
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); }; } &&
31877 { ac_try='test -s conftest$ac_exeext'
31878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31879 (eval $ac_try) 2>&5
31881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882 (exit $ac_status); }; }; then
31885 echo "$as_me: failed program was:" >&5
31886 sed 's/^/| /' conftest.$ac_ext >&5
31890 rm -f conftest.err conftest.$ac_objext \
31891 conftest$ac_exeext conftest.$ac_ext
31896 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
31897 echo "${ECHO_T}$ol_cv_db_db41" >&6
31899 if test $ol_cv_db_db41 = yes ; then
31900 ol_cv_lib_db=-ldb41
31904 if test $ol_cv_lib_db = no ; then
31905 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
31906 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
31907 if test "${ol_cv_db_db_41+set}" = set; then
31908 echo $ECHO_N "(cached) $ECHO_C" >&6
31913 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31915 cat >conftest.$ac_ext <<_ACEOF
31918 cat confdefs.h >>conftest.$ac_ext
31919 cat >>conftest.$ac_ext <<_ACEOF
31920 /* end confdefs.h. */
31922 #ifdef HAVE_DB_185_H
31923 # include <db_185.h>
31928 #ifndef DB_VERSION_MAJOR
31929 # define DB_VERSION_MAJOR 1
31933 #define NULL ((void*)0)
31940 #if DB_VERSION_MAJOR > 1
31943 int major, minor, patch;
31945 version = db_version( &major, &minor, &patch );
31947 if( major != DB_VERSION_MAJOR ||
31948 minor < DB_VERSION_MINOR )
31950 printf("Berkeley DB version mismatch\n"
31951 "\theader: %s\n\tlibrary: %s\n",
31952 DB_VERSION_STRING, version);
31958 #if DB_VERSION_MAJOR > 2
31959 db_env_create( NULL, 0 );
31960 #elif DB_VERSION_MAJOR > 1
31961 db_appexit( NULL );
31963 (void) dbopen( NULL, 0, 0, 0, NULL);
31970 rm -f conftest.$ac_objext conftest$ac_exeext
31971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31972 (eval $ac_link) 2>conftest.er1
31974 grep -v '^ *+' conftest.er1 >conftest.err
31976 cat conftest.err >&5
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); } &&
31979 { ac_try='test -z "$ac_c_werror_flag"
31980 || test ! -s conftest.err'
31981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31982 (eval $ac_try) 2>&5
31984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); }; } &&
31986 { ac_try='test -s conftest$ac_exeext'
31987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31988 (eval $ac_try) 2>&5
31990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991 (exit $ac_status); }; }; then
31994 echo "$as_me: failed program was:" >&5
31995 sed 's/^/| /' conftest.$ac_ext >&5
31999 rm -f conftest.err conftest.$ac_objext \
32000 conftest$ac_exeext conftest.$ac_ext
32005 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
32006 echo "${ECHO_T}$ol_cv_db_db_41" >&6
32008 if test $ol_cv_db_db_41 = yes ; then
32009 ol_cv_lib_db=-ldb-41
32013 if test $ol_cv_lib_db = no ; then
32014 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
32015 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
32016 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
32017 echo $ECHO_N "(cached) $ECHO_C" >&6
32022 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32024 cat >conftest.$ac_ext <<_ACEOF
32027 cat confdefs.h >>conftest.$ac_ext
32028 cat >>conftest.$ac_ext <<_ACEOF
32029 /* end confdefs.h. */
32031 #ifdef HAVE_DB_185_H
32032 # include <db_185.h>
32037 #ifndef DB_VERSION_MAJOR
32038 # define DB_VERSION_MAJOR 1
32042 #define NULL ((void*)0)
32049 #if DB_VERSION_MAJOR > 1
32052 int major, minor, patch;
32054 version = db_version( &major, &minor, &patch );
32056 if( major != DB_VERSION_MAJOR ||
32057 minor < DB_VERSION_MINOR )
32059 printf("Berkeley DB version mismatch\n"
32060 "\theader: %s\n\tlibrary: %s\n",
32061 DB_VERSION_STRING, version);
32067 #if DB_VERSION_MAJOR > 2
32068 db_env_create( NULL, 0 );
32069 #elif DB_VERSION_MAJOR > 1
32070 db_appexit( NULL );
32072 (void) dbopen( NULL, 0, 0, 0, NULL);
32079 rm -f conftest.$ac_objext conftest$ac_exeext
32080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32081 (eval $ac_link) 2>conftest.er1
32083 grep -v '^ *+' conftest.er1 >conftest.err
32085 cat conftest.err >&5
32086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087 (exit $ac_status); } &&
32088 { ac_try='test -z "$ac_c_werror_flag"
32089 || test ! -s conftest.err'
32090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32091 (eval $ac_try) 2>&5
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); }; } &&
32095 { ac_try='test -s conftest$ac_exeext'
32096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32097 (eval $ac_try) 2>&5
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); }; }; then
32101 ol_cv_db_db_4_dot_1=yes
32103 echo "$as_me: failed program was:" >&5
32104 sed 's/^/| /' conftest.$ac_ext >&5
32106 ol_cv_db_db_4_dot_1=no
32108 rm -f conftest.err conftest.$ac_objext \
32109 conftest$ac_exeext conftest.$ac_ext
32114 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
32115 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
32117 if test $ol_cv_db_db_4_dot_1 = yes ; then
32118 ol_cv_lib_db=-ldb-4.1
32122 if test $ol_cv_lib_db = no ; then
32123 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
32124 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
32125 if test "${ol_cv_db_db_4_1+set}" = set; then
32126 echo $ECHO_N "(cached) $ECHO_C" >&6
32131 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32133 cat >conftest.$ac_ext <<_ACEOF
32136 cat confdefs.h >>conftest.$ac_ext
32137 cat >>conftest.$ac_ext <<_ACEOF
32138 /* end confdefs.h. */
32140 #ifdef HAVE_DB_185_H
32141 # include <db_185.h>
32146 #ifndef DB_VERSION_MAJOR
32147 # define DB_VERSION_MAJOR 1
32151 #define NULL ((void*)0)
32158 #if DB_VERSION_MAJOR > 1
32161 int major, minor, patch;
32163 version = db_version( &major, &minor, &patch );
32165 if( major != DB_VERSION_MAJOR ||
32166 minor < DB_VERSION_MINOR )
32168 printf("Berkeley DB version mismatch\n"
32169 "\theader: %s\n\tlibrary: %s\n",
32170 DB_VERSION_STRING, version);
32176 #if DB_VERSION_MAJOR > 2
32177 db_env_create( NULL, 0 );
32178 #elif DB_VERSION_MAJOR > 1
32179 db_appexit( NULL );
32181 (void) dbopen( NULL, 0, 0, 0, NULL);
32188 rm -f conftest.$ac_objext conftest$ac_exeext
32189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32190 (eval $ac_link) 2>conftest.er1
32192 grep -v '^ *+' conftest.er1 >conftest.err
32194 cat conftest.err >&5
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); } &&
32197 { ac_try='test -z "$ac_c_werror_flag"
32198 || test ! -s conftest.err'
32199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32200 (eval $ac_try) 2>&5
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); }; } &&
32204 { ac_try='test -s conftest$ac_exeext'
32205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32206 (eval $ac_try) 2>&5
32208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209 (exit $ac_status); }; }; then
32210 ol_cv_db_db_4_1=yes
32212 echo "$as_me: failed program was:" >&5
32213 sed 's/^/| /' conftest.$ac_ext >&5
32217 rm -f conftest.err conftest.$ac_objext \
32218 conftest$ac_exeext conftest.$ac_ext
32223 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
32224 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
32226 if test $ol_cv_db_db_4_1 = yes ; then
32227 ol_cv_lib_db=-ldb-4-1
32231 if test $ol_cv_lib_db = no ; then
32232 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
32233 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
32234 if test "${ol_cv_db_db3+set}" = set; then
32235 echo $ECHO_N "(cached) $ECHO_C" >&6
32240 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32242 cat >conftest.$ac_ext <<_ACEOF
32245 cat confdefs.h >>conftest.$ac_ext
32246 cat >>conftest.$ac_ext <<_ACEOF
32247 /* end confdefs.h. */
32249 #ifdef HAVE_DB_185_H
32250 # include <db_185.h>
32255 #ifndef DB_VERSION_MAJOR
32256 # define DB_VERSION_MAJOR 1
32260 #define NULL ((void*)0)
32267 #if DB_VERSION_MAJOR > 1
32270 int major, minor, patch;
32272 version = db_version( &major, &minor, &patch );
32274 if( major != DB_VERSION_MAJOR ||
32275 minor < DB_VERSION_MINOR )
32277 printf("Berkeley DB version mismatch\n"
32278 "\theader: %s\n\tlibrary: %s\n",
32279 DB_VERSION_STRING, version);
32285 #if DB_VERSION_MAJOR > 2
32286 db_env_create( NULL, 0 );
32287 #elif DB_VERSION_MAJOR > 1
32288 db_appexit( NULL );
32290 (void) dbopen( NULL, 0, 0, 0, NULL);
32297 rm -f conftest.$ac_objext conftest$ac_exeext
32298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32299 (eval $ac_link) 2>conftest.er1
32301 grep -v '^ *+' conftest.er1 >conftest.err
32303 cat conftest.err >&5
32304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32305 (exit $ac_status); } &&
32306 { ac_try='test -z "$ac_c_werror_flag"
32307 || test ! -s conftest.err'
32308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32309 (eval $ac_try) 2>&5
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; } &&
32313 { ac_try='test -s conftest$ac_exeext'
32314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32315 (eval $ac_try) 2>&5
32317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318 (exit $ac_status); }; }; then
32321 echo "$as_me: failed program was:" >&5
32322 sed 's/^/| /' conftest.$ac_ext >&5
32326 rm -f conftest.err conftest.$ac_objext \
32327 conftest$ac_exeext conftest.$ac_ext
32332 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
32333 echo "${ECHO_T}$ol_cv_db_db3" >&6
32335 if test $ol_cv_db_db3 = yes ; then
32340 if test $ol_cv_lib_db = no ; then
32341 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
32342 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
32343 if test "${ol_cv_db_db_3+set}" = set; then
32344 echo $ECHO_N "(cached) $ECHO_C" >&6
32349 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32351 cat >conftest.$ac_ext <<_ACEOF
32354 cat confdefs.h >>conftest.$ac_ext
32355 cat >>conftest.$ac_ext <<_ACEOF
32356 /* end confdefs.h. */
32358 #ifdef HAVE_DB_185_H
32359 # include <db_185.h>
32364 #ifndef DB_VERSION_MAJOR
32365 # define DB_VERSION_MAJOR 1
32369 #define NULL ((void*)0)
32376 #if DB_VERSION_MAJOR > 1
32379 int major, minor, patch;
32381 version = db_version( &major, &minor, &patch );
32383 if( major != DB_VERSION_MAJOR ||
32384 minor < DB_VERSION_MINOR )
32386 printf("Berkeley DB version mismatch\n"
32387 "\theader: %s\n\tlibrary: %s\n",
32388 DB_VERSION_STRING, version);
32394 #if DB_VERSION_MAJOR > 2
32395 db_env_create( NULL, 0 );
32396 #elif DB_VERSION_MAJOR > 1
32397 db_appexit( NULL );
32399 (void) dbopen( NULL, 0, 0, 0, NULL);
32406 rm -f conftest.$ac_objext conftest$ac_exeext
32407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32408 (eval $ac_link) 2>conftest.er1
32410 grep -v '^ *+' conftest.er1 >conftest.err
32412 cat conftest.err >&5
32413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); } &&
32415 { ac_try='test -z "$ac_c_werror_flag"
32416 || test ! -s conftest.err'
32417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32418 (eval $ac_try) 2>&5
32420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421 (exit $ac_status); }; } &&
32422 { ac_try='test -s conftest$ac_exeext'
32423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32424 (eval $ac_try) 2>&5
32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427 (exit $ac_status); }; }; then
32430 echo "$as_me: failed program was:" >&5
32431 sed 's/^/| /' conftest.$ac_ext >&5
32435 rm -f conftest.err conftest.$ac_objext \
32436 conftest$ac_exeext conftest.$ac_ext
32441 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
32442 echo "${ECHO_T}$ol_cv_db_db_3" >&6
32444 if test $ol_cv_db_db_3 = yes ; then
32445 ol_cv_lib_db=-ldb-3
32449 if test $ol_cv_lib_db = no ; then
32450 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
32451 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
32452 if test "${ol_cv_db_db2+set}" = set; then
32453 echo $ECHO_N "(cached) $ECHO_C" >&6
32458 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32460 cat >conftest.$ac_ext <<_ACEOF
32463 cat confdefs.h >>conftest.$ac_ext
32464 cat >>conftest.$ac_ext <<_ACEOF
32465 /* end confdefs.h. */
32467 #ifdef HAVE_DB_185_H
32468 # include <db_185.h>
32473 #ifndef DB_VERSION_MAJOR
32474 # define DB_VERSION_MAJOR 1
32478 #define NULL ((void*)0)
32485 #if DB_VERSION_MAJOR > 1
32488 int major, minor, patch;
32490 version = db_version( &major, &minor, &patch );
32492 if( major != DB_VERSION_MAJOR ||
32493 minor < DB_VERSION_MINOR )
32495 printf("Berkeley DB version mismatch\n"
32496 "\theader: %s\n\tlibrary: %s\n",
32497 DB_VERSION_STRING, version);
32503 #if DB_VERSION_MAJOR > 2
32504 db_env_create( NULL, 0 );
32505 #elif DB_VERSION_MAJOR > 1
32506 db_appexit( NULL );
32508 (void) dbopen( NULL, 0, 0, 0, NULL);
32515 rm -f conftest.$ac_objext conftest$ac_exeext
32516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32517 (eval $ac_link) 2>conftest.er1
32519 grep -v '^ *+' conftest.er1 >conftest.err
32521 cat conftest.err >&5
32522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523 (exit $ac_status); } &&
32524 { ac_try='test -z "$ac_c_werror_flag"
32525 || test ! -s conftest.err'
32526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32527 (eval $ac_try) 2>&5
32529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); }; } &&
32531 { ac_try='test -s conftest$ac_exeext'
32532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32533 (eval $ac_try) 2>&5
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; }; then
32539 echo "$as_me: failed program was:" >&5
32540 sed 's/^/| /' conftest.$ac_ext >&5
32544 rm -f conftest.err conftest.$ac_objext \
32545 conftest$ac_exeext conftest.$ac_ext
32550 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
32551 echo "${ECHO_T}$ol_cv_db_db2" >&6
32553 if test $ol_cv_db_db2 = yes ; then
32558 if test $ol_cv_lib_db = no ; then
32559 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
32560 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
32561 if test "${ol_cv_db_db_2+set}" = set; then
32562 echo $ECHO_N "(cached) $ECHO_C" >&6
32567 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32569 cat >conftest.$ac_ext <<_ACEOF
32572 cat confdefs.h >>conftest.$ac_ext
32573 cat >>conftest.$ac_ext <<_ACEOF
32574 /* end confdefs.h. */
32576 #ifdef HAVE_DB_185_H
32577 # include <db_185.h>
32582 #ifndef DB_VERSION_MAJOR
32583 # define DB_VERSION_MAJOR 1
32587 #define NULL ((void*)0)
32594 #if DB_VERSION_MAJOR > 1
32597 int major, minor, patch;
32599 version = db_version( &major, &minor, &patch );
32601 if( major != DB_VERSION_MAJOR ||
32602 minor < DB_VERSION_MINOR )
32604 printf("Berkeley DB version mismatch\n"
32605 "\theader: %s\n\tlibrary: %s\n",
32606 DB_VERSION_STRING, version);
32612 #if DB_VERSION_MAJOR > 2
32613 db_env_create( NULL, 0 );
32614 #elif DB_VERSION_MAJOR > 1
32615 db_appexit( NULL );
32617 (void) dbopen( NULL, 0, 0, 0, NULL);
32624 rm -f conftest.$ac_objext conftest$ac_exeext
32625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32626 (eval $ac_link) 2>conftest.er1
32628 grep -v '^ *+' conftest.er1 >conftest.err
32630 cat conftest.err >&5
32631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632 (exit $ac_status); } &&
32633 { ac_try='test -z "$ac_c_werror_flag"
32634 || test ! -s conftest.err'
32635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32636 (eval $ac_try) 2>&5
32638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639 (exit $ac_status); }; } &&
32640 { ac_try='test -s conftest$ac_exeext'
32641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32642 (eval $ac_try) 2>&5
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; }; then
32648 echo "$as_me: failed program was:" >&5
32649 sed 's/^/| /' conftest.$ac_ext >&5
32653 rm -f conftest.err conftest.$ac_objext \
32654 conftest$ac_exeext conftest.$ac_ext
32659 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
32660 echo "${ECHO_T}$ol_cv_db_db_2" >&6
32662 if test $ol_cv_db_db_2 = yes ; then
32663 ol_cv_lib_db=-ldb-2
32667 if test $ol_cv_lib_db = no ; then
32668 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
32669 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
32670 if test "${ol_cv_db_db1+set}" = set; then
32671 echo $ECHO_N "(cached) $ECHO_C" >&6
32676 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32678 cat >conftest.$ac_ext <<_ACEOF
32681 cat confdefs.h >>conftest.$ac_ext
32682 cat >>conftest.$ac_ext <<_ACEOF
32683 /* end confdefs.h. */
32685 #ifdef HAVE_DB_185_H
32686 # include <db_185.h>
32691 #ifndef DB_VERSION_MAJOR
32692 # define DB_VERSION_MAJOR 1
32696 #define NULL ((void*)0)
32703 #if DB_VERSION_MAJOR > 1
32706 int major, minor, patch;
32708 version = db_version( &major, &minor, &patch );
32710 if( major != DB_VERSION_MAJOR ||
32711 minor < DB_VERSION_MINOR )
32713 printf("Berkeley DB version mismatch\n"
32714 "\theader: %s\n\tlibrary: %s\n",
32715 DB_VERSION_STRING, version);
32721 #if DB_VERSION_MAJOR > 2
32722 db_env_create( NULL, 0 );
32723 #elif DB_VERSION_MAJOR > 1
32724 db_appexit( NULL );
32726 (void) dbopen( NULL, 0, 0, 0, NULL);
32733 rm -f conftest.$ac_objext conftest$ac_exeext
32734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32735 (eval $ac_link) 2>conftest.er1
32737 grep -v '^ *+' conftest.er1 >conftest.err
32739 cat conftest.err >&5
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); } &&
32742 { ac_try='test -z "$ac_c_werror_flag"
32743 || test ! -s conftest.err'
32744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32745 (eval $ac_try) 2>&5
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); }; } &&
32749 { ac_try='test -s conftest$ac_exeext'
32750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32751 (eval $ac_try) 2>&5
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); }; }; then
32757 echo "$as_me: failed program was:" >&5
32758 sed 's/^/| /' conftest.$ac_ext >&5
32762 rm -f conftest.err conftest.$ac_objext \
32763 conftest$ac_exeext conftest.$ac_ext
32768 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
32769 echo "${ECHO_T}$ol_cv_db_db1" >&6
32771 if test $ol_cv_db_db1 = yes ; then
32776 if test $ol_cv_lib_db = no ; then
32777 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
32778 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
32779 if test "${ol_cv_db_db_1+set}" = set; then
32780 echo $ECHO_N "(cached) $ECHO_C" >&6
32785 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32787 cat >conftest.$ac_ext <<_ACEOF
32790 cat confdefs.h >>conftest.$ac_ext
32791 cat >>conftest.$ac_ext <<_ACEOF
32792 /* end confdefs.h. */
32794 #ifdef HAVE_DB_185_H
32795 # include <db_185.h>
32800 #ifndef DB_VERSION_MAJOR
32801 # define DB_VERSION_MAJOR 1
32805 #define NULL ((void*)0)
32812 #if DB_VERSION_MAJOR > 1
32815 int major, minor, patch;
32817 version = db_version( &major, &minor, &patch );
32819 if( major != DB_VERSION_MAJOR ||
32820 minor < DB_VERSION_MINOR )
32822 printf("Berkeley DB version mismatch\n"
32823 "\theader: %s\n\tlibrary: %s\n",
32824 DB_VERSION_STRING, version);
32830 #if DB_VERSION_MAJOR > 2
32831 db_env_create( NULL, 0 );
32832 #elif DB_VERSION_MAJOR > 1
32833 db_appexit( NULL );
32835 (void) dbopen( NULL, 0, 0, 0, NULL);
32842 rm -f conftest.$ac_objext conftest$ac_exeext
32843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32844 (eval $ac_link) 2>conftest.er1
32846 grep -v '^ *+' conftest.er1 >conftest.err
32848 cat conftest.err >&5
32849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850 (exit $ac_status); } &&
32851 { ac_try='test -z "$ac_c_werror_flag"
32852 || test ! -s conftest.err'
32853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32854 (eval $ac_try) 2>&5
32856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857 (exit $ac_status); }; } &&
32858 { ac_try='test -s conftest$ac_exeext'
32859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32860 (eval $ac_try) 2>&5
32862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863 (exit $ac_status); }; }; then
32866 echo "$as_me: failed program was:" >&5
32867 sed 's/^/| /' conftest.$ac_ext >&5
32871 rm -f conftest.err conftest.$ac_objext \
32872 conftest$ac_exeext conftest.$ac_ext
32877 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
32878 echo "${ECHO_T}$ol_cv_db_db_1" >&6
32880 if test $ol_cv_db_db_1 = yes ; then
32881 ol_cv_lib_db=-ldb-1
32886 if test "$ol_cv_lib_db" != no ; then
32887 ol_cv_berkeley_db=yes
32888 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
32889 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
32890 if test "${ol_cv_berkeley_db_version+set}" = set; then
32891 echo $ECHO_N "(cached) $ECHO_C" >&6
32895 LIBS="$LTHREAD_LIBS $LIBS"
32896 if test $ol_cv_lib_db != yes ; then
32897 LIBS="$ol_cv_lib_db $LIBS"
32900 if test "$cross_compiling" = yes; then
32901 ol_cv_berkeley_db_version=cross
32903 cat >conftest.$ac_ext <<_ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h. */
32910 #ifdef HAVE_DB_185_H
32915 #ifndef DB_VERSION_MAJOR
32916 # define DB_VERSION_MAJOR 1
32919 #define NULL ((void *)0)
32923 #if DB_VERSION_MAJOR > 1
32925 int major, minor, patch;
32927 version = db_version( &major, &minor, &patch );
32929 if( major != DB_VERSION_MAJOR ||
32930 minor != DB_VERSION_MINOR ||
32931 patch != DB_VERSION_PATCH )
32933 printf("Berkeley DB version mismatch\n"
32934 "\theader: %s\n\tlibrary: %s\n",
32935 DB_VERSION_STRING, version);
32943 rm -f conftest$ac_exeext
32944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32945 (eval $ac_link) 2>&5
32947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32950 (eval $ac_try) 2>&5
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); }; }; then
32954 ol_cv_berkeley_db_version=yes
32956 echo "$as_me: program exited with status $ac_status" >&5
32957 echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32960 ( exit $ac_status )
32961 ol_cv_berkeley_db_version=no
32963 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32969 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
32970 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
32972 if test $ol_cv_berkeley_db_version = no ; then
32973 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
32974 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
32975 { (exit 1); exit 1; }; }
32978 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
32979 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
32980 if test "${ol_cv_berkeley_db_thread+set}" = set; then
32981 echo $ECHO_N "(cached) $ECHO_C" >&6
32985 LIBS="$LTHREAD_LIBS $LIBS"
32986 if test $ol_cv_lib_db != yes ; then
32987 LIBS="$ol_cv_lib_db $LIBS"
32990 if test "$cross_compiling" = yes; then
32991 ol_cv_berkeley_db_thread=cross
32993 cat >conftest.$ac_ext <<_ACEOF
32996 cat confdefs.h >>conftest.$ac_ext
32997 cat >>conftest.$ac_ext <<_ACEOF
32998 /* end confdefs.h. */
33000 #ifdef HAVE_DB_185_H
33006 #define NULL ((void *)0)
33011 u_int32_t flags = DB_CREATE |
33017 #if DB_VERSION_MAJOR > 2
33018 DB_ENV *env = NULL;
33020 rc = db_env_create( &env, 0 );
33022 flags |= DB_INIT_MPOOL;
33023 #ifdef DB_MPOOL_PRIVATE
33024 flags |= DB_MPOOL_PRIVATE;
33028 printf("BerkeleyDB: %s\n", db_strerror(rc) );
33032 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
33033 rc = env->open( env, NULL, flags, 0 );
33035 rc = env->open( env, NULL, NULL, flags, 0 );
33039 rc = env->close( env, 0 );
33043 printf("BerkeleyDB: %s\n", db_strerror(rc) );
33049 memset( &env, '\0', sizeof(env) );
33051 rc = db_appinit( NULL, NULL, &env, flags );
33054 db_appexit( &env );
33057 unlink("__db_mpool.share");
33058 unlink("__db_lock.share");
33064 rm -f conftest$ac_exeext
33065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33066 (eval $ac_link) 2>&5
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33071 (eval $ac_try) 2>&5
33073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074 (exit $ac_status); }; }; then
33075 ol_cv_berkeley_db_thread=yes
33077 echo "$as_me: program exited with status $ac_status" >&5
33078 echo "$as_me: failed program was:" >&5
33079 sed 's/^/| /' conftest.$ac_ext >&5
33081 ( exit $ac_status )
33082 ol_cv_berkeley_db_thread=no
33084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33090 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
33091 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
33093 if test $ol_cv_berkeley_db_thread != no ; then
33095 cat >>confdefs.h <<\_ACEOF
33096 #define HAVE_BERKELEY_DB_THREAD 1
33106 if test $ol_cv_berkeley_db != no ; then
33108 cat >>confdefs.h <<\_ACEOF
33109 #define HAVE_BERKELEY_DB 1
33113 ol_link_ldbm=berkeley
33114 ol_enable_ldbm_api=berkeley
33116 if test $ol_enable_ldbm_type = hash ; then
33118 cat >>confdefs.h <<\_ACEOF
33119 #define LDBM_USE_DBHASH 1
33124 cat >>confdefs.h <<\_ACEOF
33125 #define LDBM_USE_DBBTREE 1
33130 if test $ol_cv_lib_db != yes ; then
33131 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
33136 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
33137 if test $ol_link_ldbm != berkeley ; then
33138 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
33139 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
33140 { (exit 1); exit 1; }; }
33142 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
33143 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
33144 if test "${ol_cv_bdb_compat+set}" = set; then
33145 echo $ECHO_N "(cached) $ECHO_C" >&6
33148 cat >conftest.$ac_ext <<_ACEOF
33151 cat confdefs.h >>conftest.$ac_ext
33152 cat >>conftest.$ac_ext <<_ACEOF
33153 /* end confdefs.h. */
33157 /* this check could be improved */
33158 #ifndef DB_VERSION_MAJOR
33159 # define DB_VERSION_MAJOR 1
33161 #ifndef DB_VERSION_MINOR
33162 # define DB_VERSION_MINOR 0
33165 /* require 4.2 or later */
33166 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
33167 __db_version_compat
33171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33172 $EGREP "__db_version_compat" >/dev/null 2>&1; then
33173 ol_cv_bdb_compat=yes
33175 ol_cv_bdb_compat=no
33180 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
33181 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
33184 if test $ol_cv_bdb_compat != yes ; then
33185 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
33186 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
33187 { (exit 1); exit 1; }; }
33192 if test $ol_link_ldbm = no -a $ol_enable_ldbm_type = btree ; then
33193 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
33194 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
33195 ol_enable_ldbm_api=none
33198 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = mdbm ; then
33199 echo "$as_me:$LINENO: checking for MDBM library" >&5
33200 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
33201 if test "${ol_cv_lib_mdbm+set}" = set; then
33202 echo $ECHO_N "(cached) $ECHO_C" >&6
33205 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
33206 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
33207 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
33208 echo $ECHO_N "(cached) $ECHO_C" >&6
33210 cat >conftest.$ac_ext <<_ACEOF
33213 cat confdefs.h >>conftest.$ac_ext
33214 cat >>conftest.$ac_ext <<_ACEOF
33215 /* end confdefs.h. */
33216 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
33217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33218 #define mdbm_set_chain innocuous_mdbm_set_chain
33220 /* System header to define __stub macros and hopefully few prototypes,
33221 which can conflict with char mdbm_set_chain (); below.
33222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33223 <limits.h> exists even on freestanding compilers. */
33226 # include <limits.h>
33228 # include <assert.h>
33231 #undef mdbm_set_chain
33233 /* Override any gcc2 internal prototype to avoid an error. */
33238 /* We use char because int might match the return type of a gcc2
33239 builtin and then its argument prototype would still apply. */
33240 char mdbm_set_chain ();
33241 /* The GNU C library defines this for functions which it implements
33242 to always fail with ENOSYS. Some functions are actually named
33243 something starting with __ and the normal name is an alias. */
33244 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
33247 char (*f) () = mdbm_set_chain;
33256 return f != mdbm_set_chain;
33261 rm -f conftest.$ac_objext conftest$ac_exeext
33262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33263 (eval $ac_link) 2>conftest.er1
33265 grep -v '^ *+' conftest.er1 >conftest.err
33267 cat conftest.err >&5
33268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33269 (exit $ac_status); } &&
33270 { ac_try='test -z "$ac_c_werror_flag"
33271 || test ! -s conftest.err'
33272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33273 (eval $ac_try) 2>&5
33275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33276 (exit $ac_status); }; } &&
33277 { ac_try='test -s conftest$ac_exeext'
33278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33279 (eval $ac_try) 2>&5
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); }; }; then
33283 ac_cv_func_mdbm_set_chain=yes
33285 echo "$as_me: failed program was:" >&5
33286 sed 's/^/| /' conftest.$ac_ext >&5
33288 ac_cv_func_mdbm_set_chain=no
33290 rm -f conftest.err conftest.$ac_objext \
33291 conftest$ac_exeext conftest.$ac_ext
33293 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
33294 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
33295 if test $ac_cv_func_mdbm_set_chain = yes; then
33299 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
33300 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
33301 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
33302 echo $ECHO_N "(cached) $ECHO_C" >&6
33304 ac_check_lib_save_LIBS=$LIBS
33305 LIBS="-lmdbm $LIBS"
33306 cat >conftest.$ac_ext <<_ACEOF
33309 cat confdefs.h >>conftest.$ac_ext
33310 cat >>conftest.$ac_ext <<_ACEOF
33311 /* end confdefs.h. */
33313 /* Override any gcc2 internal prototype to avoid an error. */
33317 /* We use char because int might match the return type of a gcc2
33318 builtin and then its argument prototype would still apply. */
33319 char mdbm_set_chain ();
33328 rm -f conftest.$ac_objext conftest$ac_exeext
33329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33330 (eval $ac_link) 2>conftest.er1
33332 grep -v '^ *+' conftest.er1 >conftest.err
33334 cat conftest.err >&5
33335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336 (exit $ac_status); } &&
33337 { ac_try='test -z "$ac_c_werror_flag"
33338 || test ! -s conftest.err'
33339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33340 (eval $ac_try) 2>&5
33342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343 (exit $ac_status); }; } &&
33344 { ac_try='test -s conftest$ac_exeext'
33345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33346 (eval $ac_try) 2>&5
33348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349 (exit $ac_status); }; }; then
33350 ac_cv_lib_mdbm_mdbm_set_chain=yes
33352 echo "$as_me: failed program was:" >&5
33353 sed 's/^/| /' conftest.$ac_ext >&5
33355 ac_cv_lib_mdbm_mdbm_set_chain=no
33357 rm -f conftest.err conftest.$ac_objext \
33358 conftest$ac_exeext conftest.$ac_ext
33359 LIBS=$ac_check_lib_save_LIBS
33361 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
33362 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
33363 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
33364 ol_cv_lib_mdbm=-lmdbm
33375 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
33376 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
33380 for ac_header in mdbm.h
33382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33384 echo "$as_me:$LINENO: checking for $ac_header" >&5
33385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33387 echo $ECHO_N "(cached) $ECHO_C" >&6
33389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33392 # Is the header compilable?
33393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33395 cat >conftest.$ac_ext <<_ACEOF
33398 cat confdefs.h >>conftest.$ac_ext
33399 cat >>conftest.$ac_ext <<_ACEOF
33400 /* end confdefs.h. */
33401 $ac_includes_default
33402 #include <$ac_header>
33404 rm -f conftest.$ac_objext
33405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33406 (eval $ac_compile) 2>conftest.er1
33408 grep -v '^ *+' conftest.er1 >conftest.err
33410 cat conftest.err >&5
33411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412 (exit $ac_status); } &&
33413 { ac_try='test -z "$ac_c_werror_flag"
33414 || test ! -s conftest.err'
33415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33416 (eval $ac_try) 2>&5
33418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419 (exit $ac_status); }; } &&
33420 { ac_try='test -s conftest.$ac_objext'
33421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33422 (eval $ac_try) 2>&5
33424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); }; }; then
33426 ac_header_compiler=yes
33428 echo "$as_me: failed program was:" >&5
33429 sed 's/^/| /' conftest.$ac_ext >&5
33431 ac_header_compiler=no
33433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33435 echo "${ECHO_T}$ac_header_compiler" >&6
33437 # Is the header present?
33438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33440 cat >conftest.$ac_ext <<_ACEOF
33443 cat confdefs.h >>conftest.$ac_ext
33444 cat >>conftest.$ac_ext <<_ACEOF
33445 /* end confdefs.h. */
33446 #include <$ac_header>
33448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33451 grep -v '^ *+' conftest.er1 >conftest.err
33453 cat conftest.err >&5
33454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455 (exit $ac_status); } >/dev/null; then
33456 if test -s conftest.err; then
33457 ac_cpp_err=$ac_c_preproc_warn_flag
33458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33465 if test -z "$ac_cpp_err"; then
33466 ac_header_preproc=yes
33468 echo "$as_me: failed program was:" >&5
33469 sed 's/^/| /' conftest.$ac_ext >&5
33471 ac_header_preproc=no
33473 rm -f conftest.err conftest.$ac_ext
33474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33475 echo "${ECHO_T}$ac_header_preproc" >&6
33477 # So? What about this header?
33478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33484 ac_header_preproc=yes
33487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33501 ## ------------------------------------------ ##
33502 ## Report this to the AC_PACKAGE_NAME lists. ##
33503 ## ------------------------------------------ ##
33506 sed "s/^/$as_me: WARNING: /" >&2
33509 echo "$as_me:$LINENO: checking for $ac_header" >&5
33510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33512 echo $ECHO_N "(cached) $ECHO_C" >&6
33514 eval "$as_ac_Header=\$ac_header_preproc"
33516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33521 cat >>confdefs.h <<_ACEOF
33522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33529 echo "$as_me:$LINENO: checking for db" >&5
33530 echo $ECHO_N "checking for db... $ECHO_C" >&6
33531 if test "${ol_cv_mdbm+set}" = set; then
33532 echo $ECHO_N "(cached) $ECHO_C" >&6
33535 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
33542 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
33543 echo "${ECHO_T}$ol_cv_mdbm" >&6
33544 if test $ol_cv_mdbm = yes ; then
33546 cat >>confdefs.h <<\_ACEOF
33547 #define HAVE_MDBM 1
33553 if test $ol_cv_mdbm = yes ; then
33555 ol_enable_ldbm_api=mdbm
33556 if test $ol_cv_lib_mdbm != yes ; then
33557 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
33562 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = gdbm ; then
33563 echo "$as_me:$LINENO: checking for GDBM library" >&5
33564 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
33565 if test "${ol_cv_lib_gdbm+set}" = set; then
33566 echo $ECHO_N "(cached) $ECHO_C" >&6
33569 echo "$as_me:$LINENO: checking for gdbm_open" >&5
33570 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
33571 if test "${ac_cv_func_gdbm_open+set}" = set; then
33572 echo $ECHO_N "(cached) $ECHO_C" >&6
33574 cat >conftest.$ac_ext <<_ACEOF
33577 cat confdefs.h >>conftest.$ac_ext
33578 cat >>conftest.$ac_ext <<_ACEOF
33579 /* end confdefs.h. */
33580 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
33581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33582 #define gdbm_open innocuous_gdbm_open
33584 /* System header to define __stub macros and hopefully few prototypes,
33585 which can conflict with char gdbm_open (); below.
33586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33587 <limits.h> exists even on freestanding compilers. */
33590 # include <limits.h>
33592 # include <assert.h>
33597 /* Override any gcc2 internal prototype to avoid an error. */
33602 /* We use char because int might match the return type of a gcc2
33603 builtin and then its argument prototype would still apply. */
33605 /* The GNU C library defines this for functions which it implements
33606 to always fail with ENOSYS. Some functions are actually named
33607 something starting with __ and the normal name is an alias. */
33608 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
33611 char (*f) () = gdbm_open;
33620 return f != gdbm_open;
33625 rm -f conftest.$ac_objext conftest$ac_exeext
33626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33627 (eval $ac_link) 2>conftest.er1
33629 grep -v '^ *+' conftest.er1 >conftest.err
33631 cat conftest.err >&5
33632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633 (exit $ac_status); } &&
33634 { ac_try='test -z "$ac_c_werror_flag"
33635 || test ! -s conftest.err'
33636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33637 (eval $ac_try) 2>&5
33639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640 (exit $ac_status); }; } &&
33641 { ac_try='test -s conftest$ac_exeext'
33642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33643 (eval $ac_try) 2>&5
33645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646 (exit $ac_status); }; }; then
33647 ac_cv_func_gdbm_open=yes
33649 echo "$as_me: failed program was:" >&5
33650 sed 's/^/| /' conftest.$ac_ext >&5
33652 ac_cv_func_gdbm_open=no
33654 rm -f conftest.err conftest.$ac_objext \
33655 conftest$ac_exeext conftest.$ac_ext
33657 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
33658 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
33659 if test $ac_cv_func_gdbm_open = yes; then
33663 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
33664 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
33665 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
33666 echo $ECHO_N "(cached) $ECHO_C" >&6
33668 ac_check_lib_save_LIBS=$LIBS
33669 LIBS="-lgdbm $LIBS"
33670 cat >conftest.$ac_ext <<_ACEOF
33673 cat confdefs.h >>conftest.$ac_ext
33674 cat >>conftest.$ac_ext <<_ACEOF
33675 /* end confdefs.h. */
33677 /* Override any gcc2 internal prototype to avoid an error. */
33681 /* We use char because int might match the return type of a gcc2
33682 builtin and then its argument prototype would still apply. */
33692 rm -f conftest.$ac_objext conftest$ac_exeext
33693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33694 (eval $ac_link) 2>conftest.er1
33696 grep -v '^ *+' conftest.er1 >conftest.err
33698 cat conftest.err >&5
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700 (exit $ac_status); } &&
33701 { ac_try='test -z "$ac_c_werror_flag"
33702 || test ! -s conftest.err'
33703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33704 (eval $ac_try) 2>&5
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); }; } &&
33708 { ac_try='test -s conftest$ac_exeext'
33709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33710 (eval $ac_try) 2>&5
33712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713 (exit $ac_status); }; }; then
33714 ac_cv_lib_gdbm_gdbm_open=yes
33716 echo "$as_me: failed program was:" >&5
33717 sed 's/^/| /' conftest.$ac_ext >&5
33719 ac_cv_lib_gdbm_gdbm_open=no
33721 rm -f conftest.err conftest.$ac_objext \
33722 conftest$ac_exeext conftest.$ac_ext
33723 LIBS=$ac_check_lib_save_LIBS
33725 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
33726 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
33727 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
33728 ol_cv_lib_gdbm=-lgdbm
33739 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
33740 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
33744 for ac_header in gdbm.h
33746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33748 echo "$as_me:$LINENO: checking for $ac_header" >&5
33749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33751 echo $ECHO_N "(cached) $ECHO_C" >&6
33753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33756 # Is the header compilable?
33757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33759 cat >conftest.$ac_ext <<_ACEOF
33762 cat confdefs.h >>conftest.$ac_ext
33763 cat >>conftest.$ac_ext <<_ACEOF
33764 /* end confdefs.h. */
33765 $ac_includes_default
33766 #include <$ac_header>
33768 rm -f conftest.$ac_objext
33769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33770 (eval $ac_compile) 2>conftest.er1
33772 grep -v '^ *+' conftest.er1 >conftest.err
33774 cat conftest.err >&5
33775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776 (exit $ac_status); } &&
33777 { ac_try='test -z "$ac_c_werror_flag"
33778 || test ! -s conftest.err'
33779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33780 (eval $ac_try) 2>&5
33782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33783 (exit $ac_status); }; } &&
33784 { ac_try='test -s conftest.$ac_objext'
33785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33786 (eval $ac_try) 2>&5
33788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789 (exit $ac_status); }; }; then
33790 ac_header_compiler=yes
33792 echo "$as_me: failed program was:" >&5
33793 sed 's/^/| /' conftest.$ac_ext >&5
33795 ac_header_compiler=no
33797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33799 echo "${ECHO_T}$ac_header_compiler" >&6
33801 # Is the header present?
33802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33804 cat >conftest.$ac_ext <<_ACEOF
33807 cat confdefs.h >>conftest.$ac_ext
33808 cat >>conftest.$ac_ext <<_ACEOF
33809 /* end confdefs.h. */
33810 #include <$ac_header>
33812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33815 grep -v '^ *+' conftest.er1 >conftest.err
33817 cat conftest.err >&5
33818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33819 (exit $ac_status); } >/dev/null; then
33820 if test -s conftest.err; then
33821 ac_cpp_err=$ac_c_preproc_warn_flag
33822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33829 if test -z "$ac_cpp_err"; then
33830 ac_header_preproc=yes
33832 echo "$as_me: failed program was:" >&5
33833 sed 's/^/| /' conftest.$ac_ext >&5
33835 ac_header_preproc=no
33837 rm -f conftest.err conftest.$ac_ext
33838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33839 echo "${ECHO_T}$ac_header_preproc" >&6
33841 # So? What about this header?
33842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33848 ac_header_preproc=yes
33851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33865 ## ------------------------------------------ ##
33866 ## Report this to the AC_PACKAGE_NAME lists. ##
33867 ## ------------------------------------------ ##
33870 sed "s/^/$as_me: WARNING: /" >&2
33873 echo "$as_me:$LINENO: checking for $ac_header" >&5
33874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33876 echo $ECHO_N "(cached) $ECHO_C" >&6
33878 eval "$as_ac_Header=\$ac_header_preproc"
33880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33885 cat >>confdefs.h <<_ACEOF
33886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33893 echo "$as_me:$LINENO: checking for db" >&5
33894 echo $ECHO_N "checking for db... $ECHO_C" >&6
33895 if test "${ol_cv_gdbm+set}" = set; then
33896 echo $ECHO_N "(cached) $ECHO_C" >&6
33899 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
33906 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
33907 echo "${ECHO_T}$ol_cv_gdbm" >&6
33908 if test $ol_cv_gdbm = yes ; then
33910 cat >>confdefs.h <<\_ACEOF
33911 #define HAVE_GDBM 1
33917 if test $ol_cv_gdbm = yes ; then
33919 ol_enable_ldbm_api=gdbm
33921 if test $ol_cv_lib_gdbm != yes ; then
33922 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
33927 if test $ol_enable_ldbm_api = ndbm ; then
33928 echo "$as_me:$LINENO: checking for NDBM library" >&5
33929 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
33930 if test "${ol_cv_lib_ndbm+set}" = set; then
33931 echo $ECHO_N "(cached) $ECHO_C" >&6
33934 echo "$as_me:$LINENO: checking for dbm_open" >&5
33935 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
33936 if test "${ac_cv_func_dbm_open+set}" = set; then
33937 echo $ECHO_N "(cached) $ECHO_C" >&6
33939 cat >conftest.$ac_ext <<_ACEOF
33942 cat confdefs.h >>conftest.$ac_ext
33943 cat >>conftest.$ac_ext <<_ACEOF
33944 /* end confdefs.h. */
33945 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
33946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33947 #define dbm_open innocuous_dbm_open
33949 /* System header to define __stub macros and hopefully few prototypes,
33950 which can conflict with char dbm_open (); below.
33951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33952 <limits.h> exists even on freestanding compilers. */
33955 # include <limits.h>
33957 # include <assert.h>
33962 /* Override any gcc2 internal prototype to avoid an error. */
33967 /* We use char because int might match the return type of a gcc2
33968 builtin and then its argument prototype would still apply. */
33970 /* The GNU C library defines this for functions which it implements
33971 to always fail with ENOSYS. Some functions are actually named
33972 something starting with __ and the normal name is an alias. */
33973 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
33976 char (*f) () = dbm_open;
33985 return f != dbm_open;
33990 rm -f conftest.$ac_objext conftest$ac_exeext
33991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33992 (eval $ac_link) 2>conftest.er1
33994 grep -v '^ *+' conftest.er1 >conftest.err
33996 cat conftest.err >&5
33997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998 (exit $ac_status); } &&
33999 { ac_try='test -z "$ac_c_werror_flag"
34000 || test ! -s conftest.err'
34001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34002 (eval $ac_try) 2>&5
34004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005 (exit $ac_status); }; } &&
34006 { ac_try='test -s conftest$ac_exeext'
34007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34008 (eval $ac_try) 2>&5
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); }; }; then
34012 ac_cv_func_dbm_open=yes
34014 echo "$as_me: failed program was:" >&5
34015 sed 's/^/| /' conftest.$ac_ext >&5
34017 ac_cv_func_dbm_open=no
34019 rm -f conftest.err conftest.$ac_objext \
34020 conftest$ac_exeext conftest.$ac_ext
34022 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
34023 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
34024 if test $ac_cv_func_dbm_open = yes; then
34028 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
34029 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
34030 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
34031 echo $ECHO_N "(cached) $ECHO_C" >&6
34033 ac_check_lib_save_LIBS=$LIBS
34034 LIBS="-lndbm $LIBS"
34035 cat >conftest.$ac_ext <<_ACEOF
34038 cat confdefs.h >>conftest.$ac_ext
34039 cat >>conftest.$ac_ext <<_ACEOF
34040 /* end confdefs.h. */
34042 /* Override any gcc2 internal prototype to avoid an error. */
34046 /* We use char because int might match the return type of a gcc2
34047 builtin and then its argument prototype would still apply. */
34057 rm -f conftest.$ac_objext conftest$ac_exeext
34058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34059 (eval $ac_link) 2>conftest.er1
34061 grep -v '^ *+' conftest.er1 >conftest.err
34063 cat conftest.err >&5
34064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065 (exit $ac_status); } &&
34066 { ac_try='test -z "$ac_c_werror_flag"
34067 || test ! -s conftest.err'
34068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34069 (eval $ac_try) 2>&5
34071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34072 (exit $ac_status); }; } &&
34073 { ac_try='test -s conftest$ac_exeext'
34074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34075 (eval $ac_try) 2>&5
34077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34078 (exit $ac_status); }; }; then
34079 ac_cv_lib_ndbm_dbm_open=yes
34081 echo "$as_me: failed program was:" >&5
34082 sed 's/^/| /' conftest.$ac_ext >&5
34084 ac_cv_lib_ndbm_dbm_open=no
34086 rm -f conftest.err conftest.$ac_objext \
34087 conftest$ac_exeext conftest.$ac_ext
34088 LIBS=$ac_check_lib_save_LIBS
34090 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
34091 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
34092 if test $ac_cv_lib_ndbm_dbm_open = yes; then
34093 ol_cv_lib_ndbm=-lndbm
34096 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
34097 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
34098 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
34099 echo $ECHO_N "(cached) $ECHO_C" >&6
34101 ac_check_lib_save_LIBS=$LIBS
34103 cat >conftest.$ac_ext <<_ACEOF
34106 cat confdefs.h >>conftest.$ac_ext
34107 cat >>conftest.$ac_ext <<_ACEOF
34108 /* end confdefs.h. */
34110 /* Override any gcc2 internal prototype to avoid an error. */
34114 /* We use char because int might match the return type of a gcc2
34115 builtin and then its argument prototype would still apply. */
34125 rm -f conftest.$ac_objext conftest$ac_exeext
34126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34127 (eval $ac_link) 2>conftest.er1
34129 grep -v '^ *+' conftest.er1 >conftest.err
34131 cat conftest.err >&5
34132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34133 (exit $ac_status); } &&
34134 { ac_try='test -z "$ac_c_werror_flag"
34135 || test ! -s conftest.err'
34136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34137 (eval $ac_try) 2>&5
34139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140 (exit $ac_status); }; } &&
34141 { ac_try='test -s conftest$ac_exeext'
34142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34143 (eval $ac_try) 2>&5
34145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146 (exit $ac_status); }; }; then
34147 ac_cv_lib_dbm_dbm_open=yes
34149 echo "$as_me: failed program was:" >&5
34150 sed 's/^/| /' conftest.$ac_ext >&5
34152 ac_cv_lib_dbm_dbm_open=no
34154 rm -f conftest.err conftest.$ac_objext \
34155 conftest$ac_exeext conftest.$ac_ext
34156 LIBS=$ac_check_lib_save_LIBS
34158 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
34159 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
34160 if test $ac_cv_lib_dbm_dbm_open = yes; then
34161 ol_cv_lib_ndbm=-ldbm
34174 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
34175 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
34179 for ac_header in ndbm.h
34181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34183 echo "$as_me:$LINENO: checking for $ac_header" >&5
34184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34186 echo $ECHO_N "(cached) $ECHO_C" >&6
34188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34191 # Is the header compilable?
34192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34194 cat >conftest.$ac_ext <<_ACEOF
34197 cat confdefs.h >>conftest.$ac_ext
34198 cat >>conftest.$ac_ext <<_ACEOF
34199 /* end confdefs.h. */
34200 $ac_includes_default
34201 #include <$ac_header>
34203 rm -f conftest.$ac_objext
34204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34205 (eval $ac_compile) 2>conftest.er1
34207 grep -v '^ *+' conftest.er1 >conftest.err
34209 cat conftest.err >&5
34210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211 (exit $ac_status); } &&
34212 { ac_try='test -z "$ac_c_werror_flag"
34213 || test ! -s conftest.err'
34214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34215 (eval $ac_try) 2>&5
34217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218 (exit $ac_status); }; } &&
34219 { ac_try='test -s conftest.$ac_objext'
34220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34221 (eval $ac_try) 2>&5
34223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34224 (exit $ac_status); }; }; then
34225 ac_header_compiler=yes
34227 echo "$as_me: failed program was:" >&5
34228 sed 's/^/| /' conftest.$ac_ext >&5
34230 ac_header_compiler=no
34232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34234 echo "${ECHO_T}$ac_header_compiler" >&6
34236 # Is the header present?
34237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34239 cat >conftest.$ac_ext <<_ACEOF
34242 cat confdefs.h >>conftest.$ac_ext
34243 cat >>conftest.$ac_ext <<_ACEOF
34244 /* end confdefs.h. */
34245 #include <$ac_header>
34247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34250 grep -v '^ *+' conftest.er1 >conftest.err
34252 cat conftest.err >&5
34253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254 (exit $ac_status); } >/dev/null; then
34255 if test -s conftest.err; then
34256 ac_cpp_err=$ac_c_preproc_warn_flag
34257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34264 if test -z "$ac_cpp_err"; then
34265 ac_header_preproc=yes
34267 echo "$as_me: failed program was:" >&5
34268 sed 's/^/| /' conftest.$ac_ext >&5
34270 ac_header_preproc=no
34272 rm -f conftest.err conftest.$ac_ext
34273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34274 echo "${ECHO_T}$ac_header_preproc" >&6
34276 # So? What about this header?
34277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34283 ac_header_preproc=yes
34286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34289 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34293 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34300 ## ------------------------------------------ ##
34301 ## Report this to the AC_PACKAGE_NAME lists. ##
34302 ## ------------------------------------------ ##
34305 sed "s/^/$as_me: WARNING: /" >&2
34308 echo "$as_me:$LINENO: checking for $ac_header" >&5
34309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34311 echo $ECHO_N "(cached) $ECHO_C" >&6
34313 eval "$as_ac_Header=\$ac_header_preproc"
34315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34320 cat >>confdefs.h <<_ACEOF
34321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34328 echo "$as_me:$LINENO: checking for db" >&5
34329 echo $ECHO_N "checking for db... $ECHO_C" >&6
34330 if test "${ol_cv_ndbm+set}" = set; then
34331 echo $ECHO_N "(cached) $ECHO_C" >&6
34334 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
34341 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
34342 echo "${ECHO_T}$ol_cv_ndbm" >&6
34343 if test $ol_cv_ndbm = yes ; then
34345 cat >>confdefs.h <<\_ACEOF
34346 #define HAVE_NDBM 1
34352 if test $ol_cv_ndbm = yes ; then
34354 ol_enable_ldbm_api=ndbm
34356 if test $ol_cv_lib_ndbm != yes ; then
34357 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
34362 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
34363 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
34364 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
34365 { (exit 1); exit 1; }; }
34368 if test $ol_enable_bdb = yes -o \
34369 $ol_enable_hdb = yes -o \
34370 $ol_enable_ldbm = yes ; then
34371 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
34375 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
34376 BUILD_LIBS_DYNAMIC=shared
34378 cat >>confdefs.h <<\_ACEOF
34379 #define LDAP_LIBS_DYNAMIC 1
34384 BUILD_LIBS_DYNAMIC=static
34388 if test $ol_enable_wrappers != no ; then
34390 for ac_header in tcpd.h
34392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34394 echo "$as_me:$LINENO: checking for $ac_header" >&5
34395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34397 echo $ECHO_N "(cached) $ECHO_C" >&6
34399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34402 # Is the header compilable?
34403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34405 cat >conftest.$ac_ext <<_ACEOF
34408 cat confdefs.h >>conftest.$ac_ext
34409 cat >>conftest.$ac_ext <<_ACEOF
34410 /* end confdefs.h. */
34411 $ac_includes_default
34412 #include <$ac_header>
34414 rm -f conftest.$ac_objext
34415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34416 (eval $ac_compile) 2>conftest.er1
34418 grep -v '^ *+' conftest.er1 >conftest.err
34420 cat conftest.err >&5
34421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34422 (exit $ac_status); } &&
34423 { ac_try='test -z "$ac_c_werror_flag"
34424 || test ! -s conftest.err'
34425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34426 (eval $ac_try) 2>&5
34428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34429 (exit $ac_status); }; } &&
34430 { ac_try='test -s conftest.$ac_objext'
34431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34432 (eval $ac_try) 2>&5
34434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34435 (exit $ac_status); }; }; then
34436 ac_header_compiler=yes
34438 echo "$as_me: failed program was:" >&5
34439 sed 's/^/| /' conftest.$ac_ext >&5
34441 ac_header_compiler=no
34443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34445 echo "${ECHO_T}$ac_header_compiler" >&6
34447 # Is the header present?
34448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34450 cat >conftest.$ac_ext <<_ACEOF
34453 cat confdefs.h >>conftest.$ac_ext
34454 cat >>conftest.$ac_ext <<_ACEOF
34455 /* end confdefs.h. */
34456 #include <$ac_header>
34458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34461 grep -v '^ *+' conftest.er1 >conftest.err
34463 cat conftest.err >&5
34464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465 (exit $ac_status); } >/dev/null; then
34466 if test -s conftest.err; then
34467 ac_cpp_err=$ac_c_preproc_warn_flag
34468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34475 if test -z "$ac_cpp_err"; then
34476 ac_header_preproc=yes
34478 echo "$as_me: failed program was:" >&5
34479 sed 's/^/| /' conftest.$ac_ext >&5
34481 ac_header_preproc=no
34483 rm -f conftest.err conftest.$ac_ext
34484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34485 echo "${ECHO_T}$ac_header_preproc" >&6
34487 # So? What about this header?
34488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34494 ac_header_preproc=yes
34497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34511 ## ------------------------------------------ ##
34512 ## Report this to the AC_PACKAGE_NAME lists. ##
34513 ## ------------------------------------------ ##
34516 sed "s/^/$as_me: WARNING: /" >&2
34519 echo "$as_me:$LINENO: checking for $ac_header" >&5
34520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34522 echo $ECHO_N "(cached) $ECHO_C" >&6
34524 eval "$as_ac_Header=\$ac_header_preproc"
34526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34531 cat >>confdefs.h <<_ACEOF
34532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34535 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
34536 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
34538 LIBS="$LIBS -lwrap"
34539 cat >conftest.$ac_ext <<_ACEOF
34542 cat confdefs.h >>conftest.$ac_ext
34543 cat >>conftest.$ac_ext <<_ACEOF
34544 /* end confdefs.h. */
34547 int allow_severity = 0;
34548 int deny_severity = 0;
34550 struct request_info *req;
34562 rm -f conftest.$ac_objext conftest$ac_exeext
34563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34564 (eval $ac_link) 2>conftest.er1
34566 grep -v '^ *+' conftest.er1 >conftest.err
34568 cat conftest.err >&5
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); } &&
34571 { ac_try='test -z "$ac_c_werror_flag"
34572 || test ! -s conftest.err'
34573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34574 (eval $ac_try) 2>&5
34576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34577 (exit $ac_status); }; } &&
34578 { ac_try='test -s conftest$ac_exeext'
34579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34580 (eval $ac_try) 2>&5
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); }; }; then
34584 echo "$as_me:$LINENO: result: -lwrap" >&5
34585 echo "${ECHO_T}-lwrap" >&6
34589 echo "$as_me: failed program was:" >&5
34590 sed 's/^/| /' conftest.$ac_ext >&5
34594 cat >conftest.$ac_ext <<_ACEOF
34597 cat confdefs.h >>conftest.$ac_ext
34598 cat >>conftest.$ac_ext <<_ACEOF
34599 /* end confdefs.h. */
34602 int allow_severity = 0;
34603 int deny_severity = 0;
34605 struct request_info *req;
34617 rm -f conftest.$ac_objext conftest$ac_exeext
34618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34619 (eval $ac_link) 2>conftest.er1
34621 grep -v '^ *+' conftest.er1 >conftest.err
34623 cat conftest.err >&5
34624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34625 (exit $ac_status); } &&
34626 { ac_try='test -z "$ac_c_werror_flag"
34627 || test ! -s conftest.err'
34628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34629 (eval $ac_try) 2>&5
34631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34632 (exit $ac_status); }; } &&
34633 { ac_try='test -s conftest$ac_exeext'
34634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34635 (eval $ac_try) 2>&5
34637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638 (exit $ac_status); }; }; then
34639 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
34640 echo "${ECHO_T}-lwrap -lnsl" >&6
34642 LIBS="$save_LIBS -lnsl"
34644 echo "$as_me: failed program was:" >&5
34645 sed 's/^/| /' conftest.$ac_ext >&5
34648 echo "$as_me:$LINENO: result: no" >&5
34649 echo "${ECHO_T}no" >&6
34653 rm -f conftest.err conftest.$ac_objext \
34654 conftest$ac_exeext conftest.$ac_ext
34656 rm -f conftest.err conftest.$ac_objext \
34657 conftest$ac_exeext conftest.$ac_ext
34665 if test $have_wrappers = yes ; then
34667 cat >>confdefs.h <<\_ACEOF
34668 #define HAVE_TCPD 1
34672 elif test $ol_enable_wrappers = yes ; then
34673 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
34674 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
34675 { (exit 1); exit 1; }; }
34677 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
34678 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
34683 if test $ol_enable_syslog != no ; then
34684 echo "$as_me:$LINENO: checking for openlog" >&5
34685 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
34686 if test "${ac_cv_func_openlog+set}" = set; then
34687 echo $ECHO_N "(cached) $ECHO_C" >&6
34689 cat >conftest.$ac_ext <<_ACEOF
34692 cat confdefs.h >>conftest.$ac_ext
34693 cat >>conftest.$ac_ext <<_ACEOF
34694 /* end confdefs.h. */
34695 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
34696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34697 #define openlog innocuous_openlog
34699 /* System header to define __stub macros and hopefully few prototypes,
34700 which can conflict with char openlog (); below.
34701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34702 <limits.h> exists even on freestanding compilers. */
34705 # include <limits.h>
34707 # include <assert.h>
34712 /* Override any gcc2 internal prototype to avoid an error. */
34717 /* We use char because int might match the return type of a gcc2
34718 builtin and then its argument prototype would still apply. */
34720 /* The GNU C library defines this for functions which it implements
34721 to always fail with ENOSYS. Some functions are actually named
34722 something starting with __ and the normal name is an alias. */
34723 #if defined (__stub_openlog) || defined (__stub___openlog)
34726 char (*f) () = openlog;
34735 return f != openlog;
34740 rm -f conftest.$ac_objext conftest$ac_exeext
34741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34742 (eval $ac_link) 2>conftest.er1
34744 grep -v '^ *+' conftest.er1 >conftest.err
34746 cat conftest.err >&5
34747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34748 (exit $ac_status); } &&
34749 { ac_try='test -z "$ac_c_werror_flag"
34750 || test ! -s conftest.err'
34751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34752 (eval $ac_try) 2>&5
34754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34755 (exit $ac_status); }; } &&
34756 { ac_try='test -s conftest$ac_exeext'
34757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34758 (eval $ac_try) 2>&5
34760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761 (exit $ac_status); }; }; then
34762 ac_cv_func_openlog=yes
34764 echo "$as_me: failed program was:" >&5
34765 sed 's/^/| /' conftest.$ac_ext >&5
34767 ac_cv_func_openlog=no
34769 rm -f conftest.err conftest.$ac_objext \
34770 conftest$ac_exeext conftest.$ac_ext
34772 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
34773 echo "${ECHO_T}$ac_cv_func_openlog" >&6
34775 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
34776 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
34777 echo "$as_me: error: could not find syslog" >&2;}
34778 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
34780 ol_enable_syslog=$ac_cv_func_openlog
34784 if test $ol_enable_sql != no ; then
34787 for ac_header in sql.h sqlext.h
34789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34791 echo "$as_me:$LINENO: checking for $ac_header" >&5
34792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34794 echo $ECHO_N "(cached) $ECHO_C" >&6
34796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34799 # Is the header compilable?
34800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34802 cat >conftest.$ac_ext <<_ACEOF
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h. */
34808 $ac_includes_default
34809 #include <$ac_header>
34811 rm -f conftest.$ac_objext
34812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34813 (eval $ac_compile) 2>conftest.er1
34815 grep -v '^ *+' conftest.er1 >conftest.err
34817 cat conftest.err >&5
34818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34819 (exit $ac_status); } &&
34820 { ac_try='test -z "$ac_c_werror_flag"
34821 || test ! -s conftest.err'
34822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34823 (eval $ac_try) 2>&5
34825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826 (exit $ac_status); }; } &&
34827 { ac_try='test -s conftest.$ac_objext'
34828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34829 (eval $ac_try) 2>&5
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); }; }; then
34833 ac_header_compiler=yes
34835 echo "$as_me: failed program was:" >&5
34836 sed 's/^/| /' conftest.$ac_ext >&5
34838 ac_header_compiler=no
34840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34842 echo "${ECHO_T}$ac_header_compiler" >&6
34844 # Is the header present?
34845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34847 cat >conftest.$ac_ext <<_ACEOF
34850 cat confdefs.h >>conftest.$ac_ext
34851 cat >>conftest.$ac_ext <<_ACEOF
34852 /* end confdefs.h. */
34853 #include <$ac_header>
34855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34858 grep -v '^ *+' conftest.er1 >conftest.err
34860 cat conftest.err >&5
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); } >/dev/null; then
34863 if test -s conftest.err; then
34864 ac_cpp_err=$ac_c_preproc_warn_flag
34865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34872 if test -z "$ac_cpp_err"; then
34873 ac_header_preproc=yes
34875 echo "$as_me: failed program was:" >&5
34876 sed 's/^/| /' conftest.$ac_ext >&5
34878 ac_header_preproc=no
34880 rm -f conftest.err conftest.$ac_ext
34881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34882 echo "${ECHO_T}$ac_header_preproc" >&6
34884 # So? What about this header?
34885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34891 ac_header_preproc=yes
34894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34908 ## ------------------------------------------ ##
34909 ## Report this to the AC_PACKAGE_NAME lists. ##
34910 ## ------------------------------------------ ##
34913 sed "s/^/$as_me: WARNING: /" >&2
34916 echo "$as_me:$LINENO: checking for $ac_header" >&5
34917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34919 echo $ECHO_N "(cached) $ECHO_C" >&6
34921 eval "$as_ac_Header=\$ac_header_preproc"
34923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34928 cat >>confdefs.h <<_ACEOF
34929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34934 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
34935 echo "$as_me: error: could not locate SQL headers" >&2;}
34936 { (exit 1); exit 1; }; }
34944 LIBS="$LTHREAD_LIBS"
34946 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
34947 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
34948 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
34949 echo $ECHO_N "(cached) $ECHO_C" >&6
34951 ac_check_lib_save_LIBS=$LIBS
34952 LIBS="-liodbc $LIBS"
34953 cat >conftest.$ac_ext <<_ACEOF
34956 cat confdefs.h >>conftest.$ac_ext
34957 cat >>conftest.$ac_ext <<_ACEOF
34958 /* end confdefs.h. */
34960 /* Override any gcc2 internal prototype to avoid an error. */
34964 /* We use char because int might match the return type of a gcc2
34965 builtin and then its argument prototype would still apply. */
34966 char SQLDriverConnect ();
34970 SQLDriverConnect ();
34975 rm -f conftest.$ac_objext conftest$ac_exeext
34976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34977 (eval $ac_link) 2>conftest.er1
34979 grep -v '^ *+' conftest.er1 >conftest.err
34981 cat conftest.err >&5
34982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34983 (exit $ac_status); } &&
34984 { ac_try='test -z "$ac_c_werror_flag"
34985 || test ! -s conftest.err'
34986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34987 (eval $ac_try) 2>&5
34989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34990 (exit $ac_status); }; } &&
34991 { ac_try='test -s conftest$ac_exeext'
34992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34993 (eval $ac_try) 2>&5
34995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); }; }; then
34997 ac_cv_lib_iodbc_SQLDriverConnect=yes
34999 echo "$as_me: failed program was:" >&5
35000 sed 's/^/| /' conftest.$ac_ext >&5
35002 ac_cv_lib_iodbc_SQLDriverConnect=no
35004 rm -f conftest.err conftest.$ac_objext \
35005 conftest$ac_exeext conftest.$ac_ext
35006 LIBS=$ac_check_lib_save_LIBS
35008 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
35009 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
35010 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
35016 if test $have_iodbc = yes ; then
35017 ol_link_sql="-liodbc"
35019 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
35020 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
35021 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
35022 echo $ECHO_N "(cached) $ECHO_C" >&6
35024 ac_check_lib_save_LIBS=$LIBS
35025 LIBS="-lodbc $LIBS"
35026 cat >conftest.$ac_ext <<_ACEOF
35029 cat confdefs.h >>conftest.$ac_ext
35030 cat >>conftest.$ac_ext <<_ACEOF
35031 /* end confdefs.h. */
35033 /* Override any gcc2 internal prototype to avoid an error. */
35037 /* We use char because int might match the return type of a gcc2
35038 builtin and then its argument prototype would still apply. */
35039 char SQLDriverConnect ();
35043 SQLDriverConnect ();
35048 rm -f conftest.$ac_objext conftest$ac_exeext
35049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35050 (eval $ac_link) 2>conftest.er1
35052 grep -v '^ *+' conftest.er1 >conftest.err
35054 cat conftest.err >&5
35055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056 (exit $ac_status); } &&
35057 { ac_try='test -z "$ac_c_werror_flag"
35058 || test ! -s conftest.err'
35059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35060 (eval $ac_try) 2>&5
35062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35063 (exit $ac_status); }; } &&
35064 { ac_try='test -s conftest$ac_exeext'
35065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35066 (eval $ac_try) 2>&5
35068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35069 (exit $ac_status); }; }; then
35070 ac_cv_lib_odbc_SQLDriverConnect=yes
35072 echo "$as_me: failed program was:" >&5
35073 sed 's/^/| /' conftest.$ac_ext >&5
35075 ac_cv_lib_odbc_SQLDriverConnect=no
35077 rm -f conftest.err conftest.$ac_objext \
35078 conftest$ac_exeext conftest.$ac_ext
35079 LIBS=$ac_check_lib_save_LIBS
35081 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
35082 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
35083 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
35089 if test $have_odbc = yes ; then
35090 ol_link_sql="-lodbc"
35096 if test $ol_link_sql != no ; then
35097 SLAPD_SQL_LIBS="$ol_link_sql"
35099 elif test $ol_enable_sql != auto ; then
35100 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
35101 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
35102 { (exit 1); exit 1; }; }
35109 if test $ol_with_cyrus_sasl != no ; then
35112 for ac_header in sasl/sasl.h sasl.h
35114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35116 echo "$as_me:$LINENO: checking for $ac_header" >&5
35117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35119 echo $ECHO_N "(cached) $ECHO_C" >&6
35121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35124 # Is the header compilable?
35125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35127 cat >conftest.$ac_ext <<_ACEOF
35130 cat confdefs.h >>conftest.$ac_ext
35131 cat >>conftest.$ac_ext <<_ACEOF
35132 /* end confdefs.h. */
35133 $ac_includes_default
35134 #include <$ac_header>
35136 rm -f conftest.$ac_objext
35137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35138 (eval $ac_compile) 2>conftest.er1
35140 grep -v '^ *+' conftest.er1 >conftest.err
35142 cat conftest.err >&5
35143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35144 (exit $ac_status); } &&
35145 { ac_try='test -z "$ac_c_werror_flag"
35146 || test ! -s conftest.err'
35147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35148 (eval $ac_try) 2>&5
35150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151 (exit $ac_status); }; } &&
35152 { ac_try='test -s conftest.$ac_objext'
35153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35154 (eval $ac_try) 2>&5
35156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157 (exit $ac_status); }; }; then
35158 ac_header_compiler=yes
35160 echo "$as_me: failed program was:" >&5
35161 sed 's/^/| /' conftest.$ac_ext >&5
35163 ac_header_compiler=no
35165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35167 echo "${ECHO_T}$ac_header_compiler" >&6
35169 # Is the header present?
35170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35172 cat >conftest.$ac_ext <<_ACEOF
35175 cat confdefs.h >>conftest.$ac_ext
35176 cat >>conftest.$ac_ext <<_ACEOF
35177 /* end confdefs.h. */
35178 #include <$ac_header>
35180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35183 grep -v '^ *+' conftest.er1 >conftest.err
35185 cat conftest.err >&5
35186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187 (exit $ac_status); } >/dev/null; then
35188 if test -s conftest.err; then
35189 ac_cpp_err=$ac_c_preproc_warn_flag
35190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35197 if test -z "$ac_cpp_err"; then
35198 ac_header_preproc=yes
35200 echo "$as_me: failed program was:" >&5
35201 sed 's/^/| /' conftest.$ac_ext >&5
35203 ac_header_preproc=no
35205 rm -f conftest.err conftest.$ac_ext
35206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35207 echo "${ECHO_T}$ac_header_preproc" >&6
35209 # So? What about this header?
35210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35216 ac_header_preproc=yes
35219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35233 ## ------------------------------------------ ##
35234 ## Report this to the AC_PACKAGE_NAME lists. ##
35235 ## ------------------------------------------ ##
35238 sed "s/^/$as_me: WARNING: /" >&2
35241 echo "$as_me:$LINENO: checking for $ac_header" >&5
35242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35244 echo $ECHO_N "(cached) $ECHO_C" >&6
35246 eval "$as_ac_Header=\$ac_header_preproc"
35248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35253 cat >>confdefs.h <<_ACEOF
35254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35262 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
35263 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
35264 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
35265 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
35266 echo $ECHO_N "(cached) $ECHO_C" >&6
35268 ac_check_lib_save_LIBS=$LIBS
35269 LIBS="-lsasl2 $LIBS"
35270 cat >conftest.$ac_ext <<_ACEOF
35273 cat confdefs.h >>conftest.$ac_ext
35274 cat >>conftest.$ac_ext <<_ACEOF
35275 /* end confdefs.h. */
35277 /* Override any gcc2 internal prototype to avoid an error. */
35281 /* We use char because int might match the return type of a gcc2
35282 builtin and then its argument prototype would still apply. */
35283 char sasl_client_init ();
35287 sasl_client_init ();
35292 rm -f conftest.$ac_objext conftest$ac_exeext
35293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35294 (eval $ac_link) 2>conftest.er1
35296 grep -v '^ *+' conftest.er1 >conftest.err
35298 cat conftest.err >&5
35299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35300 (exit $ac_status); } &&
35301 { ac_try='test -z "$ac_c_werror_flag"
35302 || test ! -s conftest.err'
35303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35304 (eval $ac_try) 2>&5
35306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307 (exit $ac_status); }; } &&
35308 { ac_try='test -s conftest$ac_exeext'
35309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35310 (eval $ac_try) 2>&5
35312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313 (exit $ac_status); }; }; then
35314 ac_cv_lib_sasl2_sasl_client_init=yes
35316 echo "$as_me: failed program was:" >&5
35317 sed 's/^/| /' conftest.$ac_ext >&5
35319 ac_cv_lib_sasl2_sasl_client_init=no
35321 rm -f conftest.err conftest.$ac_objext \
35322 conftest$ac_exeext conftest.$ac_ext
35323 LIBS=$ac_check_lib_save_LIBS
35325 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
35326 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
35327 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
35328 ol_link_sasl="-lsasl2"
35330 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
35331 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
35332 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
35333 echo $ECHO_N "(cached) $ECHO_C" >&6
35335 ac_check_lib_save_LIBS=$LIBS
35336 LIBS="-lsasl $LIBS"
35337 cat >conftest.$ac_ext <<_ACEOF
35340 cat confdefs.h >>conftest.$ac_ext
35341 cat >>conftest.$ac_ext <<_ACEOF
35342 /* end confdefs.h. */
35344 /* Override any gcc2 internal prototype to avoid an error. */
35348 /* We use char because int might match the return type of a gcc2
35349 builtin and then its argument prototype would still apply. */
35350 char sasl_client_init ();
35354 sasl_client_init ();
35359 rm -f conftest.$ac_objext conftest$ac_exeext
35360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35361 (eval $ac_link) 2>conftest.er1
35363 grep -v '^ *+' conftest.er1 >conftest.err
35365 cat conftest.err >&5
35366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35367 (exit $ac_status); } &&
35368 { ac_try='test -z "$ac_c_werror_flag"
35369 || test ! -s conftest.err'
35370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35371 (eval $ac_try) 2>&5
35373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35374 (exit $ac_status); }; } &&
35375 { ac_try='test -s conftest$ac_exeext'
35376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35377 (eval $ac_try) 2>&5
35379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35380 (exit $ac_status); }; }; then
35381 ac_cv_lib_sasl_sasl_client_init=yes
35383 echo "$as_me: failed program was:" >&5
35384 sed 's/^/| /' conftest.$ac_ext >&5
35386 ac_cv_lib_sasl_sasl_client_init=no
35388 rm -f conftest.err conftest.$ac_objext \
35389 conftest$ac_exeext conftest.$ac_ext
35390 LIBS=$ac_check_lib_save_LIBS
35392 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
35393 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
35394 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
35395 ol_link_sasl="-lsasl"
35402 if test $ol_link_sasl = no ; then
35403 if test $ol_with_cyrus_sasl != auto ; then
35404 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
35405 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
35406 { (exit 1); exit 1; }; }
35408 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
35409 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
35410 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35411 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35412 if test $ol_link_tls = no ; then
35413 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35414 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35418 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
35419 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
35420 if test "${ol_cv_sasl_compat+set}" = set; then
35421 echo $ECHO_N "(cached) $ECHO_C" >&6
35424 cat >conftest.$ac_ext <<_ACEOF
35427 cat confdefs.h >>conftest.$ac_ext
35428 cat >>conftest.$ac_ext <<_ACEOF
35429 /* end confdefs.h. */
35431 #ifdef HAVE_SASL_SASL_H
35432 #include <sasl/sasl.h>
35437 /* Require 2.1.15+ */
35438 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
35439 char *__sasl_compat = "2.2+ or better okay (we guess)";
35440 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
35441 && SASL_VERSION_STEP >=15
35442 char *__sasl_compat = "2.1.15+ or better okay";
35446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35447 $EGREP "__sasl_compat" >/dev/null 2>&1; then
35448 ol_cv_sasl_compat=yes
35450 ol_cv_sasl_compat=no
35455 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
35456 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
35458 if test $ol_cv_sasl_compat = no ; then
35460 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
35461 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
35462 { (exit 1); exit 1; }; }
35466 cat >>confdefs.h <<\_ACEOF
35467 #define HAVE_CYRUS_SASL 1
35470 SASL_LIBS="$ol_link_sasl"
35471 if test $ol_enable_spasswd != no ; then
35472 ol_link_spasswd=yes
35475 ac_save_LIBS="$LIBS"
35476 LIBS="$LIBS $ol_link_sasl"
35477 echo "$as_me:$LINENO: checking for sasl_version" >&5
35478 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
35479 if test "${ac_cv_func_sasl_version+set}" = set; then
35480 echo $ECHO_N "(cached) $ECHO_C" >&6
35482 cat >conftest.$ac_ext <<_ACEOF
35485 cat confdefs.h >>conftest.$ac_ext
35486 cat >>conftest.$ac_ext <<_ACEOF
35487 /* end confdefs.h. */
35488 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
35489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35490 #define sasl_version innocuous_sasl_version
35492 /* System header to define __stub macros and hopefully few prototypes,
35493 which can conflict with char sasl_version (); below.
35494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35495 <limits.h> exists even on freestanding compilers. */
35498 # include <limits.h>
35500 # include <assert.h>
35503 #undef sasl_version
35505 /* Override any gcc2 internal prototype to avoid an error. */
35510 /* We use char because int might match the return type of a gcc2
35511 builtin and then its argument prototype would still apply. */
35512 char sasl_version ();
35513 /* The GNU C library defines this for functions which it implements
35514 to always fail with ENOSYS. Some functions are actually named
35515 something starting with __ and the normal name is an alias. */
35516 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
35519 char (*f) () = sasl_version;
35528 return f != sasl_version;
35533 rm -f conftest.$ac_objext conftest$ac_exeext
35534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35535 (eval $ac_link) 2>conftest.er1
35537 grep -v '^ *+' conftest.er1 >conftest.err
35539 cat conftest.err >&5
35540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541 (exit $ac_status); } &&
35542 { ac_try='test -z "$ac_c_werror_flag"
35543 || test ! -s conftest.err'
35544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35545 (eval $ac_try) 2>&5
35547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548 (exit $ac_status); }; } &&
35549 { ac_try='test -s conftest$ac_exeext'
35550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35551 (eval $ac_try) 2>&5
35553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554 (exit $ac_status); }; }; then
35555 ac_cv_func_sasl_version=yes
35557 echo "$as_me: failed program was:" >&5
35558 sed 's/^/| /' conftest.$ac_ext >&5
35560 ac_cv_func_sasl_version=no
35562 rm -f conftest.err conftest.$ac_objext \
35563 conftest$ac_exeext conftest.$ac_ext
35565 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
35566 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
35567 if test $ac_cv_func_sasl_version = yes; then
35569 cat >>confdefs.h <<\_ACEOF
35570 #define HAVE_SASL_VERSION 1
35575 LIBS="$ac_save_LIBS"
35581 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35582 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35583 if test $ol_link_tls = no ; then
35584 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35585 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35589 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
35591 if test -r /dev/urandom ; then
35592 dev="/dev/urandom";
35593 elif test -r /idev/urandom ; then
35594 dev="/idev/urandom";
35595 elif test -r /dev/srandom ; then
35596 dev="/dev/srandom";
35597 elif test -r /dev/random ; then
35599 elif test -r /idev/random ; then
35600 dev="/idev/random";
35603 if test $dev != no ; then
35605 cat >>confdefs.h <<_ACEOF
35606 #define URANDOM_DEVICE "$dev"
35613 if test $ol_with_fetch != no ; then
35615 LIBS="-lfetch -lcom_err $LIBS"
35616 echo "$as_me:$LINENO: checking fetch(3) library" >&5
35617 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
35618 if test "${ol_cv_lib_fetch+set}" = set; then
35619 echo $ECHO_N "(cached) $ECHO_C" >&6
35622 cat >conftest.$ac_ext <<_ACEOF
35625 cat confdefs.h >>conftest.$ac_ext
35626 cat >>conftest.$ac_ext <<_ACEOF
35627 /* end confdefs.h. */
35629 #include <sys/param.h>
35635 struct url *u = fetchParseURL("file:///");
35640 rm -f conftest.$ac_objext conftest$ac_exeext
35641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35642 (eval $ac_link) 2>conftest.er1
35644 grep -v '^ *+' conftest.er1 >conftest.err
35646 cat conftest.err >&5
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); } &&
35649 { ac_try='test -z "$ac_c_werror_flag"
35650 || test ! -s conftest.err'
35651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35652 (eval $ac_try) 2>&5
35654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655 (exit $ac_status); }; } &&
35656 { ac_try='test -s conftest$ac_exeext'
35657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35658 (eval $ac_try) 2>&5
35660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661 (exit $ac_status); }; }; then
35662 ol_cv_lib_fetch=yes
35664 echo "$as_me: failed program was:" >&5
35665 sed 's/^/| /' conftest.$ac_ext >&5
35669 rm -f conftest.err conftest.$ac_objext \
35670 conftest$ac_exeext conftest.$ac_ext
35672 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
35673 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
35675 if test $ol_cv_lib_fetch != no ; then
35676 ol_link_fetch="-lfetch -lcom_err"
35678 cat >>confdefs.h <<\_ACEOF
35679 #define HAVE_FETCH 1
35685 if test $ol_cv_lib_fetch != no ; then
35686 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
35687 ol_link_fetch=freebsd
35689 elif test $ol_with_fetch != auto ; then
35690 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
35691 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
35692 { (exit 1); exit 1; }; }
35696 if test $ol_enable_crypt != no ; then
35698 LIBS="$TLS_LIBS $LIBS"
35700 echo "$as_me:$LINENO: checking for crypt" >&5
35701 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
35702 if test "${ac_cv_func_crypt+set}" = set; then
35703 echo $ECHO_N "(cached) $ECHO_C" >&6
35705 cat >conftest.$ac_ext <<_ACEOF
35708 cat confdefs.h >>conftest.$ac_ext
35709 cat >>conftest.$ac_ext <<_ACEOF
35710 /* end confdefs.h. */
35711 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
35712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35713 #define crypt innocuous_crypt
35715 /* System header to define __stub macros and hopefully few prototypes,
35716 which can conflict with char crypt (); below.
35717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35718 <limits.h> exists even on freestanding compilers. */
35721 # include <limits.h>
35723 # include <assert.h>
35728 /* Override any gcc2 internal prototype to avoid an error. */
35733 /* We use char because int might match the return type of a gcc2
35734 builtin and then its argument prototype would still apply. */
35736 /* The GNU C library defines this for functions which it implements
35737 to always fail with ENOSYS. Some functions are actually named
35738 something starting with __ and the normal name is an alias. */
35739 #if defined (__stub_crypt) || defined (__stub___crypt)
35742 char (*f) () = crypt;
35756 rm -f conftest.$ac_objext conftest$ac_exeext
35757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35758 (eval $ac_link) 2>conftest.er1
35760 grep -v '^ *+' conftest.er1 >conftest.err
35762 cat conftest.err >&5
35763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764 (exit $ac_status); } &&
35765 { ac_try='test -z "$ac_c_werror_flag"
35766 || test ! -s conftest.err'
35767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35768 (eval $ac_try) 2>&5
35770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771 (exit $ac_status); }; } &&
35772 { ac_try='test -s conftest$ac_exeext'
35773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35774 (eval $ac_try) 2>&5
35776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777 (exit $ac_status); }; }; then
35778 ac_cv_func_crypt=yes
35780 echo "$as_me: failed program was:" >&5
35781 sed 's/^/| /' conftest.$ac_ext >&5
35783 ac_cv_func_crypt=no
35785 rm -f conftest.err conftest.$ac_objext \
35786 conftest$ac_exeext conftest.$ac_ext
35788 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
35789 echo "${ECHO_T}$ac_cv_func_crypt" >&6
35790 if test $ac_cv_func_crypt = yes; then
35795 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
35796 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
35797 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
35798 echo $ECHO_N "(cached) $ECHO_C" >&6
35800 ac_check_lib_save_LIBS=$LIBS
35801 LIBS="-lcrypt $LIBS"
35802 cat >conftest.$ac_ext <<_ACEOF
35805 cat confdefs.h >>conftest.$ac_ext
35806 cat >>conftest.$ac_ext <<_ACEOF
35807 /* end confdefs.h. */
35809 /* Override any gcc2 internal prototype to avoid an error. */
35813 /* We use char because int might match the return type of a gcc2
35814 builtin and then its argument prototype would still apply. */
35824 rm -f conftest.$ac_objext conftest$ac_exeext
35825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35826 (eval $ac_link) 2>conftest.er1
35828 grep -v '^ *+' conftest.er1 >conftest.err
35830 cat conftest.err >&5
35831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35832 (exit $ac_status); } &&
35833 { ac_try='test -z "$ac_c_werror_flag"
35834 || test ! -s conftest.err'
35835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35836 (eval $ac_try) 2>&5
35838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35839 (exit $ac_status); }; } &&
35840 { ac_try='test -s conftest$ac_exeext'
35841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35842 (eval $ac_try) 2>&5
35844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845 (exit $ac_status); }; }; then
35846 ac_cv_lib_crypt_crypt=yes
35848 echo "$as_me: failed program was:" >&5
35849 sed 's/^/| /' conftest.$ac_ext >&5
35851 ac_cv_lib_crypt_crypt=no
35853 rm -f conftest.err conftest.$ac_objext \
35854 conftest$ac_exeext conftest.$ac_ext
35855 LIBS=$ac_check_lib_save_LIBS
35857 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
35858 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
35859 if test $ac_cv_lib_crypt_crypt = yes; then
35860 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
35871 if test $have_crypt = yes ; then
35873 cat >>confdefs.h <<\_ACEOF
35874 #define HAVE_CRYPT 1
35878 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
35879 echo "$as_me: WARNING: could not find crypt" >&2;}
35880 if test $ol_enable_crypt = yes ; then
35881 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
35882 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
35883 { (exit 1); exit 1; }; }
35886 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
35887 echo "$as_me: WARNING: disabling crypt support" >&2;}
35892 if test $ol_enable_proctitle != no ; then
35893 echo "$as_me:$LINENO: checking for setproctitle" >&5
35894 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
35895 if test "${ac_cv_func_setproctitle+set}" = set; then
35896 echo $ECHO_N "(cached) $ECHO_C" >&6
35898 cat >conftest.$ac_ext <<_ACEOF
35901 cat confdefs.h >>conftest.$ac_ext
35902 cat >>conftest.$ac_ext <<_ACEOF
35903 /* end confdefs.h. */
35904 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
35905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35906 #define setproctitle innocuous_setproctitle
35908 /* System header to define __stub macros and hopefully few prototypes,
35909 which can conflict with char setproctitle (); below.
35910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35911 <limits.h> exists even on freestanding compilers. */
35914 # include <limits.h>
35916 # include <assert.h>
35919 #undef setproctitle
35921 /* Override any gcc2 internal prototype to avoid an error. */
35926 /* We use char because int might match the return type of a gcc2
35927 builtin and then its argument prototype would still apply. */
35928 char setproctitle ();
35929 /* The GNU C library defines this for functions which it implements
35930 to always fail with ENOSYS. Some functions are actually named
35931 something starting with __ and the normal name is an alias. */
35932 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
35935 char (*f) () = setproctitle;
35944 return f != setproctitle;
35949 rm -f conftest.$ac_objext conftest$ac_exeext
35950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35951 (eval $ac_link) 2>conftest.er1
35953 grep -v '^ *+' conftest.er1 >conftest.err
35955 cat conftest.err >&5
35956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35957 (exit $ac_status); } &&
35958 { ac_try='test -z "$ac_c_werror_flag"
35959 || test ! -s conftest.err'
35960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35961 (eval $ac_try) 2>&5
35963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964 (exit $ac_status); }; } &&
35965 { ac_try='test -s conftest$ac_exeext'
35966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35967 (eval $ac_try) 2>&5
35969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35970 (exit $ac_status); }; }; then
35971 ac_cv_func_setproctitle=yes
35973 echo "$as_me: failed program was:" >&5
35974 sed 's/^/| /' conftest.$ac_ext >&5
35976 ac_cv_func_setproctitle=no
35978 rm -f conftest.err conftest.$ac_objext \
35979 conftest$ac_exeext conftest.$ac_ext
35981 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
35982 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
35983 if test $ac_cv_func_setproctitle = yes; then
35984 have_setproctitle=yes
35987 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
35988 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
35989 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
35990 echo $ECHO_N "(cached) $ECHO_C" >&6
35992 ac_check_lib_save_LIBS=$LIBS
35993 LIBS="-lutil $LIBS"
35994 cat >conftest.$ac_ext <<_ACEOF
35997 cat confdefs.h >>conftest.$ac_ext
35998 cat >>conftest.$ac_ext <<_ACEOF
35999 /* end confdefs.h. */
36001 /* Override any gcc2 internal prototype to avoid an error. */
36005 /* We use char because int might match the return type of a gcc2
36006 builtin and then its argument prototype would still apply. */
36007 char setproctitle ();
36016 rm -f conftest.$ac_objext conftest$ac_exeext
36017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36018 (eval $ac_link) 2>conftest.er1
36020 grep -v '^ *+' conftest.er1 >conftest.err
36022 cat conftest.err >&5
36023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36024 (exit $ac_status); } &&
36025 { ac_try='test -z "$ac_c_werror_flag"
36026 || test ! -s conftest.err'
36027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36028 (eval $ac_try) 2>&5
36030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36031 (exit $ac_status); }; } &&
36032 { ac_try='test -s conftest$ac_exeext'
36033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36034 (eval $ac_try) 2>&5
36036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36037 (exit $ac_status); }; }; then
36038 ac_cv_lib_util_setproctitle=yes
36040 echo "$as_me: failed program was:" >&5
36041 sed 's/^/| /' conftest.$ac_ext >&5
36043 ac_cv_lib_util_setproctitle=no
36045 rm -f conftest.err conftest.$ac_objext \
36046 conftest$ac_exeext conftest.$ac_ext
36047 LIBS=$ac_check_lib_save_LIBS
36049 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
36050 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
36051 if test $ac_cv_lib_util_setproctitle = yes; then
36052 have_setproctitle=yes
36053 LUTIL_LIBS="$LUTIL_LIBS -lutil"
36055 have_setproctitle=no
36057 "setproctitle.$ac_objext" | \
36058 *" setproctitle.$ac_objext" | \
36059 "setproctitle.$ac_objext "* | \
36060 *" setproctitle.$ac_objext "* ) ;;
36061 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
36064 LIBSRCS="$LIBSRCS setproctitle.c"
36070 if test $have_setproctitle = yes ; then
36072 cat >>confdefs.h <<\_ACEOF
36073 #define HAVE_SETPROCTITLE 1
36079 if test $ol_enable_slp != no ; then
36081 for ac_header in slp.h
36083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36085 echo "$as_me:$LINENO: checking for $ac_header" >&5
36086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36088 echo $ECHO_N "(cached) $ECHO_C" >&6
36090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36093 # Is the header compilable?
36094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36096 cat >conftest.$ac_ext <<_ACEOF
36099 cat confdefs.h >>conftest.$ac_ext
36100 cat >>conftest.$ac_ext <<_ACEOF
36101 /* end confdefs.h. */
36102 $ac_includes_default
36103 #include <$ac_header>
36105 rm -f conftest.$ac_objext
36106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36107 (eval $ac_compile) 2>conftest.er1
36109 grep -v '^ *+' conftest.er1 >conftest.err
36111 cat conftest.err >&5
36112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36113 (exit $ac_status); } &&
36114 { ac_try='test -z "$ac_c_werror_flag"
36115 || test ! -s conftest.err'
36116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36117 (eval $ac_try) 2>&5
36119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36120 (exit $ac_status); }; } &&
36121 { ac_try='test -s conftest.$ac_objext'
36122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36123 (eval $ac_try) 2>&5
36125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126 (exit $ac_status); }; }; then
36127 ac_header_compiler=yes
36129 echo "$as_me: failed program was:" >&5
36130 sed 's/^/| /' conftest.$ac_ext >&5
36132 ac_header_compiler=no
36134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36136 echo "${ECHO_T}$ac_header_compiler" >&6
36138 # Is the header present?
36139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36141 cat >conftest.$ac_ext <<_ACEOF
36144 cat confdefs.h >>conftest.$ac_ext
36145 cat >>conftest.$ac_ext <<_ACEOF
36146 /* end confdefs.h. */
36147 #include <$ac_header>
36149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36152 grep -v '^ *+' conftest.er1 >conftest.err
36154 cat conftest.err >&5
36155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36156 (exit $ac_status); } >/dev/null; then
36157 if test -s conftest.err; then
36158 ac_cpp_err=$ac_c_preproc_warn_flag
36159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36166 if test -z "$ac_cpp_err"; then
36167 ac_header_preproc=yes
36169 echo "$as_me: failed program was:" >&5
36170 sed 's/^/| /' conftest.$ac_ext >&5
36172 ac_header_preproc=no
36174 rm -f conftest.err conftest.$ac_ext
36175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36176 echo "${ECHO_T}$ac_header_preproc" >&6
36178 # So? What about this header?
36179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36185 ac_header_preproc=yes
36188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36202 ## ------------------------------------------ ##
36203 ## Report this to the AC_PACKAGE_NAME lists. ##
36204 ## ------------------------------------------ ##
36207 sed "s/^/$as_me: WARNING: /" >&2
36210 echo "$as_me:$LINENO: checking for $ac_header" >&5
36211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36213 echo $ECHO_N "(cached) $ECHO_C" >&6
36215 eval "$as_ac_Header=\$ac_header_preproc"
36217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36222 cat >>confdefs.h <<_ACEOF
36223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36231 if test $ac_cv_header_slp_h = yes ; then
36232 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
36233 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
36234 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
36235 echo $ECHO_N "(cached) $ECHO_C" >&6
36237 ac_check_lib_save_LIBS=$LIBS
36239 cat >conftest.$ac_ext <<_ACEOF
36242 cat confdefs.h >>conftest.$ac_ext
36243 cat >>conftest.$ac_ext <<_ACEOF
36244 /* end confdefs.h. */
36246 /* Override any gcc2 internal prototype to avoid an error. */
36250 /* We use char because int might match the return type of a gcc2
36251 builtin and then its argument prototype would still apply. */
36261 rm -f conftest.$ac_objext conftest$ac_exeext
36262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36263 (eval $ac_link) 2>conftest.er1
36265 grep -v '^ *+' conftest.er1 >conftest.err
36267 cat conftest.err >&5
36268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269 (exit $ac_status); } &&
36270 { ac_try='test -z "$ac_c_werror_flag"
36271 || test ! -s conftest.err'
36272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36273 (eval $ac_try) 2>&5
36275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276 (exit $ac_status); }; } &&
36277 { ac_try='test -s conftest$ac_exeext'
36278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279 (eval $ac_try) 2>&5
36281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282 (exit $ac_status); }; }; then
36283 ac_cv_lib_slp_SLPOpen=yes
36285 echo "$as_me: failed program was:" >&5
36286 sed 's/^/| /' conftest.$ac_ext >&5
36288 ac_cv_lib_slp_SLPOpen=no
36290 rm -f conftest.err conftest.$ac_objext \
36291 conftest$ac_exeext conftest.$ac_ext
36292 LIBS=$ac_check_lib_save_LIBS
36294 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
36295 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
36296 if test $ac_cv_lib_slp_SLPOpen = yes; then
36302 if test $have_slp = yes ; then
36304 cat >>confdefs.h <<\_ACEOF
36308 SLAPD_SLP_LIBS=-lslp
36311 elif test $ol_enable_slp = yes ; then
36312 { { echo "$as_me:$LINENO: error: SLP not found" >&5
36313 echo "$as_me: error: SLP not found" >&2;}
36314 { (exit 1); exit 1; }; }
36318 if test "$ol_with_multiple_precision" != "no" ; then
36324 for ac_header in openssl/bn.h bn.h
36326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36328 echo "$as_me:$LINENO: checking for $ac_header" >&5
36329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36331 echo $ECHO_N "(cached) $ECHO_C" >&6
36333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36336 # Is the header compilable?
36337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36339 cat >conftest.$ac_ext <<_ACEOF
36342 cat confdefs.h >>conftest.$ac_ext
36343 cat >>conftest.$ac_ext <<_ACEOF
36344 /* end confdefs.h. */
36345 $ac_includes_default
36346 #include <$ac_header>
36348 rm -f conftest.$ac_objext
36349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36350 (eval $ac_compile) 2>conftest.er1
36352 grep -v '^ *+' conftest.er1 >conftest.err
36354 cat conftest.err >&5
36355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36356 (exit $ac_status); } &&
36357 { ac_try='test -z "$ac_c_werror_flag"
36358 || test ! -s conftest.err'
36359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36360 (eval $ac_try) 2>&5
36362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363 (exit $ac_status); }; } &&
36364 { ac_try='test -s conftest.$ac_objext'
36365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36366 (eval $ac_try) 2>&5
36368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369 (exit $ac_status); }; }; then
36370 ac_header_compiler=yes
36372 echo "$as_me: failed program was:" >&5
36373 sed 's/^/| /' conftest.$ac_ext >&5
36375 ac_header_compiler=no
36377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36379 echo "${ECHO_T}$ac_header_compiler" >&6
36381 # Is the header present?
36382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36384 cat >conftest.$ac_ext <<_ACEOF
36387 cat confdefs.h >>conftest.$ac_ext
36388 cat >>conftest.$ac_ext <<_ACEOF
36389 /* end confdefs.h. */
36390 #include <$ac_header>
36392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36395 grep -v '^ *+' conftest.er1 >conftest.err
36397 cat conftest.err >&5
36398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36399 (exit $ac_status); } >/dev/null; then
36400 if test -s conftest.err; then
36401 ac_cpp_err=$ac_c_preproc_warn_flag
36402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36409 if test -z "$ac_cpp_err"; then
36410 ac_header_preproc=yes
36412 echo "$as_me: failed program was:" >&5
36413 sed 's/^/| /' conftest.$ac_ext >&5
36415 ac_header_preproc=no
36417 rm -f conftest.err conftest.$ac_ext
36418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36419 echo "${ECHO_T}$ac_header_preproc" >&6
36421 # So? What about this header?
36422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36428 ac_header_preproc=yes
36431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36445 ## ------------------------------------------ ##
36446 ## Report this to the AC_PACKAGE_NAME lists. ##
36447 ## ------------------------------------------ ##
36450 sed "s/^/$as_me: WARNING: /" >&2
36453 echo "$as_me:$LINENO: checking for $ac_header" >&5
36454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36456 echo $ECHO_N "(cached) $ECHO_C" >&6
36458 eval "$as_ac_Header=\$ac_header_preproc"
36460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36465 cat >>confdefs.h <<_ACEOF
36466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36475 for ac_header in openssl/crypto.h crypto.h
36477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36487 # Is the header compilable?
36488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36490 cat >conftest.$ac_ext <<_ACEOF
36493 cat confdefs.h >>conftest.$ac_ext
36494 cat >>conftest.$ac_ext <<_ACEOF
36495 /* end confdefs.h. */
36496 $ac_includes_default
36497 #include <$ac_header>
36499 rm -f conftest.$ac_objext
36500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36501 (eval $ac_compile) 2>conftest.er1
36503 grep -v '^ *+' conftest.er1 >conftest.err
36505 cat conftest.err >&5
36506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507 (exit $ac_status); } &&
36508 { ac_try='test -z "$ac_c_werror_flag"
36509 || test ! -s conftest.err'
36510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36511 (eval $ac_try) 2>&5
36513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36514 (exit $ac_status); }; } &&
36515 { ac_try='test -s conftest.$ac_objext'
36516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36517 (eval $ac_try) 2>&5
36519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520 (exit $ac_status); }; }; then
36521 ac_header_compiler=yes
36523 echo "$as_me: failed program was:" >&5
36524 sed 's/^/| /' conftest.$ac_ext >&5
36526 ac_header_compiler=no
36528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36530 echo "${ECHO_T}$ac_header_compiler" >&6
36532 # Is the header present?
36533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36535 cat >conftest.$ac_ext <<_ACEOF
36538 cat confdefs.h >>conftest.$ac_ext
36539 cat >>conftest.$ac_ext <<_ACEOF
36540 /* end confdefs.h. */
36541 #include <$ac_header>
36543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36546 grep -v '^ *+' conftest.er1 >conftest.err
36548 cat conftest.err >&5
36549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36550 (exit $ac_status); } >/dev/null; then
36551 if test -s conftest.err; then
36552 ac_cpp_err=$ac_c_preproc_warn_flag
36553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36560 if test -z "$ac_cpp_err"; then
36561 ac_header_preproc=yes
36563 echo "$as_me: failed program was:" >&5
36564 sed 's/^/| /' conftest.$ac_ext >&5
36566 ac_header_preproc=no
36568 rm -f conftest.err conftest.$ac_ext
36569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36570 echo "${ECHO_T}$ac_header_preproc" >&6
36572 # So? What about this header?
36573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36579 ac_header_preproc=yes
36582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36596 ## ------------------------------------------ ##
36597 ## Report this to the AC_PACKAGE_NAME lists. ##
36598 ## ------------------------------------------ ##
36601 sed "s/^/$as_me: WARNING: /" >&2
36604 echo "$as_me:$LINENO: checking for $ac_header" >&5
36605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36607 echo $ECHO_N "(cached) $ECHO_C" >&6
36609 eval "$as_ac_Header=\$ac_header_preproc"
36611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36616 cat >>confdefs.h <<_ACEOF
36617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36625 for ac_header in gmp.h
36627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36629 echo "$as_me:$LINENO: checking for $ac_header" >&5
36630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36632 echo $ECHO_N "(cached) $ECHO_C" >&6
36634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36637 # Is the header compilable?
36638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36640 cat >conftest.$ac_ext <<_ACEOF
36643 cat confdefs.h >>conftest.$ac_ext
36644 cat >>conftest.$ac_ext <<_ACEOF
36645 /* end confdefs.h. */
36646 $ac_includes_default
36647 #include <$ac_header>
36649 rm -f conftest.$ac_objext
36650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36651 (eval $ac_compile) 2>conftest.er1
36653 grep -v '^ *+' conftest.er1 >conftest.err
36655 cat conftest.err >&5
36656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657 (exit $ac_status); } &&
36658 { ac_try='test -z "$ac_c_werror_flag"
36659 || test ! -s conftest.err'
36660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36661 (eval $ac_try) 2>&5
36663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664 (exit $ac_status); }; } &&
36665 { ac_try='test -s conftest.$ac_objext'
36666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36667 (eval $ac_try) 2>&5
36669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36670 (exit $ac_status); }; }; then
36671 ac_header_compiler=yes
36673 echo "$as_me: failed program was:" >&5
36674 sed 's/^/| /' conftest.$ac_ext >&5
36676 ac_header_compiler=no
36678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36680 echo "${ECHO_T}$ac_header_compiler" >&6
36682 # Is the header present?
36683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36685 cat >conftest.$ac_ext <<_ACEOF
36688 cat confdefs.h >>conftest.$ac_ext
36689 cat >>conftest.$ac_ext <<_ACEOF
36690 /* end confdefs.h. */
36691 #include <$ac_header>
36693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36696 grep -v '^ *+' conftest.er1 >conftest.err
36698 cat conftest.err >&5
36699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700 (exit $ac_status); } >/dev/null; then
36701 if test -s conftest.err; then
36702 ac_cpp_err=$ac_c_preproc_warn_flag
36703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36710 if test -z "$ac_cpp_err"; then
36711 ac_header_preproc=yes
36713 echo "$as_me: failed program was:" >&5
36714 sed 's/^/| /' conftest.$ac_ext >&5
36716 ac_header_preproc=no
36718 rm -f conftest.err conftest.$ac_ext
36719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36720 echo "${ECHO_T}$ac_header_preproc" >&6
36722 # So? What about this header?
36723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36729 ac_header_preproc=yes
36732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36746 ## ------------------------------------------ ##
36747 ## Report this to the AC_PACKAGE_NAME lists. ##
36748 ## ------------------------------------------ ##
36751 sed "s/^/$as_me: WARNING: /" >&2
36754 echo "$as_me:$LINENO: checking for $ac_header" >&5
36755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36757 echo $ECHO_N "(cached) $ECHO_C" >&6
36759 eval "$as_ac_Header=\$ac_header_preproc"
36761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36766 cat >>confdefs.h <<_ACEOF
36767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36775 if test "$ol_with_tls" = "found" ; then
36777 ol_have_crypto_h=no
36779 if test "$ac_cv_header_openssl_bn_h" = "yes" \
36780 -o "$ac_cv_header_bn_h" = "yes" ; then
36784 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
36785 -o "$ac_cv_header_crypto_h" = "yes" ; then
36786 ol_have_crypto_h=yes
36789 if test "$ol_have_bn_h" = "yes" \
36790 -a "$ol_have_crypto_h" = "yes" ; then
36795 if test $ac_cv_header_gmp_h = yes ; then
36796 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36797 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36798 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36799 echo $ECHO_N "(cached) $ECHO_C" >&6
36801 ac_check_lib_save_LIBS=$LIBS
36803 cat >conftest.$ac_ext <<_ACEOF
36806 cat confdefs.h >>conftest.$ac_ext
36807 cat >>conftest.$ac_ext <<_ACEOF
36808 /* end confdefs.h. */
36810 /* Override any gcc2 internal prototype to avoid an error. */
36814 /* We use char because int might match the return type of a gcc2
36815 builtin and then its argument prototype would still apply. */
36816 char __gmpz_add_ui ();
36825 rm -f conftest.$ac_objext conftest$ac_exeext
36826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36827 (eval $ac_link) 2>conftest.er1
36829 grep -v '^ *+' conftest.er1 >conftest.err
36831 cat conftest.err >&5
36832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36833 (exit $ac_status); } &&
36834 { ac_try='test -z "$ac_c_werror_flag"
36835 || test ! -s conftest.err'
36836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36837 (eval $ac_try) 2>&5
36839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36840 (exit $ac_status); }; } &&
36841 { ac_try='test -s conftest$ac_exeext'
36842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36843 (eval $ac_try) 2>&5
36845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36846 (exit $ac_status); }; }; then
36847 ac_cv_lib_gmp___gmpz_add_ui=yes
36849 echo "$as_me: failed program was:" >&5
36850 sed 's/^/| /' conftest.$ac_ext >&5
36852 ac_cv_lib_gmp___gmpz_add_ui=no
36854 rm -f conftest.err conftest.$ac_objext \
36855 conftest$ac_exeext conftest.$ac_ext
36856 LIBS=$ac_check_lib_save_LIBS
36858 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36859 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36860 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36866 if test $have_gmp = yes ; then
36871 echo "$as_me:$LINENO: checking for multiple precision support" >&5
36872 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
36874 ol_mp_support="none"
36875 case "$ol_with_multiple_precision" in
36877 if test "$ol_have_bignum" = "yes" ; then
36878 ol_mp_support="bignum"
36880 if test "$ol_have_gmp" = "yes" ; then
36881 ol_mp_support="gmp"
36886 if test "$ol_have_bignum" != "yes" ; then
36887 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
36888 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
36889 { (exit 1); exit 1; }; }
36891 ol_mp_support="bignum"
36894 if test "$ol_have_gmp" != "yes" ; then
36895 { { echo "$as_me:$LINENO: error: GMP not available" >&5
36896 echo "$as_me: error: GMP not available" >&2;}
36897 { (exit 1); exit 1; }; }
36899 ol_mp_support="gmp"
36902 if test "$ol_have_bignum" = "yes" ; then
36903 ol_mp_support="bignum"
36904 elif test "$ol_have_gmp" = "yes" ; then
36905 ol_mp_support="gmp"
36907 { { echo "$as_me:$LINENO: error: not available" >&5
36908 echo "$as_me: error: not available" >&2;}
36909 { (exit 1); exit 1; }; }
36914 case "$ol_mp_support" in
36917 cat >>confdefs.h <<\_ACEOF
36918 #define HAVE_BIGNUM 1
36924 cat >>confdefs.h <<\_ACEOF
36928 SLAPD_GMP_LIBS=-lgmp
36934 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
36935 echo "${ECHO_T}$ol_mp_support" >&6
36939 echo "$as_me:$LINENO: checking for mode_t" >&5
36940 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
36941 if test "${ac_cv_type_mode_t+set}" = set; then
36942 echo $ECHO_N "(cached) $ECHO_C" >&6
36944 cat >conftest.$ac_ext <<_ACEOF
36947 cat confdefs.h >>conftest.$ac_ext
36948 cat >>conftest.$ac_ext <<_ACEOF
36949 /* end confdefs.h. */
36950 $ac_includes_default
36956 if (sizeof (mode_t))
36962 rm -f conftest.$ac_objext
36963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36964 (eval $ac_compile) 2>conftest.er1
36966 grep -v '^ *+' conftest.er1 >conftest.err
36968 cat conftest.err >&5
36969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36970 (exit $ac_status); } &&
36971 { ac_try='test -z "$ac_c_werror_flag"
36972 || test ! -s conftest.err'
36973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36974 (eval $ac_try) 2>&5
36976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977 (exit $ac_status); }; } &&
36978 { ac_try='test -s conftest.$ac_objext'
36979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36980 (eval $ac_try) 2>&5
36982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983 (exit $ac_status); }; }; then
36984 ac_cv_type_mode_t=yes
36986 echo "$as_me: failed program was:" >&5
36987 sed 's/^/| /' conftest.$ac_ext >&5
36989 ac_cv_type_mode_t=no
36991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36993 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36994 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
36995 if test $ac_cv_type_mode_t = yes; then
36999 cat >>confdefs.h <<_ACEOF
37005 echo "$as_me:$LINENO: checking for off_t" >&5
37006 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
37007 if test "${ac_cv_type_off_t+set}" = set; then
37008 echo $ECHO_N "(cached) $ECHO_C" >&6
37010 cat >conftest.$ac_ext <<_ACEOF
37013 cat confdefs.h >>conftest.$ac_ext
37014 cat >>conftest.$ac_ext <<_ACEOF
37015 /* end confdefs.h. */
37016 $ac_includes_default
37022 if (sizeof (off_t))
37028 rm -f conftest.$ac_objext
37029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37030 (eval $ac_compile) 2>conftest.er1
37032 grep -v '^ *+' conftest.er1 >conftest.err
37034 cat conftest.err >&5
37035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37036 (exit $ac_status); } &&
37037 { ac_try='test -z "$ac_c_werror_flag"
37038 || test ! -s conftest.err'
37039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37040 (eval $ac_try) 2>&5
37042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); }; } &&
37044 { ac_try='test -s conftest.$ac_objext'
37045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37046 (eval $ac_try) 2>&5
37048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049 (exit $ac_status); }; }; then
37050 ac_cv_type_off_t=yes
37052 echo "$as_me: failed program was:" >&5
37053 sed 's/^/| /' conftest.$ac_ext >&5
37055 ac_cv_type_off_t=no
37057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37059 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
37060 echo "${ECHO_T}$ac_cv_type_off_t" >&6
37061 if test $ac_cv_type_off_t = yes; then
37065 cat >>confdefs.h <<_ACEOF
37071 echo "$as_me:$LINENO: checking for pid_t" >&5
37072 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
37073 if test "${ac_cv_type_pid_t+set}" = set; then
37074 echo $ECHO_N "(cached) $ECHO_C" >&6
37076 cat >conftest.$ac_ext <<_ACEOF
37079 cat confdefs.h >>conftest.$ac_ext
37080 cat >>conftest.$ac_ext <<_ACEOF
37081 /* end confdefs.h. */
37082 $ac_includes_default
37088 if (sizeof (pid_t))
37094 rm -f conftest.$ac_objext
37095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37096 (eval $ac_compile) 2>conftest.er1
37098 grep -v '^ *+' conftest.er1 >conftest.err
37100 cat conftest.err >&5
37101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102 (exit $ac_status); } &&
37103 { ac_try='test -z "$ac_c_werror_flag"
37104 || test ! -s conftest.err'
37105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37106 (eval $ac_try) 2>&5
37108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37109 (exit $ac_status); }; } &&
37110 { ac_try='test -s conftest.$ac_objext'
37111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37112 (eval $ac_try) 2>&5
37114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115 (exit $ac_status); }; }; then
37116 ac_cv_type_pid_t=yes
37118 echo "$as_me: failed program was:" >&5
37119 sed 's/^/| /' conftest.$ac_ext >&5
37121 ac_cv_type_pid_t=no
37123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37125 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37126 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
37127 if test $ac_cv_type_pid_t = yes; then
37131 cat >>confdefs.h <<_ACEOF
37137 echo "$as_me:$LINENO: checking for ssize_t" >&5
37138 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
37139 if test "${ac_cv_type_ssize_t+set}" = set; then
37140 echo $ECHO_N "(cached) $ECHO_C" >&6
37142 cat >conftest.$ac_ext <<_ACEOF
37145 cat confdefs.h >>conftest.$ac_ext
37146 cat >>conftest.$ac_ext <<_ACEOF
37147 /* end confdefs.h. */
37148 $ac_includes_default
37154 if (sizeof (ssize_t))
37160 rm -f conftest.$ac_objext
37161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37162 (eval $ac_compile) 2>conftest.er1
37164 grep -v '^ *+' conftest.er1 >conftest.err
37166 cat conftest.err >&5
37167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37168 (exit $ac_status); } &&
37169 { ac_try='test -z "$ac_c_werror_flag"
37170 || test ! -s conftest.err'
37171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37172 (eval $ac_try) 2>&5
37174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175 (exit $ac_status); }; } &&
37176 { ac_try='test -s conftest.$ac_objext'
37177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37178 (eval $ac_try) 2>&5
37180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181 (exit $ac_status); }; }; then
37182 ac_cv_type_ssize_t=yes
37184 echo "$as_me: failed program was:" >&5
37185 sed 's/^/| /' conftest.$ac_ext >&5
37187 ac_cv_type_ssize_t=no
37189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37191 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37192 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
37193 if test $ac_cv_type_ssize_t = yes; then
37197 cat >>confdefs.h <<_ACEOF
37198 #define ssize_t signed int
37203 echo "$as_me:$LINENO: checking for caddr_t" >&5
37204 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
37205 if test "${ac_cv_type_caddr_t+set}" = set; then
37206 echo $ECHO_N "(cached) $ECHO_C" >&6
37208 cat >conftest.$ac_ext <<_ACEOF
37211 cat confdefs.h >>conftest.$ac_ext
37212 cat >>conftest.$ac_ext <<_ACEOF
37213 /* end confdefs.h. */
37214 $ac_includes_default
37220 if (sizeof (caddr_t))
37226 rm -f conftest.$ac_objext
37227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37228 (eval $ac_compile) 2>conftest.er1
37230 grep -v '^ *+' conftest.er1 >conftest.err
37232 cat conftest.err >&5
37233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234 (exit $ac_status); } &&
37235 { ac_try='test -z "$ac_c_werror_flag"
37236 || test ! -s conftest.err'
37237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37238 (eval $ac_try) 2>&5
37240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241 (exit $ac_status); }; } &&
37242 { ac_try='test -s conftest.$ac_objext'
37243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244 (eval $ac_try) 2>&5
37246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247 (exit $ac_status); }; }; then
37248 ac_cv_type_caddr_t=yes
37250 echo "$as_me: failed program was:" >&5
37251 sed 's/^/| /' conftest.$ac_ext >&5
37253 ac_cv_type_caddr_t=no
37255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37257 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
37258 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
37259 if test $ac_cv_type_caddr_t = yes; then
37263 cat >>confdefs.h <<_ACEOF
37264 #define caddr_t char *
37269 echo "$as_me:$LINENO: checking for size_t" >&5
37270 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
37271 if test "${ac_cv_type_size_t+set}" = set; then
37272 echo $ECHO_N "(cached) $ECHO_C" >&6
37274 cat >conftest.$ac_ext <<_ACEOF
37277 cat confdefs.h >>conftest.$ac_ext
37278 cat >>conftest.$ac_ext <<_ACEOF
37279 /* end confdefs.h. */
37280 $ac_includes_default
37286 if (sizeof (size_t))
37292 rm -f conftest.$ac_objext
37293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37294 (eval $ac_compile) 2>conftest.er1
37296 grep -v '^ *+' conftest.er1 >conftest.err
37298 cat conftest.err >&5
37299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37300 (exit $ac_status); } &&
37301 { ac_try='test -z "$ac_c_werror_flag"
37302 || test ! -s conftest.err'
37303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37304 (eval $ac_try) 2>&5
37306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37307 (exit $ac_status); }; } &&
37308 { ac_try='test -s conftest.$ac_objext'
37309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37310 (eval $ac_try) 2>&5
37312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37313 (exit $ac_status); }; }; then
37314 ac_cv_type_size_t=yes
37316 echo "$as_me: failed program was:" >&5
37317 sed 's/^/| /' conftest.$ac_ext >&5
37319 ac_cv_type_size_t=no
37321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37323 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37324 echo "${ECHO_T}$ac_cv_type_size_t" >&6
37325 if test $ac_cv_type_size_t = yes; then
37329 cat >>confdefs.h <<_ACEOF
37330 #define size_t unsigned
37336 echo "$as_me:$LINENO: checking for long long" >&5
37337 echo $ECHO_N "checking for long long... $ECHO_C" >&6
37338 if test "${ac_cv_type_long_long+set}" = set; then
37339 echo $ECHO_N "(cached) $ECHO_C" >&6
37341 cat >conftest.$ac_ext <<_ACEOF
37344 cat confdefs.h >>conftest.$ac_ext
37345 cat >>conftest.$ac_ext <<_ACEOF
37346 /* end confdefs.h. */
37347 $ac_includes_default
37351 if ((long long *) 0)
37353 if (sizeof (long long))
37359 rm -f conftest.$ac_objext
37360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37361 (eval $ac_compile) 2>conftest.er1
37363 grep -v '^ *+' conftest.er1 >conftest.err
37365 cat conftest.err >&5
37366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37367 (exit $ac_status); } &&
37368 { ac_try='test -z "$ac_c_werror_flag"
37369 || test ! -s conftest.err'
37370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37371 (eval $ac_try) 2>&5
37373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37374 (exit $ac_status); }; } &&
37375 { ac_try='test -s conftest.$ac_objext'
37376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37377 (eval $ac_try) 2>&5
37379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37380 (exit $ac_status); }; }; then
37381 ac_cv_type_long_long=yes
37383 echo "$as_me: failed program was:" >&5
37384 sed 's/^/| /' conftest.$ac_ext >&5
37386 ac_cv_type_long_long=no
37388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37390 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37391 echo "${ECHO_T}$ac_cv_type_long_long" >&6
37392 if test $ac_cv_type_long_long = yes; then
37394 cat >>confdefs.h <<_ACEOF
37395 #define HAVE_LONG_LONG 1
37401 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37402 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
37403 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37404 echo $ECHO_N "(cached) $ECHO_C" >&6
37406 cat >conftest.$ac_ext <<_ACEOF
37409 cat confdefs.h >>conftest.$ac_ext
37410 cat >>conftest.$ac_ext <<_ACEOF
37411 /* end confdefs.h. */
37412 $ac_includes_default
37416 if ((ptrdiff_t *) 0)
37418 if (sizeof (ptrdiff_t))
37424 rm -f conftest.$ac_objext
37425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37426 (eval $ac_compile) 2>conftest.er1
37428 grep -v '^ *+' conftest.er1 >conftest.err
37430 cat conftest.err >&5
37431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37432 (exit $ac_status); } &&
37433 { ac_try='test -z "$ac_c_werror_flag"
37434 || test ! -s conftest.err'
37435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37436 (eval $ac_try) 2>&5
37438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37439 (exit $ac_status); }; } &&
37440 { ac_try='test -s conftest.$ac_objext'
37441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37442 (eval $ac_try) 2>&5
37444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445 (exit $ac_status); }; }; then
37446 ac_cv_type_ptrdiff_t=yes
37448 echo "$as_me: failed program was:" >&5
37449 sed 's/^/| /' conftest.$ac_ext >&5
37451 ac_cv_type_ptrdiff_t=no
37453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37455 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37456 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
37457 if test $ac_cv_type_ptrdiff_t = yes; then
37459 cat >>confdefs.h <<_ACEOF
37460 #define HAVE_PTRDIFF_T 1
37467 echo "$as_me:$LINENO: checking for socklen_t" >&5
37468 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
37469 if test "${ac_cv_type_socklen_t+set}" = set; then
37470 echo $ECHO_N "(cached) $ECHO_C" >&6
37472 cat >conftest.$ac_ext <<_ACEOF
37475 cat confdefs.h >>conftest.$ac_ext
37476 cat >>conftest.$ac_ext <<_ACEOF
37477 /* end confdefs.h. */
37478 $ac_includes_default
37479 #ifdef HAVE_SYS_SOCKET_H
37480 #include <sys/socket.h>
37487 if ((socklen_t *) 0)
37489 if (sizeof (socklen_t))
37495 rm -f conftest.$ac_objext
37496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37497 (eval $ac_compile) 2>conftest.er1
37499 grep -v '^ *+' conftest.er1 >conftest.err
37501 cat conftest.err >&5
37502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37503 (exit $ac_status); } &&
37504 { ac_try='test -z "$ac_c_werror_flag"
37505 || test ! -s conftest.err'
37506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37507 (eval $ac_try) 2>&5
37509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37510 (exit $ac_status); }; } &&
37511 { ac_try='test -s conftest.$ac_objext'
37512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37513 (eval $ac_try) 2>&5
37515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37516 (exit $ac_status); }; }; then
37517 ac_cv_type_socklen_t=yes
37519 echo "$as_me: failed program was:" >&5
37520 sed 's/^/| /' conftest.$ac_ext >&5
37522 ac_cv_type_socklen_t=no
37524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37526 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37527 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
37528 if test $ac_cv_type_socklen_t = yes; then
37532 cat >>confdefs.h <<_ACEOF
37533 #define socklen_t int
37539 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37540 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
37541 if test "${ac_cv_type_signal+set}" = set; then
37542 echo $ECHO_N "(cached) $ECHO_C" >&6
37544 cat >conftest.$ac_ext <<_ACEOF
37547 cat confdefs.h >>conftest.$ac_ext
37548 cat >>conftest.$ac_ext <<_ACEOF
37549 /* end confdefs.h. */
37550 #include <sys/types.h>
37551 #include <signal.h>
37556 extern "C" void (*signal (int, void (*)(int)))(int);
37558 void (*signal ()) ();
37569 rm -f conftest.$ac_objext
37570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37571 (eval $ac_compile) 2>conftest.er1
37573 grep -v '^ *+' conftest.er1 >conftest.err
37575 cat conftest.err >&5
37576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37577 (exit $ac_status); } &&
37578 { ac_try='test -z "$ac_c_werror_flag"
37579 || test ! -s conftest.err'
37580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37581 (eval $ac_try) 2>&5
37583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37584 (exit $ac_status); }; } &&
37585 { ac_try='test -s conftest.$ac_objext'
37586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37587 (eval $ac_try) 2>&5
37589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590 (exit $ac_status); }; }; then
37591 ac_cv_type_signal=void
37593 echo "$as_me: failed program was:" >&5
37594 sed 's/^/| /' conftest.$ac_ext >&5
37596 ac_cv_type_signal=int
37598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37600 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37601 echo "${ECHO_T}$ac_cv_type_signal" >&6
37603 cat >>confdefs.h <<_ACEOF
37604 #define RETSIGTYPE $ac_cv_type_signal
37609 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
37610 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
37611 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
37612 echo $ECHO_N "(cached) $ECHO_C" >&6
37614 cat >conftest.$ac_ext <<_ACEOF
37617 cat confdefs.h >>conftest.$ac_ext
37618 cat >>conftest.$ac_ext <<_ACEOF
37619 /* end confdefs.h. */
37620 $ac_includes_default
37621 #include <signal.h>
37627 if ((sig_atomic_t *) 0)
37629 if (sizeof (sig_atomic_t))
37635 rm -f conftest.$ac_objext
37636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37637 (eval $ac_compile) 2>conftest.er1
37639 grep -v '^ *+' conftest.er1 >conftest.err
37641 cat conftest.err >&5
37642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643 (exit $ac_status); } &&
37644 { ac_try='test -z "$ac_c_werror_flag"
37645 || test ! -s conftest.err'
37646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37647 (eval $ac_try) 2>&5
37649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650 (exit $ac_status); }; } &&
37651 { ac_try='test -s conftest.$ac_objext'
37652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37653 (eval $ac_try) 2>&5
37655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656 (exit $ac_status); }; }; then
37657 ac_cv_type_sig_atomic_t=yes
37659 echo "$as_me: failed program was:" >&5
37660 sed 's/^/| /' conftest.$ac_ext >&5
37662 ac_cv_type_sig_atomic_t=no
37664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37666 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
37667 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
37668 if test $ac_cv_type_sig_atomic_t = yes; then
37672 cat >>confdefs.h <<_ACEOF
37673 #define sig_atomic_t int
37679 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37680 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
37681 if test "${ac_cv_type_uid_t+set}" = set; then
37682 echo $ECHO_N "(cached) $ECHO_C" >&6
37684 cat >conftest.$ac_ext <<_ACEOF
37687 cat confdefs.h >>conftest.$ac_ext
37688 cat >>conftest.$ac_ext <<_ACEOF
37689 /* end confdefs.h. */
37690 #include <sys/types.h>
37693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37694 $EGREP "uid_t" >/dev/null 2>&1; then
37695 ac_cv_type_uid_t=yes
37697 ac_cv_type_uid_t=no
37702 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37703 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
37704 if test $ac_cv_type_uid_t = no; then
37706 cat >>confdefs.h <<\_ACEOF
37711 cat >>confdefs.h <<\_ACEOF
37718 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37719 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
37720 if test "${ac_cv_header_time+set}" = set; then
37721 echo $ECHO_N "(cached) $ECHO_C" >&6
37723 cat >conftest.$ac_ext <<_ACEOF
37726 cat confdefs.h >>conftest.$ac_ext
37727 cat >>conftest.$ac_ext <<_ACEOF
37728 /* end confdefs.h. */
37729 #include <sys/types.h>
37730 #include <sys/time.h>
37736 if ((struct tm *) 0)
37742 rm -f conftest.$ac_objext
37743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37744 (eval $ac_compile) 2>conftest.er1
37746 grep -v '^ *+' conftest.er1 >conftest.err
37748 cat conftest.err >&5
37749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37750 (exit $ac_status); } &&
37751 { ac_try='test -z "$ac_c_werror_flag"
37752 || test ! -s conftest.err'
37753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37754 (eval $ac_try) 2>&5
37756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37757 (exit $ac_status); }; } &&
37758 { ac_try='test -s conftest.$ac_objext'
37759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37760 (eval $ac_try) 2>&5
37762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37763 (exit $ac_status); }; }; then
37764 ac_cv_header_time=yes
37766 echo "$as_me: failed program was:" >&5
37767 sed 's/^/| /' conftest.$ac_ext >&5
37769 ac_cv_header_time=no
37771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37773 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37774 echo "${ECHO_T}$ac_cv_header_time" >&6
37775 if test $ac_cv_header_time = yes; then
37777 cat >>confdefs.h <<\_ACEOF
37778 #define TIME_WITH_SYS_TIME 1
37783 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
37784 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
37785 if test "${ac_cv_struct_tm+set}" = set; then
37786 echo $ECHO_N "(cached) $ECHO_C" >&6
37788 cat >conftest.$ac_ext <<_ACEOF
37791 cat confdefs.h >>conftest.$ac_ext
37792 cat >>conftest.$ac_ext <<_ACEOF
37793 /* end confdefs.h. */
37794 #include <sys/types.h>
37800 struct tm *tp; tp->tm_sec;
37805 rm -f conftest.$ac_objext
37806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37807 (eval $ac_compile) 2>conftest.er1
37809 grep -v '^ *+' conftest.er1 >conftest.err
37811 cat conftest.err >&5
37812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813 (exit $ac_status); } &&
37814 { ac_try='test -z "$ac_c_werror_flag"
37815 || test ! -s conftest.err'
37816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37817 (eval $ac_try) 2>&5
37819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820 (exit $ac_status); }; } &&
37821 { ac_try='test -s conftest.$ac_objext'
37822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37823 (eval $ac_try) 2>&5
37825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37826 (exit $ac_status); }; }; then
37827 ac_cv_struct_tm=time.h
37829 echo "$as_me: failed program was:" >&5
37830 sed 's/^/| /' conftest.$ac_ext >&5
37832 ac_cv_struct_tm=sys/time.h
37834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37836 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37837 echo "${ECHO_T}$ac_cv_struct_tm" >&6
37838 if test $ac_cv_struct_tm = sys/time.h; then
37840 cat >>confdefs.h <<\_ACEOF
37841 #define TM_IN_SYS_TIME 1
37846 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37847 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
37848 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37849 echo $ECHO_N "(cached) $ECHO_C" >&6
37851 cat >conftest.$ac_ext <<_ACEOF
37854 cat confdefs.h >>conftest.$ac_ext
37855 cat >>conftest.$ac_ext <<_ACEOF
37856 /* end confdefs.h. */
37857 $ac_includes_default
37861 static struct stat ac_aggr;
37862 if (ac_aggr.st_blksize)
37868 rm -f conftest.$ac_objext
37869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37870 (eval $ac_compile) 2>conftest.er1
37872 grep -v '^ *+' conftest.er1 >conftest.err
37874 cat conftest.err >&5
37875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876 (exit $ac_status); } &&
37877 { ac_try='test -z "$ac_c_werror_flag"
37878 || test ! -s conftest.err'
37879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37880 (eval $ac_try) 2>&5
37882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883 (exit $ac_status); }; } &&
37884 { ac_try='test -s conftest.$ac_objext'
37885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37886 (eval $ac_try) 2>&5
37888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889 (exit $ac_status); }; }; then
37890 ac_cv_member_struct_stat_st_blksize=yes
37892 echo "$as_me: failed program was:" >&5
37893 sed 's/^/| /' conftest.$ac_ext >&5
37895 cat >conftest.$ac_ext <<_ACEOF
37898 cat confdefs.h >>conftest.$ac_ext
37899 cat >>conftest.$ac_ext <<_ACEOF
37900 /* end confdefs.h. */
37901 $ac_includes_default
37905 static struct stat ac_aggr;
37906 if (sizeof ac_aggr.st_blksize)
37912 rm -f conftest.$ac_objext
37913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37914 (eval $ac_compile) 2>conftest.er1
37916 grep -v '^ *+' conftest.er1 >conftest.err
37918 cat conftest.err >&5
37919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920 (exit $ac_status); } &&
37921 { ac_try='test -z "$ac_c_werror_flag"
37922 || test ! -s conftest.err'
37923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37924 (eval $ac_try) 2>&5
37926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927 (exit $ac_status); }; } &&
37928 { ac_try='test -s conftest.$ac_objext'
37929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37930 (eval $ac_try) 2>&5
37932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37933 (exit $ac_status); }; }; then
37934 ac_cv_member_struct_stat_st_blksize=yes
37936 echo "$as_me: failed program was:" >&5
37937 sed 's/^/| /' conftest.$ac_ext >&5
37939 ac_cv_member_struct_stat_st_blksize=no
37941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37945 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37946 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
37947 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37949 cat >>confdefs.h <<_ACEOF
37950 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37956 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
37957 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
37958 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
37959 echo $ECHO_N "(cached) $ECHO_C" >&6
37961 cat >conftest.$ac_ext <<_ACEOF
37964 cat confdefs.h >>conftest.$ac_ext
37965 cat >>conftest.$ac_ext <<_ACEOF
37966 /* end confdefs.h. */
37967 $ac_includes_default
37973 static struct passwd ac_aggr;
37974 if (ac_aggr.pw_gecos)
37980 rm -f conftest.$ac_objext
37981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37982 (eval $ac_compile) 2>conftest.er1
37984 grep -v '^ *+' conftest.er1 >conftest.err
37986 cat conftest.err >&5
37987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37988 (exit $ac_status); } &&
37989 { ac_try='test -z "$ac_c_werror_flag"
37990 || test ! -s conftest.err'
37991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37992 (eval $ac_try) 2>&5
37994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995 (exit $ac_status); }; } &&
37996 { ac_try='test -s conftest.$ac_objext'
37997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37998 (eval $ac_try) 2>&5
38000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38001 (exit $ac_status); }; }; then
38002 ac_cv_member_struct_passwd_pw_gecos=yes
38004 echo "$as_me: failed program was:" >&5
38005 sed 's/^/| /' conftest.$ac_ext >&5
38007 cat >conftest.$ac_ext <<_ACEOF
38010 cat confdefs.h >>conftest.$ac_ext
38011 cat >>conftest.$ac_ext <<_ACEOF
38012 /* end confdefs.h. */
38013 $ac_includes_default
38019 static struct passwd ac_aggr;
38020 if (sizeof ac_aggr.pw_gecos)
38026 rm -f conftest.$ac_objext
38027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38028 (eval $ac_compile) 2>conftest.er1
38030 grep -v '^ *+' conftest.er1 >conftest.err
38032 cat conftest.err >&5
38033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38034 (exit $ac_status); } &&
38035 { ac_try='test -z "$ac_c_werror_flag"
38036 || test ! -s conftest.err'
38037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38038 (eval $ac_try) 2>&5
38040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041 (exit $ac_status); }; } &&
38042 { ac_try='test -s conftest.$ac_objext'
38043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38044 (eval $ac_try) 2>&5
38046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38047 (exit $ac_status); }; }; then
38048 ac_cv_member_struct_passwd_pw_gecos=yes
38050 echo "$as_me: failed program was:" >&5
38051 sed 's/^/| /' conftest.$ac_ext >&5
38053 ac_cv_member_struct_passwd_pw_gecos=no
38055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38059 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
38060 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
38061 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
38063 cat >>confdefs.h <<_ACEOF
38064 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
38070 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
38071 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
38072 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
38073 echo $ECHO_N "(cached) $ECHO_C" >&6
38075 cat >conftest.$ac_ext <<_ACEOF
38078 cat confdefs.h >>conftest.$ac_ext
38079 cat >>conftest.$ac_ext <<_ACEOF
38080 /* end confdefs.h. */
38081 $ac_includes_default
38087 static struct passwd ac_aggr;
38088 if (ac_aggr.pw_passwd)
38094 rm -f conftest.$ac_objext
38095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38096 (eval $ac_compile) 2>conftest.er1
38098 grep -v '^ *+' conftest.er1 >conftest.err
38100 cat conftest.err >&5
38101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38102 (exit $ac_status); } &&
38103 { ac_try='test -z "$ac_c_werror_flag"
38104 || test ! -s conftest.err'
38105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38106 (eval $ac_try) 2>&5
38108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38109 (exit $ac_status); }; } &&
38110 { ac_try='test -s conftest.$ac_objext'
38111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38112 (eval $ac_try) 2>&5
38114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115 (exit $ac_status); }; }; then
38116 ac_cv_member_struct_passwd_pw_passwd=yes
38118 echo "$as_me: failed program was:" >&5
38119 sed 's/^/| /' conftest.$ac_ext >&5
38121 cat >conftest.$ac_ext <<_ACEOF
38124 cat confdefs.h >>conftest.$ac_ext
38125 cat >>conftest.$ac_ext <<_ACEOF
38126 /* end confdefs.h. */
38127 $ac_includes_default
38133 static struct passwd ac_aggr;
38134 if (sizeof ac_aggr.pw_passwd)
38140 rm -f conftest.$ac_objext
38141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38142 (eval $ac_compile) 2>conftest.er1
38144 grep -v '^ *+' conftest.er1 >conftest.err
38146 cat conftest.err >&5
38147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38148 (exit $ac_status); } &&
38149 { ac_try='test -z "$ac_c_werror_flag"
38150 || test ! -s conftest.err'
38151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38152 (eval $ac_try) 2>&5
38154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155 (exit $ac_status); }; } &&
38156 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
38162 ac_cv_member_struct_passwd_pw_passwd=yes
38164 echo "$as_me: failed program was:" >&5
38165 sed 's/^/| /' conftest.$ac_ext >&5
38167 ac_cv_member_struct_passwd_pw_passwd=no
38169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38173 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
38174 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
38175 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
38177 cat >>confdefs.h <<_ACEOF
38178 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
38185 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
38186 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
38187 if test "${ol_cv_c_upper_lower+set}" = set; then
38188 echo $ECHO_N "(cached) $ECHO_C" >&6
38191 if test "$cross_compiling" = yes; then
38192 ol_cv_c_upper_lower=safe
38194 cat >conftest.$ac_ext <<_ACEOF
38197 cat confdefs.h >>conftest.$ac_ext
38198 cat >>conftest.$ac_ext <<_ACEOF
38199 /* end confdefs.h. */
38204 if ('C' == toupper('C'))
38210 rm -f conftest$ac_exeext
38211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38212 (eval $ac_link) 2>&5
38214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38217 (eval $ac_try) 2>&5
38219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38220 (exit $ac_status); }; }; then
38221 ol_cv_c_upper_lower=no
38223 echo "$as_me: program exited with status $ac_status" >&5
38224 echo "$as_me: failed program was:" >&5
38225 sed 's/^/| /' conftest.$ac_ext >&5
38227 ( exit $ac_status )
38228 ol_cv_c_upper_lower=yes
38230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38233 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
38234 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
38235 if test $ol_cv_c_upper_lower != no ; then
38237 cat >>confdefs.h <<\_ACEOF
38238 #define C_UPPER_LOWER 1
38243 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38244 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
38245 if test "${ac_cv_c_const+set}" = set; then
38246 echo $ECHO_N "(cached) $ECHO_C" >&6
38248 cat >conftest.$ac_ext <<_ACEOF
38251 cat confdefs.h >>conftest.$ac_ext
38252 cat >>conftest.$ac_ext <<_ACEOF
38253 /* end confdefs.h. */
38258 /* FIXME: Include the comments suggested by Paul. */
38259 #ifndef __cplusplus
38260 /* Ultrix mips cc rejects this. */
38261 typedef int charset[2];
38263 /* SunOS 4.1.1 cc rejects this. */
38264 char const *const *ccp;
38266 /* NEC SVR4.0.2 mips cc rejects this. */
38267 struct point {int x, y;};
38268 static struct point const zero = {0,0};
38269 /* AIX XL C 1.02.0.0 rejects this.
38270 It does not let you subtract one const X* pointer from another in
38271 an arm of an if-expression whose if-part is not a constant
38273 const char *g = "string";
38274 ccp = &g + (g ? g-g : 0);
38275 /* HPUX 7.0 cc rejects these. */
38278 ccp = (char const *const *) p;
38279 { /* SCO 3.2v4 cc rejects this. */
38281 char const *s = 0 ? (char *) 0 : (char const *) 0;
38285 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
38286 int x[] = {25, 17};
38287 const int *foo = &x[0];
38290 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38291 typedef const int *iptr;
38295 { /* AIX XL C 1.02.0.0 rejects this saying
38296 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38297 struct s { int j; const int *ap[3]; };
38298 struct s *b; b->j = 5;
38300 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38301 const int foo = 10;
38309 rm -f conftest.$ac_objext
38310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38311 (eval $ac_compile) 2>conftest.er1
38313 grep -v '^ *+' conftest.er1 >conftest.err
38315 cat conftest.err >&5
38316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38317 (exit $ac_status); } &&
38318 { ac_try='test -z "$ac_c_werror_flag"
38319 || test ! -s conftest.err'
38320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38321 (eval $ac_try) 2>&5
38323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38324 (exit $ac_status); }; } &&
38325 { ac_try='test -s conftest.$ac_objext'
38326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38327 (eval $ac_try) 2>&5
38329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38330 (exit $ac_status); }; }; then
38333 echo "$as_me: failed program was:" >&5
38334 sed 's/^/| /' conftest.$ac_ext >&5
38338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38340 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38341 echo "${ECHO_T}$ac_cv_c_const" >&6
38342 if test $ac_cv_c_const = no; then
38344 cat >>confdefs.h <<\_ACEOF
38350 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
38351 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
38352 if test "${ol_cv_c_volatile+set}" = set; then
38353 echo $ECHO_N "(cached) $ECHO_C" >&6
38355 cat >conftest.$ac_ext <<_ACEOF
38358 cat confdefs.h >>conftest.$ac_ext
38359 cat >>conftest.$ac_ext <<_ACEOF
38360 /* end confdefs.h. */
38365 volatile int a; int * volatile b = x ? &y : &z;
38366 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
38372 rm -f conftest.$ac_objext
38373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38374 (eval $ac_compile) 2>conftest.er1
38376 grep -v '^ *+' conftest.er1 >conftest.err
38378 cat conftest.err >&5
38379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380 (exit $ac_status); } &&
38381 { ac_try='test -z "$ac_c_werror_flag"
38382 || test ! -s conftest.err'
38383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38384 (eval $ac_try) 2>&5
38386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38387 (exit $ac_status); }; } &&
38388 { ac_try='test -s conftest.$ac_objext'
38389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38390 (eval $ac_try) 2>&5
38392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393 (exit $ac_status); }; }; then
38394 ol_cv_c_volatile=yes
38396 echo "$as_me: failed program was:" >&5
38397 sed 's/^/| /' conftest.$ac_ext >&5
38399 ol_cv_c_volatile=no
38401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38403 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
38404 echo "${ECHO_T}$ol_cv_c_volatile" >&6
38405 if test $ol_cv_c_volatile = yes; then
38409 cat >>confdefs.h <<\_ACEOF
38416 if test $cross_compiling = yes ; then
38417 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
38418 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
38420 cat >>confdefs.h <<\_ACEOF
38421 #define CROSS_COMPILING 1
38425 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
38426 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
38427 if test "${ac_cv_c_bigendian+set}" = set; then
38428 echo $ECHO_N "(cached) $ECHO_C" >&6
38430 # See if sys/param.h defines the BYTE_ORDER macro.
38431 cat >conftest.$ac_ext <<_ACEOF
38434 cat confdefs.h >>conftest.$ac_ext
38435 cat >>conftest.$ac_ext <<_ACEOF
38436 /* end confdefs.h. */
38437 #include <sys/types.h>
38438 #include <sys/param.h>
38443 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
38444 bogus endian macros
38451 rm -f conftest.$ac_objext
38452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38453 (eval $ac_compile) 2>conftest.er1
38455 grep -v '^ *+' conftest.er1 >conftest.err
38457 cat conftest.err >&5
38458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459 (exit $ac_status); } &&
38460 { ac_try='test -z "$ac_c_werror_flag"
38461 || test ! -s conftest.err'
38462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38463 (eval $ac_try) 2>&5
38465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466 (exit $ac_status); }; } &&
38467 { ac_try='test -s conftest.$ac_objext'
38468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38469 (eval $ac_try) 2>&5
38471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38472 (exit $ac_status); }; }; then
38473 # It does; now see whether it defined to BIG_ENDIAN or not.
38474 cat >conftest.$ac_ext <<_ACEOF
38477 cat confdefs.h >>conftest.$ac_ext
38478 cat >>conftest.$ac_ext <<_ACEOF
38479 /* end confdefs.h. */
38480 #include <sys/types.h>
38481 #include <sys/param.h>
38486 #if BYTE_ORDER != BIG_ENDIAN
38494 rm -f conftest.$ac_objext
38495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38496 (eval $ac_compile) 2>conftest.er1
38498 grep -v '^ *+' conftest.er1 >conftest.err
38500 cat conftest.err >&5
38501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38502 (exit $ac_status); } &&
38503 { ac_try='test -z "$ac_c_werror_flag"
38504 || test ! -s conftest.err'
38505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38506 (eval $ac_try) 2>&5
38508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38509 (exit $ac_status); }; } &&
38510 { ac_try='test -s conftest.$ac_objext'
38511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38512 (eval $ac_try) 2>&5
38514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38515 (exit $ac_status); }; }; then
38516 ac_cv_c_bigendian=yes
38518 echo "$as_me: failed program was:" >&5
38519 sed 's/^/| /' conftest.$ac_ext >&5
38521 ac_cv_c_bigendian=no
38523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38525 echo "$as_me: failed program was:" >&5
38526 sed 's/^/| /' conftest.$ac_ext >&5
38528 # It does not; compile a test program.
38529 if test "$cross_compiling" = yes; then
38530 # try to guess the endianness by grepping values into an object file
38531 ac_cv_c_bigendian=unknown
38532 cat >conftest.$ac_ext <<_ACEOF
38535 cat confdefs.h >>conftest.$ac_ext
38536 cat >>conftest.$ac_ext <<_ACEOF
38537 /* end confdefs.h. */
38538 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38539 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38540 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
38541 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38542 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38543 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
38547 _ascii (); _ebcdic ();
38552 rm -f conftest.$ac_objext
38553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38554 (eval $ac_compile) 2>conftest.er1
38556 grep -v '^ *+' conftest.er1 >conftest.err
38558 cat conftest.err >&5
38559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38560 (exit $ac_status); } &&
38561 { ac_try='test -z "$ac_c_werror_flag"
38562 || test ! -s conftest.err'
38563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38564 (eval $ac_try) 2>&5
38566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38567 (exit $ac_status); }; } &&
38568 { ac_try='test -s conftest.$ac_objext'
38569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38570 (eval $ac_try) 2>&5
38572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38573 (exit $ac_status); }; }; then
38574 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
38575 ac_cv_c_bigendian=yes
38577 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38578 if test "$ac_cv_c_bigendian" = unknown; then
38579 ac_cv_c_bigendian=no
38581 # finding both strings is unlikely to happen, but who knows?
38582 ac_cv_c_bigendian=unknown
38586 echo "$as_me: failed program was:" >&5
38587 sed 's/^/| /' conftest.$ac_ext >&5
38590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38592 cat >conftest.$ac_ext <<_ACEOF
38595 cat confdefs.h >>conftest.$ac_ext
38596 cat >>conftest.$ac_ext <<_ACEOF
38597 /* end confdefs.h. */
38601 /* Are we little or big endian? From Harbison&Steele. */
38605 char c[sizeof (long)];
38608 exit (u.c[sizeof (long) - 1] == 1);
38611 rm -f conftest$ac_exeext
38612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38613 (eval $ac_link) 2>&5
38615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38618 (eval $ac_try) 2>&5
38620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38621 (exit $ac_status); }; }; then
38622 ac_cv_c_bigendian=no
38624 echo "$as_me: program exited with status $ac_status" >&5
38625 echo "$as_me: failed program was:" >&5
38626 sed 's/^/| /' conftest.$ac_ext >&5
38628 ( exit $ac_status )
38629 ac_cv_c_bigendian=yes
38631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38636 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
38637 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
38638 case $ac_cv_c_bigendian in
38641 cat >>confdefs.h <<\_ACEOF
38642 #define WORDS_BIGENDIAN 1
38648 { { echo "$as_me:$LINENO: error: unknown endianness
38649 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
38650 echo "$as_me: error: unknown endianness
38651 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
38652 { (exit 1); exit 1; }; } ;;
38657 echo "$as_me:$LINENO: checking for short" >&5
38658 echo $ECHO_N "checking for short... $ECHO_C" >&6
38659 if test "${ac_cv_type_short+set}" = set; then
38660 echo $ECHO_N "(cached) $ECHO_C" >&6
38662 cat >conftest.$ac_ext <<_ACEOF
38665 cat confdefs.h >>conftest.$ac_ext
38666 cat >>conftest.$ac_ext <<_ACEOF
38667 /* end confdefs.h. */
38668 $ac_includes_default
38674 if (sizeof (short))
38680 rm -f conftest.$ac_objext
38681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38682 (eval $ac_compile) 2>conftest.er1
38684 grep -v '^ *+' conftest.er1 >conftest.err
38686 cat conftest.err >&5
38687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38688 (exit $ac_status); } &&
38689 { ac_try='test -z "$ac_c_werror_flag"
38690 || test ! -s conftest.err'
38691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38692 (eval $ac_try) 2>&5
38694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38695 (exit $ac_status); }; } &&
38696 { ac_try='test -s conftest.$ac_objext'
38697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38698 (eval $ac_try) 2>&5
38700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38701 (exit $ac_status); }; }; then
38702 ac_cv_type_short=yes
38704 echo "$as_me: failed program was:" >&5
38705 sed 's/^/| /' conftest.$ac_ext >&5
38707 ac_cv_type_short=no
38709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38711 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
38712 echo "${ECHO_T}$ac_cv_type_short" >&6
38714 echo "$as_me:$LINENO: checking size of short" >&5
38715 echo $ECHO_N "checking size of short... $ECHO_C" >&6
38716 if test "${ac_cv_sizeof_short+set}" = set; then
38717 echo $ECHO_N "(cached) $ECHO_C" >&6
38719 if test "$ac_cv_type_short" = yes; then
38720 # The cast to unsigned long works around a bug in the HP C Compiler
38721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38723 # This bug is HP SR number 8606223364.
38724 if test "$cross_compiling" = yes; then
38725 # Depending upon the size, compute the lo and hi bounds.
38726 cat >conftest.$ac_ext <<_ACEOF
38729 cat confdefs.h >>conftest.$ac_ext
38730 cat >>conftest.$ac_ext <<_ACEOF
38731 /* end confdefs.h. */
38732 $ac_includes_default
38736 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
38743 rm -f conftest.$ac_objext
38744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38745 (eval $ac_compile) 2>conftest.er1
38747 grep -v '^ *+' conftest.er1 >conftest.err
38749 cat conftest.err >&5
38750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38751 (exit $ac_status); } &&
38752 { ac_try='test -z "$ac_c_werror_flag"
38753 || test ! -s conftest.err'
38754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38755 (eval $ac_try) 2>&5
38757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38758 (exit $ac_status); }; } &&
38759 { ac_try='test -s conftest.$ac_objext'
38760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38761 (eval $ac_try) 2>&5
38763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38764 (exit $ac_status); }; }; then
38767 cat >conftest.$ac_ext <<_ACEOF
38770 cat confdefs.h >>conftest.$ac_ext
38771 cat >>conftest.$ac_ext <<_ACEOF
38772 /* end confdefs.h. */
38773 $ac_includes_default
38777 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38784 rm -f conftest.$ac_objext
38785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38786 (eval $ac_compile) 2>conftest.er1
38788 grep -v '^ *+' conftest.er1 >conftest.err
38790 cat conftest.err >&5
38791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792 (exit $ac_status); } &&
38793 { ac_try='test -z "$ac_c_werror_flag"
38794 || test ! -s conftest.err'
38795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38796 (eval $ac_try) 2>&5
38798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38799 (exit $ac_status); }; } &&
38800 { ac_try='test -s conftest.$ac_objext'
38801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38802 (eval $ac_try) 2>&5
38804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805 (exit $ac_status); }; }; then
38806 ac_hi=$ac_mid; break
38808 echo "$as_me: failed program was:" >&5
38809 sed 's/^/| /' conftest.$ac_ext >&5
38811 ac_lo=`expr $ac_mid + 1`
38812 if test $ac_lo -le $ac_mid; then
38816 ac_mid=`expr 2 '*' $ac_mid + 1`
38818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38821 echo "$as_me: failed program was:" >&5
38822 sed 's/^/| /' conftest.$ac_ext >&5
38824 cat >conftest.$ac_ext <<_ACEOF
38827 cat confdefs.h >>conftest.$ac_ext
38828 cat >>conftest.$ac_ext <<_ACEOF
38829 /* end confdefs.h. */
38830 $ac_includes_default
38834 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
38841 rm -f conftest.$ac_objext
38842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38843 (eval $ac_compile) 2>conftest.er1
38845 grep -v '^ *+' conftest.er1 >conftest.err
38847 cat conftest.err >&5
38848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38849 (exit $ac_status); } &&
38850 { ac_try='test -z "$ac_c_werror_flag"
38851 || test ! -s conftest.err'
38852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38853 (eval $ac_try) 2>&5
38855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38856 (exit $ac_status); }; } &&
38857 { ac_try='test -s conftest.$ac_objext'
38858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38859 (eval $ac_try) 2>&5
38861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38862 (exit $ac_status); }; }; then
38865 cat >conftest.$ac_ext <<_ACEOF
38868 cat confdefs.h >>conftest.$ac_ext
38869 cat >>conftest.$ac_ext <<_ACEOF
38870 /* end confdefs.h. */
38871 $ac_includes_default
38875 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
38882 rm -f conftest.$ac_objext
38883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38884 (eval $ac_compile) 2>conftest.er1
38886 grep -v '^ *+' conftest.er1 >conftest.err
38888 cat conftest.err >&5
38889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38890 (exit $ac_status); } &&
38891 { ac_try='test -z "$ac_c_werror_flag"
38892 || test ! -s conftest.err'
38893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38894 (eval $ac_try) 2>&5
38896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38897 (exit $ac_status); }; } &&
38898 { ac_try='test -s conftest.$ac_objext'
38899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38900 (eval $ac_try) 2>&5
38902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38903 (exit $ac_status); }; }; then
38904 ac_lo=$ac_mid; break
38906 echo "$as_me: failed program was:" >&5
38907 sed 's/^/| /' conftest.$ac_ext >&5
38909 ac_hi=`expr '(' $ac_mid ')' - 1`
38910 if test $ac_mid -le $ac_hi; then
38914 ac_mid=`expr 2 '*' $ac_mid`
38916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38919 echo "$as_me: failed program was:" >&5
38920 sed 's/^/| /' conftest.$ac_ext >&5
38924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38927 # Binary search between lo and hi bounds.
38928 while test "x$ac_lo" != "x$ac_hi"; do
38929 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38930 cat >conftest.$ac_ext <<_ACEOF
38933 cat confdefs.h >>conftest.$ac_ext
38934 cat >>conftest.$ac_ext <<_ACEOF
38935 /* end confdefs.h. */
38936 $ac_includes_default
38940 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38947 rm -f conftest.$ac_objext
38948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38949 (eval $ac_compile) 2>conftest.er1
38951 grep -v '^ *+' conftest.er1 >conftest.err
38953 cat conftest.err >&5
38954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955 (exit $ac_status); } &&
38956 { ac_try='test -z "$ac_c_werror_flag"
38957 || test ! -s conftest.err'
38958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38959 (eval $ac_try) 2>&5
38961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38962 (exit $ac_status); }; } &&
38963 { ac_try='test -s conftest.$ac_objext'
38964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38965 (eval $ac_try) 2>&5
38967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38968 (exit $ac_status); }; }; then
38971 echo "$as_me: failed program was:" >&5
38972 sed 's/^/| /' conftest.$ac_ext >&5
38974 ac_lo=`expr '(' $ac_mid ')' + 1`
38976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38979 ?*) ac_cv_sizeof_short=$ac_lo;;
38980 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38981 See \`config.log' for more details." >&5
38982 echo "$as_me: error: cannot compute sizeof (short), 77
38983 See \`config.log' for more details." >&2;}
38984 { (exit 1); exit 1; }; } ;;
38987 if test "$cross_compiling" = yes; then
38988 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38989 See \`config.log' for more details." >&5
38990 echo "$as_me: error: cannot run test program while cross compiling
38991 See \`config.log' for more details." >&2;}
38992 { (exit 1); exit 1; }; }
38994 cat >conftest.$ac_ext <<_ACEOF
38997 cat confdefs.h >>conftest.$ac_ext
38998 cat >>conftest.$ac_ext <<_ACEOF
38999 /* end confdefs.h. */
39000 $ac_includes_default
39001 long longval () { return (long) (sizeof (short)); }
39002 unsigned long ulongval () { return (long) (sizeof (short)); }
39004 #include <stdlib.h>
39009 FILE *f = fopen ("conftest.val", "w");
39012 if (((long) (sizeof (short))) < 0)
39014 long i = longval ();
39015 if (i != ((long) (sizeof (short))))
39017 fprintf (f, "%ld\n", i);
39021 unsigned long i = ulongval ();
39022 if (i != ((long) (sizeof (short))))
39024 fprintf (f, "%lu\n", i);
39026 exit (ferror (f) || fclose (f) != 0);
39032 rm -f conftest$ac_exeext
39033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39034 (eval $ac_link) 2>&5
39036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39039 (eval $ac_try) 2>&5
39041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39042 (exit $ac_status); }; }; then
39043 ac_cv_sizeof_short=`cat conftest.val`
39045 echo "$as_me: program exited with status $ac_status" >&5
39046 echo "$as_me: failed program was:" >&5
39047 sed 's/^/| /' conftest.$ac_ext >&5
39049 ( exit $ac_status )
39050 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
39051 See \`config.log' for more details." >&5
39052 echo "$as_me: error: cannot compute sizeof (short), 77
39053 See \`config.log' for more details." >&2;}
39054 { (exit 1); exit 1; }; }
39056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39061 ac_cv_sizeof_short=0
39064 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
39065 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
39066 cat >>confdefs.h <<_ACEOF
39067 #define SIZEOF_SHORT $ac_cv_sizeof_short
39071 echo "$as_me:$LINENO: checking for int" >&5
39072 echo $ECHO_N "checking for int... $ECHO_C" >&6
39073 if test "${ac_cv_type_int+set}" = set; then
39074 echo $ECHO_N "(cached) $ECHO_C" >&6
39076 cat >conftest.$ac_ext <<_ACEOF
39079 cat confdefs.h >>conftest.$ac_ext
39080 cat >>conftest.$ac_ext <<_ACEOF
39081 /* end confdefs.h. */
39082 $ac_includes_default
39094 rm -f conftest.$ac_objext
39095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39096 (eval $ac_compile) 2>conftest.er1
39098 grep -v '^ *+' conftest.er1 >conftest.err
39100 cat conftest.err >&5
39101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39102 (exit $ac_status); } &&
39103 { ac_try='test -z "$ac_c_werror_flag"
39104 || test ! -s conftest.err'
39105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39106 (eval $ac_try) 2>&5
39108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39109 (exit $ac_status); }; } &&
39110 { ac_try='test -s conftest.$ac_objext'
39111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39112 (eval $ac_try) 2>&5
39114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39115 (exit $ac_status); }; }; then
39118 echo "$as_me: failed program was:" >&5
39119 sed 's/^/| /' conftest.$ac_ext >&5
39123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39125 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
39126 echo "${ECHO_T}$ac_cv_type_int" >&6
39128 echo "$as_me:$LINENO: checking size of int" >&5
39129 echo $ECHO_N "checking size of int... $ECHO_C" >&6
39130 if test "${ac_cv_sizeof_int+set}" = set; then
39131 echo $ECHO_N "(cached) $ECHO_C" >&6
39133 if test "$ac_cv_type_int" = yes; then
39134 # The cast to unsigned long works around a bug in the HP C Compiler
39135 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39136 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39137 # This bug is HP SR number 8606223364.
39138 if test "$cross_compiling" = yes; then
39139 # Depending upon the size, compute the lo and hi bounds.
39140 cat >conftest.$ac_ext <<_ACEOF
39143 cat confdefs.h >>conftest.$ac_ext
39144 cat >>conftest.$ac_ext <<_ACEOF
39145 /* end confdefs.h. */
39146 $ac_includes_default
39150 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
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
39181 cat >conftest.$ac_ext <<_ACEOF
39184 cat confdefs.h >>conftest.$ac_ext
39185 cat >>conftest.$ac_ext <<_ACEOF
39186 /* end confdefs.h. */
39187 $ac_includes_default
39191 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39198 rm -f conftest.$ac_objext
39199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39200 (eval $ac_compile) 2>conftest.er1
39202 grep -v '^ *+' conftest.er1 >conftest.err
39204 cat conftest.err >&5
39205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39206 (exit $ac_status); } &&
39207 { ac_try='test -z "$ac_c_werror_flag"
39208 || test ! -s conftest.err'
39209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39210 (eval $ac_try) 2>&5
39212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39213 (exit $ac_status); }; } &&
39214 { ac_try='test -s conftest.$ac_objext'
39215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39216 (eval $ac_try) 2>&5
39218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219 (exit $ac_status); }; }; then
39220 ac_hi=$ac_mid; break
39222 echo "$as_me: failed program was:" >&5
39223 sed 's/^/| /' conftest.$ac_ext >&5
39225 ac_lo=`expr $ac_mid + 1`
39226 if test $ac_lo -le $ac_mid; then
39230 ac_mid=`expr 2 '*' $ac_mid + 1`
39232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39235 echo "$as_me: failed program was:" >&5
39236 sed 's/^/| /' conftest.$ac_ext >&5
39238 cat >conftest.$ac_ext <<_ACEOF
39241 cat confdefs.h >>conftest.$ac_ext
39242 cat >>conftest.$ac_ext <<_ACEOF
39243 /* end confdefs.h. */
39244 $ac_includes_default
39248 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
39255 rm -f conftest.$ac_objext
39256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39257 (eval $ac_compile) 2>conftest.er1
39259 grep -v '^ *+' conftest.er1 >conftest.err
39261 cat conftest.err >&5
39262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39263 (exit $ac_status); } &&
39264 { ac_try='test -z "$ac_c_werror_flag"
39265 || test ! -s conftest.err'
39266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39267 (eval $ac_try) 2>&5
39269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39270 (exit $ac_status); }; } &&
39271 { ac_try='test -s conftest.$ac_objext'
39272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39273 (eval $ac_try) 2>&5
39275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39276 (exit $ac_status); }; }; then
39279 cat >conftest.$ac_ext <<_ACEOF
39282 cat confdefs.h >>conftest.$ac_ext
39283 cat >>conftest.$ac_ext <<_ACEOF
39284 /* end confdefs.h. */
39285 $ac_includes_default
39289 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
39296 rm -f conftest.$ac_objext
39297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39298 (eval $ac_compile) 2>conftest.er1
39300 grep -v '^ *+' conftest.er1 >conftest.err
39302 cat conftest.err >&5
39303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39304 (exit $ac_status); } &&
39305 { ac_try='test -z "$ac_c_werror_flag"
39306 || test ! -s conftest.err'
39307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39308 (eval $ac_try) 2>&5
39310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311 (exit $ac_status); }; } &&
39312 { ac_try='test -s conftest.$ac_objext'
39313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39314 (eval $ac_try) 2>&5
39316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39317 (exit $ac_status); }; }; then
39318 ac_lo=$ac_mid; break
39320 echo "$as_me: failed program was:" >&5
39321 sed 's/^/| /' conftest.$ac_ext >&5
39323 ac_hi=`expr '(' $ac_mid ')' - 1`
39324 if test $ac_mid -le $ac_hi; then
39328 ac_mid=`expr 2 '*' $ac_mid`
39330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39333 echo "$as_me: failed program was:" >&5
39334 sed 's/^/| /' conftest.$ac_ext >&5
39338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39341 # Binary search between lo and hi bounds.
39342 while test "x$ac_lo" != "x$ac_hi"; do
39343 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39344 cat >conftest.$ac_ext <<_ACEOF
39347 cat confdefs.h >>conftest.$ac_ext
39348 cat >>conftest.$ac_ext <<_ACEOF
39349 /* end confdefs.h. */
39350 $ac_includes_default
39354 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39361 rm -f conftest.$ac_objext
39362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39363 (eval $ac_compile) 2>conftest.er1
39365 grep -v '^ *+' conftest.er1 >conftest.err
39367 cat conftest.err >&5
39368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39369 (exit $ac_status); } &&
39370 { ac_try='test -z "$ac_c_werror_flag"
39371 || test ! -s conftest.err'
39372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39373 (eval $ac_try) 2>&5
39375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39376 (exit $ac_status); }; } &&
39377 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
39385 echo "$as_me: failed program was:" >&5
39386 sed 's/^/| /' conftest.$ac_ext >&5
39388 ac_lo=`expr '(' $ac_mid ')' + 1`
39390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39393 ?*) ac_cv_sizeof_int=$ac_lo;;
39394 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39395 See \`config.log' for more details." >&5
39396 echo "$as_me: error: cannot compute sizeof (int), 77
39397 See \`config.log' for more details." >&2;}
39398 { (exit 1); exit 1; }; } ;;
39401 if test "$cross_compiling" = yes; then
39402 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39403 See \`config.log' for more details." >&5
39404 echo "$as_me: error: cannot run test program while cross compiling
39405 See \`config.log' for more details." >&2;}
39406 { (exit 1); exit 1; }; }
39408 cat >conftest.$ac_ext <<_ACEOF
39411 cat confdefs.h >>conftest.$ac_ext
39412 cat >>conftest.$ac_ext <<_ACEOF
39413 /* end confdefs.h. */
39414 $ac_includes_default
39415 long longval () { return (long) (sizeof (int)); }
39416 unsigned long ulongval () { return (long) (sizeof (int)); }
39418 #include <stdlib.h>
39423 FILE *f = fopen ("conftest.val", "w");
39426 if (((long) (sizeof (int))) < 0)
39428 long i = longval ();
39429 if (i != ((long) (sizeof (int))))
39431 fprintf (f, "%ld\n", i);
39435 unsigned long i = ulongval ();
39436 if (i != ((long) (sizeof (int))))
39438 fprintf (f, "%lu\n", i);
39440 exit (ferror (f) || fclose (f) != 0);
39446 rm -f conftest$ac_exeext
39447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39448 (eval $ac_link) 2>&5
39450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39453 (eval $ac_try) 2>&5
39455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39456 (exit $ac_status); }; }; then
39457 ac_cv_sizeof_int=`cat conftest.val`
39459 echo "$as_me: program exited with status $ac_status" >&5
39460 echo "$as_me: failed program was:" >&5
39461 sed 's/^/| /' conftest.$ac_ext >&5
39463 ( exit $ac_status )
39464 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39465 See \`config.log' for more details." >&5
39466 echo "$as_me: error: cannot compute sizeof (int), 77
39467 See \`config.log' for more details." >&2;}
39468 { (exit 1); exit 1; }; }
39470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39478 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
39479 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
39480 cat >>confdefs.h <<_ACEOF
39481 #define SIZEOF_INT $ac_cv_sizeof_int
39485 echo "$as_me:$LINENO: checking for long" >&5
39486 echo $ECHO_N "checking for long... $ECHO_C" >&6
39487 if test "${ac_cv_type_long+set}" = set; then
39488 echo $ECHO_N "(cached) $ECHO_C" >&6
39490 cat >conftest.$ac_ext <<_ACEOF
39493 cat confdefs.h >>conftest.$ac_ext
39494 cat >>conftest.$ac_ext <<_ACEOF
39495 /* end confdefs.h. */
39496 $ac_includes_default
39508 rm -f conftest.$ac_objext
39509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39510 (eval $ac_compile) 2>conftest.er1
39512 grep -v '^ *+' conftest.er1 >conftest.err
39514 cat conftest.err >&5
39515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516 (exit $ac_status); } &&
39517 { ac_try='test -z "$ac_c_werror_flag"
39518 || test ! -s conftest.err'
39519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39520 (eval $ac_try) 2>&5
39522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39523 (exit $ac_status); }; } &&
39524 { ac_try='test -s conftest.$ac_objext'
39525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39526 (eval $ac_try) 2>&5
39528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39529 (exit $ac_status); }; }; then
39530 ac_cv_type_long=yes
39532 echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.$ac_ext >&5
39537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39539 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
39540 echo "${ECHO_T}$ac_cv_type_long" >&6
39542 echo "$as_me:$LINENO: checking size of long" >&5
39543 echo $ECHO_N "checking size of long... $ECHO_C" >&6
39544 if test "${ac_cv_sizeof_long+set}" = set; then
39545 echo $ECHO_N "(cached) $ECHO_C" >&6
39547 if test "$ac_cv_type_long" = yes; then
39548 # The cast to unsigned long works around a bug in the HP C Compiler
39549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39551 # This bug is HP SR number 8606223364.
39552 if test "$cross_compiling" = yes; then
39553 # Depending upon the size, compute the lo and hi bounds.
39554 cat >conftest.$ac_ext <<_ACEOF
39557 cat confdefs.h >>conftest.$ac_ext
39558 cat >>conftest.$ac_ext <<_ACEOF
39559 /* end confdefs.h. */
39560 $ac_includes_default
39564 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
39571 rm -f conftest.$ac_objext
39572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39573 (eval $ac_compile) 2>conftest.er1
39575 grep -v '^ *+' conftest.er1 >conftest.err
39577 cat conftest.err >&5
39578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39579 (exit $ac_status); } &&
39580 { ac_try='test -z "$ac_c_werror_flag"
39581 || test ! -s conftest.err'
39582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39583 (eval $ac_try) 2>&5
39585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39586 (exit $ac_status); }; } &&
39587 { ac_try='test -s conftest.$ac_objext'
39588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39589 (eval $ac_try) 2>&5
39591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592 (exit $ac_status); }; }; then
39595 cat >conftest.$ac_ext <<_ACEOF
39598 cat confdefs.h >>conftest.$ac_ext
39599 cat >>conftest.$ac_ext <<_ACEOF
39600 /* end confdefs.h. */
39601 $ac_includes_default
39605 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39612 rm -f conftest.$ac_objext
39613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39614 (eval $ac_compile) 2>conftest.er1
39616 grep -v '^ *+' conftest.er1 >conftest.err
39618 cat conftest.err >&5
39619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39620 (exit $ac_status); } &&
39621 { ac_try='test -z "$ac_c_werror_flag"
39622 || test ! -s conftest.err'
39623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39624 (eval $ac_try) 2>&5
39626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39627 (exit $ac_status); }; } &&
39628 { ac_try='test -s conftest.$ac_objext'
39629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39630 (eval $ac_try) 2>&5
39632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39633 (exit $ac_status); }; }; then
39634 ac_hi=$ac_mid; break
39636 echo "$as_me: failed program was:" >&5
39637 sed 's/^/| /' conftest.$ac_ext >&5
39639 ac_lo=`expr $ac_mid + 1`
39640 if test $ac_lo -le $ac_mid; then
39644 ac_mid=`expr 2 '*' $ac_mid + 1`
39646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39649 echo "$as_me: failed program was:" >&5
39650 sed 's/^/| /' conftest.$ac_ext >&5
39652 cat >conftest.$ac_ext <<_ACEOF
39655 cat confdefs.h >>conftest.$ac_ext
39656 cat >>conftest.$ac_ext <<_ACEOF
39657 /* end confdefs.h. */
39658 $ac_includes_default
39662 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
39669 rm -f conftest.$ac_objext
39670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39671 (eval $ac_compile) 2>conftest.er1
39673 grep -v '^ *+' conftest.er1 >conftest.err
39675 cat conftest.err >&5
39676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39677 (exit $ac_status); } &&
39678 { ac_try='test -z "$ac_c_werror_flag"
39679 || test ! -s conftest.err'
39680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39681 (eval $ac_try) 2>&5
39683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39684 (exit $ac_status); }; } &&
39685 { ac_try='test -s conftest.$ac_objext'
39686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39687 (eval $ac_try) 2>&5
39689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39690 (exit $ac_status); }; }; then
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 int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
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_lo=$ac_mid; break
39734 echo "$as_me: failed program was:" >&5
39735 sed 's/^/| /' conftest.$ac_ext >&5
39737 ac_hi=`expr '(' $ac_mid ')' - 1`
39738 if test $ac_mid -le $ac_hi; then
39742 ac_mid=`expr 2 '*' $ac_mid`
39744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39747 echo "$as_me: failed program was:" >&5
39748 sed 's/^/| /' conftest.$ac_ext >&5
39752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39755 # Binary search between lo and hi bounds.
39756 while test "x$ac_lo" != "x$ac_hi"; do
39757 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39758 cat >conftest.$ac_ext <<_ACEOF
39761 cat confdefs.h >>conftest.$ac_ext
39762 cat >>conftest.$ac_ext <<_ACEOF
39763 /* end confdefs.h. */
39764 $ac_includes_default
39768 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39775 rm -f conftest.$ac_objext
39776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39777 (eval $ac_compile) 2>conftest.er1
39779 grep -v '^ *+' conftest.er1 >conftest.err
39781 cat conftest.err >&5
39782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39783 (exit $ac_status); } &&
39784 { ac_try='test -z "$ac_c_werror_flag"
39785 || test ! -s conftest.err'
39786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39787 (eval $ac_try) 2>&5
39789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39790 (exit $ac_status); }; } &&
39791 { ac_try='test -s conftest.$ac_objext'
39792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39793 (eval $ac_try) 2>&5
39795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39796 (exit $ac_status); }; }; then
39799 echo "$as_me: failed program was:" >&5
39800 sed 's/^/| /' conftest.$ac_ext >&5
39802 ac_lo=`expr '(' $ac_mid ')' + 1`
39804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39807 ?*) ac_cv_sizeof_long=$ac_lo;;
39808 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39809 See \`config.log' for more details." >&5
39810 echo "$as_me: error: cannot compute sizeof (long), 77
39811 See \`config.log' for more details." >&2;}
39812 { (exit 1); exit 1; }; } ;;
39815 if test "$cross_compiling" = yes; then
39816 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39817 See \`config.log' for more details." >&5
39818 echo "$as_me: error: cannot run test program while cross compiling
39819 See \`config.log' for more details." >&2;}
39820 { (exit 1); exit 1; }; }
39822 cat >conftest.$ac_ext <<_ACEOF
39825 cat confdefs.h >>conftest.$ac_ext
39826 cat >>conftest.$ac_ext <<_ACEOF
39827 /* end confdefs.h. */
39828 $ac_includes_default
39829 long longval () { return (long) (sizeof (long)); }
39830 unsigned long ulongval () { return (long) (sizeof (long)); }
39832 #include <stdlib.h>
39837 FILE *f = fopen ("conftest.val", "w");
39840 if (((long) (sizeof (long))) < 0)
39842 long i = longval ();
39843 if (i != ((long) (sizeof (long))))
39845 fprintf (f, "%ld\n", i);
39849 unsigned long i = ulongval ();
39850 if (i != ((long) (sizeof (long))))
39852 fprintf (f, "%lu\n", i);
39854 exit (ferror (f) || fclose (f) != 0);
39860 rm -f conftest$ac_exeext
39861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39862 (eval $ac_link) 2>&5
39864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39867 (eval $ac_try) 2>&5
39869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39870 (exit $ac_status); }; }; then
39871 ac_cv_sizeof_long=`cat conftest.val`
39873 echo "$as_me: program exited with status $ac_status" >&5
39874 echo "$as_me: failed program was:" >&5
39875 sed 's/^/| /' conftest.$ac_ext >&5
39877 ( exit $ac_status )
39878 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39879 See \`config.log' for more details." >&5
39880 echo "$as_me: error: cannot compute sizeof (long), 77
39881 See \`config.log' for more details." >&2;}
39882 { (exit 1); exit 1; }; }
39884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39889 ac_cv_sizeof_long=0
39892 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
39893 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
39894 cat >>confdefs.h <<_ACEOF
39895 #define SIZEOF_LONG $ac_cv_sizeof_long
39899 echo "$as_me:$LINENO: checking for wchar_t" >&5
39900 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
39901 if test "${ac_cv_type_wchar_t+set}" = set; then
39902 echo $ECHO_N "(cached) $ECHO_C" >&6
39904 cat >conftest.$ac_ext <<_ACEOF
39907 cat confdefs.h >>conftest.$ac_ext
39908 cat >>conftest.$ac_ext <<_ACEOF
39909 /* end confdefs.h. */
39910 $ac_includes_default
39916 if (sizeof (wchar_t))
39922 rm -f conftest.$ac_objext
39923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39924 (eval $ac_compile) 2>conftest.er1
39926 grep -v '^ *+' conftest.er1 >conftest.err
39928 cat conftest.err >&5
39929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39930 (exit $ac_status); } &&
39931 { ac_try='test -z "$ac_c_werror_flag"
39932 || test ! -s conftest.err'
39933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39934 (eval $ac_try) 2>&5
39936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39937 (exit $ac_status); }; } &&
39938 { ac_try='test -s conftest.$ac_objext'
39939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39940 (eval $ac_try) 2>&5
39942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39943 (exit $ac_status); }; }; then
39944 ac_cv_type_wchar_t=yes
39946 echo "$as_me: failed program was:" >&5
39947 sed 's/^/| /' conftest.$ac_ext >&5
39949 ac_cv_type_wchar_t=no
39951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39953 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
39954 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
39956 echo "$as_me:$LINENO: checking size of wchar_t" >&5
39957 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
39958 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
39959 echo $ECHO_N "(cached) $ECHO_C" >&6
39961 if test "$ac_cv_type_wchar_t" = yes; then
39962 # The cast to unsigned long works around a bug in the HP C Compiler
39963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39965 # This bug is HP SR number 8606223364.
39966 if test "$cross_compiling" = yes; then
39967 # Depending upon the size, compute the lo and hi bounds.
39968 cat >conftest.$ac_ext <<_ACEOF
39971 cat confdefs.h >>conftest.$ac_ext
39972 cat >>conftest.$ac_ext <<_ACEOF
39973 /* end confdefs.h. */
39974 $ac_includes_default
39978 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
39985 rm -f conftest.$ac_objext
39986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39987 (eval $ac_compile) 2>conftest.er1
39989 grep -v '^ *+' conftest.er1 >conftest.err
39991 cat conftest.err >&5
39992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39993 (exit $ac_status); } &&
39994 { ac_try='test -z "$ac_c_werror_flag"
39995 || test ! -s conftest.err'
39996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39997 (eval $ac_try) 2>&5
39999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40000 (exit $ac_status); }; } &&
40001 { ac_try='test -s conftest.$ac_objext'
40002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40003 (eval $ac_try) 2>&5
40005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40006 (exit $ac_status); }; }; then
40009 cat >conftest.$ac_ext <<_ACEOF
40012 cat confdefs.h >>conftest.$ac_ext
40013 cat >>conftest.$ac_ext <<_ACEOF
40014 /* end confdefs.h. */
40015 $ac_includes_default
40019 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
40026 rm -f conftest.$ac_objext
40027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40028 (eval $ac_compile) 2>conftest.er1
40030 grep -v '^ *+' conftest.er1 >conftest.err
40032 cat conftest.err >&5
40033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40034 (exit $ac_status); } &&
40035 { ac_try='test -z "$ac_c_werror_flag"
40036 || test ! -s conftest.err'
40037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40038 (eval $ac_try) 2>&5
40040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041 (exit $ac_status); }; } &&
40042 { ac_try='test -s conftest.$ac_objext'
40043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40044 (eval $ac_try) 2>&5
40046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); }; }; then
40048 ac_hi=$ac_mid; break
40050 echo "$as_me: failed program was:" >&5
40051 sed 's/^/| /' conftest.$ac_ext >&5
40053 ac_lo=`expr $ac_mid + 1`
40054 if test $ac_lo -le $ac_mid; then
40058 ac_mid=`expr 2 '*' $ac_mid + 1`
40060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40063 echo "$as_me: failed program was:" >&5
40064 sed 's/^/| /' conftest.$ac_ext >&5
40066 cat >conftest.$ac_ext <<_ACEOF
40069 cat confdefs.h >>conftest.$ac_ext
40070 cat >>conftest.$ac_ext <<_ACEOF
40071 /* end confdefs.h. */
40072 $ac_includes_default
40076 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
40083 rm -f conftest.$ac_objext
40084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40085 (eval $ac_compile) 2>conftest.er1
40087 grep -v '^ *+' conftest.er1 >conftest.err
40089 cat conftest.err >&5
40090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40091 (exit $ac_status); } &&
40092 { ac_try='test -z "$ac_c_werror_flag"
40093 || test ! -s conftest.err'
40094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40095 (eval $ac_try) 2>&5
40097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40098 (exit $ac_status); }; } &&
40099 { ac_try='test -s conftest.$ac_objext'
40100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40101 (eval $ac_try) 2>&5
40103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40104 (exit $ac_status); }; }; then
40107 cat >conftest.$ac_ext <<_ACEOF
40110 cat confdefs.h >>conftest.$ac_ext
40111 cat >>conftest.$ac_ext <<_ACEOF
40112 /* end confdefs.h. */
40113 $ac_includes_default
40117 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
40124 rm -f conftest.$ac_objext
40125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40126 (eval $ac_compile) 2>conftest.er1
40128 grep -v '^ *+' conftest.er1 >conftest.err
40130 cat conftest.err >&5
40131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40132 (exit $ac_status); } &&
40133 { ac_try='test -z "$ac_c_werror_flag"
40134 || test ! -s conftest.err'
40135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40136 (eval $ac_try) 2>&5
40138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40139 (exit $ac_status); }; } &&
40140 { ac_try='test -s conftest.$ac_objext'
40141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40142 (eval $ac_try) 2>&5
40144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40145 (exit $ac_status); }; }; then
40146 ac_lo=$ac_mid; break
40148 echo "$as_me: failed program was:" >&5
40149 sed 's/^/| /' conftest.$ac_ext >&5
40151 ac_hi=`expr '(' $ac_mid ')' - 1`
40152 if test $ac_mid -le $ac_hi; then
40156 ac_mid=`expr 2 '*' $ac_mid`
40158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40161 echo "$as_me: failed program was:" >&5
40162 sed 's/^/| /' conftest.$ac_ext >&5
40166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40169 # Binary search between lo and hi bounds.
40170 while test "x$ac_lo" != "x$ac_hi"; do
40171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40172 cat >conftest.$ac_ext <<_ACEOF
40175 cat confdefs.h >>conftest.$ac_ext
40176 cat >>conftest.$ac_ext <<_ACEOF
40177 /* end confdefs.h. */
40178 $ac_includes_default
40182 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
40189 rm -f conftest.$ac_objext
40190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40191 (eval $ac_compile) 2>conftest.er1
40193 grep -v '^ *+' conftest.er1 >conftest.err
40195 cat conftest.err >&5
40196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40197 (exit $ac_status); } &&
40198 { ac_try='test -z "$ac_c_werror_flag"
40199 || test ! -s conftest.err'
40200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40201 (eval $ac_try) 2>&5
40203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40204 (exit $ac_status); }; } &&
40205 { ac_try='test -s conftest.$ac_objext'
40206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40207 (eval $ac_try) 2>&5
40209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40210 (exit $ac_status); }; }; then
40213 echo "$as_me: failed program was:" >&5
40214 sed 's/^/| /' conftest.$ac_ext >&5
40216 ac_lo=`expr '(' $ac_mid ')' + 1`
40218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40221 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
40222 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40223 See \`config.log' for more details." >&5
40224 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40225 See \`config.log' for more details." >&2;}
40226 { (exit 1); exit 1; }; } ;;
40229 if test "$cross_compiling" = yes; then
40230 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40231 See \`config.log' for more details." >&5
40232 echo "$as_me: error: cannot run test program while cross compiling
40233 See \`config.log' for more details." >&2;}
40234 { (exit 1); exit 1; }; }
40236 cat >conftest.$ac_ext <<_ACEOF
40239 cat confdefs.h >>conftest.$ac_ext
40240 cat >>conftest.$ac_ext <<_ACEOF
40241 /* end confdefs.h. */
40242 $ac_includes_default
40243 long longval () { return (long) (sizeof (wchar_t)); }
40244 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
40246 #include <stdlib.h>
40251 FILE *f = fopen ("conftest.val", "w");
40254 if (((long) (sizeof (wchar_t))) < 0)
40256 long i = longval ();
40257 if (i != ((long) (sizeof (wchar_t))))
40259 fprintf (f, "%ld\n", i);
40263 unsigned long i = ulongval ();
40264 if (i != ((long) (sizeof (wchar_t))))
40266 fprintf (f, "%lu\n", i);
40268 exit (ferror (f) || fclose (f) != 0);
40274 rm -f conftest$ac_exeext
40275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40276 (eval $ac_link) 2>&5
40278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40281 (eval $ac_try) 2>&5
40283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40284 (exit $ac_status); }; }; then
40285 ac_cv_sizeof_wchar_t=`cat conftest.val`
40287 echo "$as_me: program exited with status $ac_status" >&5
40288 echo "$as_me: failed program was:" >&5
40289 sed 's/^/| /' conftest.$ac_ext >&5
40291 ( exit $ac_status )
40292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40293 See \`config.log' for more details." >&5
40294 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40295 See \`config.log' for more details." >&2;}
40296 { (exit 1); exit 1; }; }
40298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40303 ac_cv_sizeof_wchar_t=0
40306 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
40307 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
40308 cat >>confdefs.h <<_ACEOF
40309 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
40314 if test "$ac_cv_sizeof_int" -lt 4 ; then
40315 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
40316 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
40319 cat >>confdefs.h <<\_ACEOF
40320 #define LBER_INT_T long
40325 cat >>confdefs.h <<\_ACEOF
40326 #define LBER_INT_T int
40332 cat >>confdefs.h <<\_ACEOF
40333 #define LBER_LEN_T long
40337 cat >>confdefs.h <<\_ACEOF
40338 #define LBER_SOCKET_T int
40342 cat >>confdefs.h <<\_ACEOF
40343 #define LBER_TAG_T long
40347 echo "$as_me:$LINENO: checking for working memcmp" >&5
40348 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
40349 if test "${ac_cv_func_memcmp_working+set}" = set; then
40350 echo $ECHO_N "(cached) $ECHO_C" >&6
40352 if test "$cross_compiling" = yes; then
40353 ac_cv_func_memcmp_working=no
40355 cat >conftest.$ac_ext <<_ACEOF
40358 cat confdefs.h >>conftest.$ac_ext
40359 cat >>conftest.$ac_ext <<_ACEOF
40360 /* end confdefs.h. */
40361 $ac_includes_default
40366 /* Some versions of memcmp are not 8-bit clean. */
40367 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
40368 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
40371 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
40372 or more and with at least one buffer not starting on a 4-byte boundary.
40373 William Lewis provided this test program. */
40378 for (i = 0; i < 4; i++)
40382 strcpy (a, "--------01111111");
40383 strcpy (b, "--------10000000");
40384 if (memcmp (a, b, 16) >= 0)
40394 rm -f conftest$ac_exeext
40395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40396 (eval $ac_link) 2>&5
40398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40401 (eval $ac_try) 2>&5
40403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40404 (exit $ac_status); }; }; then
40405 ac_cv_func_memcmp_working=yes
40407 echo "$as_me: program exited with status $ac_status" >&5
40408 echo "$as_me: failed program was:" >&5
40409 sed 's/^/| /' conftest.$ac_ext >&5
40411 ( exit $ac_status )
40412 ac_cv_func_memcmp_working=no
40414 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40417 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
40418 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
40419 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
40420 "memcmp.$ac_objext" | \
40421 *" memcmp.$ac_objext" | \
40422 "memcmp.$ac_objext "* | \
40423 *" memcmp.$ac_objext "* ) ;;
40424 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
40429 if test $ac_cv_func_memcmp_working = no ; then
40431 cat >>confdefs.h <<\_ACEOF
40432 #define NEED_MEMCMP_REPLACEMENT 1
40438 for ac_func in strftime
40440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40441 echo "$as_me:$LINENO: checking for $ac_func" >&5
40442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40443 if eval "test \"\${$as_ac_var+set}\" = set"; then
40444 echo $ECHO_N "(cached) $ECHO_C" >&6
40446 cat >conftest.$ac_ext <<_ACEOF
40449 cat confdefs.h >>conftest.$ac_ext
40450 cat >>conftest.$ac_ext <<_ACEOF
40451 /* end confdefs.h. */
40452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40454 #define $ac_func innocuous_$ac_func
40456 /* System header to define __stub macros and hopefully few prototypes,
40457 which can conflict with char $ac_func (); below.
40458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40459 <limits.h> exists even on freestanding compilers. */
40462 # include <limits.h>
40464 # include <assert.h>
40469 /* Override any gcc2 internal prototype to avoid an error. */
40474 /* We use char because int might match the return type of a gcc2
40475 builtin and then its argument prototype would still apply. */
40477 /* The GNU C library defines this for functions which it implements
40478 to always fail with ENOSYS. Some functions are actually named
40479 something starting with __ and the normal name is an alias. */
40480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40483 char (*f) () = $ac_func;
40492 return f != $ac_func;
40497 rm -f conftest.$ac_objext conftest$ac_exeext
40498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40499 (eval $ac_link) 2>conftest.er1
40501 grep -v '^ *+' conftest.er1 >conftest.err
40503 cat conftest.err >&5
40504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40505 (exit $ac_status); } &&
40506 { ac_try='test -z "$ac_c_werror_flag"
40507 || test ! -s conftest.err'
40508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40509 (eval $ac_try) 2>&5
40511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40512 (exit $ac_status); }; } &&
40513 { ac_try='test -s conftest$ac_exeext'
40514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40515 (eval $ac_try) 2>&5
40517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40518 (exit $ac_status); }; }; then
40519 eval "$as_ac_var=yes"
40521 echo "$as_me: failed program was:" >&5
40522 sed 's/^/| /' conftest.$ac_ext >&5
40524 eval "$as_ac_var=no"
40526 rm -f conftest.err conftest.$ac_objext \
40527 conftest$ac_exeext conftest.$ac_ext
40529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40531 if test `eval echo '${'$as_ac_var'}'` = yes; then
40532 cat >>confdefs.h <<_ACEOF
40533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40537 # strftime is in -lintl on SCO UNIX.
40538 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
40539 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
40540 if test "${ac_cv_lib_intl_strftime+set}" = set; then
40541 echo $ECHO_N "(cached) $ECHO_C" >&6
40543 ac_check_lib_save_LIBS=$LIBS
40544 LIBS="-lintl $LIBS"
40545 cat >conftest.$ac_ext <<_ACEOF
40548 cat confdefs.h >>conftest.$ac_ext
40549 cat >>conftest.$ac_ext <<_ACEOF
40550 /* end confdefs.h. */
40552 /* Override any gcc2 internal prototype to avoid an error. */
40556 /* We use char because int might match the return type of a gcc2
40557 builtin and then its argument prototype would still apply. */
40567 rm -f conftest.$ac_objext conftest$ac_exeext
40568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40569 (eval $ac_link) 2>conftest.er1
40571 grep -v '^ *+' conftest.er1 >conftest.err
40573 cat conftest.err >&5
40574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40575 (exit $ac_status); } &&
40576 { ac_try='test -z "$ac_c_werror_flag"
40577 || test ! -s conftest.err'
40578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40579 (eval $ac_try) 2>&5
40581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40582 (exit $ac_status); }; } &&
40583 { ac_try='test -s conftest$ac_exeext'
40584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40585 (eval $ac_try) 2>&5
40587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40588 (exit $ac_status); }; }; then
40589 ac_cv_lib_intl_strftime=yes
40591 echo "$as_me: failed program was:" >&5
40592 sed 's/^/| /' conftest.$ac_ext >&5
40594 ac_cv_lib_intl_strftime=no
40596 rm -f conftest.err conftest.$ac_objext \
40597 conftest$ac_exeext conftest.$ac_ext
40598 LIBS=$ac_check_lib_save_LIBS
40600 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
40601 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
40602 if test $ac_cv_lib_intl_strftime = yes; then
40603 cat >>confdefs.h <<\_ACEOF
40604 #define HAVE_STRFTIME 1
40607 LIBS="-lintl $LIBS"
40614 echo "$as_me:$LINENO: checking for inet_aton()" >&5
40615 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
40616 if test "${ol_cv_func_inet_aton+set}" = set; then
40617 echo $ECHO_N "(cached) $ECHO_C" >&6
40619 cat >conftest.$ac_ext <<_ACEOF
40622 cat confdefs.h >>conftest.$ac_ext
40623 cat >>conftest.$ac_ext <<_ACEOF
40624 /* end confdefs.h. */
40626 #ifdef HAVE_SYS_TYPES_H
40627 # include <sys/types.h>
40629 #ifdef HAVE_SYS_SOCKET_H
40630 # include <sys/socket.h>
40631 # ifdef HAVE_SYS_SELECT_H
40632 # include <sys/select.h>
40634 # include <netinet/in.h>
40635 # ifdef HAVE_ARPA_INET_H
40636 # include <arpa/inet.h>
40644 int rc = inet_aton( "255.255.255.255", &in );
40649 rm -f conftest.$ac_objext conftest$ac_exeext
40650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40651 (eval $ac_link) 2>conftest.er1
40653 grep -v '^ *+' conftest.er1 >conftest.err
40655 cat conftest.err >&5
40656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40657 (exit $ac_status); } &&
40658 { ac_try='test -z "$ac_c_werror_flag"
40659 || test ! -s conftest.err'
40660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40661 (eval $ac_try) 2>&5
40663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664 (exit $ac_status); }; } &&
40665 { ac_try='test -s conftest$ac_exeext'
40666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40667 (eval $ac_try) 2>&5
40669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670 (exit $ac_status); }; }; then
40671 ol_cv_func_inet_aton=yes
40673 echo "$as_me: failed program was:" >&5
40674 sed 's/^/| /' conftest.$ac_ext >&5
40676 ol_cv_func_inet_aton=no
40678 rm -f conftest.err conftest.$ac_objext \
40679 conftest$ac_exeext conftest.$ac_ext
40681 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
40682 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
40683 if test $ol_cv_func_inet_aton != no; then
40685 cat >>confdefs.h <<\_ACEOF
40686 #define HAVE_INET_ATON 1
40692 echo "$as_me:$LINENO: checking for _spawnlp" >&5
40693 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
40694 if test "${ac_cv_func__spawnlp+set}" = set; then
40695 echo $ECHO_N "(cached) $ECHO_C" >&6
40697 cat >conftest.$ac_ext <<_ACEOF
40700 cat confdefs.h >>conftest.$ac_ext
40701 cat >>conftest.$ac_ext <<_ACEOF
40702 /* end confdefs.h. */
40703 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
40704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40705 #define _spawnlp innocuous__spawnlp
40707 /* System header to define __stub macros and hopefully few prototypes,
40708 which can conflict with char _spawnlp (); below.
40709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40710 <limits.h> exists even on freestanding compilers. */
40713 # include <limits.h>
40715 # include <assert.h>
40720 /* Override any gcc2 internal prototype to avoid an error. */
40725 /* We use char because int might match the return type of a gcc2
40726 builtin and then its argument prototype would still apply. */
40728 /* The GNU C library defines this for functions which it implements
40729 to always fail with ENOSYS. Some functions are actually named
40730 something starting with __ and the normal name is an alias. */
40731 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
40734 char (*f) () = _spawnlp;
40743 return f != _spawnlp;
40748 rm -f conftest.$ac_objext conftest$ac_exeext
40749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40750 (eval $ac_link) 2>conftest.er1
40752 grep -v '^ *+' conftest.er1 >conftest.err
40754 cat conftest.err >&5
40755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40756 (exit $ac_status); } &&
40757 { ac_try='test -z "$ac_c_werror_flag"
40758 || test ! -s conftest.err'
40759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40760 (eval $ac_try) 2>&5
40762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40763 (exit $ac_status); }; } &&
40764 { ac_try='test -s conftest$ac_exeext'
40765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40766 (eval $ac_try) 2>&5
40768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40769 (exit $ac_status); }; }; then
40770 ac_cv_func__spawnlp=yes
40772 echo "$as_me: failed program was:" >&5
40773 sed 's/^/| /' conftest.$ac_ext >&5
40775 ac_cv_func__spawnlp=no
40777 rm -f conftest.err conftest.$ac_objext \
40778 conftest$ac_exeext conftest.$ac_ext
40780 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
40781 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
40782 if test $ac_cv_func__spawnlp = yes; then
40784 cat >>confdefs.h <<\_ACEOF
40785 #define HAVE_SPAWNLP 1
40791 echo "$as_me:$LINENO: checking for _snprintf" >&5
40792 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
40793 if test "${ac_cv_func__snprintf+set}" = set; then
40794 echo $ECHO_N "(cached) $ECHO_C" >&6
40796 cat >conftest.$ac_ext <<_ACEOF
40799 cat confdefs.h >>conftest.$ac_ext
40800 cat >>conftest.$ac_ext <<_ACEOF
40801 /* end confdefs.h. */
40802 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
40803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40804 #define _snprintf innocuous__snprintf
40806 /* System header to define __stub macros and hopefully few prototypes,
40807 which can conflict with char _snprintf (); below.
40808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40809 <limits.h> exists even on freestanding compilers. */
40812 # include <limits.h>
40814 # include <assert.h>
40819 /* Override any gcc2 internal prototype to avoid an error. */
40824 /* We use char because int might match the return type of a gcc2
40825 builtin and then its argument prototype would still apply. */
40827 /* The GNU C library defines this for functions which it implements
40828 to always fail with ENOSYS. Some functions are actually named
40829 something starting with __ and the normal name is an alias. */
40830 #if defined (__stub__snprintf) || defined (__stub____snprintf)
40833 char (*f) () = _snprintf;
40842 return f != _snprintf;
40847 rm -f conftest.$ac_objext conftest$ac_exeext
40848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40849 (eval $ac_link) 2>conftest.er1
40851 grep -v '^ *+' conftest.er1 >conftest.err
40853 cat conftest.err >&5
40854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40855 (exit $ac_status); } &&
40856 { ac_try='test -z "$ac_c_werror_flag"
40857 || test ! -s conftest.err'
40858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40859 (eval $ac_try) 2>&5
40861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40862 (exit $ac_status); }; } &&
40863 { ac_try='test -s conftest$ac_exeext'
40864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40865 (eval $ac_try) 2>&5
40867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40868 (exit $ac_status); }; }; then
40869 ac_cv_func__snprintf=yes
40871 echo "$as_me: failed program was:" >&5
40872 sed 's/^/| /' conftest.$ac_ext >&5
40874 ac_cv_func__snprintf=no
40876 rm -f conftest.err conftest.$ac_objext \
40877 conftest$ac_exeext conftest.$ac_ext
40879 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
40880 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
40881 if test $ac_cv_func__snprintf = yes; then
40882 ac_cv_func_snprintf=yes
40884 cat >>confdefs.h <<\_ACEOF
40885 #define snprintf _snprintf
40892 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
40893 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
40894 if test "${ac_cv_func__vsnprintf+set}" = set; then
40895 echo $ECHO_N "(cached) $ECHO_C" >&6
40897 cat >conftest.$ac_ext <<_ACEOF
40900 cat confdefs.h >>conftest.$ac_ext
40901 cat >>conftest.$ac_ext <<_ACEOF
40902 /* end confdefs.h. */
40903 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
40904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40905 #define _vsnprintf innocuous__vsnprintf
40907 /* System header to define __stub macros and hopefully few prototypes,
40908 which can conflict with char _vsnprintf (); below.
40909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40910 <limits.h> exists even on freestanding compilers. */
40913 # include <limits.h>
40915 # include <assert.h>
40920 /* Override any gcc2 internal prototype to avoid an error. */
40925 /* We use char because int might match the return type of a gcc2
40926 builtin and then its argument prototype would still apply. */
40927 char _vsnprintf ();
40928 /* The GNU C library defines this for functions which it implements
40929 to always fail with ENOSYS. Some functions are actually named
40930 something starting with __ and the normal name is an alias. */
40931 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
40934 char (*f) () = _vsnprintf;
40943 return f != _vsnprintf;
40948 rm -f conftest.$ac_objext conftest$ac_exeext
40949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40950 (eval $ac_link) 2>conftest.er1
40952 grep -v '^ *+' conftest.er1 >conftest.err
40954 cat conftest.err >&5
40955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40956 (exit $ac_status); } &&
40957 { ac_try='test -z "$ac_c_werror_flag"
40958 || test ! -s conftest.err'
40959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40960 (eval $ac_try) 2>&5
40962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963 (exit $ac_status); }; } &&
40964 { ac_try='test -s conftest$ac_exeext'
40965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40966 (eval $ac_try) 2>&5
40968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969 (exit $ac_status); }; }; then
40970 ac_cv_func__vsnprintf=yes
40972 echo "$as_me: failed program was:" >&5
40973 sed 's/^/| /' conftest.$ac_ext >&5
40975 ac_cv_func__vsnprintf=no
40977 rm -f conftest.err conftest.$ac_objext \
40978 conftest$ac_exeext conftest.$ac_ext
40980 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
40981 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
40982 if test $ac_cv_func__vsnprintf = yes; then
40983 ac_cv_func_vsnprintf=yes
40985 cat >>confdefs.h <<\_ACEOF
40986 #define vsnprintf _vsnprintf
40994 for ac_func in vprintf
40996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40997 echo "$as_me:$LINENO: checking for $ac_func" >&5
40998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40999 if eval "test \"\${$as_ac_var+set}\" = set"; then
41000 echo $ECHO_N "(cached) $ECHO_C" >&6
41002 cat >conftest.$ac_ext <<_ACEOF
41005 cat confdefs.h >>conftest.$ac_ext
41006 cat >>conftest.$ac_ext <<_ACEOF
41007 /* end confdefs.h. */
41008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41010 #define $ac_func innocuous_$ac_func
41012 /* System header to define __stub macros and hopefully few prototypes,
41013 which can conflict with char $ac_func (); below.
41014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41015 <limits.h> exists even on freestanding compilers. */
41018 # include <limits.h>
41020 # include <assert.h>
41025 /* Override any gcc2 internal prototype to avoid an error. */
41030 /* We use char because int might match the return type of a gcc2
41031 builtin and then its argument prototype would still apply. */
41033 /* The GNU C library defines this for functions which it implements
41034 to always fail with ENOSYS. Some functions are actually named
41035 something starting with __ and the normal name is an alias. */
41036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41039 char (*f) () = $ac_func;
41048 return f != $ac_func;
41053 rm -f conftest.$ac_objext conftest$ac_exeext
41054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41055 (eval $ac_link) 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_exeext'
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
41075 eval "$as_ac_var=yes"
41077 echo "$as_me: failed program was:" >&5
41078 sed 's/^/| /' conftest.$ac_ext >&5
41080 eval "$as_ac_var=no"
41082 rm -f conftest.err conftest.$ac_objext \
41083 conftest$ac_exeext conftest.$ac_ext
41085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41087 if test `eval echo '${'$as_ac_var'}'` = yes; then
41088 cat >>confdefs.h <<_ACEOF
41089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41092 echo "$as_me:$LINENO: checking for _doprnt" >&5
41093 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
41094 if test "${ac_cv_func__doprnt+set}" = set; then
41095 echo $ECHO_N "(cached) $ECHO_C" >&6
41097 cat >conftest.$ac_ext <<_ACEOF
41100 cat confdefs.h >>conftest.$ac_ext
41101 cat >>conftest.$ac_ext <<_ACEOF
41102 /* end confdefs.h. */
41103 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41105 #define _doprnt innocuous__doprnt
41107 /* System header to define __stub macros and hopefully few prototypes,
41108 which can conflict with char _doprnt (); below.
41109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41110 <limits.h> exists even on freestanding compilers. */
41113 # include <limits.h>
41115 # include <assert.h>
41120 /* Override any gcc2 internal prototype to avoid an error. */
41125 /* We use char because int might match the return type of a gcc2
41126 builtin and then its argument prototype would still apply. */
41128 /* The GNU C library defines this for functions which it implements
41129 to always fail with ENOSYS. Some functions are actually named
41130 something starting with __ and the normal name is an alias. */
41131 #if defined (__stub__doprnt) || defined (__stub____doprnt)
41134 char (*f) () = _doprnt;
41143 return f != _doprnt;
41148 rm -f conftest.$ac_objext conftest$ac_exeext
41149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41150 (eval $ac_link) 2>conftest.er1
41152 grep -v '^ *+' conftest.er1 >conftest.err
41154 cat conftest.err >&5
41155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41156 (exit $ac_status); } &&
41157 { ac_try='test -z "$ac_c_werror_flag"
41158 || test ! -s conftest.err'
41159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41160 (eval $ac_try) 2>&5
41162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41163 (exit $ac_status); }; } &&
41164 { ac_try='test -s conftest$ac_exeext'
41165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41166 (eval $ac_try) 2>&5
41168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41169 (exit $ac_status); }; }; then
41170 ac_cv_func__doprnt=yes
41172 echo "$as_me: failed program was:" >&5
41173 sed 's/^/| /' conftest.$ac_ext >&5
41175 ac_cv_func__doprnt=no
41177 rm -f conftest.err conftest.$ac_objext \
41178 conftest$ac_exeext conftest.$ac_ext
41180 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41181 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
41182 if test $ac_cv_func__doprnt = yes; then
41184 cat >>confdefs.h <<\_ACEOF
41185 #define HAVE_DOPRNT 1
41195 if test $ac_cv_func_vprintf = yes ; then
41198 for ac_func in snprintf vsnprintf
41200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41201 echo "$as_me:$LINENO: checking for $ac_func" >&5
41202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41203 if eval "test \"\${$as_ac_var+set}\" = set"; then
41204 echo $ECHO_N "(cached) $ECHO_C" >&6
41206 cat >conftest.$ac_ext <<_ACEOF
41209 cat confdefs.h >>conftest.$ac_ext
41210 cat >>conftest.$ac_ext <<_ACEOF
41211 /* end confdefs.h. */
41212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41214 #define $ac_func innocuous_$ac_func
41216 /* System header to define __stub macros and hopefully few prototypes,
41217 which can conflict with char $ac_func (); below.
41218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41219 <limits.h> exists even on freestanding compilers. */
41222 # include <limits.h>
41224 # include <assert.h>
41229 /* Override any gcc2 internal prototype to avoid an error. */
41234 /* We use char because int might match the return type of a gcc2
41235 builtin and then its argument prototype would still apply. */
41237 /* The GNU C library defines this for functions which it implements
41238 to always fail with ENOSYS. Some functions are actually named
41239 something starting with __ and the normal name is an alias. */
41240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41243 char (*f) () = $ac_func;
41252 return f != $ac_func;
41257 rm -f conftest.$ac_objext conftest$ac_exeext
41258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41259 (eval $ac_link) 2>conftest.er1
41261 grep -v '^ *+' conftest.er1 >conftest.err
41263 cat conftest.err >&5
41264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41265 (exit $ac_status); } &&
41266 { ac_try='test -z "$ac_c_werror_flag"
41267 || test ! -s conftest.err'
41268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41269 (eval $ac_try) 2>&5
41271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41272 (exit $ac_status); }; } &&
41273 { ac_try='test -s conftest$ac_exeext'
41274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41275 (eval $ac_try) 2>&5
41277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41278 (exit $ac_status); }; }; then
41279 eval "$as_ac_var=yes"
41281 echo "$as_me: failed program was:" >&5
41282 sed 's/^/| /' conftest.$ac_ext >&5
41284 eval "$as_ac_var=no"
41286 rm -f conftest.err conftest.$ac_objext \
41287 conftest$ac_exeext conftest.$ac_ext
41289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41291 if test `eval echo '${'$as_ac_var'}'` = yes; then
41292 cat >>confdefs.h <<_ACEOF
41293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41411 echo "$as_me:$LINENO: checking for $ac_func" >&5
41412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41413 if eval "test \"\${$as_ac_var+set}\" = set"; then
41414 echo $ECHO_N "(cached) $ECHO_C" >&6
41416 cat >conftest.$ac_ext <<_ACEOF
41419 cat confdefs.h >>conftest.$ac_ext
41420 cat >>conftest.$ac_ext <<_ACEOF
41421 /* end confdefs.h. */
41422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41424 #define $ac_func innocuous_$ac_func
41426 /* System header to define __stub macros and hopefully few prototypes,
41427 which can conflict with char $ac_func (); below.
41428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41429 <limits.h> exists even on freestanding compilers. */
41432 # include <limits.h>
41434 # include <assert.h>
41439 /* Override any gcc2 internal prototype to avoid an error. */
41444 /* We use char because int might match the return type of a gcc2
41445 builtin and then its argument prototype would still apply. */
41447 /* The GNU C library defines this for functions which it implements
41448 to always fail with ENOSYS. Some functions are actually named
41449 something starting with __ and the normal name is an alias. */
41450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41453 char (*f) () = $ac_func;
41462 return f != $ac_func;
41467 rm -f conftest.$ac_objext conftest$ac_exeext
41468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41469 (eval $ac_link) 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_exeext'
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
41489 eval "$as_ac_var=yes"
41491 echo "$as_me: failed program was:" >&5
41492 sed 's/^/| /' conftest.$ac_ext >&5
41494 eval "$as_ac_var=no"
41496 rm -f conftest.err conftest.$ac_objext \
41497 conftest$ac_exeext conftest.$ac_ext
41499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41501 if test `eval echo '${'$as_ac_var'}'` = yes; then
41502 cat >>confdefs.h <<_ACEOF
41503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41512 for ac_func in getopt getpeereid
41514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41515 echo "$as_me:$LINENO: checking for $ac_func" >&5
41516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41517 if eval "test \"\${$as_ac_var+set}\" = set"; then
41518 echo $ECHO_N "(cached) $ECHO_C" >&6
41520 cat >conftest.$ac_ext <<_ACEOF
41523 cat confdefs.h >>conftest.$ac_ext
41524 cat >>conftest.$ac_ext <<_ACEOF
41525 /* end confdefs.h. */
41526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41528 #define $ac_func innocuous_$ac_func
41530 /* System header to define __stub macros and hopefully few prototypes,
41531 which can conflict with char $ac_func (); below.
41532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41533 <limits.h> exists even on freestanding compilers. */
41536 # include <limits.h>
41538 # include <assert.h>
41543 /* Override any gcc2 internal prototype to avoid an error. */
41548 /* We use char because int might match the return type of a gcc2
41549 builtin and then its argument prototype would still apply. */
41551 /* The GNU C library defines this for functions which it implements
41552 to always fail with ENOSYS. Some functions are actually named
41553 something starting with __ and the normal name is an alias. */
41554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41557 char (*f) () = $ac_func;
41566 return f != $ac_func;
41571 rm -f conftest.$ac_objext conftest$ac_exeext
41572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41573 (eval $ac_link) 2>conftest.er1
41575 grep -v '^ *+' conftest.er1 >conftest.err
41577 cat conftest.err >&5
41578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41579 (exit $ac_status); } &&
41580 { ac_try='test -z "$ac_c_werror_flag"
41581 || test ! -s conftest.err'
41582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41583 (eval $ac_try) 2>&5
41585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41586 (exit $ac_status); }; } &&
41587 { ac_try='test -s conftest$ac_exeext'
41588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41589 (eval $ac_try) 2>&5
41591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41592 (exit $ac_status); }; }; then
41593 eval "$as_ac_var=yes"
41595 echo "$as_me: failed program was:" >&5
41596 sed 's/^/| /' conftest.$ac_ext >&5
41598 eval "$as_ac_var=no"
41600 rm -f conftest.err conftest.$ac_objext \
41601 conftest$ac_exeext conftest.$ac_ext
41603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41605 if test `eval echo '${'$as_ac_var'}'` = yes; then
41606 cat >>confdefs.h <<_ACEOF
41607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41612 "$ac_func.$ac_objext" | \
41613 *" $ac_func.$ac_objext" | \
41614 "$ac_func.$ac_objext "* | \
41615 *" $ac_func.$ac_objext "* ) ;;
41616 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
41624 if test "$ac_cv_func_getopt" != yes; then
41625 LIBSRCS="$LIBSRCS getopt.c"
41627 if test "$ac_cv_func_getpeereid" != yes; then
41628 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
41629 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
41630 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
41631 echo $ECHO_N "(cached) $ECHO_C" >&6
41633 cat >conftest.$ac_ext <<_ACEOF
41636 cat confdefs.h >>conftest.$ac_ext
41637 cat >>conftest.$ac_ext <<_ACEOF
41638 /* end confdefs.h. */
41639 $ac_includes_default
41640 #ifdef HAVE_SYS_SOCKET_H
41641 #include <sys/socket.h>
41647 static struct msghdr ac_aggr;
41648 if (ac_aggr.msg_accrightslen)
41654 rm -f conftest.$ac_objext
41655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41656 (eval $ac_compile) 2>conftest.er1
41658 grep -v '^ *+' conftest.er1 >conftest.err
41660 cat conftest.err >&5
41661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41662 (exit $ac_status); } &&
41663 { ac_try='test -z "$ac_c_werror_flag"
41664 || test ! -s conftest.err'
41665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41666 (eval $ac_try) 2>&5
41668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41669 (exit $ac_status); }; } &&
41670 { ac_try='test -s conftest.$ac_objext'
41671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41672 (eval $ac_try) 2>&5
41674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41675 (exit $ac_status); }; }; then
41676 ac_cv_member_struct_msghdr_msg_accrightslen=yes
41678 echo "$as_me: failed program was:" >&5
41679 sed 's/^/| /' conftest.$ac_ext >&5
41681 cat >conftest.$ac_ext <<_ACEOF
41684 cat confdefs.h >>conftest.$ac_ext
41685 cat >>conftest.$ac_ext <<_ACEOF
41686 /* end confdefs.h. */
41687 $ac_includes_default
41688 #ifdef HAVE_SYS_SOCKET_H
41689 #include <sys/socket.h>
41695 static struct msghdr ac_aggr;
41696 if (sizeof ac_aggr.msg_accrightslen)
41702 rm -f conftest.$ac_objext
41703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41704 (eval $ac_compile) 2>conftest.er1
41706 grep -v '^ *+' conftest.er1 >conftest.err
41708 cat conftest.err >&5
41709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41710 (exit $ac_status); } &&
41711 { ac_try='test -z "$ac_c_werror_flag"
41712 || test ! -s conftest.err'
41713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41714 (eval $ac_try) 2>&5
41716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41717 (exit $ac_status); }; } &&
41718 { ac_try='test -s conftest.$ac_objext'
41719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41720 (eval $ac_try) 2>&5
41722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41723 (exit $ac_status); }; }; then
41724 ac_cv_member_struct_msghdr_msg_accrightslen=yes
41726 echo "$as_me: failed program was:" >&5
41727 sed 's/^/| /' conftest.$ac_ext >&5
41729 ac_cv_member_struct_msghdr_msg_accrightslen=no
41731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41735 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
41736 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
41737 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
41739 cat >>confdefs.h <<_ACEOF
41740 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
41746 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
41747 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
41748 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
41749 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
41750 echo $ECHO_N "(cached) $ECHO_C" >&6
41752 cat >conftest.$ac_ext <<_ACEOF
41755 cat confdefs.h >>conftest.$ac_ext
41756 cat >>conftest.$ac_ext <<_ACEOF
41757 /* end confdefs.h. */
41758 $ac_includes_default
41759 #ifdef HAVE_SYS_SOCKET_H
41760 #include <sys/socket.h>
41766 static struct msghdr ac_aggr;
41767 if (ac_aggr.msg_control)
41773 rm -f conftest.$ac_objext
41774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41775 (eval $ac_compile) 2>conftest.er1
41777 grep -v '^ *+' conftest.er1 >conftest.err
41779 cat conftest.err >&5
41780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41781 (exit $ac_status); } &&
41782 { ac_try='test -z "$ac_c_werror_flag"
41783 || test ! -s conftest.err'
41784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41785 (eval $ac_try) 2>&5
41787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41788 (exit $ac_status); }; } &&
41789 { ac_try='test -s conftest.$ac_objext'
41790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41791 (eval $ac_try) 2>&5
41793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41794 (exit $ac_status); }; }; then
41795 ac_cv_member_struct_msghdr_msg_control=yes
41797 echo "$as_me: failed program was:" >&5
41798 sed 's/^/| /' conftest.$ac_ext >&5
41800 cat >conftest.$ac_ext <<_ACEOF
41803 cat confdefs.h >>conftest.$ac_ext
41804 cat >>conftest.$ac_ext <<_ACEOF
41805 /* end confdefs.h. */
41806 $ac_includes_default
41807 #ifdef HAVE_SYS_SOCKET_H
41808 #include <sys/socket.h>
41814 static struct msghdr ac_aggr;
41815 if (sizeof ac_aggr.msg_control)
41821 rm -f conftest.$ac_objext
41822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41823 (eval $ac_compile) 2>conftest.er1
41825 grep -v '^ *+' conftest.er1 >conftest.err
41827 cat conftest.err >&5
41828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41829 (exit $ac_status); } &&
41830 { ac_try='test -z "$ac_c_werror_flag"
41831 || test ! -s conftest.err'
41832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41833 (eval $ac_try) 2>&5
41835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836 (exit $ac_status); }; } &&
41837 { ac_try='test -s conftest.$ac_objext'
41838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41839 (eval $ac_try) 2>&5
41841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41842 (exit $ac_status); }; }; then
41843 ac_cv_member_struct_msghdr_msg_control=yes
41845 echo "$as_me: failed program was:" >&5
41846 sed 's/^/| /' conftest.$ac_ext >&5
41848 ac_cv_member_struct_msghdr_msg_control=no
41850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41854 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
41855 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
41856 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
41858 cat >>confdefs.h <<_ACEOF
41859 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
41866 LIBSRCS="$LIBSRCS getpeereid.c"
41868 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
41869 if test "$ac_cv_func_snprintf" != yes; then
41871 cat >>confdefs.h <<\_ACEOF
41872 #define snprintf ber_pvt_snprintf
41876 if test "$ac_cv_func_vsnprintf" != yes; then
41878 cat >>confdefs.h <<\_ACEOF
41879 #define vsnprintf ber_pvt_vsnprintf
41886 if test "$ol_enable_slapi" != no ; then
41888 for ac_header in ltdl.h
41890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41892 echo "$as_me:$LINENO: checking for $ac_header" >&5
41893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41895 echo $ECHO_N "(cached) $ECHO_C" >&6
41897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41900 # Is the header compilable?
41901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41903 cat >conftest.$ac_ext <<_ACEOF
41906 cat confdefs.h >>conftest.$ac_ext
41907 cat >>conftest.$ac_ext <<_ACEOF
41908 /* end confdefs.h. */
41909 $ac_includes_default
41910 #include <$ac_header>
41912 rm -f conftest.$ac_objext
41913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41914 (eval $ac_compile) 2>conftest.er1
41916 grep -v '^ *+' conftest.er1 >conftest.err
41918 cat conftest.err >&5
41919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41920 (exit $ac_status); } &&
41921 { ac_try='test -z "$ac_c_werror_flag"
41922 || test ! -s conftest.err'
41923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41924 (eval $ac_try) 2>&5
41926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41927 (exit $ac_status); }; } &&
41928 { ac_try='test -s conftest.$ac_objext'
41929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41930 (eval $ac_try) 2>&5
41932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41933 (exit $ac_status); }; }; then
41934 ac_header_compiler=yes
41936 echo "$as_me: failed program was:" >&5
41937 sed 's/^/| /' conftest.$ac_ext >&5
41939 ac_header_compiler=no
41941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41943 echo "${ECHO_T}$ac_header_compiler" >&6
41945 # Is the header present?
41946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41948 cat >conftest.$ac_ext <<_ACEOF
41951 cat confdefs.h >>conftest.$ac_ext
41952 cat >>conftest.$ac_ext <<_ACEOF
41953 /* end confdefs.h. */
41954 #include <$ac_header>
41956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41959 grep -v '^ *+' conftest.er1 >conftest.err
41961 cat conftest.err >&5
41962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41963 (exit $ac_status); } >/dev/null; then
41964 if test -s conftest.err; then
41965 ac_cpp_err=$ac_c_preproc_warn_flag
41966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41973 if test -z "$ac_cpp_err"; then
41974 ac_header_preproc=yes
41976 echo "$as_me: failed program was:" >&5
41977 sed 's/^/| /' conftest.$ac_ext >&5
41979 ac_header_preproc=no
41981 rm -f conftest.err conftest.$ac_ext
41982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41983 echo "${ECHO_T}$ac_header_preproc" >&6
41985 # So? What about this header?
41986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41992 ac_header_preproc=yes
41995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42009 ## ------------------------------------------ ##
42010 ## Report this to the AC_PACKAGE_NAME lists. ##
42011 ## ------------------------------------------ ##
42014 sed "s/^/$as_me: WARNING: /" >&2
42017 echo "$as_me:$LINENO: checking for $ac_header" >&5
42018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42020 echo $ECHO_N "(cached) $ECHO_C" >&6
42022 eval "$as_ac_Header=\$ac_header_preproc"
42024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42029 cat >>confdefs.h <<_ACEOF
42030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42038 if test $ac_cv_header_ltdl_h != yes ; then
42039 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
42040 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
42041 { (exit 1); exit 1; }; }
42043 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
42044 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
42045 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
42046 echo $ECHO_N "(cached) $ECHO_C" >&6
42048 ac_check_lib_save_LIBS=$LIBS
42049 LIBS="-lltdl $LIBS"
42050 cat >conftest.$ac_ext <<_ACEOF
42053 cat confdefs.h >>conftest.$ac_ext
42054 cat >>conftest.$ac_ext <<_ACEOF
42055 /* end confdefs.h. */
42057 /* Override any gcc2 internal prototype to avoid an error. */
42061 /* We use char because int might match the return type of a gcc2
42062 builtin and then its argument prototype would still apply. */
42072 rm -f conftest.$ac_objext conftest$ac_exeext
42073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42074 (eval $ac_link) 2>conftest.er1
42076 grep -v '^ *+' conftest.er1 >conftest.err
42078 cat conftest.err >&5
42079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42080 (exit $ac_status); } &&
42081 { ac_try='test -z "$ac_c_werror_flag"
42082 || test ! -s conftest.err'
42083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42084 (eval $ac_try) 2>&5
42086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42087 (exit $ac_status); }; } &&
42088 { ac_try='test -s conftest$ac_exeext'
42089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42090 (eval $ac_try) 2>&5
42092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42093 (exit $ac_status); }; }; then
42094 ac_cv_lib_ltdl_lt_dlinit=yes
42096 echo "$as_me: failed program was:" >&5
42097 sed 's/^/| /' conftest.$ac_ext >&5
42099 ac_cv_lib_ltdl_lt_dlinit=no
42101 rm -f conftest.err conftest.$ac_objext \
42102 conftest$ac_exeext conftest.$ac_ext
42103 LIBS=$ac_check_lib_save_LIBS
42105 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
42106 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
42107 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
42110 LIBSLAPI=libslapi.a
42111 LIBSLAPITOOLS=../libslapi.a
42113 cat >>confdefs.h <<\_ACEOF
42114 #define HAVE_LIBLTDL 1
42119 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
42120 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
42121 { (exit 1); exit 1; }; }
42126 cat >>confdefs.h <<\_ACEOF
42127 #define LDAP_SLAPI 1
42132 if test "$ol_enable_debug" != no ; then
42134 cat >>confdefs.h <<\_ACEOF
42135 #define LDAP_DEBUG 1
42139 if test "$ol_enable_syslog" = yes ; then
42141 cat >>confdefs.h <<\_ACEOF
42142 #define LDAP_SYSLOG 1
42146 if test "$ol_link_kbind" != no ; then
42148 cat >>confdefs.h <<\_ACEOF
42149 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
42153 if test "$ol_enable_proctitle" != no ; then
42155 cat >>confdefs.h <<\_ACEOF
42156 #define LDAP_PROCTITLE 1
42160 if test "$ol_enable_referrals" != no ; then
42162 cat >>confdefs.h <<\_ACEOF
42163 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
42167 if test "$ol_enable_local" != no; then
42169 cat >>confdefs.h <<\_ACEOF
42170 #define LDAP_PF_LOCAL 1
42174 if test "$ol_link_ipv6" != no; then
42176 cat >>confdefs.h <<\_ACEOF
42177 #define LDAP_PF_INET6 1
42181 if test "$ol_enable_cleartext" != no ; then
42183 cat >>confdefs.h <<\_ACEOF
42184 #define SLAPD_CLEARTEXT 1
42188 if test "$ol_enable_crypt" != no ; then
42190 cat >>confdefs.h <<\_ACEOF
42191 #define SLAPD_CRYPT 1
42195 if test "$ol_link_spasswd" != no ; then
42197 cat >>confdefs.h <<\_ACEOF
42198 #define SLAPD_SPASSWD 1
42202 if test "$ol_enable_multimaster" != no ; then
42204 cat >>confdefs.h <<\_ACEOF
42205 #define SLAPD_MULTIMASTER 1
42209 if test "$ol_enable_rlookups" != no ; then
42211 cat >>confdefs.h <<\_ACEOF
42212 #define SLAPD_RLOOKUPS 1
42216 if test "$ol_enable_aci" != no ; then
42218 cat >>confdefs.h <<\_ACEOF
42219 #define SLAPD_ACI_ENABLED 1
42222 WITH_ACI_ENABLED=yes
42224 WITH_ACI_ENABLED=no
42227 if test "$ol_link_modules" != no ; then
42229 cat >>confdefs.h <<\_ACEOF
42230 #define SLAPD_MODULES 1
42234 SLAPD_MODULES_LDFLAGS="-dlopen self"
42238 cat >>confdefs.h <<\_ACEOF
42239 #define SLAPD_MOD_STATIC 1
42243 cat >>confdefs.h <<\_ACEOF
42244 #define SLAPD_MOD_DYNAMIC 2
42248 if test "$ol_enable_bdb" != no ; then
42250 BUILD_BDB=$ol_enable_bdb
42251 if test "$ol_enable_bdb" = mod ; then
42252 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
42253 MFLAG=SLAPD_MOD_DYNAMIC
42255 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
42256 MFLAG=SLAPD_MOD_STATIC
42259 cat >>confdefs.h <<_ACEOF
42260 #define SLAPD_BDB $MFLAG
42265 if test "$ol_enable_dnssrv" != no ; then
42267 BUILD_DNSSRV=$ol_enable_dnssrv
42268 if test "$ol_enable_dnssrv" = mod ; then
42269 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
42270 MFLAG=SLAPD_MOD_DYNAMIC
42272 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
42273 MFLAG=SLAPD_MOD_STATIC
42276 cat >>confdefs.h <<_ACEOF
42277 #define SLAPD_DNSSRV $MFLAG
42282 if test "$ol_enable_hdb" != no ; then
42284 BUILD_HDB=$ol_enable_hdb
42285 if test "$ol_enable_hdb" = mod ; then
42286 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
42287 MFLAG=SLAPD_MOD_DYNAMIC
42289 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
42290 MFLAG=SLAPD_MOD_STATIC
42293 cat >>confdefs.h <<_ACEOF
42294 #define SLAPD_HDB $MFLAG
42299 if test "$ol_enable_ldap" != no ; then
42301 BUILD_LDAP=$ol_enable_ldap
42302 if test "$ol_enable_ldap" = mod ; then
42303 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
42304 MFLAG=SLAPD_MOD_DYNAMIC
42306 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
42307 MFLAG=SLAPD_MOD_STATIC
42310 cat >>confdefs.h <<_ACEOF
42311 #define SLAPD_LDAP $MFLAG
42316 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
42318 BUILD_LDBM=$ol_enable_ldbm
42319 if test "$ol_enable_ldbm" = mod ; then
42320 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
42321 MFLAG=SLAPD_MOD_DYNAMIC
42323 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
42324 MFLAG=SLAPD_MOD_STATIC
42327 cat >>confdefs.h <<_ACEOF
42328 #define SLAPD_LDBM $MFLAG
42333 if test "$ol_enable_meta" != no ; then
42335 BUILD_META=$ol_enable_meta
42337 if test "$ol_enable_meta" = mod ; then
42338 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
42339 MFLAG=SLAPD_MOD_DYNAMIC
42341 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
42342 MFLAG=SLAPD_MOD_STATIC
42345 cat >>confdefs.h <<_ACEOF
42346 #define SLAPD_META $MFLAG
42351 if test "$ol_enable_monitor" != no ; then
42353 BUILD_MONITOR=$ol_enable_monitor
42354 if test "$ol_enable_monitor" = mod ; then
42355 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
42356 MFLAG=SLAPD_MOD_DYNAMIC
42358 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
42359 MFLAG=SLAPD_MOD_STATIC
42362 cat >>confdefs.h <<_ACEOF
42363 #define SLAPD_MONITOR $MFLAG
42368 if test "$ol_enable_null" != no ; then
42370 BUILD_NULL=$ol_enable_null
42371 if test "$ol_enable_null" = mod ; then
42372 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
42373 MFLAG=SLAPD_MOD_DYNAMIC
42375 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
42376 MFLAG=SLAPD_MOD_STATIC
42379 cat >>confdefs.h <<_ACEOF
42380 #define SLAPD_NULL $MFLAG
42385 if test "$ol_enable_passwd" != no ; then
42387 BUILD_PASSWD=$ol_enable_passwd
42388 if test "$ol_enable_passwd" = mod ; then
42389 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
42390 MFLAG=SLAPD_MOD_DYNAMIC
42392 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
42393 MFLAG=SLAPD_MOD_STATIC
42396 cat >>confdefs.h <<_ACEOF
42397 #define SLAPD_PASSWD $MFLAG
42402 if test "$ol_link_perl" != no ; then
42404 BUILD_PERL=$ol_enable_perl
42405 if test "$ol_enable_perl" = mod ; then
42406 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
42407 MFLAG=SLAPD_MOD_DYNAMIC
42409 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
42410 MFLAG=SLAPD_MOD_STATIC
42413 cat >>confdefs.h <<_ACEOF
42414 #define SLAPD_PERL $MFLAG
42419 if test "$ol_enable_relay" != no ; then
42421 BUILD_RELAY=$ol_enable_relay
42422 if test "$ol_enable_relay" = mod ; then
42423 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
42424 MFLAG=SLAPD_MOD_DYNAMIC
42426 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
42427 MFLAG=SLAPD_MOD_STATIC
42430 cat >>confdefs.h <<_ACEOF
42431 #define SLAPD_RELAY $MFLAG
42436 if test "$ol_enable_shell" != no ; then
42437 if test "$ol_link_threads" != no ; then
42438 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
42439 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
42442 BUILD_SHELL=$ol_enable_shell
42443 if test "$ol_enable_shell" = mod ; then
42444 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
42445 MFLAG=SLAPD_MOD_DYNAMIC
42447 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
42448 MFLAG=SLAPD_MOD_STATIC
42451 cat >>confdefs.h <<_ACEOF
42452 #define SLAPD_SHELL $MFLAG
42457 if test "$ol_link_sql" != no ; then
42459 BUILD_SQL=$ol_enable_sql
42460 if test "$ol_enable_sql" = mod; then
42461 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
42462 MFLAG=SLAPD_MOD_DYNAMIC
42464 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
42465 MFLAG=SLAPD_MOD_STATIC
42468 cat >>confdefs.h <<_ACEOF
42469 #define SLAPD_SQL $MFLAG
42474 if test "$ol_enable_accesslog" != no ; then
42475 BUILD_ACCESSLOG=$ol_enable_accesslog
42476 if test "$ol_enable_accesslog" = mod ; then
42477 MFLAG=SLAPD_MOD_DYNAMIC
42478 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
42480 MFLAG=SLAPD_MOD_STATIC
42481 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
42484 cat >>confdefs.h <<_ACEOF
42485 #define SLAPD_OVER_ACCESSLOG $MFLAG
42490 if test "$ol_enable_denyop" != no ; then
42491 BUILD_DENYOP=$ol_enable_denyop
42492 if test "$ol_enable_denyop" = mod ; then
42493 MFLAG=SLAPD_MOD_DYNAMIC
42494 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
42496 MFLAG=SLAPD_MOD_STATIC
42497 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
42500 cat >>confdefs.h <<_ACEOF
42501 #define SLAPD_OVER_DENYOP $MFLAG
42506 if test "$ol_enable_dyngroup" != no ; then
42507 BUILD_DYNGROUP=$ol_enable_dyngroup
42508 if test "$ol_enable_dyngroup" = mod ; then
42509 MFLAG=SLAPD_MOD_DYNAMIC
42510 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
42512 MFLAG=SLAPD_MOD_STATIC
42513 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
42516 cat >>confdefs.h <<_ACEOF
42517 #define SLAPD_OVER_DYNGROUP $MFLAG
42522 if test "$ol_enable_dynlist" != no ; then
42523 BUILD_DYNLIST=$ol_enable_dynlist
42524 if test "$ol_enable_dynlist" = mod ; then
42525 MFLAG=SLAPD_MOD_DYNAMIC
42526 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
42528 MFLAG=SLAPD_MOD_STATIC
42529 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
42532 cat >>confdefs.h <<_ACEOF
42533 #define SLAPD_OVER_DYNLIST $MFLAG
42538 if test "$ol_enable_glue" != no ; then
42539 BUILD_GLUE=$ol_enable_glue
42540 if test "$ol_enable_glue" = mod ; then
42541 MFLAG=SLAPD_MOD_DYNAMIC
42542 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
42544 MFLAG=SLAPD_MOD_STATIC
42545 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
42548 cat >>confdefs.h <<_ACEOF
42549 #define SLAPD_OVER_GLUE $MFLAG
42554 if test "$ol_enable_lastmod" != no ; then
42555 BUILD_LASTMOD=$ol_enable_lastmod
42556 if test "$ol_enable_lastmod" = mod ; then
42557 MFLAG=SLAPD_MOD_DYNAMIC
42558 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
42560 MFLAG=SLAPD_MOD_STATIC
42561 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
42564 cat >>confdefs.h <<_ACEOF
42565 #define SLAPD_OVER_LASTMOD $MFLAG
42570 if test "$ol_enable_ppolicy" != no ; then
42571 BUILD_PPOLICY=$ol_enable_ppolicy
42572 if test "$ol_enable_ppolicy" = mod ; then
42573 MFLAG=SLAPD_MOD_DYNAMIC
42574 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
42576 MFLAG=SLAPD_MOD_STATIC
42577 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
42580 cat >>confdefs.h <<_ACEOF
42581 #define SLAPD_OVER_PPOLICY $MFLAG
42586 if test "$ol_enable_proxycache" != no ; then
42587 BUILD_PROXYCACHE=$ol_enable_proxycache
42588 if test "$ol_enable_proxycache" = mod ; then
42589 MFLAG=SLAPD_MOD_DYNAMIC
42590 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
42592 MFLAG=SLAPD_MOD_STATIC
42593 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
42596 cat >>confdefs.h <<_ACEOF
42597 #define SLAPD_OVER_PROXYCACHE $MFLAG
42602 if test "$ol_enable_refint" != no ; then
42603 BUILD_REFINT=$ol_enable_refint
42604 if test "$ol_enable_refint" = mod ; then
42605 MFLAG=SLAPD_MOD_DYNAMIC
42606 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
42608 MFLAG=SLAPD_MOD_STATIC
42609 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
42612 cat >>confdefs.h <<_ACEOF
42613 #define SLAPD_OVER_REFINT $MFLAG
42618 if test "$ol_enable_retcode" != no ; then
42619 BUILD_RETCODE=$ol_enable_retcode
42620 if test "$ol_enable_retcode" = mod ; then
42621 MFLAG=SLAPD_MOD_DYNAMIC
42622 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
42624 MFLAG=SLAPD_MOD_STATIC
42625 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
42628 cat >>confdefs.h <<_ACEOF
42629 #define SLAPD_OVER_RETCODE $MFLAG
42634 if test "$ol_enable_rwm" != no ; then
42636 BUILD_RWM=$ol_enable_rwm
42637 if test "$ol_enable_rwm" = mod ; then
42638 MFLAG=SLAPD_MOD_DYNAMIC
42639 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
42641 MFLAG=SLAPD_MOD_STATIC
42642 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
42645 cat >>confdefs.h <<_ACEOF
42646 #define SLAPD_OVER_RWM $MFLAG
42651 if test "$ol_enable_syncprov" != no ; then
42652 BUILD_SYNCPROV=$ol_enable_syncprov
42653 if test "$ol_enable_syncprov" = mod ; then
42654 MFLAG=SLAPD_MOD_DYNAMIC
42655 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
42657 MFLAG=SLAPD_MOD_STATIC
42658 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
42661 cat >>confdefs.h <<_ACEOF
42662 #define SLAPD_OVER_SYNCPROV $MFLAG
42667 if test "$ol_enable_translucent" != no ; then
42668 BUILD_TRANSLUCENT=$ol_enable_translucent
42669 if test "$ol_enable_translucent" = mod ; then
42670 MFLAG=SLAPD_MOD_DYNAMIC
42671 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
42673 MFLAG=SLAPD_MOD_STATIC
42674 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
42677 cat >>confdefs.h <<_ACEOF
42678 #define SLAPD_OVER_TRANSLUCENT $MFLAG
42683 if test "$ol_enable_unique" != no ; then
42684 BUILD_UNIQUE=$ol_enable_unique
42685 if test "$ol_enable_unique" = mod ; then
42686 MFLAG=SLAPD_MOD_DYNAMIC
42687 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
42689 MFLAG=SLAPD_MOD_STATIC
42690 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
42693 cat >>confdefs.h <<_ACEOF
42694 #define SLAPD_OVER_UNIQUE $MFLAG
42699 if test "$ol_enable_valsort" != no ; then
42700 BUILD_VALSORT=$ol_enable_valsort
42701 if test "$ol_enable_valsort" = mod ; then
42702 MFLAG=SLAPD_MOD_DYNAMIC
42703 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
42705 MFLAG=SLAPD_MOD_STATIC
42706 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
42709 cat >>confdefs.h <<_ACEOF
42710 #define SLAPD_OVER_VALSORT $MFLAG
42715 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
42716 $BUILD_SLAPD = yes ; then
42720 if test "$ol_enable_rewrite" != no ; then
42722 cat >>confdefs.h <<\_ACEOF
42723 #define ENABLE_REWRITE 1
42729 if test "$ol_enable_slapi" != no ; then
42731 cat >>confdefs.h <<\_ACEOF
42732 #define ENABLE_SLAPI 1
42736 SLAPD_SLAPI_DEPEND=libslapi.a
42741 if test "$ac_cv_mingw32" = yes ; then
42743 SLAPD_MODULES_LDFLAGS=
42828 # Check whether --with-xxinstall or --without-xxinstall was given.
42829 if test "${with_xxinstall+set}" = set; then
42830 withval="$with_xxinstall"
42835 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"
42838 ac_config_commands="$ac_config_commands default"
42842 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42843 # Let make expand exec_prefix.
42844 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42846 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42847 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42848 # trailing colons and then remove the whole line if VPATH becomes empty
42849 # (actually we leave an empty line to preserve line numbers).
42850 if test "x$srcdir" = x.; then
42851 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42852 s/:*\$(srcdir):*/:/;
42853 s/:*\${srcdir}:*/:/;
42855 s/^\([^=]*=[ ]*\):*/\1/;
42861 DEFS=-DHAVE_CONFIG_H
42865 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42866 # 1. Remove the extension, and $U if already installed.
42867 ac_i=`echo "$ac_i" |
42868 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
42870 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42871 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42873 LIBOBJS=$ac_libobjs
42875 LTLIBOBJS=$ac_ltlibobjs
42878 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42879 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42880 Usually this means the macro was only invoked conditionally." >&5
42881 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42882 Usually this means the macro was only invoked conditionally." >&2;}
42883 { (exit 1); exit 1; }; }
42885 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42886 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42887 Usually this means the macro was only invoked conditionally." >&5
42888 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42889 Usually this means the macro was only invoked conditionally." >&2;}
42890 { (exit 1); exit 1; }; }
42892 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42893 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42894 Usually this means the macro was only invoked conditionally." >&5
42895 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42896 Usually this means the macro was only invoked conditionally." >&2;}
42897 { (exit 1); exit 1; }; }
42900 : ${CONFIG_STATUS=./config.status}
42901 ac_clean_files_save=$ac_clean_files
42902 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42903 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42904 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42905 cat >$CONFIG_STATUS <<_ACEOF
42907 # Generated by $as_me.
42908 # Run this file to recreate the current configuration.
42909 # Compiler output produced by configure, useful for debugging
42910 # configure, is in config.log if it exists.
42913 ac_cs_recheck=false
42915 SHELL=\${CONFIG_SHELL-$SHELL}
42918 cat >>$CONFIG_STATUS <<\_ACEOF
42919 ## --------------------- ##
42920 ## M4sh Initialization. ##
42921 ## --------------------- ##
42923 # Be Bourne compatible
42924 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42927 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42928 # is contrary to our usage. Disable this feature.
42929 alias -g '${1+"$@"}'='"$@"'
42930 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42933 DUALCASE=1; export DUALCASE # for MKS sh
42935 # Support unset when possible.
42936 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42943 # Work around bugs in pre-3.0 UWIN ksh.
42944 $as_unset ENV MAIL MAILPATH
42951 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42952 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42953 LC_TELEPHONE LC_TIME
42955 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42956 eval $as_var=C; export $as_var
42962 # Required to use basename.
42963 if expr a : '\(a\)' >/dev/null 2>&1; then
42969 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42970 as_basename=basename
42976 # Name of the executable.
42977 as_me=`$as_basename "$0" ||
42978 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42979 X"$0" : 'X\(//\)$' \| \
42980 X"$0" : 'X\(/\)$' \| \
42981 . : '\(.\)' 2>/dev/null ||
42983 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42984 /^X\/\(\/\/\)$/{ s//\1/; q; }
42985 /^X\/\(\/\).*/{ s//\1/; q; }
42989 # PATH needs CR, and LINENO needs CR and PATH.
42990 # Avoid depending upon Character Ranges.
42991 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42992 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42993 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42994 as_cr_digits='0123456789'
42995 as_cr_alnum=$as_cr_Letters$as_cr_digits
42997 # The user is always right.
42998 if test "${PATH_SEPARATOR+set}" != set; then
42999 echo "#! /bin/sh" >conf$$.sh
43000 echo "exit 0" >>conf$$.sh
43002 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43011 as_lineno_1=$LINENO
43012 as_lineno_2=$LINENO
43013 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43014 test "x$as_lineno_1" != "x$as_lineno_2" &&
43015 test "x$as_lineno_3" = "x$as_lineno_2" || {
43016 # Find who we are. Look in the path if we contain no path at all
43019 *[\\/]* ) as_myself=$0 ;;
43020 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43021 for as_dir in $PATH
43024 test -z "$as_dir" && as_dir=.
43025 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43030 # We did not find ourselves, most probably we were run as `sh COMMAND'
43031 # in which case we are not to be found in the path.
43032 if test "x$as_myself" = x; then
43035 if test ! -f "$as_myself"; then
43036 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43037 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43038 { (exit 1); exit 1; }; }
43040 case $CONFIG_SHELL in
43042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43043 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43046 test -z "$as_dir" && as_dir=.
43047 for as_base in sh bash ksh sh5; do
43050 if ("$as_dir/$as_base" -c '
43051 as_lineno_1=$LINENO
43052 as_lineno_2=$LINENO
43053 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43054 test "x$as_lineno_1" != "x$as_lineno_2" &&
43055 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43056 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43057 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43058 CONFIG_SHELL=$as_dir/$as_base
43059 export CONFIG_SHELL
43060 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43068 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43069 # uniformly replaced by the line number. The first 'sed' inserts a
43070 # line-number line before each line; the second 'sed' does the real
43071 # work. The second script uses 'N' to pair each line-number line
43072 # with the numbered line, and appends trailing '-' during
43073 # substitution so that $LINENO is not a special case at line end.
43074 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43075 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
43076 sed '=' <$as_myself |
43081 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43084 s,^['$as_cr_digits']*\n,,
43085 ' >$as_me.lineno &&
43086 chmod +x $as_me.lineno ||
43087 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43088 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43089 { (exit 1); exit 1; }; }
43091 # Don't try to exec as it changes $[0], causing all sort of problems
43092 # (the dirname of $[0] is not the place where we might find the
43093 # original and so on. Autoconf is especially sensible to this).
43095 # Exit status is that of the last command.
43100 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43101 *c*,-n*) ECHO_N= ECHO_C='
43103 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43104 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43107 if expr a : '\(a\)' >/dev/null 2>&1; then
43113 rm -f conf$$ conf$$.exe conf$$.file
43115 if ln -s conf$$.file conf$$ 2>/dev/null; then
43116 # We could just check for DJGPP; but this test a) works b) is more generic
43117 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43118 if test -f conf$$.exe; then
43119 # Don't use ln at all; we don't have any links
43124 elif ln conf$$.file conf$$ 2>/dev/null; then
43129 rm -f conf$$ conf$$.exe conf$$.file
43131 if mkdir -p . 2>/dev/null; then
43134 test -d ./-p && rmdir ./-p
43138 as_executable_p="test -f"
43140 # Sed expression to map a string onto a valid CPP name.
43141 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43143 # Sed expression to map a string onto a valid variable name.
43144 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43148 # We need space, tab and new line, in precisely that order.
43158 # Open the log real soon, to keep \$[0] and so on meaningful, and to
43159 # report actual input values of CONFIG_FILES etc. instead of their
43160 # values after options handling. Logging --version etc. is OK.
43164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43165 ## Running $as_me. ##
43170 This file was extended by $as_me, which was
43171 generated by GNU Autoconf 2.59. Invocation command line was
43173 CONFIG_FILES = $CONFIG_FILES
43174 CONFIG_HEADERS = $CONFIG_HEADERS
43175 CONFIG_LINKS = $CONFIG_LINKS
43176 CONFIG_COMMANDS = $CONFIG_COMMANDS
43180 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43184 # Files that config.status was made for.
43185 if test -n "$ac_config_files"; then
43186 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43189 if test -n "$ac_config_headers"; then
43190 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43193 if test -n "$ac_config_links"; then
43194 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43197 if test -n "$ac_config_commands"; then
43198 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43201 cat >>$CONFIG_STATUS <<\_ACEOF
43204 \`$as_me' instantiates files from templates according to the
43205 current configuration.
43207 Usage: $0 [OPTIONS] [FILE]...
43209 -h, --help print this help, then exit
43210 -V, --version print version number, then exit
43211 -q, --quiet do not print progress messages
43212 -d, --debug don't remove temporary files
43213 --recheck update $as_me by reconfiguring in the same conditions
43214 --file=FILE[:TEMPLATE]
43215 instantiate the configuration file FILE
43216 --header=FILE[:TEMPLATE]
43217 instantiate the configuration header FILE
43219 Configuration files:
43222 Configuration headers:
43225 Configuration commands:
43228 Report bugs to <bug-autoconf@gnu.org>."
43231 cat >>$CONFIG_STATUS <<_ACEOF
43234 configured by $0, generated by GNU Autoconf 2.59,
43235 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43237 Copyright (C) 2003 Free Software Foundation, Inc.
43238 This config.status script is free software; the Free Software Foundation
43239 gives unlimited permission to copy, distribute and modify it."
43244 cat >>$CONFIG_STATUS <<\_ACEOF
43245 # If no file are specified by the user, then we need to provide default
43246 # value. By we need to know if files were specified by the user.
43252 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43253 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43261 *) # This is not an option, so the user has probably given explicit
43264 ac_need_defaults=false;;
43268 # Handling of the options.
43270 cat >>$CONFIG_STATUS <<\_ACEOF
43271 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43273 --version | --vers* | -V )
43274 echo "$ac_cs_version"; exit 0 ;;
43276 # Conflict between --help and --header
43277 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43278 Try \`$0 --help' for more information." >&5
43279 echo "$as_me: error: ambiguous option: $1
43280 Try \`$0 --help' for more information." >&2;}
43281 { (exit 1); exit 1; }; };;
43282 --help | --hel | -h )
43283 echo "$ac_cs_usage"; exit 0 ;;
43284 --debug | --d* | -d )
43286 --file | --fil | --fi | --f )
43288 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43289 ac_need_defaults=false;;
43290 --header | --heade | --head | --hea )
43292 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43293 ac_need_defaults=false;;
43294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43295 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43298 # This is an error.
43299 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43300 Try \`$0 --help' for more information." >&5
43301 echo "$as_me: error: unrecognized option: $1
43302 Try \`$0 --help' for more information." >&2;}
43303 { (exit 1); exit 1; }; } ;;
43305 *) ac_config_targets="$ac_config_targets $1" ;;
43311 ac_configure_extra_args=
43313 if $ac_cs_silent; then
43315 ac_configure_extra_args="$ac_configure_extra_args --silent"
43319 cat >>$CONFIG_STATUS <<_ACEOF
43320 if \$ac_cs_recheck; then
43321 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43322 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43327 cat >>$CONFIG_STATUS <<_ACEOF
43329 # INIT-COMMANDS section.
43332 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
43333 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
43339 cat >>$CONFIG_STATUS <<\_ACEOF
43340 for ac_config_target in $ac_config_targets
43342 case "$ac_config_target" in
43343 # Handling of arguments.
43344 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
43345 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
43346 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
43347 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
43348 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
43349 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
43350 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
43351 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
43352 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
43353 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
43354 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
43355 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43356 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43357 "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" ;;
43358 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43359 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43360 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43361 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
43362 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
43363 "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" ;;
43364 "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" ;;
43365 "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" ;;
43366 "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" ;;
43367 "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" ;;
43368 "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" ;;
43369 "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" ;;
43370 "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" ;;
43371 "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" ;;
43372 "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" ;;
43373 "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" ;;
43374 "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" ;;
43375 "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" ;;
43376 "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" ;;
43377 "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" ;;
43378 "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" ;;
43379 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
43380 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
43381 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
43382 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
43383 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
43384 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
43385 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43386 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
43387 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
43388 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
43389 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43390 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43391 { (exit 1); exit 1; }; };;
43395 # If the user did not use the arguments to specify the items to instantiate,
43396 # then the envvar interface is used. Set only those that are not.
43397 # We use the long form for the default assignment because of an extremely
43398 # bizarre bug on SunOS 4.1.3.
43399 if $ac_need_defaults; then
43400 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43401 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43402 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43405 # Have a temporary directory for convenience. Make it in the build tree
43406 # simply because there is no reason to put it here, and in addition,
43407 # creating and moving files from /tmp can sometimes cause problems.
43408 # Create a temporary directory, and hook for its removal unless debugging.
43411 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43412 trap '{ (exit 1); exit 1; }' 1 2 13 15
43415 # Create a (secure) tmp directory for tmp files.
43418 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43419 test -n "$tmp" && test -d "$tmp"
43422 tmp=./confstat$$-$RANDOM
43423 (umask 077 && mkdir $tmp)
43426 echo "$me: cannot create a temporary directory in ." >&2
43427 { (exit 1); exit 1; }
43432 cat >>$CONFIG_STATUS <<_ACEOF
43435 # CONFIG_FILES section.
43438 # No need to generate the scripts if there are no CONFIG_FILES.
43439 # This happens for instance when ./config.status config.h
43440 if test -n "\$CONFIG_FILES"; then
43441 # Protect against being on the right side of a sed subst in config.status.
43442 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43443 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43444 s,@SHELL@,$SHELL,;t t
43445 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43446 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43447 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43448 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43449 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43450 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43451 s,@exec_prefix@,$exec_prefix,;t t
43452 s,@prefix@,$prefix,;t t
43453 s,@program_transform_name@,$program_transform_name,;t t
43454 s,@bindir@,$bindir,;t t
43455 s,@sbindir@,$sbindir,;t t
43456 s,@libexecdir@,$libexecdir,;t t
43457 s,@datadir@,$datadir,;t t
43458 s,@sysconfdir@,$sysconfdir,;t t
43459 s,@sharedstatedir@,$sharedstatedir,;t t
43460 s,@localstatedir@,$localstatedir,;t t
43461 s,@libdir@,$libdir,;t t
43462 s,@includedir@,$includedir,;t t
43463 s,@oldincludedir@,$oldincludedir,;t t
43464 s,@infodir@,$infodir,;t t
43465 s,@mandir@,$mandir,;t t
43466 s,@build_alias@,$build_alias,;t t
43467 s,@host_alias@,$host_alias,;t t
43468 s,@target_alias@,$target_alias,;t t
43469 s,@DEFS@,$DEFS,;t t
43470 s,@ECHO_C@,$ECHO_C,;t t
43471 s,@ECHO_N@,$ECHO_N,;t t
43472 s,@ECHO_T@,$ECHO_T,;t t
43473 s,@LIBS@,$LIBS,;t t
43474 s,@build@,$build,;t t
43475 s,@build_cpu@,$build_cpu,;t t
43476 s,@build_vendor@,$build_vendor,;t t
43477 s,@build_os@,$build_os,;t t
43478 s,@host@,$host,;t t
43479 s,@host_cpu@,$host_cpu,;t t
43480 s,@host_vendor@,$host_vendor,;t t
43481 s,@host_os@,$host_os,;t t
43482 s,@target@,$target,;t t
43483 s,@target_cpu@,$target_cpu,;t t
43484 s,@target_vendor@,$target_vendor,;t t
43485 s,@target_os@,$target_os,;t t
43486 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43487 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43488 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43489 s,@CYGPATH_W@,$CYGPATH_W,;t t
43490 s,@PACKAGE@,$PACKAGE,;t t
43491 s,@VERSION@,$VERSION,;t t
43492 s,@ACLOCAL@,$ACLOCAL,;t t
43493 s,@AUTOCONF@,$AUTOCONF,;t t
43494 s,@AUTOMAKE@,$AUTOMAKE,;t t
43495 s,@AUTOHEADER@,$AUTOHEADER,;t t
43496 s,@MAKEINFO@,$MAKEINFO,;t t
43497 s,@install_sh@,$install_sh,;t t
43498 s,@STRIP@,$STRIP,;t t
43499 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43500 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
43501 s,@mkdir_p@,$mkdir_p,;t t
43503 s,@SET_MAKE@,$SET_MAKE,;t t
43504 s,@am__leading_dot@,$am__leading_dot,;t t
43505 s,@AMTAR@,$AMTAR,;t t
43506 s,@am__tar@,$am__tar,;t t
43507 s,@am__untar@,$am__untar,;t t
43508 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
43509 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
43510 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
43511 s,@top_builddir@,$top_builddir,;t t
43512 s,@ldap_subdir@,$ldap_subdir,;t t
43515 s,@CFLAGS@,$CFLAGS,;t t
43516 s,@LDFLAGS@,$LDFLAGS,;t t
43517 s,@CPPFLAGS@,$CPPFLAGS,;t t
43518 s,@ac_ct_CC@,$ac_ct_CC,;t t
43519 s,@EXEEXT@,$EXEEXT,;t t
43520 s,@OBJEXT@,$OBJEXT,;t t
43521 s,@DEPDIR@,$DEPDIR,;t t
43522 s,@am__include@,$am__include,;t t
43523 s,@am__quote@,$am__quote,;t t
43524 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
43525 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
43526 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
43527 s,@CCDEPMODE@,$CCDEPMODE,;t t
43528 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
43529 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
43530 s,@EGREP@,$EGREP,;t t
43531 s,@LN_S@,$LN_S,;t t
43532 s,@ECHO@,$ECHO,;t t
43533 s,@ac_ct_AR@,$ac_ct_AR,;t t
43534 s,@RANLIB@,$RANLIB,;t t
43535 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43536 s,@DLLTOOL@,$DLLTOOL,;t t
43537 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
43539 s,@ac_ct_AS@,$ac_ct_AS,;t t
43540 s,@OBJDUMP@,$OBJDUMP,;t t
43541 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
43543 s,@LIBTOOL@,$LIBTOOL,;t t
43544 s,@PERLBIN@,$PERLBIN,;t t
43545 s,@OL_MKDEP@,$OL_MKDEP,;t t
43546 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
43547 s,@LTSTATIC@,$LTSTATIC,;t t
43548 s,@LIBOBJS@,$LIBOBJS,;t t
43549 s,@LIBSRCS@,$LIBSRCS,;t t
43550 s,@PLAT@,$PLAT,;t t
43551 s,@WITH_SASL@,$WITH_SASL,;t t
43552 s,@WITH_TLS@,$WITH_TLS,;t t
43553 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
43554 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
43555 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
43556 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
43557 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
43558 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
43559 s,@BUILD_BDB@,$BUILD_BDB,;t t
43560 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
43561 s,@BUILD_HDB@,$BUILD_HDB,;t t
43562 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
43563 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
43564 s,@BUILD_META@,$BUILD_META,;t t
43565 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
43566 s,@BUILD_NULL@,$BUILD_NULL,;t t
43567 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
43568 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
43569 s,@BUILD_PERL@,$BUILD_PERL,;t t
43570 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
43571 s,@BUILD_SQL@,$BUILD_SQL,;t t
43572 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
43573 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
43574 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
43575 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
43576 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
43577 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
43578 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
43579 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
43580 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
43581 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
43582 s,@BUILD_RWM@,$BUILD_RWM,;t t
43583 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
43584 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
43585 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
43586 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
43587 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
43588 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
43589 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
43590 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
43591 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
43592 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
43593 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
43594 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
43595 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
43596 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
43597 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
43598 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
43599 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
43600 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
43601 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
43602 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
43603 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
43604 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
43605 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
43606 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
43607 s,@SASL_LIBS@,$SASL_LIBS,;t t
43608 s,@TLS_LIBS@,$TLS_LIBS,;t t
43609 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
43610 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
43611 s,@LIBSLAPI@,$LIBSLAPI,;t t
43612 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
43613 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
43614 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
43615 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
43616 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
43617 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
43618 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
43619 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43624 cat >>$CONFIG_STATUS <<\_ACEOF
43625 # Split the substitutions into bite-sized pieces for seds with
43626 # small command number limits, like on Digital OSF/1 and HP-UX.
43627 ac_max_sed_lines=48
43628 ac_sed_frag=1 # Number of current file.
43629 ac_beg=1 # First line for current file.
43630 ac_end=$ac_max_sed_lines # Line after last line for current file.
43633 while $ac_more_lines; do
43634 if test $ac_beg -gt 1; then
43635 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43637 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43639 if test ! -s $tmp/subs.frag; then
43640 ac_more_lines=false
43642 # The purpose of the label and of the branching condition is to
43643 # speed up the sed processing (if there are no `@' at all, there
43644 # is no need to browse any of the substitutions).
43645 # These are the two extra sed commands mentioned above.
43647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43648 if test -z "$ac_sed_cmds"; then
43649 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
43651 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
43653 ac_sed_frag=`expr $ac_sed_frag + 1`
43655 ac_end=`expr $ac_end + $ac_max_sed_lines`
43658 if test -z "$ac_sed_cmds"; then
43661 fi # test -n "$CONFIG_FILES"
43664 cat >>$CONFIG_STATUS <<\_ACEOF
43665 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43666 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43668 - | *:- | *:-:* ) # input from stdin
43670 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43671 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43672 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43673 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43674 * ) ac_file_in=$ac_file.in ;;
43677 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43678 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43680 X"$ac_file" : 'X\(//\)[^/]' \| \
43681 X"$ac_file" : 'X\(//\)$' \| \
43682 X"$ac_file" : 'X\(/\)' \| \
43683 . : '\(.\)' 2>/dev/null ||
43685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43687 /^X\(\/\/\)$/{ s//\1/; q; }
43688 /^X\(\/\).*/{ s//\1/; q; }
43690 { if $as_mkdir_p; then
43695 while test ! -d "$as_dir"; do
43696 as_dirs="$as_dir $as_dirs"
43697 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43699 X"$as_dir" : 'X\(//\)[^/]' \| \
43700 X"$as_dir" : 'X\(//\)$' \| \
43701 X"$as_dir" : 'X\(/\)' \| \
43702 . : '\(.\)' 2>/dev/null ||
43704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43706 /^X\(\/\/\)$/{ s//\1/; q; }
43707 /^X\(\/\).*/{ s//\1/; q; }
43710 test ! -n "$as_dirs" || mkdir $as_dirs
43711 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43712 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43713 { (exit 1); exit 1; }; }; }
43717 if test "$ac_dir" != .; then
43718 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43719 # A "../" for each directory in $ac_dir_suffix.
43720 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43722 ac_dir_suffix= ac_top_builddir=
43726 .) # No --srcdir option. We are building in place.
43728 if test -z "$ac_top_builddir"; then
43731 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43733 [\\/]* | ?:[\\/]* ) # Absolute path.
43734 ac_srcdir=$srcdir$ac_dir_suffix;
43735 ac_top_srcdir=$srcdir ;;
43736 *) # Relative path.
43737 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43738 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43741 # Do not use `cd foo && pwd` to compute absolute paths, because
43742 # the directories may not exist.
43744 .) ac_abs_builddir="$ac_dir";;
43747 .) ac_abs_builddir=`pwd`;;
43748 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43749 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43752 case $ac_abs_builddir in
43753 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43755 case ${ac_top_builddir}. in
43756 .) ac_abs_top_builddir=$ac_abs_builddir;;
43757 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43758 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43761 case $ac_abs_builddir in
43762 .) ac_abs_srcdir=$ac_srcdir;;
43765 .) ac_abs_srcdir=$ac_abs_builddir;;
43766 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43767 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43770 case $ac_abs_builddir in
43771 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43773 case $ac_top_srcdir in
43774 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43775 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43776 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43782 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43783 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43786 if test x"$ac_file" != x-; then
43787 { echo "$as_me:$LINENO: creating $ac_file" >&5
43788 echo "$as_me: creating $ac_file" >&6;}
43791 # Let's still pretend it is `configure' which instantiates (i.e., don't
43792 # use $as_me), people would be surprised to read:
43793 # /* config.h. Generated by config.status. */
43794 if test x"$ac_file" = x-; then
43797 configure_input="$ac_file. "
43799 configure_input=$configure_input"Generated from `echo $ac_file_in |
43800 sed 's,.*/,,'` by configure."
43802 # First look for the input files in the build tree, otherwise in the
43804 ac_file_inputs=`IFS=:
43805 for f in $ac_file_in; do
43807 -) echo $tmp/stdin ;;
43809 # Absolute (can't be DOS-style, as IFS=:)
43810 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43811 echo "$as_me: error: cannot find input file: $f" >&2;}
43812 { (exit 1); exit 1; }; }
43815 if test -f "$f"; then
43818 elif test -f "$srcdir/$f"; then
43823 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43824 echo "$as_me: error: cannot find input file: $f" >&2;}
43825 { (exit 1); exit 1; }; }
43828 done` || { (exit 1); exit 1; }
43830 cat >>$CONFIG_STATUS <<_ACEOF
43834 cat >>$CONFIG_STATUS <<\_ACEOF
43836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43837 s,@configure_input@,$configure_input,;t t
43838 s,@srcdir@,$ac_srcdir,;t t
43839 s,@abs_srcdir@,$ac_abs_srcdir,;t t
43840 s,@top_srcdir@,$ac_top_srcdir,;t t
43841 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43842 s,@builddir@,$ac_builddir,;t t
43843 s,@abs_builddir@,$ac_abs_builddir,;t t
43844 s,@top_builddir@,$ac_top_builddir,;t t
43845 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43846 s,@INSTALL@,$ac_INSTALL,;t t
43847 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43849 if test x"$ac_file" != x-; then
43850 mv $tmp/out $ac_file
43858 cat >>$CONFIG_STATUS <<\_ACEOF
43861 # CONFIG_HEADER section.
43864 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43865 # NAME is the cpp macro being defined and VALUE is the value it is being given.
43867 # ac_d sets the value in "#define NAME VALUE" lines.
43868 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43869 ac_dB='[ ].*$,\1#\2'
43872 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
43873 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
43874 ac_uB='$,\1#\2define\3'
43878 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43879 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43881 - | *:- | *:-:* ) # input from stdin
43883 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43884 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43885 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43886 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43887 * ) ac_file_in=$ac_file.in ;;
43890 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43891 echo "$as_me: creating $ac_file" >&6;}
43893 # First look for the input files in the build tree, otherwise in the
43895 ac_file_inputs=`IFS=:
43896 for f in $ac_file_in; do
43898 -) echo $tmp/stdin ;;
43900 # Absolute (can't be DOS-style, as IFS=:)
43901 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43902 echo "$as_me: error: cannot find input file: $f" >&2;}
43903 { (exit 1); exit 1; }; }
43904 # Do quote $f, to prevent DOS paths from being IFS'd.
43907 if test -f "$f"; then
43910 elif test -f "$srcdir/$f"; then
43915 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43916 echo "$as_me: error: cannot find input file: $f" >&2;}
43917 { (exit 1); exit 1; }; }
43920 done` || { (exit 1); exit 1; }
43921 # Remove the trailing spaces.
43922 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
43926 # Transform confdefs.h into two sed scripts, `conftest.defines' and
43927 # `conftest.undefs', that substitutes the proper values into
43928 # config.h.in to produce config.h. The first handles `#define'
43929 # templates, and the second `#undef' templates.
43930 # And first: Protect against being on the right side of a sed subst in
43931 # config.status. Protect against being in an unquoted here document
43932 # in config.status.
43933 rm -f conftest.defines conftest.undefs
43934 # Using a here document instead of a string reduces the quoting nightmare.
43935 # Putting comments in sed scripts is not portable.
43937 # `end' is used to avoid that the second main sed command (meant for
43938 # 0-ary CPP macros) applies to n-ary macro definitions.
43939 # See the Autoconf documentation for `clear'.
43940 cat >confdef2sed.sed <<\_ACEOF
43945 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
43947 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
43950 # If some macros were called several times there might be several times
43951 # the same #defines, which is useless. Nevertheless, we may not want to
43952 # sort them, since we want the *last* AC-DEFINE to be honored.
43953 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43954 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43955 rm -f confdef2sed.sed
43957 # This sed command replaces #undef with comments. This is necessary, for
43958 # example, in the case of _POSIX_SOURCE, which is predefined and required
43959 # on some systems where configure will not decide to define it.
43960 cat >>conftest.undefs <<\_ACEOF
43961 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
43964 # Break up conftest.defines because some shells have a limit on the size
43965 # of here documents, and old seds have small limits too (100 cmds).
43966 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
43967 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
43968 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43969 echo ' :' >>$CONFIG_STATUS
43970 rm -f conftest.tail
43971 while grep . conftest.defines >/dev/null
43973 # Write a limited-size here document to $tmp/defines.sed.
43974 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43975 # Speed up: don't consider the non `#define' lines.
43976 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
43977 # Work around the forget-to-reset-the-flag bug.
43978 echo 't clr' >>$CONFIG_STATUS
43979 echo ': clr' >>$CONFIG_STATUS
43980 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43982 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43984 mv $tmp/out $tmp/in
43986 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43987 rm -f conftest.defines
43988 mv conftest.tail conftest.defines
43990 rm -f conftest.defines
43991 echo ' fi # grep' >>$CONFIG_STATUS
43992 echo >>$CONFIG_STATUS
43994 # Break up conftest.undefs because some shells have a limit on the size
43995 # of here documents, and old seds have small limits too (100 cmds).
43996 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43997 rm -f conftest.tail
43998 while grep . conftest.undefs >/dev/null
44000 # Write a limited-size here document to $tmp/undefs.sed.
44001 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44002 # Speed up: don't consider the non `#undef'
44003 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
44004 # Work around the forget-to-reset-the-flag bug.
44005 echo 't clr' >>$CONFIG_STATUS
44006 echo ': clr' >>$CONFIG_STATUS
44007 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44009 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44011 mv $tmp/out $tmp/in
44013 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44014 rm -f conftest.undefs
44015 mv conftest.tail conftest.undefs
44017 rm -f conftest.undefs
44019 cat >>$CONFIG_STATUS <<\_ACEOF
44020 # Let's still pretend it is `configure' which instantiates (i.e., don't
44021 # use $as_me), people would be surprised to read:
44022 # /* config.h. Generated by config.status. */
44023 if test x"$ac_file" = x-; then
44024 echo "/* Generated by configure. */" >$tmp/config.h
44026 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
44028 cat $tmp/in >>$tmp/config.h
44030 if test x"$ac_file" != x-; then
44031 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
44032 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44033 echo "$as_me: $ac_file is unchanged" >&6;}
44035 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44037 X"$ac_file" : 'X\(//\)[^/]' \| \
44038 X"$ac_file" : 'X\(//\)$' \| \
44039 X"$ac_file" : 'X\(/\)' \| \
44040 . : '\(.\)' 2>/dev/null ||
44042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44043 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44044 /^X\(\/\/\)$/{ s//\1/; q; }
44045 /^X\(\/\).*/{ s//\1/; q; }
44047 { if $as_mkdir_p; then
44052 while test ! -d "$as_dir"; do
44053 as_dirs="$as_dir $as_dirs"
44054 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44056 X"$as_dir" : 'X\(//\)[^/]' \| \
44057 X"$as_dir" : 'X\(//\)$' \| \
44058 X"$as_dir" : 'X\(/\)' \| \
44059 . : '\(.\)' 2>/dev/null ||
44061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44062 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44063 /^X\(\/\/\)$/{ s//\1/; q; }
44064 /^X\(\/\).*/{ s//\1/; q; }
44067 test ! -n "$as_dirs" || mkdir $as_dirs
44068 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44069 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44070 { (exit 1); exit 1; }; }; }
44073 mv $tmp/config.h $ac_file
44077 rm -f $tmp/config.h
44079 # Compute $ac_file's index in $config_headers.
44081 for _am_header in $config_headers :; do
44082 case $_am_header in
44083 $ac_file | $ac_file:* )
44086 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
44089 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
44090 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44091 X$ac_file : 'X\(//\)[^/]' \| \
44092 X$ac_file : 'X\(//\)$' \| \
44093 X$ac_file : 'X\(/\)' \| \
44094 . : '\(.\)' 2>/dev/null ||
44096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44097 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44098 /^X\(\/\/\)$/{ s//\1/; q; }
44099 /^X\(\/\).*/{ s//\1/; q; }
44100 s/.*/./; q'`/stamp-h$_am_stamp_count
44103 cat >>$CONFIG_STATUS <<\_ACEOF
44106 # CONFIG_COMMANDS section.
44108 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44109 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44110 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44111 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44112 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44113 X"$ac_dest" : 'X\(//\)[^/]' \| \
44114 X"$ac_dest" : 'X\(//\)$' \| \
44115 X"$ac_dest" : 'X\(/\)' \| \
44116 . : '\(.\)' 2>/dev/null ||
44118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44120 /^X\(\/\/\)$/{ s//\1/; q; }
44121 /^X\(\/\).*/{ s//\1/; q; }
44123 { if $as_mkdir_p; then
44128 while test ! -d "$as_dir"; do
44129 as_dirs="$as_dir $as_dirs"
44130 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44132 X"$as_dir" : 'X\(//\)[^/]' \| \
44133 X"$as_dir" : 'X\(//\)$' \| \
44134 X"$as_dir" : 'X\(/\)' \| \
44135 . : '\(.\)' 2>/dev/null ||
44137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44139 /^X\(\/\/\)$/{ s//\1/; q; }
44140 /^X\(\/\).*/{ s//\1/; q; }
44143 test ! -n "$as_dirs" || mkdir $as_dirs
44144 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44145 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44146 { (exit 1); exit 1; }; }; }
44150 if test "$ac_dir" != .; then
44151 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44152 # A "../" for each directory in $ac_dir_suffix.
44153 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44155 ac_dir_suffix= ac_top_builddir=
44159 .) # No --srcdir option. We are building in place.
44161 if test -z "$ac_top_builddir"; then
44164 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44166 [\\/]* | ?:[\\/]* ) # Absolute path.
44167 ac_srcdir=$srcdir$ac_dir_suffix;
44168 ac_top_srcdir=$srcdir ;;
44169 *) # Relative path.
44170 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44171 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44174 # Do not use `cd foo && pwd` to compute absolute paths, because
44175 # the directories may not exist.
44177 .) ac_abs_builddir="$ac_dir";;
44180 .) ac_abs_builddir=`pwd`;;
44181 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44182 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44185 case $ac_abs_builddir in
44186 .) ac_abs_top_builddir=${ac_top_builddir}.;;
44188 case ${ac_top_builddir}. in
44189 .) ac_abs_top_builddir=$ac_abs_builddir;;
44190 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44191 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44194 case $ac_abs_builddir in
44195 .) ac_abs_srcdir=$ac_srcdir;;
44198 .) ac_abs_srcdir=$ac_abs_builddir;;
44199 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44200 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44203 case $ac_abs_builddir in
44204 .) ac_abs_top_srcdir=$ac_top_srcdir;;
44206 case $ac_top_srcdir in
44207 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44208 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44209 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44214 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44215 echo "$as_me: executing $ac_dest commands" >&6;}
44217 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44218 # Strip MF so we end up with the name of the file.
44219 mf=`echo "$mf" | sed -e 's/:.*$//'`
44220 # Check whether this is an Automake generated Makefile or not.
44221 # We used to match only the files named `Makefile.in', but
44222 # some people rename them; so instead we look at the file content.
44223 # Grep'ing the first line is not enough: some people post-process
44224 # each Makefile.in and add a new line on top of each file to say so.
44225 # So let's grep whole file.
44226 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
44227 dirpart=`(dirname "$mf") 2>/dev/null ||
44228 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44229 X"$mf" : 'X\(//\)[^/]' \| \
44230 X"$mf" : 'X\(//\)$' \| \
44231 X"$mf" : 'X\(/\)' \| \
44232 . : '\(.\)' 2>/dev/null ||
44234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44236 /^X\(\/\/\)$/{ s//\1/; q; }
44237 /^X\(\/\).*/{ s//\1/; q; }
44242 # Extract the definition of DEPDIR, am__include, and am__quote
44243 # from the Makefile without running `make'.
44244 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
44245 test -z "$DEPDIR" && continue
44246 am__include=`sed -n 's/^am__include = //p' < "$mf"`
44247 test -z "am__include" && continue
44248 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
44249 # When using ansi2knr, U may be empty or an underscore; expand it
44250 U=`sed -n 's/^U = //p' < "$mf"`
44251 # Find all dependency output files, they are included files with
44252 # $(DEPDIR) in their names. We invoke sed twice because it is the
44253 # simplest approach to changing $(DEPDIR) to its actual value in the
44255 for file in `sed -n "
44256 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44257 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44258 # Make sure the directory exists.
44259 test -f "$dirpart/$file" && continue
44260 fdir=`(dirname "$file") 2>/dev/null ||
44261 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44262 X"$file" : 'X\(//\)[^/]' \| \
44263 X"$file" : 'X\(//\)$' \| \
44264 X"$file" : 'X\(/\)' \| \
44265 . : '\(.\)' 2>/dev/null ||
44267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44269 /^X\(\/\/\)$/{ s//\1/; q; }
44270 /^X\(\/\).*/{ s//\1/; q; }
44272 { if $as_mkdir_p; then
44273 mkdir -p $dirpart/$fdir
44275 as_dir=$dirpart/$fdir
44277 while test ! -d "$as_dir"; do
44278 as_dirs="$as_dir $as_dirs"
44279 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44281 X"$as_dir" : 'X\(//\)[^/]' \| \
44282 X"$as_dir" : 'X\(//\)$' \| \
44283 X"$as_dir" : 'X\(/\)' \| \
44284 . : '\(.\)' 2>/dev/null ||
44286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44288 /^X\(\/\/\)$/{ s//\1/; q; }
44289 /^X\(\/\).*/{ s//\1/; q; }
44292 test ! -n "$as_dirs" || mkdir $as_dirs
44293 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
44294 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
44295 { (exit 1); exit 1; }; }; }
44297 # echo "creating $dirpart/$file"
44298 echo '# dummy' > "$dirpart/$file"
44305 BACKENDSC="servers/slapd/backends.c"
44306 echo "Making $BACKENDSC"
44308 cat > $BACKENDSC << ENDX
44309 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
44311 * Copyright 1998-2005 The OpenLDAP Foundation.
44312 * All rights reserved.
44314 * Redistribution and use in source and binary forms, with or without
44315 * modification, are permitted only as authorized by the OpenLDAP
44318 * A copy of this license is available in the file LICENSE in the
44319 * top-level directory of the distribution or, alternatively, at
44320 * <http://www.OpenLDAP.org/license.html>.
44322 /* This file is automatically generated by configure; please do not edit. */
44324 #include "portable.h"
44328 if test "${STATIC_BACKENDS}"; then
44329 for b in config ${STATIC_BACKENDS}; do
44330 bb=`echo "${b}" | sed -e 's/back-//'`
44331 cat >> $BACKENDSC << ENDX
44332 extern BI_init ${bb}_back_initialize;
44336 cat >> $BACKENDSC << ENDX
44338 BackendInfo slap_binfo[] = {
44341 for b in config ${STATIC_BACKENDS}; do
44342 bb=`echo "${b}" | sed -e 's/back-//'`
44343 echo " Add ${bb} ..."
44344 cat >> $BACKENDSC << ENDX
44345 { "${bb}", ${bb}_back_initialize },
44349 cat >> $BACKENDSC << ENDX
44353 /* end of generated file */
44357 echo Please run \"make depend\" to build dependencies
44363 cat >>$CONFIG_STATUS <<\_ACEOF
44365 { (exit 0); exit 0; }
44367 chmod +x $CONFIG_STATUS
44368 ac_clean_files=$ac_clean_files_save
44371 # configure is writing to config.log, and then calls config.status.
44372 # config.status does its own redirection, appending to config.log.
44373 # Unfortunately, on DOS this fails, as config.log is still kept open
44374 # by configure, so config.status won't be able to write to it; its
44375 # output is simply discarded. So we exec the FD to /dev/null,
44376 # effectively closing config.log, so it can be properly (re)opened and
44377 # appended to by config.status. When coming back to configure, we
44378 # need to make the FD available again.
44379 if test "$no_create" != yes; then
44381 ac_config_status_args=
44382 test "$silent" = yes &&
44383 ac_config_status_args="$ac_config_status_args --quiet"
44385 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44387 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44388 # would make configure fail if this is the last instruction.
44389 $ac_cs_success || { (exit 1); exit 1; }