2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.560.2.31 2006/11/07 20:57:24 ando Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293 echo_test_string=`eval $cmd` &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
931 # Report the --help message.
933 if test "$ac_init_help" = "long"; then
934 # Omit some internal or obsolete options to make the list less imposing.
935 # This message is too long to be a string in the A/UX 3.1 sh.
937 \`configure' configures this package to adapt to many kinds of systems.
939 Usage: $0 [OPTION]... [VAR=VALUE]...
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE. See below for descriptions of some of the useful variables.
944 Defaults for the options are specified in brackets.
947 -h, --help display this help and exit
948 --help=short display options specific to this package
949 --help=recursive display the short help of all the included packages
950 -V, --version display version information and exit
951 -q, --quiet, --silent do not print \`checking...' messages
952 --cache-file=FILE cache test results in FILE [disabled]
953 -C, --config-cache alias for \`--cache-file=config.cache'
954 -n, --no-create do not create output files
955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960 Installation directories:
961 --prefix=PREFIX install architecture-independent files in PREFIX
963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
971 For better control, use the options below.
973 Fine tuning of the installation directories:
974 --bindir=DIR user executables [EPREFIX/bin]
975 --sbindir=DIR system admin executables [EPREFIX/sbin]
976 --libexecdir=DIR program executables [EPREFIX/libexec]
977 --datadir=DIR read-only architecture-independent data [PREFIX/share]
978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
981 --libdir=DIR object code libraries [EPREFIX/lib]
982 --includedir=DIR C header files [PREFIX/include]
983 --oldincludedir=DIR C header files for non-gcc [/usr/include]
984 --infodir=DIR info documentation [PREFIX/info]
985 --mandir=DIR man documentation [PREFIX/man]
991 --program-prefix=PREFIX prepend PREFIX to installed program names
992 --program-suffix=SUFFIX append SUFFIX to installed program names
993 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996 --build=BUILD configure for building on BUILD [guessed]
997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
998 --target=TARGET configure for building compilers for TARGET [HOST]
1002 if test -n "$ac_init_help"; then
1007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1009 --enable-debug enable debugging [yes]
1010 --enable-dynamic enable linking built binaries with dynamic libs [no]
1011 --enable-syslog enable syslog support [auto]
1012 --enable-proctitle enable proctitle support [yes]
1013 --enable-ipv6 enable IPv6 support [auto]
1014 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1016 SLAPD (Standalone LDAP Daemon) Options:
1017 --enable-slapd enable building slapd [yes]
1018 --enable-aci enable per-object ACIs (experimental) [no]
1019 --enable-cleartext enable cleartext passwords [yes]
1020 --enable-crypt enable crypt(3) passwords [no]
1021 --enable-lmpasswd enable LAN Manager passwords [no]
1022 --enable-spasswd enable (Cyrus) SASL password verification [no]
1023 --enable-modules enable dynamic module support [no]
1024 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1025 --enable-rlookups enable reverse lookups of client hostnames [no]
1026 --enable-slapi enable SLAPI support (experimental) [no]
1027 --enable-slp enable SLPv2 support [no]
1028 --enable-wrappers enable tcp wrapper support [no]
1030 SLAPD Backend Options:
1031 --enable-backends enable all available backends no|yes|mod
1032 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1033 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1034 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1035 --enable-ldap enable ldap backend no|yes|mod [no]
1036 --enable-ldbm enable ldbm backend no|yes|mod [no]
1037 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1039 --enable-meta enable metadirectory backend no|yes|mod [no]
1040 --enable-monitor enable monitor backend no|yes|mod [yes]
1041 --enable-null enable null backend no|yes|mod [no]
1042 --enable-passwd enable passwd backend no|yes|mod [no]
1043 --enable-perl enable perl backend no|yes|mod [no]
1044 --enable-relay enable relay backend no|yes|mod [yes]
1045 --enable-shell enable shell backend no|yes|mod [no]
1046 --enable-sql enable sql backend no|yes|mod [no]
1048 SLAPD Overlay Options:
1049 --enable-overlays enable all available overlays no|yes|mod
1050 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1051 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1052 --enable-denyop Deny Operation overlay no|yes|mod [no]
1053 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1054 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1055 --enable-lastmod Last Modification overlay no|yes|mod [no]
1056 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1057 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1058 --enable-refint Referential Integrity overlay no|yes|mod [no]
1059 --enable-retcode Return Code testing overlay no|yes|mod [no]
1060 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1061 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1062 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1063 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1064 --enable-valsort Value Sorting overlay no|yes|mod [no]
1066 SLURPD (Replication Daemon) Options:
1067 --enable-slurpd enable building slurpd [auto]
1069 Library Generation & Linking Options
1070 --enable-static[=PKGS]
1071 build static libraries [default=yes]
1072 --enable-shared[=PKGS]
1073 build shared libraries [default=yes]
1074 --enable-fast-install[=PKGS]
1075 optimize for fast installation [default=yes]
1076 --disable-dependency-tracking speeds up one-time build
1077 --enable-dependency-tracking do not reject slow dependency extractors
1078 --disable-libtool-lock avoid locking (might break parallel builds)
1081 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1082 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1083 --with-subdir=DIR change default subdirectory used for installs
1084 --with-cyrus-sasl with Cyrus SASL support [auto]
1085 --with-fetch with fetch(3) URL support [auto]
1086 --with-threads with threads [auto]
1087 --with-tls with TLS/SSL support [auto]
1088 --with-yielding-select with implicitly yielding select [auto]
1089 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1090 --with-odbc with specific ODBC support iodbc|unixodbc|auto [auto]
1092 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1093 --with-pic try to use only PIC/non-PIC objects [default=use
1096 include additional configurations [automatic]
1098 See INSTALL file for further details.
1100 Some influential environment variables:
1101 CC C compiler command
1102 CFLAGS C compiler flags
1103 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1104 nonstandard directory <lib dir>
1105 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106 headers in a nonstandard directory <include dir>
1109 Use these variables to override the choices made by `configure' or to help
1110 it to find libraries and programs with nonstandard names/locations.
1115 if test "$ac_init_help" = "recursive"; then
1116 # If there are subdirs, report their specific --help.
1118 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119 test -d $ac_dir || continue
1122 if test "$ac_dir" != .; then
1123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124 # A "../" for each directory in $ac_dir_suffix.
1125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127 ac_dir_suffix= ac_top_builddir=
1131 .) # No --srcdir option. We are building in place.
1133 if test -z "$ac_top_builddir"; then
1136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138 [\\/]* | ?:[\\/]* ) # Absolute path.
1139 ac_srcdir=$srcdir$ac_dir_suffix;
1140 ac_top_srcdir=$srcdir ;;
1142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1149 .) ac_abs_builddir="$ac_dir";;
1152 .) ac_abs_builddir=`pwd`;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 case ${ac_top_builddir}. in
1161 .) ac_abs_top_builddir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1170 .) ac_abs_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 case $ac_top_srcdir in
1179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1186 # Check for guested configure; otherwise get Cygnus style configure.
1187 if test -f $ac_srcdir/configure.gnu; then
1189 $SHELL $ac_srcdir/configure.gnu --help=recursive
1190 elif test -f $ac_srcdir/configure; then
1192 $SHELL $ac_srcdir/configure --help=recursive
1193 elif test -f $ac_srcdir/configure.ac ||
1194 test -f $ac_srcdir/configure.in; then
1196 $ac_configure --help
1198 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1212 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1213 Restrictions apply, see COPYRIGHT and LICENSE files.
1219 This file contains any messages produced by compilers while
1220 running configure, to aid debugging if configure makes a mistake.
1222 It was created by $as_me, which was
1223 generated by GNU Autoconf 2.59. Invocation command line was
1234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1243 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1244 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1247 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1248 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1249 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257 test -z "$as_dir" && as_dir=.
1258 echo "PATH: $as_dir"
1273 # Keep a trace of the command line.
1274 # Strip out --no-create and --no-recursion so they do not pile up.
1275 # Strip out --silent because we don't want to record it for future runs.
1276 # Also quote any args containing shell meta-characters.
1277 # Make two passes to allow for proper duplicate-argument suppression.
1282 ac_must_keep_next=false
1288 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290 | -silent | --silent | --silen | --sile | --sil)
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1298 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299 if test $ac_must_keep_next = true; then
1300 ac_must_keep_next=false # Got value, back to normal.
1303 *=* | --config-cache | -C | -disable-* | --disable-* \
1304 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306 | -with-* | --with-* | -without-* | --without-* | --x)
1307 case "$ac_configure_args0 " in
1308 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1311 -* ) ac_must_keep_next=true ;;
1314 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315 # Get rid of the leading space.
1321 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1324 # When interrupted or exit'd, cleanup temporary files, and complete
1325 # config.log. We remove comments because anyway the quotes in there
1326 # would cause problems or look ugly.
1327 # WARNING: Be sure not to use single quotes in there, as some shells,
1328 # such as our DU 5.0 friend, will then `close' the trap.
1329 trap 'exit_status=$?
1330 # Save into config.log some information that might help in debugging.
1335 ## ---------------- ##
1336 ## Cache variables. ##
1337 ## ---------------- ##
1340 # The following way of writing the cache mishandles newlines in values,
1343 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1346 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1351 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1358 ## ----------------- ##
1359 ## Output variables. ##
1360 ## ----------------- ##
1363 for ac_var in $ac_subst_vars
1365 eval ac_val=$`echo $ac_var`
1366 echo "$ac_var='"'"'$ac_val'"'"'"
1370 if test -n "$ac_subst_files"; then
1377 for ac_var in $ac_subst_files
1379 eval ac_val=$`echo $ac_var`
1380 echo "$ac_var='"'"'$ac_val'"'"'"
1385 if test -s confdefs.h; then
1392 sed "/^$/d" confdefs.h | sort
1395 test "$ac_signal" != 0 &&
1396 echo "$as_me: caught signal $ac_signal"
1397 echo "$as_me: exit $exit_status"
1399 rm -f core *.core &&
1400 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1403 for ac_signal in 1 2 13 15; do
1404 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1408 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1409 rm -rf conftest* confdefs.h
1410 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1413 # Predefined preprocessor variables.
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_NAME "$PACKAGE_NAME"
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_STRING "$PACKAGE_STRING"
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1440 # Let the site file select an alternate cache file if it wants to.
1441 # Prefer explicitly selected file to automatically selected ones.
1442 if test -z "$CONFIG_SITE"; then
1443 if test "x$prefix" != xNONE; then
1444 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1446 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1449 for ac_site_file in $CONFIG_SITE; do
1450 if test -r "$ac_site_file"; then
1451 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452 echo "$as_me: loading site script $ac_site_file" >&6;}
1453 sed 's/^/| /' "$ac_site_file" >&5
1459 # Check that the precious variables saved in the cache have kept the same
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465 eval ac_new_set=\$ac_env_${ac_var}_set
1466 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467 eval ac_new_val="\$ac_env_${ac_var}_value"
1468 case $ac_old_set,$ac_new_set in
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1479 if test "x$ac_old_val" != "x$ac_new_val"; then
1480 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1483 echo "$as_me: former value: $ac_old_val" >&2;}
1484 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1485 echo "$as_me: current value: $ac_new_val" >&2;}
1486 ac_cache_corrupted=:
1489 # Pass precious variables to config.status.
1490 if test "$ac_new_set" = set; then
1492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494 *) ac_arg=$ac_var=$ac_new_val ;;
1496 case " $ac_configure_args " in
1497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1498 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502 if $ac_cache_corrupted; then
1503 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507 { (exit 1); exit 1; }; }
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1559 for ac_dir in build $srcdir/build; do
1560 if test -f $ac_dir/install-sh; then
1562 ac_install_sh="$ac_aux_dir/install-sh -c"
1564 elif test -f $ac_dir/install.sh; then
1566 ac_install_sh="$ac_aux_dir/install.sh -c"
1568 elif test -f $ac_dir/shtool; then
1570 ac_install_sh="$ac_aux_dir/shtool install -c"
1574 if test -z "$ac_aux_dir"; then
1575 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1576 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1577 { (exit 1); exit 1; }; }
1579 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1580 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1581 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1583 eval `$ac_aux_dir/version.sh`
1584 if test -z "$OL_STRING"; then
1585 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1586 echo "$as_me: error: could not determine version" >&2;}
1587 { (exit 1); exit 1; }; }
1590 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1591 ac_cv_shtool="$ac_aux_dir/shtool"
1593 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1594 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1595 { (exit 1); exit 1; }; }
1598 SHTOOL="$ac_cv_shtool"
1600 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1601 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1604 if test -d $ac_aux_dir/CVS; then
1605 OPENLDAP_CVS="(from CVS sources) "
1608 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1610 # Make sure we can run config.sub.
1611 $ac_config_sub sun4 >/dev/null 2>&1 ||
1612 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1613 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1614 { (exit 1); exit 1; }; }
1616 echo "$as_me:$LINENO: checking build system type" >&5
1617 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1618 if test "${ac_cv_build+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 ac_cv_build_alias=$build_alias
1622 test -z "$ac_cv_build_alias" &&
1623 ac_cv_build_alias=`$ac_config_guess`
1624 test -z "$ac_cv_build_alias" &&
1625 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1626 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1627 { (exit 1); exit 1; }; }
1628 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1629 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1630 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1631 { (exit 1); exit 1; }; }
1634 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1635 echo "${ECHO_T}$ac_cv_build" >&6
1637 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1642 echo "$as_me:$LINENO: checking host system type" >&5
1643 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1644 if test "${ac_cv_host+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 ac_cv_host_alias=$host_alias
1648 test -z "$ac_cv_host_alias" &&
1649 ac_cv_host_alias=$ac_cv_build_alias
1650 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1651 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1652 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1653 { (exit 1); exit 1; }; }
1656 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1657 echo "${ECHO_T}$ac_cv_host" >&6
1659 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1660 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1661 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1664 echo "$as_me:$LINENO: checking target system type" >&5
1665 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1666 if test "${ac_cv_target+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 ac_cv_target_alias=$target_alias
1670 test "x$ac_cv_target_alias" = "x" &&
1671 ac_cv_target_alias=$ac_cv_host_alias
1672 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1673 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1674 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1675 { (exit 1); exit 1; }; }
1678 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1679 echo "${ECHO_T}$ac_cv_target" >&6
1680 target=$ac_cv_target
1681 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1682 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1683 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1686 # The aliases save the names the user supplied, while $host etc.
1687 # will get canonicalized.
1688 test -n "$target_alias" &&
1689 test "$program_prefix$program_suffix$program_transform_name" = \
1691 program_prefix=${target_alias}-
1693 am__api_version="1.9"
1694 # Find a good install program. We prefer a C program (faster),
1695 # so one script is as good as another. But avoid the broken or
1696 # incompatible versions:
1697 # SysV /etc/install, /usr/sbin/install
1698 # SunOS /usr/etc/install
1699 # IRIX /sbin/install
1701 # AmigaOS /C/install, which installs bootblocks on floppy discs
1702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1705 # OS/2's system install, which has a completely different semantic
1706 # ./install, which can be erroneously created by make from ./install.sh.
1707 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1708 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1709 if test -z "$INSTALL"; then
1710 if test "${ac_cv_path_install+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 test -z "$as_dir" && as_dir=.
1718 # Account for people who put trailing slashes in PATH elements.
1720 ./ | .// | /cC/* | \
1721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1722 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1725 # OSF1 and SCO ODT 3.0 have their own names for install.
1726 # Don't use installbsd from OSF since it installs stuff as root
1728 for ac_prog in ginstall scoinst install; do
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1731 if test $ac_prog = install &&
1732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1733 # AIX install. It has an incompatible calling convention.
1735 elif test $ac_prog = install &&
1736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1737 # program-specific install script used by HP pwplus--don't use.
1740 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1752 if test "${ac_cv_path_install+set}" = set; then
1753 INSTALL=$ac_cv_path_install
1755 # As a last resort, use the slow shell script. We don't cache a
1756 # path for INSTALL within a source directory, because that will
1757 # break other packages using the cache if that directory is
1758 # removed, or if the path is relative.
1759 INSTALL=$ac_install_sh
1762 echo "$as_me:$LINENO: result: $INSTALL" >&5
1763 echo "${ECHO_T}$INSTALL" >&6
1765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1766 # It thinks the first close brace ends the variable substitution.
1767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1773 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1774 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1777 echo timestamp > conftest.file
1778 # Do `set' in a subshell so we don't clobber the current shell's
1779 # arguments. Must try -L first in case configure is actually a
1780 # symlink; some systems play weird games with the mod time of symlinks
1781 # (eg FreeBSD returns the mod time of the symlink's containing
1784 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1785 if test "$*" = "X"; then
1787 set X `ls -t $srcdir/configure conftest.file`
1790 if test "$*" != "X $srcdir/configure conftest.file" \
1791 && test "$*" != "X conftest.file $srcdir/configure"; then
1793 # If neither matched, then we have a broken ls. This can happen
1794 # if, for instance, CONFIG_SHELL is bash and it inherits a
1795 # broken ls alias from the environment. This has actually
1796 # happened. Such a system could not be considered "sane".
1797 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1798 alias in your environment" >&5
1799 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1800 alias in your environment" >&2;}
1801 { (exit 1); exit 1; }; }
1804 test "$2" = conftest.file
1810 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1811 Check your system clock" >&5
1812 echo "$as_me: error: newly created file is older than distributed files!
1813 Check your system clock" >&2;}
1814 { (exit 1); exit 1; }; }
1816 echo "$as_me:$LINENO: result: yes" >&5
1817 echo "${ECHO_T}yes" >&6
1818 test "$program_prefix" != NONE &&
1819 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1820 # Use a double $ so make ignores it.
1821 test "$program_suffix" != NONE &&
1822 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1823 # Double any \ or $. echo might interpret backslashes.
1824 # By default was `s,x,x', remove it if useless.
1825 cat <<\_ACEOF >conftest.sed
1826 s/[\\$]/&&/g;s/;s,x,x,$//
1828 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1831 # expand $ac_aux_dir to an absolute path
1832 am_aux_dir=`cd $ac_aux_dir && pwd`
1834 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1835 # Use eval to expand $SHELL
1836 if eval "$MISSING --run true"; then
1837 am_missing_run="$MISSING --run "
1840 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1841 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1844 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1845 # We used to keeping the `.' as first argument, in order to
1846 # allow $(mkdir_p) to be used without argument. As in
1847 # $(mkdir_p) $(somedir)
1848 # where $(somedir) is conditionally defined. However this is wrong
1850 # 1. if the package is installed by a user who cannot write `.'
1851 # make install will fail,
1852 # 2. the above comment should most certainly read
1853 # $(mkdir_p) $(DESTDIR)$(somedir)
1854 # so it does not work when $(somedir) is undefined and
1855 # $(DESTDIR) is not.
1856 # To support the latter case, we have to write
1857 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1858 # so the `.' trick is pointless.
1859 mkdir_p='mkdir -p --'
1861 # On NextStep and OpenStep, the `mkdir' command does not
1862 # recognize any option. It will interpret all options as
1863 # directories to create, and then abort because `.' already
1865 for d in ./-p ./--version;
1867 test -d $d && rmdir $d
1869 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1870 if test -f "$ac_aux_dir/mkinstalldirs"; then
1871 mkdir_p='$(mkinstalldirs)'
1873 mkdir_p='$(install_sh) -d'
1877 for ac_prog in gawk mawk nawk awk
1879 # Extract the first word of "$ac_prog", so it can be a program name with args.
1880 set dummy $ac_prog; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_AWK+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$AWK"; then
1887 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_AWK="$ac_prog"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 if test -n "$AWK"; then
1907 echo "$as_me:$LINENO: result: $AWK" >&5
1908 echo "${ECHO_T}$AWK" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1914 test -n "$AWK" && break
1917 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1918 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1919 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1920 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 cat >conftest.make <<\_ACEOF
1925 @echo 'ac_maketemp="$(MAKE)"'
1927 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1928 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1929 if test -n "$ac_maketemp"; then
1930 eval ac_cv_prog_make_${ac_make}_set=yes
1932 eval ac_cv_prog_make_${ac_make}_set=no
1936 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1937 echo "$as_me:$LINENO: result: yes" >&5
1938 echo "${ECHO_T}yes" >&6
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943 SET_MAKE="MAKE=${MAKE-make}"
1946 rm -rf .tst 2>/dev/null
1947 mkdir .tst 2>/dev/null
1948 if test -d .tst; then
1953 rmdir .tst 2>/dev/null
1955 # test to see if srcdir already configured
1956 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1957 test -f $srcdir/config.status; then
1958 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1959 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1960 { (exit 1); exit 1; }; }
1963 # test whether we have cygpath
1964 if test -z "$CYGPATH_W"; then
1965 if (cygpath --version) >/dev/null 2>/dev/null; then
1966 CYGPATH_W='cygpath -w'
1973 # Define the identity of the package.
1978 # Some tools Automake needs.
1980 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1983 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1986 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1989 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1992 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1994 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1996 # Installed binaries are usually stripped using `strip' when the user
1997 # run `make install-strip'. However `strip' might not be the right
1998 # tool to use in cross-compilation environments, therefore Automake
1999 # will honor the `STRIP' environment variable to overrule this program.
2000 if test "$cross_compiling" != no; then
2001 if test -n "$ac_tool_prefix"; then
2002 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2003 set dummy ${ac_tool_prefix}strip; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_STRIP+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$STRIP"; then
2010 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 STRIP=$ac_cv_prog_STRIP
2029 if test -n "$STRIP"; then
2030 echo "$as_me:$LINENO: result: $STRIP" >&5
2031 echo "${ECHO_T}$STRIP" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2038 if test -z "$ac_cv_prog_STRIP"; then
2040 # Extract the first word of "strip", so it can be a program name with args.
2041 set dummy strip; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 if test -n "$ac_ct_STRIP"; then
2048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_ac_ct_STRIP="strip"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2068 if test -n "$ac_ct_STRIP"; then
2069 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2070 echo "${ECHO_T}$ac_ct_STRIP" >&6
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2078 STRIP="$ac_cv_prog_STRIP"
2082 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2084 # We need awk for the "check" target. The system "awk" is bad on
2086 # Always define AMTAR for backward compatibility.
2088 AMTAR=${AMTAR-"${am_missing_run}tar"}
2090 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2096 cat >>confdefs.h <<_ACEOF
2097 #define OPENLDAP_PACKAGE "$PACKAGE"
2101 cat >>confdefs.h <<_ACEOF
2102 #define OPENLDAP_VERSION "$VERSION"
2107 cat >>confdefs.h <<_ACEOF
2108 #define LDAP_VENDOR_VERSION $OL_API_INC
2112 cat >>confdefs.h <<_ACEOF
2113 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2117 cat >>confdefs.h <<_ACEOF
2118 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2122 cat >>confdefs.h <<_ACEOF
2123 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2127 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2129 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2131 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2139 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2141 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2143 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2146 echo "$as_me:$LINENO: checking configure arguments" >&5
2147 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2152 ldap_subdir="/openldap"
2155 # Check whether --with-subdir or --without-subdir was given.
2156 if test "${with_subdir+set}" = set; then
2157 withval="$with_subdir"
2164 ldap_subdir="$withval"
2167 ldap_subdir="/$withval"
2173 # OpenLDAP --enable-debug
2175 # Check whether --enable-debug or --disable-debug was given.
2176 if test "${enable_debug+set}" = set; then
2177 enableval="$enable_debug"
2180 for ol_val in auto yes no ; do
2181 if test "$enableval" = "$ol_val" ; then
2185 if test "$ol_arg" = "invalid" ; then
2186 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2187 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2188 { (exit 1); exit 1; }; }
2190 ol_enable_debug="$ol_arg"
2195 # end --enable-debug
2196 # OpenLDAP --enable-dynamic
2198 # Check whether --enable-dynamic or --disable-dynamic was given.
2199 if test "${enable_dynamic+set}" = set; then
2200 enableval="$enable_dynamic"
2203 for ol_val in auto yes no ; do
2204 if test "$enableval" = "$ol_val" ; then
2208 if test "$ol_arg" = "invalid" ; then
2209 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2210 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2211 { (exit 1); exit 1; }; }
2213 ol_enable_dynamic="$ol_arg"
2216 ol_enable_dynamic=no
2218 # end --enable-dynamic
2219 # OpenLDAP --enable-syslog
2221 # Check whether --enable-syslog or --disable-syslog was given.
2222 if test "${enable_syslog+set}" = set; then
2223 enableval="$enable_syslog"
2226 for ol_val in auto yes no ; do
2227 if test "$enableval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2233 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2234 { (exit 1); exit 1; }; }
2236 ol_enable_syslog="$ol_arg"
2239 ol_enable_syslog=auto
2241 # end --enable-syslog
2242 # OpenLDAP --enable-proctitle
2244 # Check whether --enable-proctitle or --disable-proctitle was given.
2245 if test "${enable_proctitle+set}" = set; then
2246 enableval="$enable_proctitle"
2249 for ol_val in auto yes no ; do
2250 if test "$enableval" = "$ol_val" ; then
2254 if test "$ol_arg" = "invalid" ; then
2255 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2256 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2257 { (exit 1); exit 1; }; }
2259 ol_enable_proctitle="$ol_arg"
2262 ol_enable_proctitle=yes
2264 # end --enable-proctitle
2265 ol_enable_referrals=${ol_enable_referrals-no}
2266 ol_enable_kbind=${ol_enable_kbind-no}
2267 # OpenLDAP --enable-ipv6
2269 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2270 if test "${enable_ipv6+set}" = set; then
2271 enableval="$enable_ipv6"
2274 for ol_val in auto yes no ; do
2275 if test "$enableval" = "$ol_val" ; then
2279 if test "$ol_arg" = "invalid" ; then
2280 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2281 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2282 { (exit 1); exit 1; }; }
2284 ol_enable_ipv6="$ol_arg"
2290 # OpenLDAP --enable-local
2292 # Check whether --enable-local or --disable-local was given.
2293 if test "${enable_local+set}" = set; then
2294 enableval="$enable_local"
2297 for ol_val in auto yes no ; do
2298 if test "$enableval" = "$ol_val" ; then
2302 if test "$ol_arg" = "invalid" ; then
2303 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2304 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2305 { (exit 1); exit 1; }; }
2307 ol_enable_local="$ol_arg"
2310 ol_enable_local=auto
2312 # end --enable-local
2314 # OpenLDAP --with-cyrus_sasl
2316 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2317 if test "${with_cyrus_sasl+set}" = set; then
2318 withval="$with_cyrus_sasl"
2321 for ol_val in auto yes no ; do
2322 if test "$withval" = "$ol_val" ; then
2326 if test "$ol_arg" = "invalid" ; then
2327 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2328 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2329 { (exit 1); exit 1; }; }
2331 ol_with_cyrus_sasl="$ol_arg"
2334 ol_with_cyrus_sasl="auto"
2335 fi; # end --with-cyrus_sasl
2337 # OpenLDAP --with-fetch
2339 # Check whether --with-fetch or --without-fetch was given.
2340 if test "${with_fetch+set}" = set; then
2341 withval="$with_fetch"
2344 for ol_val in auto yes no ; do
2345 if test "$withval" = "$ol_val" ; then
2349 if test "$ol_arg" = "invalid" ; then
2350 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2351 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2352 { (exit 1); exit 1; }; }
2354 ol_with_fetch="$ol_arg"
2357 ol_with_fetch="auto"
2358 fi; # end --with-fetch
2360 ol_with_kerberos=${ol_with_kerberos-auto}
2361 # OpenLDAP --with-threads
2363 # Check whether --with-threads or --without-threads was given.
2364 if test "${with_threads+set}" = set; then
2365 withval="$with_threads"
2368 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2369 if test "$withval" = "$ol_val" ; then
2373 if test "$ol_arg" = "invalid" ; then
2374 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2375 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2376 { (exit 1); exit 1; }; }
2378 ol_with_threads="$ol_arg"
2381 ol_with_threads="auto"
2382 fi; # end --with-threads
2384 # OpenLDAP --with-tls
2386 # Check whether --with-tls or --without-tls was given.
2387 if test "${with_tls+set}" = set; then
2391 for ol_val in auto openssl yes no ; do
2392 if test "$withval" = "$ol_val" ; then
2396 if test "$ol_arg" = "invalid" ; then
2397 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2398 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2399 { (exit 1); exit 1; }; }
2401 ol_with_tls="$ol_arg"
2405 fi; # end --with-tls
2407 # OpenLDAP --with-yielding_select
2409 # Check whether --with-yielding_select or --without-yielding_select was given.
2410 if test "${with_yielding_select+set}" = set; then
2411 withval="$with_yielding_select"
2414 for ol_val in auto yes no manual ; do
2415 if test "$withval" = "$ol_val" ; then
2419 if test "$ol_arg" = "invalid" ; then
2420 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2421 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2422 { (exit 1); exit 1; }; }
2424 ol_with_yielding_select="$ol_arg"
2427 ol_with_yielding_select="auto"
2428 fi; # end --with-yielding_select
2430 # OpenLDAP --with-mp
2432 # Check whether --with-mp or --without-mp was given.
2433 if test "${with_mp+set}" = set; then
2437 for ol_val in auto longlong long bignum gmp yes no ; do
2438 if test "$withval" = "$ol_val" ; then
2442 if test "$ol_arg" = "invalid" ; then
2443 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2444 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2445 { (exit 1); exit 1; }; }
2447 ol_with_mp="$ol_arg"
2453 # OpenLDAP --with-odbc
2455 # Check whether --with-odbc or --without-odbc was given.
2456 if test "${with_odbc+set}" = set; then
2457 withval="$with_odbc"
2460 for ol_val in auto iodbc unixodbc ; do
2461 if test "$withval" = "$ol_val" ; then
2465 if test "$ol_arg" = "invalid" ; then
2466 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2467 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2468 { (exit 1); exit 1; }; }
2470 ol_with_odbc="$ol_arg"
2474 fi; # end --with-odbc
2478 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2479 if test "${enable_xxslapdoptions+set}" = set; then
2480 enableval="$enable_xxslapdoptions"
2483 # OpenLDAP --enable-slapd
2485 # Check whether --enable-slapd or --disable-slapd was given.
2486 if test "${enable_slapd+set}" = set; then
2487 enableval="$enable_slapd"
2490 for ol_val in auto yes no ; do
2491 if test "$enableval" = "$ol_val" ; then
2495 if test "$ol_arg" = "invalid" ; then
2496 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2497 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2498 { (exit 1); exit 1; }; }
2500 ol_enable_slapd="$ol_arg"
2505 # end --enable-slapd
2506 # OpenLDAP --enable-aci
2508 # Check whether --enable-aci or --disable-aci was given.
2509 if test "${enable_aci+set}" = set; then
2510 enableval="$enable_aci"
2513 for ol_val in auto yes no ; do
2514 if test "$enableval" = "$ol_val" ; then
2518 if test "$ol_arg" = "invalid" ; then
2519 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2520 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2521 { (exit 1); exit 1; }; }
2523 ol_enable_aci="$ol_arg"
2529 # OpenLDAP --enable-cleartext
2531 # Check whether --enable-cleartext or --disable-cleartext was given.
2532 if test "${enable_cleartext+set}" = set; then
2533 enableval="$enable_cleartext"
2536 for ol_val in auto yes no ; do
2537 if test "$enableval" = "$ol_val" ; then
2541 if test "$ol_arg" = "invalid" ; then
2542 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2543 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2544 { (exit 1); exit 1; }; }
2546 ol_enable_cleartext="$ol_arg"
2549 ol_enable_cleartext=yes
2551 # end --enable-cleartext
2552 # OpenLDAP --enable-crypt
2554 # Check whether --enable-crypt or --disable-crypt was given.
2555 if test "${enable_crypt+set}" = set; then
2556 enableval="$enable_crypt"
2559 for ol_val in auto yes no ; do
2560 if test "$enableval" = "$ol_val" ; then
2564 if test "$ol_arg" = "invalid" ; then
2565 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2566 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2567 { (exit 1); exit 1; }; }
2569 ol_enable_crypt="$ol_arg"
2574 # end --enable-crypt
2575 # OpenLDAP --enable-lmpasswd
2577 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2578 if test "${enable_lmpasswd+set}" = set; then
2579 enableval="$enable_lmpasswd"
2582 for ol_val in auto yes no ; do
2583 if test "$enableval" = "$ol_val" ; then
2587 if test "$ol_arg" = "invalid" ; then
2588 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2589 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2590 { (exit 1); exit 1; }; }
2592 ol_enable_lmpasswd="$ol_arg"
2595 ol_enable_lmpasswd=no
2597 # end --enable-lmpasswd
2598 # OpenLDAP --enable-spasswd
2600 # Check whether --enable-spasswd or --disable-spasswd was given.
2601 if test "${enable_spasswd+set}" = set; then
2602 enableval="$enable_spasswd"
2605 for ol_val in auto yes no ; do
2606 if test "$enableval" = "$ol_val" ; then
2610 if test "$ol_arg" = "invalid" ; then
2611 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2612 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2613 { (exit 1); exit 1; }; }
2615 ol_enable_spasswd="$ol_arg"
2618 ol_enable_spasswd=no
2620 # end --enable-spasswd
2621 # OpenLDAP --enable-modules
2623 # Check whether --enable-modules or --disable-modules was given.
2624 if test "${enable_modules+set}" = set; then
2625 enableval="$enable_modules"
2628 for ol_val in auto yes no ; do
2629 if test "$enableval" = "$ol_val" ; then
2633 if test "$ol_arg" = "invalid" ; then
2634 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2635 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2636 { (exit 1); exit 1; }; }
2638 ol_enable_modules="$ol_arg"
2641 ol_enable_modules=no
2643 # end --enable-modules
2644 ol_enable_multimaster=${ol_enable_multimaster-no}
2645 # OpenLDAP --enable-rewrite
2647 # Check whether --enable-rewrite or --disable-rewrite was given.
2648 if test "${enable_rewrite+set}" = set; then
2649 enableval="$enable_rewrite"
2652 for ol_val in auto yes no ; do
2653 if test "$enableval" = "$ol_val" ; then
2657 if test "$ol_arg" = "invalid" ; then
2658 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2659 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2660 { (exit 1); exit 1; }; }
2662 ol_enable_rewrite="$ol_arg"
2665 ol_enable_rewrite=auto
2667 # end --enable-rewrite
2668 # OpenLDAP --enable-rlookups
2670 # Check whether --enable-rlookups or --disable-rlookups was given.
2671 if test "${enable_rlookups+set}" = set; then
2672 enableval="$enable_rlookups"
2675 for ol_val in auto yes no ; do
2676 if test "$enableval" = "$ol_val" ; then
2680 if test "$ol_arg" = "invalid" ; then
2681 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2682 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2683 { (exit 1); exit 1; }; }
2685 ol_enable_rlookups="$ol_arg"
2688 ol_enable_rlookups=no
2690 # end --enable-rlookups
2691 # OpenLDAP --enable-slapi
2693 # Check whether --enable-slapi or --disable-slapi was given.
2694 if test "${enable_slapi+set}" = set; then
2695 enableval="$enable_slapi"
2698 for ol_val in auto yes no ; do
2699 if test "$enableval" = "$ol_val" ; then
2703 if test "$ol_arg" = "invalid" ; then
2704 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2705 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2706 { (exit 1); exit 1; }; }
2708 ol_enable_slapi="$ol_arg"
2713 # end --enable-slapi
2714 # OpenLDAP --enable-slp
2716 # Check whether --enable-slp or --disable-slp was given.
2717 if test "${enable_slp+set}" = set; then
2718 enableval="$enable_slp"
2721 for ol_val in auto yes no ; do
2722 if test "$enableval" = "$ol_val" ; then
2726 if test "$ol_arg" = "invalid" ; then
2727 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2728 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2729 { (exit 1); exit 1; }; }
2731 ol_enable_slp="$ol_arg"
2737 # OpenLDAP --enable-wrappers
2739 # Check whether --enable-wrappers or --disable-wrappers was given.
2740 if test "${enable_wrappers+set}" = set; then
2741 enableval="$enable_wrappers"
2744 for ol_val in auto yes no ; do
2745 if test "$enableval" = "$ol_val" ; then
2749 if test "$ol_arg" = "invalid" ; then
2750 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2751 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2752 { (exit 1); exit 1; }; }
2754 ol_enable_wrappers="$ol_arg"
2757 ol_enable_wrappers=no
2759 # end --enable-wrappers
2775 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2776 if test "${enable_xxslapbackends+set}" = set; then
2777 enableval="$enable_xxslapbackends"
2781 # OpenLDAP --enable-backends
2783 # Check whether --enable-backends or --disable-backends was given.
2784 if test "${enable_backends+set}" = set; then
2785 enableval="$enable_backends"
2788 for ol_val in no yes mod ; do
2789 if test "$enableval" = "$ol_val" ; then
2793 if test "$ol_arg" = "invalid" ; then
2794 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2795 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2796 { (exit 1); exit 1; }; }
2798 ol_enable_backends="$ol_arg"
2801 # end --enable-backends
2802 # OpenLDAP --enable-bdb
2804 # Check whether --enable-bdb or --disable-bdb was given.
2805 if test "${enable_bdb+set}" = set; then
2806 enableval="$enable_bdb"
2809 for ol_val in no yes mod ; do
2810 if test "$enableval" = "$ol_val" ; then
2814 if test "$ol_arg" = "invalid" ; then
2815 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2816 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2817 { (exit 1); exit 1; }; }
2819 ol_enable_bdb="$ol_arg"
2822 ol_enable_bdb=${ol_enable_backends:-yes}
2825 # OpenLDAP --enable-dnssrv
2827 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2828 if test "${enable_dnssrv+set}" = set; then
2829 enableval="$enable_dnssrv"
2832 for ol_val in no yes mod ; do
2833 if test "$enableval" = "$ol_val" ; then
2837 if test "$ol_arg" = "invalid" ; then
2838 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2839 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2840 { (exit 1); exit 1; }; }
2842 ol_enable_dnssrv="$ol_arg"
2845 ol_enable_dnssrv=${ol_enable_backends:-no}
2847 # end --enable-dnssrv
2848 # OpenLDAP --enable-hdb
2850 # Check whether --enable-hdb or --disable-hdb was given.
2851 if test "${enable_hdb+set}" = set; then
2852 enableval="$enable_hdb"
2855 for ol_val in no yes mod ; do
2856 if test "$enableval" = "$ol_val" ; then
2860 if test "$ol_arg" = "invalid" ; then
2861 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2862 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2863 { (exit 1); exit 1; }; }
2865 ol_enable_hdb="$ol_arg"
2868 ol_enable_hdb=${ol_enable_backends:-yes}
2871 # OpenLDAP --enable-ldap
2873 # Check whether --enable-ldap or --disable-ldap was given.
2874 if test "${enable_ldap+set}" = set; then
2875 enableval="$enable_ldap"
2878 for ol_val in no yes mod ; do
2879 if test "$enableval" = "$ol_val" ; then
2883 if test "$ol_arg" = "invalid" ; then
2884 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2885 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2886 { (exit 1); exit 1; }; }
2888 ol_enable_ldap="$ol_arg"
2891 ol_enable_ldap=${ol_enable_backends:-no}
2894 # OpenLDAP --enable-ldbm
2896 # Check whether --enable-ldbm or --disable-ldbm was given.
2897 if test "${enable_ldbm+set}" = set; then
2898 enableval="$enable_ldbm"
2901 for ol_val in no yes mod ; do
2902 if test "$enableval" = "$ol_val" ; then
2906 if test "$ol_arg" = "invalid" ; then
2907 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2908 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2909 { (exit 1); exit 1; }; }
2911 ol_enable_ldbm="$ol_arg"
2914 ol_enable_ldbm=${ol_enable_backends:-no}
2918 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2919 if test "${with_ldbm_api+set}" = set; then
2920 withval="$with_ldbm_api"
2922 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2923 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2924 enable_ldbm_api="$with_ldbm_api"
2926 # OpenLDAP --enable-ldbm_api
2928 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2929 if test "${enable_ldbm_api+set}" = set; then
2930 enableval="$enable_ldbm_api"
2933 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2934 if test "$enableval" = "$ol_val" ; then
2938 if test "$ol_arg" = "invalid" ; then
2939 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2940 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2941 { (exit 1); exit 1; }; }
2943 ol_enable_ldbm_api="$ol_arg"
2946 ol_enable_ldbm_api=auto
2948 # end --enable-ldbm_api
2951 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2952 if test "${with_ldbm_type+set}" = set; then
2953 withval="$with_ldbm_type"
2955 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2956 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2957 enable_ldbm_type="$with_ldbm_type"
2959 # OpenLDAP --enable-ldbm_type
2961 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2962 if test "${enable_ldbm_type+set}" = set; then
2963 enableval="$enable_ldbm_type"
2966 for ol_val in auto btree hash ; do
2967 if test "$enableval" = "$ol_val" ; then
2971 if test "$ol_arg" = "invalid" ; then
2972 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2973 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2974 { (exit 1); exit 1; }; }
2976 ol_enable_ldbm_type="$ol_arg"
2979 ol_enable_ldbm_type=auto
2981 # end --enable-ldbm_type
2983 # OpenLDAP --enable-meta
2985 # Check whether --enable-meta or --disable-meta was given.
2986 if test "${enable_meta+set}" = set; then
2987 enableval="$enable_meta"
2990 for ol_val in no yes mod ; do
2991 if test "$enableval" = "$ol_val" ; then
2995 if test "$ol_arg" = "invalid" ; then
2996 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2997 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2998 { (exit 1); exit 1; }; }
3000 ol_enable_meta="$ol_arg"
3003 ol_enable_meta=${ol_enable_backends:-no}
3006 # OpenLDAP --enable-monitor
3008 # Check whether --enable-monitor or --disable-monitor was given.
3009 if test "${enable_monitor+set}" = set; then
3010 enableval="$enable_monitor"
3013 for ol_val in no yes mod ; do
3014 if test "$enableval" = "$ol_val" ; then
3018 if test "$ol_arg" = "invalid" ; then
3019 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3020 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3021 { (exit 1); exit 1; }; }
3023 ol_enable_monitor="$ol_arg"
3026 ol_enable_monitor=${ol_enable_backends:-yes}
3028 # end --enable-monitor
3029 # OpenLDAP --enable-null
3031 # Check whether --enable-null or --disable-null was given.
3032 if test "${enable_null+set}" = set; then
3033 enableval="$enable_null"
3036 for ol_val in no yes mod ; do
3037 if test "$enableval" = "$ol_val" ; then
3041 if test "$ol_arg" = "invalid" ; then
3042 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3043 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3044 { (exit 1); exit 1; }; }
3046 ol_enable_null="$ol_arg"
3049 ol_enable_null=${ol_enable_backends:-no}
3052 # OpenLDAP --enable-passwd
3054 # Check whether --enable-passwd or --disable-passwd was given.
3055 if test "${enable_passwd+set}" = set; then
3056 enableval="$enable_passwd"
3059 for ol_val in no yes mod ; do
3060 if test "$enableval" = "$ol_val" ; then
3064 if test "$ol_arg" = "invalid" ; then
3065 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3066 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3067 { (exit 1); exit 1; }; }
3069 ol_enable_passwd="$ol_arg"
3072 ol_enable_passwd=${ol_enable_backends:-no}
3074 # end --enable-passwd
3075 # OpenLDAP --enable-perl
3077 # Check whether --enable-perl or --disable-perl was given.
3078 if test "${enable_perl+set}" = set; then
3079 enableval="$enable_perl"
3082 for ol_val in no yes mod ; do
3083 if test "$enableval" = "$ol_val" ; then
3087 if test "$ol_arg" = "invalid" ; then
3088 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3089 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3090 { (exit 1); exit 1; }; }
3092 ol_enable_perl="$ol_arg"
3095 ol_enable_perl=${ol_enable_backends:-no}
3098 # OpenLDAP --enable-relay
3100 # Check whether --enable-relay or --disable-relay was given.
3101 if test "${enable_relay+set}" = set; then
3102 enableval="$enable_relay"
3105 for ol_val in no yes mod ; do
3106 if test "$enableval" = "$ol_val" ; then
3110 if test "$ol_arg" = "invalid" ; then
3111 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3112 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3113 { (exit 1); exit 1; }; }
3115 ol_enable_relay="$ol_arg"
3118 ol_enable_relay=${ol_enable_backends:-yes}
3120 # end --enable-relay
3121 # OpenLDAP --enable-shell
3123 # Check whether --enable-shell or --disable-shell was given.
3124 if test "${enable_shell+set}" = set; then
3125 enableval="$enable_shell"
3128 for ol_val in no yes mod ; do
3129 if test "$enableval" = "$ol_val" ; then
3133 if test "$ol_arg" = "invalid" ; then
3134 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3135 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3136 { (exit 1); exit 1; }; }
3138 ol_enable_shell="$ol_arg"
3141 ol_enable_shell=${ol_enable_backends:-no}
3143 # end --enable-shell
3144 # OpenLDAP --enable-sql
3146 # Check whether --enable-sql or --disable-sql was given.
3147 if test "${enable_sql+set}" = set; then
3148 enableval="$enable_sql"
3151 for ol_val in no yes mod ; do
3152 if test "$enableval" = "$ol_val" ; then
3156 if test "$ol_arg" = "invalid" ; then
3157 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3158 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3159 { (exit 1); exit 1; }; }
3161 ol_enable_sql="$ol_arg"
3164 ol_enable_sql=${ol_enable_backends:-no}
3168 Overlays="accesslog \
3184 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3185 if test "${enable_xxslapoverlays+set}" = set; then
3186 enableval="$enable_xxslapoverlays"
3190 # OpenLDAP --enable-overlays
3192 # Check whether --enable-overlays or --disable-overlays was given.
3193 if test "${enable_overlays+set}" = set; then
3194 enableval="$enable_overlays"
3197 for ol_val in no yes mod ; do
3198 if test "$enableval" = "$ol_val" ; then
3202 if test "$ol_arg" = "invalid" ; then
3203 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3204 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3205 { (exit 1); exit 1; }; }
3207 ol_enable_overlays="$ol_arg"
3210 # end --enable-overlays
3211 # OpenLDAP --enable-accesslog
3213 # Check whether --enable-accesslog or --disable-accesslog was given.
3214 if test "${enable_accesslog+set}" = set; then
3215 enableval="$enable_accesslog"
3218 for ol_val in no yes mod ; do
3219 if test "$enableval" = "$ol_val" ; then
3223 if test "$ol_arg" = "invalid" ; then
3224 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3225 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3226 { (exit 1); exit 1; }; }
3228 ol_enable_accesslog="$ol_arg"
3231 ol_enable_accesslog=${ol_enable_overlays:-no}
3233 # end --enable-accesslog
3235 # OpenLDAP --enable-auditlog
3237 # Check whether --enable-auditlog or --disable-auditlog was given.
3238 if test "${enable_auditlog+set}" = set; then
3239 enableval="$enable_auditlog"
3242 for ol_val in no yes mod ; do
3243 if test "$enableval" = "$ol_val" ; then
3247 if test "$ol_arg" = "invalid" ; then
3248 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3249 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3250 { (exit 1); exit 1; }; }
3252 ol_enable_auditlog="$ol_arg"
3255 ol_enable_auditlog=${ol_enable_overlays:-no}
3257 # end --enable-auditlog
3259 # OpenLDAP --enable-denyop
3261 # Check whether --enable-denyop or --disable-denyop was given.
3262 if test "${enable_denyop+set}" = set; then
3263 enableval="$enable_denyop"
3266 for ol_val in no yes mod ; do
3267 if test "$enableval" = "$ol_val" ; then
3271 if test "$ol_arg" = "invalid" ; then
3272 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3273 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3274 { (exit 1); exit 1; }; }
3276 ol_enable_denyop="$ol_arg"
3279 ol_enable_denyop=${ol_enable_overlays:-no}
3281 # end --enable-denyop
3283 # OpenLDAP --enable-dyngroup
3285 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3286 if test "${enable_dyngroup+set}" = set; then
3287 enableval="$enable_dyngroup"
3290 for ol_val in no yes mod ; do
3291 if test "$enableval" = "$ol_val" ; then
3295 if test "$ol_arg" = "invalid" ; then
3296 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3297 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3298 { (exit 1); exit 1; }; }
3300 ol_enable_dyngroup="$ol_arg"
3303 ol_enable_dyngroup=${ol_enable_overlays:-no}
3305 # end --enable-dyngroup
3307 # OpenLDAP --enable-dynlist
3309 # Check whether --enable-dynlist or --disable-dynlist was given.
3310 if test "${enable_dynlist+set}" = set; then
3311 enableval="$enable_dynlist"
3314 for ol_val in no yes mod ; do
3315 if test "$enableval" = "$ol_val" ; then
3319 if test "$ol_arg" = "invalid" ; then
3320 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3322 { (exit 1); exit 1; }; }
3324 ol_enable_dynlist="$ol_arg"
3327 ol_enable_dynlist=${ol_enable_overlays:-no}
3329 # end --enable-dynlist
3331 # OpenLDAP --enable-lastmod
3333 # Check whether --enable-lastmod or --disable-lastmod was given.
3334 if test "${enable_lastmod+set}" = set; then
3335 enableval="$enable_lastmod"
3338 for ol_val in no yes mod ; do
3339 if test "$enableval" = "$ol_val" ; then
3343 if test "$ol_arg" = "invalid" ; then
3344 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3346 { (exit 1); exit 1; }; }
3348 ol_enable_lastmod="$ol_arg"
3351 ol_enable_lastmod=${ol_enable_overlays:-no}
3353 # end --enable-lastmod
3355 # OpenLDAP --enable-ppolicy
3357 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3358 if test "${enable_ppolicy+set}" = set; then
3359 enableval="$enable_ppolicy"
3362 for ol_val in no yes mod ; do
3363 if test "$enableval" = "$ol_val" ; then
3367 if test "$ol_arg" = "invalid" ; then
3368 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3369 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3370 { (exit 1); exit 1; }; }
3372 ol_enable_ppolicy="$ol_arg"
3375 ol_enable_ppolicy=${ol_enable_overlays:-no}
3377 # end --enable-ppolicy
3379 # OpenLDAP --enable-proxycache
3381 # Check whether --enable-proxycache or --disable-proxycache was given.
3382 if test "${enable_proxycache+set}" = set; then
3383 enableval="$enable_proxycache"
3386 for ol_val in no yes mod ; do
3387 if test "$enableval" = "$ol_val" ; then
3391 if test "$ol_arg" = "invalid" ; then
3392 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3393 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3394 { (exit 1); exit 1; }; }
3396 ol_enable_proxycache="$ol_arg"
3399 ol_enable_proxycache=${ol_enable_overlays:-no}
3401 # end --enable-proxycache
3403 # OpenLDAP --enable-refint
3405 # Check whether --enable-refint or --disable-refint was given.
3406 if test "${enable_refint+set}" = set; then
3407 enableval="$enable_refint"
3410 for ol_val in no yes mod ; do
3411 if test "$enableval" = "$ol_val" ; then
3415 if test "$ol_arg" = "invalid" ; then
3416 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3417 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3418 { (exit 1); exit 1; }; }
3420 ol_enable_refint="$ol_arg"
3423 ol_enable_refint=${ol_enable_overlays:-no}
3425 # end --enable-refint
3427 # OpenLDAP --enable-retcode
3429 # Check whether --enable-retcode or --disable-retcode was given.
3430 if test "${enable_retcode+set}" = set; then
3431 enableval="$enable_retcode"
3434 for ol_val in no yes mod ; do
3435 if test "$enableval" = "$ol_val" ; then
3439 if test "$ol_arg" = "invalid" ; then
3440 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3441 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3442 { (exit 1); exit 1; }; }
3444 ol_enable_retcode="$ol_arg"
3447 ol_enable_retcode=${ol_enable_overlays:-no}
3449 # end --enable-retcode
3451 # OpenLDAP --enable-rwm
3453 # Check whether --enable-rwm or --disable-rwm was given.
3454 if test "${enable_rwm+set}" = set; then
3455 enableval="$enable_rwm"
3458 for ol_val in no yes mod ; do
3459 if test "$enableval" = "$ol_val" ; then
3463 if test "$ol_arg" = "invalid" ; then
3464 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3465 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3466 { (exit 1); exit 1; }; }
3468 ol_enable_rwm="$ol_arg"
3471 ol_enable_rwm=${ol_enable_overlays:-no}
3475 # OpenLDAP --enable-syncprov
3477 # Check whether --enable-syncprov or --disable-syncprov was given.
3478 if test "${enable_syncprov+set}" = set; then
3479 enableval="$enable_syncprov"
3482 for ol_val in no yes mod ; do
3483 if test "$enableval" = "$ol_val" ; then
3487 if test "$ol_arg" = "invalid" ; then
3488 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3489 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3490 { (exit 1); exit 1; }; }
3492 ol_enable_syncprov="$ol_arg"
3495 ol_enable_syncprov=${ol_enable_overlays:-yes}
3497 # end --enable-syncprov
3499 # OpenLDAP --enable-translucent
3501 # Check whether --enable-translucent or --disable-translucent was given.
3502 if test "${enable_translucent+set}" = set; then
3503 enableval="$enable_translucent"
3506 for ol_val in no yes mod ; do
3507 if test "$enableval" = "$ol_val" ; then
3511 if test "$ol_arg" = "invalid" ; then
3512 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3513 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3514 { (exit 1); exit 1; }; }
3516 ol_enable_translucent="$ol_arg"
3519 ol_enable_translucent=${ol_enable_overlays:-no}
3521 # end --enable-translucent
3523 # OpenLDAP --enable-unique
3525 # Check whether --enable-unique or --disable-unique was given.
3526 if test "${enable_unique+set}" = set; then
3527 enableval="$enable_unique"
3530 for ol_val in no yes mod ; do
3531 if test "$enableval" = "$ol_val" ; then
3535 if test "$ol_arg" = "invalid" ; then
3536 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3537 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3538 { (exit 1); exit 1; }; }
3540 ol_enable_unique="$ol_arg"
3543 ol_enable_unique=${ol_enable_overlays:-no}
3545 # end --enable-unique
3547 # OpenLDAP --enable-valsort
3549 # Check whether --enable-valsort or --disable-valsort was given.
3550 if test "${enable_valsort+set}" = set; then
3551 enableval="$enable_valsort"
3554 for ol_val in no yes mod ; do
3555 if test "$enableval" = "$ol_val" ; then
3559 if test "$ol_arg" = "invalid" ; then
3560 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3561 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3562 { (exit 1); exit 1; }; }
3564 ol_enable_valsort="$ol_arg"
3567 ol_enable_valsort=${ol_enable_overlays:-no}
3569 # end --enable-valsort
3572 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3573 if test "${enable_xxslurpdoptions+set}" = set; then
3574 enableval="$enable_xxslurpdoptions"
3577 # OpenLDAP --enable-slurpd
3579 # Check whether --enable-slurpd or --disable-slurpd was given.
3580 if test "${enable_slurpd+set}" = set; then
3581 enableval="$enable_slurpd"
3584 for ol_val in auto yes no ; do
3585 if test "$enableval" = "$ol_val" ; then
3589 if test "$ol_arg" = "invalid" ; then
3590 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3591 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3592 { (exit 1); exit 1; }; }
3594 ol_enable_slurpd="$ol_arg"
3597 ol_enable_slurpd=auto
3599 # end --enable-slurpd
3601 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3602 if test "${enable_xxliboptions+set}" = set; then
3603 enableval="$enable_xxliboptions"
3606 # Check whether --enable-static or --disable-static was given.
3607 if test "${enable_static+set}" = set; then
3608 enableval="$enable_static"
3609 p=${PACKAGE-default}
3611 yes) enable_static=yes ;;
3612 no) enable_static=no ;;
3615 # Look at the argument we got. We use all the common list separators.
3616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617 for pkg in $enableval; do
3619 if test "X$pkg" = "X$p"; then
3630 # Check whether --enable-shared or --disable-shared was given.
3631 if test "${enable_shared+set}" = set; then
3632 enableval="$enable_shared"
3633 p=${PACKAGE-default}
3635 yes) enable_shared=yes ;;
3636 no) enable_shared=no ;;
3639 # Look at the argument we got. We use all the common list separators.
3640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3641 for pkg in $enableval; do
3643 if test "X$pkg" = "X$p"; then
3657 if test $ol_enable_slapd = no ; then
3658 if test $ol_enable_slapi = yes ; then
3659 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3662 case "$ol_enable_backends" in yes | mod)
3663 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3666 for i in $Backends; do
3667 eval "ol_tmp=\$ol_enable_$i"
3668 if test $ol_tmp != no ; then
3669 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3670 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3671 eval "ol_enable_$i=no"
3674 if test $ol_enable_modules = yes ; then
3675 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3676 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3678 if test $ol_enable_multimaster = yes ; then
3679 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3680 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3682 if test $ol_enable_wrappers = yes ; then
3683 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3684 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3686 if test $ol_enable_rlookups = yes ; then
3687 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3688 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3690 if test $ol_enable_aci = yes ; then
3691 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3692 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3694 if test $ol_enable_ldbm_api != auto ; then
3695 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3696 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3698 if test $ol_enable_ldbm_type != auto ; then
3699 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3700 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3702 if test $ol_enable_slurpd = yes ; then
3703 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3704 echo "$as_me: error: slurpd requires slapd" >&2;}
3705 { (exit 1); exit 1; }; }
3707 if test $ol_enable_rewrite = yes ; then
3708 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3709 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3711 case "$ol_enable_overlays" in yes | mod)
3712 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3713 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3715 for i in $Overlays; do
3716 eval "ol_tmp=\$ol_enable_$i"
3717 if test $ol_tmp != no ; then
3718 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3719 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3720 eval "ol_enable_$i=no"
3724 # force settings to no
3729 ol_enable_modules=no
3730 ol_enable_multimaster=no
3731 ol_enable_rlookups=no
3733 ol_enable_wrappers=no
3735 ol_enable_ldbm_api=no
3736 ol_enable_ldbm_type=no
3740 ol_enable_rewrite=no
3742 elif test $ol_enable_ldbm = no ; then
3744 if test $ol_enable_ldbm_api != auto ; then
3745 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3746 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3749 if test $ol_enable_ldbm_type != auto ; then
3750 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3751 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3754 if test $ol_enable_modules != yes &&
3755 test $ol_enable_bdb = no &&
3756 test $ol_enable_dnssrv = no &&
3757 test $ol_enable_hdb = no &&
3758 test $ol_enable_ldap = no &&
3759 test $ol_enable_meta = no &&
3760 test $ol_enable_monitor = no &&
3761 test $ol_enable_null = no &&
3762 test $ol_enable_passwd = no &&
3763 test $ol_enable_perl = no &&
3764 test $ol_enable_relay = no &&
3765 test $ol_enable_shell = no &&
3766 test $ol_enable_sql = no ; then
3768 if test $ol_enable_slapd = yes ; then
3769 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3770 echo "$as_me: error: slapd requires a backend" >&2;}
3771 { (exit 1); exit 1; }; }
3773 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3774 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3779 ol_enable_ldbm_api=no
3780 ol_enable_ldbm_type=no
3782 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3783 ol_enable_ldbm_api=berkeley
3787 if test $ol_enable_ldbm_api = gdbm &&
3788 test $ol_enable_ldbm_type = btree ; then
3789 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3790 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3791 { (exit 1); exit 1; }; }
3793 if test $ol_enable_ldbm_api = mdbm &&
3794 test $ol_enable_ldbm_type = btree ; then
3795 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3796 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3797 { (exit 1); exit 1; }; }
3799 if test $ol_enable_ldbm_api = ndbm &&
3800 test $ol_enable_ldbm_type = btree ; then
3801 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3802 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3803 { (exit 1); exit 1; }; }
3806 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3807 if test $ol_enable_ldbm_api = auto ; then
3808 ol_enable_ldbm_api=berkeley
3809 elif test $ol_enable_ldbm_api != berkeley ; then
3810 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3811 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3812 { (exit 1); exit 1; }; }
3817 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3818 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3819 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3820 { (exit 1); exit 1; }; }
3823 if test $ol_enable_slurpd = yes ; then
3824 if test $ol_with_threads = no ; then
3825 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3826 echo "$as_me: error: slurpd requires threads" >&2;}
3827 { (exit 1); exit 1; }; }
3831 if test $ol_enable_lmpasswd = yes ; then
3832 if test $ol_with_tls = no ; then
3833 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3834 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3835 { (exit 1); exit 1; }; }
3839 if test $ol_enable_kbind = yes ; then
3840 if test $ol_with_kerberos = no ; then
3841 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3842 echo "$as_me: error: options require --with-kerberos" >&2;}
3843 { (exit 1); exit 1; }; }
3844 elif test $ol_with_kerberos = auto ; then
3845 ol_with_kerberos=yes
3848 elif test $ol_enable_kbind = no ; then
3849 if test $ol_with_kerberos = auto ; then
3851 elif test $ol_with_kerberos != no ; then
3852 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3853 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3858 if test $ol_enable_spasswd = yes ; then
3859 if test $ol_with_cyrus_sasl = no ; then
3860 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3861 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3862 { (exit 1); exit 1; }; }
3864 ol_with_cyrus_sasl=yes
3867 echo "$as_me:$LINENO: result: done" >&5
3868 echo "${ECHO_T}done" >&6
3912 BUILD_TRANSLUCENT=no
3916 SLAPD_STATIC_OVERLAYS=
3917 SLAPD_DYNAMIC_OVERLAYS=
3919 SLAPD_MODULES_LDFLAGS=
3920 SLAPD_MODULES_CPPFLAGS=
3922 SLAPD_STATIC_BACKENDS=back-ldif
3923 SLAPD_DYNAMIC_BACKENDS=
3948 cat >>confdefs.h <<\_ACEOF
3949 #define HAVE_MKVERSION 1
3957 *-*-aix*) if test -z "$CC" ; then
3958 case "$ol_with_threads" in
3959 auto | yes | posix) ol_aix_threads=yes ;;
3965 if test $ol_aix_threads = yes ; then
3966 if test -z "${CC}" ; then
3967 for ac_prog in cc_r xlc_r cc
3969 # Extract the first word of "$ac_prog", so it can be a program name with args.
3970 set dummy $ac_prog; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_prog_CC+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 if test -n "$CC"; then
3977 ac_cv_prog_CC="$CC" # Let the user override the test.
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986 ac_cv_prog_CC="$ac_prog"
3987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 if test -n "$CC"; then
3997 echo "$as_me:$LINENO: result: $CC" >&5
3998 echo "${ECHO_T}$CC" >&6
4000 echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4004 test -n "$CC" && break
4008 if test "$CC" = cc ; then
4009 if test $ol_with_threads != auto ; then
4010 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4011 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4012 { (exit 1); exit 1; }; }
4014 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4015 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4021 case ${CC} in cc_r | xlc_r)
4022 ol_with_threads=posix
4023 ol_cv_pthread_create=yes
4028 if test -z "${CC}"; then
4029 for ac_prog in cc gcc
4031 # Extract the first word of "$ac_prog", so it can be a program name with args.
4032 set dummy $ac_prog; ac_word=$2
4033 echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4035 if test "${ac_cv_prog_CC+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 if test -n "$CC"; then
4039 ac_cv_prog_CC="$CC" # Let the user override the test.
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048 ac_cv_prog_CC="$ac_prog"
4049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 if test -n "$CC"; then
4059 echo "$as_me:$LINENO: result: $CC" >&5
4060 echo "${ECHO_T}$CC" >&6
4062 echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4066 test -n "$CC" && break
4068 test -n "$CC" || CC="missing"
4071 if test "${CC}" = "missing" ; then
4072 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4073 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4074 { (exit 1); exit 1; }; }
4078 if test -z "${AR}"; then
4079 for ac_prog in ar gar
4081 # Extract the first word of "$ac_prog", so it can be a program name with args.
4082 set dummy $ac_prog; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_prog_AR+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 if test -n "$AR"; then
4089 ac_cv_prog_AR="$AR" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_AR="$ac_prog"
4099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 if test -n "$AR"; then
4109 echo "$as_me:$LINENO: result: $AR" >&5
4110 echo "${ECHO_T}$AR" >&6
4112 echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4116 test -n "$AR" && break
4118 test -n "$AR" || AR="missing"
4121 if test "${AR}" = "missing" ; then
4122 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4123 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4124 { (exit 1); exit 1; }; }
4132 # Check whether --enable-fast-install or --disable-fast-install was given.
4133 if test "${enable_fast_install+set}" = set; then
4134 enableval="$enable_fast_install"
4135 p=${PACKAGE-default}
4137 yes) enable_fast_install=yes ;;
4138 no) enable_fast_install=no ;;
4140 enable_fast_install=no
4141 # Look at the argument we got. We use all the common list separators.
4142 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4143 for pkg in $enableval; do
4145 if test "X$pkg" = "X$p"; then
4146 enable_fast_install=yes
4153 enable_fast_install=yes
4156 DEPDIR="${am__leading_dot}deps"
4158 ac_config_commands="$ac_config_commands depfiles"
4161 am_make=${MAKE-make}
4162 cat > confinc << 'END'
4167 # If we don't find an include directive, just comment out the code.
4168 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4169 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4173 # First try GNU make style include.
4174 echo "include confinc" > confmf
4175 # We grep out `Entering directory' and `Leaving directory'
4176 # messages which can occur if `w' ends up in MAKEFLAGS.
4177 # In particular we don't look at `^make:' because GNU make might
4178 # be invoked under some other name (usually "gmake"), in which
4179 # case it prints its new name instead of `make'.
4180 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4185 # Now try BSD make style include.
4186 if test "$am__include" = "#"; then
4187 echo '.include "confinc"' > confmf
4188 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4189 am__include=.include
4196 echo "$as_me:$LINENO: result: $_am_result" >&5
4197 echo "${ECHO_T}$_am_result" >&6
4198 rm -f confinc confmf
4200 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4201 if test "${enable_dependency_tracking+set}" = set; then
4202 enableval="$enable_dependency_tracking"
4205 if test "x$enable_dependency_tracking" != xno; then
4206 am_depcomp="$ac_aux_dir/depcomp"
4211 if test "x$enable_dependency_tracking" != xno; then
4222 ac_cpp='$CPP $CPPFLAGS'
4223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226 if test -n "$ac_tool_prefix"; then
4227 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4228 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4229 echo "$as_me:$LINENO: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4231 if test "${ac_cv_prog_CC+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 if test -n "$CC"; then
4235 ac_cv_prog_CC="$CC" # Let the user override the test.
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 if test -n "$CC"; then
4255 echo "$as_me:$LINENO: result: $CC" >&5
4256 echo "${ECHO_T}$CC" >&6
4258 echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6
4263 if test -z "$ac_cv_prog_CC"; then
4265 # Extract the first word of "gcc", so it can be a program name with args.
4266 set dummy gcc; ac_word=$2
4267 echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 if test -n "$ac_ct_CC"; then
4273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_ac_ct_CC="gcc"
4283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4292 if test -n "$ac_ct_CC"; then
4293 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4294 echo "${ECHO_T}$ac_ct_CC" >&6
4296 echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6
4305 if test -z "$CC"; then
4306 if test -n "$ac_tool_prefix"; then
4307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4308 set dummy ${ac_tool_prefix}cc; ac_word=$2
4309 echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4311 if test "${ac_cv_prog_CC+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 if test -n "$CC"; then
4315 ac_cv_prog_CC="$CC" # Let the user override the test.
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_CC="${ac_tool_prefix}cc"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 if test -n "$CC"; then
4335 echo "$as_me:$LINENO: result: $CC" >&5
4336 echo "${ECHO_T}$CC" >&6
4338 echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6
4343 if test -z "$ac_cv_prog_CC"; then
4345 # Extract the first word of "cc", so it can be a program name with args.
4346 set dummy cc; ac_word=$2
4347 echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4349 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 if test -n "$ac_ct_CC"; then
4353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362 ac_cv_prog_ac_ct_CC="cc"
4363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4372 if test -n "$ac_ct_CC"; then
4373 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4374 echo "${ECHO_T}$ac_ct_CC" >&6
4376 echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6
4386 if test -z "$CC"; then
4387 # Extract the first word of "cc", so it can be a program name with args.
4388 set dummy cc; ac_word=$2
4389 echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4391 if test "${ac_cv_prog_CC+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 if test -n "$CC"; then
4395 ac_cv_prog_CC="$CC" # Let the user override the test.
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4406 ac_prog_rejected=yes
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 if test $ac_prog_rejected = yes; then
4417 # We found a bogon in the path, so make sure we never use it.
4418 set dummy $ac_cv_prog_CC
4420 if test $# != 0; then
4421 # We chose a different compiler from the bogus one.
4422 # However, it has the same basename, so the bogon will be chosen
4423 # first if we set CC to just the basename; use the full file name.
4425 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4431 if test -n "$CC"; then
4432 echo "$as_me:$LINENO: result: $CC" >&5
4433 echo "${ECHO_T}$CC" >&6
4435 echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6
4440 if test -z "$CC"; then
4441 if test -n "$ac_tool_prefix"; then
4444 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4445 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4446 echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4448 if test "${ac_cv_prog_CC+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 if test -n "$CC"; then
4452 ac_cv_prog_CC="$CC" # Let the user override the test.
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 if test -n "$CC"; then
4472 echo "$as_me:$LINENO: result: $CC" >&5
4473 echo "${ECHO_T}$CC" >&6
4475 echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6
4479 test -n "$CC" && break
4482 if test -z "$CC"; then
4486 # Extract the first word of "$ac_prog", so it can be a program name with args.
4487 set dummy $ac_prog; ac_word=$2
4488 echo "$as_me:$LINENO: checking for $ac_word" >&5
4489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4490 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 if test -n "$ac_ct_CC"; then
4494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4503 ac_cv_prog_ac_ct_CC="$ac_prog"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4513 if test -n "$ac_ct_CC"; then
4514 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4515 echo "${ECHO_T}$ac_ct_CC" >&6
4517 echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6
4521 test -n "$ac_ct_CC" && break
4530 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4531 See \`config.log' for more details." >&5
4532 echo "$as_me: error: no acceptable C compiler found in \$PATH
4533 See \`config.log' for more details." >&2;}
4534 { (exit 1); exit 1; }; }
4536 # Provide some information about the compiler.
4537 echo "$as_me:$LINENO:" \
4538 "checking for C compiler version" >&5
4539 ac_compiler=`set X $ac_compile; echo $2`
4540 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4541 (eval $ac_compiler --version </dev/null >&5) 2>&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }
4545 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4546 (eval $ac_compiler -v </dev/null >&5) 2>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }
4550 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4551 (eval $ac_compiler -V </dev/null >&5) 2>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }
4556 cat >conftest.$ac_ext <<_ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4571 ac_clean_files_save=$ac_clean_files
4572 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4573 # Try to create an executable without -o first, disregard a.out.
4574 # It will help us diagnose broken compilers, and finding out an intuition
4576 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4577 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4578 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4579 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4580 (eval $ac_link_default) 2>&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; then
4584 # Find the output, starting from the most likely. This scheme is
4585 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4588 # Be careful to initialize this variable, since it used to be cached.
4589 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4591 # b.out is created by i960 compilers.
4592 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4594 test -f "$ac_file" || continue
4596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4599 # This is the source file.
4602 # We found the default executable, but exeext='' is most
4606 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4607 # FIXME: I believe we export ac_cv_exeext for Libtool,
4608 # but it would be cool to find out if it's true. Does anybody
4609 # maintain Libtool? --akim.
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4621 See \`config.log' for more details." >&5
4622 echo "$as_me: error: C compiler cannot create executables
4623 See \`config.log' for more details." >&2;}
4624 { (exit 77); exit 77; }; }
4627 ac_exeext=$ac_cv_exeext
4628 echo "$as_me:$LINENO: result: $ac_file" >&5
4629 echo "${ECHO_T}$ac_file" >&6
4631 # Check the compiler produces executables we can run. If not, either
4632 # the compiler is broken, or we cross compile.
4633 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4634 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4635 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4636 # If not cross compiling, check that we can run a simple program.
4637 if test "$cross_compiling" != yes; then
4638 if { ac_try='./$ac_file'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4646 if test "$cross_compiling" = maybe; then
4649 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4650 If you meant to cross compile, use \`--host'.
4651 See \`config.log' for more details." >&5
4652 echo "$as_me: error: cannot run C compiled programs.
4653 If you meant to cross compile, use \`--host'.
4654 See \`config.log' for more details." >&2;}
4655 { (exit 1); exit 1; }; }
4659 echo "$as_me:$LINENO: result: yes" >&5
4660 echo "${ECHO_T}yes" >&6
4662 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4663 ac_clean_files=$ac_clean_files_save
4664 # Check the compiler produces executables we can run. If not, either
4665 # the compiler is broken, or we cross compile.
4666 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4667 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4668 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4669 echo "${ECHO_T}$cross_compiling" >&6
4671 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4672 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4674 (eval $ac_link) 2>&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; then
4678 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4679 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4680 # work properly (i.e., refer to `conftest.exe'), while it won't with
4682 for ac_file in conftest.exe conftest conftest.*; do
4683 test -f "$ac_file" || continue
4685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4686 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4693 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4694 See \`config.log' for more details." >&5
4695 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4696 See \`config.log' for more details." >&2;}
4697 { (exit 1); exit 1; }; }
4700 rm -f conftest$ac_cv_exeext
4701 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4702 echo "${ECHO_T}$ac_cv_exeext" >&6
4704 rm -f conftest.$ac_ext
4705 EXEEXT=$ac_cv_exeext
4707 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4708 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4709 if test "${ac_cv_objext+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 cat >conftest.$ac_ext <<_ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4727 rm -f conftest.o conftest.obj
4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729 (eval $ac_compile) 2>&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; then
4733 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4736 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4745 See \`config.log' for more details." >&5
4746 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4747 See \`config.log' for more details." >&2;}
4748 { (exit 1); exit 1; }; }
4751 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4753 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4754 echo "${ECHO_T}$ac_cv_objext" >&6
4755 OBJEXT=$ac_cv_objext
4757 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4758 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4759 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 cat >conftest.$ac_ext <<_ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4780 rm -f conftest.$ac_objext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>conftest.er1
4784 grep -v '^ *+' conftest.er1 >conftest.err
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -z "$ac_c_werror_flag"
4790 || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4813 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4814 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4815 GCC=`test $ac_compiler_gnu = yes && echo yes`
4816 ac_test_CFLAGS=${CFLAGS+set}
4817 ac_save_CFLAGS=$CFLAGS
4819 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4820 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4821 if test "${ac_cv_prog_cc_g+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 cat >conftest.$ac_ext <<_ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4839 rm -f conftest.$ac_objext
4840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4841 (eval $ac_compile) 2>conftest.er1
4843 grep -v '^ *+' conftest.er1 >conftest.err
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
4848 { ac_try='test -z "$ac_c_werror_flag"
4849 || test ! -s conftest.err'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; } &&
4855 { ac_try='test -s conftest.$ac_objext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4870 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4871 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4872 if test "$ac_test_CFLAGS" = set; then
4873 CFLAGS=$ac_save_CFLAGS
4874 elif test $ac_cv_prog_cc_g = yes; then
4875 if test "$GCC" = yes; then
4881 if test "$GCC" = yes; then
4887 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4888 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4889 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 ac_cv_prog_cc_stdc=no
4894 cat >conftest.$ac_ext <<_ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4902 #include <sys/types.h>
4903 #include <sys/stat.h>
4904 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4905 struct buf { int x; };
4906 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4907 static char *e (p, i)
4913 static char *f (char * (*g) (char **, int), char **p, ...)
4918 s = g (p, va_arg (v,int));
4923 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4924 function prototypes and stuff, but not '\xHH' hex character constants.
4925 These don't provoke an error unfortunately, instead are silently treated
4926 as 'x'. The following induces an error, until -std1 is added to get
4927 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4928 array size at least. It's necessary to write '\x00'==0 to get something
4929 that's true only with -std1. */
4930 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4932 int test (int i, double x);
4933 struct s1 {int (*f) (int a);};
4934 struct s2 {int (*f) (double a);};
4935 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4941 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4946 # Don't try gcc -ansi; that turns off useful extensions and
4947 # breaks some systems' header files.
4948 # AIX -qlanglvl=ansi
4949 # Ultrix and OSF/1 -std1
4950 # HP-UX 10.20 and later -Ae
4951 # HP-UX older versions -Aa -D_HPUX_SOURCE
4952 # SVR4 -Xc -D__EXTENSIONS__
4953 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4955 CC="$ac_save_CC $ac_arg"
4956 rm -f conftest.$ac_objext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958 (eval $ac_compile) 2>conftest.er1
4960 grep -v '^ *+' conftest.er1 >conftest.err
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -z "$ac_c_werror_flag"
4966 || test ! -s conftest.err'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest.$ac_objext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_cv_prog_cc_stdc=$ac_arg
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4985 rm -f conftest.err conftest.$ac_objext
4987 rm -f conftest.$ac_ext conftest.$ac_objext
4992 case "x$ac_cv_prog_cc_stdc" in
4994 echo "$as_me:$LINENO: result: none needed" >&5
4995 echo "${ECHO_T}none needed" >&6 ;;
4997 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4998 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4999 CC="$CC $ac_cv_prog_cc_stdc" ;;
5002 # Some people use a C++ compiler to compile C. Since we use `exit',
5003 # in C++ we need to declare it. In case someone uses the same compiler
5004 # for both compiling C and C++ we need to have the C++ compiler decide
5005 # the declaration of exit, since it's the most demanding environment.
5006 cat >conftest.$ac_ext <<_ACEOF
5011 rm -f conftest.$ac_objext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>conftest.er1
5015 grep -v '^ *+' conftest.er1 >conftest.err
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } &&
5020 { ac_try='test -z "$ac_c_werror_flag"
5021 || test ! -s conftest.err'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; } &&
5027 { ac_try='test -s conftest.$ac_objext'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; }; then
5033 for ac_declaration in \
5035 'extern "C" void std::exit (int) throw (); using std::exit;' \
5036 'extern "C" void std::exit (int); using std::exit;' \
5037 'extern "C" void exit (int) throw ();' \
5038 'extern "C" void exit (int);' \
5041 cat >conftest.$ac_ext <<_ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5057 rm -f conftest.$ac_objext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5059 (eval $ac_compile) 2>conftest.er1
5061 grep -v '^ *+' conftest.er1 >conftest.err
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -z "$ac_c_werror_flag"
5067 || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try='test -s conftest.$ac_objext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5087 cat >conftest.$ac_ext <<_ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5102 rm -f conftest.$ac_objext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104 (eval $ac_compile) 2>conftest.er1
5106 grep -v '^ *+' conftest.er1 >conftest.err
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try='test -z "$ac_c_werror_flag"
5112 || test ! -s conftest.err'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try='test -s conftest.$ac_objext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5133 if test -n "$ac_declaration"; then
5134 echo '#ifdef __cplusplus' >>confdefs.h
5135 echo $ac_declaration >>confdefs.h
5136 echo '#endif' >>confdefs.h
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5146 ac_cpp='$CPP $CPPFLAGS'
5147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5151 depcc="$CC" am_compiler_list=
5153 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5154 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5155 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5159 # We make a subdir and do the tests there. Otherwise we can end up
5160 # making bogus files that we don't know about and never remove. For
5161 # instance it was reported that on HP-UX the gcc test will end up
5162 # making a dummy file named `D' -- because `-MD' means `put the output
5165 # Copy depcomp to subdir because otherwise we won't find it if we're
5166 # using a relative directory.
5167 cp "$am_depcomp" conftest.dir
5169 # We will build objects and dependencies in a subdirectory because
5170 # it helps to detect inapplicable dependency modes. For instance
5171 # both Tru64's cc and ICC support -MD to output dependencies as a
5172 # side effect of compilation, but ICC will put the dependencies in
5173 # the current directory while Tru64 will put them in the object
5177 am_cv_CC_dependencies_compiler_type=none
5178 if test "$am_compiler_list" = ""; then
5179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5181 for depmode in $am_compiler_list; do
5182 # Setup a source with many dependencies, because some compilers
5183 # like to wrap large dependency lists on column 80 (with \), and
5184 # we should not choose a depcomp mode which is confused by this.
5186 # We need to recreate these files for each test, as the compiler may
5187 # overwrite some of them when testing with obscure command lines.
5188 # This happens at least with the AIX C compiler.
5190 for i in 1 2 3 4 5 6; do
5191 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5192 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5193 # Solaris 8's {/usr,}/bin/sh.
5194 touch sub/conftst$i.h
5196 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5200 # after this tag, mechanisms are not by side-effect, so they'll
5201 # only be used when explicitly requested
5202 if test "x$enable_dependency_tracking" = xyes; then
5210 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5211 # mode. It turns out that the SunPro C++ compiler does not properly
5212 # handle `-M -o', and we need to detect this.
5213 if depmode=$depmode \
5214 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5216 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5217 >/dev/null 2>conftest.err &&
5218 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5219 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5220 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5221 # icc doesn't choke on unknown options, it will just issue warnings
5222 # or remarks (even with -Werror). So we grep stderr for any message
5223 # that says an option was ignored or not supported.
5224 # When given -MP, icc 7.0 and 7.1 complain thusly:
5225 # icc: Command line warning: ignoring option '-M'; no argument required
5226 # The diagnosis changed in icc 8.0:
5227 # icc: Command line remark: option '-MP' not supported
5228 if (grep 'ignoring option' conftest.err ||
5229 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5230 am_cv_CC_dependencies_compiler_type=$depmode
5239 am_cv_CC_dependencies_compiler_type=none
5243 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5244 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5245 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5250 test "x$enable_dependency_tracking" != xno \
5251 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5253 am__fastdepCC_FALSE='#'
5255 am__fastdepCC_TRUE='#'
5256 am__fastdepCC_FALSE=
5260 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5261 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5262 if test "${lt_cv_path_SED+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 # Loop through the user's path and test for sed and gsed.
5266 # Then use that list of sed's as ones to test for truncation.
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 test -z "$as_dir" && as_dir=.
5272 for lt_ac_prog in sed gsed; do
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5275 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5282 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5283 # along with /bin/sed that truncates output.
5284 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5285 test ! -f $lt_ac_sed && continue
5286 cat /dev/null > conftest.in
5288 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5289 # Check for GNU sed and select it if it is found.
5290 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5291 lt_cv_path_SED=$lt_ac_sed
5295 cat conftest.in conftest.in >conftest.tmp
5296 mv conftest.tmp conftest.in
5297 cp conftest.in conftest.nl
5299 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5300 cmp -s conftest.out conftest.nl || break
5301 # 10000 chars as input seems more than enough
5302 test $lt_ac_count -gt 10 && break
5303 lt_ac_count=`expr $lt_ac_count + 1`
5304 if test $lt_ac_count -gt $lt_ac_max; then
5305 lt_ac_max=$lt_ac_count
5306 lt_cv_path_SED=$lt_ac_sed
5314 echo "$as_me:$LINENO: result: $SED" >&5
5315 echo "${ECHO_T}$SED" >&6
5317 echo "$as_me:$LINENO: checking for egrep" >&5
5318 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5319 if test "${ac_cv_prog_egrep+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5323 then ac_cv_prog_egrep='grep -E'
5324 else ac_cv_prog_egrep='egrep'
5327 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5328 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5329 EGREP=$ac_cv_prog_egrep
5333 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5334 if test "${with_gnu_ld+set}" = set; then
5335 withval="$with_gnu_ld"
5336 test "$withval" = no || with_gnu_ld=yes
5341 if test "$GCC" = yes; then
5342 # Check if gcc -print-prog-name=ld gives a path.
5343 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5344 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5347 # gcc leaves a trailing carriage return which upsets mingw
5348 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5350 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5353 # Accept absolute paths.
5355 re_direlt='/[^/][^/]*/\.\./'
5356 # Canonicalize the pathname of ld
5357 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5358 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5359 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5361 test -z "$LD" && LD="$ac_prog"
5364 # If it fails, then pretend we aren't using GCC.
5368 # If it is relative, then search for the first ld in PATH.
5372 elif test "$with_gnu_ld" = yes; then
5373 echo "$as_me:$LINENO: checking for GNU ld" >&5
5374 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5376 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5377 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5379 if test "${lt_cv_path_LD+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 if test -z "$LD"; then
5383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5384 for ac_dir in $PATH; do
5386 test -z "$ac_dir" && ac_dir=.
5387 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5388 lt_cv_path_LD="$ac_dir/$ac_prog"
5389 # Check to see if the program is GNU ld. I'd rather use --version,
5390 # but apparently some variants of GNU ld only accept -v.
5391 # Break only if it was the GNU/non-GNU ld that we prefer.
5392 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5393 *GNU* | *'with BFD'*)
5394 test "$with_gnu_ld" != no && break
5397 test "$with_gnu_ld" != yes && break
5404 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5409 if test -n "$LD"; then
5410 echo "$as_me:$LINENO: result: $LD" >&5
5411 echo "${ECHO_T}$LD" >&6
5413 echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6
5416 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5417 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5418 { (exit 1); exit 1; }; }
5419 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5420 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5421 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5425 case `$LD -v 2>&1 </dev/null` in
5426 *GNU* | *'with BFD'*)
5427 lt_cv_prog_gnu_ld=yes
5430 lt_cv_prog_gnu_ld=no
5434 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5435 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5436 with_gnu_ld=$lt_cv_prog_gnu_ld
5439 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5440 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5441 if test "${lt_cv_ld_reload_flag+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 lt_cv_ld_reload_flag='-r'
5446 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5447 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5448 reload_flag=$lt_cv_ld_reload_flag
5449 case $reload_flag in
5451 *) reload_flag=" $reload_flag" ;;
5453 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5456 if test "$GCC" = yes; then
5457 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5459 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5464 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5465 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5466 if test "${lt_cv_path_NM+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 if test -n "$NM"; then
5470 # Let the user override the test.
5473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5474 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5476 test -z "$ac_dir" && ac_dir=.
5477 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5478 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5479 # Check to see if the nm accepts a BSD-compat flag.
5480 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5481 # nm: unknown option "B" ignored
5482 # Tru64's nm complains that /dev/null is an invalid object file
5483 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5484 */dev/null* | *'Invalid file or object type'*)
5485 lt_cv_path_NM="$tmp_nm -B"
5489 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5491 lt_cv_path_NM="$tmp_nm -p"
5495 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5496 continue # so that we can try to find one that supports BSD flags
5503 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5506 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5507 echo "${ECHO_T}$lt_cv_path_NM" >&6
5510 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5511 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5513 if test "$LN_S" = "ln -s"; then
5514 echo "$as_me:$LINENO: result: yes" >&5
5515 echo "${ECHO_T}yes" >&6
5517 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5518 echo "${ECHO_T}no, using $LN_S" >&6
5521 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5522 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5523 if test "${lt_cv_deplibs_check_method+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 lt_cv_file_magic_cmd='$MAGIC_CMD'
5527 lt_cv_file_magic_test_file=
5528 lt_cv_deplibs_check_method='unknown'
5529 # Need to set the preceding variable on all platforms that support
5530 # interlibrary dependencies.
5531 # 'none' -- dependencies not supported.
5532 # `unknown' -- same as none, but documents that we really don't know.
5533 # 'pass_all' -- all dependencies passed with no checks.
5534 # 'test_compile' -- check by making test program.
5535 # 'file_magic [[regex]]' -- check by looking for files in library path
5536 # which responds to the $file_magic_cmd with a given extended regex.
5537 # If you have `file' or equivalent on your system and you're not sure
5538 # whether `pass_all' will *always* work, you probably want this one.
5542 lt_cv_deplibs_check_method=pass_all
5546 lt_cv_deplibs_check_method=pass_all
5550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5551 lt_cv_file_magic_cmd='/usr/bin/file -L'
5552 lt_cv_file_magic_test_file=/shlib/libc.so
5556 # func_win32_libid is a shell function defined in ltmain.sh
5557 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5558 lt_cv_file_magic_cmd='func_win32_libid'
5562 # Base MSYS/MinGW do not provide the 'file' command needed by
5563 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5564 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5565 lt_cv_file_magic_cmd='$OBJDUMP -f'
5568 darwin* | rhapsody*)
5569 lt_cv_deplibs_check_method=pass_all
5572 freebsd* | kfreebsd*-gnu | dragonfly*)
5573 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5576 # Not sure whether the presence of OpenBSD here was a mistake.
5577 # Let's accept both of them until this is cleared up.
5578 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5579 lt_cv_file_magic_cmd=/usr/bin/file
5580 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5584 lt_cv_deplibs_check_method=pass_all
5589 lt_cv_deplibs_check_method=pass_all
5592 hpux10.20* | hpux11*)
5593 lt_cv_file_magic_cmd=/usr/bin/file
5596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5597 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5600 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5601 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5604 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5605 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5610 irix5* | irix6* | nonstopux*)
5612 *-32|*"-32 ") libmagic=32-bit;;
5613 *-n32|*"-n32 ") libmagic=N32;;
5614 *-64|*"-64 ") libmagic=64-bit;;
5615 *) libmagic=never-match;;
5617 lt_cv_deplibs_check_method=pass_all
5620 # This must be Linux ELF.
5622 lt_cv_deplibs_check_method=pass_all
5626 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5634 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5635 lt_cv_file_magic_cmd=/usr/bin/file
5636 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5640 lt_cv_deplibs_check_method=unknown
5644 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5651 osf3* | osf4* | osf5*)
5652 lt_cv_deplibs_check_method=pass_all
5656 lt_cv_deplibs_check_method=pass_all
5660 lt_cv_deplibs_check_method=pass_all
5663 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5664 case $host_vendor in
5666 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5670 lt_cv_deplibs_check_method=pass_all
5673 lt_cv_file_magic_cmd='/bin/file'
5674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5677 lt_cv_file_magic_cmd='/bin/file'
5678 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5679 lt_cv_file_magic_test_file=/lib/libc.so
5682 lt_cv_deplibs_check_method=pass_all
5687 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5688 lt_cv_deplibs_check_method=pass_all
5693 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5694 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5695 file_magic_cmd=$lt_cv_file_magic_cmd
5696 deplibs_check_method=$lt_cv_deplibs_check_method
5697 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5702 # If no C compiler was specified, use CC.
5705 # Allow CC to be a program name with arguments.
5709 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5710 if test "${enable_libtool_lock+set}" = set; then
5711 enableval="$enable_libtool_lock"
5714 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5716 # Some flags need to be propagated to the compiler or linker for good
5720 # Find out which ABI we are using.
5721 echo 'int i;' > conftest.$ac_ext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; then
5727 case `/usr/bin/file conftest.$ac_objext` in
5739 # Find out which ABI we are using.
5740 echo '#line 5740 "configure"' > conftest.$ac_ext
5741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742 (eval $ac_compile) 2>&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; then
5746 if test "$lt_cv_prog_gnu_ld" = yes; then
5747 case `/usr/bin/file conftest.$ac_objext` in
5749 LD="${LD-ld} -melf32bsmip"
5752 LD="${LD-ld} -melf32bmipn32"
5755 LD="${LD-ld} -melf64bmip"
5759 case `/usr/bin/file conftest.$ac_objext` in
5775 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5776 # Find out which ABI we are using.
5777 echo 'int i;' > conftest.$ac_ext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; then
5783 case `/usr/bin/file conftest.o` in
5787 LD="${LD-ld} -m elf_i386"
5789 ppc64-*linux*|powerpc64-*linux*)
5790 LD="${LD-ld} -m elf32ppclinux"
5793 LD="${LD-ld} -m elf_s390"
5796 LD="${LD-ld} -m elf32_sparc"
5803 LD="${LD-ld} -m elf_x86_64"
5805 ppc*-*linux*|powerpc*-*linux*)
5806 LD="${LD-ld} -m elf64ppc"
5809 LD="${LD-ld} -m elf64_s390"
5812 LD="${LD-ld} -m elf64_sparc"
5822 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5823 SAVE_CFLAGS="$CFLAGS"
5824 CFLAGS="$CFLAGS -belf"
5825 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5826 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5827 if test "${lt_cv_cc_needs_belf+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 ac_cpp='$CPP $CPPFLAGS'
5832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836 cat >conftest.$ac_ext <<_ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853 (eval $ac_link) 2>conftest.er1
5855 grep -v '^ *+' conftest.er1 >conftest.err
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try='test -z "$ac_c_werror_flag"
5861 || test ! -s conftest.err'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; } &&
5867 { ac_try='test -s conftest$ac_exeext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 lt_cv_cc_needs_belf=yes
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 lt_cv_cc_needs_belf=no
5880 rm -f conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5883 ac_cpp='$CPP $CPPFLAGS'
5884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5889 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5890 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5891 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5892 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5893 CFLAGS="$SAVE_CFLAGS"
5896 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5897 if test -n "$ac_tool_prefix"; then
5898 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5899 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5900 echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5902 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 if test -n "$DLLTOOL"; then
5906 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 DLLTOOL=$ac_cv_prog_DLLTOOL
5925 if test -n "$DLLTOOL"; then
5926 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5927 echo "${ECHO_T}$DLLTOOL" >&6
5929 echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6
5934 if test -z "$ac_cv_prog_DLLTOOL"; then
5935 ac_ct_DLLTOOL=$DLLTOOL
5936 # Extract the first word of "dlltool", so it can be a program name with args.
5937 set dummy dlltool; ac_word=$2
5938 echo "$as_me:$LINENO: checking for $ac_word" >&5
5939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5940 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 if test -n "$ac_ct_DLLTOOL"; then
5944 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5953 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5963 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5964 if test -n "$ac_ct_DLLTOOL"; then
5965 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5966 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5968 echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5972 DLLTOOL=$ac_ct_DLLTOOL
5974 DLLTOOL="$ac_cv_prog_DLLTOOL"
5977 if test -n "$ac_tool_prefix"; then
5978 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5979 set dummy ${ac_tool_prefix}as; ac_word=$2
5980 echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5982 if test "${ac_cv_prog_AS+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 if test -n "$AS"; then
5986 ac_cv_prog_AS="$AS" # Let the user override the test.
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995 ac_cv_prog_AS="${ac_tool_prefix}as"
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 if test -n "$AS"; then
6006 echo "$as_me:$LINENO: result: $AS" >&5
6007 echo "${ECHO_T}$AS" >&6
6009 echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6
6014 if test -z "$ac_cv_prog_AS"; then
6016 # Extract the first word of "as", so it can be a program name with args.
6017 set dummy as; ac_word=$2
6018 echo "$as_me:$LINENO: checking for $ac_word" >&5
6019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6020 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 if test -n "$ac_ct_AS"; then
6024 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033 ac_cv_prog_ac_ct_AS="as"
6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6043 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6044 if test -n "$ac_ct_AS"; then
6045 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6046 echo "${ECHO_T}$ac_ct_AS" >&6
6048 echo "$as_me:$LINENO: result: no" >&5
6049 echo "${ECHO_T}no" >&6
6057 if test -n "$ac_tool_prefix"; then
6058 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6059 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6060 echo "$as_me:$LINENO: checking for $ac_word" >&5
6061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6062 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 if test -n "$OBJDUMP"; then
6066 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 OBJDUMP=$ac_cv_prog_OBJDUMP
6085 if test -n "$OBJDUMP"; then
6086 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6087 echo "${ECHO_T}$OBJDUMP" >&6
6089 echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6
6094 if test -z "$ac_cv_prog_OBJDUMP"; then
6095 ac_ct_OBJDUMP=$OBJDUMP
6096 # Extract the first word of "objdump", so it can be a program name with args.
6097 set dummy objdump; ac_word=$2
6098 echo "$as_me:$LINENO: checking for $ac_word" >&5
6099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6100 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 if test -n "$ac_ct_OBJDUMP"; then
6104 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6113 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6123 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6124 if test -n "$ac_ct_OBJDUMP"; then
6125 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6126 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6128 echo "$as_me:$LINENO: result: no" >&5
6129 echo "${ECHO_T}no" >&6
6132 OBJDUMP=$ac_ct_OBJDUMP
6134 OBJDUMP="$ac_cv_prog_OBJDUMP"
6141 need_locks="$enable_libtool_lock"
6145 ac_cpp='$CPP $CPPFLAGS'
6146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6149 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6150 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6151 # On Suns, sometimes $CPP names a directory.
6152 if test -n "$CPP" && test -d "$CPP"; then
6155 if test -z "$CPP"; then
6156 if test "${ac_cv_prog_CPP+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 # Double quotes because CPP needs to be expanded
6160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6163 for ac_c_preproc_warn_flag in '' yes
6165 # Use a header file that comes with gcc, so configuring glibc
6166 # with a fresh cross-compiler works.
6167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6168 # <limits.h> exists even on freestanding compilers.
6169 # On the NeXT, cc -E runs the code through the compiler's parser,
6170 # not just through cpp. "Syntax error" is here to catch this case.
6171 cat >conftest.$ac_ext <<_ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6178 # include <limits.h>
6180 # include <assert.h>
6184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6187 grep -v '^ *+' conftest.er1 >conftest.err
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } >/dev/null; then
6192 if test -s conftest.err; then
6193 ac_cpp_err=$ac_c_preproc_warn_flag
6194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6201 if test -z "$ac_cpp_err"; then
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 # Broken: fails on valid input.
6210 rm -f conftest.err conftest.$ac_ext
6212 # OK, works on sane cases. Now check whether non-existent headers
6213 # can be detected and how.
6214 cat >conftest.$ac_ext <<_ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220 #include <ac_nonexistent.h>
6222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6225 grep -v '^ *+' conftest.er1 >conftest.err
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } >/dev/null; then
6230 if test -s conftest.err; then
6231 ac_cpp_err=$ac_c_preproc_warn_flag
6232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6239 if test -z "$ac_cpp_err"; then
6240 # Broken: success on invalid input.
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 # Passes both tests.
6250 rm -f conftest.err conftest.$ac_ext
6253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6254 rm -f conftest.err conftest.$ac_ext
6255 if $ac_preproc_ok; then
6267 echo "$as_me:$LINENO: result: $CPP" >&5
6268 echo "${ECHO_T}$CPP" >&6
6270 for ac_c_preproc_warn_flag in '' yes
6272 # Use a header file that comes with gcc, so configuring glibc
6273 # with a fresh cross-compiler works.
6274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6275 # <limits.h> exists even on freestanding compilers.
6276 # On the NeXT, cc -E runs the code through the compiler's parser,
6277 # not just through cpp. "Syntax error" is here to catch this case.
6278 cat >conftest.$ac_ext <<_ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6285 # include <limits.h>
6287 # include <assert.h>
6291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6294 grep -v '^ *+' conftest.er1 >conftest.err
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } >/dev/null; then
6299 if test -s conftest.err; then
6300 ac_cpp_err=$ac_c_preproc_warn_flag
6301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6308 if test -z "$ac_cpp_err"; then
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6314 # Broken: fails on valid input.
6317 rm -f conftest.err conftest.$ac_ext
6319 # OK, works on sane cases. Now check whether non-existent headers
6320 # can be detected and how.
6321 cat >conftest.$ac_ext <<_ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 #include <ac_nonexistent.h>
6329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6332 grep -v '^ *+' conftest.er1 >conftest.err
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } >/dev/null; then
6337 if test -s conftest.err; then
6338 ac_cpp_err=$ac_c_preproc_warn_flag
6339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6346 if test -z "$ac_cpp_err"; then
6347 # Broken: success on invalid input.
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6353 # Passes both tests.
6357 rm -f conftest.err conftest.$ac_ext
6360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6361 rm -f conftest.err conftest.$ac_ext
6362 if $ac_preproc_ok; then
6365 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6366 See \`config.log' for more details." >&5
6367 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6368 See \`config.log' for more details." >&2;}
6369 { (exit 1); exit 1; }; }
6373 ac_cpp='$CPP $CPPFLAGS'
6374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6379 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6380 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6381 if test "${ac_cv_header_stdc+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 cat >conftest.$ac_ext <<_ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6407 grep -v '^ *+' conftest.er1 >conftest.err
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag"
6413 || test ! -s conftest.err'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest.$ac_objext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 ac_cv_header_stdc=yes
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6430 ac_cv_header_stdc=no
6432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434 if test $ac_cv_header_stdc = yes; then
6435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6436 cat >conftest.$ac_ext <<_ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6446 $EGREP "memchr" >/dev/null 2>&1; then
6449 ac_cv_header_stdc=no
6455 if test $ac_cv_header_stdc = yes; then
6456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6457 cat >conftest.$ac_ext <<_ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6467 $EGREP "free" >/dev/null 2>&1; then
6470 ac_cv_header_stdc=no
6476 if test $ac_cv_header_stdc = yes; then
6477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6478 if test "$cross_compiling" = yes; then
6481 cat >conftest.$ac_ext <<_ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6488 #if ((' ' & 0x0FF) == 0x020)
6489 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6490 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6492 # define ISLOWER(c) \
6493 (('a' <= (c) && (c) <= 'i') \
6494 || ('j' <= (c) && (c) <= 'r') \
6495 || ('s' <= (c) && (c) <= 'z'))
6496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6504 for (i = 0; i < 256; i++)
6505 if (XOR (islower (i), ISLOWER (i))
6506 || toupper (i) != TOUPPER (i))
6511 rm -f conftest$ac_exeext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6513 (eval $ac_link) 2>&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; }; then
6524 echo "$as_me: program exited with status $ac_status" >&5
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6529 ac_cv_header_stdc=no
6531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6535 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6536 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6537 if test $ac_cv_header_stdc = yes; then
6539 cat >>confdefs.h <<\_ACEOF
6540 #define STDC_HEADERS 1
6545 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6555 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6556 inttypes.h stdint.h unistd.h
6558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6559 echo "$as_me:$LINENO: checking for $ac_header" >&5
6560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 cat >conftest.$ac_ext <<_ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 $ac_includes_default
6572 #include <$ac_header>
6574 rm -f conftest.$ac_objext
6575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6576 (eval $ac_compile) 2>conftest.er1
6578 grep -v '^ *+' conftest.er1 >conftest.err
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try='test -z "$ac_c_werror_flag"
6584 || test ! -s conftest.err'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try='test -s conftest.$ac_objext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 eval "$as_ac_Header=yes"
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 eval "$as_ac_Header=no"
6603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6608 cat >>confdefs.h <<_ACEOF
6609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6618 for ac_header in dlfcn.h
6620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6622 echo "$as_me:$LINENO: checking for $ac_header" >&5
6623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6630 # Is the header compilable?
6631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6633 cat >conftest.$ac_ext <<_ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6640 #include <$ac_header>
6642 rm -f conftest.$ac_objext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6644 (eval $ac_compile) 2>conftest.er1
6646 grep -v '^ *+' conftest.er1 >conftest.err
6648 cat conftest.err >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } &&
6651 { ac_try='test -z "$ac_c_werror_flag"
6652 || test ! -s conftest.err'
6653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; } &&
6658 { ac_try='test -s conftest.$ac_objext'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
6664 ac_header_compiler=yes
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6669 ac_header_compiler=no
6671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6673 echo "${ECHO_T}$ac_header_compiler" >&6
6675 # Is the header present?
6676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6678 cat >conftest.$ac_ext <<_ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 #include <$ac_header>
6686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6689 grep -v '^ *+' conftest.er1 >conftest.err
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } >/dev/null; then
6694 if test -s conftest.err; then
6695 ac_cpp_err=$ac_c_preproc_warn_flag
6696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6703 if test -z "$ac_cpp_err"; then
6704 ac_header_preproc=yes
6706 echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6709 ac_header_preproc=no
6711 rm -f conftest.err conftest.$ac_ext
6712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6713 echo "${ECHO_T}$ac_header_preproc" >&6
6715 # So? What about this header?
6716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6722 ac_header_preproc=yes
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6739 ## --------------------------------------------- ##
6740 ## Report this to <http://www.openldap.org/its/> ##
6741 ## --------------------------------------------- ##
6744 sed "s/^/$as_me: WARNING: /" >&2
6747 echo "$as_me:$LINENO: checking for $ac_header" >&5
6748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 eval "$as_ac_Header=\$ac_header_preproc"
6754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6759 cat >>confdefs.h <<_ACEOF
6760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6768 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6770 # find the maximum length of command line arguments
6771 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6772 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6773 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 # On DJGPP, this test can blow up pretty badly due to problems in libc
6782 # (any single argument exceeding 2000 bytes causes a buffer overrun
6783 # during glob expansion). Even if it were fixed, the result of this
6784 # check would be larger than it should be.
6785 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6789 # Under GNU Hurd, this test is not required because there is
6790 # no limit to the length of command line arguments.
6791 # Libtool will interpret -1 as no limit whatsoever
6792 lt_cv_sys_max_cmd_len=-1;
6796 # On Win9x/ME, this test blows up -- it succeeds, but takes
6797 # about 5 minutes as the teststring grows exponentially.
6798 # Worse, since 9x/ME are not pre-emptively multitasking,
6799 # you end up with a "frozen" computer, even though with patience
6800 # the test eventually succeeds (with a max line length of 256k).
6801 # Instead, let's just punt: use the minimum linelength reported by
6802 # all of the supported platforms: 8192 (on NT/2K/XP).
6803 lt_cv_sys_max_cmd_len=8192;
6807 # On AmigaOS with pdksh, this test takes hours, literally.
6808 # So we just punt and use a minimum line length of 8192.
6809 lt_cv_sys_max_cmd_len=8192;
6812 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6813 # This has been around since 386BSD, at least. Likely further.
6814 if test -x /sbin/sysctl; then
6815 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6816 elif test -x /usr/sbin/sysctl; then
6817 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6819 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6821 # And add a safety zone
6822 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6826 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6827 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6828 # nice to cause kernel panics so lets avoid the loop below.
6829 # First set a reasonable default.
6830 lt_cv_sys_max_cmd_len=16384
6832 if test -x /sbin/sysconfig; then
6833 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6834 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6839 # If test is not a shell built-in, we'll probably end up computing a
6840 # maximum length that is only half of the actual maximum length, but
6842 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6843 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6844 = "XX$teststring") >/dev/null 2>&1 &&
6845 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6846 lt_cv_sys_max_cmd_len=$new_result &&
6847 test $i != 17 # 1/2 MB should be enough
6850 teststring=$teststring$teststring
6853 # Add a significant safety factor because C++ compilers can tack on massive
6854 # amounts of additional arguments before passing them to the linker.
6855 # It appears as though 1/2 is a usable value.
6856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6862 if test -n $lt_cv_sys_max_cmd_len ; then
6863 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6864 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6866 echo "$as_me:$LINENO: result: none" >&5
6867 echo "${ECHO_T}none" >&6
6873 # Check for command to grab the raw symbol name followed by C symbol from nm.
6874 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6875 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6876 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 # These are sane defaults that work on at least a few old systems.
6881 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6883 # Character class describing NM global symbol codes.
6884 symcode='[BCDEGRST]'
6886 # Regexp to match symbols that can be accessed directly from C.
6887 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6889 # Transform an extracted symbol line into a proper C declaration
6890 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6892 # Transform an extracted symbol line into symbol name and symbol address
6893 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6895 # Define system-specific variables.
6900 cygwin* | mingw* | pw32*)
6901 symcode='[ABCDGISTW]'
6903 hpux*) # Its linker distinguishes data from code symbols
6904 if test "$host_cpu" = ia64; then
6905 symcode='[ABCDEGRST]'
6907 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6908 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6911 if test "$host_cpu" = ia64; then
6912 symcode='[ABCDGIRSTW]'
6913 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6914 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6918 symcode='[BCDEGRST]'
6921 symcode='[BCDEGQRST]'
6931 # Handle CRLF in mingw tool chain
6935 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6939 # If we're using GNU nm, then use its standard symbol codes.
6940 case `$NM -V 2>&1` in
6941 *GNU* | *'with BFD'*)
6942 symcode='[ABCDGIRSTW]' ;;
6945 # Try without a prefix undercore, then with it.
6946 for ac_symprfx in "" "_"; do
6948 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6949 symxfrm="\\1 $ac_symprfx\\2 \\2"
6951 # Write the raw and C identifiers.
6952 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6954 # Check to see that the pipe works correctly.
6958 cat > conftest.$ac_ext <<EOF
6963 void nm_test_func(){}
6967 int main(){nm_test_var='a';nm_test_func();return(0);}
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971 (eval $ac_compile) 2>&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; then
6975 # Now try to grab the symbols.
6977 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6978 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && test -s "$nlist"; then
6982 # Try sorting and uniquifying the output.
6983 if sort "$nlist" | uniq > "$nlist"T; then
6984 mv -f "$nlist"T "$nlist"
6989 # Make sure that we snagged all the symbols we need.
6990 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6991 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6992 cat <<EOF > conftest.$ac_ext
6998 # Now generate the symbol file.
6999 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7001 cat <<EOF >> conftest.$ac_ext
7002 #if defined (__STDC__) && __STDC__
7003 # define lt_ptr_t void *
7005 # define lt_ptr_t char *
7009 /* The mapping between symbol names and symbols. */
7014 lt_preloaded_symbols[] =
7017 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7018 cat <<\EOF >> conftest.$ac_ext
7026 # Now try linking the two files.
7027 mv conftest.$ac_objext conftstm.$ac_objext
7028 lt_save_LIBS="$LIBS"
7029 lt_save_CFLAGS="$CFLAGS"
7030 LIBS="conftstm.$ac_objext"
7031 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7033 (eval $ac_link) 2>&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7039 LIBS="$lt_save_LIBS"
7040 CFLAGS="$lt_save_CFLAGS"
7042 echo "cannot find nm_test_func in $nlist" >&5
7045 echo "cannot find nm_test_var in $nlist" >&5
7048 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7051 echo "$progname: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7054 rm -f conftest* conftst*
7056 # Do not use the global_symbol_pipe unless it works.
7057 if test "$pipe_works" = yes; then
7060 lt_cv_sys_global_symbol_pipe=
7066 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7067 lt_cv_sys_global_symbol_to_cdecl=
7069 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7070 echo "$as_me:$LINENO: result: failed" >&5
7071 echo "${ECHO_T}failed" >&6
7073 echo "$as_me:$LINENO: result: ok" >&5
7074 echo "${ECHO_T}ok" >&6
7077 echo "$as_me:$LINENO: checking for objdir" >&5
7078 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7079 if test "${lt_cv_objdir+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 rm -f .libs 2>/dev/null
7083 mkdir .libs 2>/dev/null
7084 if test -d .libs; then
7087 # MS-DOS does not allow filenames that begin with a dot.
7090 rmdir .libs 2>/dev/null
7092 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7093 echo "${ECHO_T}$lt_cv_objdir" >&6
7094 objdir=$lt_cv_objdir
7102 # AIX sometimes has problems with the GCC collect2 program. For some
7103 # reason, if we set the COLLECT_NAMES environment variable, the problems
7104 # vanish in a puff of smoke.
7105 if test "X${COLLECT_NAMES+set}" != Xset; then
7107 export COLLECT_NAMES
7112 # Sed substitution that helps us do robust quoting. It backslashifies
7113 # metacharacters that are still active within double-quoted strings.
7114 Xsed='sed -e 1s/^X//'
7115 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7117 # Same as above, but do not quote variable references.
7118 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7120 # Sed substitution to delay expansion of an escaped shell variable in a
7121 # double_quote_subst'ed string.
7122 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7124 # Sed substitution to avoid accidental globbing in evaled expressions
7125 no_glob_subst='s/\*/\\\*/g'
7131 default_ofile=libtool
7132 can_build_shared=yes
7134 # All known linkers require a `.a' archive for static linking (except MSVC,
7135 # which needs '.lib').
7137 ltmain="$ac_aux_dir/ltmain.sh"
7138 ofile="$default_ofile"
7139 with_gnu_ld="$lt_cv_prog_gnu_ld"
7141 if test -n "$ac_tool_prefix"; then
7142 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7143 set dummy ${ac_tool_prefix}ar; ac_word=$2
7144 echo "$as_me:$LINENO: checking for $ac_word" >&5
7145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7146 if test "${ac_cv_prog_AR+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 if test -n "$AR"; then
7150 ac_cv_prog_AR="$AR" # Let the user override the test.
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_AR="${ac_tool_prefix}ar"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 if test -n "$AR"; then
7170 echo "$as_me:$LINENO: result: $AR" >&5
7171 echo "${ECHO_T}$AR" >&6
7173 echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7178 if test -z "$ac_cv_prog_AR"; then
7180 # Extract the first word of "ar", so it can be a program name with args.
7181 set dummy ar; ac_word=$2
7182 echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7184 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 if test -n "$ac_ct_AR"; then
7188 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_ac_ct_AR="ar"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7207 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7208 if test -n "$ac_ct_AR"; then
7209 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7210 echo "${ECHO_T}$ac_ct_AR" >&6
7212 echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7224 echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226 if test "${ac_cv_prog_RANLIB+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 if test -n "$RANLIB"; then
7230 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 RANLIB=$ac_cv_prog_RANLIB
7249 if test -n "$RANLIB"; then
7250 echo "$as_me:$LINENO: result: $RANLIB" >&5
7251 echo "${ECHO_T}$RANLIB" >&6
7253 echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6
7258 if test -z "$ac_cv_prog_RANLIB"; then
7259 ac_ct_RANLIB=$RANLIB
7260 # Extract the first word of "ranlib", so it can be a program name with args.
7261 set dummy ranlib; ac_word=$2
7262 echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7264 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 if test -n "$ac_ct_RANLIB"; then
7268 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_ac_ct_RANLIB="ranlib"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7287 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7288 if test -n "$ac_ct_RANLIB"; then
7289 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7290 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7292 echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6
7296 RANLIB=$ac_ct_RANLIB
7298 RANLIB="$ac_cv_prog_RANLIB"
7301 if test -n "$ac_tool_prefix"; then
7302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}strip; ac_word=$2
7304 echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7306 if test "${ac_cv_prog_STRIP+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 if test -n "$STRIP"; then
7310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 STRIP=$ac_cv_prog_STRIP
7329 if test -n "$STRIP"; then
7330 echo "$as_me:$LINENO: result: $STRIP" >&5
7331 echo "${ECHO_T}$STRIP" >&6
7333 echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6
7338 if test -z "$ac_cv_prog_STRIP"; then
7340 # Extract the first word of "strip", so it can be a program name with args.
7341 set dummy strip; ac_word=$2
7342 echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7344 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 if test -n "$ac_ct_STRIP"; then
7348 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_ac_ct_STRIP="strip"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7367 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7368 if test -n "$ac_ct_STRIP"; then
7369 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7370 echo "${ECHO_T}$ac_ct_STRIP" >&6
7372 echo "$as_me:$LINENO: result: no" >&5
7373 echo "${ECHO_T}no" >&6
7378 STRIP="$ac_cv_prog_STRIP"
7383 old_CFLAGS="$CFLAGS"
7385 # Set sane defaults for various variables
7386 test -z "$AR" && AR=ar
7387 test -z "$AR_FLAGS" && AR_FLAGS=cru
7388 test -z "$AS" && AS=as
7389 test -z "$CC" && CC=cc
7390 test -z "$LTCC" && LTCC=$CC
7391 test -z "$DLLTOOL" && DLLTOOL=dlltool
7392 test -z "$LD" && LD=ld
7393 test -z "$LN_S" && LN_S="ln -s"
7394 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7395 test -z "$NM" && NM=nm
7396 test -z "$SED" && SED=sed
7397 test -z "$OBJDUMP" && OBJDUMP=objdump
7398 test -z "$RANLIB" && RANLIB=:
7399 test -z "$STRIP" && STRIP=:
7400 test -z "$ac_objext" && ac_objext=o
7402 # Determine commands to create old-style static archives.
7403 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7404 old_postinstall_cmds='chmod 644 $oldlib'
7405 old_postuninstall_cmds=
7407 if test -n "$RANLIB"; then
7410 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7413 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7416 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7419 for cc_temp in $compiler""; do
7421 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7422 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7427 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7430 # Only perform the check for file, if the check method requires it
7431 case $deplibs_check_method in
7433 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7434 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7435 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7436 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7444 lt_save_MAGIC_CMD="$MAGIC_CMD"
7445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7447 for ac_dir in $ac_dummy; do
7449 test -z "$ac_dir" && ac_dir=.
7450 if test -f $ac_dir/${ac_tool_prefix}file; then
7451 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7452 if test -n "$file_magic_test_file"; then
7453 case $deplibs_check_method in
7455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7458 $EGREP "$file_magic_regex" > /dev/null; then
7463 *** Warning: the command libtool uses to detect shared libraries,
7464 *** $file_magic_cmd, produces output that libtool cannot recognize.
7465 *** The result is that libtool may fail to recognize shared libraries
7466 *** as such. This will affect the creation of libtool libraries that
7467 *** depend on shared libraries, but programs linked with such libtool
7468 *** libraries will work regardless of this problem. Nevertheless, you
7469 *** may want to report the problem to your system manager and/or to
7470 *** bug-libtool@gnu.org
7480 MAGIC_CMD="$lt_save_MAGIC_CMD"
7485 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7486 if test -n "$MAGIC_CMD"; then
7487 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7488 echo "${ECHO_T}$MAGIC_CMD" >&6
7490 echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7494 if test -z "$lt_cv_path_MAGIC_CMD"; then
7495 if test -n "$ac_tool_prefix"; then
7496 echo "$as_me:$LINENO: checking for file" >&5
7497 echo $ECHO_N "checking for file... $ECHO_C" >&6
7498 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7506 lt_save_MAGIC_CMD="$MAGIC_CMD"
7507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7508 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7509 for ac_dir in $ac_dummy; do
7511 test -z "$ac_dir" && ac_dir=.
7512 if test -f $ac_dir/file; then
7513 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7514 if test -n "$file_magic_test_file"; then
7515 case $deplibs_check_method in
7517 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7519 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7520 $EGREP "$file_magic_regex" > /dev/null; then
7525 *** Warning: the command libtool uses to detect shared libraries,
7526 *** $file_magic_cmd, produces output that libtool cannot recognize.
7527 *** The result is that libtool may fail to recognize shared libraries
7528 *** as such. This will affect the creation of libtool libraries that
7529 *** depend on shared libraries, but programs linked with such libtool
7530 *** libraries will work regardless of this problem. Nevertheless, you
7531 *** may want to report the problem to your system manager and/or to
7532 *** bug-libtool@gnu.org
7542 MAGIC_CMD="$lt_save_MAGIC_CMD"
7547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7548 if test -n "$MAGIC_CMD"; then
7549 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7550 echo "${ECHO_T}$MAGIC_CMD" >&6
7552 echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6
7566 enable_win32_dll=yes
7568 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7569 if test "${enable_libtool_lock+set}" = set; then
7570 enableval="$enable_libtool_lock"
7573 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7576 # Check whether --with-pic or --without-pic was given.
7577 if test "${with_pic+set}" = set; then
7583 test -z "$pic_mode" && pic_mode=default
7585 # Use C for the default configuration in the libtool script
7589 ac_cpp='$CPP $CPPFLAGS'
7590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7595 # Source file extension for C test sources.
7598 # Object file extension for compiled C test sources.
7602 # Code to be used in simple compile tests
7603 lt_simple_compile_test_code="int some_variable = 0;\n"
7605 # Code to be used in simple link tests
7606 lt_simple_link_test_code='int main(){return(0);}\n'
7609 # If no C compiler was specified, use CC.
7612 # Allow CC to be a program name with arguments.
7616 # save warnings/boilerplate of simple test code
7617 ac_outfile=conftest.$ac_objext
7618 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7619 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7620 _lt_compiler_boilerplate=`cat conftest.err`
7623 ac_outfile=conftest.$ac_objext
7624 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7625 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7626 _lt_linker_boilerplate=`cat conftest.err`
7631 # Check for any special shared library compilation flags.
7634 if test "$GCC" = no; then
7637 lt_prog_cc_shlib='-belf'
7641 if test -n "$lt_prog_cc_shlib"; then
7642 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7643 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7644 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7646 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7647 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7648 lt_cv_prog_cc_can_build_shared=no
7654 # Check to make sure the static flag actually works.
7656 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7657 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7658 if test "${lt_prog_compiler_static_works+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 lt_prog_compiler_static_works=no
7662 save_LDFLAGS="$LDFLAGS"
7663 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7664 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7665 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7666 # The linker can only warn and ignore the option if not recognized
7667 # So say no if there are warnings
7668 if test -s conftest.err; then
7669 # Append any errors to the config.log.
7670 cat conftest.err 1>&5
7671 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7672 $SED '/^$/d' conftest.err >conftest.er2
7673 if diff conftest.exp conftest.er2 >/dev/null; then
7674 lt_prog_compiler_static_works=yes
7677 lt_prog_compiler_static_works=yes
7681 LDFLAGS="$save_LDFLAGS"
7684 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7685 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7687 if test x"$lt_prog_compiler_static_works" = xyes; then
7690 lt_prog_compiler_static=
7696 lt_prog_compiler_no_builtin_flag=
7698 if test "$GCC" = yes; then
7699 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7702 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7703 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7704 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 lt_cv_prog_compiler_rtti_exceptions=no
7708 ac_outfile=conftest.$ac_objext
7709 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7710 lt_compiler_flag="-fno-rtti -fno-exceptions"
7711 # Insert the option either (1) after the last *FLAGS variable, or
7712 # (2) before a word containing "conftest.", or (3) at the end.
7713 # Note that $ac_compile itself does not contain backslashes and begins
7714 # with a dollar sign (not a hyphen), so the echo should work correctly.
7715 # The option is referenced via a variable to avoid confusing sed.
7716 lt_compile=`echo "$ac_compile" | $SED \
7717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7719 -e 's:$: $lt_compiler_flag:'`
7720 (eval echo "\"\$as_me:7720: $lt_compile\"" >&5)
7721 (eval "$lt_compile" 2>conftest.err)
7723 cat conftest.err >&5
7724 echo "$as_me:7724: \$? = $ac_status" >&5
7725 if (exit $ac_status) && test -s "$ac_outfile"; then
7726 # The compiler can only warn and ignore the option if not recognized
7727 # So say no if there are warnings other than the usual output.
7728 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7729 $SED '/^$/d' conftest.err >conftest.er2
7730 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7731 lt_cv_prog_compiler_rtti_exceptions=yes
7737 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7738 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7740 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7741 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7748 lt_prog_compiler_wl=
7749 lt_prog_compiler_pic=
7750 lt_prog_compiler_static=
7752 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7753 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7755 if test "$GCC" = yes; then
7756 lt_prog_compiler_wl='-Wl,'
7757 lt_prog_compiler_static='-static'
7761 # All AIX code is PIC.
7762 if test "$host_cpu" = ia64; then
7763 # AIX 5 now supports IA64 processor
7764 lt_prog_compiler_static='-Bstatic'
7769 # FIXME: we need at least 68020 code to build shared libraries, but
7770 # adding the `-m68020' flag to GCC prevents building anything better,
7772 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7775 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7776 # PIC is the default for these OSes.
7779 mingw* | pw32* | os2*)
7780 # This hack is so that the source file can tell whether it is being
7781 # built for inclusion in a dll (and should export symbols for example).
7782 lt_prog_compiler_pic='-DDLL_EXPORT'
7785 darwin* | rhapsody*)
7786 # PIC is the default on this platform
7787 # Common symbols not allowed in MH_DYLIB files
7788 lt_prog_compiler_pic='-fno-common'
7792 # Just because we use GCC doesn't mean we suddenly get shared libraries
7793 # on systems that don't support them.
7794 lt_prog_compiler_can_build_shared=no
7799 if test -d /usr/nec; then
7800 lt_prog_compiler_pic=-Kconform_pic
7805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7812 lt_prog_compiler_pic='-fPIC'
7818 lt_prog_compiler_pic='-fPIC'
7822 # PORTME Check for flag to pass linker flags through the system compiler.
7825 lt_prog_compiler_wl='-Wl,'
7826 if test "$host_cpu" = ia64; then
7827 # AIX 5 now supports IA64 processor
7828 lt_prog_compiler_static='-Bstatic'
7830 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7834 # PIC is the default on this platform
7835 # Common symbols not allowed in MH_DYLIB files
7836 case $cc_basename in
7838 lt_prog_compiler_pic='-qnocommon'
7839 lt_prog_compiler_wl='-Wl,'
7844 mingw* | pw32* | os2*)
7845 # This hack is so that the source file can tell whether it is being
7846 # built for inclusion in a dll (and should export symbols for example).
7847 lt_prog_compiler_pic='-DDLL_EXPORT'
7850 hpux9* | hpux10* | hpux11*)
7851 lt_prog_compiler_wl='-Wl,'
7852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7859 lt_prog_compiler_pic='+Z'
7862 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7863 lt_prog_compiler_static='${wl}-a ${wl}archive'
7866 irix5* | irix6* | nonstopux*)
7867 lt_prog_compiler_wl='-Wl,'
7868 # PIC (with -KPIC) is the default.
7869 lt_prog_compiler_static='-non_shared'
7873 lt_prog_compiler_pic='-KPIC'
7874 lt_prog_compiler_static='-Bstatic'
7878 case $cc_basename in
7880 lt_prog_compiler_wl='-Wl,'
7881 lt_prog_compiler_pic='-KPIC'
7882 lt_prog_compiler_static='-static'
7884 pgcc* | pgf77* | pgf90* | pgf95*)
7885 # Portland Group compilers (*not* the Pentium gcc compiler,
7886 # which looks to be a dead project)
7887 lt_prog_compiler_wl='-Wl,'
7888 lt_prog_compiler_pic='-fpic'
7889 lt_prog_compiler_static='-Bstatic'
7892 lt_prog_compiler_wl='-Wl,'
7893 # All Alpha code is PIC.
7894 lt_prog_compiler_static='-non_shared'
7899 osf3* | osf4* | osf5*)
7900 lt_prog_compiler_wl='-Wl,'
7901 # All OSF/1 code is PIC.
7902 lt_prog_compiler_static='-non_shared'
7906 lt_prog_compiler_pic='-Kpic'
7907 lt_prog_compiler_static='-dn'
7911 lt_prog_compiler_pic='-KPIC'
7912 lt_prog_compiler_static='-Bstatic'
7913 case $cc_basename in
7915 lt_prog_compiler_wl='-Qoption ld ';;
7917 lt_prog_compiler_wl='-Wl,';;
7922 lt_prog_compiler_wl='-Qoption ld '
7923 lt_prog_compiler_pic='-PIC'
7924 lt_prog_compiler_static='-Bstatic'
7927 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7928 lt_prog_compiler_wl='-Wl,'
7929 lt_prog_compiler_pic='-KPIC'
7930 lt_prog_compiler_static='-Bstatic'
7934 if test -d /usr/nec ;then
7935 lt_prog_compiler_pic='-Kconform_pic'
7936 lt_prog_compiler_static='-Bstatic'
7941 lt_prog_compiler_wl='-Wl,'
7942 lt_prog_compiler_can_build_shared=no
7946 lt_prog_compiler_pic='-pic'
7947 lt_prog_compiler_static='-Bstatic'
7951 lt_prog_compiler_can_build_shared=no
7956 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7957 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7960 # Check to make sure the PIC flag actually works.
7962 if test -n "$lt_prog_compiler_pic"; then
7964 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7965 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7966 if test "${lt_prog_compiler_pic_works+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 lt_prog_compiler_pic_works=no
7970 ac_outfile=conftest.$ac_objext
7971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7972 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7973 # Insert the option either (1) after the last *FLAGS variable, or
7974 # (2) before a word containing "conftest.", or (3) at the end.
7975 # Note that $ac_compile itself does not contain backslashes and begins
7976 # with a dollar sign (not a hyphen), so the echo should work correctly.
7977 # The option is referenced via a variable to avoid confusing sed.
7978 lt_compile=`echo "$ac_compile" | $SED \
7979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7981 -e 's:$: $lt_compiler_flag:'`
7982 (eval echo "\"\$as_me:7982: $lt_compile\"" >&5)
7983 (eval "$lt_compile" 2>conftest.err)
7985 cat conftest.err >&5
7986 echo "$as_me:7986: \$? = $ac_status" >&5
7987 if (exit $ac_status) && test -s "$ac_outfile"; then
7988 # The compiler can only warn and ignore the option if not recognized
7989 # So say no if there are warnings other than the usual output.
7990 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7991 $SED '/^$/d' conftest.err >conftest.er2
7992 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7993 lt_prog_compiler_pic_works=yes
7999 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8000 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8002 if test x"$lt_prog_compiler_pic_works" = xyes; then
8003 case $lt_prog_compiler_pic in
8005 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8008 lt_prog_compiler_pic=
8009 lt_prog_compiler_can_build_shared=no
8014 # For platforms which do not support PIC, -DPIC is meaningless:
8016 lt_prog_compiler_pic=
8019 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8023 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8024 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8025 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 lt_cv_prog_compiler_c_o=no
8029 $rm -r conftest 2>/dev/null
8033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8035 lt_compiler_flag="-o out/conftest2.$ac_objext"
8036 # Insert the option either (1) after the last *FLAGS variable, or
8037 # (2) before a word containing "conftest.", or (3) at the end.
8038 # Note that $ac_compile itself does not contain backslashes and begins
8039 # with a dollar sign (not a hyphen), so the echo should work correctly.
8040 lt_compile=`echo "$ac_compile" | $SED \
8041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8043 -e 's:$: $lt_compiler_flag:'`
8044 (eval echo "\"\$as_me:8044: $lt_compile\"" >&5)
8045 (eval "$lt_compile" 2>out/conftest.err)
8047 cat out/conftest.err >&5
8048 echo "$as_me:8048: \$? = $ac_status" >&5
8049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8051 # The compiler can only warn and ignore the option if not recognized
8052 # So say no if there are warnings
8053 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8054 $SED '/^$/d' out/conftest.err >out/conftest.er2
8055 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8056 lt_cv_prog_compiler_c_o=yes
8061 # SGI C++ compiler will create directory out/ii_files/ for
8062 # template instantiation
8063 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8064 $rm out/* && rmdir out
8070 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8071 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8074 hard_links="nottested"
8075 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8076 # do not overwrite the value of need_locks provided by the user
8077 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8078 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8083 ln conftest.a conftest.b 2>&5 || hard_links=no
8084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8085 echo "$as_me:$LINENO: result: $hard_links" >&5
8086 echo "${ECHO_T}$hard_links" >&6
8087 if test "$hard_links" = no; then
8088 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8089 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8096 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8097 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8100 allow_undefined_flag=
8101 enable_shared_with_static_runtimes=no
8103 archive_expsym_cmds=
8104 old_archive_From_new_cmds=
8105 old_archive_from_expsyms_cmds=
8106 export_dynamic_flag_spec=
8107 whole_archive_flag_spec=
8108 thread_safe_flag_spec=
8109 hardcode_libdir_flag_spec=
8110 hardcode_libdir_flag_spec_ld=
8111 hardcode_libdir_separator=
8114 hardcode_shlibpath_var=unsupported
8115 link_all_deplibs=unknown
8116 hardcode_automatic=no
8119 always_export_symbols=no
8120 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8121 # include_expsyms should be a list of space-separated symbols to be *always*
8122 # included in the symbol list
8124 # exclude_expsyms can be an extended regexp of symbols to exclude
8125 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8126 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8127 # as well as any symbol that contains `d'.
8128 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8129 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8130 # platforms (ab)use it in PIC code, but their linkers get confused if
8131 # the symbol is explicitly referenced. Since portable code cannot
8132 # rely on this symbol name, it's probably fine to never include it in
8133 # preloaded symbol tables.
8134 extract_expsyms_cmds=
8135 # Just being paranoid about ensuring that cc_basename is set.
8136 for cc_temp in $compiler""; do
8138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8144 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8147 cygwin* | mingw* | pw32*)
8148 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8149 # When not using gcc, we currently assume that we are using
8150 # Microsoft Visual C++.
8151 if test "$GCC" != yes; then
8161 if test "$with_gnu_ld" = yes; then
8162 # If archive_cmds runs LD, not CC, wlarc should be empty
8165 # Set some defaults for GNU ld with shared library support. These
8166 # are reset later if shared libraries are not supported. Putting them
8167 # here allows them to be overridden if necessary.
8168 runpath_var=LD_RUN_PATH
8169 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8170 export_dynamic_flag_spec='${wl}--export-dynamic'
8171 # ancient GNU ld didn't support --whole-archive et. al.
8172 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8173 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8175 whole_archive_flag_spec=
8177 supports_anon_versioning=no
8178 case `$LD -v 2>/dev/null` in
8179 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8180 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8181 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8182 *\ 2.11.*) ;; # other 2.11 versions
8183 *) supports_anon_versioning=yes ;;
8186 # See if GNU ld supports shared libraries.
8188 aix3* | aix4* | aix5*)
8189 # On AIX/PPC, the GNU linker is very broken
8190 if test "$host_cpu" != ia64; then
8194 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8195 *** to be unable to reliably create shared libraries on AIX.
8196 *** Therefore, libtool is disabling shared libraries support. If you
8197 *** really care for shared libraries, you may want to modify your PATH
8198 *** so that a non-GNU linker is found, and then restart.
8205 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8206 hardcode_libdir_flag_spec='-L$libdir'
8207 hardcode_minus_L=yes
8209 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8210 # that the semantics of dynamic libraries on AmigaOS, at least up
8211 # to version 4, is to share data among multiple programs linked
8212 # with the same dynamic library. Since this doesn't match the
8213 # behavior of shared libraries on other platforms, we can't use
8219 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8220 allow_undefined_flag=unsupported
8221 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8222 # support --undefined. This deserves some investigation. FIXME
8223 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8229 cygwin* | mingw* | pw32*)
8230 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8231 # as there is no search path for DLLs.
8232 hardcode_libdir_flag_spec='-L$libdir'
8233 allow_undefined_flag=unsupported
8234 always_export_symbols=no
8235 enable_shared_with_static_runtimes=yes
8236 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8238 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8240 # If the export-symbols file already is a .def file (1st line
8241 # is EXPORTS), use it as is; otherwise, prepend...
8242 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8243 cp $export_symbols $output_objdir/$soname.def;
8245 echo EXPORTS > $output_objdir/$soname.def;
8246 cat $export_symbols >> $output_objdir/$soname.def;
8248 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8257 case $cc_basename,$host_cpu in
8258 pgcc*) # Portland Group C compiler
8259 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8260 tmp_addflag=' $pic_flag'
8262 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8263 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8264 tmp_addflag=' $pic_flag -Mnomain' ;;
8265 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8266 tmp_addflag=' -i_dynamic' ;;
8267 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8268 tmp_addflag=' -i_dynamic -nofor_main' ;;
8269 ifc* | ifort*) # Intel Fortran compiler
8270 tmp_addflag=' -nofor_main' ;;
8272 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274 if test $supports_anon_versioning = yes; then
8275 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8277 $echo "local: *; };" >> $output_objdir/$libname.ver~
8278 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8286 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8287 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8296 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8300 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8301 *** create shared libraries on Solaris systems. Therefore, libtool
8302 *** is disabling shared libraries support. We urge you to upgrade GNU
8303 *** binutils to release 2.9.1 or newer. Another option is to modify
8304 *** your PATH or compiler configuration so that the native linker is
8305 *** used, and then restart.
8308 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8317 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8320 hardcode_shlibpath_var=no
8324 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8326 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8333 if test "$ld_shlibs" = no; then
8335 hardcode_libdir_flag_spec=
8336 export_dynamic_flag_spec=
8337 whole_archive_flag_spec=
8340 # PORTME fill in a description of your system's linker (not GNU ld)
8343 allow_undefined_flag=unsupported
8344 always_export_symbols=yes
8345 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8346 # Note: this linker hardcodes the directories in LIBPATH if there
8347 # are no directories specified by -L.
8348 hardcode_minus_L=yes
8349 if test "$GCC" = yes && test -z "$link_static_flag"; then
8350 # Neither direct hardcoding nor static linking is supported with a
8352 hardcode_direct=unsupported
8357 if test "$host_cpu" = ia64; then
8358 # On IA64, the linker does run time linking by default, so we don't
8359 # have to do anything special.
8360 aix_use_runtimelinking=no
8361 exp_sym_flag='-Bexport'
8364 # If we're using GNU nm, then we don't want the "-C" option.
8365 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8366 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8367 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8369 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8371 aix_use_runtimelinking=no
8373 # Test if we are trying to use run time linking or normal
8374 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8375 # need to do runtime linking.
8376 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8377 for ld_flag in $LDFLAGS; do
8378 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8379 aix_use_runtimelinking=yes
8385 exp_sym_flag='-bexport'
8386 no_entry_flag='-bnoentry'
8389 # When large executables or shared objects are built, AIX ld can
8390 # have problems creating the table of contents. If linking a library
8391 # or program results in "error TOC overflow" add -mminimal-toc to
8392 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8393 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8397 hardcode_libdir_separator=':'
8398 link_all_deplibs=yes
8400 if test "$GCC" = yes; then
8401 case $host_os in aix4.[012]|aix4.[012].*)
8402 # We only want to do this on AIX 4.2 and lower, the check
8403 # below for broken collect2 doesn't work under 4.3+
8404 collect2name=`${CC} -print-prog-name=collect2`
8405 if test -f "$collect2name" && \
8406 strings "$collect2name" | grep resolve_lib_name >/dev/null
8408 # We have reworked collect2
8411 # We have old collect2
8412 hardcode_direct=unsupported
8413 # It fails to find uninstalled libraries when the uninstalled
8414 # path is not listed in the libpath. Setting hardcode_minus_L
8415 # to unsupported forces relinking
8416 hardcode_minus_L=yes
8417 hardcode_libdir_flag_spec='-L$libdir'
8418 hardcode_libdir_separator=
8421 shared_flag='-shared'
8422 if test "$aix_use_runtimelinking" = yes; then
8423 shared_flag="$shared_flag "'${wl}-G'
8427 if test "$host_cpu" = ia64; then
8428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8429 # chokes on -Wl,-G. The following line is correct:
8432 if test "$aix_use_runtimelinking" = yes; then
8433 shared_flag='${wl}-G'
8435 shared_flag='${wl}-bM:SRE'
8440 # It seems that -bexpall does not export symbols beginning with
8441 # underscore (_), so it is better to generate a list of symbols to export.
8442 always_export_symbols=yes
8443 if test "$aix_use_runtimelinking" = yes; then
8444 # Warning - without using the other runtime loading flags (-brtl),
8445 # -berok will link without error, but may produce a broken library.
8446 allow_undefined_flag='-berok'
8447 # Determine the default libpath from the value encoded in an empty executable.
8448 cat >conftest.$ac_ext <<_ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8463 rm -f conftest.$ac_objext conftest$ac_exeext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465 (eval $ac_link) 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
8472 { ac_try='test -z "$ac_c_werror_flag"
8473 || test ! -s conftest.err'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; } &&
8479 { ac_try='test -s conftest$ac_exeext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8488 # Check for a 64-bit object if we didn't find anything.
8489 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8496 rm -f conftest.err conftest.$ac_objext \
8497 conftest$ac_exeext conftest.$ac_ext
8498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8501 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8503 if test "$host_cpu" = ia64; then
8504 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8505 allow_undefined_flag="-z nodefs"
8506 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8508 # Determine the default libpath from the value encoded in an empty executable.
8509 cat >conftest.$ac_ext <<_ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526 (eval $ac_link) 2>conftest.er1
8528 grep -v '^ *+' conftest.er1 >conftest.err
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag"
8534 || test ! -s conftest.err'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; } &&
8540 { ac_try='test -s conftest$ac_exeext'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8549 # Check for a 64-bit object if we didn't find anything.
8550 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8557 rm -f conftest.err conftest.$ac_objext \
8558 conftest$ac_exeext conftest.$ac_ext
8559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8561 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8562 # Warning - without using the other run time loading flags,
8563 # -berok will link without error, but may produce a broken library.
8564 no_undefined_flag=' ${wl}-bernotok'
8565 allow_undefined_flag=' ${wl}-berok'
8566 # -bexpall does not export symbols beginning with underscore (_)
8567 always_export_symbols=yes
8568 # Exported symbols can be pulled into shared objects from archives
8569 whole_archive_flag_spec=' '
8570 archive_cmds_need_lc=yes
8571 # This is similar to how AIX traditionally builds its shared libraries.
8572 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8578 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8579 hardcode_libdir_flag_spec='-L$libdir'
8580 hardcode_minus_L=yes
8581 # see comment about different semantics on the GNU ld section
8586 export_dynamic_flag_spec=-rdynamic
8589 cygwin* | mingw* | pw32*)
8590 # When not using gcc, we currently assume that we are using
8591 # Microsoft Visual C++.
8592 # hardcode_libdir_flag_spec is actually meaningless, as there is
8593 # no search path for DLLs.
8594 hardcode_libdir_flag_spec=' '
8595 allow_undefined_flag=unsupported
8596 # Tell ltmain to make .lib files, not .a files.
8598 # Tell ltmain to make .dll files, not .so files.
8600 # FIXME: Setting linknames here is a bad hack.
8601 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8602 # The linker will automatically build a .lib file if we build a DLL.
8603 old_archive_From_new_cmds='true'
8604 # FIXME: Should let the user specify the lib program.
8605 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8606 fix_srcfile_path='`cygpath -w "$srcfile"`'
8607 enable_shared_with_static_runtimes=yes
8610 darwin* | rhapsody*)
8612 rhapsody* | darwin1.[012])
8613 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8616 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8617 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8619 case ${MACOSX_DEPLOYMENT_TARGET} in
8621 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8624 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8630 archive_cmds_need_lc=no
8632 hardcode_automatic=yes
8633 hardcode_shlibpath_var=unsupported
8634 whole_archive_flag_spec=''
8635 link_all_deplibs=yes
8636 if test "$GCC" = yes ; then
8637 output_verbose_link_cmd='echo'
8638 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8639 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8640 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8641 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8642 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8644 case $cc_basename in
8646 output_verbose_link_cmd='echo'
8647 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8648 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8649 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8650 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8651 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8662 hardcode_libdir_flag_spec='-L$libdir'
8663 hardcode_shlibpath_var=no
8670 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8671 # support. Future versions do this automatically, but an explicit c++rt0.o
8672 # does not break anything, and helps significantly (at the cost of a little
8675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8676 hardcode_libdir_flag_spec='-R$libdir'
8678 hardcode_shlibpath_var=no
8681 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8685 hardcode_minus_L=yes
8686 hardcode_shlibpath_var=no
8689 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8690 freebsd* | kfreebsd*-gnu | dragonfly*)
8691 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8692 hardcode_libdir_flag_spec='-R$libdir'
8694 hardcode_shlibpath_var=no
8698 if test "$GCC" = yes; then
8699 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8701 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8704 hardcode_libdir_separator=:
8707 # hardcode_minus_L: Not really in the search PATH,
8708 # but as the default location of the library.
8709 hardcode_minus_L=yes
8710 export_dynamic_flag_spec='${wl}-E'
8714 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8717 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8726 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8733 if test "$with_gnu_ld" = no; then
8736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8737 hardcode_libdir_flag_spec_ld='+b $libdir'
8738 hardcode_libdir_separator=:
8740 hardcode_shlibpath_var=no
8743 hardcode_libdir_flag_spec='-L$libdir'
8745 hardcode_shlibpath_var=no
8747 # hardcode_minus_L: Not really in the search PATH,
8748 # but as the default location of the library.
8749 hardcode_minus_L=yes
8752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8753 hardcode_libdir_separator=:
8755 export_dynamic_flag_spec='${wl}-E'
8757 # hardcode_minus_L: Not really in the search PATH,
8758 # but as the default location of the library.
8759 hardcode_minus_L=yes
8765 irix5* | irix6* | nonstopux*)
8766 if test "$GCC" = yes; then
8767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8769 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8770 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8773 hardcode_libdir_separator=:
8774 link_all_deplibs=yes
8778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8781 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8783 hardcode_libdir_flag_spec='-R$libdir'
8785 hardcode_shlibpath_var=no
8789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792 hardcode_libdir_separator=:
8793 hardcode_shlibpath_var=no
8798 hardcode_shlibpath_var=no
8799 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8801 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8803 export_dynamic_flag_spec='${wl}-E'
8806 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8807 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_libdir_flag_spec='-R$libdir'
8811 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8812 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8819 hardcode_libdir_flag_spec='-L$libdir'
8820 hardcode_minus_L=yes
8821 allow_undefined_flag=unsupported
8822 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8823 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8827 if test "$GCC" = yes; then
8828 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8829 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8831 allow_undefined_flag=' -expect_unresolved \*'
8832 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835 hardcode_libdir_separator=:
8838 osf4* | osf5*) # as osf3* with the addition of -msym flag
8839 if test "$GCC" = yes; then
8840 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8841 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8844 allow_undefined_flag=' -expect_unresolved \*'
8845 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8846 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8847 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8849 # Both c and cxx compiler support -rpath directly
8850 hardcode_libdir_flag_spec='-rpath $libdir'
8852 hardcode_libdir_separator=:
8856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8857 hardcode_shlibpath_var=no
8858 export_dynamic_flag_spec='${wl}-Bexport'
8859 runpath_var=LD_RUN_PATH
8860 hardcode_runpath_var=yes
8864 no_undefined_flag=' -z text'
8865 if test "$GCC" = yes; then
8867 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8868 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8869 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8872 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8874 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8876 hardcode_libdir_flag_spec='-R$libdir'
8877 hardcode_shlibpath_var=no
8879 solaris2.[0-5] | solaris2.[0-5].*) ;;
8881 # The compiler driver will combine linker options so we
8882 # cannot just pass the convience library names through
8883 # without $wl, iff we do not link with $LD.
8884 # Luckily, gcc supports the same syntax we need for Sun Studio.
8885 # Supported since Solaris 2.6 (maybe 2.5.1?)
8888 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8890 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8893 link_all_deplibs=yes
8897 if test "x$host_vendor" = xsequent; then
8898 # Use $CC to link under sequent, because it throws in some extra .o
8899 # files that make .init and .fini sections work.
8900 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8902 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8904 hardcode_libdir_flag_spec='-L$libdir'
8906 hardcode_minus_L=yes
8907 hardcode_shlibpath_var=no
8911 case $host_vendor in
8913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914 hardcode_direct=yes # is this really true???
8917 ## LD is ld it makes a PLAMLIB
8918 ## CC just makes a GrossModule.
8919 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8920 reload_cmds='$CC -r -o $output$reload_objs'
8924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8925 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8928 runpath_var='LD_RUN_PATH'
8929 hardcode_shlibpath_var=no
8933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934 hardcode_shlibpath_var=no
8935 export_dynamic_flag_spec='-Bexport'
8939 if test -d /usr/nec; then
8940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941 hardcode_shlibpath_var=no
8942 runpath_var=LD_RUN_PATH
8943 hardcode_runpath_var=yes
8949 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8952 hardcode_shlibpath_var=no
8953 hardcode_runpath_var=yes
8954 runpath_var=LD_RUN_PATH
8957 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8958 no_undefined_flag='${wl}-z ${wl}text'
8959 if test "$GCC" = yes; then
8960 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8962 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8964 runpath_var='LD_RUN_PATH'
8965 hardcode_shlibpath_var=no
8969 no_undefined_flag=' -z text'
8970 # $CC -shared without GNU ld will not create a library from C++
8971 # object files and a static libstdc++, better avoid it by now
8972 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8973 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8974 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8975 hardcode_libdir_flag_spec=
8976 hardcode_shlibpath_var=no
8977 runpath_var='LD_RUN_PATH'
8981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982 hardcode_libdir_flag_spec='-L$libdir'
8983 hardcode_shlibpath_var=no
8992 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8993 echo "${ECHO_T}$ld_shlibs" >&6
8994 test "$ld_shlibs" = no && can_build_shared=no
8996 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8997 if test "$GCC" = yes; then
8998 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9002 # Do we need to explicitly link libc?
9004 case "x$archive_cmds_need_lc" in
9006 # Assume -lc should be added
9007 archive_cmds_need_lc=yes
9009 if test "$enable_shared" = yes && test "$GCC" = yes; then
9010 case $archive_cmds in
9012 # FIXME: we may have to deal with multi-command sequences.
9015 # Test whether the compiler implicitly links with -lc since on some
9016 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9017 # to ld, don't add -lc before -lgcc.
9018 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9019 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9024 (eval $ac_compile) 2>&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } 2>conftest.err; then
9030 libobjs=conftest.$ac_objext
9032 wl=$lt_prog_compiler_wl
9038 lt_save_allow_undefined_flag=$allow_undefined_flag
9039 allow_undefined_flag=
9040 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9041 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }
9046 archive_cmds_need_lc=no
9048 archive_cmds_need_lc=yes
9050 allow_undefined_flag=$lt_save_allow_undefined_flag
9052 cat conftest.err 1>&5
9055 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9056 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9063 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9064 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9066 libname_spec='lib$name'
9074 shlibpath_overrides_runpath=unknown
9076 dynamic_linker="$host_os ld.so"
9077 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9078 if test "$GCC" = yes; then
9079 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9080 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9081 # if the path contains ";" then we assume it to be the separator
9082 # otherwise default to the standard path separator (i.e. ":") - it is
9083 # assumed that no part of a normal pathname contains ";" but that should
9084 # okay in the real world where ";" in dirpaths is itself problematic.
9085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9090 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9092 need_lib_prefix=unknown
9093 hardcode_into_libs=no
9095 # when you set need_version to no, make sure it does not cause -set_version
9096 # flags to be left without arguments
9097 need_version=unknown
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9103 shlibpath_var=LIBPATH
9105 # AIX 3 has no versioning support, so we append a major version to the name.
9106 soname_spec='${libname}${release}${shared_ext}$major'
9113 hardcode_into_libs=yes
9114 if test "$host_cpu" = ia64; then
9115 # AIX 5 supports IA64
9116 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9117 shlibpath_var=LD_LIBRARY_PATH
9119 # With GCC up to 2.95.x, collect2 would create an import file
9120 # for dependence libraries. The import file would start with
9121 # the line `#! .'. This would cause the generated library to
9122 # depend on `.', always an invalid library. This was fixed in
9123 # development snapshots of GCC prior to 3.0.
9125 aix4 | aix4.[01] | aix4.[01].*)
9126 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9128 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9135 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9136 # soname into executable. Probably we can add versioning support to
9137 # collect2, so additional links can be useful in future.
9138 if test "$aix_use_runtimelinking" = yes; then
9139 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9140 # instead of lib<name>.a to let people know that these are not
9141 # typical AIX shared libraries.
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144 # We preserve .a as extension for shared libraries through AIX4.2
9145 # and later when we are not doing run time linking.
9146 library_names_spec='${libname}${release}.a $libname.a'
9147 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LIBPATH
9154 library_names_spec='$libname.ixlibrary $libname.a'
9155 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9156 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9160 library_names_spec='${libname}${shared_ext}'
9161 dynamic_linker="$host_os ld.so"
9162 shlibpath_var=LIBRARY_PATH
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9173 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9174 # the default ld.so.conf also contains /usr/contrib/lib and
9175 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9176 # libtool to hard-code these into programs
9179 cygwin* | mingw* | pw32*)
9180 version_type=windows
9185 case $GCC,$host_os in
9186 yes,cygwin* | yes,mingw* | yes,pw32*)
9187 library_names_spec='$libname.dll.a'
9188 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9189 postinstall_cmds='base_file=`basename \${file}`~
9190 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9191 dldir=$destdir/`dirname \$dlpath`~
9192 test -d \$dldir || mkdir -p \$dldir~
9193 $install_prog $dir/$dlname \$dldir/$dlname~
9194 chmod a+x \$dldir/$dlname'
9195 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9196 dlpath=$dir/\$dldll~
9198 shlibpath_overrides_runpath=yes
9202 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9203 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9204 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9207 # MinGW DLLs use traditional 'lib' prefix
9208 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9209 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9210 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9211 # It is most probably a Windows format PATH printed by
9212 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9213 # path with ; separators, and with drive letters. We can handle the
9214 # drive letters (cygwin fileutils understands them), so leave them,
9215 # especially as we might pass files found there to a mingw objdump,
9216 # which wouldn't understand a cygwinified path. Ahh.
9217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9223 # pw32 DLLs use 'pw' prefix rather than 'lib'
9224 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9230 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9233 dynamic_linker='Win32 ld.exe'
9234 # FIXME: first we should search . and the directory the executable is in
9238 darwin* | rhapsody*)
9239 dynamic_linker="$host_os dyld"
9243 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9244 soname_spec='${libname}${release}${major}$shared_ext'
9245 shlibpath_overrides_runpath=yes
9246 shlibpath_var=DYLD_LIBRARY_PATH
9247 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9248 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9249 if test "$GCC" = yes; then
9250 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9252 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9254 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 shlibpath_var=LD_LIBRARY_PATH
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 shlibpath_overrides_runpath=no
9278 hardcode_into_libs=yes
9279 dynamic_linker='GNU ld.so'
9282 freebsd* | dragonfly*)
9283 # DragonFly does not have aout. When/if they implement a new
9284 # versioning mechanism, adjust this.
9285 if test -x /usr/bin/objformat; then
9286 objformat=`/usr/bin/objformat`
9289 freebsd[123]*) objformat=aout ;;
9293 version_type=freebsd-$objformat
9294 case $version_type in
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9305 shlibpath_var=LD_LIBRARY_PATH
9308 shlibpath_overrides_runpath=yes
9310 freebsd3.[01]* | freebsdelf3.[01]*)
9311 shlibpath_overrides_runpath=yes
9312 hardcode_into_libs=yes
9315 shlibpath_overrides_runpath=no
9316 hardcode_into_libs=yes
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 hardcode_into_libs=yes
9331 hpux9* | hpux10* | hpux11*)
9332 # Give a soname corresponding to the major version so that dld.sl refuses to
9333 # link against other versions.
9340 hardcode_into_libs=yes
9341 dynamic_linker="$host_os dld.so"
9342 shlibpath_var=LD_LIBRARY_PATH
9343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 if test "X$HPUX_IA64_MODE" = X32; then
9347 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9355 hardcode_into_libs=yes
9356 dynamic_linker="$host_os dld.sl"
9357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360 soname_spec='${libname}${release}${shared_ext}$major'
9361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9366 dynamic_linker="$host_os dld.sl"
9367 shlibpath_var=SHLIB_PATH
9368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9373 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9374 postinstall_cmds='chmod 555 $lib'
9377 irix5* | irix6* | nonstopux*)
9379 nonstopux*) version_type=nonstopux ;;
9381 if test "$lt_cv_prog_gnu_ld" = yes; then
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9392 irix5* | nonstopux*)
9396 case $LD in # libtool.m4 will add one of these switches to LD
9397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9398 libsuff= shlibsuff= libmagic=32-bit;;
9399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9400 libsuff=32 shlibsuff=N32 libmagic=N32;;
9401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9403 *) libsuff= shlibsuff= libmagic=never-match;;
9407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9408 shlibpath_overrides_runpath=no
9409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9411 hardcode_into_libs=yes
9414 # No shared lib support for Linux oldld, aout, or coff.
9415 linux*oldld* | linux*aout* | linux*coff*)
9419 # This must be Linux ELF.
9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9425 soname_spec='${libname}${release}${shared_ext}$major'
9426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 shlibpath_overrides_runpath=no
9429 # This implies no fast_install, which is unacceptable.
9430 # Some rework will be needed to allow for fast_install
9431 # before this can be enabled.
9432 hardcode_into_libs=yes
9434 # Append ld.so.conf contents to the search path
9435 if test -f /etc/ld.so.conf; then
9436 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9437 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9440 # We used to test for /lib/ld.so.1 and disable shared libraries on
9441 # powerpc, because MkLinux only supported shared libraries with the
9442 # GNU dynamic linker. Since this was broken with cross compilers,
9443 # most powerpc-linux boxes support dynamic linking these days and
9444 # people can always --disable-shared, the test was removed, and we
9445 # assume the GNU/Linux dynamic linker is in use.
9446 dynamic_linker='GNU/Linux ld.so'
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9454 soname_spec='${libname}${release}${shared_ext}$major'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 shlibpath_overrides_runpath=no
9457 hardcode_into_libs=yes
9458 dynamic_linker='GNU ld.so'
9465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9468 dynamic_linker='NetBSD (a.out) ld.so'
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 dynamic_linker='NetBSD ld.elf_so'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=yes
9476 hardcode_into_libs=yes
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482 shlibpath_var=LD_LIBRARY_PATH
9483 shlibpath_overrides_runpath=yes
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 shlibpath_var=LD_LIBRARY_PATH
9493 shlibpath_overrides_runpath=yes
9499 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9501 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9502 *) need_version=no ;;
9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9506 shlibpath_var=LD_LIBRARY_PATH
9507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9509 openbsd2.[89] | openbsd2.[89].*)
9510 shlibpath_overrides_runpath=no
9513 shlibpath_overrides_runpath=yes
9517 shlibpath_overrides_runpath=yes
9522 libname_spec='$name'
9525 library_names_spec='$libname${shared_ext} $libname.a'
9526 dynamic_linker='OS/2 ld.exe'
9527 shlibpath_var=LIBPATH
9530 osf3* | osf4* | osf5*)
9534 soname_spec='${libname}${release}${shared_ext}$major'
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9536 shlibpath_var=LD_LIBRARY_PATH
9537 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9538 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9543 soname_spec='${libname}${release}${shared_ext}$major'
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545 shlibpath_var=LD_LIBRARY_PATH
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 soname_spec='${libname}${release}${shared_ext}$major'
9554 shlibpath_var=LD_LIBRARY_PATH
9555 shlibpath_overrides_runpath=yes
9556 hardcode_into_libs=yes
9557 # ldd complains unless libraries are executable
9558 postinstall_cmds='chmod +x $lib'
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=yes
9567 if test "$with_gnu_ld" = yes; then
9573 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 shlibpath_var=LD_LIBRARY_PATH
9578 case $host_vendor in
9580 shlibpath_overrides_runpath=no
9582 export_dynamic_flag_spec='${wl}-Blargedynsym'
9583 runpath_var=LD_RUN_PATH
9591 shlibpath_overrides_runpath=no
9592 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9598 if test -d /usr/nec ;then
9600 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9601 soname_spec='$libname${shared_ext}.$major'
9602 shlibpath_var=LD_LIBRARY_PATH
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609 soname_spec='${libname}${release}${shared_ext}$major'
9610 shlibpath_var=LD_LIBRARY_PATH
9617 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9618 echo "${ECHO_T}$dynamic_linker" >&6
9619 test "$dynamic_linker" = no && can_build_shared=no
9621 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9622 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9624 if test -n "$hardcode_libdir_flag_spec" || \
9625 test -n "$runpath_var" || \
9626 test "X$hardcode_automatic" = "Xyes" ; then
9628 # We can hardcode non-existant directories.
9629 if test "$hardcode_direct" != no &&
9630 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9631 # have to relink, otherwise we might link with an installed library
9632 # when we should be linking with a yet-to-be-installed one
9633 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9634 test "$hardcode_minus_L" != no; then
9635 # Linking always hardcodes the temporary library directory.
9636 hardcode_action=relink
9638 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9639 hardcode_action=immediate
9642 # We cannot hardcode anything, or else we can only hardcode existing
9644 hardcode_action=unsupported
9646 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9647 echo "${ECHO_T}$hardcode_action" >&6
9649 if test "$hardcode_action" = relink; then
9650 # Fast installation is not supported
9651 enable_fast_install=no
9652 elif test "$shlibpath_overrides_runpath" = yes ||
9653 test "$enable_shared" = no; then
9654 # Fast installation is not necessary
9655 enable_fast_install=needless
9660 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9661 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9662 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9663 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9664 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9665 echo "$as_me:$LINENO: result: yes" >&5
9666 echo "${ECHO_T}yes" >&6
9668 # FIXME - insert some real tests, host_os isn't really good enough
9671 if test -n "$STRIP" ; then
9672 striplib="$STRIP -x"
9673 echo "$as_me:$LINENO: result: yes" >&5
9674 echo "${ECHO_T}yes" >&6
9676 echo "$as_me:$LINENO: result: no" >&5
9677 echo "${ECHO_T}no" >&6
9681 echo "$as_me:$LINENO: result: no" >&5
9682 echo "${ECHO_T}no" >&6
9687 if test "x$enable_dlopen" != xyes; then
9688 enable_dlopen=unknown
9689 enable_dlopen_self=unknown
9690 enable_dlopen_self_static=unknown
9697 lt_cv_dlopen="load_add_on"
9699 lt_cv_dlopen_self=yes
9703 lt_cv_dlopen="LoadLibrary"
9708 lt_cv_dlopen="dlopen"
9713 # if libdl is installed we need to link against it
9714 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9715 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 ac_check_lib_save_LIBS=$LIBS
9721 cat >conftest.$ac_ext <<_ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9728 /* Override any gcc2 internal prototype to avoid an error. */
9732 /* We use char because int might match the return type of a gcc2
9733 builtin and then its argument prototype would still apply. */
9743 rm -f conftest.$ac_objext conftest$ac_exeext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745 (eval $ac_link) 2>conftest.er1
9747 grep -v '^ *+' conftest.er1 >conftest.err
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -z "$ac_c_werror_flag"
9753 || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_cv_lib_dl_dlopen=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_cv_lib_dl_dlopen=no
9772 rm -f conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
9774 LIBS=$ac_check_lib_save_LIBS
9776 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9777 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9778 if test $ac_cv_lib_dl_dlopen = yes; then
9779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9784 lt_cv_dlopen_self=yes
9791 echo "$as_me:$LINENO: checking for shl_load" >&5
9792 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9793 if test "${ac_cv_func_shl_load+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 cat >conftest.$ac_ext <<_ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9804 #define shl_load innocuous_shl_load
9806 /* System header to define __stub macros and hopefully few prototypes,
9807 which can conflict with char shl_load (); below.
9808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9809 <limits.h> exists even on freestanding compilers. */
9812 # include <limits.h>
9814 # include <assert.h>
9819 /* Override any gcc2 internal prototype to avoid an error. */
9824 /* We use char because int might match the return type of a gcc2
9825 builtin and then its argument prototype would still apply. */
9827 /* The GNU C library defines this for functions which it implements
9828 to always fail with ENOSYS. Some functions are actually named
9829 something starting with __ and the normal name is an alias. */
9830 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9833 char (*f) () = shl_load;
9842 return f != shl_load;
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9849 (eval $ac_link) 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -z "$ac_c_werror_flag"
9857 || test ! -s conftest.err'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest$ac_exeext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 ac_cv_func_shl_load=yes
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 ac_cv_func_shl_load=no
9876 rm -f conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9879 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9880 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9881 if test $ac_cv_func_shl_load = yes; then
9882 lt_cv_dlopen="shl_load"
9884 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9885 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9886 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 ac_check_lib_save_LIBS=$LIBS
9891 cat >conftest.$ac_ext <<_ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9898 /* Override any gcc2 internal prototype to avoid an error. */
9902 /* We use char because int might match the return type of a gcc2
9903 builtin and then its argument prototype would still apply. */
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>conftest.er1
9917 grep -v '^ *+' conftest.er1 >conftest.err
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try='test -z "$ac_c_werror_flag"
9923 || test ! -s conftest.err'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; } &&
9929 { ac_try='test -s conftest$ac_exeext'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_cv_lib_dld_shl_load=yes
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 ac_cv_lib_dld_shl_load=no
9942 rm -f conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9944 LIBS=$ac_check_lib_save_LIBS
9946 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9947 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9948 if test $ac_cv_lib_dld_shl_load = yes; then
9949 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9951 echo "$as_me:$LINENO: checking for dlopen" >&5
9952 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9953 if test "${ac_cv_func_dlopen+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 cat >conftest.$ac_ext <<_ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9962 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9964 #define dlopen innocuous_dlopen
9966 /* System header to define __stub macros and hopefully few prototypes,
9967 which can conflict with char dlopen (); below.
9968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9969 <limits.h> exists even on freestanding compilers. */
9972 # include <limits.h>
9974 # include <assert.h>
9979 /* Override any gcc2 internal prototype to avoid an error. */
9984 /* We use char because int might match the return type of a gcc2
9985 builtin and then its argument prototype would still apply. */
9987 /* The GNU C library defines this for functions which it implements
9988 to always fail with ENOSYS. Some functions are actually named
9989 something starting with __ and the normal name is an alias. */
9990 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9993 char (*f) () = dlopen;
10002 return f != dlopen;
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>conftest.er1
10011 grep -v '^ *+' conftest.er1 >conftest.err
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -z "$ac_c_werror_flag"
10017 || test ! -s conftest.err'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10029 ac_cv_func_dlopen=yes
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10034 ac_cv_func_dlopen=no
10036 rm -f conftest.err conftest.$ac_objext \
10037 conftest$ac_exeext conftest.$ac_ext
10039 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10040 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10041 if test $ac_cv_func_dlopen = yes; then
10042 lt_cv_dlopen="dlopen"
10044 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10045 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10046 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10047 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 ac_check_lib_save_LIBS=$LIBS
10051 cat >conftest.$ac_ext <<_ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10058 /* Override any gcc2 internal prototype to avoid an error. */
10062 /* We use char because int might match the return type of a gcc2
10063 builtin and then its argument prototype would still apply. */
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>conftest.er1
10077 grep -v '^ *+' conftest.er1 >conftest.err
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try='test -z "$ac_c_werror_flag"
10083 || test ! -s conftest.err'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; } &&
10089 { ac_try='test -s conftest$ac_exeext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_cv_lib_dl_dlopen=yes
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10100 ac_cv_lib_dl_dlopen=no
10102 rm -f conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10104 LIBS=$ac_check_lib_save_LIBS
10106 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10107 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10108 if test $ac_cv_lib_dl_dlopen = yes; then
10109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10111 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10112 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10113 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 ac_check_lib_save_LIBS=$LIBS
10117 LIBS="-lsvld $LIBS"
10118 cat >conftest.$ac_ext <<_ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10125 /* Override any gcc2 internal prototype to avoid an error. */
10129 /* We use char because int might match the return type of a gcc2
10130 builtin and then its argument prototype would still apply. */
10140 rm -f conftest.$ac_objext conftest$ac_exeext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>conftest.er1
10144 grep -v '^ *+' conftest.er1 >conftest.err
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag"
10150 || test ! -s conftest.err'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; } &&
10156 { ac_try='test -s conftest$ac_exeext'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162 ac_cv_lib_svld_dlopen=yes
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ac_cv_lib_svld_dlopen=no
10169 rm -f conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LIBS=$ac_check_lib_save_LIBS
10173 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10174 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10175 if test $ac_cv_lib_svld_dlopen = yes; then
10176 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10178 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10179 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10180 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 ac_check_lib_save_LIBS=$LIBS
10185 cat >conftest.$ac_ext <<_ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10192 /* Override any gcc2 internal prototype to avoid an error. */
10196 /* We use char because int might match the return type of a gcc2
10197 builtin and then its argument prototype would still apply. */
10207 rm -f conftest.$ac_objext conftest$ac_exeext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10209 (eval $ac_link) 2>conftest.er1
10211 grep -v '^ *+' conftest.er1 >conftest.err
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } &&
10216 { ac_try='test -z "$ac_c_werror_flag"
10217 || test ! -s conftest.err'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; } &&
10223 { ac_try='test -s conftest$ac_exeext'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 ac_cv_lib_dld_dld_link=yes
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 ac_cv_lib_dld_dld_link=no
10236 rm -f conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238 LIBS=$ac_check_lib_save_LIBS
10240 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10241 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10242 if test $ac_cv_lib_dld_dld_link = yes; then
10243 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10264 if test "x$lt_cv_dlopen" != xno; then
10270 case $lt_cv_dlopen in
10272 save_CPPFLAGS="$CPPFLAGS"
10273 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10275 save_LDFLAGS="$LDFLAGS"
10276 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10279 LIBS="$lt_cv_dlopen_libs $LIBS"
10281 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10282 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10283 if test "${lt_cv_dlopen_self+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 if test "$cross_compiling" = yes; then :
10287 lt_cv_dlopen_self=cross
10289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10290 lt_status=$lt_dlunknown
10291 cat > conftest.$ac_ext <<EOF
10292 #line 10292 "configure"
10293 #include "confdefs.h"
10302 # define LT_DLGLOBAL RTLD_GLOBAL
10305 # define LT_DLGLOBAL DL_GLOBAL
10307 # define LT_DLGLOBAL 0
10311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10312 find out it does not work in some platform. */
10313 #ifndef LT_DLLAZY_OR_NOW
10315 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10318 # define LT_DLLAZY_OR_NOW DL_LAZY
10321 # define LT_DLLAZY_OR_NOW RTLD_NOW
10324 # define LT_DLLAZY_OR_NOW DL_NOW
10326 # define LT_DLLAZY_OR_NOW 0
10334 extern "C" void exit (int);
10337 void fnord() { int i=42;}
10340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10341 int status = $lt_dlunknown;
10345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10346 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10347 /* dlclose (self); */
10353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10354 (eval $ac_link) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10358 (./conftest; exit; ) >&5 2>/dev/null
10360 case x$lt_status in
10361 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10362 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10363 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10366 # compilation failed
10367 lt_cv_dlopen_self=no
10374 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10375 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10377 if test "x$lt_cv_dlopen_self" = xyes; then
10378 LDFLAGS="$LDFLAGS $link_static_flag"
10379 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10380 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10381 if test "${lt_cv_dlopen_self_static+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 if test "$cross_compiling" = yes; then :
10385 lt_cv_dlopen_self_static=cross
10387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10388 lt_status=$lt_dlunknown
10389 cat > conftest.$ac_ext <<EOF
10390 #line 10390 "configure"
10391 #include "confdefs.h"
10400 # define LT_DLGLOBAL RTLD_GLOBAL
10403 # define LT_DLGLOBAL DL_GLOBAL
10405 # define LT_DLGLOBAL 0
10409 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10410 find out it does not work in some platform. */
10411 #ifndef LT_DLLAZY_OR_NOW
10413 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10416 # define LT_DLLAZY_OR_NOW DL_LAZY
10419 # define LT_DLLAZY_OR_NOW RTLD_NOW
10422 # define LT_DLLAZY_OR_NOW DL_NOW
10424 # define LT_DLLAZY_OR_NOW 0
10432 extern "C" void exit (int);
10435 void fnord() { int i=42;}
10438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10439 int status = $lt_dlunknown;
10443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10444 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10445 /* dlclose (self); */
10451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10452 (eval $ac_link) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10456 (./conftest; exit; ) >&5 2>/dev/null
10458 case x$lt_status in
10459 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10460 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10461 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10464 # compilation failed
10465 lt_cv_dlopen_self_static=no
10472 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10473 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10476 CPPFLAGS="$save_CPPFLAGS"
10477 LDFLAGS="$save_LDFLAGS"
10482 case $lt_cv_dlopen_self in
10483 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10484 *) enable_dlopen_self=unknown ;;
10487 case $lt_cv_dlopen_self_static in
10488 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10489 *) enable_dlopen_self_static=unknown ;;
10494 # Report which librarie types wil actually be built
10495 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10496 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10497 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10498 echo "${ECHO_T}$can_build_shared" >&6
10500 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10501 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10502 test "$can_build_shared" = "no" && enable_shared=no
10504 # On AIX, shared libraries and static libraries use the same namespace, and
10505 # are all built from PIC.
10508 test "$enable_shared" = yes && enable_static=no
10509 if test -n "$RANLIB"; then
10510 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10511 postinstall_cmds='$RANLIB $lib'
10516 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10517 test "$enable_shared" = yes && enable_static=no
10521 echo "$as_me:$LINENO: result: $enable_shared" >&5
10522 echo "${ECHO_T}$enable_shared" >&6
10524 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10525 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10526 # Make sure either enable_shared or enable_static is yes.
10527 test "$enable_shared" = yes || enable_static=yes
10528 echo "$as_me:$LINENO: result: $enable_static" >&5
10529 echo "${ECHO_T}$enable_static" >&6
10531 # The else clause should only fire when bootstrapping the
10532 # libtool distribution, otherwise you forgot to ship ltmain.sh
10533 # with your package, and you will get complaints that there are
10534 # no rules to generate ltmain.sh.
10535 if test -f "$ltmain"; then
10536 # See if we are running on zsh, and set the options which allow our commands through
10537 # without removal of \ escapes.
10538 if test -n "${ZSH_VERSION+set}" ; then
10539 setopt NO_GLOB_SUBST
10541 # Now quote all the things that may contain metacharacters while being
10542 # careful not to overquote the AC_SUBSTed values. We take copies of the
10543 # variables and quote the copies for generation of the libtool script.
10544 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10546 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10547 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10548 deplibs_check_method reload_flag reload_cmds need_locks \
10549 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10550 lt_cv_sys_global_symbol_to_c_name_address \
10551 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10552 old_postinstall_cmds old_postuninstall_cmds \
10556 lt_prog_compiler_wl \
10557 lt_prog_compiler_pic \
10558 lt_prog_compiler_static \
10559 lt_prog_compiler_no_builtin_flag \
10560 export_dynamic_flag_spec \
10561 thread_safe_flag_spec \
10562 whole_archive_flag_spec \
10563 enable_shared_with_static_runtimes \
10565 old_archive_from_new_cmds \
10570 compiler_lib_search_path \
10572 archive_expsym_cmds \
10574 postuninstall_cmds \
10575 old_archive_from_expsyms_cmds \
10576 allow_undefined_flag \
10577 no_undefined_flag \
10578 export_symbols_cmds \
10579 hardcode_libdir_flag_spec \
10580 hardcode_libdir_flag_spec_ld \
10581 hardcode_libdir_separator \
10582 hardcode_automatic \
10584 module_expsym_cmds \
10585 lt_cv_prog_compiler_c_o \
10587 include_expsyms; do
10590 old_archive_cmds | \
10591 old_archive_from_new_cmds | \
10593 archive_expsym_cmds | \
10595 module_expsym_cmds | \
10596 old_archive_from_expsyms_cmds | \
10597 export_symbols_cmds | \
10598 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10599 postinstall_cmds | postuninstall_cmds | \
10600 old_postinstall_cmds | old_postuninstall_cmds | \
10601 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10602 # Double-quote double-evaled strings.
10603 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10606 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10612 *'\$0 --fallback-echo"')
10613 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10617 cfgfile="${ofile}T"
10618 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10620 { echo "$as_me:$LINENO: creating $ofile" >&5
10621 echo "$as_me: creating $ofile" >&6;}
10623 cat <<__EOF__ >> "$cfgfile"
10626 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10627 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10628 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10630 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10631 # Free Software Foundation, Inc.
10633 # This file is part of GNU Libtool:
10634 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10636 # This program is free software; you can redistribute it and/or modify
10637 # it under the terms of the GNU General Public License as published by
10638 # the Free Software Foundation; either version 2 of the License, or
10639 # (at your option) any later version.
10641 # This program is distributed in the hope that it will be useful, but
10642 # WITHOUT ANY WARRANTY; without even the implied warranty of
10643 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10644 # General Public License for more details.
10646 # You should have received a copy of the GNU General Public License
10647 # along with this program; if not, write to the Free Software
10648 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10650 # As a special exception to the GNU General Public License, if you
10651 # distribute this file as part of a program that contains a
10652 # configuration script generated by Autoconf, you may include it under
10653 # the same distribution terms that you use for the rest of that program.
10655 # A sed program that does not truncate output.
10658 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10659 Xsed="$SED -e 1s/^X//"
10661 # The HP-UX ksh and POSIX shell print the target directory to stdout
10662 # if CDPATH is set.
10663 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10665 # The names of the tagged configurations supported by this script.
10668 # ### BEGIN LIBTOOL CONFIG
10670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10672 # Shell to use when invoking shell scripts.
10675 # Whether or not to build shared libraries.
10676 build_libtool_libs=$enable_shared
10678 # Whether or not to build static libraries.
10679 build_old_libs=$enable_static
10681 # Whether or not to add -lc for building shared libraries.
10682 build_libtool_need_lc=$archive_cmds_need_lc
10684 # Whether or not to disallow shared libs when runtime libs are static
10685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10687 # Whether or not to optimize for fast installation.
10688 fast_install=$enable_fast_install
10691 host_alias=$host_alias
10695 # The build system.
10696 build_alias=$build_alias
10700 # An echo program that does not interpret backslashes.
10705 AR_FLAGS=$lt_AR_FLAGS
10710 # A language-specific compiler.
10713 # Is the compiler the GNU C compiler?
10719 # The linker used to build libraries.
10722 # Whether we need hard or soft links.
10725 # A BSD-compatible nm program.
10728 # A symbol stripping program
10731 # Used to examine libraries when file_magic_cmd begins "file"
10732 MAGIC_CMD=$MAGIC_CMD
10734 # Used on cygwin: DLL creation program.
10737 # Used on cygwin: object dumper.
10740 # Used on cygwin: assembler.
10743 # The name of the directory that contains temporary libtool files.
10746 # How to create reloadable object files.
10747 reload_flag=$lt_reload_flag
10748 reload_cmds=$lt_reload_cmds
10750 # How to pass a linker flag through the compiler.
10751 wl=$lt_lt_prog_compiler_wl
10753 # Object file suffix (normally "o").
10754 objext="$ac_objext"
10756 # Old archive suffix (normally "a").
10759 # Shared library suffix (normally ".so").
10760 shrext_cmds='$shrext_cmds'
10762 # Executable file suffix (normally "").
10765 # Additional compiler flags for building library objects.
10766 pic_flag=$lt_lt_prog_compiler_pic
10769 # What is the maximum length of a command?
10770 max_cmd_len=$lt_cv_sys_max_cmd_len
10772 # Does compiler simultaneously support -c and -o options?
10773 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10775 # Must we lock files when doing compilation?
10776 need_locks=$lt_need_locks
10778 # Do we need the lib prefix for modules?
10779 need_lib_prefix=$need_lib_prefix
10781 # Do we need a version for libraries?
10782 need_version=$need_version
10784 # Whether dlopen is supported.
10785 dlopen_support=$enable_dlopen
10787 # Whether dlopen of programs is supported.
10788 dlopen_self=$enable_dlopen_self
10790 # Whether dlopen of statically linked programs is supported.
10791 dlopen_self_static=$enable_dlopen_self_static
10793 # Compiler flag to prevent dynamic linking.
10794 link_static_flag=$lt_lt_prog_compiler_static
10796 # Compiler flag to turn off builtin functions.
10797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10799 # Compiler flag to allow reflexive dlopens.
10800 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10802 # Compiler flag to generate shared objects directly from archives.
10803 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10805 # Compiler flag to generate thread-safe objects.
10806 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10808 # Library versioning type.
10809 version_type=$version_type
10811 # Format of library name prefix.
10812 libname_spec=$lt_libname_spec
10814 # List of archive names. First name is the real one, the rest are links.
10815 # The last name is the one that the linker finds with -lNAME.
10816 library_names_spec=$lt_library_names_spec
10818 # The coded name of the library, if different from the real name.
10819 soname_spec=$lt_soname_spec
10821 # Commands used to build and install an old-style archive.
10823 old_archive_cmds=$lt_old_archive_cmds
10824 old_postinstall_cmds=$lt_old_postinstall_cmds
10825 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10827 # Create an old-style archive from a shared archive.
10828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10830 # Create a temporary old-style archive to link instead of a shared archive.
10831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10833 # Commands used to build and install a shared archive.
10834 archive_cmds=$lt_archive_cmds
10835 archive_expsym_cmds=$lt_archive_expsym_cmds
10836 postinstall_cmds=$lt_postinstall_cmds
10837 postuninstall_cmds=$lt_postuninstall_cmds
10839 # Commands used to build a loadable module (assumed same as above if empty)
10840 module_cmds=$lt_module_cmds
10841 module_expsym_cmds=$lt_module_expsym_cmds
10843 # Commands to strip libraries.
10844 old_striplib=$lt_old_striplib
10845 striplib=$lt_striplib
10847 # Dependencies to place before the objects being linked to create a
10849 predep_objects=$lt_predep_objects
10851 # Dependencies to place after the objects being linked to create a
10853 postdep_objects=$lt_postdep_objects
10855 # Dependencies to place before the objects being linked to create a
10857 predeps=$lt_predeps
10859 # Dependencies to place after the objects being linked to create a
10861 postdeps=$lt_postdeps
10863 # The library search path used internally by the compiler when linking
10864 # a shared library.
10865 compiler_lib_search_path=$lt_compiler_lib_search_path
10867 # Method to check whether dependent libraries are shared objects.
10868 deplibs_check_method=$lt_deplibs_check_method
10870 # Command to use when deplibs_check_method == file_magic.
10871 file_magic_cmd=$lt_file_magic_cmd
10873 # Flag that allows shared libraries with undefined symbols to be built.
10874 allow_undefined_flag=$lt_allow_undefined_flag
10876 # Flag that forces no undefined symbols.
10877 no_undefined_flag=$lt_no_undefined_flag
10879 # Commands used to finish a libtool library installation in a directory.
10880 finish_cmds=$lt_finish_cmds
10882 # Same as above, but a single script fragment to be evaled but not shown.
10883 finish_eval=$lt_finish_eval
10885 # Take the output of nm and produce a listing of raw symbols and C names.
10886 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10888 # Transform the output of nm in a proper C declaration
10889 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10891 # Transform the output of nm in a C name address pair
10892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10894 # This is the shared library runtime path variable.
10895 runpath_var=$runpath_var
10897 # This is the shared library path variable.
10898 shlibpath_var=$shlibpath_var
10900 # Is shlibpath searched before the hard-coded library search path?
10901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10903 # How to hardcode a shared library path into an executable.
10904 hardcode_action=$hardcode_action
10906 # Whether we should hardcode library paths into libraries.
10907 hardcode_into_libs=$hardcode_into_libs
10909 # Flag to hardcode \$libdir into a binary during linking.
10910 # This must work even if \$libdir does not exist.
10911 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10913 # If ld is used when linking, flag to hardcode \$libdir into
10914 # a binary during linking. This must work even if \$libdir does
10916 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10918 # Whether we need a single -rpath flag with a separated argument.
10919 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10921 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10922 # resulting binary.
10923 hardcode_direct=$hardcode_direct
10925 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10926 # resulting binary.
10927 hardcode_minus_L=$hardcode_minus_L
10929 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10930 # the resulting binary.
10931 hardcode_shlibpath_var=$hardcode_shlibpath_var
10933 # Set to yes if building a shared library automatically hardcodes DIR into the library
10934 # and all subsequent libraries and executables linked against it.
10935 hardcode_automatic=$hardcode_automatic
10937 # Variables whose values should be saved in libtool wrapper scripts and
10938 # restored at relink time.
10939 variables_saved_for_relink="$variables_saved_for_relink"
10941 # Whether libtool must link a program against all its dependency libraries.
10942 link_all_deplibs=$link_all_deplibs
10944 # Compile-time system search path for libraries
10945 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10947 # Run-time system search path for libraries
10948 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10950 # Fix the shell variable \$srcfile for the compiler.
10951 fix_srcfile_path="$fix_srcfile_path"
10953 # Set to yes if exported symbols are required.
10954 always_export_symbols=$always_export_symbols
10956 # The commands to list exported symbols.
10957 export_symbols_cmds=$lt_export_symbols_cmds
10959 # The commands to extract the exported symbol list from a shared archive.
10960 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10962 # Symbols that should not be listed in the preloaded symbols.
10963 exclude_expsyms=$lt_exclude_expsyms
10965 # Symbols that must always be exported.
10966 include_expsyms=$lt_include_expsyms
10968 # ### END LIBTOOL CONFIG
10975 cat <<\EOF >> "$cfgfile"
10977 # AIX sometimes has problems with the GCC collect2 program. For some
10978 # reason, if we set the COLLECT_NAMES environment variable, the problems
10979 # vanish in a puff of smoke.
10980 if test "X${COLLECT_NAMES+set}" != Xset; then
10982 export COLLECT_NAMES
10988 # We use sed instead of cat because bash on DJGPP gets confused if
10989 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10990 # text mode, it properly converts lines to CR/LF. This bash problem
10991 # is reportedly fixed, but why not run on old versions too?
10992 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10994 mv -f "$cfgfile" "$ofile" || \
10995 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10999 # If there is no Makefile yet, we rely on a make rule to execute
11000 # `config.status --recheck' to rerun these tests and create the
11001 # libtool script then.
11002 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11003 if test -f "$ltmain_in"; then
11004 test -f Makefile && make "$ltmain"
11010 ac_cpp='$CPP $CPPFLAGS'
11011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11018 # Check whether --with-tags or --without-tags was given.
11019 if test "${with_tags+set}" = set; then
11020 withval="$with_tags"
11021 tagnames="$withval"
11024 if test -f "$ltmain" && test -n "$tagnames"; then
11025 if test ! -f "${ofile}"; then
11026 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11027 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11030 if test -z "$LTCC"; then
11031 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11032 if test -z "$LTCC"; then
11033 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11034 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11036 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11037 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11041 # Extract list of available tagged configurations in $ofile.
11042 # Note that this assumes the entire list is on one line.
11043 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11046 for tagname in $tagnames; do
11048 # Check whether tagname contains only valid characters
11049 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11051 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11052 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11053 { (exit 1); exit 1; }; }
11057 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11059 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11060 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11061 { (exit 1); exit 1; }; }
11064 # Update the list of available tags.
11065 if test -n "$tagname"; then
11066 echo appending configuration tag \"$tagname\" to $ofile
11070 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11071 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11072 (test "X$CXX" != "Xg++"))) ; then
11080 if test -n "$F77" && test "X$F77" != "Xno"; then
11088 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11099 # Source file extension for RC test sources.
11102 # Object file extension for compiled RC test sources.
11106 # Code to be used in simple compile tests
11107 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11109 # Code to be used in simple link tests
11110 lt_simple_link_test_code="$lt_simple_compile_test_code"
11112 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11114 # If no C compiler was specified, use CC.
11117 # Allow CC to be a program name with arguments.
11121 # save warnings/boilerplate of simple test code
11122 ac_outfile=conftest.$ac_objext
11123 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11124 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11125 _lt_compiler_boilerplate=`cat conftest.err`
11128 ac_outfile=conftest.$ac_objext
11129 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11130 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11131 _lt_linker_boilerplate=`cat conftest.err`
11135 # Allow CC to be a program name with arguments.
11140 for cc_temp in $compiler""; do
11142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11148 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11150 lt_cv_prog_compiler_c_o_RC=yes
11152 # The else clause should only fire when bootstrapping the
11153 # libtool distribution, otherwise you forgot to ship ltmain.sh
11154 # with your package, and you will get complaints that there are
11155 # no rules to generate ltmain.sh.
11156 if test -f "$ltmain"; then
11157 # See if we are running on zsh, and set the options which allow our commands through
11158 # without removal of \ escapes.
11159 if test -n "${ZSH_VERSION+set}" ; then
11160 setopt NO_GLOB_SUBST
11162 # Now quote all the things that may contain metacharacters while being
11163 # careful not to overquote the AC_SUBSTed values. We take copies of the
11164 # variables and quote the copies for generation of the libtool script.
11165 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11167 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11168 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11169 deplibs_check_method reload_flag reload_cmds need_locks \
11170 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11171 lt_cv_sys_global_symbol_to_c_name_address \
11172 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11173 old_postinstall_cmds old_postuninstall_cmds \
11177 lt_prog_compiler_wl_RC \
11178 lt_prog_compiler_pic_RC \
11179 lt_prog_compiler_static_RC \
11180 lt_prog_compiler_no_builtin_flag_RC \
11181 export_dynamic_flag_spec_RC \
11182 thread_safe_flag_spec_RC \
11183 whole_archive_flag_spec_RC \
11184 enable_shared_with_static_runtimes_RC \
11185 old_archive_cmds_RC \
11186 old_archive_from_new_cmds_RC \
11187 predep_objects_RC \
11188 postdep_objects_RC \
11191 compiler_lib_search_path_RC \
11193 archive_expsym_cmds_RC \
11194 postinstall_cmds_RC \
11195 postuninstall_cmds_RC \
11196 old_archive_from_expsyms_cmds_RC \
11197 allow_undefined_flag_RC \
11198 no_undefined_flag_RC \
11199 export_symbols_cmds_RC \
11200 hardcode_libdir_flag_spec_RC \
11201 hardcode_libdir_flag_spec_ld_RC \
11202 hardcode_libdir_separator_RC \
11203 hardcode_automatic_RC \
11205 module_expsym_cmds_RC \
11206 lt_cv_prog_compiler_c_o_RC \
11207 exclude_expsyms_RC \
11208 include_expsyms_RC; do
11211 old_archive_cmds_RC | \
11212 old_archive_from_new_cmds_RC | \
11213 archive_cmds_RC | \
11214 archive_expsym_cmds_RC | \
11216 module_expsym_cmds_RC | \
11217 old_archive_from_expsyms_cmds_RC | \
11218 export_symbols_cmds_RC | \
11219 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11220 postinstall_cmds | postuninstall_cmds | \
11221 old_postinstall_cmds | old_postuninstall_cmds | \
11222 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11223 # Double-quote double-evaled strings.
11224 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11227 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11233 *'\$0 --fallback-echo"')
11234 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11240 cat <<__EOF__ >> "$cfgfile"
11241 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11243 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11245 # Shell to use when invoking shell scripts.
11248 # Whether or not to build shared libraries.
11249 build_libtool_libs=$enable_shared
11251 # Whether or not to build static libraries.
11252 build_old_libs=$enable_static
11254 # Whether or not to add -lc for building shared libraries.
11255 build_libtool_need_lc=$archive_cmds_need_lc_RC
11257 # Whether or not to disallow shared libs when runtime libs are static
11258 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11260 # Whether or not to optimize for fast installation.
11261 fast_install=$enable_fast_install
11264 host_alias=$host_alias
11268 # The build system.
11269 build_alias=$build_alias
11273 # An echo program that does not interpret backslashes.
11278 AR_FLAGS=$lt_AR_FLAGS
11283 # A language-specific compiler.
11286 # Is the compiler the GNU C compiler?
11292 # The linker used to build libraries.
11295 # Whether we need hard or soft links.
11298 # A BSD-compatible nm program.
11301 # A symbol stripping program
11304 # Used to examine libraries when file_magic_cmd begins "file"
11305 MAGIC_CMD=$MAGIC_CMD
11307 # Used on cygwin: DLL creation program.
11310 # Used on cygwin: object dumper.
11313 # Used on cygwin: assembler.
11316 # The name of the directory that contains temporary libtool files.
11319 # How to create reloadable object files.
11320 reload_flag=$lt_reload_flag
11321 reload_cmds=$lt_reload_cmds
11323 # How to pass a linker flag through the compiler.
11324 wl=$lt_lt_prog_compiler_wl_RC
11326 # Object file suffix (normally "o").
11327 objext="$ac_objext"
11329 # Old archive suffix (normally "a").
11332 # Shared library suffix (normally ".so").
11333 shrext_cmds='$shrext_cmds'
11335 # Executable file suffix (normally "").
11338 # Additional compiler flags for building library objects.
11339 pic_flag=$lt_lt_prog_compiler_pic_RC
11342 # What is the maximum length of a command?
11343 max_cmd_len=$lt_cv_sys_max_cmd_len
11345 # Does compiler simultaneously support -c and -o options?
11346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11348 # Must we lock files when doing compilation?
11349 need_locks=$lt_need_locks
11351 # Do we need the lib prefix for modules?
11352 need_lib_prefix=$need_lib_prefix
11354 # Do we need a version for libraries?
11355 need_version=$need_version
11357 # Whether dlopen is supported.
11358 dlopen_support=$enable_dlopen
11360 # Whether dlopen of programs is supported.
11361 dlopen_self=$enable_dlopen_self
11363 # Whether dlopen of statically linked programs is supported.
11364 dlopen_self_static=$enable_dlopen_self_static
11366 # Compiler flag to prevent dynamic linking.
11367 link_static_flag=$lt_lt_prog_compiler_static_RC
11369 # Compiler flag to turn off builtin functions.
11370 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11372 # Compiler flag to allow reflexive dlopens.
11373 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11375 # Compiler flag to generate shared objects directly from archives.
11376 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11378 # Compiler flag to generate thread-safe objects.
11379 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11381 # Library versioning type.
11382 version_type=$version_type
11384 # Format of library name prefix.
11385 libname_spec=$lt_libname_spec
11387 # List of archive names. First name is the real one, the rest are links.
11388 # The last name is the one that the linker finds with -lNAME.
11389 library_names_spec=$lt_library_names_spec
11391 # The coded name of the library, if different from the real name.
11392 soname_spec=$lt_soname_spec
11394 # Commands used to build and install an old-style archive.
11396 old_archive_cmds=$lt_old_archive_cmds_RC
11397 old_postinstall_cmds=$lt_old_postinstall_cmds
11398 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11400 # Create an old-style archive from a shared archive.
11401 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11403 # Create a temporary old-style archive to link instead of a shared archive.
11404 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11406 # Commands used to build and install a shared archive.
11407 archive_cmds=$lt_archive_cmds_RC
11408 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11409 postinstall_cmds=$lt_postinstall_cmds
11410 postuninstall_cmds=$lt_postuninstall_cmds
11412 # Commands used to build a loadable module (assumed same as above if empty)
11413 module_cmds=$lt_module_cmds_RC
11414 module_expsym_cmds=$lt_module_expsym_cmds_RC
11416 # Commands to strip libraries.
11417 old_striplib=$lt_old_striplib
11418 striplib=$lt_striplib
11420 # Dependencies to place before the objects being linked to create a
11422 predep_objects=$lt_predep_objects_RC
11424 # Dependencies to place after the objects being linked to create a
11426 postdep_objects=$lt_postdep_objects_RC
11428 # Dependencies to place before the objects being linked to create a
11430 predeps=$lt_predeps_RC
11432 # Dependencies to place after the objects being linked to create a
11434 postdeps=$lt_postdeps_RC
11436 # The library search path used internally by the compiler when linking
11437 # a shared library.
11438 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11440 # Method to check whether dependent libraries are shared objects.
11441 deplibs_check_method=$lt_deplibs_check_method
11443 # Command to use when deplibs_check_method == file_magic.
11444 file_magic_cmd=$lt_file_magic_cmd
11446 # Flag that allows shared libraries with undefined symbols to be built.
11447 allow_undefined_flag=$lt_allow_undefined_flag_RC
11449 # Flag that forces no undefined symbols.
11450 no_undefined_flag=$lt_no_undefined_flag_RC
11452 # Commands used to finish a libtool library installation in a directory.
11453 finish_cmds=$lt_finish_cmds
11455 # Same as above, but a single script fragment to be evaled but not shown.
11456 finish_eval=$lt_finish_eval
11458 # Take the output of nm and produce a listing of raw symbols and C names.
11459 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11461 # Transform the output of nm in a proper C declaration
11462 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11464 # Transform the output of nm in a C name address pair
11465 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11467 # This is the shared library runtime path variable.
11468 runpath_var=$runpath_var
11470 # This is the shared library path variable.
11471 shlibpath_var=$shlibpath_var
11473 # Is shlibpath searched before the hard-coded library search path?
11474 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11476 # How to hardcode a shared library path into an executable.
11477 hardcode_action=$hardcode_action_RC
11479 # Whether we should hardcode library paths into libraries.
11480 hardcode_into_libs=$hardcode_into_libs
11482 # Flag to hardcode \$libdir into a binary during linking.
11483 # This must work even if \$libdir does not exist.
11484 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11486 # If ld is used when linking, flag to hardcode \$libdir into
11487 # a binary during linking. This must work even if \$libdir does
11489 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11491 # Whether we need a single -rpath flag with a separated argument.
11492 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11494 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11495 # resulting binary.
11496 hardcode_direct=$hardcode_direct_RC
11498 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11499 # resulting binary.
11500 hardcode_minus_L=$hardcode_minus_L_RC
11502 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11503 # the resulting binary.
11504 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11506 # Set to yes if building a shared library automatically hardcodes DIR into the library
11507 # and all subsequent libraries and executables linked against it.
11508 hardcode_automatic=$hardcode_automatic_RC
11510 # Variables whose values should be saved in libtool wrapper scripts and
11511 # restored at relink time.
11512 variables_saved_for_relink="$variables_saved_for_relink"
11514 # Whether libtool must link a program against all its dependency libraries.
11515 link_all_deplibs=$link_all_deplibs_RC
11517 # Compile-time system search path for libraries
11518 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11520 # Run-time system search path for libraries
11521 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11523 # Fix the shell variable \$srcfile for the compiler.
11524 fix_srcfile_path="$fix_srcfile_path_RC"
11526 # Set to yes if exported symbols are required.
11527 always_export_symbols=$always_export_symbols_RC
11529 # The commands to list exported symbols.
11530 export_symbols_cmds=$lt_export_symbols_cmds_RC
11532 # The commands to extract the exported symbol list from a shared archive.
11533 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11535 # Symbols that should not be listed in the preloaded symbols.
11536 exclude_expsyms=$lt_exclude_expsyms_RC
11538 # Symbols that must always be exported.
11539 include_expsyms=$lt_include_expsyms_RC
11541 # ### END LIBTOOL TAG CONFIG: $tagname
11547 # If there is no Makefile yet, we rely on a make rule to execute
11548 # `config.status --recheck' to rerun these tests and create the
11549 # libtool script then.
11550 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11551 if test -f "$ltmain_in"; then
11552 test -f Makefile && make "$ltmain"
11558 ac_cpp='$CPP $CPPFLAGS'
11559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11568 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11569 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11570 { (exit 1); exit 1; }; }
11574 # Append the new tag name to the list of available tags.
11575 if test -n "$tagname" ; then
11576 available_tags="$available_tags $tagname"
11582 # Now substitute the updated list of available tags.
11583 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11584 mv "${ofile}T" "$ofile"
11588 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11589 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11590 { (exit 1); exit 1; }; }
11596 # This can be used to rebuild libtool when needed
11597 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11599 # Always use our own libtool.
11600 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11602 # Prevent multiple expansion
11614 if test $ol_enable_perl != no ; then
11615 # Extract the first word of "perl", so it can be a program name with args.
11616 set dummy perl; ac_word=$2
11617 echo "$as_me:$LINENO: checking for $ac_word" >&5
11618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11619 if test "${ac_cv_path_PERLBIN+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH
11631 test -z "$as_dir" && as_dir=.
11632 for ac_exec_ext in '' $ac_executable_extensions; do
11633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11634 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11645 PERLBIN=$ac_cv_path_PERLBIN
11647 if test -n "$PERLBIN"; then
11648 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11649 echo "${ECHO_T}$PERLBIN" >&6
11651 echo "$as_me:$LINENO: result: no" >&5
11652 echo "${ECHO_T}no" >&6
11656 if test "no$PERLBIN" = "no" ; then
11657 if test $ol_enable_perl = yes ; then
11658 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11659 echo "$as_me: error: could not locate perl" >&2;}
11660 { (exit 1); exit 1; }; }
11664 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11665 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11667 if test x"$ol_enable_perl" = "xyes" ; then
11668 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11670 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11677 ac_cpp='$CPP $CPPFLAGS'
11678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11681 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11682 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11683 # On Suns, sometimes $CPP names a directory.
11684 if test -n "$CPP" && test -d "$CPP"; then
11687 if test -z "$CPP"; then
11688 if test "${ac_cv_prog_CPP+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 # Double quotes because CPP needs to be expanded
11692 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11694 ac_preproc_ok=false
11695 for ac_c_preproc_warn_flag in '' yes
11697 # Use a header file that comes with gcc, so configuring glibc
11698 # with a fresh cross-compiler works.
11699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11700 # <limits.h> exists even on freestanding compilers.
11701 # On the NeXT, cc -E runs the code through the compiler's parser,
11702 # not just through cpp. "Syntax error" is here to catch this case.
11703 cat >conftest.$ac_ext <<_ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11710 # include <limits.h>
11712 # include <assert.h>
11716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11719 grep -v '^ *+' conftest.er1 >conftest.err
11721 cat conftest.err >&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } >/dev/null; then
11724 if test -s conftest.err; then
11725 ac_cpp_err=$ac_c_preproc_warn_flag
11726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11733 if test -z "$ac_cpp_err"; then
11736 echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.$ac_ext >&5
11739 # Broken: fails on valid input.
11742 rm -f conftest.err conftest.$ac_ext
11744 # OK, works on sane cases. Now check whether non-existent headers
11745 # can be detected and how.
11746 cat >conftest.$ac_ext <<_ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 #include <ac_nonexistent.h>
11754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11757 grep -v '^ *+' conftest.er1 >conftest.err
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } >/dev/null; then
11762 if test -s conftest.err; then
11763 ac_cpp_err=$ac_c_preproc_warn_flag
11764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11771 if test -z "$ac_cpp_err"; then
11772 # Broken: success on invalid input.
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11778 # Passes both tests.
11782 rm -f conftest.err conftest.$ac_ext
11785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11786 rm -f conftest.err conftest.$ac_ext
11787 if $ac_preproc_ok; then
11792 ac_cv_prog_CPP=$CPP
11795 CPP=$ac_cv_prog_CPP
11797 ac_cv_prog_CPP=$CPP
11799 echo "$as_me:$LINENO: result: $CPP" >&5
11800 echo "${ECHO_T}$CPP" >&6
11801 ac_preproc_ok=false
11802 for ac_c_preproc_warn_flag in '' yes
11804 # Use a header file that comes with gcc, so configuring glibc
11805 # with a fresh cross-compiler works.
11806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11807 # <limits.h> exists even on freestanding compilers.
11808 # On the NeXT, cc -E runs the code through the compiler's parser,
11809 # not just through cpp. "Syntax error" is here to catch this case.
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11817 # include <limits.h>
11819 # include <assert.h>
11823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11826 grep -v '^ *+' conftest.er1 >conftest.err
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } >/dev/null; then
11831 if test -s conftest.err; then
11832 ac_cpp_err=$ac_c_preproc_warn_flag
11833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11840 if test -z "$ac_cpp_err"; then
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 # Broken: fails on valid input.
11849 rm -f conftest.err conftest.$ac_ext
11851 # OK, works on sane cases. Now check whether non-existent headers
11852 # can be detected and how.
11853 cat >conftest.$ac_ext <<_ACEOF
11856 cat confdefs.h >>conftest.$ac_ext
11857 cat >>conftest.$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11859 #include <ac_nonexistent.h>
11861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11864 grep -v '^ *+' conftest.er1 >conftest.err
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } >/dev/null; then
11869 if test -s conftest.err; then
11870 ac_cpp_err=$ac_c_preproc_warn_flag
11871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11878 if test -z "$ac_cpp_err"; then
11879 # Broken: success on invalid input.
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 # Passes both tests.
11889 rm -f conftest.err conftest.$ac_ext
11892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11893 rm -f conftest.err conftest.$ac_ext
11894 if $ac_preproc_ok; then
11897 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11898 See \`config.log' for more details." >&5
11899 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11900 See \`config.log' for more details." >&2;}
11901 { (exit 1); exit 1; }; }
11905 ac_cpp='$CPP $CPPFLAGS'
11906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11912 *mingw32* ) ac_cv_mingw32=yes ;;
11913 *cygwin* ) ac_cv_cygwin=yes ;;
11919 cat >>confdefs.h <<_ACEOF
11920 #define EXEEXT "${EXEEXT}"
11924 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11925 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11926 if test "${ac_cv_lib_be_be_app+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 ac_check_lib_save_LIBS=$LIBS
11930 LIBS="-lbe -lroot -lnet $LIBS"
11931 cat >conftest.$ac_ext <<_ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11938 /* Override any gcc2 internal prototype to avoid an error. */
11942 /* We use char because int might match the return type of a gcc2
11943 builtin and then its argument prototype would still apply. */
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11955 (eval $ac_link) 2>conftest.er1
11957 grep -v '^ *+' conftest.er1 >conftest.err
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag"
11963 || test ! -s conftest.err'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest$ac_exeext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 ac_cv_lib_be_be_app=yes
11977 echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11980 ac_cv_lib_be_be_app=no
11982 rm -f conftest.err conftest.$ac_objext \
11983 conftest$ac_exeext conftest.$ac_ext
11984 LIBS=$ac_check_lib_save_LIBS
11986 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11987 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11988 if test $ac_cv_lib_be_be_app = yes; then
11989 LIBS="$LIBS -lbe -lroot -lnet"
11996 ac_cpp='$CPP $CPPFLAGS'
11997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12000 if test -n "$ac_tool_prefix"; then
12001 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12002 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12003 echo "$as_me:$LINENO: checking for $ac_word" >&5
12004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12005 if test "${ac_cv_prog_CC+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 if test -n "$CC"; then
12009 ac_cv_prog_CC="$CC" # Let the user override the test.
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12028 if test -n "$CC"; then
12029 echo "$as_me:$LINENO: result: $CC" >&5
12030 echo "${ECHO_T}$CC" >&6
12032 echo "$as_me:$LINENO: result: no" >&5
12033 echo "${ECHO_T}no" >&6
12037 if test -z "$ac_cv_prog_CC"; then
12039 # Extract the first word of "gcc", so it can be a program name with args.
12040 set dummy gcc; ac_word=$2
12041 echo "$as_me:$LINENO: checking for $ac_word" >&5
12042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12043 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 if test -n "$ac_ct_CC"; then
12047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12050 for as_dir in $PATH
12053 test -z "$as_dir" && as_dir=.
12054 for ac_exec_ext in '' $ac_executable_extensions; do
12055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12056 ac_cv_prog_ac_ct_CC="gcc"
12057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12066 if test -n "$ac_ct_CC"; then
12067 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12068 echo "${ECHO_T}$ac_ct_CC" >&6
12070 echo "$as_me:$LINENO: result: no" >&5
12071 echo "${ECHO_T}no" >&6
12076 CC="$ac_cv_prog_CC"
12079 if test -z "$CC"; then
12080 if test -n "$ac_tool_prefix"; then
12081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12082 set dummy ${ac_tool_prefix}cc; ac_word=$2
12083 echo "$as_me:$LINENO: checking for $ac_word" >&5
12084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12085 if test "${ac_cv_prog_CC+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 if test -n "$CC"; then
12089 ac_cv_prog_CC="$CC" # Let the user override the test.
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12095 test -z "$as_dir" && as_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12098 ac_cv_prog_CC="${ac_tool_prefix}cc"
12099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12108 if test -n "$CC"; then
12109 echo "$as_me:$LINENO: result: $CC" >&5
12110 echo "${ECHO_T}$CC" >&6
12112 echo "$as_me:$LINENO: result: no" >&5
12113 echo "${ECHO_T}no" >&6
12117 if test -z "$ac_cv_prog_CC"; then
12119 # Extract the first word of "cc", so it can be a program name with args.
12120 set dummy cc; ac_word=$2
12121 echo "$as_me:$LINENO: checking for $ac_word" >&5
12122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12123 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12124 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 if test -n "$ac_ct_CC"; then
12127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12130 for as_dir in $PATH
12133 test -z "$as_dir" && as_dir=.
12134 for ac_exec_ext in '' $ac_executable_extensions; do
12135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12136 ac_cv_prog_ac_ct_CC="cc"
12137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12146 if test -n "$ac_ct_CC"; then
12147 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12148 echo "${ECHO_T}$ac_ct_CC" >&6
12150 echo "$as_me:$LINENO: result: no" >&5
12151 echo "${ECHO_T}no" >&6
12156 CC="$ac_cv_prog_CC"
12160 if test -z "$CC"; then
12161 # Extract the first word of "cc", so it can be a program name with args.
12162 set dummy cc; ac_word=$2
12163 echo "$as_me:$LINENO: checking for $ac_word" >&5
12164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12165 if test "${ac_cv_prog_CC+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 if test -n "$CC"; then
12169 ac_cv_prog_CC="$CC" # Let the user override the test.
12171 ac_prog_rejected=no
12172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173 for as_dir in $PATH
12176 test -z "$as_dir" && as_dir=.
12177 for ac_exec_ext in '' $ac_executable_extensions; do
12178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12180 ac_prog_rejected=yes
12184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12190 if test $ac_prog_rejected = yes; then
12191 # We found a bogon in the path, so make sure we never use it.
12192 set dummy $ac_cv_prog_CC
12194 if test $# != 0; then
12195 # We chose a different compiler from the bogus one.
12196 # However, it has the same basename, so the bogon will be chosen
12197 # first if we set CC to just the basename; use the full file name.
12199 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12205 if test -n "$CC"; then
12206 echo "$as_me:$LINENO: result: $CC" >&5
12207 echo "${ECHO_T}$CC" >&6
12209 echo "$as_me:$LINENO: result: no" >&5
12210 echo "${ECHO_T}no" >&6
12214 if test -z "$CC"; then
12215 if test -n "$ac_tool_prefix"; then
12218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12220 echo "$as_me:$LINENO: checking for $ac_word" >&5
12221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12222 if test "${ac_cv_prog_CC+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 if test -n "$CC"; then
12226 ac_cv_prog_CC="$CC" # Let the user override the test.
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12245 if test -n "$CC"; then
12246 echo "$as_me:$LINENO: result: $CC" >&5
12247 echo "${ECHO_T}$CC" >&6
12249 echo "$as_me:$LINENO: result: no" >&5
12250 echo "${ECHO_T}no" >&6
12253 test -n "$CC" && break
12256 if test -z "$CC"; then
12260 # Extract the first word of "$ac_prog", so it can be a program name with args.
12261 set dummy $ac_prog; ac_word=$2
12262 echo "$as_me:$LINENO: checking for $ac_word" >&5
12263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12264 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 if test -n "$ac_ct_CC"; then
12268 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271 for as_dir in $PATH
12274 test -z "$as_dir" && as_dir=.
12275 for ac_exec_ext in '' $ac_executable_extensions; do
12276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12277 ac_cv_prog_ac_ct_CC="$ac_prog"
12278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12287 if test -n "$ac_ct_CC"; then
12288 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12289 echo "${ECHO_T}$ac_ct_CC" >&6
12291 echo "$as_me:$LINENO: result: no" >&5
12292 echo "${ECHO_T}no" >&6
12295 test -n "$ac_ct_CC" && break
12304 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12305 See \`config.log' for more details." >&5
12306 echo "$as_me: error: no acceptable C compiler found in \$PATH
12307 See \`config.log' for more details." >&2;}
12308 { (exit 1); exit 1; }; }
12310 # Provide some information about the compiler.
12311 echo "$as_me:$LINENO:" \
12312 "checking for C compiler version" >&5
12313 ac_compiler=`set X $ac_compile; echo $2`
12314 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12315 (eval $ac_compiler --version </dev/null >&5) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }
12319 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12320 (eval $ac_compiler -v </dev/null >&5) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }
12324 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12325 (eval $ac_compiler -V </dev/null >&5) 2>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }
12330 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12331 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12332 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12335 cat >conftest.$ac_ext <<_ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>conftest.er1
12357 grep -v '^ *+' conftest.er1 >conftest.err
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 ac_compiler_gnu=yes
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12383 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12386 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12387 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12388 GCC=`test $ac_compiler_gnu = yes && echo yes`
12389 ac_test_CFLAGS=${CFLAGS+set}
12390 ac_save_CFLAGS=$CFLAGS
12392 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12393 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12394 if test "${ac_cv_prog_cc_g+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 cat >conftest.$ac_ext <<_ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h. */
12412 rm -f conftest.$ac_objext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12414 (eval $ac_compile) 2>conftest.er1
12416 grep -v '^ *+' conftest.er1 >conftest.err
12418 cat conftest.err >&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -z "$ac_c_werror_flag"
12422 || test ! -s conftest.err'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest.$ac_objext'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 ac_cv_prog_cc_g=yes
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12443 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12444 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12445 if test "$ac_test_CFLAGS" = set; then
12446 CFLAGS=$ac_save_CFLAGS
12447 elif test $ac_cv_prog_cc_g = yes; then
12448 if test "$GCC" = yes; then
12454 if test "$GCC" = yes; then
12460 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12461 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12462 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 ac_cv_prog_cc_stdc=no
12467 cat >conftest.$ac_ext <<_ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12473 #include <stdarg.h>
12475 #include <sys/types.h>
12476 #include <sys/stat.h>
12477 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12478 struct buf { int x; };
12479 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12480 static char *e (p, i)
12486 static char *f (char * (*g) (char **, int), char **p, ...)
12491 s = g (p, va_arg (v,int));
12496 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12497 function prototypes and stuff, but not '\xHH' hex character constants.
12498 These don't provoke an error unfortunately, instead are silently treated
12499 as 'x'. The following induces an error, until -std1 is added to get
12500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12501 array size at least. It's necessary to write '\x00'==0 to get something
12502 that's true only with -std1. */
12503 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12505 int test (int i, double x);
12506 struct s1 {int (*f) (int a);};
12507 struct s2 {int (*f) (double a);};
12508 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12514 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12519 # Don't try gcc -ansi; that turns off useful extensions and
12520 # breaks some systems' header files.
12521 # AIX -qlanglvl=ansi
12522 # Ultrix and OSF/1 -std1
12523 # HP-UX 10.20 and later -Ae
12524 # HP-UX older versions -Aa -D_HPUX_SOURCE
12525 # SVR4 -Xc -D__EXTENSIONS__
12526 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12528 CC="$ac_save_CC $ac_arg"
12529 rm -f conftest.$ac_objext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12531 (eval $ac_compile) 2>conftest.er1
12533 grep -v '^ *+' conftest.er1 >conftest.err
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -z "$ac_c_werror_flag"
12539 || test ! -s conftest.err'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; } &&
12545 { ac_try='test -s conftest.$ac_objext'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; }; then
12551 ac_cv_prog_cc_stdc=$ac_arg
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12558 rm -f conftest.err conftest.$ac_objext
12560 rm -f conftest.$ac_ext conftest.$ac_objext
12565 case "x$ac_cv_prog_cc_stdc" in
12567 echo "$as_me:$LINENO: result: none needed" >&5
12568 echo "${ECHO_T}none needed" >&6 ;;
12570 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12571 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12572 CC="$CC $ac_cv_prog_cc_stdc" ;;
12575 # Some people use a C++ compiler to compile C. Since we use `exit',
12576 # in C++ we need to declare it. In case someone uses the same compiler
12577 # for both compiling C and C++ we need to have the C++ compiler decide
12578 # the declaration of exit, since it's the most demanding environment.
12579 cat >conftest.$ac_ext <<_ACEOF
12580 #ifndef __cplusplus
12584 rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586 (eval $ac_compile) 2>conftest.er1
12588 grep -v '^ *+' conftest.er1 >conftest.err
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag"
12594 || test ! -s conftest.err'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest.$ac_objext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 for ac_declaration in \
12608 'extern "C" void std::exit (int) throw (); using std::exit;' \
12609 'extern "C" void std::exit (int); using std::exit;' \
12610 'extern "C" void exit (int) throw ();' \
12611 'extern "C" void exit (int);' \
12614 cat >conftest.$ac_ext <<_ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12621 #include <stdlib.h>
12630 rm -f conftest.$ac_objext
12631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632 (eval $ac_compile) 2>conftest.er1
12634 grep -v '^ *+' conftest.er1 >conftest.err
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag"
12640 || test ! -s conftest.err'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12660 cat >conftest.$ac_ext <<_ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12675 rm -f conftest.$ac_objext
12676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12677 (eval $ac_compile) 2>conftest.er1
12679 grep -v '^ *+' conftest.er1 >conftest.err
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } &&
12684 { ac_try='test -z "$ac_c_werror_flag"
12685 || test ! -s conftest.err'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; } &&
12691 { ac_try='test -s conftest.$ac_objext'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; }; then
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12706 if test -n "$ac_declaration"; then
12707 echo '#ifdef __cplusplus' >>confdefs.h
12708 echo $ac_declaration >>confdefs.h
12709 echo '#endif' >>confdefs.h
12713 echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12719 ac_cpp='$CPP $CPPFLAGS'
12720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12724 depcc="$CC" am_compiler_list=
12726 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12727 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12728 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12732 # We make a subdir and do the tests there. Otherwise we can end up
12733 # making bogus files that we don't know about and never remove. For
12734 # instance it was reported that on HP-UX the gcc test will end up
12735 # making a dummy file named `D' -- because `-MD' means `put the output
12738 # Copy depcomp to subdir because otherwise we won't find it if we're
12739 # using a relative directory.
12740 cp "$am_depcomp" conftest.dir
12742 # We will build objects and dependencies in a subdirectory because
12743 # it helps to detect inapplicable dependency modes. For instance
12744 # both Tru64's cc and ICC support -MD to output dependencies as a
12745 # side effect of compilation, but ICC will put the dependencies in
12746 # the current directory while Tru64 will put them in the object
12750 am_cv_CC_dependencies_compiler_type=none
12751 if test "$am_compiler_list" = ""; then
12752 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12754 for depmode in $am_compiler_list; do
12755 # Setup a source with many dependencies, because some compilers
12756 # like to wrap large dependency lists on column 80 (with \), and
12757 # we should not choose a depcomp mode which is confused by this.
12759 # We need to recreate these files for each test, as the compiler may
12760 # overwrite some of them when testing with obscure command lines.
12761 # This happens at least with the AIX C compiler.
12763 for i in 1 2 3 4 5 6; do
12764 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12765 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12766 # Solaris 8's {/usr,}/bin/sh.
12767 touch sub/conftst$i.h
12769 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12773 # after this tag, mechanisms are not by side-effect, so they'll
12774 # only be used when explicitly requested
12775 if test "x$enable_dependency_tracking" = xyes; then
12783 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12784 # mode. It turns out that the SunPro C++ compiler does not properly
12785 # handle `-M -o', and we need to detect this.
12786 if depmode=$depmode \
12787 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12788 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12789 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12790 >/dev/null 2>conftest.err &&
12791 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12792 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12793 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12794 # icc doesn't choke on unknown options, it will just issue warnings
12795 # or remarks (even with -Werror). So we grep stderr for any message
12796 # that says an option was ignored or not supported.
12797 # When given -MP, icc 7.0 and 7.1 complain thusly:
12798 # icc: Command line warning: ignoring option '-M'; no argument required
12799 # The diagnosis changed in icc 8.0:
12800 # icc: Command line remark: option '-MP' not supported
12801 if (grep 'ignoring option' conftest.err ||
12802 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12803 am_cv_CC_dependencies_compiler_type=$depmode
12810 rm -rf conftest.dir
12812 am_cv_CC_dependencies_compiler_type=none
12816 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12817 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12818 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12823 test "x$enable_dependency_tracking" != xno \
12824 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12825 am__fastdepCC_TRUE=
12826 am__fastdepCC_FALSE='#'
12828 am__fastdepCC_TRUE='#'
12829 am__fastdepCC_FALSE=
12833 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12834 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12835 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12836 { (exit 1); exit 1; }; }
12839 # test for make depend flag
12842 if test -z "${MKDEP}"; then
12843 OL_MKDEP="${CC-cc}"
12844 if test -z "${MKDEP_FLAGS}"; then
12845 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12846 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12847 if test "${ol_cv_mkdep+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 for flag in "-M" "-xM"; do
12853 cat > conftest.c <<EOF
12856 if { ac_try='$OL_MKDEP $flag conftest.c'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } \
12862 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12864 if test ! -f conftest."${ac_object}" ; then
12866 OL_MKDEP_FLAGS="$flag"
12874 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12875 echo "${ECHO_T}$ol_cv_mkdep" >&6
12878 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12882 OL_MKDEP="${MKDEP}"
12883 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12888 if test "${ol_cv_mkdep}" = no ; then
12889 # this will soon become an error
12890 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12891 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12894 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12895 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12896 if test "${ac_cv_lib_s_afopen+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 ac_check_lib_save_LIBS=$LIBS
12901 cat >conftest.$ac_ext <<_ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12908 /* Override any gcc2 internal prototype to avoid an error. */
12912 /* We use char because int might match the return type of a gcc2
12913 builtin and then its argument prototype would still apply. */
12923 rm -f conftest.$ac_objext conftest$ac_exeext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12925 (eval $ac_link) 2>conftest.er1
12927 grep -v '^ *+' conftest.er1 >conftest.err
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try='test -z "$ac_c_werror_flag"
12933 || test ! -s conftest.err'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest$ac_exeext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_cv_lib_s_afopen=yes
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_cv_lib_s_afopen=no
12952 rm -f conftest.err conftest.$ac_objext \
12953 conftest$ac_exeext conftest.$ac_ext
12954 LIBS=$ac_check_lib_save_LIBS
12956 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12957 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12958 if test $ac_cv_lib_s_afopen = yes; then
12962 cat >>confdefs.h <<\_ACEOF
12963 #define HAVE_AIX_SECURITY 1
12972 ac_cv_func_getopt=no
12974 cat >>confdefs.h <<\_ACEOF
12975 #define BOTH_STRINGS_H 1
12982 WITH_MODULES_ENABLED=no
12983 if test $ol_enable_modules != no ; then
12985 for ac_header in ltdl.h
12987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12989 echo "$as_me:$LINENO: checking for $ac_header" >&5
12990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12997 # Is the header compilable?
12998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13000 cat >conftest.$ac_ext <<_ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 $ac_includes_default
13007 #include <$ac_header>
13009 rm -f conftest.$ac_objext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13011 (eval $ac_compile) 2>conftest.er1
13013 grep -v '^ *+' conftest.er1 >conftest.err
13015 cat conftest.err >&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } &&
13018 { ac_try='test -z "$ac_c_werror_flag"
13019 || test ! -s conftest.err'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; } &&
13025 { ac_try='test -s conftest.$ac_objext'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 ac_header_compiler=yes
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13036 ac_header_compiler=no
13038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13040 echo "${ECHO_T}$ac_header_compiler" >&6
13042 # Is the header present?
13043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13045 cat >conftest.$ac_ext <<_ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051 #include <$ac_header>
13053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13056 grep -v '^ *+' conftest.er1 >conftest.err
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } >/dev/null; then
13061 if test -s conftest.err; then
13062 ac_cpp_err=$ac_c_preproc_warn_flag
13063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13070 if test -z "$ac_cpp_err"; then
13071 ac_header_preproc=yes
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ac_header_preproc=no
13078 rm -f conftest.err conftest.$ac_ext
13079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13080 echo "${ECHO_T}$ac_header_preproc" >&6
13082 # So? What about this header?
13083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13089 ac_header_preproc=yes
13092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13106 ## --------------------------------------------- ##
13107 ## Report this to <http://www.openldap.org/its/> ##
13108 ## --------------------------------------------- ##
13111 sed "s/^/$as_me: WARNING: /" >&2
13114 echo "$as_me:$LINENO: checking for $ac_header" >&5
13115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 eval "$as_ac_Header=\$ac_header_preproc"
13121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13126 cat >>confdefs.h <<_ACEOF
13127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13135 if test $ac_cv_header_ltdl_h = no ; then
13136 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13137 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13138 { (exit 1); exit 1; }; }
13141 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13142 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13143 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 ac_check_lib_save_LIBS=$LIBS
13147 LIBS="-lltdl $LIBS"
13148 cat >conftest.$ac_ext <<_ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13155 /* Override any gcc2 internal prototype to avoid an error. */
13159 /* We use char because int might match the return type of a gcc2
13160 builtin and then its argument prototype would still apply. */
13170 rm -f conftest.$ac_objext conftest$ac_exeext
13171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13172 (eval $ac_link) 2>conftest.er1
13174 grep -v '^ *+' conftest.er1 >conftest.err
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } &&
13179 { ac_try='test -z "$ac_c_werror_flag"
13180 || test ! -s conftest.err'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; } &&
13186 { ac_try='test -s conftest$ac_exeext'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; }; then
13192 ac_cv_lib_ltdl_lt_dlinit=yes
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13197 ac_cv_lib_ltdl_lt_dlinit=no
13199 rm -f conftest.err conftest.$ac_objext \
13200 conftest$ac_exeext conftest.$ac_ext
13201 LIBS=$ac_check_lib_save_LIBS
13203 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13204 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13205 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13207 MODULES_LIBS=-lltdl
13209 cat >>confdefs.h <<\_ACEOF
13210 #define HAVE_LIBLTDL 1
13217 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13218 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13219 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13220 { (exit 1); exit 1; }; }
13222 ol_link_modules=yes
13223 WITH_MODULES_ENABLED=yes
13226 for i in $Backends; do
13227 eval "ol_tmp=\$ol_enable_$i"
13228 if test $ol_tmp = mod ; then
13229 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13230 echo "$as_me: WARNING: building static $i backend" >&2;}
13231 eval "ol_enable_$i=yes"
13234 for i in $Overlays; do
13235 eval "ol_tmp=\$ol_enable_$i"
13236 if test $ol_tmp = mod ; then
13237 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13238 echo "$as_me: WARNING: building static $i overlay" >&2;}
13239 eval "ol_enable_$i=yes"
13245 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13246 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13247 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 cat >conftest.$ac_ext <<_ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13259 #include <__ASCII__/generate_error.h>
13263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13266 grep -v '^ *+' conftest.er1 >conftest.err
13268 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } >/dev/null; then
13271 if test -s conftest.err; then
13272 ac_cpp_err=$ac_c_preproc_warn_flag
13273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13280 if test -z "$ac_cpp_err"; then
13281 ol_cv_cpp_ebcdic=yes
13283 echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13286 ol_cv_cpp_ebcdic=no
13288 rm -f conftest.err conftest.$ac_ext
13290 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13291 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13292 if test $ol_cv_cpp_ebcdic = yes ; then
13294 cat >>confdefs.h <<\_ACEOF
13295 #define HAVE_EBCDIC 1
13300 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13301 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13302 if test "${ol_cv_header_stdc+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 cat >conftest.$ac_ext <<_ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 #include <stdlib.h>
13312 #include <stdarg.h>
13313 #include <string.h>
13316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13319 grep -v '^ *+' conftest.er1 >conftest.err
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } >/dev/null; then
13324 if test -s conftest.err; then
13325 ac_cpp_err=$ac_c_preproc_warn_flag
13326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13333 if test -z "$ac_cpp_err"; then
13334 ol_cv_header_stdc=yes
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13339 ol_cv_header_stdc=no
13341 rm -f conftest.err conftest.$ac_ext
13343 if test $ol_cv_header_stdc = yes; then
13344 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13345 cat >conftest.$ac_ext <<_ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13351 #include <string.h>
13354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13355 $EGREP "memchr" >/dev/null 2>&1; then
13358 ol_cv_header_stdc=no
13364 if test $ol_cv_header_stdc = yes; then
13365 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13366 cat >conftest.$ac_ext <<_ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13372 #include <stdlib.h>
13375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13376 $EGREP "free" >/dev/null 2>&1; then
13379 ol_cv_header_stdc=no
13385 if test $ol_cv_header_stdc = yes; then
13386 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13387 if test "$cross_compiling" = yes; then
13390 cat >conftest.$ac_ext <<_ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13397 #ifndef HAVE_EBCDIC
13398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13401 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13402 || ('j' <= (c) && (c) <= 'r') \
13403 || ('s' <= (c) && (c) <= 'z'))
13404 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13406 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13407 int main () { int i; for (i = 0; i < 256; i++)
13408 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13412 rm -f conftest$ac_exeext
13413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13414 (eval $ac_link) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; }; then
13425 echo "$as_me: program exited with status $ac_status" >&5
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 ( exit $ac_status )
13430 ol_cv_header_stdc=no
13432 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13436 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13437 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13438 if test $ol_cv_header_stdc = yes; then
13439 cat >>confdefs.h <<\_ACEOF
13440 #define STDC_HEADERS 1
13444 ac_cv_header_stdc=disable
13447 if test $ol_cv_header_stdc != yes; then
13448 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13449 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13457 ac_header_dirent=no
13458 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13459 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13460 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13461 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 cat >conftest.$ac_ext <<_ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471 #include <sys/types.h>
13483 rm -f conftest.$ac_objext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485 (eval $ac_compile) 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_c_werror_flag"
13493 || test ! -s conftest.err'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; } &&
13499 { ac_try='test -s conftest.$ac_objext'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13505 eval "$as_ac_Header=yes"
13507 echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.$ac_ext >&5
13510 eval "$as_ac_Header=no"
13512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13517 cat >>confdefs.h <<_ACEOF
13518 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13521 ac_header_dirent=$ac_hdr; break
13525 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13526 if test $ac_header_dirent = dirent.h; then
13527 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13528 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13529 if test "${ac_cv_search_opendir+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 ac_func_search_save_LIBS=$LIBS
13533 ac_cv_search_opendir=no
13534 cat >conftest.$ac_ext <<_ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13541 /* Override any gcc2 internal prototype to avoid an error. */
13545 /* We use char because int might match the return type of a gcc2
13546 builtin and then its argument prototype would still apply. */
13556 rm -f conftest.$ac_objext conftest$ac_exeext
13557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13558 (eval $ac_link) 2>conftest.er1
13560 grep -v '^ *+' conftest.er1 >conftest.err
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } &&
13565 { ac_try='test -z "$ac_c_werror_flag"
13566 || test ! -s conftest.err'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try='test -s conftest$ac_exeext'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
13578 ac_cv_search_opendir="none required"
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13584 rm -f conftest.err conftest.$ac_objext \
13585 conftest$ac_exeext conftest.$ac_ext
13586 if test "$ac_cv_search_opendir" = no; then
13587 for ac_lib in dir; do
13588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13589 cat >conftest.$ac_ext <<_ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13596 /* Override any gcc2 internal prototype to avoid an error. */
13600 /* We use char because int might match the return type of a gcc2
13601 builtin and then its argument prototype would still apply. */
13611 rm -f conftest.$ac_objext conftest$ac_exeext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13613 (eval $ac_link) 2>conftest.er1
13615 grep -v '^ *+' conftest.er1 >conftest.err
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -z "$ac_c_werror_flag"
13621 || test ! -s conftest.err'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } &&
13627 { ac_try='test -s conftest$ac_exeext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 ac_cv_search_opendir="-l$ac_lib"
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13640 rm -f conftest.err conftest.$ac_objext \
13641 conftest$ac_exeext conftest.$ac_ext
13644 LIBS=$ac_func_search_save_LIBS
13646 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13647 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13648 if test "$ac_cv_search_opendir" != no; then
13649 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13654 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13655 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13656 if test "${ac_cv_search_opendir+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 ac_func_search_save_LIBS=$LIBS
13660 ac_cv_search_opendir=no
13661 cat >conftest.$ac_ext <<_ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13668 /* Override any gcc2 internal prototype to avoid an error. */
13672 /* We use char because int might match the return type of a gcc2
13673 builtin and then its argument prototype would still apply. */
13683 rm -f conftest.$ac_objext conftest$ac_exeext
13684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13685 (eval $ac_link) 2>conftest.er1
13687 grep -v '^ *+' conftest.er1 >conftest.err
13689 cat conftest.err >&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } &&
13692 { ac_try='test -z "$ac_c_werror_flag"
13693 || test ! -s conftest.err'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; } &&
13699 { ac_try='test -s conftest$ac_exeext'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }; then
13705 ac_cv_search_opendir="none required"
13707 echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13711 rm -f conftest.err conftest.$ac_objext \
13712 conftest$ac_exeext conftest.$ac_ext
13713 if test "$ac_cv_search_opendir" = no; then
13714 for ac_lib in x; do
13715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13716 cat >conftest.$ac_ext <<_ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13723 /* Override any gcc2 internal prototype to avoid an error. */
13727 /* We use char because int might match the return type of a gcc2
13728 builtin and then its argument prototype would still apply. */
13738 rm -f conftest.$ac_objext conftest$ac_exeext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13740 (eval $ac_link) 2>conftest.er1
13742 grep -v '^ *+' conftest.er1 >conftest.err
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -z "$ac_c_werror_flag"
13748 || test ! -s conftest.err'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest$ac_exeext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13760 ac_cv_search_opendir="-l$ac_lib"
13763 echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13767 rm -f conftest.err conftest.$ac_objext \
13768 conftest$ac_exeext conftest.$ac_ext
13771 LIBS=$ac_func_search_save_LIBS
13773 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13774 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13775 if test "$ac_cv_search_opendir" != no; then
13776 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13782 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13783 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13784 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 cat >conftest.$ac_ext <<_ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793 #include <sys/types.h>
13794 #include <sys/wait.h>
13795 #ifndef WEXITSTATUS
13796 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13799 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13807 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13812 rm -f conftest.$ac_objext
13813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13814 (eval $ac_compile) 2>conftest.er1
13816 grep -v '^ *+' conftest.er1 >conftest.err
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -z "$ac_c_werror_flag"
13822 || test ! -s conftest.err'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; } &&
13828 { ac_try='test -s conftest.$ac_objext'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 ac_cv_header_sys_wait_h=yes
13836 echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ac_cv_header_sys_wait_h=no
13841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13843 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13844 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13845 if test $ac_cv_header_sys_wait_h = yes; then
13847 cat >>confdefs.h <<\_ACEOF
13848 #define HAVE_SYS_WAIT_H 1
13853 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13854 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13855 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 cat >conftest.$ac_ext <<_ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13864 #include <sys/types.h>
13865 #include <termios.h>
13871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13872 $EGREP "yes" >/dev/null 2>&1; then
13873 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13875 ac_cv_sys_tiocgwinsz_in_termios_h=no
13880 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13881 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13883 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13884 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13885 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13886 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
13889 cat >conftest.$ac_ext <<_ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 #include <sys/types.h>
13896 #include <sys/ioctl.h>
13902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13903 $EGREP "yes" >/dev/null 2>&1; then
13904 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13906 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13911 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13912 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13914 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13916 cat >>confdefs.h <<\_ACEOF
13917 #define GWINSZ_IN_SYS_IOCTL 1
14015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14017 echo "$as_me:$LINENO: checking for $ac_header" >&5
14018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14025 # Is the header compilable?
14026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14028 cat >conftest.$ac_ext <<_ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14034 $ac_includes_default
14035 #include <$ac_header>
14037 rm -f conftest.$ac_objext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14039 (eval $ac_compile) 2>conftest.er1
14041 grep -v '^ *+' conftest.er1 >conftest.err
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -z "$ac_c_werror_flag"
14047 || test ! -s conftest.err'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; } &&
14053 { ac_try='test -s conftest.$ac_objext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14059 ac_header_compiler=yes
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14064 ac_header_compiler=no
14066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14068 echo "${ECHO_T}$ac_header_compiler" >&6
14070 # Is the header present?
14071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14073 cat >conftest.$ac_ext <<_ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079 #include <$ac_header>
14081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14084 grep -v '^ *+' conftest.er1 >conftest.err
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } >/dev/null; then
14089 if test -s conftest.err; then
14090 ac_cpp_err=$ac_c_preproc_warn_flag
14091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14098 if test -z "$ac_cpp_err"; then
14099 ac_header_preproc=yes
14101 echo "$as_me: failed program was:" >&5
14102 sed 's/^/| /' conftest.$ac_ext >&5
14104 ac_header_preproc=no
14106 rm -f conftest.err conftest.$ac_ext
14107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14108 echo "${ECHO_T}$ac_header_preproc" >&6
14110 # So? What about this header?
14111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14117 ac_header_preproc=yes
14120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14134 ## --------------------------------------------- ##
14135 ## Report this to <http://www.openldap.org/its/> ##
14136 ## --------------------------------------------- ##
14139 sed "s/^/$as_me: WARNING: /" >&2
14142 echo "$as_me:$LINENO: checking for $ac_header" >&5
14143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 eval "$as_ac_Header=\$ac_header_preproc"
14149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14154 cat >>confdefs.h <<_ACEOF
14155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14163 if test "$ac_cv_mingw32" = yes ; then
14166 for ac_header in winsock.h winsock2.h
14168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14170 echo "$as_me:$LINENO: checking for $ac_header" >&5
14171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14178 # Is the header compilable?
14179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14181 cat >conftest.$ac_ext <<_ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h. */
14187 $ac_includes_default
14188 #include <$ac_header>
14190 rm -f conftest.$ac_objext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192 (eval $ac_compile) 2>conftest.er1
14194 grep -v '^ *+' conftest.er1 >conftest.err
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -z "$ac_c_werror_flag"
14200 || test ! -s conftest.err'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest.$ac_objext'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 ac_header_compiler=yes
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14217 ac_header_compiler=no
14219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14221 echo "${ECHO_T}$ac_header_compiler" >&6
14223 # Is the header present?
14224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14226 cat >conftest.$ac_ext <<_ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 #include <$ac_header>
14234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14237 grep -v '^ *+' conftest.er1 >conftest.err
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } >/dev/null; then
14242 if test -s conftest.err; then
14243 ac_cpp_err=$ac_c_preproc_warn_flag
14244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14251 if test -z "$ac_cpp_err"; then
14252 ac_header_preproc=yes
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14257 ac_header_preproc=no
14259 rm -f conftest.err conftest.$ac_ext
14260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14261 echo "${ECHO_T}$ac_header_preproc" >&6
14263 # So? What about this header?
14264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14270 ac_header_preproc=yes
14273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14287 ## --------------------------------------------- ##
14288 ## Report this to <http://www.openldap.org/its/> ##
14289 ## --------------------------------------------- ##
14292 sed "s/^/$as_me: WARNING: /" >&2
14295 echo "$as_me:$LINENO: checking for $ac_header" >&5
14296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 eval "$as_ac_Header=\$ac_header_preproc"
14302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14307 cat >>confdefs.h <<_ACEOF
14308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14318 for ac_header in resolv.h
14320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14321 echo "$as_me:$LINENO: checking for $ac_header" >&5
14322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 cat >conftest.$ac_ext <<_ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14332 $ac_includes_default
14333 #include <netinet/in.h>
14336 #include <$ac_header>
14338 rm -f conftest.$ac_objext
14339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14340 (eval $ac_compile) 2>conftest.er1
14342 grep -v '^ *+' conftest.er1 >conftest.err
14344 cat conftest.err >&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try='test -z "$ac_c_werror_flag"
14348 || test ! -s conftest.err'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest.$ac_objext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 eval "$as_ac_Header=yes"
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14365 eval "$as_ac_Header=no"
14367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14372 cat >>confdefs.h <<_ACEOF
14373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14382 for ac_header in netinet/tcp.h
14384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14385 echo "$as_me:$LINENO: checking for $ac_header" >&5
14386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 cat >conftest.$ac_ext <<_ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14396 $ac_includes_default
14397 #include <netinet/in.h>
14400 #include <$ac_header>
14402 rm -f conftest.$ac_objext
14403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14404 (eval $ac_compile) 2>conftest.er1
14406 grep -v '^ *+' conftest.er1 >conftest.err
14408 cat conftest.err >&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
14411 { ac_try='test -z "$ac_c_werror_flag"
14412 || test ! -s conftest.err'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; } &&
14418 { ac_try='test -s conftest.$ac_objext'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }; then
14424 eval "$as_ac_Header=yes"
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14429 eval "$as_ac_Header=no"
14431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14436 cat >>confdefs.h <<_ACEOF
14437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14446 for ac_header in sys/ucred.h
14448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14449 echo "$as_me:$LINENO: checking for $ac_header" >&5
14450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 cat >conftest.$ac_ext <<_ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h. */
14460 $ac_includes_default
14461 #ifdef HAVE_SYS_PARAM_H
14462 #include <sys/param.h>
14466 #include <$ac_header>
14468 rm -f conftest.$ac_objext
14469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14470 (eval $ac_compile) 2>conftest.er1
14472 grep -v '^ *+' conftest.er1 >conftest.err
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } &&
14477 { ac_try='test -z "$ac_c_werror_flag"
14478 || test ! -s conftest.err'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; } &&
14484 { ac_try='test -s conftest.$ac_objext'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; }; then
14490 eval "$as_ac_Header=yes"
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14495 eval "$as_ac_Header=no"
14497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14502 cat >>confdefs.h <<_ACEOF
14503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14514 for ac_func in sigaction sigset
14516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14517 echo "$as_me:$LINENO: checking for $ac_func" >&5
14518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14519 if eval "test \"\${$as_ac_var+set}\" = set"; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 cat >conftest.$ac_ext <<_ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14530 #define $ac_func innocuous_$ac_func
14532 /* System header to define __stub macros and hopefully few prototypes,
14533 which can conflict with char $ac_func (); below.
14534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14535 <limits.h> exists even on freestanding compilers. */
14538 # include <limits.h>
14540 # include <assert.h>
14545 /* Override any gcc2 internal prototype to avoid an error. */
14550 /* We use char because int might match the return type of a gcc2
14551 builtin and then its argument prototype would still apply. */
14553 /* The GNU C library defines this for functions which it implements
14554 to always fail with ENOSYS. Some functions are actually named
14555 something starting with __ and the normal name is an alias. */
14556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14559 char (*f) () = $ac_func;
14568 return f != $ac_func;
14573 rm -f conftest.$ac_objext conftest$ac_exeext
14574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14575 (eval $ac_link) 2>conftest.er1
14577 grep -v '^ *+' conftest.er1 >conftest.err
14579 cat conftest.err >&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } &&
14582 { ac_try='test -z "$ac_c_werror_flag"
14583 || test ! -s conftest.err'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; } &&
14589 { ac_try='test -s conftest$ac_exeext'
14590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591 (eval $ac_try) 2>&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; }; then
14595 eval "$as_ac_var=yes"
14597 echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14600 eval "$as_ac_var=no"
14602 rm -f conftest.err conftest.$ac_objext \
14603 conftest$ac_exeext conftest.$ac_ext
14605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14607 if test `eval echo '${'$as_ac_var'}'` = yes; then
14608 cat >>confdefs.h <<_ACEOF
14609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14616 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14618 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14619 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14620 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14621 echo $ECHO_N "(cached) $ECHO_C" >&6
14623 ac_check_lib_save_LIBS=$LIBS
14625 cat >conftest.$ac_ext <<_ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14632 /* Override any gcc2 internal prototype to avoid an error. */
14636 /* We use char because int might match the return type of a gcc2
14637 builtin and then its argument prototype would still apply. */
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>conftest.er1
14651 grep -v '^ *+' conftest.er1 >conftest.err
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag"
14657 || test ! -s conftest.err'
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; } &&
14663 { ac_try='test -s conftest$ac_exeext'
14664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665 (eval $ac_try) 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; }; then
14669 ac_cv_lib_V3_sigset=yes
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 ac_cv_lib_V3_sigset=no
14676 rm -f conftest.err conftest.$ac_objext \
14677 conftest$ac_exeext conftest.$ac_ext
14678 LIBS=$ac_check_lib_save_LIBS
14680 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14681 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14682 if test $ac_cv_lib_V3_sigset = yes; then
14683 cat >>confdefs.h <<_ACEOF
14684 #define HAVE_LIBV3 1
14693 if test "$ac_cv_header_winsock_h" = yes; then
14694 echo "$as_me:$LINENO: checking for winsock" >&5
14695 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14696 if test "${ol_cv_winsock+set}" = set; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 for curlib in ws2_32 wsock32; do
14701 LIBS="$LIBS -l$curlib"
14702 cat >conftest.$ac_ext <<_ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 #include <winsock.h>
14715 select(0,NULL,NULL,NULL,NULL);
14717 gethostname(NULL,0);
14723 rm -f conftest.$ac_objext conftest$ac_exeext
14724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14725 (eval $ac_link) 2>conftest.er1
14727 grep -v '^ *+' conftest.er1 >conftest.err
14729 cat conftest.err >&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try='test -z "$ac_c_werror_flag"
14733 || test ! -s conftest.err'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; } &&
14739 { ac_try='test -s conftest$ac_exeext'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14752 rm -f conftest.err conftest.$ac_objext \
14753 conftest$ac_exeext conftest.$ac_ext
14755 if test $ol_cv_winsock = yes; then
14757 cat >>confdefs.h <<\_ACEOF
14758 #define HAVE_WINSOCK 1
14761 ac_cv_func_socket=yes
14762 ac_cv_func_select=yes
14763 ac_cv_func_closesocket=yes
14764 ac_cv_func_gethostname=yes
14765 if test $curlib = ws2_32; then
14766 ol_cv_winsock=winsock2
14768 cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_WINSOCK2 1
14778 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14779 echo "${ECHO_T}$ol_cv_winsock" >&6
14783 echo "$as_me:$LINENO: checking for socket" >&5
14784 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14785 if test "${ac_cv_func_socket+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 cat >conftest.$ac_ext <<_ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14796 #define socket innocuous_socket
14798 /* System header to define __stub macros and hopefully few prototypes,
14799 which can conflict with char socket (); below.
14800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14801 <limits.h> exists even on freestanding compilers. */
14804 # include <limits.h>
14806 # include <assert.h>
14811 /* Override any gcc2 internal prototype to avoid an error. */
14816 /* We use char because int might match the return type of a gcc2
14817 builtin and then its argument prototype would still apply. */
14819 /* The GNU C library defines this for functions which it implements
14820 to always fail with ENOSYS. Some functions are actually named
14821 something starting with __ and the normal name is an alias. */
14822 #if defined (__stub_socket) || defined (__stub___socket)
14825 char (*f) () = socket;
14834 return f != socket;
14839 rm -f conftest.$ac_objext conftest$ac_exeext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14841 (eval $ac_link) 2>conftest.er1
14843 grep -v '^ *+' conftest.er1 >conftest.err
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try='test -z "$ac_c_werror_flag"
14849 || test ! -s conftest.err'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; } &&
14855 { ac_try='test -s conftest$ac_exeext'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }; then
14861 ac_cv_func_socket=yes
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 ac_cv_func_socket=no
14868 rm -f conftest.err conftest.$ac_objext \
14869 conftest$ac_exeext conftest.$ac_ext
14871 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14872 echo "${ECHO_T}$ac_cv_func_socket" >&6
14873 if test $ac_cv_func_socket = yes; then
14878 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14879 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14880 if test "${ac_cv_lib_socket_main+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14883 ac_check_lib_save_LIBS=$LIBS
14884 LIBS="-lsocket $LIBS"
14885 cat >conftest.$ac_ext <<_ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14901 rm -f conftest.$ac_objext conftest$ac_exeext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14903 (eval $ac_link) 2>conftest.er1
14905 grep -v '^ *+' conftest.er1 >conftest.err
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_c_werror_flag"
14911 || test ! -s conftest.err'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try='test -s conftest$ac_exeext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_cv_lib_socket_main=yes
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 ac_cv_lib_socket_main=no
14930 rm -f conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext conftest.$ac_ext
14932 LIBS=$ac_check_lib_save_LIBS
14934 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14935 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14936 if test $ac_cv_lib_socket_main = yes; then
14937 cat >>confdefs.h <<_ACEOF
14938 #define HAVE_LIBSOCKET 1
14941 LIBS="-lsocket $LIBS"
14946 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14947 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14948 if test "${ac_cv_lib_net_main+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 ac_check_lib_save_LIBS=$LIBS
14953 cat >conftest.$ac_ext <<_ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14969 rm -f conftest.$ac_objext conftest$ac_exeext
14970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14971 (eval $ac_link) 2>conftest.er1
14973 grep -v '^ *+' conftest.er1 >conftest.err
14975 cat conftest.err >&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); } &&
14978 { ac_try='test -z "$ac_c_werror_flag"
14979 || test ! -s conftest.err'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; } &&
14985 { ac_try='test -s conftest$ac_exeext'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
14991 ac_cv_lib_net_main=yes
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_cv_lib_net_main=no
14998 rm -f conftest.err conftest.$ac_objext \
14999 conftest$ac_exeext conftest.$ac_ext
15000 LIBS=$ac_check_lib_save_LIBS
15002 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15003 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
15004 if test $ac_cv_lib_net_main = yes; then
15005 cat >>confdefs.h <<_ACEOF
15006 #define HAVE_LIBNET 1
15014 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15015 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
15016 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15017 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 ac_check_lib_save_LIBS=$LIBS
15020 LIBS="-lnsl_s $LIBS"
15021 cat >conftest.$ac_ext <<_ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039 (eval $ac_link) 2>conftest.er1
15041 grep -v '^ *+' conftest.er1 >conftest.err
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -z "$ac_c_werror_flag"
15047 || test ! -s conftest.err'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest$ac_exeext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_cv_lib_nsl_s_main=yes
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15064 ac_cv_lib_nsl_s_main=no
15066 rm -f conftest.err conftest.$ac_objext \
15067 conftest$ac_exeext conftest.$ac_ext
15068 LIBS=$ac_check_lib_save_LIBS
15070 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15071 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
15072 if test $ac_cv_lib_nsl_s_main = yes; then
15073 cat >>confdefs.h <<_ACEOF
15074 #define HAVE_LIBNSL_S 1
15077 LIBS="-lnsl_s $LIBS"
15082 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15083 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15084 if test "${ac_cv_lib_nsl_main+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 ac_check_lib_save_LIBS=$LIBS
15089 cat >conftest.$ac_ext <<_ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h. */
15105 rm -f conftest.$ac_objext conftest$ac_exeext
15106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15107 (eval $ac_link) 2>conftest.er1
15109 grep -v '^ *+' conftest.er1 >conftest.err
15111 cat conftest.err >&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } &&
15114 { ac_try='test -z "$ac_c_werror_flag"
15115 || test ! -s conftest.err'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; } &&
15121 { ac_try='test -s conftest$ac_exeext'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_cv_lib_nsl_main=yes
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_cv_lib_nsl_main=no
15134 rm -f conftest.err conftest.$ac_objext \
15135 conftest$ac_exeext conftest.$ac_ext
15136 LIBS=$ac_check_lib_save_LIBS
15138 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15139 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15140 if test $ac_cv_lib_nsl_main = yes; then
15141 cat >>confdefs.h <<_ACEOF
15142 #define HAVE_LIBNSL 1
15150 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15151 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15152 if test "${ac_cv_lib_inet_socket+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 ac_check_lib_save_LIBS=$LIBS
15156 LIBS="-linet $LIBS"
15157 cat >conftest.$ac_ext <<_ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15164 /* Override any gcc2 internal prototype to avoid an error. */
15168 /* We use char because int might match the return type of a gcc2
15169 builtin and then its argument prototype would still apply. */
15179 rm -f conftest.$ac_objext conftest$ac_exeext
15180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15181 (eval $ac_link) 2>conftest.er1
15183 grep -v '^ *+' conftest.er1 >conftest.err
15185 cat conftest.err >&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); } &&
15188 { ac_try='test -z "$ac_c_werror_flag"
15189 || test ! -s conftest.err'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; } &&
15195 { ac_try='test -s conftest$ac_exeext'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15201 ac_cv_lib_inet_socket=yes
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15206 ac_cv_lib_inet_socket=no
15208 rm -f conftest.err conftest.$ac_objext \
15209 conftest$ac_exeext conftest.$ac_ext
15210 LIBS=$ac_check_lib_save_LIBS
15212 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15213 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15214 if test $ac_cv_lib_inet_socket = yes; then
15215 cat >>confdefs.h <<_ACEOF
15216 #define HAVE_LIBINET 1
15219 LIBS="-linet $LIBS"
15224 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15225 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15226 if test "${ac_cv_lib_gen_main+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15229 ac_check_lib_save_LIBS=$LIBS
15231 cat >conftest.$ac_ext <<_ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15247 rm -f conftest.$ac_objext conftest$ac_exeext
15248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15249 (eval $ac_link) 2>conftest.er1
15251 grep -v '^ *+' conftest.er1 >conftest.err
15253 cat conftest.err >&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
15256 { ac_try='test -z "$ac_c_werror_flag"
15257 || test ! -s conftest.err'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; } &&
15263 { ac_try='test -s conftest$ac_exeext'
15264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265 (eval $ac_try) 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_cv_lib_gen_main=yes
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ac_cv_lib_gen_main=no
15276 rm -f conftest.err conftest.$ac_objext \
15277 conftest$ac_exeext conftest.$ac_ext
15278 LIBS=$ac_check_lib_save_LIBS
15280 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15281 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15282 if test $ac_cv_lib_gen_main = yes; then
15283 cat >>confdefs.h <<_ACEOF
15284 #define HAVE_LIBGEN 1
15295 echo "$as_me:$LINENO: checking for select" >&5
15296 echo $ECHO_N "checking for select... $ECHO_C" >&6
15297 if test "${ac_cv_func_select+set}" = set; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 cat >conftest.$ac_ext <<_ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15306 /* Define select to an innocuous variant, in case <limits.h> declares select.
15307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15308 #define select innocuous_select
15310 /* System header to define __stub macros and hopefully few prototypes,
15311 which can conflict with char select (); below.
15312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15313 <limits.h> exists even on freestanding compilers. */
15316 # include <limits.h>
15318 # include <assert.h>
15323 /* Override any gcc2 internal prototype to avoid an error. */
15328 /* We use char because int might match the return type of a gcc2
15329 builtin and then its argument prototype would still apply. */
15331 /* The GNU C library defines this for functions which it implements
15332 to always fail with ENOSYS. Some functions are actually named
15333 something starting with __ and the normal name is an alias. */
15334 #if defined (__stub_select) || defined (__stub___select)
15337 char (*f) () = select;
15346 return f != select;
15351 rm -f conftest.$ac_objext conftest$ac_exeext
15352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15353 (eval $ac_link) 2>conftest.er1
15355 grep -v '^ *+' conftest.er1 >conftest.err
15357 cat conftest.err >&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } &&
15360 { ac_try='test -z "$ac_c_werror_flag"
15361 || test ! -s conftest.err'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; } &&
15367 { ac_try='test -s conftest$ac_exeext'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; }; then
15373 ac_cv_func_select=yes
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15378 ac_cv_func_select=no
15380 rm -f conftest.err conftest.$ac_objext \
15381 conftest$ac_exeext conftest.$ac_ext
15383 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15384 echo "${ECHO_T}$ac_cv_func_select" >&6
15385 if test $ac_cv_func_select = yes; then
15388 { { echo "$as_me:$LINENO: error: select() required." >&5
15389 echo "$as_me: error: select() required." >&2;}
15390 { (exit 1); exit 1; }; }
15394 if test "${ac_cv_header_winsock_h}" != yes; then
15397 for ac_header in sys/select.h sys/socket.h
15399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15401 echo "$as_me:$LINENO: checking for $ac_header" >&5
15402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15404 echo $ECHO_N "(cached) $ECHO_C" >&6
15406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15409 # Is the header compilable?
15410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15412 cat >conftest.$ac_ext <<_ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 $ac_includes_default
15419 #include <$ac_header>
15421 rm -f conftest.$ac_objext
15422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15423 (eval $ac_compile) 2>conftest.er1
15425 grep -v '^ *+' conftest.er1 >conftest.err
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } &&
15430 { ac_try='test -z "$ac_c_werror_flag"
15431 || test ! -s conftest.err'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; } &&
15437 { ac_try='test -s conftest.$ac_objext'
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15443 ac_header_compiler=yes
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15448 ac_header_compiler=no
15450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15452 echo "${ECHO_T}$ac_header_compiler" >&6
15454 # Is the header present?
15455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15457 cat >conftest.$ac_ext <<_ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h. */
15463 #include <$ac_header>
15465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15468 grep -v '^ *+' conftest.er1 >conftest.err
15470 cat conftest.err >&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } >/dev/null; then
15473 if test -s conftest.err; then
15474 ac_cpp_err=$ac_c_preproc_warn_flag
15475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15482 if test -z "$ac_cpp_err"; then
15483 ac_header_preproc=yes
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15488 ac_header_preproc=no
15490 rm -f conftest.err conftest.$ac_ext
15491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15492 echo "${ECHO_T}$ac_header_preproc" >&6
15494 # So? What about this header?
15495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15501 ac_header_preproc=yes
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15518 ## --------------------------------------------- ##
15519 ## Report this to <http://www.openldap.org/its/> ##
15520 ## --------------------------------------------- ##
15523 sed "s/^/$as_me: WARNING: /" >&2
15526 echo "$as_me:$LINENO: checking for $ac_header" >&5
15527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 eval "$as_ac_Header=\$ac_header_preproc"
15533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15538 cat >>confdefs.h <<_ACEOF
15539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15546 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15547 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15548 if test "${ac_cv_func_select_args+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15552 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15553 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15554 cat >conftest.$ac_ext <<_ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15560 $ac_includes_default
15561 #if HAVE_SYS_SELECT_H
15562 # include <sys/select.h>
15564 #if HAVE_SYS_SOCKET_H
15565 # include <sys/socket.h>
15571 extern int select ($ac_arg1,
15572 $ac_arg234, $ac_arg234, $ac_arg234,
15578 rm -f conftest.$ac_objext
15579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15580 (eval $ac_compile) 2>conftest.er1
15582 grep -v '^ *+' conftest.er1 >conftest.err
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } &&
15587 { ac_try='test -z "$ac_c_werror_flag"
15588 || test ! -s conftest.err'
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; } &&
15594 { ac_try='test -s conftest.$ac_objext'
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; }; then
15600 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15602 echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15610 # Provide a safe default value.
15611 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15614 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15615 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15616 ac_save_IFS=$IFS; IFS=','
15617 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15621 cat >>confdefs.h <<_ACEOF
15622 #define SELECT_TYPE_ARG1 $1
15626 cat >>confdefs.h <<_ACEOF
15627 #define SELECT_TYPE_ARG234 ($2)
15631 cat >>confdefs.h <<_ACEOF
15632 #define SELECT_TYPE_ARG5 ($3)
15641 for ac_func in poll
15643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15644 echo "$as_me:$LINENO: checking for $ac_func" >&5
15645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15646 if eval "test \"\${$as_ac_var+set}\" = set"; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 cat >conftest.$ac_ext <<_ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15657 #define $ac_func innocuous_$ac_func
15659 /* System header to define __stub macros and hopefully few prototypes,
15660 which can conflict with char $ac_func (); below.
15661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15662 <limits.h> exists even on freestanding compilers. */
15665 # include <limits.h>
15667 # include <assert.h>
15672 /* Override any gcc2 internal prototype to avoid an error. */
15677 /* We use char because int might match the return type of a gcc2
15678 builtin and then its argument prototype would still apply. */
15680 /* The GNU C library defines this for functions which it implements
15681 to always fail with ENOSYS. Some functions are actually named
15682 something starting with __ and the normal name is an alias. */
15683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15686 char (*f) () = $ac_func;
15695 return f != $ac_func;
15700 rm -f conftest.$ac_objext conftest$ac_exeext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15702 (eval $ac_link) 2>conftest.er1
15704 grep -v '^ *+' conftest.er1 >conftest.err
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -z "$ac_c_werror_flag"
15710 || test ! -s conftest.err'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest$ac_exeext'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 eval "$as_ac_var=yes"
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15727 eval "$as_ac_var=no"
15729 rm -f conftest.err conftest.$ac_objext \
15730 conftest$ac_exeext conftest.$ac_ext
15732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15734 if test `eval echo '${'$as_ac_var'}'` = yes; then
15735 cat >>confdefs.h <<_ACEOF
15736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15743 for ac_header in poll.h
15745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15747 echo "$as_me:$LINENO: checking for $ac_header" >&5
15748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15755 # Is the header compilable?
15756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15758 cat >conftest.$ac_ext <<_ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15764 $ac_includes_default
15765 #include <$ac_header>
15767 rm -f conftest.$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769 (eval $ac_compile) 2>conftest.er1
15771 grep -v '^ *+' conftest.er1 >conftest.err
15773 cat conftest.err >&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } &&
15776 { ac_try='test -z "$ac_c_werror_flag"
15777 || test ! -s conftest.err'
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try='test -s conftest.$ac_objext'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15789 ac_header_compiler=yes
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15794 ac_header_compiler=no
15796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15798 echo "${ECHO_T}$ac_header_compiler" >&6
15800 # Is the header present?
15801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15803 cat >conftest.$ac_ext <<_ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809 #include <$ac_header>
15811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15814 grep -v '^ *+' conftest.er1 >conftest.err
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } >/dev/null; then
15819 if test -s conftest.err; then
15820 ac_cpp_err=$ac_c_preproc_warn_flag
15821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15828 if test -z "$ac_cpp_err"; then
15829 ac_header_preproc=yes
15831 echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15834 ac_header_preproc=no
15836 rm -f conftest.err conftest.$ac_ext
15837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15838 echo "${ECHO_T}$ac_header_preproc" >&6
15840 # So? What about this header?
15841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15847 ac_header_preproc=yes
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15864 ## --------------------------------------------- ##
15865 ## Report this to <http://www.openldap.org/its/> ##
15866 ## --------------------------------------------- ##
15869 sed "s/^/$as_me: WARNING: /" >&2
15872 echo "$as_me:$LINENO: checking for $ac_header" >&5
15873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15877 eval "$as_ac_Header=\$ac_header_preproc"
15879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15884 cat >>confdefs.h <<_ACEOF
15885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15894 for ac_header in sys/epoll.h
15896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15898 echo "$as_me:$LINENO: checking for $ac_header" >&5
15899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15906 # Is the header compilable?
15907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15909 cat >conftest.$ac_ext <<_ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 $ac_includes_default
15916 #include <$ac_header>
15918 rm -f conftest.$ac_objext
15919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15920 (eval $ac_compile) 2>conftest.er1
15922 grep -v '^ *+' conftest.er1 >conftest.err
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
15927 { ac_try='test -z "$ac_c_werror_flag"
15928 || test ! -s conftest.err'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; } &&
15934 { ac_try='test -s conftest.$ac_objext'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_header_compiler=yes
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 ac_header_compiler=no
15947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15949 echo "${ECHO_T}$ac_header_compiler" >&6
15951 # Is the header present?
15952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15954 cat >conftest.$ac_ext <<_ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15960 #include <$ac_header>
15962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15965 grep -v '^ *+' conftest.er1 >conftest.err
15967 cat conftest.err >&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } >/dev/null; then
15970 if test -s conftest.err; then
15971 ac_cpp_err=$ac_c_preproc_warn_flag
15972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15979 if test -z "$ac_cpp_err"; then
15980 ac_header_preproc=yes
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15985 ac_header_preproc=no
15987 rm -f conftest.err conftest.$ac_ext
15988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15989 echo "${ECHO_T}$ac_header_preproc" >&6
15991 # So? What about this header?
15992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15998 ac_header_preproc=yes
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16015 ## --------------------------------------------- ##
16016 ## Report this to <http://www.openldap.org/its/> ##
16017 ## --------------------------------------------- ##
16020 sed "s/^/$as_me: WARNING: /" >&2
16023 echo "$as_me:$LINENO: checking for $ac_header" >&5
16024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 eval "$as_ac_Header=\$ac_header_preproc"
16030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16035 cat >>confdefs.h <<_ACEOF
16036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16043 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16044 echo "$as_me:$LINENO: checking for epoll system call" >&5
16045 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
16046 if test "$cross_compiling" = yes; then
16047 echo "$as_me:$LINENO: result: no" >&5
16048 echo "${ECHO_T}no" >&6
16050 cat >conftest.$ac_ext <<_ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16056 int main(int argc, char *argv)
16058 int epfd = epoll_create(256);
16059 exit (epfd == -1 ? 1 : 0);
16062 rm -f conftest$ac_exeext
16063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16064 (eval $ac_link) 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 echo "$as_me:$LINENO: result: yes" >&5
16074 echo "${ECHO_T}yes" >&6
16076 cat >>confdefs.h <<\_ACEOF
16077 #define HAVE_EPOLL 1
16081 echo "$as_me: program exited with status $ac_status" >&5
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 ( exit $ac_status )
16086 echo "$as_me:$LINENO: result: no" >&5
16087 echo "${ECHO_T}no" >&6
16089 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16094 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16095 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16096 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 cat >conftest.$ac_ext <<_ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h. */
16108 #include <sys/types.h>
16111 #include <stdlib.h>
16116 char *c = (char *) *sys_errlist
16121 rm -f conftest.$ac_objext
16122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16123 (eval $ac_compile) 2>conftest.er1
16125 grep -v '^ *+' conftest.er1 >conftest.err
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } &&
16130 { ac_try='test -z "$ac_c_werror_flag"
16131 || test ! -s conftest.err'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; } &&
16137 { ac_try='test -s conftest.$ac_objext'
16138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139 (eval $ac_try) 2>&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); }; }; then
16143 ol_cv_dcl_sys_errlist=yes
16144 ol_cv_have_sys_errlist=yes
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16149 ol_cv_dcl_sys_errlist=no
16151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16153 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16154 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16156 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16157 if test $ol_cv_dcl_sys_errlist = no ; then
16159 cat >>confdefs.h <<\_ACEOF
16160 #define DECL_SYS_ERRLIST 1
16164 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16165 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16166 if test "${ol_cv_have_sys_errlist+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 cat >conftest.$ac_ext <<_ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16180 char *c = (char *) *sys_errlist
16185 rm -f conftest.$ac_objext conftest$ac_exeext
16186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16187 (eval $ac_link) 2>conftest.er1
16189 grep -v '^ *+' conftest.er1 >conftest.err
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } &&
16194 { ac_try='test -z "$ac_c_werror_flag"
16195 || test ! -s conftest.err'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; } &&
16201 { ac_try='test -s conftest$ac_exeext'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16207 ol_cv_have_sys_errlist=yes
16209 echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16212 ol_cv_have_sys_errlist=no
16214 rm -f conftest.err conftest.$ac_objext \
16215 conftest$ac_exeext conftest.$ac_ext
16217 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16218 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16220 if test $ol_cv_have_sys_errlist = yes ; then
16222 cat >>confdefs.h <<\_ACEOF
16223 #define HAVE_SYS_ERRLIST 1
16229 for ac_func in strerror strerror_r
16231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16232 echo "$as_me:$LINENO: checking for $ac_func" >&5
16233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16234 if eval "test \"\${$as_ac_var+set}\" = set"; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 cat >conftest.$ac_ext <<_ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16245 #define $ac_func innocuous_$ac_func
16247 /* System header to define __stub macros and hopefully few prototypes,
16248 which can conflict with char $ac_func (); below.
16249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16250 <limits.h> exists even on freestanding compilers. */
16253 # include <limits.h>
16255 # include <assert.h>
16260 /* Override any gcc2 internal prototype to avoid an error. */
16265 /* We use char because int might match the return type of a gcc2
16266 builtin and then its argument prototype would still apply. */
16268 /* The GNU C library defines this for functions which it implements
16269 to always fail with ENOSYS. Some functions are actually named
16270 something starting with __ and the normal name is an alias. */
16271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16274 char (*f) () = $ac_func;
16283 return f != $ac_func;
16288 rm -f conftest.$ac_objext conftest$ac_exeext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16290 (eval $ac_link) 2>conftest.er1
16292 grep -v '^ *+' conftest.er1 >conftest.err
16294 cat conftest.err >&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } &&
16297 { ac_try='test -z "$ac_c_werror_flag"
16298 || test ! -s conftest.err'
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; } &&
16304 { ac_try='test -s conftest$ac_exeext'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; }; then
16310 eval "$as_ac_var=yes"
16312 echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16315 eval "$as_ac_var=no"
16317 rm -f conftest.err conftest.$ac_objext \
16318 conftest$ac_exeext conftest.$ac_ext
16320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16322 if test `eval echo '${'$as_ac_var'}'` = yes; then
16323 cat >>confdefs.h <<_ACEOF
16324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16330 ol_cv_func_strerror_r=no
16331 if test "${ac_cv_func_strerror_r}" = yes ; then
16332 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16333 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16334 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16335 echo $ECHO_N "(cached) $ECHO_C" >&6
16338 cat >conftest.$ac_ext <<_ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16344 #include <string.h>
16346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16347 $EGREP "strerror_r" >/dev/null 2>&1; then
16348 ol_decl_strerror_r=yes
16350 ol_decl_strerror_r=no
16354 if test $ol_decl_strerror_r = yes ; then
16355 cat >conftest.$ac_ext <<_ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16361 #include <string.h>
16365 /* from autoconf 2.59 */
16367 char x = *strerror_r (0, buf, sizeof buf);
16368 char *p = strerror_r (0, buf, sizeof buf);
16374 rm -f conftest.$ac_objext
16375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16376 (eval $ac_compile) 2>conftest.er1
16378 grep -v '^ *+' conftest.er1 >conftest.err
16380 cat conftest.err >&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } &&
16383 { ac_try='test -z "$ac_c_werror_flag"
16384 || test ! -s conftest.err'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; } &&
16390 { ac_try='test -s conftest.$ac_objext'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; }; then
16396 ol_cv_nonposix_strerror_r=yes
16398 echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401 ol_cv_nonposix_strerror_r=no
16403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16405 if test "$cross_compiling" = yes; then
16406 ol_cv_nonposix_strerror=no
16408 cat >conftest.$ac_ext <<_ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h. */
16418 strerror_r( 1, buf, sizeof buf );
16419 exit( buf[0] == 0 );
16423 rm -f conftest$ac_exeext
16424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16425 (eval $ac_link) 2>&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 ol_cv_nonposix_strerror_r=yes
16436 echo "$as_me: program exited with status $ac_status" >&5
16437 echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 ( exit $ac_status )
16441 ol_cv_nonposix_strerror=no
16443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16448 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16449 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16450 if test $ol_cv_nonposix_strerror_r = yes ; then
16452 cat >>confdefs.h <<\_ACEOF
16453 #define HAVE_NONPOSIX_STRERROR_R 1
16458 elif test "${ac_cv_func_strerror}" = no ; then
16459 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16460 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16461 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 cat >conftest.$ac_ext <<_ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16473 #include <sys/types.h>
16476 #include <stdlib.h>
16481 char *c = (char *) *sys_errlist
16486 rm -f conftest.$ac_objext
16487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16488 (eval $ac_compile) 2>conftest.er1
16490 grep -v '^ *+' conftest.er1 >conftest.err
16492 cat conftest.err >&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
16495 { ac_try='test -z "$ac_c_werror_flag"
16496 || test ! -s conftest.err'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ol_cv_dcl_sys_errlist=yes
16509 ol_cv_have_sys_errlist=yes
16511 echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16514 ol_cv_dcl_sys_errlist=no
16516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16518 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16519 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16521 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16522 if test $ol_cv_dcl_sys_errlist = no ; then
16524 cat >>confdefs.h <<\_ACEOF
16525 #define DECL_SYS_ERRLIST 1
16529 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16530 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16531 if test "${ol_cv_have_sys_errlist+set}" = set; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16535 cat >conftest.$ac_ext <<_ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h. */
16545 char *c = (char *) *sys_errlist
16550 rm -f conftest.$ac_objext conftest$ac_exeext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16552 (eval $ac_link) 2>conftest.er1
16554 grep -v '^ *+' conftest.er1 >conftest.err
16556 cat conftest.err >&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
16559 { ac_try='test -z "$ac_c_werror_flag"
16560 || test ! -s conftest.err'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } &&
16566 { ac_try='test -s conftest$ac_exeext'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 ol_cv_have_sys_errlist=yes
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 ol_cv_have_sys_errlist=no
16579 rm -f conftest.err conftest.$ac_objext \
16580 conftest$ac_exeext conftest.$ac_ext
16582 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16583 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16585 if test $ol_cv_have_sys_errlist = yes ; then
16587 cat >>confdefs.h <<\_ACEOF
16588 #define HAVE_SYS_ERRLIST 1
16597 for ac_header in regex.h
16599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16601 echo "$as_me:$LINENO: checking for $ac_header" >&5
16602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16609 # Is the header compilable?
16610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16612 cat >conftest.$ac_ext <<_ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16618 $ac_includes_default
16619 #include <$ac_header>
16621 rm -f conftest.$ac_objext
16622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16623 (eval $ac_compile) 2>conftest.er1
16625 grep -v '^ *+' conftest.er1 >conftest.err
16627 cat conftest.err >&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); } &&
16630 { ac_try='test -z "$ac_c_werror_flag"
16631 || test ! -s conftest.err'
16632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633 (eval $ac_try) 2>&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }; } &&
16637 { ac_try='test -s conftest.$ac_objext'
16638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; }; then
16643 ac_header_compiler=yes
16645 echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16648 ac_header_compiler=no
16650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16652 echo "${ECHO_T}$ac_header_compiler" >&6
16654 # Is the header present?
16655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16657 cat >conftest.$ac_ext <<_ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16663 #include <$ac_header>
16665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16668 grep -v '^ *+' conftest.er1 >conftest.err
16670 cat conftest.err >&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } >/dev/null; then
16673 if test -s conftest.err; then
16674 ac_cpp_err=$ac_c_preproc_warn_flag
16675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16682 if test -z "$ac_cpp_err"; then
16683 ac_header_preproc=yes
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 ac_header_preproc=no
16690 rm -f conftest.err conftest.$ac_ext
16691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16692 echo "${ECHO_T}$ac_header_preproc" >&6
16694 # So? What about this header?
16695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16701 ac_header_preproc=yes
16704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16718 ## --------------------------------------------- ##
16719 ## Report this to <http://www.openldap.org/its/> ##
16720 ## --------------------------------------------- ##
16723 sed "s/^/$as_me: WARNING: /" >&2
16726 echo "$as_me:$LINENO: checking for $ac_header" >&5
16727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 eval "$as_ac_Header=\$ac_header_preproc"
16733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16738 cat >>confdefs.h <<_ACEOF
16739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16746 if test "$ac_cv_header_regex_h" != yes ; then
16747 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16748 echo "$as_me: error: POSIX regex.h required." >&2;}
16749 { (exit 1); exit 1; }; }
16751 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16752 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16753 if test "${ac_cv_search_regfree+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 ac_func_search_save_LIBS=$LIBS
16757 ac_cv_search_regfree=no
16758 cat >conftest.$ac_ext <<_ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16765 /* Override any gcc2 internal prototype to avoid an error. */
16769 /* We use char because int might match the return type of a gcc2
16770 builtin and then its argument prototype would still apply. */
16780 rm -f conftest.$ac_objext conftest$ac_exeext
16781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16782 (eval $ac_link) 2>conftest.er1
16784 grep -v '^ *+' conftest.er1 >conftest.err
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } &&
16789 { ac_try='test -z "$ac_c_werror_flag"
16790 || test ! -s conftest.err'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; } &&
16796 { ac_try='test -s conftest$ac_exeext'
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; }; then
16802 ac_cv_search_regfree="none required"
16804 echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16808 rm -f conftest.err conftest.$ac_objext \
16809 conftest$ac_exeext conftest.$ac_ext
16810 if test "$ac_cv_search_regfree" = no; then
16811 for ac_lib in regex gnuregex; do
16812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16813 cat >conftest.$ac_ext <<_ACEOF
16816 cat confdefs.h >>conftest.$ac_ext
16817 cat >>conftest.$ac_ext <<_ACEOF
16818 /* end confdefs.h. */
16820 /* Override any gcc2 internal prototype to avoid an error. */
16824 /* We use char because int might match the return type of a gcc2
16825 builtin and then its argument prototype would still apply. */
16835 rm -f conftest.$ac_objext conftest$ac_exeext
16836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16837 (eval $ac_link) 2>conftest.er1
16839 grep -v '^ *+' conftest.er1 >conftest.err
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try='test -z "$ac_c_werror_flag"
16845 || test ! -s conftest.err'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest$ac_exeext'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 ac_cv_search_regfree="-l$ac_lib"
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16864 rm -f conftest.err conftest.$ac_objext \
16865 conftest$ac_exeext conftest.$ac_ext
16868 LIBS=$ac_func_search_save_LIBS
16870 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16871 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16872 if test "$ac_cv_search_regfree" != no; then
16873 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16876 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16877 echo "$as_me: error: POSIX regex required." >&2;}
16878 { (exit 1); exit 1; }; }
16883 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16884 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16885 if test "${ol_cv_c_posix_regex+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16889 if test "$cross_compiling" = yes; then
16890 ol_cv_c_posix_regex=cross
16892 cat >conftest.$ac_ext <<_ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16899 #include <sys/types.h>
16901 static char *pattern, *string;
16909 if(regcomp(&re, pattern, 0)) {
16913 string = "ALL MATCH";
16915 rc = regexec(&re, string, 0, (void*)0, 0);
16922 rm -f conftest$ac_exeext
16923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16924 (eval $ac_link) 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929 (eval $ac_try) 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; }; then
16933 ol_cv_c_posix_regex=yes
16935 echo "$as_me: program exited with status $ac_status" >&5
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16939 ( exit $ac_status )
16940 ol_cv_c_posix_regex=no
16942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16945 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16946 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16948 if test "$ol_cv_c_posix_regex" = no ; then
16949 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16950 echo "$as_me: error: broken POSIX regex!" >&2;}
16951 { (exit 1); exit 1; }; }
16957 for ac_header in sys/uuid.h
16959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961 echo "$as_me:$LINENO: checking for $ac_header" >&5
16962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16969 # Is the header compilable?
16970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16972 cat >conftest.$ac_ext <<_ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978 $ac_includes_default
16979 #include <$ac_header>
16981 rm -f conftest.$ac_objext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16983 (eval $ac_compile) 2>conftest.er1
16985 grep -v '^ *+' conftest.er1 >conftest.err
16987 cat conftest.err >&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -z "$ac_c_werror_flag"
16991 || test ! -s conftest.err'
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; } &&
16997 { ac_try='test -s conftest.$ac_objext'
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 ac_header_compiler=yes
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17008 ac_header_compiler=no
17010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17012 echo "${ECHO_T}$ac_header_compiler" >&6
17014 # Is the header present?
17015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17017 cat >conftest.$ac_ext <<_ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17023 #include <$ac_header>
17025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17028 grep -v '^ *+' conftest.er1 >conftest.err
17030 cat conftest.err >&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } >/dev/null; then
17033 if test -s conftest.err; then
17034 ac_cpp_err=$ac_c_preproc_warn_flag
17035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17042 if test -z "$ac_cpp_err"; then
17043 ac_header_preproc=yes
17045 echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17048 ac_header_preproc=no
17050 rm -f conftest.err conftest.$ac_ext
17051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17052 echo "${ECHO_T}$ac_header_preproc" >&6
17054 # So? What about this header?
17055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17061 ac_header_preproc=yes
17064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17078 ## --------------------------------------------- ##
17079 ## Report this to <http://www.openldap.org/its/> ##
17080 ## --------------------------------------------- ##
17083 sed "s/^/$as_me: WARNING: /" >&2
17086 echo "$as_me:$LINENO: checking for $ac_header" >&5
17087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17091 eval "$as_ac_Header=\$ac_header_preproc"
17093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17098 cat >>confdefs.h <<_ACEOF
17099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17106 if test $ac_cv_header_sys_uuid_h = yes ; then
17108 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17109 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17110 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 ac_func_search_save_LIBS=$LIBS
17114 ac_cv_search_uuid_to_str=no
17115 cat >conftest.$ac_ext <<_ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17122 /* Override any gcc2 internal prototype to avoid an error. */
17126 /* We use char because int might match the return type of a gcc2
17127 builtin and then its argument prototype would still apply. */
17128 char uuid_to_str ();
17137 rm -f conftest.$ac_objext conftest$ac_exeext
17138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139 (eval $ac_link) 2>conftest.er1
17141 grep -v '^ *+' conftest.er1 >conftest.err
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } &&
17146 { ac_try='test -z "$ac_c_werror_flag"
17147 || test ! -s conftest.err'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; } &&
17153 { ac_try='test -s conftest$ac_exeext'
17154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; }; then
17159 ac_cv_search_uuid_to_str="none required"
17161 echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17165 rm -f conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17167 if test "$ac_cv_search_uuid_to_str" = no; then
17168 for ac_lib in uuid; do
17169 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17170 cat >conftest.$ac_ext <<_ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17177 /* Override any gcc2 internal prototype to avoid an error. */
17181 /* We use char because int might match the return type of a gcc2
17182 builtin and then its argument prototype would still apply. */
17183 char uuid_to_str ();
17192 rm -f conftest.$ac_objext conftest$ac_exeext
17193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17194 (eval $ac_link) 2>conftest.er1
17196 grep -v '^ *+' conftest.er1 >conftest.err
17198 cat conftest.err >&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); } &&
17201 { ac_try='test -z "$ac_c_werror_flag"
17202 || test ! -s conftest.err'
17203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; } &&
17208 { ac_try='test -s conftest$ac_exeext'
17209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17210 (eval $ac_try) 2>&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; }; then
17214 ac_cv_search_uuid_to_str="-l$ac_lib"
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17221 rm -f conftest.err conftest.$ac_objext \
17222 conftest$ac_exeext conftest.$ac_ext
17225 LIBS=$ac_func_search_save_LIBS
17227 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17228 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17229 if test "$ac_cv_search_uuid_to_str" != no; then
17230 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17238 if test have_uuid = yes ; then
17240 cat >>confdefs.h <<\_ACEOF
17241 #define HAVE_UUID_TO_STR 1
17245 test "$ac_cv_search_uuid_to_str" = "none required" || \
17246 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17250 if test $have_uuid = no ; then
17251 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17252 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17254 LIBS="$LIBS -lrpcrt4"
17255 cat >conftest.$ac_ext <<_ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17262 int __stdcall UuidCreate(void *);
17263 int __stdcall UuidToStringA(void *,void **);
17270 UuidToStringA(0,0);
17276 rm -f conftest.$ac_objext conftest$ac_exeext
17277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17278 (eval $ac_link) 2>conftest.er1
17280 grep -v '^ *+' conftest.er1 >conftest.err
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
17285 { ac_try='test -z "$ac_c_werror_flag"
17286 || test ! -s conftest.err'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; } &&
17292 { ac_try='test -s conftest$ac_exeext'
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; }; then
17300 echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17305 rm -f conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17307 if test $need_rpcrt = yes; then
17308 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17311 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17312 echo "${ECHO_T}$need_rpcrt" >&6
17315 ol_cv_lib_resolver=no
17316 if test $ol_cv_lib_resolver = no ; then
17317 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17318 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17319 if test "${ol_cv_resolver_none+set}" = set; then
17320 echo $ECHO_N "(cached) $ECHO_C" >&6
17325 LIBS="$ol_RESOLVER_LIB $LIBS"
17327 cat >conftest.$ac_ext <<_ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17334 #ifdef HAVE_SYS_TYPES_H
17335 # include <sys/types.h>
17337 #include <netinet/in.h>
17338 #ifdef HAVE_ARPA_NAMESER_H
17339 # include <arpa/nameser.h>
17341 #ifdef HAVE_RESOLV_H
17342 # include <resolv.h>
17350 char *request = NULL;
17351 unsigned char reply[64*1024];
17352 unsigned char host[64*1024];
17356 /* Bind 8/9 interface */
17357 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17359 /* Bind 4 interface */
17363 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17367 /* Bind 8/9 interface */
17369 #elif defined(HFIXEDSZ)
17370 /* Bind 4 interface w/ HFIXEDSZ */
17373 /* Bind 4 interface w/o HFIXEDSZ */
17374 p += sizeof(HEADER);
17376 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17382 rm -f conftest.$ac_objext conftest$ac_exeext
17383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17384 (eval $ac_link) 2>conftest.er1
17386 grep -v '^ *+' conftest.er1 >conftest.err
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } &&
17391 { ac_try='test -z "$ac_c_werror_flag"
17392 || test ! -s conftest.err'
17393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; } &&
17398 { ac_try='test -s conftest$ac_exeext'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ol_cv_resolver_none=yes
17406 echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17409 ol_cv_resolver_none=no
17411 rm -f conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17417 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17418 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17420 if test $ol_cv_resolver_none = yes ; then
17421 ol_cv_lib_resolver=yes
17425 if test $ol_cv_lib_resolver = no ; then
17426 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17427 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17428 if test "${ol_cv_resolver_resolv+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17432 ol_RESOLVER_LIB=-lresolv
17434 LIBS="$ol_RESOLVER_LIB $LIBS"
17436 cat >conftest.$ac_ext <<_ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17443 #ifdef HAVE_SYS_TYPES_H
17444 # include <sys/types.h>
17446 #include <netinet/in.h>
17447 #ifdef HAVE_ARPA_NAMESER_H
17448 # include <arpa/nameser.h>
17450 #ifdef HAVE_RESOLV_H
17451 # include <resolv.h>
17459 char *request = NULL;
17460 unsigned char reply[64*1024];
17461 unsigned char host[64*1024];
17465 /* Bind 8/9 interface */
17466 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17468 /* Bind 4 interface */
17472 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17476 /* Bind 8/9 interface */
17478 #elif defined(HFIXEDSZ)
17479 /* Bind 4 interface w/ HFIXEDSZ */
17482 /* Bind 4 interface w/o HFIXEDSZ */
17483 p += sizeof(HEADER);
17485 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17491 rm -f conftest.$ac_objext conftest$ac_exeext
17492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17493 (eval $ac_link) 2>conftest.er1
17495 grep -v '^ *+' conftest.er1 >conftest.err
17497 cat conftest.err >&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
17500 { ac_try='test -z "$ac_c_werror_flag"
17501 || test ! -s conftest.err'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest$ac_exeext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 ol_cv_resolver_resolv=yes
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 ol_cv_resolver_resolv=no
17520 rm -f conftest.err conftest.$ac_objext \
17521 conftest$ac_exeext conftest.$ac_ext
17526 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17527 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17529 if test $ol_cv_resolver_resolv = yes ; then
17530 ol_cv_lib_resolver=-lresolv
17534 if test $ol_cv_lib_resolver = no ; then
17535 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17536 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17537 if test "${ol_cv_resolver_bind+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 ol_RESOLVER_LIB=-lbind
17543 LIBS="$ol_RESOLVER_LIB $LIBS"
17545 cat >conftest.$ac_ext <<_ACEOF
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h. */
17552 #ifdef HAVE_SYS_TYPES_H
17553 # include <sys/types.h>
17555 #include <netinet/in.h>
17556 #ifdef HAVE_ARPA_NAMESER_H
17557 # include <arpa/nameser.h>
17559 #ifdef HAVE_RESOLV_H
17560 # include <resolv.h>
17568 char *request = NULL;
17569 unsigned char reply[64*1024];
17570 unsigned char host[64*1024];
17574 /* Bind 8/9 interface */
17575 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17577 /* Bind 4 interface */
17581 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17585 /* Bind 8/9 interface */
17587 #elif defined(HFIXEDSZ)
17588 /* Bind 4 interface w/ HFIXEDSZ */
17591 /* Bind 4 interface w/o HFIXEDSZ */
17592 p += sizeof(HEADER);
17594 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17602 (eval $ac_link) 2>conftest.er1
17604 grep -v '^ *+' conftest.er1 >conftest.err
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
17609 { ac_try='test -z "$ac_c_werror_flag"
17610 || test ! -s conftest.err'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest$ac_exeext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ol_cv_resolver_bind=yes
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 ol_cv_resolver_bind=no
17629 rm -f conftest.err conftest.$ac_objext \
17630 conftest$ac_exeext conftest.$ac_ext
17635 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17636 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17638 if test $ol_cv_resolver_bind = yes ; then
17639 ol_cv_lib_resolver=-lbind
17646 if test "$ol_cv_lib_resolver" != no ; then
17648 cat >>confdefs.h <<\_ACEOF
17649 #define HAVE_RES_QUERY 1
17653 if test "$ol_enable_dnssrv" != no ; then
17657 if test "$ol_cv_lib_resolver" != yes ; then
17658 LIBS="$ol_cv_lib_resolver $LIBS"
17662 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17663 if test "$ol_link_dnssrv" = no ; then
17664 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17665 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17666 { (exit 1); exit 1; }; }
17669 ol_enable_dnssrv=no
17673 for ac_func in hstrerror
17675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17676 echo "$as_me:$LINENO: checking for $ac_func" >&5
17677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17678 if eval "test \"\${$as_ac_var+set}\" = set"; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 cat >conftest.$ac_ext <<_ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17689 #define $ac_func innocuous_$ac_func
17691 /* System header to define __stub macros and hopefully few prototypes,
17692 which can conflict with char $ac_func (); below.
17693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17694 <limits.h> exists even on freestanding compilers. */
17697 # include <limits.h>
17699 # include <assert.h>
17704 /* Override any gcc2 internal prototype to avoid an error. */
17709 /* We use char because int might match the return type of a gcc2
17710 builtin and then its argument prototype would still apply. */
17712 /* The GNU C library defines this for functions which it implements
17713 to always fail with ENOSYS. Some functions are actually named
17714 something starting with __ and the normal name is an alias. */
17715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17718 char (*f) () = $ac_func;
17727 return f != $ac_func;
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17734 (eval $ac_link) 2>conftest.er1
17736 grep -v '^ *+' conftest.er1 >conftest.err
17738 cat conftest.err >&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try='test -z "$ac_c_werror_flag"
17742 || test ! -s conftest.err'
17743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest$ac_exeext'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 eval "$as_ac_var=yes"
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17759 eval "$as_ac_var=no"
17761 rm -f conftest.err conftest.$ac_objext \
17762 conftest$ac_exeext conftest.$ac_ext
17764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17766 if test `eval echo '${'$as_ac_var'}'` = yes; then
17767 cat >>confdefs.h <<_ACEOF
17768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17779 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17782 echo "$as_me:$LINENO: checking for $ac_func" >&5
17783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17784 if eval "test \"\${$as_ac_var+set}\" = set"; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17787 cat >conftest.$ac_ext <<_ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17795 #define $ac_func innocuous_$ac_func
17797 /* System header to define __stub macros and hopefully few prototypes,
17798 which can conflict with char $ac_func (); below.
17799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17800 <limits.h> exists even on freestanding compilers. */
17803 # include <limits.h>
17805 # include <assert.h>
17810 /* Override any gcc2 internal prototype to avoid an error. */
17815 /* We use char because int might match the return type of a gcc2
17816 builtin and then its argument prototype would still apply. */
17818 /* The GNU C library defines this for functions which it implements
17819 to always fail with ENOSYS. Some functions are actually named
17820 something starting with __ and the normal name is an alias. */
17821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17824 char (*f) () = $ac_func;
17833 return f != $ac_func;
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17840 (eval $ac_link) 2>conftest.er1
17842 grep -v '^ *+' conftest.er1 >conftest.err
17844 cat conftest.err >&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
17847 { ac_try='test -z "$ac_c_werror_flag"
17848 || test ! -s conftest.err'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest$ac_exeext'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 eval "$as_ac_var=yes"
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 eval "$as_ac_var=no"
17867 rm -f conftest.err conftest.$ac_objext \
17868 conftest$ac_exeext conftest.$ac_ext
17870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17872 if test `eval echo '${'$as_ac_var'}'` = yes; then
17873 cat >>confdefs.h <<_ACEOF
17874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17882 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17883 if test $ol_enable_ipv6 = yes ; then
17884 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17885 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17886 { (exit 1); exit 1; }; }
17888 elif test $ol_enable_ipv6 != no ; then
17889 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17890 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17891 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17895 cat >conftest.$ac_ext <<_ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17902 # include <netinet/in.h>
17903 # ifdef INET6_ADDRSTRLEN
17904 __has_inet6_addrstrlen__;
17908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17909 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17910 ol_cv_inet6_addrstrlen=yes
17912 ol_cv_inet6_addrstrlen=no
17917 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17918 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17921 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17922 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17923 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 cat >conftest.$ac_ext <<_ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17934 #include <sys/types.h>
17935 #include <sys/socket.h>
17941 struct sockaddr_storage ss;
17947 rm -f conftest.$ac_objext
17948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17949 (eval $ac_compile) 2>conftest.er1
17951 grep -v '^ *+' conftest.er1 >conftest.err
17953 cat conftest.err >&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } &&
17956 { ac_try='test -z "$ac_c_werror_flag"
17957 || test ! -s conftest.err'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; } &&
17963 { ac_try='test -s conftest.$ac_objext'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
17969 ol_cv_struct_sockaddr_storage=yes
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17974 ol_cv_struct_sockaddr_storage=no
17976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17978 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17979 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17981 if test $ol_cv_inet6_addrstrlen = yes &&
17982 test $ol_cv_struct_sockaddr_storage = yes ; then
17984 elif test $ol_enable_ipv6 = yes &&
17985 test $ol_cv_inet6_addrstrlen = no ; then
17986 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17987 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17988 { (exit 1); exit 1; }; }
17989 elif test $ol_enable_ipv6 = yes &&
17990 test $ol_cv_struct_sockaddr_storage = no ; then
17991 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17992 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17993 { (exit 1); exit 1; }; }
17997 if test $ol_enable_local != no ; then
17999 for ac_header in sys/un.h
18001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18003 echo "$as_me:$LINENO: checking for $ac_header" >&5
18004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18006 echo $ECHO_N "(cached) $ECHO_C" >&6
18008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18011 # Is the header compilable?
18012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18014 cat >conftest.$ac_ext <<_ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h. */
18020 $ac_includes_default
18021 #include <$ac_header>
18023 rm -f conftest.$ac_objext
18024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18025 (eval $ac_compile) 2>conftest.er1
18027 grep -v '^ *+' conftest.er1 >conftest.err
18029 cat conftest.err >&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } &&
18032 { ac_try='test -z "$ac_c_werror_flag"
18033 || test ! -s conftest.err'
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; } &&
18039 { ac_try='test -s conftest.$ac_objext'
18040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041 (eval $ac_try) 2>&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; }; then
18045 ac_header_compiler=yes
18047 echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18050 ac_header_compiler=no
18052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18054 echo "${ECHO_T}$ac_header_compiler" >&6
18056 # Is the header present?
18057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18059 cat >conftest.$ac_ext <<_ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h. */
18065 #include <$ac_header>
18067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18070 grep -v '^ *+' conftest.er1 >conftest.err
18072 cat conftest.err >&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } >/dev/null; then
18075 if test -s conftest.err; then
18076 ac_cpp_err=$ac_c_preproc_warn_flag
18077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18084 if test -z "$ac_cpp_err"; then
18085 ac_header_preproc=yes
18087 echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 ac_header_preproc=no
18092 rm -f conftest.err conftest.$ac_ext
18093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18094 echo "${ECHO_T}$ac_header_preproc" >&6
18096 # So? What about this header?
18097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18103 ac_header_preproc=yes
18106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18120 ## --------------------------------------------- ##
18121 ## Report this to <http://www.openldap.org/its/> ##
18122 ## --------------------------------------------- ##
18125 sed "s/^/$as_me: WARNING: /" >&2
18128 echo "$as_me:$LINENO: checking for $ac_header" >&5
18129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18133 eval "$as_ac_Header=\$ac_header_preproc"
18135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18140 cat >>confdefs.h <<_ACEOF
18141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18149 if test $ol_enable_local = auto ; then
18150 ol_enable_local=$ac_cv_header_sys_un_h
18151 elif test $ac_cv_header_sys_un_h = no ; then
18152 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18153 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18154 { (exit 1); exit 1; }; }
18162 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18165 for ac_header in krb5.h
18167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18169 echo "$as_me:$LINENO: checking for $ac_header" >&5
18170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18177 # Is the header compilable?
18178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18180 cat >conftest.$ac_ext <<_ACEOF
18183 cat confdefs.h >>conftest.$ac_ext
18184 cat >>conftest.$ac_ext <<_ACEOF
18185 /* end confdefs.h. */
18186 $ac_includes_default
18187 #include <$ac_header>
18189 rm -f conftest.$ac_objext
18190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18191 (eval $ac_compile) 2>conftest.er1
18193 grep -v '^ *+' conftest.er1 >conftest.err
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_c_werror_flag"
18199 || test ! -s conftest.err'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; } &&
18205 { ac_try='test -s conftest.$ac_objext'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18211 ac_header_compiler=yes
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18216 ac_header_compiler=no
18218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18220 echo "${ECHO_T}$ac_header_compiler" >&6
18222 # Is the header present?
18223 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18225 cat >conftest.$ac_ext <<_ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 #include <$ac_header>
18233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18236 grep -v '^ *+' conftest.er1 >conftest.err
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } >/dev/null; then
18241 if test -s conftest.err; then
18242 ac_cpp_err=$ac_c_preproc_warn_flag
18243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18250 if test -z "$ac_cpp_err"; then
18251 ac_header_preproc=yes
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 ac_header_preproc=no
18258 rm -f conftest.err conftest.$ac_ext
18259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18260 echo "${ECHO_T}$ac_header_preproc" >&6
18262 # So? What about this header?
18263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18269 ac_header_preproc=yes
18272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18279 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18286 ## --------------------------------------------- ##
18287 ## Report this to <http://www.openldap.org/its/> ##
18288 ## --------------------------------------------- ##
18291 sed "s/^/$as_me: WARNING: /" >&2
18294 echo "$as_me:$LINENO: checking for $ac_header" >&5
18295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18299 eval "$as_ac_Header=\$ac_header_preproc"
18301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18306 cat >>confdefs.h <<_ACEOF
18307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18315 if test $ac_cv_header_krb5_h = yes ; then
18317 for ac_header in heim_err.h
18319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18321 echo "$as_me:$LINENO: checking for $ac_header" >&5
18322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18324 echo $ECHO_N "(cached) $ECHO_C" >&6
18326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18329 # Is the header compilable?
18330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18332 cat >conftest.$ac_ext <<_ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18338 $ac_includes_default
18339 #include <$ac_header>
18341 rm -f conftest.$ac_objext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343 (eval $ac_compile) 2>conftest.er1
18345 grep -v '^ *+' conftest.er1 >conftest.err
18347 cat conftest.err >&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); } &&
18350 { ac_try='test -z "$ac_c_werror_flag"
18351 || test ! -s conftest.err'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest.$ac_objext'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 ac_header_compiler=yes
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 ac_header_compiler=no
18370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18372 echo "${ECHO_T}$ac_header_compiler" >&6
18374 # Is the header present?
18375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18377 cat >conftest.$ac_ext <<_ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 #include <$ac_header>
18385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18388 grep -v '^ *+' conftest.er1 >conftest.err
18390 cat conftest.err >&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } >/dev/null; then
18393 if test -s conftest.err; then
18394 ac_cpp_err=$ac_c_preproc_warn_flag
18395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18402 if test -z "$ac_cpp_err"; then
18403 ac_header_preproc=yes
18405 echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18408 ac_header_preproc=no
18410 rm -f conftest.err conftest.$ac_ext
18411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18412 echo "${ECHO_T}$ac_header_preproc" >&6
18414 # So? What about this header?
18415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18421 ac_header_preproc=yes
18424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18438 ## --------------------------------------------- ##
18439 ## Report this to <http://www.openldap.org/its/> ##
18440 ## --------------------------------------------- ##
18443 sed "s/^/$as_me: WARNING: /" >&2
18446 echo "$as_me:$LINENO: checking for $ac_header" >&5
18447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 eval "$as_ac_Header=\$ac_header_preproc"
18453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18458 cat >>confdefs.h <<_ACEOF
18459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18466 if test $ac_cv_header_heim_err_h = yes ; then
18472 if test $krb5_impl = mit; then
18473 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18474 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18475 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18478 ac_check_lib_save_LIBS=$LIBS
18479 LIBS="-lk5crypto $LIBS"
18480 cat >conftest.$ac_ext <<_ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18496 rm -f conftest.$ac_objext conftest$ac_exeext
18497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18498 (eval $ac_link) 2>conftest.er1
18500 grep -v '^ *+' conftest.er1 >conftest.err
18502 cat conftest.err >&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } &&
18505 { ac_try='test -z "$ac_c_werror_flag"
18506 || test ! -s conftest.err'
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; } &&
18512 { ac_try='test -s conftest$ac_exeext'
18513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514 (eval $ac_try) 2>&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; }; then
18518 ac_cv_lib_k5crypto_main=yes
18520 echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18523 ac_cv_lib_k5crypto_main=no
18525 rm -f conftest.err conftest.$ac_objext \
18526 conftest$ac_exeext conftest.$ac_ext
18527 LIBS=$ac_check_lib_save_LIBS
18529 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18530 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18531 if test $ac_cv_lib_k5crypto_main = yes; then
18532 krb5crypto=k5crypto
18538 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18539 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18540 if test "${ac_cv_lib_krb5_main+set}" = set; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18543 ac_check_lib_save_LIBS=$LIBS
18544 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18545 cat >conftest.$ac_ext <<_ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18561 rm -f conftest.$ac_objext conftest$ac_exeext
18562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18563 (eval $ac_link) 2>conftest.er1
18565 grep -v '^ *+' conftest.er1 >conftest.err
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } &&
18570 { ac_try='test -z "$ac_c_werror_flag"
18571 || test ! -s conftest.err'
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest$ac_exeext'
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 ac_cv_lib_krb5_main=yes
18585 echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18588 ac_cv_lib_krb5_main=no
18590 rm -f conftest.err conftest.$ac_objext \
18591 conftest$ac_exeext conftest.$ac_ext
18592 LIBS=$ac_check_lib_save_LIBS
18594 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18595 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18596 if test $ac_cv_lib_krb5_main = yes; then
18598 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18604 elif test $krb5_impl = heimdal; then
18605 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18606 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18607 if test "${ac_cv_lib_des_main+set}" = set; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18610 ac_check_lib_save_LIBS=$LIBS
18612 cat >conftest.$ac_ext <<_ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h. */
18628 rm -f conftest.$ac_objext conftest$ac_exeext
18629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18630 (eval $ac_link) 2>conftest.er1
18632 grep -v '^ *+' conftest.er1 >conftest.err
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
18637 { ac_try='test -z "$ac_c_werror_flag"
18638 || test ! -s conftest.err'
18639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640 (eval $ac_try) 2>&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; } &&
18644 { ac_try='test -s conftest$ac_exeext'
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_cv_lib_des_main=yes
18652 echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18655 ac_cv_lib_des_main=no
18657 rm -f conftest.err conftest.$ac_objext \
18658 conftest$ac_exeext conftest.$ac_ext
18659 LIBS=$ac_check_lib_save_LIBS
18661 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18662 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18663 if test $ac_cv_lib_des_main = yes; then
18670 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18671 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18672 if test "${ac_cv_lib_krb5_main+set}" = set; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18675 ac_check_lib_save_LIBS=$LIBS
18676 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18677 cat >conftest.$ac_ext <<_ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18695 (eval $ac_link) 2>conftest.er1
18697 grep -v '^ *+' conftest.er1 >conftest.err
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } &&
18702 { ac_try='test -z "$ac_c_werror_flag"
18703 || test ! -s conftest.err'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; } &&
18709 { ac_try='test -s conftest$ac_exeext'
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; }; then
18715 ac_cv_lib_krb5_main=yes
18717 echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18720 ac_cv_lib_krb5_main=no
18722 rm -f conftest.err conftest.$ac_objext \
18723 conftest$ac_exeext conftest.$ac_ext
18724 LIBS=$ac_check_lib_save_LIBS
18726 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18727 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18728 if test $ac_cv_lib_krb5_main = yes; then
18730 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18737 cat >>confdefs.h <<\_ACEOF
18738 #define HAVE_HEIMDAL_KERBEROS 1
18744 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18745 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18748 if test $have_krb5 = yes ; then
18752 cat >>confdefs.h <<\_ACEOF
18753 #define HAVE_KRB5 1
18757 if test $ol_with_kerberos = k5only ; then
18758 ol_with_kerberos=found
18761 elif test $ol_with_kerberos != auto ; then
18762 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18763 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18764 { (exit 1); exit 1; }; }
18771 if test $ol_link_krb5 = yes &&
18772 { test $ol_with_kerberos = yes ||
18773 test $ol_with_kerberos = auto ||
18774 test $ol_with_kerberos = k425; }; then
18778 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18782 echo "$as_me:$LINENO: checking for $ac_header" >&5
18783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18790 # Is the header compilable?
18791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18793 cat >conftest.$ac_ext <<_ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 $ac_includes_default
18800 #include <$ac_header>
18802 rm -f conftest.$ac_objext
18803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18804 (eval $ac_compile) 2>conftest.er1
18806 grep -v '^ *+' conftest.er1 >conftest.err
18808 cat conftest.err >&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } &&
18811 { ac_try='test -z "$ac_c_werror_flag"
18812 || test ! -s conftest.err'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; } &&
18818 { ac_try='test -s conftest.$ac_objext'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; }; then
18824 ac_header_compiler=yes
18826 echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18829 ac_header_compiler=no
18831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18833 echo "${ECHO_T}$ac_header_compiler" >&6
18835 # Is the header present?
18836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18838 cat >conftest.$ac_ext <<_ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h. */
18844 #include <$ac_header>
18846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18849 grep -v '^ *+' conftest.er1 >conftest.err
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } >/dev/null; then
18854 if test -s conftest.err; then
18855 ac_cpp_err=$ac_c_preproc_warn_flag
18856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18863 if test -z "$ac_cpp_err"; then
18864 ac_header_preproc=yes
18866 echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18869 ac_header_preproc=no
18871 rm -f conftest.err conftest.$ac_ext
18872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18873 echo "${ECHO_T}$ac_header_preproc" >&6
18875 # So? What about this header?
18876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18882 ac_header_preproc=yes
18885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18899 ## --------------------------------------------- ##
18900 ## Report this to <http://www.openldap.org/its/> ##
18901 ## --------------------------------------------- ##
18904 sed "s/^/$as_me: WARNING: /" >&2
18907 echo "$as_me:$LINENO: checking for $ac_header" >&5
18908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18910 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 eval "$as_ac_Header=\$ac_header_preproc"
18914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18919 cat >>confdefs.h <<_ACEOF
18920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18928 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18929 if test $krb5_impl = mit; then
18930 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18931 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18932 if test "${ac_cv_lib_krb4_main+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 ac_check_lib_save_LIBS=$LIBS
18936 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18937 cat >conftest.$ac_ext <<_ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18953 rm -f conftest.$ac_objext conftest$ac_exeext
18954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18955 (eval $ac_link) 2>conftest.er1
18957 grep -v '^ *+' conftest.er1 >conftest.err
18959 cat conftest.err >&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); } &&
18962 { ac_try='test -z "$ac_c_werror_flag"
18963 || test ! -s conftest.err'
18964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; } &&
18969 { ac_try='test -s conftest$ac_exeext'
18970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971 (eval $ac_try) 2>&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
18975 ac_cv_lib_krb4_main=yes
18977 echo "$as_me: failed program was:" >&5
18978 sed 's/^/| /' conftest.$ac_ext >&5
18980 ac_cv_lib_krb4_main=no
18982 rm -f conftest.err conftest.$ac_objext \
18983 conftest$ac_exeext conftest.$ac_ext
18984 LIBS=$ac_check_lib_save_LIBS
18986 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18987 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18988 if test $ac_cv_lib_krb4_main = yes; then
18990 KRB4_LIBS="-lkrb4 -ldes425"
18996 elif test $krb5_impl = heimdal; then
18997 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18998 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18999 if test "${ac_cv_lib_krb4_main+set}" = set; then
19000 echo $ECHO_N "(cached) $ECHO_C" >&6
19002 ac_check_lib_save_LIBS=$LIBS
19003 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
19004 cat >conftest.$ac_ext <<_ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h. */
19020 rm -f conftest.$ac_objext conftest$ac_exeext
19021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19022 (eval $ac_link) 2>conftest.er1
19024 grep -v '^ *+' conftest.er1 >conftest.err
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
19029 { ac_try='test -z "$ac_c_werror_flag"
19030 || test ! -s conftest.err'
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; } &&
19036 { ac_try='test -s conftest$ac_exeext'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 ac_cv_lib_krb4_main=yes
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_cv_lib_krb4_main=no
19049 rm -f conftest.err conftest.$ac_objext \
19050 conftest$ac_exeext conftest.$ac_ext
19051 LIBS=$ac_check_lib_save_LIBS
19053 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
19054 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
19055 if test $ac_cv_lib_krb4_main = yes; then
19065 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
19066 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
19069 if test $have_k425 = yes ; then
19070 ol_with_kerberos=found
19074 cat >>confdefs.h <<\_ACEOF
19075 #define HAVE_KRB425 1
19079 cat >>confdefs.h <<\_ACEOF
19080 #define HAVE_KRB4 1
19084 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
19085 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
19086 if test "${ol_cv_var_des_debug+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19091 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
19092 cat >conftest.$ac_ext <<_ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h. */
19099 #include <kerberosIV/krb.h>
19100 #include <kerberosIV/des.h>
19101 extern int des_debug;
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19115 (eval $ac_link) 2>conftest.er1
19117 grep -v '^ *+' conftest.er1 >conftest.err
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
19122 { ac_try='test -z "$ac_c_werror_flag"
19123 || test ! -s conftest.err'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; } &&
19129 { ac_try='test -s conftest$ac_exeext'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; }; then
19135 ol_cv_var_des_debug=yes
19137 echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19140 ol_cv_var_des_debug=no
19142 rm -f conftest.err conftest.$ac_objext \
19143 conftest$ac_exeext conftest.$ac_ext
19147 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19148 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19150 if test $ol_cv_var_des_debug = yes ; then
19152 cat >>confdefs.h <<\_ACEOF
19153 #define HAVE_DES_DEBUG 1
19163 if test $ol_link_krb5 = yes ; then
19164 ol_with_kerberos=found
19167 case $ol_with_kerberos in yes | auto | k4 | kth)
19172 for ac_header in krb.h des.h krb-archaeology.h
19174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19176 echo "$as_me:$LINENO: checking for $ac_header" >&5
19177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19179 echo $ECHO_N "(cached) $ECHO_C" >&6
19181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19184 # Is the header compilable?
19185 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19187 cat >conftest.$ac_ext <<_ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19193 $ac_includes_default
19194 #include <$ac_header>
19196 rm -f conftest.$ac_objext
19197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19198 (eval $ac_compile) 2>conftest.er1
19200 grep -v '^ *+' conftest.er1 >conftest.err
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
19205 { ac_try='test -z "$ac_c_werror_flag"
19206 || test ! -s conftest.err'
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; } &&
19212 { ac_try='test -s conftest.$ac_objext'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; }; then
19218 ac_header_compiler=yes
19220 echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19223 ac_header_compiler=no
19225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19227 echo "${ECHO_T}$ac_header_compiler" >&6
19229 # Is the header present?
19230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19232 cat >conftest.$ac_ext <<_ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 #include <$ac_header>
19240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19243 grep -v '^ *+' conftest.er1 >conftest.err
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } >/dev/null; then
19248 if test -s conftest.err; then
19249 ac_cpp_err=$ac_c_preproc_warn_flag
19250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19257 if test -z "$ac_cpp_err"; then
19258 ac_header_preproc=yes
19260 echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19263 ac_header_preproc=no
19265 rm -f conftest.err conftest.$ac_ext
19266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19267 echo "${ECHO_T}$ac_header_preproc" >&6
19269 # So? What about this header?
19270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19276 ac_header_preproc=yes
19279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19293 ## --------------------------------------------- ##
19294 ## Report this to <http://www.openldap.org/its/> ##
19295 ## --------------------------------------------- ##
19298 sed "s/^/$as_me: WARNING: /" >&2
19301 echo "$as_me:$LINENO: checking for $ac_header" >&5
19302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19306 eval "$as_ac_Header=\$ac_header_preproc"
19308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19313 cat >>confdefs.h <<_ACEOF
19314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19322 if test $ac_cv_header_krb_h = yes ; then
19323 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19324 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19325 if test "${ac_cv_lib_krb_main+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 ac_check_lib_save_LIBS=$LIBS
19329 LIBS="-lkrb -ldes $LIBS"
19330 cat >conftest.$ac_ext <<_ACEOF
19333 cat confdefs.h >>conftest.$ac_ext
19334 cat >>conftest.$ac_ext <<_ACEOF
19335 /* end confdefs.h. */
19346 rm -f conftest.$ac_objext conftest$ac_exeext
19347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19348 (eval $ac_link) 2>conftest.er1
19350 grep -v '^ *+' conftest.er1 >conftest.err
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_c_werror_flag"
19356 || test ! -s conftest.err'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest$ac_exeext'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19368 ac_cv_lib_krb_main=yes
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19373 ac_cv_lib_krb_main=no
19375 rm -f conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19379 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19380 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19381 if test $ac_cv_lib_krb_main = yes; then
19388 if test $have_k4 = yes ; then
19389 ol_with_kerberos=found
19393 cat >>confdefs.h <<\_ACEOF
19394 #define HAVE_KRB4 1
19398 KRB4_LIBS="-lkrb -ldes"
19400 if test $ac_cv_header_krb_archaeology_h = yes ; then
19402 cat >>confdefs.h <<\_ACEOF
19403 #define HAVE_KTH_KERBEROS 1
19412 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19415 elif test $ol_enable_kbind = yes ; then
19416 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19417 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19418 { (exit 1); exit 1; }; }
19421 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19423 cat >>confdefs.h <<\_ACEOF
19424 #define HAVE_KERBEROS 1
19428 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19429 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19430 echo "$as_me: error: Kerberos detection failed" >&2;}
19431 { (exit 1); exit 1; }; }
19436 if test $ol_with_tls != no ; then
19438 for ac_header in openssl/ssl.h
19440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19442 echo "$as_me:$LINENO: checking for $ac_header" >&5
19443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19450 # Is the header compilable?
19451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19453 cat >conftest.$ac_ext <<_ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19459 $ac_includes_default
19460 #include <$ac_header>
19462 rm -f conftest.$ac_objext
19463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19464 (eval $ac_compile) 2>conftest.er1
19466 grep -v '^ *+' conftest.er1 >conftest.err
19468 cat conftest.err >&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } &&
19471 { ac_try='test -z "$ac_c_werror_flag"
19472 || test ! -s conftest.err'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; } &&
19478 { ac_try='test -s conftest.$ac_objext'
19479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480 (eval $ac_try) 2>&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
19484 ac_header_compiler=yes
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19489 ac_header_compiler=no
19491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19493 echo "${ECHO_T}$ac_header_compiler" >&6
19495 # Is the header present?
19496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19498 cat >conftest.$ac_ext <<_ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h. */
19504 #include <$ac_header>
19506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19509 grep -v '^ *+' conftest.er1 >conftest.err
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } >/dev/null; then
19514 if test -s conftest.err; then
19515 ac_cpp_err=$ac_c_preproc_warn_flag
19516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19523 if test -z "$ac_cpp_err"; then
19524 ac_header_preproc=yes
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19529 ac_header_preproc=no
19531 rm -f conftest.err conftest.$ac_ext
19532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19533 echo "${ECHO_T}$ac_header_preproc" >&6
19535 # So? What about this header?
19536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19542 ac_header_preproc=yes
19545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19559 ## --------------------------------------------- ##
19560 ## Report this to <http://www.openldap.org/its/> ##
19561 ## --------------------------------------------- ##
19564 sed "s/^/$as_me: WARNING: /" >&2
19567 echo "$as_me:$LINENO: checking for $ac_header" >&5
19568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19570 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 eval "$as_ac_Header=\$ac_header_preproc"
19574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19579 cat >>confdefs.h <<_ACEOF
19580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19588 if test $ac_cv_header_openssl_ssl_h = yes ; then
19589 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19590 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19591 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 ac_check_lib_save_LIBS=$LIBS
19595 LIBS="-lssl -lcrypto $LIBS"
19596 cat >conftest.$ac_ext <<_ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19603 /* Override any gcc2 internal prototype to avoid an error. */
19607 /* We use char because int might match the return type of a gcc2
19608 builtin and then its argument prototype would still apply. */
19609 char SSL_library_init ();
19613 SSL_library_init ();
19618 rm -f conftest.$ac_objext conftest$ac_exeext
19619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19620 (eval $ac_link) 2>conftest.er1
19622 grep -v '^ *+' conftest.er1 >conftest.err
19624 cat conftest.err >&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } &&
19627 { ac_try='test -z "$ac_c_werror_flag"
19628 || test ! -s conftest.err'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try='test -s conftest$ac_exeext'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 ac_cv_lib_ssl_SSL_library_init=yes
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19645 ac_cv_lib_ssl_SSL_library_init=no
19647 rm -f conftest.err conftest.$ac_objext \
19648 conftest$ac_exeext conftest.$ac_ext
19649 LIBS=$ac_check_lib_save_LIBS
19651 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19652 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19653 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19661 if test $have_openssl = no ; then
19662 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19663 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19664 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19667 ac_check_lib_save_LIBS=$LIBS
19668 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19669 cat >conftest.$ac_ext <<_ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h. */
19676 /* Override any gcc2 internal prototype to avoid an error. */
19680 /* We use char because int might match the return type of a gcc2
19681 builtin and then its argument prototype would still apply. */
19682 char ssl3_accept ();
19691 rm -f conftest.$ac_objext conftest$ac_exeext
19692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19693 (eval $ac_link) 2>conftest.er1
19695 grep -v '^ *+' conftest.er1 >conftest.err
19697 cat conftest.err >&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } &&
19700 { ac_try='test -z "$ac_c_werror_flag"
19701 || test ! -s conftest.err'
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; } &&
19707 { ac_try='test -s conftest$ac_exeext'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19713 ac_cv_lib_ssl_ssl3_accept=yes
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_cv_lib_ssl_ssl3_accept=no
19720 rm -f conftest.err conftest.$ac_objext \
19721 conftest$ac_exeext conftest.$ac_ext
19722 LIBS=$ac_check_lib_save_LIBS
19724 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19725 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19726 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19735 if test $have_openssl = yes ; then
19740 cat >>confdefs.h <<\_ACEOF
19741 #define HAVE_OPENSSL 1
19745 if test $need_rsaref = yes; then
19747 cat >>confdefs.h <<\_ACEOF
19748 #define HAVE_RSAREF 1
19752 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19754 TLS_LIBS="-lssl -lcrypto"
19757 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19758 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19759 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19770 #ifdef HAVE_OPENSSL_SSL_H
19771 #include <openssl/ssl.h>
19776 /* Require 0.9.7d+ */
19777 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19778 char *__ssl_compat = "0.9.7d";
19782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19783 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19784 ol_cv_ssl_crl_compat=yes
19786 ol_cv_ssl_crl_compat=no
19791 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19792 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19794 if test $ol_cv_ssl_crl_compat = no ; then
19798 cat >>confdefs.h <<\_ACEOF
19799 #define HAVE_OPENSSL_CRL 1
19806 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19807 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19811 if test $ol_link_tls = yes ; then
19813 cat >>confdefs.h <<\_ACEOF
19819 elif test $ol_with_tls = auto ; then
19820 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19821 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19822 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19823 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19825 elif test $ol_with_tls != no ; then
19826 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19827 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19828 { (exit 1); exit 1; }; }
19831 if test $ol_enable_lmpasswd != no; then
19832 if test $ol_link_tls != yes ; then
19833 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19834 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19835 { (exit 1); exit 1; }; }
19839 cat >>confdefs.h <<\_ACEOF
19840 #define SLAPD_LMHASH 1
19847 case $ol_with_threads in auto | yes | nt)
19850 echo "$as_me:$LINENO: checking for _beginthread" >&5
19851 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19852 if test "${ac_cv_func__beginthread+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 cat >conftest.$ac_ext <<_ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19863 #define _beginthread innocuous__beginthread
19865 /* System header to define __stub macros and hopefully few prototypes,
19866 which can conflict with char _beginthread (); below.
19867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19868 <limits.h> exists even on freestanding compilers. */
19871 # include <limits.h>
19873 # include <assert.h>
19876 #undef _beginthread
19878 /* Override any gcc2 internal prototype to avoid an error. */
19883 /* We use char because int might match the return type of a gcc2
19884 builtin and then its argument prototype would still apply. */
19885 char _beginthread ();
19886 /* The GNU C library defines this for functions which it implements
19887 to always fail with ENOSYS. Some functions are actually named
19888 something starting with __ and the normal name is an alias. */
19889 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19892 char (*f) () = _beginthread;
19901 return f != _beginthread;
19906 rm -f conftest.$ac_objext conftest$ac_exeext
19907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19908 (eval $ac_link) 2>conftest.er1
19910 grep -v '^ *+' conftest.er1 >conftest.err
19912 cat conftest.err >&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } &&
19915 { ac_try='test -z "$ac_c_werror_flag"
19916 || test ! -s conftest.err'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; } &&
19922 { ac_try='test -s conftest$ac_exeext'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928 ac_cv_func__beginthread=yes
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19933 ac_cv_func__beginthread=no
19935 rm -f conftest.err conftest.$ac_objext \
19936 conftest$ac_exeext conftest.$ac_ext
19938 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19939 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19942 if test $ac_cv_func__beginthread = yes ; then
19944 cat >>confdefs.h <<\_ACEOF
19945 #define HAVE_NT_THREADS 1
19948 ol_cv_nt_threads=yes
19952 if test "$ol_cv_nt_threads" = yes ; then
19954 ol_with_threads=found
19955 ol_with_yielding_select=yes
19958 cat >>confdefs.h <<\_ACEOF
19959 #define HAVE_NT_SERVICE_MANAGER 1
19963 cat >>confdefs.h <<\_ACEOF
19964 #define HAVE_NT_EVENT_LOG 1
19969 if test $ol_with_threads = nt ; then
19970 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19971 echo "$as_me: error: could not locate NT Threads" >&2;}
19972 { (exit 1); exit 1; }; }
19977 case $ol_with_threads in auto | yes | posix)
19980 for ac_header in pthread.h
19982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19984 echo "$as_me:$LINENO: checking for $ac_header" >&5
19985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
19989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19992 # Is the header compilable?
19993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19995 cat >conftest.$ac_ext <<_ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20001 $ac_includes_default
20002 #include <$ac_header>
20004 rm -f conftest.$ac_objext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20006 (eval $ac_compile) 2>conftest.er1
20008 grep -v '^ *+' conftest.er1 >conftest.err
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } &&
20013 { ac_try='test -z "$ac_c_werror_flag"
20014 || test ! -s conftest.err'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; } &&
20020 { ac_try='test -s conftest.$ac_objext'
20021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022 (eval $ac_try) 2>&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); }; }; then
20026 ac_header_compiler=yes
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_header_compiler=no
20033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20035 echo "${ECHO_T}$ac_header_compiler" >&6
20037 # Is the header present?
20038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20040 cat >conftest.$ac_ext <<_ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20046 #include <$ac_header>
20048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20051 grep -v '^ *+' conftest.er1 >conftest.err
20053 cat conftest.err >&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); } >/dev/null; then
20056 if test -s conftest.err; then
20057 ac_cpp_err=$ac_c_preproc_warn_flag
20058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20065 if test -z "$ac_cpp_err"; then
20066 ac_header_preproc=yes
20068 echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20071 ac_header_preproc=no
20073 rm -f conftest.err conftest.$ac_ext
20074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20075 echo "${ECHO_T}$ac_header_preproc" >&6
20077 # So? What about this header?
20078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20084 ac_header_preproc=yes
20087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20101 ## --------------------------------------------- ##
20102 ## Report this to <http://www.openldap.org/its/> ##
20103 ## --------------------------------------------- ##
20106 sed "s/^/$as_me: WARNING: /" >&2
20109 echo "$as_me:$LINENO: checking for $ac_header" >&5
20110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20114 eval "$as_ac_Header=\$ac_header_preproc"
20116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20121 cat >>confdefs.h <<_ACEOF
20122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20130 if test $ac_cv_header_pthread_h = yes ; then
20131 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20132 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20133 if test "${ol_cv_pthread_version+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 cat >conftest.$ac_ext <<_ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h. */
20144 # include <pthread.h>
20150 int i = PTHREAD_CREATE_JOINABLE;
20156 rm -f conftest.$ac_objext
20157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20158 (eval $ac_compile) 2>conftest.er1
20160 grep -v '^ *+' conftest.er1 >conftest.err
20162 cat conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } &&
20165 { ac_try='test -z "$ac_c_werror_flag"
20166 || test ! -s conftest.err'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; } &&
20172 { ac_try='test -s conftest.$ac_objext'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20179 cat >conftest.$ac_ext <<_ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20185 #include <pthread.h>
20188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20189 $EGREP "pthread_detach" >/dev/null 2>&1; then
20190 ol_cv_pthread_version=10
20192 ol_cv_pthread_version=8
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20201 cat >conftest.$ac_ext <<_ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h. */
20208 # include <pthread.h>
20209 # ifdef PTHREAD_CREATE_UNDETACHED
20214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20215 $EGREP "draft7" >/dev/null 2>&1; then
20216 ol_cv_pthread_version=7
20219 cat >conftest.$ac_ext <<_ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20225 #include <pthread.h>
20228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20229 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20230 ol_cv_pthread_version=6
20233 cat >conftest.$ac_ext <<_ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20240 # include <pthread.h>
20241 #ifdef PTHREAD_MUTEX_INITIALIZER
20246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20247 $EGREP "draft5" >/dev/null 2>&1; then
20248 ol_cv_pthread_version=5
20250 ol_cv_pthread_version=4
20261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20264 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20265 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20268 if test $ol_cv_pthread_version != 0 ; then
20270 cat >>confdefs.h <<_ACEOF
20271 #define HAVE_PTHREADS $ol_cv_pthread_version
20275 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20276 echo "$as_me: error: unknown pthread version" >&2;}
20277 { (exit 1); exit 1; }; }
20280 # consider threads found
20281 ol_with_threads=found
20284 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20285 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20286 if test "${ol_cv_header_linux_threads+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 cat >conftest.$ac_ext <<_ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20295 #include <pthread.h>
20297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20298 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20299 ol_cv_header_linux_threads=yes
20301 ol_cv_header_linux_threads=no
20307 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20308 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20309 if test $ol_cv_header_linux_threads = yes; then
20311 cat >>confdefs.h <<\_ACEOF
20312 #define HAVE_LINUX_THREADS 1
20318 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20319 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20320 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 cat >conftest.$ac_ext <<_ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 #include <pthread.h>
20330 #ifdef _POSIX_THREAD_IS_GNU_PTH
20335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20336 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20337 ol_cv_header_gnu_pth_pthread_h=yes
20339 ol_cv_header_gnu_pth_pthread_h=no
20345 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20346 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20349 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20351 for ac_header in sched.h
20353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20355 echo "$as_me:$LINENO: checking for $ac_header" >&5
20356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20358 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20363 # Is the header compilable?
20364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20366 cat >conftest.$ac_ext <<_ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20372 $ac_includes_default
20373 #include <$ac_header>
20375 rm -f conftest.$ac_objext
20376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20377 (eval $ac_compile) 2>conftest.er1
20379 grep -v '^ *+' conftest.er1 >conftest.err
20381 cat conftest.err >&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } &&
20384 { ac_try='test -z "$ac_c_werror_flag"
20385 || test ! -s conftest.err'
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; } &&
20391 { ac_try='test -s conftest.$ac_objext'
20392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393 (eval $ac_try) 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; }; then
20397 ac_header_compiler=yes
20399 echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20402 ac_header_compiler=no
20404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20406 echo "${ECHO_T}$ac_header_compiler" >&6
20408 # Is the header present?
20409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 #include <$ac_header>
20419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20422 grep -v '^ *+' conftest.er1 >conftest.err
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } >/dev/null; then
20427 if test -s conftest.err; then
20428 ac_cpp_err=$ac_c_preproc_warn_flag
20429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20436 if test -z "$ac_cpp_err"; then
20437 ac_header_preproc=yes
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20442 ac_header_preproc=no
20444 rm -f conftest.err conftest.$ac_ext
20445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20446 echo "${ECHO_T}$ac_header_preproc" >&6
20448 # So? What about this header?
20449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20455 ac_header_preproc=yes
20458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20472 ## --------------------------------------------- ##
20473 ## Report this to <http://www.openldap.org/its/> ##
20474 ## --------------------------------------------- ##
20477 sed "s/^/$as_me: WARNING: /" >&2
20480 echo "$as_me:$LINENO: checking for $ac_header" >&5
20481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20485 eval "$as_ac_Header=\$ac_header_preproc"
20487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20492 cat >>confdefs.h <<_ACEOF
20493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20503 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20504 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20505 if test "${ol_cv_pthread_create+set}" = set; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20509 if test "$cross_compiling" = yes; then
20510 cat >conftest.$ac_ext <<_ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h. */
20517 /* pthread test headers */
20518 #include <pthread.h>
20519 #if HAVE_PTHREADS < 7
20523 #define NULL (void*)0
20526 static void *task(p)
20529 return (void *) (p == NULL);
20536 /* pthread test function */
20537 #ifndef PTHREAD_CREATE_DETACHED
20538 #define PTHREAD_CREATE_DETACHED 1
20542 int detach = PTHREAD_CREATE_DETACHED;
20544 #if HAVE_PTHREADS > 4
20545 /* Final pthreads */
20546 pthread_attr_t attr;
20548 status = pthread_attr_init(&attr);
20549 if( status ) return status;
20551 #if HAVE_PTHREADS < 7
20552 status = pthread_attr_setdetachstate(&attr, &detach);
20553 if( status < 0 ) status = errno;
20555 status = pthread_attr_setdetachstate(&attr, detach);
20557 if( status ) return status;
20558 status = pthread_create( &t, &attr, task, NULL );
20559 #if HAVE_PTHREADS < 7
20560 if( status < 0 ) status = errno;
20562 if( status ) return status;
20564 /* Draft 4 pthreads */
20565 status = pthread_create( &t, pthread_attr_default, task, NULL );
20566 if( status ) return errno;
20568 /* give thread a chance to complete */
20569 /* it should remain joinable and hence detachable */
20572 status = pthread_detach( &t );
20573 if( status ) return errno;
20576 #ifdef HAVE_LINUX_THREADS
20577 pthread_kill_other_threads_np();
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20588 (eval $ac_link) 2>conftest.er1
20590 grep -v '^ *+' conftest.er1 >conftest.err
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } &&
20595 { ac_try='test -z "$ac_c_werror_flag"
20596 || test ! -s conftest.err'
20597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598 (eval $ac_try) 2>&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; } &&
20602 { ac_try='test -s conftest$ac_exeext'
20603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20604 (eval $ac_try) 2>&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); }; }; then
20608 ol_cv_pthread_create=yes
20610 echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20613 ol_cv_pthread_create=no
20615 rm -f conftest.err conftest.$ac_objext \
20616 conftest$ac_exeext conftest.$ac_ext
20618 cat >conftest.$ac_ext <<_ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20625 /* pthread test headers */
20626 #include <pthread.h>
20627 #if HAVE_PTHREADS < 7
20631 #define NULL (void*)0
20634 static void *task(p)
20637 return (void *) (p == NULL);
20641 int main(argc, argv)
20646 /* pthread test function */
20647 #ifndef PTHREAD_CREATE_DETACHED
20648 #define PTHREAD_CREATE_DETACHED 1
20652 int detach = PTHREAD_CREATE_DETACHED;
20654 #if HAVE_PTHREADS > 4
20655 /* Final pthreads */
20656 pthread_attr_t attr;
20658 status = pthread_attr_init(&attr);
20659 if( status ) return status;
20661 #if HAVE_PTHREADS < 7
20662 status = pthread_attr_setdetachstate(&attr, &detach);
20663 if( status < 0 ) status = errno;
20665 status = pthread_attr_setdetachstate(&attr, detach);
20667 if( status ) return status;
20668 status = pthread_create( &t, &attr, task, NULL );
20669 #if HAVE_PTHREADS < 7
20670 if( status < 0 ) status = errno;
20672 if( status ) return status;
20674 /* Draft 4 pthreads */
20675 status = pthread_create( &t, pthread_attr_default, task, NULL );
20676 if( status ) return errno;
20678 /* give thread a chance to complete */
20679 /* it should remain joinable and hence detachable */
20682 status = pthread_detach( &t );
20683 if( status ) return errno;
20686 #ifdef HAVE_LINUX_THREADS
20687 pthread_kill_other_threads_np();
20695 rm -f conftest$ac_exeext
20696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20697 (eval $ac_link) 2>&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20706 ol_cv_pthread_create=yes
20708 echo "$as_me: program exited with status $ac_status" >&5
20709 echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20712 ( exit $ac_status )
20713 ol_cv_pthread_create=no
20715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20718 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20719 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20721 if test $ol_cv_pthread_create != no ; then
20722 ol_link_threads=posix
20723 ol_link_pthreads=""
20726 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20727 if test "$ol_link_threads" = no ; then
20729 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20730 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20731 if test "${ol_cv_pthread_kthread+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20737 LIBS="-kthread $LIBS"
20739 if test "$cross_compiling" = yes; then
20740 cat >conftest.$ac_ext <<_ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20747 /* pthread test headers */
20748 #include <pthread.h>
20749 #if HAVE_PTHREADS < 7
20753 #define NULL (void*)0
20756 static void *task(p)
20759 return (void *) (p == NULL);
20766 /* pthread test function */
20767 #ifndef PTHREAD_CREATE_DETACHED
20768 #define PTHREAD_CREATE_DETACHED 1
20772 int detach = PTHREAD_CREATE_DETACHED;
20774 #if HAVE_PTHREADS > 4
20775 /* Final pthreads */
20776 pthread_attr_t attr;
20778 status = pthread_attr_init(&attr);
20779 if( status ) return status;
20781 #if HAVE_PTHREADS < 7
20782 status = pthread_attr_setdetachstate(&attr, &detach);
20783 if( status < 0 ) status = errno;
20785 status = pthread_attr_setdetachstate(&attr, detach);
20787 if( status ) return status;
20788 status = pthread_create( &t, &attr, task, NULL );
20789 #if HAVE_PTHREADS < 7
20790 if( status < 0 ) status = errno;
20792 if( status ) return status;
20794 /* Draft 4 pthreads */
20795 status = pthread_create( &t, pthread_attr_default, task, NULL );
20796 if( status ) return errno;
20798 /* give thread a chance to complete */
20799 /* it should remain joinable and hence detachable */
20802 status = pthread_detach( &t );
20803 if( status ) return errno;
20806 #ifdef HAVE_LINUX_THREADS
20807 pthread_kill_other_threads_np();
20816 rm -f conftest.$ac_objext conftest$ac_exeext
20817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20818 (eval $ac_link) 2>conftest.er1
20820 grep -v '^ *+' conftest.er1 >conftest.err
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } &&
20825 { ac_try='test -z "$ac_c_werror_flag"
20826 || test ! -s conftest.err'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; } &&
20832 { ac_try='test -s conftest$ac_exeext'
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; }; then
20838 ol_cv_pthread_kthread=yes
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20843 ol_cv_pthread_kthread=no
20845 rm -f conftest.err conftest.$ac_objext \
20846 conftest$ac_exeext conftest.$ac_ext
20848 cat >conftest.$ac_ext <<_ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20855 /* pthread test headers */
20856 #include <pthread.h>
20857 #if HAVE_PTHREADS < 7
20861 #define NULL (void*)0
20864 static void *task(p)
20867 return (void *) (p == NULL);
20871 int main(argc, argv)
20876 /* pthread test function */
20877 #ifndef PTHREAD_CREATE_DETACHED
20878 #define PTHREAD_CREATE_DETACHED 1
20882 int detach = PTHREAD_CREATE_DETACHED;
20884 #if HAVE_PTHREADS > 4
20885 /* Final pthreads */
20886 pthread_attr_t attr;
20888 status = pthread_attr_init(&attr);
20889 if( status ) return status;
20891 #if HAVE_PTHREADS < 7
20892 status = pthread_attr_setdetachstate(&attr, &detach);
20893 if( status < 0 ) status = errno;
20895 status = pthread_attr_setdetachstate(&attr, detach);
20897 if( status ) return status;
20898 status = pthread_create( &t, &attr, task, NULL );
20899 #if HAVE_PTHREADS < 7
20900 if( status < 0 ) status = errno;
20902 if( status ) return status;
20904 /* Draft 4 pthreads */
20905 status = pthread_create( &t, pthread_attr_default, task, NULL );
20906 if( status ) return errno;
20908 /* give thread a chance to complete */
20909 /* it should remain joinable and hence detachable */
20912 status = pthread_detach( &t );
20913 if( status ) return errno;
20916 #ifdef HAVE_LINUX_THREADS
20917 pthread_kill_other_threads_np();
20925 rm -f conftest$ac_exeext
20926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20927 (eval $ac_link) 2>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20932 (eval $ac_try) 2>&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); }; }; then
20936 ol_cv_pthread_kthread=yes
20938 echo "$as_me: program exited with status $ac_status" >&5
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20942 ( exit $ac_status )
20943 ol_cv_pthread_kthread=no
20945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20952 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20953 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20955 if test $ol_cv_pthread_kthread = yes ; then
20956 ol_link_pthreads="-kthread"
20957 ol_link_threads=posix
20961 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20962 if test "$ol_link_threads" = no ; then
20964 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20965 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20966 if test "${ol_cv_pthread_pthread+set}" = set; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20972 LIBS="-pthread $LIBS"
20974 if test "$cross_compiling" = yes; then
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20982 /* pthread test headers */
20983 #include <pthread.h>
20984 #if HAVE_PTHREADS < 7
20988 #define NULL (void*)0
20991 static void *task(p)
20994 return (void *) (p == NULL);
21001 /* pthread test function */
21002 #ifndef PTHREAD_CREATE_DETACHED
21003 #define PTHREAD_CREATE_DETACHED 1
21007 int detach = PTHREAD_CREATE_DETACHED;
21009 #if HAVE_PTHREADS > 4
21010 /* Final pthreads */
21011 pthread_attr_t attr;
21013 status = pthread_attr_init(&attr);
21014 if( status ) return status;
21016 #if HAVE_PTHREADS < 7
21017 status = pthread_attr_setdetachstate(&attr, &detach);
21018 if( status < 0 ) status = errno;
21020 status = pthread_attr_setdetachstate(&attr, detach);
21022 if( status ) return status;
21023 status = pthread_create( &t, &attr, task, NULL );
21024 #if HAVE_PTHREADS < 7
21025 if( status < 0 ) status = errno;
21027 if( status ) return status;
21029 /* Draft 4 pthreads */
21030 status = pthread_create( &t, pthread_attr_default, task, NULL );
21031 if( status ) return errno;
21033 /* give thread a chance to complete */
21034 /* it should remain joinable and hence detachable */
21037 status = pthread_detach( &t );
21038 if( status ) return errno;
21041 #ifdef HAVE_LINUX_THREADS
21042 pthread_kill_other_threads_np();
21051 rm -f conftest.$ac_objext conftest$ac_exeext
21052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21053 (eval $ac_link) 2>conftest.er1
21055 grep -v '^ *+' conftest.er1 >conftest.err
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } &&
21060 { ac_try='test -z "$ac_c_werror_flag"
21061 || test ! -s conftest.err'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; } &&
21067 { ac_try='test -s conftest$ac_exeext'
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073 ol_cv_pthread_pthread=yes
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21078 ol_cv_pthread_pthread=no
21080 rm -f conftest.err conftest.$ac_objext \
21081 conftest$ac_exeext conftest.$ac_ext
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21090 /* pthread test headers */
21091 #include <pthread.h>
21092 #if HAVE_PTHREADS < 7
21096 #define NULL (void*)0
21099 static void *task(p)
21102 return (void *) (p == NULL);
21106 int main(argc, argv)
21111 /* pthread test function */
21112 #ifndef PTHREAD_CREATE_DETACHED
21113 #define PTHREAD_CREATE_DETACHED 1
21117 int detach = PTHREAD_CREATE_DETACHED;
21119 #if HAVE_PTHREADS > 4
21120 /* Final pthreads */
21121 pthread_attr_t attr;
21123 status = pthread_attr_init(&attr);
21124 if( status ) return status;
21126 #if HAVE_PTHREADS < 7
21127 status = pthread_attr_setdetachstate(&attr, &detach);
21128 if( status < 0 ) status = errno;
21130 status = pthread_attr_setdetachstate(&attr, detach);
21132 if( status ) return status;
21133 status = pthread_create( &t, &attr, task, NULL );
21134 #if HAVE_PTHREADS < 7
21135 if( status < 0 ) status = errno;
21137 if( status ) return status;
21139 /* Draft 4 pthreads */
21140 status = pthread_create( &t, pthread_attr_default, task, NULL );
21141 if( status ) return errno;
21143 /* give thread a chance to complete */
21144 /* it should remain joinable and hence detachable */
21147 status = pthread_detach( &t );
21148 if( status ) return errno;
21151 #ifdef HAVE_LINUX_THREADS
21152 pthread_kill_other_threads_np();
21160 rm -f conftest$ac_exeext
21161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21162 (eval $ac_link) 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; }; then
21171 ol_cv_pthread_pthread=yes
21173 echo "$as_me: program exited with status $ac_status" >&5
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 ( exit $ac_status )
21178 ol_cv_pthread_pthread=no
21180 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21187 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21188 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21190 if test $ol_cv_pthread_pthread = yes ; then
21191 ol_link_pthreads="-pthread"
21192 ol_link_threads=posix
21196 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21197 if test "$ol_link_threads" = no ; then
21199 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21200 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21201 if test "${ol_cv_pthread_pthreads+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21207 LIBS="-pthreads $LIBS"
21209 if test "$cross_compiling" = yes; then
21210 cat >conftest.$ac_ext <<_ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h. */
21217 /* pthread test headers */
21218 #include <pthread.h>
21219 #if HAVE_PTHREADS < 7
21223 #define NULL (void*)0
21226 static void *task(p)
21229 return (void *) (p == NULL);
21236 /* pthread test function */
21237 #ifndef PTHREAD_CREATE_DETACHED
21238 #define PTHREAD_CREATE_DETACHED 1
21242 int detach = PTHREAD_CREATE_DETACHED;
21244 #if HAVE_PTHREADS > 4
21245 /* Final pthreads */
21246 pthread_attr_t attr;
21248 status = pthread_attr_init(&attr);
21249 if( status ) return status;
21251 #if HAVE_PTHREADS < 7
21252 status = pthread_attr_setdetachstate(&attr, &detach);
21253 if( status < 0 ) status = errno;
21255 status = pthread_attr_setdetachstate(&attr, detach);
21257 if( status ) return status;
21258 status = pthread_create( &t, &attr, task, NULL );
21259 #if HAVE_PTHREADS < 7
21260 if( status < 0 ) status = errno;
21262 if( status ) return status;
21264 /* Draft 4 pthreads */
21265 status = pthread_create( &t, pthread_attr_default, task, NULL );
21266 if( status ) return errno;
21268 /* give thread a chance to complete */
21269 /* it should remain joinable and hence detachable */
21272 status = pthread_detach( &t );
21273 if( status ) return errno;
21276 #ifdef HAVE_LINUX_THREADS
21277 pthread_kill_other_threads_np();
21286 rm -f conftest.$ac_objext conftest$ac_exeext
21287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21288 (eval $ac_link) 2>conftest.er1
21290 grep -v '^ *+' conftest.er1 >conftest.err
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } &&
21295 { ac_try='test -z "$ac_c_werror_flag"
21296 || test ! -s conftest.err'
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; } &&
21302 { ac_try='test -s conftest$ac_exeext'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then
21308 ol_cv_pthread_pthreads=yes
21310 echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21313 ol_cv_pthread_pthreads=no
21315 rm -f conftest.err conftest.$ac_objext \
21316 conftest$ac_exeext conftest.$ac_ext
21318 cat >conftest.$ac_ext <<_ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21325 /* pthread test headers */
21326 #include <pthread.h>
21327 #if HAVE_PTHREADS < 7
21331 #define NULL (void*)0
21334 static void *task(p)
21337 return (void *) (p == NULL);
21341 int main(argc, argv)
21346 /* pthread test function */
21347 #ifndef PTHREAD_CREATE_DETACHED
21348 #define PTHREAD_CREATE_DETACHED 1
21352 int detach = PTHREAD_CREATE_DETACHED;
21354 #if HAVE_PTHREADS > 4
21355 /* Final pthreads */
21356 pthread_attr_t attr;
21358 status = pthread_attr_init(&attr);
21359 if( status ) return status;
21361 #if HAVE_PTHREADS < 7
21362 status = pthread_attr_setdetachstate(&attr, &detach);
21363 if( status < 0 ) status = errno;
21365 status = pthread_attr_setdetachstate(&attr, detach);
21367 if( status ) return status;
21368 status = pthread_create( &t, &attr, task, NULL );
21369 #if HAVE_PTHREADS < 7
21370 if( status < 0 ) status = errno;
21372 if( status ) return status;
21374 /* Draft 4 pthreads */
21375 status = pthread_create( &t, pthread_attr_default, task, NULL );
21376 if( status ) return errno;
21378 /* give thread a chance to complete */
21379 /* it should remain joinable and hence detachable */
21382 status = pthread_detach( &t );
21383 if( status ) return errno;
21386 #ifdef HAVE_LINUX_THREADS
21387 pthread_kill_other_threads_np();
21395 rm -f conftest$ac_exeext
21396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21397 (eval $ac_link) 2>&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 ol_cv_pthread_pthreads=yes
21408 echo "$as_me: program exited with status $ac_status" >&5
21409 echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21412 ( exit $ac_status )
21413 ol_cv_pthread_pthreads=no
21415 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21422 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21423 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21425 if test $ol_cv_pthread_pthreads = yes ; then
21426 ol_link_pthreads="-pthreads"
21427 ol_link_threads=posix
21431 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21432 if test "$ol_link_threads" = no ; then
21434 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21435 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21436 if test "${ol_cv_pthread_mthreads+set}" = set; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21442 LIBS="-mthreads $LIBS"
21444 if test "$cross_compiling" = yes; then
21445 cat >conftest.$ac_ext <<_ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h. */
21452 /* pthread test headers */
21453 #include <pthread.h>
21454 #if HAVE_PTHREADS < 7
21458 #define NULL (void*)0
21461 static void *task(p)
21464 return (void *) (p == NULL);
21471 /* pthread test function */
21472 #ifndef PTHREAD_CREATE_DETACHED
21473 #define PTHREAD_CREATE_DETACHED 1
21477 int detach = PTHREAD_CREATE_DETACHED;
21479 #if HAVE_PTHREADS > 4
21480 /* Final pthreads */
21481 pthread_attr_t attr;
21483 status = pthread_attr_init(&attr);
21484 if( status ) return status;
21486 #if HAVE_PTHREADS < 7
21487 status = pthread_attr_setdetachstate(&attr, &detach);
21488 if( status < 0 ) status = errno;
21490 status = pthread_attr_setdetachstate(&attr, detach);
21492 if( status ) return status;
21493 status = pthread_create( &t, &attr, task, NULL );
21494 #if HAVE_PTHREADS < 7
21495 if( status < 0 ) status = errno;
21497 if( status ) return status;
21499 /* Draft 4 pthreads */
21500 status = pthread_create( &t, pthread_attr_default, task, NULL );
21501 if( status ) return errno;
21503 /* give thread a chance to complete */
21504 /* it should remain joinable and hence detachable */
21507 status = pthread_detach( &t );
21508 if( status ) return errno;
21511 #ifdef HAVE_LINUX_THREADS
21512 pthread_kill_other_threads_np();
21521 rm -f conftest.$ac_objext conftest$ac_exeext
21522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21523 (eval $ac_link) 2>conftest.er1
21525 grep -v '^ *+' conftest.er1 >conftest.err
21527 cat conftest.err >&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } &&
21530 { ac_try='test -z "$ac_c_werror_flag"
21531 || test ! -s conftest.err'
21532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533 (eval $ac_try) 2>&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); }; } &&
21537 { ac_try='test -s conftest$ac_exeext'
21538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539 (eval $ac_try) 2>&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); }; }; then
21543 ol_cv_pthread_mthreads=yes
21545 echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.$ac_ext >&5
21548 ol_cv_pthread_mthreads=no
21550 rm -f conftest.err conftest.$ac_objext \
21551 conftest$ac_exeext conftest.$ac_ext
21553 cat >conftest.$ac_ext <<_ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21560 /* pthread test headers */
21561 #include <pthread.h>
21562 #if HAVE_PTHREADS < 7
21566 #define NULL (void*)0
21569 static void *task(p)
21572 return (void *) (p == NULL);
21576 int main(argc, argv)
21581 /* pthread test function */
21582 #ifndef PTHREAD_CREATE_DETACHED
21583 #define PTHREAD_CREATE_DETACHED 1
21587 int detach = PTHREAD_CREATE_DETACHED;
21589 #if HAVE_PTHREADS > 4
21590 /* Final pthreads */
21591 pthread_attr_t attr;
21593 status = pthread_attr_init(&attr);
21594 if( status ) return status;
21596 #if HAVE_PTHREADS < 7
21597 status = pthread_attr_setdetachstate(&attr, &detach);
21598 if( status < 0 ) status = errno;
21600 status = pthread_attr_setdetachstate(&attr, detach);
21602 if( status ) return status;
21603 status = pthread_create( &t, &attr, task, NULL );
21604 #if HAVE_PTHREADS < 7
21605 if( status < 0 ) status = errno;
21607 if( status ) return status;
21609 /* Draft 4 pthreads */
21610 status = pthread_create( &t, pthread_attr_default, task, NULL );
21611 if( status ) return errno;
21613 /* give thread a chance to complete */
21614 /* it should remain joinable and hence detachable */
21617 status = pthread_detach( &t );
21618 if( status ) return errno;
21621 #ifdef HAVE_LINUX_THREADS
21622 pthread_kill_other_threads_np();
21630 rm -f conftest$ac_exeext
21631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21632 (eval $ac_link) 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637 (eval $ac_try) 2>&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); }; }; then
21641 ol_cv_pthread_mthreads=yes
21643 echo "$as_me: program exited with status $ac_status" >&5
21644 echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21647 ( exit $ac_status )
21648 ol_cv_pthread_mthreads=no
21650 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21657 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21658 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21660 if test $ol_cv_pthread_mthreads = yes ; then
21661 ol_link_pthreads="-mthreads"
21662 ol_link_threads=posix
21666 # Pthread try link: -thread (ol_cv_pthread_thread)
21667 if test "$ol_link_threads" = no ; then
21669 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21670 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21671 if test "${ol_cv_pthread_thread+set}" = set; then
21672 echo $ECHO_N "(cached) $ECHO_C" >&6
21677 LIBS="-thread $LIBS"
21679 if test "$cross_compiling" = yes; then
21680 cat >conftest.$ac_ext <<_ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h. */
21687 /* pthread test headers */
21688 #include <pthread.h>
21689 #if HAVE_PTHREADS < 7
21693 #define NULL (void*)0
21696 static void *task(p)
21699 return (void *) (p == NULL);
21706 /* pthread test function */
21707 #ifndef PTHREAD_CREATE_DETACHED
21708 #define PTHREAD_CREATE_DETACHED 1
21712 int detach = PTHREAD_CREATE_DETACHED;
21714 #if HAVE_PTHREADS > 4
21715 /* Final pthreads */
21716 pthread_attr_t attr;
21718 status = pthread_attr_init(&attr);
21719 if( status ) return status;
21721 #if HAVE_PTHREADS < 7
21722 status = pthread_attr_setdetachstate(&attr, &detach);
21723 if( status < 0 ) status = errno;
21725 status = pthread_attr_setdetachstate(&attr, detach);
21727 if( status ) return status;
21728 status = pthread_create( &t, &attr, task, NULL );
21729 #if HAVE_PTHREADS < 7
21730 if( status < 0 ) status = errno;
21732 if( status ) return status;
21734 /* Draft 4 pthreads */
21735 status = pthread_create( &t, pthread_attr_default, task, NULL );
21736 if( status ) return errno;
21738 /* give thread a chance to complete */
21739 /* it should remain joinable and hence detachable */
21742 status = pthread_detach( &t );
21743 if( status ) return errno;
21746 #ifdef HAVE_LINUX_THREADS
21747 pthread_kill_other_threads_np();
21756 rm -f conftest.$ac_objext conftest$ac_exeext
21757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21758 (eval $ac_link) 2>conftest.er1
21760 grep -v '^ *+' conftest.er1 >conftest.err
21762 cat conftest.err >&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } &&
21765 { ac_try='test -z "$ac_c_werror_flag"
21766 || test ! -s conftest.err'
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; } &&
21772 { ac_try='test -s conftest$ac_exeext'
21773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774 (eval $ac_try) 2>&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; }; then
21778 ol_cv_pthread_thread=yes
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21783 ol_cv_pthread_thread=no
21785 rm -f conftest.err conftest.$ac_objext \
21786 conftest$ac_exeext conftest.$ac_ext
21788 cat >conftest.$ac_ext <<_ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h. */
21795 /* pthread test headers */
21796 #include <pthread.h>
21797 #if HAVE_PTHREADS < 7
21801 #define NULL (void*)0
21804 static void *task(p)
21807 return (void *) (p == NULL);
21811 int main(argc, argv)
21816 /* pthread test function */
21817 #ifndef PTHREAD_CREATE_DETACHED
21818 #define PTHREAD_CREATE_DETACHED 1
21822 int detach = PTHREAD_CREATE_DETACHED;
21824 #if HAVE_PTHREADS > 4
21825 /* Final pthreads */
21826 pthread_attr_t attr;
21828 status = pthread_attr_init(&attr);
21829 if( status ) return status;
21831 #if HAVE_PTHREADS < 7
21832 status = pthread_attr_setdetachstate(&attr, &detach);
21833 if( status < 0 ) status = errno;
21835 status = pthread_attr_setdetachstate(&attr, detach);
21837 if( status ) return status;
21838 status = pthread_create( &t, &attr, task, NULL );
21839 #if HAVE_PTHREADS < 7
21840 if( status < 0 ) status = errno;
21842 if( status ) return status;
21844 /* Draft 4 pthreads */
21845 status = pthread_create( &t, pthread_attr_default, task, NULL );
21846 if( status ) return errno;
21848 /* give thread a chance to complete */
21849 /* it should remain joinable and hence detachable */
21852 status = pthread_detach( &t );
21853 if( status ) return errno;
21856 #ifdef HAVE_LINUX_THREADS
21857 pthread_kill_other_threads_np();
21865 rm -f conftest$ac_exeext
21866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21867 (eval $ac_link) 2>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872 (eval $ac_try) 2>&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); }; }; then
21876 ol_cv_pthread_thread=yes
21878 echo "$as_me: program exited with status $ac_status" >&5
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21882 ( exit $ac_status )
21883 ol_cv_pthread_thread=no
21885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21892 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21893 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21895 if test $ol_cv_pthread_thread = yes ; then
21896 ol_link_pthreads="-thread"
21897 ol_link_threads=posix
21902 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21903 if test "$ol_link_threads" = no ; then
21904 # try -lpthread -lmach -lexc -lc_r
21905 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21906 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21907 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21908 echo $ECHO_N "(cached) $ECHO_C" >&6
21913 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21915 if test "$cross_compiling" = yes; then
21916 cat >conftest.$ac_ext <<_ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h. */
21923 /* pthread test headers */
21924 #include <pthread.h>
21925 #if HAVE_PTHREADS < 7
21929 #define NULL (void*)0
21932 static void *task(p)
21935 return (void *) (p == NULL);
21942 /* pthread test function */
21943 #ifndef PTHREAD_CREATE_DETACHED
21944 #define PTHREAD_CREATE_DETACHED 1
21948 int detach = PTHREAD_CREATE_DETACHED;
21950 #if HAVE_PTHREADS > 4
21951 /* Final pthreads */
21952 pthread_attr_t attr;
21954 status = pthread_attr_init(&attr);
21955 if( status ) return status;
21957 #if HAVE_PTHREADS < 7
21958 status = pthread_attr_setdetachstate(&attr, &detach);
21959 if( status < 0 ) status = errno;
21961 status = pthread_attr_setdetachstate(&attr, detach);
21963 if( status ) return status;
21964 status = pthread_create( &t, &attr, task, NULL );
21965 #if HAVE_PTHREADS < 7
21966 if( status < 0 ) status = errno;
21968 if( status ) return status;
21970 /* Draft 4 pthreads */
21971 status = pthread_create( &t, pthread_attr_default, task, NULL );
21972 if( status ) return errno;
21974 /* give thread a chance to complete */
21975 /* it should remain joinable and hence detachable */
21978 status = pthread_detach( &t );
21979 if( status ) return errno;
21982 #ifdef HAVE_LINUX_THREADS
21983 pthread_kill_other_threads_np();
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21994 (eval $ac_link) 2>conftest.er1
21996 grep -v '^ *+' conftest.er1 >conftest.err
21998 cat conftest.err >&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } &&
22001 { ac_try='test -z "$ac_c_werror_flag"
22002 || test ! -s conftest.err'
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; } &&
22008 { ac_try='test -s conftest$ac_exeext'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22016 echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22019 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22021 rm -f conftest.err conftest.$ac_objext \
22022 conftest$ac_exeext conftest.$ac_ext
22024 cat >conftest.$ac_ext <<_ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h. */
22031 /* pthread test headers */
22032 #include <pthread.h>
22033 #if HAVE_PTHREADS < 7
22037 #define NULL (void*)0
22040 static void *task(p)
22043 return (void *) (p == NULL);
22047 int main(argc, argv)
22052 /* pthread test function */
22053 #ifndef PTHREAD_CREATE_DETACHED
22054 #define PTHREAD_CREATE_DETACHED 1
22058 int detach = PTHREAD_CREATE_DETACHED;
22060 #if HAVE_PTHREADS > 4
22061 /* Final pthreads */
22062 pthread_attr_t attr;
22064 status = pthread_attr_init(&attr);
22065 if( status ) return status;
22067 #if HAVE_PTHREADS < 7
22068 status = pthread_attr_setdetachstate(&attr, &detach);
22069 if( status < 0 ) status = errno;
22071 status = pthread_attr_setdetachstate(&attr, detach);
22073 if( status ) return status;
22074 status = pthread_create( &t, &attr, task, NULL );
22075 #if HAVE_PTHREADS < 7
22076 if( status < 0 ) status = errno;
22078 if( status ) return status;
22080 /* Draft 4 pthreads */
22081 status = pthread_create( &t, pthread_attr_default, task, NULL );
22082 if( status ) return errno;
22084 /* give thread a chance to complete */
22085 /* it should remain joinable and hence detachable */
22088 status = pthread_detach( &t );
22089 if( status ) return errno;
22092 #ifdef HAVE_LINUX_THREADS
22093 pthread_kill_other_threads_np();
22101 rm -f conftest$ac_exeext
22102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22103 (eval $ac_link) 2>&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; }; then
22112 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22114 echo "$as_me: program exited with status $ac_status" >&5
22115 echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22118 ( exit $ac_status )
22119 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22128 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22129 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22131 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22132 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22133 ol_link_threads=posix
22137 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22138 if test "$ol_link_threads" = no ; then
22139 # try -lpthread -lmach -lexc
22140 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22141 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22142 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22143 echo $ECHO_N "(cached) $ECHO_C" >&6
22148 LIBS="-lpthread -lmach -lexc $LIBS"
22150 if test "$cross_compiling" = yes; then
22151 cat >conftest.$ac_ext <<_ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h. */
22158 /* pthread test headers */
22159 #include <pthread.h>
22160 #if HAVE_PTHREADS < 7
22164 #define NULL (void*)0
22167 static void *task(p)
22170 return (void *) (p == NULL);
22177 /* pthread test function */
22178 #ifndef PTHREAD_CREATE_DETACHED
22179 #define PTHREAD_CREATE_DETACHED 1
22183 int detach = PTHREAD_CREATE_DETACHED;
22185 #if HAVE_PTHREADS > 4
22186 /* Final pthreads */
22187 pthread_attr_t attr;
22189 status = pthread_attr_init(&attr);
22190 if( status ) return status;
22192 #if HAVE_PTHREADS < 7
22193 status = pthread_attr_setdetachstate(&attr, &detach);
22194 if( status < 0 ) status = errno;
22196 status = pthread_attr_setdetachstate(&attr, detach);
22198 if( status ) return status;
22199 status = pthread_create( &t, &attr, task, NULL );
22200 #if HAVE_PTHREADS < 7
22201 if( status < 0 ) status = errno;
22203 if( status ) return status;
22205 /* Draft 4 pthreads */
22206 status = pthread_create( &t, pthread_attr_default, task, NULL );
22207 if( status ) return errno;
22209 /* give thread a chance to complete */
22210 /* it should remain joinable and hence detachable */
22213 status = pthread_detach( &t );
22214 if( status ) return errno;
22217 #ifdef HAVE_LINUX_THREADS
22218 pthread_kill_other_threads_np();
22227 rm -f conftest.$ac_objext conftest$ac_exeext
22228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22229 (eval $ac_link) 2>conftest.er1
22231 grep -v '^ *+' conftest.er1 >conftest.err
22233 cat conftest.err >&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); } &&
22236 { ac_try='test -z "$ac_c_werror_flag"
22237 || test ! -s conftest.err'
22238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; } &&
22243 { ac_try='test -s conftest$ac_exeext'
22244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245 (eval $ac_try) 2>&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; }; then
22249 ol_cv_pthread_lpthread_lmach_lexc=yes
22251 echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 ol_cv_pthread_lpthread_lmach_lexc=no
22256 rm -f conftest.err conftest.$ac_objext \
22257 conftest$ac_exeext conftest.$ac_ext
22259 cat >conftest.$ac_ext <<_ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h. */
22266 /* pthread test headers */
22267 #include <pthread.h>
22268 #if HAVE_PTHREADS < 7
22272 #define NULL (void*)0
22275 static void *task(p)
22278 return (void *) (p == NULL);
22282 int main(argc, argv)
22287 /* pthread test function */
22288 #ifndef PTHREAD_CREATE_DETACHED
22289 #define PTHREAD_CREATE_DETACHED 1
22293 int detach = PTHREAD_CREATE_DETACHED;
22295 #if HAVE_PTHREADS > 4
22296 /* Final pthreads */
22297 pthread_attr_t attr;
22299 status = pthread_attr_init(&attr);
22300 if( status ) return status;
22302 #if HAVE_PTHREADS < 7
22303 status = pthread_attr_setdetachstate(&attr, &detach);
22304 if( status < 0 ) status = errno;
22306 status = pthread_attr_setdetachstate(&attr, detach);
22308 if( status ) return status;
22309 status = pthread_create( &t, &attr, task, NULL );
22310 #if HAVE_PTHREADS < 7
22311 if( status < 0 ) status = errno;
22313 if( status ) return status;
22315 /* Draft 4 pthreads */
22316 status = pthread_create( &t, pthread_attr_default, task, NULL );
22317 if( status ) return errno;
22319 /* give thread a chance to complete */
22320 /* it should remain joinable and hence detachable */
22323 status = pthread_detach( &t );
22324 if( status ) return errno;
22327 #ifdef HAVE_LINUX_THREADS
22328 pthread_kill_other_threads_np();
22336 rm -f conftest$ac_exeext
22337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22338 (eval $ac_link) 2>&5
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; }; then
22347 ol_cv_pthread_lpthread_lmach_lexc=yes
22349 echo "$as_me: program exited with status $ac_status" >&5
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ( exit $ac_status )
22354 ol_cv_pthread_lpthread_lmach_lexc=no
22356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22363 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22364 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22366 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22367 ol_link_pthreads="-lpthread -lmach -lexc"
22368 ol_link_threads=posix
22373 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22374 if test "$ol_link_threads" = no ; then
22375 # try -lpthread -Wl,-woff,85
22376 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22377 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22378 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22379 echo $ECHO_N "(cached) $ECHO_C" >&6
22384 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22386 if test "$cross_compiling" = yes; then
22387 cat >conftest.$ac_ext <<_ACEOF
22390 cat confdefs.h >>conftest.$ac_ext
22391 cat >>conftest.$ac_ext <<_ACEOF
22392 /* end confdefs.h. */
22394 /* pthread test headers */
22395 #include <pthread.h>
22396 #if HAVE_PTHREADS < 7
22400 #define NULL (void*)0
22403 static void *task(p)
22406 return (void *) (p == NULL);
22413 /* pthread test function */
22414 #ifndef PTHREAD_CREATE_DETACHED
22415 #define PTHREAD_CREATE_DETACHED 1
22419 int detach = PTHREAD_CREATE_DETACHED;
22421 #if HAVE_PTHREADS > 4
22422 /* Final pthreads */
22423 pthread_attr_t attr;
22425 status = pthread_attr_init(&attr);
22426 if( status ) return status;
22428 #if HAVE_PTHREADS < 7
22429 status = pthread_attr_setdetachstate(&attr, &detach);
22430 if( status < 0 ) status = errno;
22432 status = pthread_attr_setdetachstate(&attr, detach);
22434 if( status ) return status;
22435 status = pthread_create( &t, &attr, task, NULL );
22436 #if HAVE_PTHREADS < 7
22437 if( status < 0 ) status = errno;
22439 if( status ) return status;
22441 /* Draft 4 pthreads */
22442 status = pthread_create( &t, pthread_attr_default, task, NULL );
22443 if( status ) return errno;
22445 /* give thread a chance to complete */
22446 /* it should remain joinable and hence detachable */
22449 status = pthread_detach( &t );
22450 if( status ) return errno;
22453 #ifdef HAVE_LINUX_THREADS
22454 pthread_kill_other_threads_np();
22463 rm -f conftest.$ac_objext conftest$ac_exeext
22464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22465 (eval $ac_link) 2>conftest.er1
22467 grep -v '^ *+' conftest.er1 >conftest.err
22469 cat conftest.err >&5
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } &&
22472 { ac_try='test -z "$ac_c_werror_flag"
22473 || test ! -s conftest.err'
22474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475 (eval $ac_try) 2>&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest$ac_exeext'
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
22485 ol_cv_pthread_lib_lpthread_woff=yes
22487 echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22490 ol_cv_pthread_lib_lpthread_woff=no
22492 rm -f conftest.err conftest.$ac_objext \
22493 conftest$ac_exeext conftest.$ac_ext
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22502 /* pthread test headers */
22503 #include <pthread.h>
22504 #if HAVE_PTHREADS < 7
22508 #define NULL (void*)0
22511 static void *task(p)
22514 return (void *) (p == NULL);
22518 int main(argc, argv)
22523 /* pthread test function */
22524 #ifndef PTHREAD_CREATE_DETACHED
22525 #define PTHREAD_CREATE_DETACHED 1
22529 int detach = PTHREAD_CREATE_DETACHED;
22531 #if HAVE_PTHREADS > 4
22532 /* Final pthreads */
22533 pthread_attr_t attr;
22535 status = pthread_attr_init(&attr);
22536 if( status ) return status;
22538 #if HAVE_PTHREADS < 7
22539 status = pthread_attr_setdetachstate(&attr, &detach);
22540 if( status < 0 ) status = errno;
22542 status = pthread_attr_setdetachstate(&attr, detach);
22544 if( status ) return status;
22545 status = pthread_create( &t, &attr, task, NULL );
22546 #if HAVE_PTHREADS < 7
22547 if( status < 0 ) status = errno;
22549 if( status ) return status;
22551 /* Draft 4 pthreads */
22552 status = pthread_create( &t, pthread_attr_default, task, NULL );
22553 if( status ) return errno;
22555 /* give thread a chance to complete */
22556 /* it should remain joinable and hence detachable */
22559 status = pthread_detach( &t );
22560 if( status ) return errno;
22563 #ifdef HAVE_LINUX_THREADS
22564 pthread_kill_other_threads_np();
22572 rm -f conftest$ac_exeext
22573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22574 (eval $ac_link) 2>&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579 (eval $ac_try) 2>&5
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); }; }; then
22583 ol_cv_pthread_lib_lpthread_woff=yes
22585 echo "$as_me: program exited with status $ac_status" >&5
22586 echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22589 ( exit $ac_status )
22590 ol_cv_pthread_lib_lpthread_woff=no
22592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22599 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22600 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22602 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22603 ol_link_pthreads="-lpthread -Wl,-woff,85"
22604 ol_link_threads=posix
22609 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22610 if test "$ol_link_threads" = no ; then
22612 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22613 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22614 if test "${ol_cv_pthread_lpthread+set}" = set; then
22615 echo $ECHO_N "(cached) $ECHO_C" >&6
22620 LIBS="-lpthread $LIBS"
22622 if test "$cross_compiling" = yes; then
22623 cat >conftest.$ac_ext <<_ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h. */
22630 /* pthread test headers */
22631 #include <pthread.h>
22632 #if HAVE_PTHREADS < 7
22636 #define NULL (void*)0
22639 static void *task(p)
22642 return (void *) (p == NULL);
22649 /* pthread test function */
22650 #ifndef PTHREAD_CREATE_DETACHED
22651 #define PTHREAD_CREATE_DETACHED 1
22655 int detach = PTHREAD_CREATE_DETACHED;
22657 #if HAVE_PTHREADS > 4
22658 /* Final pthreads */
22659 pthread_attr_t attr;
22661 status = pthread_attr_init(&attr);
22662 if( status ) return status;
22664 #if HAVE_PTHREADS < 7
22665 status = pthread_attr_setdetachstate(&attr, &detach);
22666 if( status < 0 ) status = errno;
22668 status = pthread_attr_setdetachstate(&attr, detach);
22670 if( status ) return status;
22671 status = pthread_create( &t, &attr, task, NULL );
22672 #if HAVE_PTHREADS < 7
22673 if( status < 0 ) status = errno;
22675 if( status ) return status;
22677 /* Draft 4 pthreads */
22678 status = pthread_create( &t, pthread_attr_default, task, NULL );
22679 if( status ) return errno;
22681 /* give thread a chance to complete */
22682 /* it should remain joinable and hence detachable */
22685 status = pthread_detach( &t );
22686 if( status ) return errno;
22689 #ifdef HAVE_LINUX_THREADS
22690 pthread_kill_other_threads_np();
22699 rm -f conftest.$ac_objext conftest$ac_exeext
22700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22701 (eval $ac_link) 2>conftest.er1
22703 grep -v '^ *+' conftest.er1 >conftest.err
22705 cat conftest.err >&5
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); } &&
22708 { ac_try='test -z "$ac_c_werror_flag"
22709 || test ! -s conftest.err'
22710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711 (eval $ac_try) 2>&5
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); }; } &&
22715 { ac_try='test -s conftest$ac_exeext'
22716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717 (eval $ac_try) 2>&5
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); }; }; then
22721 ol_cv_pthread_lpthread=yes
22723 echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.$ac_ext >&5
22726 ol_cv_pthread_lpthread=no
22728 rm -f conftest.err conftest.$ac_objext \
22729 conftest$ac_exeext conftest.$ac_ext
22731 cat >conftest.$ac_ext <<_ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h. */
22738 /* pthread test headers */
22739 #include <pthread.h>
22740 #if HAVE_PTHREADS < 7
22744 #define NULL (void*)0
22747 static void *task(p)
22750 return (void *) (p == NULL);
22754 int main(argc, argv)
22759 /* pthread test function */
22760 #ifndef PTHREAD_CREATE_DETACHED
22761 #define PTHREAD_CREATE_DETACHED 1
22765 int detach = PTHREAD_CREATE_DETACHED;
22767 #if HAVE_PTHREADS > 4
22768 /* Final pthreads */
22769 pthread_attr_t attr;
22771 status = pthread_attr_init(&attr);
22772 if( status ) return status;
22774 #if HAVE_PTHREADS < 7
22775 status = pthread_attr_setdetachstate(&attr, &detach);
22776 if( status < 0 ) status = errno;
22778 status = pthread_attr_setdetachstate(&attr, detach);
22780 if( status ) return status;
22781 status = pthread_create( &t, &attr, task, NULL );
22782 #if HAVE_PTHREADS < 7
22783 if( status < 0 ) status = errno;
22785 if( status ) return status;
22787 /* Draft 4 pthreads */
22788 status = pthread_create( &t, pthread_attr_default, task, NULL );
22789 if( status ) return errno;
22791 /* give thread a chance to complete */
22792 /* it should remain joinable and hence detachable */
22795 status = pthread_detach( &t );
22796 if( status ) return errno;
22799 #ifdef HAVE_LINUX_THREADS
22800 pthread_kill_other_threads_np();
22808 rm -f conftest$ac_exeext
22809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22810 (eval $ac_link) 2>&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22815 (eval $ac_try) 2>&5
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); }; }; then
22819 ol_cv_pthread_lpthread=yes
22821 echo "$as_me: program exited with status $ac_status" >&5
22822 echo "$as_me: failed program was:" >&5
22823 sed 's/^/| /' conftest.$ac_ext >&5
22825 ( exit $ac_status )
22826 ol_cv_pthread_lpthread=no
22828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22835 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22836 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22838 if test $ol_cv_pthread_lpthread = yes ; then
22839 ol_link_pthreads="-lpthread"
22840 ol_link_threads=posix
22844 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22845 if test "$ol_link_threads" = no ; then
22847 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22848 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22849 if test "${ol_cv_pthread_lc_r+set}" = set; then
22850 echo $ECHO_N "(cached) $ECHO_C" >&6
22857 if test "$cross_compiling" = yes; then
22858 cat >conftest.$ac_ext <<_ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h. */
22865 /* pthread test headers */
22866 #include <pthread.h>
22867 #if HAVE_PTHREADS < 7
22871 #define NULL (void*)0
22874 static void *task(p)
22877 return (void *) (p == NULL);
22884 /* pthread test function */
22885 #ifndef PTHREAD_CREATE_DETACHED
22886 #define PTHREAD_CREATE_DETACHED 1
22890 int detach = PTHREAD_CREATE_DETACHED;
22892 #if HAVE_PTHREADS > 4
22893 /* Final pthreads */
22894 pthread_attr_t attr;
22896 status = pthread_attr_init(&attr);
22897 if( status ) return status;
22899 #if HAVE_PTHREADS < 7
22900 status = pthread_attr_setdetachstate(&attr, &detach);
22901 if( status < 0 ) status = errno;
22903 status = pthread_attr_setdetachstate(&attr, detach);
22905 if( status ) return status;
22906 status = pthread_create( &t, &attr, task, NULL );
22907 #if HAVE_PTHREADS < 7
22908 if( status < 0 ) status = errno;
22910 if( status ) return status;
22912 /* Draft 4 pthreads */
22913 status = pthread_create( &t, pthread_attr_default, task, NULL );
22914 if( status ) return errno;
22916 /* give thread a chance to complete */
22917 /* it should remain joinable and hence detachable */
22920 status = pthread_detach( &t );
22921 if( status ) return errno;
22924 #ifdef HAVE_LINUX_THREADS
22925 pthread_kill_other_threads_np();
22934 rm -f conftest.$ac_objext conftest$ac_exeext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22936 (eval $ac_link) 2>conftest.er1
22938 grep -v '^ *+' conftest.er1 >conftest.err
22940 cat conftest.err >&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } &&
22943 { ac_try='test -z "$ac_c_werror_flag"
22944 || test ! -s conftest.err'
22945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22946 (eval $ac_try) 2>&5
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); }; } &&
22950 { ac_try='test -s conftest$ac_exeext'
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; }; then
22956 ol_cv_pthread_lc_r=yes
22958 echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22961 ol_cv_pthread_lc_r=no
22963 rm -f conftest.err conftest.$ac_objext \
22964 conftest$ac_exeext conftest.$ac_ext
22966 cat >conftest.$ac_ext <<_ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h. */
22973 /* pthread test headers */
22974 #include <pthread.h>
22975 #if HAVE_PTHREADS < 7
22979 #define NULL (void*)0
22982 static void *task(p)
22985 return (void *) (p == NULL);
22989 int main(argc, argv)
22994 /* pthread test function */
22995 #ifndef PTHREAD_CREATE_DETACHED
22996 #define PTHREAD_CREATE_DETACHED 1
23000 int detach = PTHREAD_CREATE_DETACHED;
23002 #if HAVE_PTHREADS > 4
23003 /* Final pthreads */
23004 pthread_attr_t attr;
23006 status = pthread_attr_init(&attr);
23007 if( status ) return status;
23009 #if HAVE_PTHREADS < 7
23010 status = pthread_attr_setdetachstate(&attr, &detach);
23011 if( status < 0 ) status = errno;
23013 status = pthread_attr_setdetachstate(&attr, detach);
23015 if( status ) return status;
23016 status = pthread_create( &t, &attr, task, NULL );
23017 #if HAVE_PTHREADS < 7
23018 if( status < 0 ) status = errno;
23020 if( status ) return status;
23022 /* Draft 4 pthreads */
23023 status = pthread_create( &t, pthread_attr_default, task, NULL );
23024 if( status ) return errno;
23026 /* give thread a chance to complete */
23027 /* it should remain joinable and hence detachable */
23030 status = pthread_detach( &t );
23031 if( status ) return errno;
23034 #ifdef HAVE_LINUX_THREADS
23035 pthread_kill_other_threads_np();
23043 rm -f conftest$ac_exeext
23044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23045 (eval $ac_link) 2>&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050 (eval $ac_try) 2>&5
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }; }; then
23054 ol_cv_pthread_lc_r=yes
23056 echo "$as_me: program exited with status $ac_status" >&5
23057 echo "$as_me: failed program was:" >&5
23058 sed 's/^/| /' conftest.$ac_ext >&5
23060 ( exit $ac_status )
23061 ol_cv_pthread_lc_r=no
23063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23070 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23071 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23073 if test $ol_cv_pthread_lc_r = yes ; then
23074 ol_link_pthreads="-lc_r"
23075 ol_link_threads=posix
23080 # Pthread try link: -threads (ol_cv_pthread_threads)
23081 if test "$ol_link_threads" = no ; then
23083 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23084 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23085 if test "${ol_cv_pthread_threads+set}" = set; then
23086 echo $ECHO_N "(cached) $ECHO_C" >&6
23091 LIBS="-threads $LIBS"
23093 if test "$cross_compiling" = yes; then
23094 cat >conftest.$ac_ext <<_ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h. */
23101 /* pthread test headers */
23102 #include <pthread.h>
23103 #if HAVE_PTHREADS < 7
23107 #define NULL (void*)0
23110 static void *task(p)
23113 return (void *) (p == NULL);
23120 /* pthread test function */
23121 #ifndef PTHREAD_CREATE_DETACHED
23122 #define PTHREAD_CREATE_DETACHED 1
23126 int detach = PTHREAD_CREATE_DETACHED;
23128 #if HAVE_PTHREADS > 4
23129 /* Final pthreads */
23130 pthread_attr_t attr;
23132 status = pthread_attr_init(&attr);
23133 if( status ) return status;
23135 #if HAVE_PTHREADS < 7
23136 status = pthread_attr_setdetachstate(&attr, &detach);
23137 if( status < 0 ) status = errno;
23139 status = pthread_attr_setdetachstate(&attr, detach);
23141 if( status ) return status;
23142 status = pthread_create( &t, &attr, task, NULL );
23143 #if HAVE_PTHREADS < 7
23144 if( status < 0 ) status = errno;
23146 if( status ) return status;
23148 /* Draft 4 pthreads */
23149 status = pthread_create( &t, pthread_attr_default, task, NULL );
23150 if( status ) return errno;
23152 /* give thread a chance to complete */
23153 /* it should remain joinable and hence detachable */
23156 status = pthread_detach( &t );
23157 if( status ) return errno;
23160 #ifdef HAVE_LINUX_THREADS
23161 pthread_kill_other_threads_np();
23170 rm -f conftest.$ac_objext conftest$ac_exeext
23171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23172 (eval $ac_link) 2>conftest.er1
23174 grep -v '^ *+' conftest.er1 >conftest.err
23176 cat conftest.err >&5
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } &&
23179 { ac_try='test -z "$ac_c_werror_flag"
23180 || test ! -s conftest.err'
23181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23182 (eval $ac_try) 2>&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); }; } &&
23186 { ac_try='test -s conftest$ac_exeext'
23187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188 (eval $ac_try) 2>&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); }; }; then
23192 ol_cv_pthread_threads=yes
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23197 ol_cv_pthread_threads=no
23199 rm -f conftest.err conftest.$ac_objext \
23200 conftest$ac_exeext conftest.$ac_ext
23202 cat >conftest.$ac_ext <<_ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h. */
23209 /* pthread test headers */
23210 #include <pthread.h>
23211 #if HAVE_PTHREADS < 7
23215 #define NULL (void*)0
23218 static void *task(p)
23221 return (void *) (p == NULL);
23225 int main(argc, argv)
23230 /* pthread test function */
23231 #ifndef PTHREAD_CREATE_DETACHED
23232 #define PTHREAD_CREATE_DETACHED 1
23236 int detach = PTHREAD_CREATE_DETACHED;
23238 #if HAVE_PTHREADS > 4
23239 /* Final pthreads */
23240 pthread_attr_t attr;
23242 status = pthread_attr_init(&attr);
23243 if( status ) return status;
23245 #if HAVE_PTHREADS < 7
23246 status = pthread_attr_setdetachstate(&attr, &detach);
23247 if( status < 0 ) status = errno;
23249 status = pthread_attr_setdetachstate(&attr, detach);
23251 if( status ) return status;
23252 status = pthread_create( &t, &attr, task, NULL );
23253 #if HAVE_PTHREADS < 7
23254 if( status < 0 ) status = errno;
23256 if( status ) return status;
23258 /* Draft 4 pthreads */
23259 status = pthread_create( &t, pthread_attr_default, task, NULL );
23260 if( status ) return errno;
23262 /* give thread a chance to complete */
23263 /* it should remain joinable and hence detachable */
23266 status = pthread_detach( &t );
23267 if( status ) return errno;
23270 #ifdef HAVE_LINUX_THREADS
23271 pthread_kill_other_threads_np();
23279 rm -f conftest$ac_exeext
23280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23281 (eval $ac_link) 2>&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; }; then
23290 ol_cv_pthread_threads=yes
23292 echo "$as_me: program exited with status $ac_status" >&5
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 ( exit $ac_status )
23297 ol_cv_pthread_threads=no
23299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23306 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23307 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23309 if test $ol_cv_pthread_threads = yes ; then
23310 ol_link_pthreads="-threads"
23311 ol_link_threads=posix
23316 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23317 if test "$ol_link_threads" = no ; then
23318 # try -lpthreads -lmach -lexc -lc_r
23319 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23320 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23321 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23322 echo $ECHO_N "(cached) $ECHO_C" >&6
23327 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23329 if test "$cross_compiling" = yes; then
23330 cat >conftest.$ac_ext <<_ACEOF
23333 cat confdefs.h >>conftest.$ac_ext
23334 cat >>conftest.$ac_ext <<_ACEOF
23335 /* end confdefs.h. */
23337 /* pthread test headers */
23338 #include <pthread.h>
23339 #if HAVE_PTHREADS < 7
23343 #define NULL (void*)0
23346 static void *task(p)
23349 return (void *) (p == NULL);
23356 /* pthread test function */
23357 #ifndef PTHREAD_CREATE_DETACHED
23358 #define PTHREAD_CREATE_DETACHED 1
23362 int detach = PTHREAD_CREATE_DETACHED;
23364 #if HAVE_PTHREADS > 4
23365 /* Final pthreads */
23366 pthread_attr_t attr;
23368 status = pthread_attr_init(&attr);
23369 if( status ) return status;
23371 #if HAVE_PTHREADS < 7
23372 status = pthread_attr_setdetachstate(&attr, &detach);
23373 if( status < 0 ) status = errno;
23375 status = pthread_attr_setdetachstate(&attr, detach);
23377 if( status ) return status;
23378 status = pthread_create( &t, &attr, task, NULL );
23379 #if HAVE_PTHREADS < 7
23380 if( status < 0 ) status = errno;
23382 if( status ) return status;
23384 /* Draft 4 pthreads */
23385 status = pthread_create( &t, pthread_attr_default, task, NULL );
23386 if( status ) return errno;
23388 /* give thread a chance to complete */
23389 /* it should remain joinable and hence detachable */
23392 status = pthread_detach( &t );
23393 if( status ) return errno;
23396 #ifdef HAVE_LINUX_THREADS
23397 pthread_kill_other_threads_np();
23406 rm -f conftest.$ac_objext conftest$ac_exeext
23407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23408 (eval $ac_link) 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } &&
23415 { ac_try='test -z "$ac_c_werror_flag"
23416 || test ! -s conftest.err'
23417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418 (eval $ac_try) 2>&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); }; } &&
23422 { ac_try='test -s conftest$ac_exeext'
23423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424 (eval $ac_try) 2>&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); }; }; then
23428 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23433 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23435 rm -f conftest.err conftest.$ac_objext \
23436 conftest$ac_exeext conftest.$ac_ext
23438 cat >conftest.$ac_ext <<_ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23445 /* pthread test headers */
23446 #include <pthread.h>
23447 #if HAVE_PTHREADS < 7
23451 #define NULL (void*)0
23454 static void *task(p)
23457 return (void *) (p == NULL);
23461 int main(argc, argv)
23466 /* pthread test function */
23467 #ifndef PTHREAD_CREATE_DETACHED
23468 #define PTHREAD_CREATE_DETACHED 1
23472 int detach = PTHREAD_CREATE_DETACHED;
23474 #if HAVE_PTHREADS > 4
23475 /* Final pthreads */
23476 pthread_attr_t attr;
23478 status = pthread_attr_init(&attr);
23479 if( status ) return status;
23481 #if HAVE_PTHREADS < 7
23482 status = pthread_attr_setdetachstate(&attr, &detach);
23483 if( status < 0 ) status = errno;
23485 status = pthread_attr_setdetachstate(&attr, detach);
23487 if( status ) return status;
23488 status = pthread_create( &t, &attr, task, NULL );
23489 #if HAVE_PTHREADS < 7
23490 if( status < 0 ) status = errno;
23492 if( status ) return status;
23494 /* Draft 4 pthreads */
23495 status = pthread_create( &t, pthread_attr_default, task, NULL );
23496 if( status ) return errno;
23498 /* give thread a chance to complete */
23499 /* it should remain joinable and hence detachable */
23502 status = pthread_detach( &t );
23503 if( status ) return errno;
23506 #ifdef HAVE_LINUX_THREADS
23507 pthread_kill_other_threads_np();
23515 rm -f conftest$ac_exeext
23516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23517 (eval $ac_link) 2>&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522 (eval $ac_try) 2>&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); }; }; then
23526 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23528 echo "$as_me: program exited with status $ac_status" >&5
23529 echo "$as_me: failed program was:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23532 ( exit $ac_status )
23533 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23542 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23543 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23545 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23546 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23547 ol_link_threads=posix
23551 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23552 if test "$ol_link_threads" = no ; then
23553 # try -lpthreads -lmach -lexc
23554 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23555 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23556 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23562 LIBS="-lpthreads -lmach -lexc $LIBS"
23564 if test "$cross_compiling" = yes; then
23565 cat >conftest.$ac_ext <<_ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23572 /* pthread test headers */
23573 #include <pthread.h>
23574 #if HAVE_PTHREADS < 7
23578 #define NULL (void*)0
23581 static void *task(p)
23584 return (void *) (p == NULL);
23591 /* pthread test function */
23592 #ifndef PTHREAD_CREATE_DETACHED
23593 #define PTHREAD_CREATE_DETACHED 1
23597 int detach = PTHREAD_CREATE_DETACHED;
23599 #if HAVE_PTHREADS > 4
23600 /* Final pthreads */
23601 pthread_attr_t attr;
23603 status = pthread_attr_init(&attr);
23604 if( status ) return status;
23606 #if HAVE_PTHREADS < 7
23607 status = pthread_attr_setdetachstate(&attr, &detach);
23608 if( status < 0 ) status = errno;
23610 status = pthread_attr_setdetachstate(&attr, detach);
23612 if( status ) return status;
23613 status = pthread_create( &t, &attr, task, NULL );
23614 #if HAVE_PTHREADS < 7
23615 if( status < 0 ) status = errno;
23617 if( status ) return status;
23619 /* Draft 4 pthreads */
23620 status = pthread_create( &t, pthread_attr_default, task, NULL );
23621 if( status ) return errno;
23623 /* give thread a chance to complete */
23624 /* it should remain joinable and hence detachable */
23627 status = pthread_detach( &t );
23628 if( status ) return errno;
23631 #ifdef HAVE_LINUX_THREADS
23632 pthread_kill_other_threads_np();
23641 rm -f conftest.$ac_objext conftest$ac_exeext
23642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23643 (eval $ac_link) 2>conftest.er1
23645 grep -v '^ *+' conftest.er1 >conftest.err
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } &&
23650 { ac_try='test -z "$ac_c_werror_flag"
23651 || test ! -s conftest.err'
23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; } &&
23657 { ac_try='test -s conftest$ac_exeext'
23658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); }; }; then
23663 ol_cv_pthread_lpthreads_lmach_lexc=yes
23665 echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23668 ol_cv_pthread_lpthreads_lmach_lexc=no
23670 rm -f conftest.err conftest.$ac_objext \
23671 conftest$ac_exeext conftest.$ac_ext
23673 cat >conftest.$ac_ext <<_ACEOF
23676 cat confdefs.h >>conftest.$ac_ext
23677 cat >>conftest.$ac_ext <<_ACEOF
23678 /* end confdefs.h. */
23680 /* pthread test headers */
23681 #include <pthread.h>
23682 #if HAVE_PTHREADS < 7
23686 #define NULL (void*)0
23689 static void *task(p)
23692 return (void *) (p == NULL);
23696 int main(argc, argv)
23701 /* pthread test function */
23702 #ifndef PTHREAD_CREATE_DETACHED
23703 #define PTHREAD_CREATE_DETACHED 1
23707 int detach = PTHREAD_CREATE_DETACHED;
23709 #if HAVE_PTHREADS > 4
23710 /* Final pthreads */
23711 pthread_attr_t attr;
23713 status = pthread_attr_init(&attr);
23714 if( status ) return status;
23716 #if HAVE_PTHREADS < 7
23717 status = pthread_attr_setdetachstate(&attr, &detach);
23718 if( status < 0 ) status = errno;
23720 status = pthread_attr_setdetachstate(&attr, detach);
23722 if( status ) return status;
23723 status = pthread_create( &t, &attr, task, NULL );
23724 #if HAVE_PTHREADS < 7
23725 if( status < 0 ) status = errno;
23727 if( status ) return status;
23729 /* Draft 4 pthreads */
23730 status = pthread_create( &t, pthread_attr_default, task, NULL );
23731 if( status ) return errno;
23733 /* give thread a chance to complete */
23734 /* it should remain joinable and hence detachable */
23737 status = pthread_detach( &t );
23738 if( status ) return errno;
23741 #ifdef HAVE_LINUX_THREADS
23742 pthread_kill_other_threads_np();
23750 rm -f conftest$ac_exeext
23751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23752 (eval $ac_link) 2>&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757 (eval $ac_try) 2>&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; }; then
23761 ol_cv_pthread_lpthreads_lmach_lexc=yes
23763 echo "$as_me: program exited with status $ac_status" >&5
23764 echo "$as_me: failed program was:" >&5
23765 sed 's/^/| /' conftest.$ac_ext >&5
23767 ( exit $ac_status )
23768 ol_cv_pthread_lpthreads_lmach_lexc=no
23770 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23777 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23778 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23780 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23781 ol_link_pthreads="-lpthreads -lmach -lexc"
23782 ol_link_threads=posix
23786 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23787 if test "$ol_link_threads" = no ; then
23788 # try -lpthreads -lexc
23789 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23790 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23791 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23797 LIBS="-lpthreads -lexc $LIBS"
23799 if test "$cross_compiling" = yes; then
23800 cat >conftest.$ac_ext <<_ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h. */
23807 /* pthread test headers */
23808 #include <pthread.h>
23809 #if HAVE_PTHREADS < 7
23813 #define NULL (void*)0
23816 static void *task(p)
23819 return (void *) (p == NULL);
23826 /* pthread test function */
23827 #ifndef PTHREAD_CREATE_DETACHED
23828 #define PTHREAD_CREATE_DETACHED 1
23832 int detach = PTHREAD_CREATE_DETACHED;
23834 #if HAVE_PTHREADS > 4
23835 /* Final pthreads */
23836 pthread_attr_t attr;
23838 status = pthread_attr_init(&attr);
23839 if( status ) return status;
23841 #if HAVE_PTHREADS < 7
23842 status = pthread_attr_setdetachstate(&attr, &detach);
23843 if( status < 0 ) status = errno;
23845 status = pthread_attr_setdetachstate(&attr, detach);
23847 if( status ) return status;
23848 status = pthread_create( &t, &attr, task, NULL );
23849 #if HAVE_PTHREADS < 7
23850 if( status < 0 ) status = errno;
23852 if( status ) return status;
23854 /* Draft 4 pthreads */
23855 status = pthread_create( &t, pthread_attr_default, task, NULL );
23856 if( status ) return errno;
23858 /* give thread a chance to complete */
23859 /* it should remain joinable and hence detachable */
23862 status = pthread_detach( &t );
23863 if( status ) return errno;
23866 #ifdef HAVE_LINUX_THREADS
23867 pthread_kill_other_threads_np();
23876 rm -f conftest.$ac_objext conftest$ac_exeext
23877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23878 (eval $ac_link) 2>conftest.er1
23880 grep -v '^ *+' conftest.er1 >conftest.err
23882 cat conftest.err >&5
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } &&
23885 { ac_try='test -z "$ac_c_werror_flag"
23886 || test ! -s conftest.err'
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; } &&
23892 { ac_try='test -s conftest$ac_exeext'
23893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894 (eval $ac_try) 2>&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); }; }; then
23898 ol_cv_pthread_lpthreads_lexc=yes
23900 echo "$as_me: failed program was:" >&5
23901 sed 's/^/| /' conftest.$ac_ext >&5
23903 ol_cv_pthread_lpthreads_lexc=no
23905 rm -f conftest.err conftest.$ac_objext \
23906 conftest$ac_exeext conftest.$ac_ext
23908 cat >conftest.$ac_ext <<_ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23915 /* pthread test headers */
23916 #include <pthread.h>
23917 #if HAVE_PTHREADS < 7
23921 #define NULL (void*)0
23924 static void *task(p)
23927 return (void *) (p == NULL);
23931 int main(argc, argv)
23936 /* pthread test function */
23937 #ifndef PTHREAD_CREATE_DETACHED
23938 #define PTHREAD_CREATE_DETACHED 1
23942 int detach = PTHREAD_CREATE_DETACHED;
23944 #if HAVE_PTHREADS > 4
23945 /* Final pthreads */
23946 pthread_attr_t attr;
23948 status = pthread_attr_init(&attr);
23949 if( status ) return status;
23951 #if HAVE_PTHREADS < 7
23952 status = pthread_attr_setdetachstate(&attr, &detach);
23953 if( status < 0 ) status = errno;
23955 status = pthread_attr_setdetachstate(&attr, detach);
23957 if( status ) return status;
23958 status = pthread_create( &t, &attr, task, NULL );
23959 #if HAVE_PTHREADS < 7
23960 if( status < 0 ) status = errno;
23962 if( status ) return status;
23964 /* Draft 4 pthreads */
23965 status = pthread_create( &t, pthread_attr_default, task, NULL );
23966 if( status ) return errno;
23968 /* give thread a chance to complete */
23969 /* it should remain joinable and hence detachable */
23972 status = pthread_detach( &t );
23973 if( status ) return errno;
23976 #ifdef HAVE_LINUX_THREADS
23977 pthread_kill_other_threads_np();
23985 rm -f conftest$ac_exeext
23986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23987 (eval $ac_link) 2>&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992 (eval $ac_try) 2>&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); }; }; then
23996 ol_cv_pthread_lpthreads_lexc=yes
23998 echo "$as_me: program exited with status $ac_status" >&5
23999 echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24002 ( exit $ac_status )
24003 ol_cv_pthread_lpthreads_lexc=no
24005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24012 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24013 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
24015 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24016 ol_link_pthreads="-lpthreads -lexc"
24017 ol_link_threads=posix
24022 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24023 if test "$ol_link_threads" = no ; then
24025 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24026 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
24027 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24028 echo $ECHO_N "(cached) $ECHO_C" >&6
24033 LIBS="-lpthreads $LIBS"
24035 if test "$cross_compiling" = yes; then
24036 cat >conftest.$ac_ext <<_ACEOF
24039 cat confdefs.h >>conftest.$ac_ext
24040 cat >>conftest.$ac_ext <<_ACEOF
24041 /* end confdefs.h. */
24043 /* pthread test headers */
24044 #include <pthread.h>
24045 #if HAVE_PTHREADS < 7
24049 #define NULL (void*)0
24052 static void *task(p)
24055 return (void *) (p == NULL);
24062 /* pthread test function */
24063 #ifndef PTHREAD_CREATE_DETACHED
24064 #define PTHREAD_CREATE_DETACHED 1
24068 int detach = PTHREAD_CREATE_DETACHED;
24070 #if HAVE_PTHREADS > 4
24071 /* Final pthreads */
24072 pthread_attr_t attr;
24074 status = pthread_attr_init(&attr);
24075 if( status ) return status;
24077 #if HAVE_PTHREADS < 7
24078 status = pthread_attr_setdetachstate(&attr, &detach);
24079 if( status < 0 ) status = errno;
24081 status = pthread_attr_setdetachstate(&attr, detach);
24083 if( status ) return status;
24084 status = pthread_create( &t, &attr, task, NULL );
24085 #if HAVE_PTHREADS < 7
24086 if( status < 0 ) status = errno;
24088 if( status ) return status;
24090 /* Draft 4 pthreads */
24091 status = pthread_create( &t, pthread_attr_default, task, NULL );
24092 if( status ) return errno;
24094 /* give thread a chance to complete */
24095 /* it should remain joinable and hence detachable */
24098 status = pthread_detach( &t );
24099 if( status ) return errno;
24102 #ifdef HAVE_LINUX_THREADS
24103 pthread_kill_other_threads_np();
24112 rm -f conftest.$ac_objext conftest$ac_exeext
24113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24114 (eval $ac_link) 2>conftest.er1
24116 grep -v '^ *+' conftest.er1 >conftest.err
24118 cat conftest.err >&5
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); } &&
24121 { ac_try='test -z "$ac_c_werror_flag"
24122 || test ! -s conftest.err'
24123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124 (eval $ac_try) 2>&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); }; } &&
24128 { ac_try='test -s conftest$ac_exeext'
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; }; then
24134 ol_cv_pthread_lib_lpthreads=yes
24136 echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24139 ol_cv_pthread_lib_lpthreads=no
24141 rm -f conftest.err conftest.$ac_objext \
24142 conftest$ac_exeext conftest.$ac_ext
24144 cat >conftest.$ac_ext <<_ACEOF
24147 cat confdefs.h >>conftest.$ac_ext
24148 cat >>conftest.$ac_ext <<_ACEOF
24149 /* end confdefs.h. */
24151 /* pthread test headers */
24152 #include <pthread.h>
24153 #if HAVE_PTHREADS < 7
24157 #define NULL (void*)0
24160 static void *task(p)
24163 return (void *) (p == NULL);
24167 int main(argc, argv)
24172 /* pthread test function */
24173 #ifndef PTHREAD_CREATE_DETACHED
24174 #define PTHREAD_CREATE_DETACHED 1
24178 int detach = PTHREAD_CREATE_DETACHED;
24180 #if HAVE_PTHREADS > 4
24181 /* Final pthreads */
24182 pthread_attr_t attr;
24184 status = pthread_attr_init(&attr);
24185 if( status ) return status;
24187 #if HAVE_PTHREADS < 7
24188 status = pthread_attr_setdetachstate(&attr, &detach);
24189 if( status < 0 ) status = errno;
24191 status = pthread_attr_setdetachstate(&attr, detach);
24193 if( status ) return status;
24194 status = pthread_create( &t, &attr, task, NULL );
24195 #if HAVE_PTHREADS < 7
24196 if( status < 0 ) status = errno;
24198 if( status ) return status;
24200 /* Draft 4 pthreads */
24201 status = pthread_create( &t, pthread_attr_default, task, NULL );
24202 if( status ) return errno;
24204 /* give thread a chance to complete */
24205 /* it should remain joinable and hence detachable */
24208 status = pthread_detach( &t );
24209 if( status ) return errno;
24212 #ifdef HAVE_LINUX_THREADS
24213 pthread_kill_other_threads_np();
24221 rm -f conftest$ac_exeext
24222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24223 (eval $ac_link) 2>&5
24225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24228 (eval $ac_try) 2>&5
24230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231 (exit $ac_status); }; }; then
24232 ol_cv_pthread_lib_lpthreads=yes
24234 echo "$as_me: program exited with status $ac_status" >&5
24235 echo "$as_me: failed program was:" >&5
24236 sed 's/^/| /' conftest.$ac_ext >&5
24238 ( exit $ac_status )
24239 ol_cv_pthread_lib_lpthreads=no
24241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24248 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24249 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24251 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24252 ol_link_pthreads="-lpthreads"
24253 ol_link_threads=posix
24258 if test $ol_link_threads != no ; then
24259 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24261 save_CPPFLAGS="$CPPFLAGS"
24263 LIBS="$LTHREAD_LIBS $LIBS"
24268 for ac_func in sched_yield pthread_yield thr_yield
24270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24271 echo "$as_me:$LINENO: checking for $ac_func" >&5
24272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24273 if eval "test \"\${$as_ac_var+set}\" = set"; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24276 cat >conftest.$ac_ext <<_ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h. */
24282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24284 #define $ac_func innocuous_$ac_func
24286 /* System header to define __stub macros and hopefully few prototypes,
24287 which can conflict with char $ac_func (); below.
24288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24289 <limits.h> exists even on freestanding compilers. */
24292 # include <limits.h>
24294 # include <assert.h>
24299 /* Override any gcc2 internal prototype to avoid an error. */
24304 /* We use char because int might match the return type of a gcc2
24305 builtin and then its argument prototype would still apply. */
24307 /* The GNU C library defines this for functions which it implements
24308 to always fail with ENOSYS. Some functions are actually named
24309 something starting with __ and the normal name is an alias. */
24310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24313 char (*f) () = $ac_func;
24322 return f != $ac_func;
24327 rm -f conftest.$ac_objext conftest$ac_exeext
24328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24329 (eval $ac_link) 2>conftest.er1
24331 grep -v '^ *+' conftest.er1 >conftest.err
24333 cat conftest.err >&5
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } &&
24336 { ac_try='test -z "$ac_c_werror_flag"
24337 || test ! -s conftest.err'
24338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24339 (eval $ac_try) 2>&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); }; } &&
24343 { ac_try='test -s conftest$ac_exeext'
24344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345 (eval $ac_try) 2>&5
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); }; }; then
24349 eval "$as_ac_var=yes"
24351 echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.$ac_ext >&5
24354 eval "$as_ac_var=no"
24356 rm -f conftest.err conftest.$ac_objext \
24357 conftest$ac_exeext conftest.$ac_ext
24359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24361 if test `eval echo '${'$as_ac_var'}'` = yes; then
24362 cat >>confdefs.h <<_ACEOF
24363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24370 if test $ac_cv_func_sched_yield = no &&
24371 test $ac_cv_func_pthread_yield = no &&
24372 test $ac_cv_func_thr_yield = no ; then
24373 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24374 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24375 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24376 echo $ECHO_N "(cached) $ECHO_C" >&6
24378 ac_check_lib_save_LIBS=$LIBS
24380 cat >conftest.$ac_ext <<_ACEOF
24383 cat confdefs.h >>conftest.$ac_ext
24384 cat >>conftest.$ac_ext <<_ACEOF
24385 /* end confdefs.h. */
24387 /* Override any gcc2 internal prototype to avoid an error. */
24391 /* We use char because int might match the return type of a gcc2
24392 builtin and then its argument prototype would still apply. */
24393 char sched_yield ();
24402 rm -f conftest.$ac_objext conftest$ac_exeext
24403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24404 (eval $ac_link) 2>conftest.er1
24406 grep -v '^ *+' conftest.er1 >conftest.err
24408 cat conftest.err >&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); } &&
24411 { ac_try='test -z "$ac_c_werror_flag"
24412 || test ! -s conftest.err'
24413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24414 (eval $ac_try) 2>&5
24416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417 (exit $ac_status); }; } &&
24418 { ac_try='test -s conftest$ac_exeext'
24419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24420 (eval $ac_try) 2>&5
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); }; }; then
24424 ac_cv_lib_rt_sched_yield=yes
24426 echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24429 ac_cv_lib_rt_sched_yield=no
24431 rm -f conftest.err conftest.$ac_objext \
24432 conftest$ac_exeext conftest.$ac_ext
24433 LIBS=$ac_check_lib_save_LIBS
24435 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24436 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24437 if test $ac_cv_lib_rt_sched_yield = yes; then
24438 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24440 cat >>confdefs.h <<\_ACEOF
24441 #define HAVE_SCHED_YIELD 1
24444 ac_cv_func_sched_yield=yes
24446 ac_cv_func_sched_yield=no
24450 if test $ac_cv_func_sched_yield = no &&
24451 test $ac_cv_func_pthread_yield = no &&
24452 test "$ac_cv_func_thr_yield" = no ; then
24453 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24454 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24459 for ac_func in pthread_kill pthread_rwlock_destroy
24461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24462 echo "$as_me:$LINENO: checking for $ac_func" >&5
24463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24464 if eval "test \"\${$as_ac_var+set}\" = set"; then
24465 echo $ECHO_N "(cached) $ECHO_C" >&6
24467 cat >conftest.$ac_ext <<_ACEOF
24470 cat confdefs.h >>conftest.$ac_ext
24471 cat >>conftest.$ac_ext <<_ACEOF
24472 /* end confdefs.h. */
24473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24475 #define $ac_func innocuous_$ac_func
24477 /* System header to define __stub macros and hopefully few prototypes,
24478 which can conflict with char $ac_func (); below.
24479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24480 <limits.h> exists even on freestanding compilers. */
24483 # include <limits.h>
24485 # include <assert.h>
24490 /* Override any gcc2 internal prototype to avoid an error. */
24495 /* We use char because int might match the return type of a gcc2
24496 builtin and then its argument prototype would still apply. */
24498 /* The GNU C library defines this for functions which it implements
24499 to always fail with ENOSYS. Some functions are actually named
24500 something starting with __ and the normal name is an alias. */
24501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24504 char (*f) () = $ac_func;
24513 return f != $ac_func;
24518 rm -f conftest.$ac_objext conftest$ac_exeext
24519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24520 (eval $ac_link) 2>conftest.er1
24522 grep -v '^ *+' conftest.er1 >conftest.err
24524 cat conftest.err >&5
24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); } &&
24527 { ac_try='test -z "$ac_c_werror_flag"
24528 || test ! -s conftest.err'
24529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24530 (eval $ac_try) 2>&5
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); }; } &&
24534 { ac_try='test -s conftest$ac_exeext'
24535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24536 (eval $ac_try) 2>&5
24538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); }; }; then
24540 eval "$as_ac_var=yes"
24542 echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24545 eval "$as_ac_var=no"
24547 rm -f conftest.err conftest.$ac_objext \
24548 conftest$ac_exeext conftest.$ac_ext
24550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24552 if test `eval echo '${'$as_ac_var'}'` = yes; then
24553 cat >>confdefs.h <<_ACEOF
24554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24561 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24562 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24563 if test "${ol_cv_func_pthread_detach+set}" = set; then
24564 echo $ECHO_N "(cached) $ECHO_C" >&6
24567 cat >conftest.$ac_ext <<_ACEOF
24570 cat confdefs.h >>conftest.$ac_ext
24571 cat >>conftest.$ac_ext <<_ACEOF
24572 /* end confdefs.h. */
24574 #include <pthread.h>
24576 #define NULL (void*)0
24582 pthread_detach(NULL);
24587 rm -f conftest.$ac_objext conftest$ac_exeext
24588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24589 (eval $ac_link) 2>conftest.er1
24591 grep -v '^ *+' conftest.er1 >conftest.err
24593 cat conftest.err >&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } &&
24596 { ac_try='test -z "$ac_c_werror_flag"
24597 || test ! -s conftest.err'
24598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24599 (eval $ac_try) 2>&5
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; } &&
24603 { ac_try='test -s conftest$ac_exeext'
24604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24605 (eval $ac_try) 2>&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); }; }; then
24609 ol_cv_func_pthread_detach=yes
24611 echo "$as_me: failed program was:" >&5
24612 sed 's/^/| /' conftest.$ac_ext >&5
24614 ol_cv_func_pthread_detach=no
24616 rm -f conftest.err conftest.$ac_objext \
24617 conftest$ac_exeext conftest.$ac_ext
24620 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24621 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24623 if test $ol_cv_func_pthread_detach = no ; then
24624 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24625 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24626 { (exit 1); exit 1; }; }
24630 cat >>confdefs.h <<\_ACEOF
24631 #define HAVE_PTHREAD_DETACH 1
24640 pthread_setconcurrency \
24641 pthread_getconcurrency \
24642 thr_setconcurrency \
24643 thr_getconcurrency \
24646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24647 echo "$as_me:$LINENO: checking for $ac_func" >&5
24648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24649 if eval "test \"\${$as_ac_var+set}\" = set"; then
24650 echo $ECHO_N "(cached) $ECHO_C" >&6
24652 cat >conftest.$ac_ext <<_ACEOF
24655 cat confdefs.h >>conftest.$ac_ext
24656 cat >>conftest.$ac_ext <<_ACEOF
24657 /* end confdefs.h. */
24658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24660 #define $ac_func innocuous_$ac_func
24662 /* System header to define __stub macros and hopefully few prototypes,
24663 which can conflict with char $ac_func (); below.
24664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24665 <limits.h> exists even on freestanding compilers. */
24668 # include <limits.h>
24670 # include <assert.h>
24675 /* Override any gcc2 internal prototype to avoid an error. */
24680 /* We use char because int might match the return type of a gcc2
24681 builtin and then its argument prototype would still apply. */
24683 /* The GNU C library defines this for functions which it implements
24684 to always fail with ENOSYS. Some functions are actually named
24685 something starting with __ and the normal name is an alias. */
24686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24689 char (*f) () = $ac_func;
24698 return f != $ac_func;
24703 rm -f conftest.$ac_objext conftest$ac_exeext
24704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24705 (eval $ac_link) 2>conftest.er1
24707 grep -v '^ *+' conftest.er1 >conftest.err
24709 cat conftest.err >&5
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } &&
24712 { ac_try='test -z "$ac_c_werror_flag"
24713 || test ! -s conftest.err'
24714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24715 (eval $ac_try) 2>&5
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); }; } &&
24719 { ac_try='test -s conftest$ac_exeext'
24720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721 (eval $ac_try) 2>&5
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); }; }; then
24725 eval "$as_ac_var=yes"
24727 echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24730 eval "$as_ac_var=no"
24732 rm -f conftest.err conftest.$ac_objext \
24733 conftest$ac_exeext conftest.$ac_ext
24735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24737 if test `eval echo '${'$as_ac_var'}'` = yes; then
24738 cat >>confdefs.h <<_ACEOF
24739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24748 for ac_func in pthread_kill_other_threads_np
24750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24751 echo "$as_me:$LINENO: checking for $ac_func" >&5
24752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24753 if eval "test \"\${$as_ac_var+set}\" = set"; then
24754 echo $ECHO_N "(cached) $ECHO_C" >&6
24756 cat >conftest.$ac_ext <<_ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h. */
24762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24764 #define $ac_func innocuous_$ac_func
24766 /* System header to define __stub macros and hopefully few prototypes,
24767 which can conflict with char $ac_func (); below.
24768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24769 <limits.h> exists even on freestanding compilers. */
24772 # include <limits.h>
24774 # include <assert.h>
24779 /* Override any gcc2 internal prototype to avoid an error. */
24784 /* We use char because int might match the return type of a gcc2
24785 builtin and then its argument prototype would still apply. */
24787 /* The GNU C library defines this for functions which it implements
24788 to always fail with ENOSYS. Some functions are actually named
24789 something starting with __ and the normal name is an alias. */
24790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24793 char (*f) () = $ac_func;
24802 return f != $ac_func;
24807 rm -f conftest.$ac_objext conftest$ac_exeext
24808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24809 (eval $ac_link) 2>conftest.er1
24811 grep -v '^ *+' conftest.er1 >conftest.err
24813 cat conftest.err >&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } &&
24816 { ac_try='test -z "$ac_c_werror_flag"
24817 || test ! -s conftest.err'
24818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24819 (eval $ac_try) 2>&5
24821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822 (exit $ac_status); }; } &&
24823 { ac_try='test -s conftest$ac_exeext'
24824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24825 (eval $ac_try) 2>&5
24827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828 (exit $ac_status); }; }; then
24829 eval "$as_ac_var=yes"
24831 echo "$as_me: failed program was:" >&5
24832 sed 's/^/| /' conftest.$ac_ext >&5
24834 eval "$as_ac_var=no"
24836 rm -f conftest.err conftest.$ac_objext \
24837 conftest$ac_exeext conftest.$ac_ext
24839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24841 if test `eval echo '${'$as_ac_var'}'` = yes; then
24842 cat >>confdefs.h <<_ACEOF
24843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24849 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24850 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24851 if test "${ol_cv_sys_linux_threads+set}" = set; then
24852 echo $ECHO_N "(cached) $ECHO_C" >&6
24854 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24856 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24857 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24862 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24863 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24864 if test "${ol_cv_linux_threads+set}" = set; then
24865 echo $ECHO_N "(cached) $ECHO_C" >&6
24868 if test $ol_cv_header_linux_threads = yes &&
24869 test $ol_cv_sys_linux_threads = yes; then
24870 ol_cv_linux_threads=yes
24871 elif test $ol_cv_header_linux_threads = no &&
24872 test $ol_cv_sys_linux_threads = no; then
24873 ol_cv_linux_threads=no
24875 ol_cv_linux_threads=error
24879 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24880 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24883 if test $ol_cv_linux_threads = error; then
24884 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24885 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24886 { (exit 1); exit 1; }; };
24889 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24890 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24891 if test "${ol_cv_pthread_create_works+set}" = set; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
24895 if test "$cross_compiling" = yes; then
24896 ol_cv_pthread_create_works=yes
24898 cat >conftest.$ac_ext <<_ACEOF
24901 cat confdefs.h >>conftest.$ac_ext
24902 cat >>conftest.$ac_ext <<_ACEOF
24903 /* end confdefs.h. */
24905 /* pthread test headers */
24906 #include <pthread.h>
24907 #if HAVE_PTHREADS < 7
24911 #define NULL (void*)0
24914 static void *task(p)
24917 return (void *) (p == NULL);
24921 int main(argc, argv)
24926 /* pthread test function */
24927 #ifndef PTHREAD_CREATE_DETACHED
24928 #define PTHREAD_CREATE_DETACHED 1
24932 int detach = PTHREAD_CREATE_DETACHED;
24934 #if HAVE_PTHREADS > 4
24935 /* Final pthreads */
24936 pthread_attr_t attr;
24938 status = pthread_attr_init(&attr);
24939 if( status ) return status;
24941 #if HAVE_PTHREADS < 7
24942 status = pthread_attr_setdetachstate(&attr, &detach);
24943 if( status < 0 ) status = errno;
24945 status = pthread_attr_setdetachstate(&attr, detach);
24947 if( status ) return status;
24948 status = pthread_create( &t, &attr, task, NULL );
24949 #if HAVE_PTHREADS < 7
24950 if( status < 0 ) status = errno;
24952 if( status ) return status;
24954 /* Draft 4 pthreads */
24955 status = pthread_create( &t, pthread_attr_default, task, NULL );
24956 if( status ) return errno;
24958 /* give thread a chance to complete */
24959 /* it should remain joinable and hence detachable */
24962 status = pthread_detach( &t );
24963 if( status ) return errno;
24966 #ifdef HAVE_LINUX_THREADS
24967 pthread_kill_other_threads_np();
24975 rm -f conftest$ac_exeext
24976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24977 (eval $ac_link) 2>&5
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24982 (eval $ac_try) 2>&5
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); }; }; then
24986 ol_cv_pthread_create_works=yes
24988 echo "$as_me: program exited with status $ac_status" >&5
24989 echo "$as_me: failed program was:" >&5
24990 sed 's/^/| /' conftest.$ac_ext >&5
24992 ( exit $ac_status )
24993 ol_cv_pthread_create_works=no
24995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24998 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24999 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25001 if test $ol_cv_pthread_create_works = no ; then
25002 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25003 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25004 { (exit 1); exit 1; }; }
25007 ol_replace_broken_yield=no
25009 if test $ol_replace_broken_yield = yes ; then
25011 cat >>confdefs.h <<\_ACEOF
25012 #define REPLACE_BROKEN_YIELD 1
25017 if test $ol_with_yielding_select = auto ; then
25018 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25019 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25020 if test "${ol_cv_pthread_select_yields+set}" = set; then
25021 echo $ECHO_N "(cached) $ECHO_C" >&6
25024 if test "$cross_compiling" = yes; then
25025 ol_cv_pthread_select_yields=cross
25027 cat >conftest.$ac_ext <<_ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h. */
25034 #include <sys/types.h>
25035 #include <sys/time.h>
25036 #include <unistd.h>
25037 #include <pthread.h>
25039 #define NULL (void*) 0
25042 static int fildes[2];
25044 static void *task(p)
25056 FD_SET(fildes[0], &rfds);
25058 /* we're not interested in any fds */
25059 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25066 exit(0); /* if we exit here, the select blocked the whole process */
25069 int main(argc, argv)
25075 /* create a pipe to select */
25076 if(pipe(&fildes[0])) {
25081 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25082 (void) pthread_setconcurrency(2);
25084 #ifdef HAVE_THR_SETCONCURRENCY
25085 /* Set Solaris LWP concurrency to 2 */
25086 thr_setconcurrency(2);
25090 #if HAVE_PTHREADS < 6
25091 pthread_create(&t, pthread_attr_default, task, NULL);
25093 pthread_create(&t, NULL, task, NULL);
25096 /* make sure task runs first */
25099 #elif defined( HAVE_SCHED_YIELD )
25101 #elif defined( HAVE_PTHREAD_YIELD )
25108 rm -f conftest$ac_exeext
25109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25110 (eval $ac_link) 2>&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25115 (eval $ac_try) 2>&5
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); }; }; then
25119 ol_cv_pthread_select_yields=no
25121 echo "$as_me: program exited with status $ac_status" >&5
25122 echo "$as_me: failed program was:" >&5
25123 sed 's/^/| /' conftest.$ac_ext >&5
25125 ( exit $ac_status )
25126 ol_cv_pthread_select_yields=yes
25128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25131 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25132 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25134 if test $ol_cv_pthread_select_yields = cross ; then
25135 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25136 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25137 { (exit 1); exit 1; }; }
25140 if test $ol_cv_pthread_select_yields = yes ; then
25141 ol_with_yielding_select=yes
25145 CPPFLAGS="$save_CPPFLAGS"
25148 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25149 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25150 { (exit 1); exit 1; }; }
25154 if test $ol_with_threads = posix ; then
25155 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25156 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25157 { (exit 1); exit 1; }; }
25162 case $ol_with_threads in auto | yes | mach)
25166 for ac_header in mach/cthreads.h cthreads.h
25168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25170 echo "$as_me:$LINENO: checking for $ac_header" >&5
25171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25173 echo $ECHO_N "(cached) $ECHO_C" >&6
25175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25178 # Is the header compilable?
25179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25181 cat >conftest.$ac_ext <<_ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h. */
25187 $ac_includes_default
25188 #include <$ac_header>
25190 rm -f conftest.$ac_objext
25191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25192 (eval $ac_compile) 2>conftest.er1
25194 grep -v '^ *+' conftest.er1 >conftest.err
25196 cat conftest.err >&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); } &&
25199 { ac_try='test -z "$ac_c_werror_flag"
25200 || test ! -s conftest.err'
25201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202 (eval $ac_try) 2>&5
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); }; } &&
25206 { ac_try='test -s conftest.$ac_objext'
25207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25208 (eval $ac_try) 2>&5
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); }; }; then
25212 ac_header_compiler=yes
25214 echo "$as_me: failed program was:" >&5
25215 sed 's/^/| /' conftest.$ac_ext >&5
25217 ac_header_compiler=no
25219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25221 echo "${ECHO_T}$ac_header_compiler" >&6
25223 # Is the header present?
25224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25226 cat >conftest.$ac_ext <<_ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h. */
25232 #include <$ac_header>
25234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25237 grep -v '^ *+' conftest.er1 >conftest.err
25239 cat conftest.err >&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } >/dev/null; then
25242 if test -s conftest.err; then
25243 ac_cpp_err=$ac_c_preproc_warn_flag
25244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25251 if test -z "$ac_cpp_err"; then
25252 ac_header_preproc=yes
25254 echo "$as_me: failed program was:" >&5
25255 sed 's/^/| /' conftest.$ac_ext >&5
25257 ac_header_preproc=no
25259 rm -f conftest.err conftest.$ac_ext
25260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25261 echo "${ECHO_T}$ac_header_preproc" >&6
25263 # So? What about this header?
25264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25270 ac_header_preproc=yes
25273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25287 ## --------------------------------------------- ##
25288 ## Report this to <http://www.openldap.org/its/> ##
25289 ## --------------------------------------------- ##
25292 sed "s/^/$as_me: WARNING: /" >&2
25295 echo "$as_me:$LINENO: checking for $ac_header" >&5
25296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25298 echo $ECHO_N "(cached) $ECHO_C" >&6
25300 eval "$as_ac_Header=\$ac_header_preproc"
25302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25307 cat >>confdefs.h <<_ACEOF
25308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25315 if test $ac_cv_header_mach_cthreads_h = yes ; then
25316 ol_with_threads=found
25318 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25319 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25320 if test "${ac_cv_func_cthread_fork+set}" = set; then
25321 echo $ECHO_N "(cached) $ECHO_C" >&6
25323 cat >conftest.$ac_ext <<_ACEOF
25326 cat confdefs.h >>conftest.$ac_ext
25327 cat >>conftest.$ac_ext <<_ACEOF
25328 /* end confdefs.h. */
25329 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25331 #define cthread_fork innocuous_cthread_fork
25333 /* System header to define __stub macros and hopefully few prototypes,
25334 which can conflict with char cthread_fork (); below.
25335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25336 <limits.h> exists even on freestanding compilers. */
25339 # include <limits.h>
25341 # include <assert.h>
25344 #undef cthread_fork
25346 /* Override any gcc2 internal prototype to avoid an error. */
25351 /* We use char because int might match the return type of a gcc2
25352 builtin and then its argument prototype would still apply. */
25353 char cthread_fork ();
25354 /* The GNU C library defines this for functions which it implements
25355 to always fail with ENOSYS. Some functions are actually named
25356 something starting with __ and the normal name is an alias. */
25357 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25360 char (*f) () = cthread_fork;
25369 return f != cthread_fork;
25374 rm -f conftest.$ac_objext conftest$ac_exeext
25375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25376 (eval $ac_link) 2>conftest.er1
25378 grep -v '^ *+' conftest.er1 >conftest.err
25380 cat conftest.err >&5
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } &&
25383 { ac_try='test -z "$ac_c_werror_flag"
25384 || test ! -s conftest.err'
25385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25386 (eval $ac_try) 2>&5
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); }; } &&
25390 { ac_try='test -s conftest$ac_exeext'
25391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25392 (eval $ac_try) 2>&5
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); }; }; then
25396 ac_cv_func_cthread_fork=yes
25398 echo "$as_me: failed program was:" >&5
25399 sed 's/^/| /' conftest.$ac_ext >&5
25401 ac_cv_func_cthread_fork=no
25403 rm -f conftest.err conftest.$ac_objext \
25404 conftest$ac_exeext conftest.$ac_ext
25406 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25407 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25408 if test $ac_cv_func_cthread_fork = yes; then
25409 ol_link_threads=yes
25413 if test $ol_link_threads = no ; then
25414 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25415 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25416 if test "${ol_cv_cthread_all_load+set}" = set; then
25417 echo $ECHO_N "(cached) $ECHO_C" >&6
25421 LIBS="-all_load $LIBS"
25422 cat >conftest.$ac_ext <<_ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h. */
25428 #include <mach/cthreads.h>
25433 cthread_fork((void *)0, (void *)0);
25439 rm -f conftest.$ac_objext conftest$ac_exeext
25440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25441 (eval $ac_link) 2>conftest.er1
25443 grep -v '^ *+' conftest.er1 >conftest.err
25445 cat conftest.err >&5
25446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25447 (exit $ac_status); } &&
25448 { ac_try='test -z "$ac_c_werror_flag"
25449 || test ! -s conftest.err'
25450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25451 (eval $ac_try) 2>&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); }; } &&
25455 { ac_try='test -s conftest$ac_exeext'
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; }; then
25461 ol_cv_cthread_all_load=yes
25463 echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25466 ol_cv_cthread_all_load=no
25468 rm -f conftest.err conftest.$ac_objext \
25469 conftest$ac_exeext conftest.$ac_ext
25473 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25474 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25476 if test $ol_cv_cthread_all_load = yes ; then
25477 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25478 ol_link_threads=mach
25479 ol_with_threads=found
25483 elif test $ac_cv_header_cthreads_h = yes ; then
25485 ol_with_threads=found
25488 LIBS="$LIBS -lthreads"
25489 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25490 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25491 if test "${ac_cv_func_cthread_fork+set}" = set; then
25492 echo $ECHO_N "(cached) $ECHO_C" >&6
25494 cat >conftest.$ac_ext <<_ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h. */
25500 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25502 #define cthread_fork innocuous_cthread_fork
25504 /* System header to define __stub macros and hopefully few prototypes,
25505 which can conflict with char cthread_fork (); below.
25506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25507 <limits.h> exists even on freestanding compilers. */
25510 # include <limits.h>
25512 # include <assert.h>
25515 #undef cthread_fork
25517 /* Override any gcc2 internal prototype to avoid an error. */
25522 /* We use char because int might match the return type of a gcc2
25523 builtin and then its argument prototype would still apply. */
25524 char cthread_fork ();
25525 /* The GNU C library defines this for functions which it implements
25526 to always fail with ENOSYS. Some functions are actually named
25527 something starting with __ and the normal name is an alias. */
25528 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25531 char (*f) () = cthread_fork;
25540 return f != cthread_fork;
25545 rm -f conftest.$ac_objext conftest$ac_exeext
25546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25547 (eval $ac_link) 2>conftest.er1
25549 grep -v '^ *+' conftest.er1 >conftest.err
25551 cat conftest.err >&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); } &&
25554 { ac_try='test -z "$ac_c_werror_flag"
25555 || test ! -s conftest.err'
25556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25557 (eval $ac_try) 2>&5
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); }; } &&
25561 { ac_try='test -s conftest$ac_exeext'
25562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563 (eval $ac_try) 2>&5
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); }; }; then
25567 ac_cv_func_cthread_fork=yes
25569 echo "$as_me: failed program was:" >&5
25570 sed 's/^/| /' conftest.$ac_ext >&5
25572 ac_cv_func_cthread_fork=no
25574 rm -f conftest.err conftest.$ac_objext \
25575 conftest$ac_exeext conftest.$ac_ext
25577 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25578 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25579 if test $ac_cv_func_cthread_fork = yes; then
25580 ol_link_threads=yes
25585 if test $ol_link_threads = yes ; then
25586 LTHREAD_LIBS="-lthreads"
25587 ol_link_threads=mach
25588 ol_with_threads=found
25590 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25591 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25592 { (exit 1); exit 1; }; }
25595 elif test $ol_with_threads = mach ; then
25596 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25597 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25598 { (exit 1); exit 1; }; }
25601 if test $ol_link_threads = mach ; then
25603 cat >>confdefs.h <<\_ACEOF
25604 #define HAVE_MACH_CTHREADS 1
25607 elif test $ol_with_threads = found ; then
25608 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25609 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25610 { (exit 1); exit 1; }; }
25615 case $ol_with_threads in auto | yes | pth)
25618 for ac_header in pth.h
25620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25622 echo "$as_me:$LINENO: checking for $ac_header" >&5
25623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25625 echo $ECHO_N "(cached) $ECHO_C" >&6
25627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25630 # Is the header compilable?
25631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25633 cat >conftest.$ac_ext <<_ACEOF
25636 cat confdefs.h >>conftest.$ac_ext
25637 cat >>conftest.$ac_ext <<_ACEOF
25638 /* end confdefs.h. */
25639 $ac_includes_default
25640 #include <$ac_header>
25642 rm -f conftest.$ac_objext
25643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25644 (eval $ac_compile) 2>conftest.er1
25646 grep -v '^ *+' conftest.er1 >conftest.err
25648 cat conftest.err >&5
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } &&
25651 { ac_try='test -z "$ac_c_werror_flag"
25652 || test ! -s conftest.err'
25653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25654 (eval $ac_try) 2>&5
25656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 (exit $ac_status); }; } &&
25658 { ac_try='test -s conftest.$ac_objext'
25659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25660 (eval $ac_try) 2>&5
25662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663 (exit $ac_status); }; }; then
25664 ac_header_compiler=yes
25666 echo "$as_me: failed program was:" >&5
25667 sed 's/^/| /' conftest.$ac_ext >&5
25669 ac_header_compiler=no
25671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25673 echo "${ECHO_T}$ac_header_compiler" >&6
25675 # Is the header present?
25676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25678 cat >conftest.$ac_ext <<_ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h. */
25684 #include <$ac_header>
25686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25689 grep -v '^ *+' conftest.er1 >conftest.err
25691 cat conftest.err >&5
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); } >/dev/null; then
25694 if test -s conftest.err; then
25695 ac_cpp_err=$ac_c_preproc_warn_flag
25696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25703 if test -z "$ac_cpp_err"; then
25704 ac_header_preproc=yes
25706 echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25709 ac_header_preproc=no
25711 rm -f conftest.err conftest.$ac_ext
25712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25713 echo "${ECHO_T}$ac_header_preproc" >&6
25715 # So? What about this header?
25716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25722 ac_header_preproc=yes
25725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25739 ## --------------------------------------------- ##
25740 ## Report this to <http://www.openldap.org/its/> ##
25741 ## --------------------------------------------- ##
25744 sed "s/^/$as_me: WARNING: /" >&2
25747 echo "$as_me:$LINENO: checking for $ac_header" >&5
25748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25750 echo $ECHO_N "(cached) $ECHO_C" >&6
25752 eval "$as_ac_Header=\$ac_header_preproc"
25754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25759 cat >>confdefs.h <<_ACEOF
25760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25768 if test $ac_cv_header_pth_h = yes ; then
25769 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25770 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25771 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25772 echo $ECHO_N "(cached) $ECHO_C" >&6
25774 ac_check_lib_save_LIBS=$LIBS
25776 cat >conftest.$ac_ext <<_ACEOF
25779 cat confdefs.h >>conftest.$ac_ext
25780 cat >>conftest.$ac_ext <<_ACEOF
25781 /* end confdefs.h. */
25783 /* Override any gcc2 internal prototype to avoid an error. */
25787 /* We use char because int might match the return type of a gcc2
25788 builtin and then its argument prototype would still apply. */
25789 char pth_version ();
25798 rm -f conftest.$ac_objext conftest$ac_exeext
25799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25800 (eval $ac_link) 2>conftest.er1
25802 grep -v '^ *+' conftest.er1 >conftest.err
25804 cat conftest.err >&5
25805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); } &&
25807 { ac_try='test -z "$ac_c_werror_flag"
25808 || test ! -s conftest.err'
25809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25810 (eval $ac_try) 2>&5
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); }; } &&
25814 { ac_try='test -s conftest$ac_exeext'
25815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25816 (eval $ac_try) 2>&5
25818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819 (exit $ac_status); }; }; then
25820 ac_cv_lib_pth_pth_version=yes
25822 echo "$as_me: failed program was:" >&5
25823 sed 's/^/| /' conftest.$ac_ext >&5
25825 ac_cv_lib_pth_pth_version=no
25827 rm -f conftest.err conftest.$ac_objext \
25828 conftest$ac_exeext conftest.$ac_ext
25829 LIBS=$ac_check_lib_save_LIBS
25831 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25832 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25833 if test $ac_cv_lib_pth_pth_version = yes; then
25840 if test $have_pth = yes ; then
25842 cat >>confdefs.h <<\_ACEOF
25843 #define HAVE_GNU_PTH 1
25846 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25847 ol_link_threads=pth
25848 ol_with_threads=found
25850 if test $ol_with_yielding_select = auto ; then
25851 ol_with_yielding_select=yes
25858 case $ol_with_threads in auto | yes | lwp)
25862 for ac_header in thread.h synch.h
25864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25866 echo "$as_me:$LINENO: checking for $ac_header" >&5
25867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25869 echo $ECHO_N "(cached) $ECHO_C" >&6
25871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25874 # Is the header compilable?
25875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25877 cat >conftest.$ac_ext <<_ACEOF
25880 cat confdefs.h >>conftest.$ac_ext
25881 cat >>conftest.$ac_ext <<_ACEOF
25882 /* end confdefs.h. */
25883 $ac_includes_default
25884 #include <$ac_header>
25886 rm -f conftest.$ac_objext
25887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25888 (eval $ac_compile) 2>conftest.er1
25890 grep -v '^ *+' conftest.er1 >conftest.err
25892 cat conftest.err >&5
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); } &&
25895 { ac_try='test -z "$ac_c_werror_flag"
25896 || test ! -s conftest.err'
25897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898 (eval $ac_try) 2>&5
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); }; } &&
25902 { ac_try='test -s conftest.$ac_objext'
25903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25904 (eval $ac_try) 2>&5
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); }; }; then
25908 ac_header_compiler=yes
25910 echo "$as_me: failed program was:" >&5
25911 sed 's/^/| /' conftest.$ac_ext >&5
25913 ac_header_compiler=no
25915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25917 echo "${ECHO_T}$ac_header_compiler" >&6
25919 # Is the header present?
25920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25922 cat >conftest.$ac_ext <<_ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h. */
25928 #include <$ac_header>
25930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25933 grep -v '^ *+' conftest.er1 >conftest.err
25935 cat conftest.err >&5
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); } >/dev/null; then
25938 if test -s conftest.err; then
25939 ac_cpp_err=$ac_c_preproc_warn_flag
25940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25947 if test -z "$ac_cpp_err"; then
25948 ac_header_preproc=yes
25950 echo "$as_me: failed program was:" >&5
25951 sed 's/^/| /' conftest.$ac_ext >&5
25953 ac_header_preproc=no
25955 rm -f conftest.err conftest.$ac_ext
25956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25957 echo "${ECHO_T}$ac_header_preproc" >&6
25959 # So? What about this header?
25960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25966 ac_header_preproc=yes
25969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25983 ## --------------------------------------------- ##
25984 ## Report this to <http://www.openldap.org/its/> ##
25985 ## --------------------------------------------- ##
25988 sed "s/^/$as_me: WARNING: /" >&2
25991 echo "$as_me:$LINENO: checking for $ac_header" >&5
25992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25994 echo $ECHO_N "(cached) $ECHO_C" >&6
25996 eval "$as_ac_Header=\$ac_header_preproc"
25998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26003 cat >>confdefs.h <<_ACEOF
26004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26011 if test $ac_cv_header_thread_h = yes &&
26012 test $ac_cv_header_synch_h = yes ; then
26013 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26014 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26015 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26016 echo $ECHO_N "(cached) $ECHO_C" >&6
26018 ac_check_lib_save_LIBS=$LIBS
26019 LIBS="-lthread $LIBS"
26020 cat >conftest.$ac_ext <<_ACEOF
26023 cat confdefs.h >>conftest.$ac_ext
26024 cat >>conftest.$ac_ext <<_ACEOF
26025 /* end confdefs.h. */
26027 /* Override any gcc2 internal prototype to avoid an error. */
26031 /* We use char because int might match the return type of a gcc2
26032 builtin and then its argument prototype would still apply. */
26033 char thr_create ();
26042 rm -f conftest.$ac_objext conftest$ac_exeext
26043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26044 (eval $ac_link) 2>conftest.er1
26046 grep -v '^ *+' conftest.er1 >conftest.err
26048 cat conftest.err >&5
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); } &&
26051 { ac_try='test -z "$ac_c_werror_flag"
26052 || test ! -s conftest.err'
26053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054 (eval $ac_try) 2>&5
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); }; } &&
26058 { ac_try='test -s conftest$ac_exeext'
26059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26060 (eval $ac_try) 2>&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); }; }; then
26064 ac_cv_lib_thread_thr_create=yes
26066 echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26069 ac_cv_lib_thread_thr_create=no
26071 rm -f conftest.err conftest.$ac_objext \
26072 conftest$ac_exeext conftest.$ac_ext
26073 LIBS=$ac_check_lib_save_LIBS
26075 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26076 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26077 if test $ac_cv_lib_thread_thr_create = yes; then
26084 if test $have_thr = yes ; then
26086 cat >>confdefs.h <<\_ACEOF
26090 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26091 ol_link_threads=thr
26093 if test $ol_with_yielding_select = auto ; then
26094 ol_with_yielding_select=yes
26100 thr_setconcurrency \
26101 thr_getconcurrency \
26104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26105 echo "$as_me:$LINENO: checking for $ac_func" >&5
26106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26107 if eval "test \"\${$as_ac_var+set}\" = set"; then
26108 echo $ECHO_N "(cached) $ECHO_C" >&6
26110 cat >conftest.$ac_ext <<_ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h. */
26116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26118 #define $ac_func innocuous_$ac_func
26120 /* System header to define __stub macros and hopefully few prototypes,
26121 which can conflict with char $ac_func (); below.
26122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26123 <limits.h> exists even on freestanding compilers. */
26126 # include <limits.h>
26128 # include <assert.h>
26133 /* Override any gcc2 internal prototype to avoid an error. */
26138 /* We use char because int might match the return type of a gcc2
26139 builtin and then its argument prototype would still apply. */
26141 /* The GNU C library defines this for functions which it implements
26142 to always fail with ENOSYS. Some functions are actually named
26143 something starting with __ and the normal name is an alias. */
26144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26147 char (*f) () = $ac_func;
26156 return f != $ac_func;
26161 rm -f conftest.$ac_objext conftest$ac_exeext
26162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26163 (eval $ac_link) 2>conftest.er1
26165 grep -v '^ *+' conftest.er1 >conftest.err
26167 cat conftest.err >&5
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); } &&
26170 { ac_try='test -z "$ac_c_werror_flag"
26171 || test ! -s conftest.err'
26172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26173 (eval $ac_try) 2>&5
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); }; } &&
26177 { ac_try='test -s conftest$ac_exeext'
26178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179 (eval $ac_try) 2>&5
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); }; }; then
26183 eval "$as_ac_var=yes"
26185 echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26188 eval "$as_ac_var=no"
26190 rm -f conftest.err conftest.$ac_objext \
26191 conftest$ac_exeext conftest.$ac_ext
26193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26195 if test `eval echo '${'$as_ac_var'}'` = yes; then
26196 cat >>confdefs.h <<_ACEOF
26197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26207 for ac_header in lwp/lwp.h
26209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26211 echo "$as_me:$LINENO: checking for $ac_header" >&5
26212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26214 echo $ECHO_N "(cached) $ECHO_C" >&6
26216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26219 # Is the header compilable?
26220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26222 cat >conftest.$ac_ext <<_ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h. */
26228 $ac_includes_default
26229 #include <$ac_header>
26231 rm -f conftest.$ac_objext
26232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26233 (eval $ac_compile) 2>conftest.er1
26235 grep -v '^ *+' conftest.er1 >conftest.err
26237 cat conftest.err >&5
26238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239 (exit $ac_status); } &&
26240 { ac_try='test -z "$ac_c_werror_flag"
26241 || test ! -s conftest.err'
26242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26243 (eval $ac_try) 2>&5
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); }; } &&
26247 { ac_try='test -s conftest.$ac_objext'
26248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26249 (eval $ac_try) 2>&5
26251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); }; }; then
26253 ac_header_compiler=yes
26255 echo "$as_me: failed program was:" >&5
26256 sed 's/^/| /' conftest.$ac_ext >&5
26258 ac_header_compiler=no
26260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26262 echo "${ECHO_T}$ac_header_compiler" >&6
26264 # Is the header present?
26265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26267 cat >conftest.$ac_ext <<_ACEOF
26270 cat confdefs.h >>conftest.$ac_ext
26271 cat >>conftest.$ac_ext <<_ACEOF
26272 /* end confdefs.h. */
26273 #include <$ac_header>
26275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26278 grep -v '^ *+' conftest.er1 >conftest.err
26280 cat conftest.err >&5
26281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282 (exit $ac_status); } >/dev/null; then
26283 if test -s conftest.err; then
26284 ac_cpp_err=$ac_c_preproc_warn_flag
26285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26292 if test -z "$ac_cpp_err"; then
26293 ac_header_preproc=yes
26295 echo "$as_me: failed program was:" >&5
26296 sed 's/^/| /' conftest.$ac_ext >&5
26298 ac_header_preproc=no
26300 rm -f conftest.err conftest.$ac_ext
26301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26302 echo "${ECHO_T}$ac_header_preproc" >&6
26304 # So? What about this header?
26305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26311 ac_header_preproc=yes
26314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26328 ## --------------------------------------------- ##
26329 ## Report this to <http://www.openldap.org/its/> ##
26330 ## --------------------------------------------- ##
26333 sed "s/^/$as_me: WARNING: /" >&2
26336 echo "$as_me:$LINENO: checking for $ac_header" >&5
26337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26339 echo $ECHO_N "(cached) $ECHO_C" >&6
26341 eval "$as_ac_Header=\$ac_header_preproc"
26343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26348 cat >>confdefs.h <<_ACEOF
26349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26356 if test $ac_cv_header_lwp_lwp_h = yes ; then
26357 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26358 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26359 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26360 echo $ECHO_N "(cached) $ECHO_C" >&6
26362 ac_check_lib_save_LIBS=$LIBS
26364 cat >conftest.$ac_ext <<_ACEOF
26367 cat confdefs.h >>conftest.$ac_ext
26368 cat >>conftest.$ac_ext <<_ACEOF
26369 /* end confdefs.h. */
26371 /* Override any gcc2 internal prototype to avoid an error. */
26375 /* We use char because int might match the return type of a gcc2
26376 builtin and then its argument prototype would still apply. */
26377 char lwp_create ();
26386 rm -f conftest.$ac_objext conftest$ac_exeext
26387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26388 (eval $ac_link) 2>conftest.er1
26390 grep -v '^ *+' conftest.er1 >conftest.err
26392 cat conftest.err >&5
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); } &&
26395 { ac_try='test -z "$ac_c_werror_flag"
26396 || test ! -s conftest.err'
26397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26398 (eval $ac_try) 2>&5
26400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401 (exit $ac_status); }; } &&
26402 { ac_try='test -s conftest$ac_exeext'
26403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404 (eval $ac_try) 2>&5
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); }; }; then
26408 ac_cv_lib_lwp_lwp_create=yes
26410 echo "$as_me: failed program was:" >&5
26411 sed 's/^/| /' conftest.$ac_ext >&5
26413 ac_cv_lib_lwp_lwp_create=no
26415 rm -f conftest.err conftest.$ac_objext \
26416 conftest$ac_exeext conftest.$ac_ext
26417 LIBS=$ac_check_lib_save_LIBS
26419 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26420 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26421 if test $ac_cv_lib_lwp_lwp_create = yes; then
26428 if test $have_lwp = yes ; then
26430 cat >>confdefs.h <<\_ACEOF
26434 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26435 ol_link_threads=lwp
26437 if test $ol_with_yielding_select = auto ; then
26438 ol_with_yielding_select=no
26445 if test $ol_with_yielding_select = yes ; then
26447 cat >>confdefs.h <<\_ACEOF
26448 #define HAVE_YIELDING_SELECT 1
26453 if test $ol_with_threads = manual ; then
26454 ol_link_threads=yes
26456 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26457 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26461 for ac_header in pthread.h sched.h
26463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26465 echo "$as_me:$LINENO: checking for $ac_header" >&5
26466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26468 echo $ECHO_N "(cached) $ECHO_C" >&6
26470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26473 # Is the header compilable?
26474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26476 cat >conftest.$ac_ext <<_ACEOF
26479 cat confdefs.h >>conftest.$ac_ext
26480 cat >>conftest.$ac_ext <<_ACEOF
26481 /* end confdefs.h. */
26482 $ac_includes_default
26483 #include <$ac_header>
26485 rm -f conftest.$ac_objext
26486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26487 (eval $ac_compile) 2>conftest.er1
26489 grep -v '^ *+' conftest.er1 >conftest.err
26491 cat conftest.err >&5
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); } &&
26494 { ac_try='test -z "$ac_c_werror_flag"
26495 || test ! -s conftest.err'
26496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26497 (eval $ac_try) 2>&5
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); }; } &&
26501 { ac_try='test -s conftest.$ac_objext'
26502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26503 (eval $ac_try) 2>&5
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); }; }; then
26507 ac_header_compiler=yes
26509 echo "$as_me: failed program was:" >&5
26510 sed 's/^/| /' conftest.$ac_ext >&5
26512 ac_header_compiler=no
26514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26516 echo "${ECHO_T}$ac_header_compiler" >&6
26518 # Is the header present?
26519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26521 cat >conftest.$ac_ext <<_ACEOF
26524 cat confdefs.h >>conftest.$ac_ext
26525 cat >>conftest.$ac_ext <<_ACEOF
26526 /* end confdefs.h. */
26527 #include <$ac_header>
26529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26532 grep -v '^ *+' conftest.er1 >conftest.err
26534 cat conftest.err >&5
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); } >/dev/null; then
26537 if test -s conftest.err; then
26538 ac_cpp_err=$ac_c_preproc_warn_flag
26539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26546 if test -z "$ac_cpp_err"; then
26547 ac_header_preproc=yes
26549 echo "$as_me: failed program was:" >&5
26550 sed 's/^/| /' conftest.$ac_ext >&5
26552 ac_header_preproc=no
26554 rm -f conftest.err conftest.$ac_ext
26555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26556 echo "${ECHO_T}$ac_header_preproc" >&6
26558 # So? What about this header?
26559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26565 ac_header_preproc=yes
26568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26582 ## --------------------------------------------- ##
26583 ## Report this to <http://www.openldap.org/its/> ##
26584 ## --------------------------------------------- ##
26587 sed "s/^/$as_me: WARNING: /" >&2
26590 echo "$as_me:$LINENO: checking for $ac_header" >&5
26591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26593 echo $ECHO_N "(cached) $ECHO_C" >&6
26595 eval "$as_ac_Header=\$ac_header_preproc"
26597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26602 cat >>confdefs.h <<_ACEOF
26603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26612 for ac_func in sched_yield pthread_yield
26614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26615 echo "$as_me:$LINENO: checking for $ac_func" >&5
26616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26617 if eval "test \"\${$as_ac_var+set}\" = set"; then
26618 echo $ECHO_N "(cached) $ECHO_C" >&6
26620 cat >conftest.$ac_ext <<_ACEOF
26623 cat confdefs.h >>conftest.$ac_ext
26624 cat >>conftest.$ac_ext <<_ACEOF
26625 /* end confdefs.h. */
26626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26628 #define $ac_func innocuous_$ac_func
26630 /* System header to define __stub macros and hopefully few prototypes,
26631 which can conflict with char $ac_func (); below.
26632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26633 <limits.h> exists even on freestanding compilers. */
26636 # include <limits.h>
26638 # include <assert.h>
26643 /* Override any gcc2 internal prototype to avoid an error. */
26648 /* We use char because int might match the return type of a gcc2
26649 builtin and then its argument prototype would still apply. */
26651 /* The GNU C library defines this for functions which it implements
26652 to always fail with ENOSYS. Some functions are actually named
26653 something starting with __ and the normal name is an alias. */
26654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26657 char (*f) () = $ac_func;
26666 return f != $ac_func;
26671 rm -f conftest.$ac_objext conftest$ac_exeext
26672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26673 (eval $ac_link) 2>conftest.er1
26675 grep -v '^ *+' conftest.er1 >conftest.err
26677 cat conftest.err >&5
26678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); } &&
26680 { ac_try='test -z "$ac_c_werror_flag"
26681 || test ! -s conftest.err'
26682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683 (eval $ac_try) 2>&5
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); }; } &&
26687 { ac_try='test -s conftest$ac_exeext'
26688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26689 (eval $ac_try) 2>&5
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); }; }; then
26693 eval "$as_ac_var=yes"
26695 echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26698 eval "$as_ac_var=no"
26700 rm -f conftest.err conftest.$ac_objext \
26701 conftest$ac_exeext conftest.$ac_ext
26703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26705 if test `eval echo '${'$as_ac_var'}'` = yes; then
26706 cat >>confdefs.h <<_ACEOF
26707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26714 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26715 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26716 if test "${ol_cv_header_linux_threads+set}" = set; then
26717 echo $ECHO_N "(cached) $ECHO_C" >&6
26719 cat >conftest.$ac_ext <<_ACEOF
26722 cat confdefs.h >>conftest.$ac_ext
26723 cat >>conftest.$ac_ext <<_ACEOF
26724 /* end confdefs.h. */
26725 #include <pthread.h>
26727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26728 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26729 ol_cv_header_linux_threads=yes
26731 ol_cv_header_linux_threads=no
26737 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26738 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26739 if test $ol_cv_header_linux_threads = yes; then
26741 cat >>confdefs.h <<\_ACEOF
26742 #define HAVE_LINUX_THREADS 1
26749 for ac_header in mach/cthreads.h
26751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26753 echo "$as_me:$LINENO: checking for $ac_header" >&5
26754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26756 echo $ECHO_N "(cached) $ECHO_C" >&6
26758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26761 # Is the header compilable?
26762 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26764 cat >conftest.$ac_ext <<_ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h. */
26770 $ac_includes_default
26771 #include <$ac_header>
26773 rm -f conftest.$ac_objext
26774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26775 (eval $ac_compile) 2>conftest.er1
26777 grep -v '^ *+' conftest.er1 >conftest.err
26779 cat conftest.err >&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); } &&
26782 { ac_try='test -z "$ac_c_werror_flag"
26783 || test ! -s conftest.err'
26784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785 (eval $ac_try) 2>&5
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); }; } &&
26789 { ac_try='test -s conftest.$ac_objext'
26790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791 (eval $ac_try) 2>&5
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); }; }; then
26795 ac_header_compiler=yes
26797 echo "$as_me: failed program was:" >&5
26798 sed 's/^/| /' conftest.$ac_ext >&5
26800 ac_header_compiler=no
26802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26804 echo "${ECHO_T}$ac_header_compiler" >&6
26806 # Is the header present?
26807 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26809 cat >conftest.$ac_ext <<_ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h. */
26815 #include <$ac_header>
26817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26820 grep -v '^ *+' conftest.er1 >conftest.err
26822 cat conftest.err >&5
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); } >/dev/null; then
26825 if test -s conftest.err; then
26826 ac_cpp_err=$ac_c_preproc_warn_flag
26827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26834 if test -z "$ac_cpp_err"; then
26835 ac_header_preproc=yes
26837 echo "$as_me: failed program was:" >&5
26838 sed 's/^/| /' conftest.$ac_ext >&5
26840 ac_header_preproc=no
26842 rm -f conftest.err conftest.$ac_ext
26843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26844 echo "${ECHO_T}$ac_header_preproc" >&6
26846 # So? What about this header?
26847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26853 ac_header_preproc=yes
26856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26870 ## --------------------------------------------- ##
26871 ## Report this to <http://www.openldap.org/its/> ##
26872 ## --------------------------------------------- ##
26875 sed "s/^/$as_me: WARNING: /" >&2
26878 echo "$as_me:$LINENO: checking for $ac_header" >&5
26879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26881 echo $ECHO_N "(cached) $ECHO_C" >&6
26883 eval "$as_ac_Header=\$ac_header_preproc"
26885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26890 cat >>confdefs.h <<_ACEOF
26891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26899 for ac_header in lwp/lwp.h
26901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26903 echo "$as_me:$LINENO: checking for $ac_header" >&5
26904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26906 echo $ECHO_N "(cached) $ECHO_C" >&6
26908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26911 # Is the header compilable?
26912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26914 cat >conftest.$ac_ext <<_ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h. */
26920 $ac_includes_default
26921 #include <$ac_header>
26923 rm -f conftest.$ac_objext
26924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26925 (eval $ac_compile) 2>conftest.er1
26927 grep -v '^ *+' conftest.er1 >conftest.err
26929 cat conftest.err >&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); } &&
26932 { ac_try='test -z "$ac_c_werror_flag"
26933 || test ! -s conftest.err'
26934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935 (eval $ac_try) 2>&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); }; } &&
26939 { ac_try='test -s conftest.$ac_objext'
26940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26941 (eval $ac_try) 2>&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); }; }; then
26945 ac_header_compiler=yes
26947 echo "$as_me: failed program was:" >&5
26948 sed 's/^/| /' conftest.$ac_ext >&5
26950 ac_header_compiler=no
26952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26954 echo "${ECHO_T}$ac_header_compiler" >&6
26956 # Is the header present?
26957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26959 cat >conftest.$ac_ext <<_ACEOF
26962 cat confdefs.h >>conftest.$ac_ext
26963 cat >>conftest.$ac_ext <<_ACEOF
26964 /* end confdefs.h. */
26965 #include <$ac_header>
26967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26970 grep -v '^ *+' conftest.er1 >conftest.err
26972 cat conftest.err >&5
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); } >/dev/null; then
26975 if test -s conftest.err; then
26976 ac_cpp_err=$ac_c_preproc_warn_flag
26977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26984 if test -z "$ac_cpp_err"; then
26985 ac_header_preproc=yes
26987 echo "$as_me: failed program was:" >&5
26988 sed 's/^/| /' conftest.$ac_ext >&5
26990 ac_header_preproc=no
26992 rm -f conftest.err conftest.$ac_ext
26993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26994 echo "${ECHO_T}$ac_header_preproc" >&6
26996 # So? What about this header?
26997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27003 ac_header_preproc=yes
27006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27020 ## --------------------------------------------- ##
27021 ## Report this to <http://www.openldap.org/its/> ##
27022 ## --------------------------------------------- ##
27025 sed "s/^/$as_me: WARNING: /" >&2
27028 echo "$as_me:$LINENO: checking for $ac_header" >&5
27029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27031 echo $ECHO_N "(cached) $ECHO_C" >&6
27033 eval "$as_ac_Header=\$ac_header_preproc"
27035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27040 cat >>confdefs.h <<_ACEOF
27041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27050 for ac_header in thread.h synch.h
27052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27054 echo "$as_me:$LINENO: checking for $ac_header" >&5
27055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27057 echo $ECHO_N "(cached) $ECHO_C" >&6
27059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27062 # Is the header compilable?
27063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27065 cat >conftest.$ac_ext <<_ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h. */
27071 $ac_includes_default
27072 #include <$ac_header>
27074 rm -f conftest.$ac_objext
27075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27076 (eval $ac_compile) 2>conftest.er1
27078 grep -v '^ *+' conftest.er1 >conftest.err
27080 cat conftest.err >&5
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); } &&
27083 { ac_try='test -z "$ac_c_werror_flag"
27084 || test ! -s conftest.err'
27085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086 (eval $ac_try) 2>&5
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); }; } &&
27090 { ac_try='test -s conftest.$ac_objext'
27091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092 (eval $ac_try) 2>&5
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); }; }; then
27096 ac_header_compiler=yes
27098 echo "$as_me: failed program was:" >&5
27099 sed 's/^/| /' conftest.$ac_ext >&5
27101 ac_header_compiler=no
27103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27105 echo "${ECHO_T}$ac_header_compiler" >&6
27107 # Is the header present?
27108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27110 cat >conftest.$ac_ext <<_ACEOF
27113 cat confdefs.h >>conftest.$ac_ext
27114 cat >>conftest.$ac_ext <<_ACEOF
27115 /* end confdefs.h. */
27116 #include <$ac_header>
27118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27121 grep -v '^ *+' conftest.er1 >conftest.err
27123 cat conftest.err >&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); } >/dev/null; then
27126 if test -s conftest.err; then
27127 ac_cpp_err=$ac_c_preproc_warn_flag
27128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27135 if test -z "$ac_cpp_err"; then
27136 ac_header_preproc=yes
27138 echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27141 ac_header_preproc=no
27143 rm -f conftest.err conftest.$ac_ext
27144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27145 echo "${ECHO_T}$ac_header_preproc" >&6
27147 # So? What about this header?
27148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27154 ac_header_preproc=yes
27157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27171 ## --------------------------------------------- ##
27172 ## Report this to <http://www.openldap.org/its/> ##
27173 ## --------------------------------------------- ##
27176 sed "s/^/$as_me: WARNING: /" >&2
27179 echo "$as_me:$LINENO: checking for $ac_header" >&5
27180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27182 echo $ECHO_N "(cached) $ECHO_C" >&6
27184 eval "$as_ac_Header=\$ac_header_preproc"
27186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27191 cat >>confdefs.h <<_ACEOF
27192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27201 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27202 cat >>confdefs.h <<\_ACEOF
27203 #define REENTRANT 1
27206 cat >>confdefs.h <<\_ACEOF
27207 #define _REENTRANT 1
27210 cat >>confdefs.h <<\_ACEOF
27211 #define THREAD_SAFE 1
27214 cat >>confdefs.h <<\_ACEOF
27215 #define _THREAD_SAFE 1
27218 cat >>confdefs.h <<\_ACEOF
27219 #define THREADSAFE 1
27222 cat >>confdefs.h <<\_ACEOF
27223 #define _THREADSAFE 1
27226 cat >>confdefs.h <<\_ACEOF
27227 #define _SGI_MP_SOURCE 1
27231 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27232 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27233 if test "${ol_cv_errno_thread_specific+set}" = set; then
27234 echo $ECHO_N "(cached) $ECHO_C" >&6
27237 cat >conftest.$ac_ext <<_ACEOF
27240 cat confdefs.h >>conftest.$ac_ext
27241 cat >>conftest.$ac_ext <<_ACEOF
27242 /* end confdefs.h. */
27252 rm -f conftest.$ac_objext conftest$ac_exeext
27253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27254 (eval $ac_link) 2>conftest.er1
27256 grep -v '^ *+' conftest.er1 >conftest.err
27258 cat conftest.err >&5
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); } &&
27261 { ac_try='test -z "$ac_c_werror_flag"
27262 || test ! -s conftest.err'
27263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264 (eval $ac_try) 2>&5
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); }; } &&
27268 { ac_try='test -s conftest$ac_exeext'
27269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27270 (eval $ac_try) 2>&5
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); }; }; then
27274 ol_cv_errno_thread_specific=yes
27276 echo "$as_me: failed program was:" >&5
27277 sed 's/^/| /' conftest.$ac_ext >&5
27279 ol_cv_errno_thread_specific=no
27281 rm -f conftest.err conftest.$ac_objext \
27282 conftest$ac_exeext conftest.$ac_ext
27285 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27286 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27288 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27289 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27290 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27291 echo $ECHO_N "(cached) $ECHO_C" >&6
27294 cat >conftest.$ac_ext <<_ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h. */
27309 rm -f conftest.$ac_objext conftest$ac_exeext
27310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27311 (eval $ac_link) 2>conftest.er1
27313 grep -v '^ *+' conftest.er1 >conftest.err
27315 cat conftest.err >&5
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 (exit $ac_status); } &&
27318 { ac_try='test -z "$ac_c_werror_flag"
27319 || test ! -s conftest.err'
27320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27321 (eval $ac_try) 2>&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); }; } &&
27325 { ac_try='test -s conftest$ac_exeext'
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; }; then
27331 ol_cv_h_errno_thread_specific=yes
27333 echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27336 ol_cv_h_errno_thread_specific=no
27338 rm -f conftest.err conftest.$ac_objext \
27339 conftest$ac_exeext conftest.$ac_ext
27342 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27343 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27345 if test $ol_cv_errno_thread_specific != yes ||
27346 test $ol_cv_h_errno_thread_specific != yes ; then
27347 LIBS="$LTHREAD_LIBS $LIBS"
27353 if test $ol_link_threads = no ; then
27354 if test $ol_with_threads = yes ; then
27355 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27356 echo "$as_me: error: no suitable thread support" >&2;}
27357 { (exit 1); exit 1; }; }
27360 if test $ol_with_threads = auto ; then
27361 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27362 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27367 cat >>confdefs.h <<\_ACEOF
27368 #define NO_THREADS 1
27377 if test $ol_link_threads != no ; then
27379 cat >>confdefs.h <<\_ACEOF
27380 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27390 gethostbyname_r gethostbyaddr_r \
27393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27394 echo "$as_me:$LINENO: checking for $ac_func" >&5
27395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27396 if eval "test \"\${$as_ac_var+set}\" = set"; then
27397 echo $ECHO_N "(cached) $ECHO_C" >&6
27399 cat >conftest.$ac_ext <<_ACEOF
27402 cat confdefs.h >>conftest.$ac_ext
27403 cat >>conftest.$ac_ext <<_ACEOF
27404 /* end confdefs.h. */
27405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27407 #define $ac_func innocuous_$ac_func
27409 /* System header to define __stub macros and hopefully few prototypes,
27410 which can conflict with char $ac_func (); below.
27411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27412 <limits.h> exists even on freestanding compilers. */
27415 # include <limits.h>
27417 # include <assert.h>
27422 /* Override any gcc2 internal prototype to avoid an error. */
27427 /* We use char because int might match the return type of a gcc2
27428 builtin and then its argument prototype would still apply. */
27430 /* The GNU C library defines this for functions which it implements
27431 to always fail with ENOSYS. Some functions are actually named
27432 something starting with __ and the normal name is an alias. */
27433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27436 char (*f) () = $ac_func;
27445 return f != $ac_func;
27450 rm -f conftest.$ac_objext conftest$ac_exeext
27451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27452 (eval $ac_link) 2>conftest.er1
27454 grep -v '^ *+' conftest.er1 >conftest.err
27456 cat conftest.err >&5
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } &&
27459 { ac_try='test -z "$ac_c_werror_flag"
27460 || test ! -s conftest.err'
27461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27462 (eval $ac_try) 2>&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); }; } &&
27466 { ac_try='test -s conftest$ac_exeext'
27467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27468 (eval $ac_try) 2>&5
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); }; }; then
27472 eval "$as_ac_var=yes"
27474 echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27477 eval "$as_ac_var=no"
27479 rm -f conftest.err conftest.$ac_objext \
27480 conftest$ac_exeext conftest.$ac_ext
27482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27484 if test `eval echo '${'$as_ac_var'}'` = yes; then
27485 cat >>confdefs.h <<_ACEOF
27486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27493 if test "$ac_cv_func_ctime_r" = no ; then
27494 ol_cv_func_ctime_r_nargs=0
27496 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27497 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27498 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27499 echo $ECHO_N "(cached) $ECHO_C" >&6
27501 cat >conftest.$ac_ext <<_ACEOF
27504 cat confdefs.h >>conftest.$ac_ext
27505 cat >>conftest.$ac_ext <<_ACEOF
27506 /* end confdefs.h. */
27511 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27516 rm -f conftest.$ac_objext
27517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27518 (eval $ac_compile) 2>conftest.er1
27520 grep -v '^ *+' conftest.er1 >conftest.err
27522 cat conftest.err >&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); } &&
27525 { ac_try='test -z "$ac_c_werror_flag"
27526 || test ! -s conftest.err'
27527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27528 (eval $ac_try) 2>&5
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); }; } &&
27532 { ac_try='test -s conftest.$ac_objext'
27533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27534 (eval $ac_try) 2>&5
27536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 (exit $ac_status); }; }; then
27538 ol_cv_func_ctime_r_nargs3=yes
27540 echo "$as_me: failed program was:" >&5
27541 sed 's/^/| /' conftest.$ac_ext >&5
27543 ol_cv_func_ctime_r_nargs3=no
27545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27547 cat >conftest.$ac_ext <<_ACEOF
27550 cat confdefs.h >>conftest.$ac_ext
27551 cat >>conftest.$ac_ext <<_ACEOF
27552 /* end confdefs.h. */
27557 time_t ti; char *buffer; ctime_r(&ti,buffer);
27562 rm -f conftest.$ac_objext
27563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27564 (eval $ac_compile) 2>conftest.er1
27566 grep -v '^ *+' conftest.er1 >conftest.err
27568 cat conftest.err >&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); } &&
27571 { ac_try='test -z "$ac_c_werror_flag"
27572 || test ! -s conftest.err'
27573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27574 (eval $ac_try) 2>&5
27576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577 (exit $ac_status); }; } &&
27578 { ac_try='test -s conftest.$ac_objext'
27579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27580 (eval $ac_try) 2>&5
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); }; }; then
27584 ol_cv_func_ctime_r_nargs2=yes
27586 echo "$as_me: failed program was:" >&5
27587 sed 's/^/| /' conftest.$ac_ext >&5
27589 ol_cv_func_ctime_r_nargs2=no
27591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27593 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27594 test $ol_cv_func_ctime_r_nargs2 = no ; then
27596 ol_cv_func_ctime_r_nargs=3
27598 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27599 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27601 ol_cv_func_ctime_r_nargs=2
27604 ol_cv_func_ctime_r_nargs=0
27608 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27609 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27611 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27613 cat >>confdefs.h <<_ACEOF
27614 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27621 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27622 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27623 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27624 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27625 echo $ECHO_N "(cached) $ECHO_C" >&6
27627 cat >conftest.$ac_ext <<_ACEOF
27630 cat confdefs.h >>conftest.$ac_ext
27631 cat >>conftest.$ac_ext <<_ACEOF
27632 /* end confdefs.h. */
27633 #include <sys/types.h>
27634 #include <sys/socket.h>
27635 #include <netinet/in.h>
27637 #define BUFSIZE (sizeof(struct hostent)+10)
27641 struct hostent hent; char buffer[BUFSIZE];
27642 int bufsize=BUFSIZE;int h_errno;
27643 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27644 buffer, bufsize, &h_errno);
27649 rm -f conftest.$ac_objext
27650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27651 (eval $ac_compile) 2>conftest.er1
27653 grep -v '^ *+' conftest.er1 >conftest.err
27655 cat conftest.err >&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); } &&
27658 { ac_try='test -z "$ac_c_werror_flag"
27659 || test ! -s conftest.err'
27660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27661 (eval $ac_try) 2>&5
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); }; } &&
27665 { ac_try='test -s conftest.$ac_objext'
27666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27667 (eval $ac_try) 2>&5
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); }; }; then
27671 ol_cv_func_gethostbyname_r_nargs5=yes
27673 echo "$as_me: failed program was:" >&5
27674 sed 's/^/| /' conftest.$ac_ext >&5
27676 ol_cv_func_gethostbyname_r_nargs5=no
27678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27680 cat >conftest.$ac_ext <<_ACEOF
27683 cat confdefs.h >>conftest.$ac_ext
27684 cat >>conftest.$ac_ext <<_ACEOF
27685 /* end confdefs.h. */
27686 #include <sys/types.h>
27687 #include <sys/socket.h>
27688 #include <netinet/in.h>
27690 #define BUFSIZE (sizeof(struct hostent)+10)
27694 struct hostent hent;struct hostent *rhent;
27695 char buffer[BUFSIZE];
27696 int bufsize=BUFSIZE;int h_errno;
27697 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27703 rm -f conftest.$ac_objext
27704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27705 (eval $ac_compile) 2>conftest.er1
27707 grep -v '^ *+' conftest.er1 >conftest.err
27709 cat conftest.err >&5
27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); } &&
27712 { ac_try='test -z "$ac_c_werror_flag"
27713 || test ! -s conftest.err'
27714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; } &&
27719 { ac_try='test -s conftest.$ac_objext'
27720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27721 (eval $ac_try) 2>&5
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); }; }; then
27725 ol_cv_func_gethostbyname_r_nargs6=yes
27727 echo "$as_me: failed program was:" >&5
27728 sed 's/^/| /' conftest.$ac_ext >&5
27730 ol_cv_func_gethostbyname_r_nargs6=no
27732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27734 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27735 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27737 ol_cv_func_gethostbyname_r_nargs=5
27739 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27740 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27742 ol_cv_func_gethostbyname_r_nargs=6
27745 ol_cv_func_gethostbyname_r_nargs=0
27749 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27750 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27751 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27753 cat >>confdefs.h <<_ACEOF
27754 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27760 ol_cv_func_gethostbyname_r_nargs=0
27763 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27764 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27765 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27766 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27767 echo $ECHO_N "(cached) $ECHO_C" >&6
27769 cat >conftest.$ac_ext <<_ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27775 #include <sys/types.h>
27776 #include <sys/socket.h>
27777 #include <netinet/in.h>
27779 #define BUFSIZE (sizeof(struct hostent)+10)
27783 struct hostent hent; char buffer[BUFSIZE];
27784 struct in_addr add;
27785 size_t alen=sizeof(struct in_addr);
27786 int bufsize=BUFSIZE;int h_errno;
27787 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27788 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27793 rm -f conftest.$ac_objext
27794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27795 (eval $ac_compile) 2>conftest.er1
27797 grep -v '^ *+' conftest.er1 >conftest.err
27799 cat conftest.err >&5
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); } &&
27802 { ac_try='test -z "$ac_c_werror_flag"
27803 || test ! -s conftest.err'
27804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27805 (eval $ac_try) 2>&5
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); }; } &&
27809 { ac_try='test -s conftest.$ac_objext'
27810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27811 (eval $ac_try) 2>&5
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); }; }; then
27815 ol_cv_func_gethostbyaddr_r_nargs7=yes
27817 echo "$as_me: failed program was:" >&5
27818 sed 's/^/| /' conftest.$ac_ext >&5
27820 ol_cv_func_gethostbyaddr_r_nargs7=no
27822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27824 cat >conftest.$ac_ext <<_ACEOF
27827 cat confdefs.h >>conftest.$ac_ext
27828 cat >>conftest.$ac_ext <<_ACEOF
27829 /* end confdefs.h. */
27830 #include <sys/types.h>
27831 #include <sys/socket.h>
27832 #include <netinet/in.h>
27834 #define BUFSIZE (sizeof(struct hostent)+10)
27838 struct hostent hent;
27839 struct hostent *rhent; char buffer[BUFSIZE];
27840 struct in_addr add;
27841 size_t alen=sizeof(struct in_addr);
27842 int bufsize=BUFSIZE;int h_errno;
27843 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27844 alen, AF_INET, &hent, buffer, bufsize,
27850 rm -f conftest.$ac_objext
27851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27852 (eval $ac_compile) 2>conftest.er1
27854 grep -v '^ *+' conftest.er1 >conftest.err
27856 cat conftest.err >&5
27857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858 (exit $ac_status); } &&
27859 { ac_try='test -z "$ac_c_werror_flag"
27860 || test ! -s conftest.err'
27861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27862 (eval $ac_try) 2>&5
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); }; } &&
27866 { ac_try='test -s conftest.$ac_objext'
27867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27868 (eval $ac_try) 2>&5
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); }; }; then
27872 ol_cv_func_gethostbyaddr_r_nargs8=yes
27874 echo "$as_me: failed program was:" >&5
27875 sed 's/^/| /' conftest.$ac_ext >&5
27877 ol_cv_func_gethostbyaddr_r_nargs8=no
27879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27881 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27882 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27884 ol_cv_func_gethostbyaddr_r_nargs=7
27886 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27887 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27889 ol_cv_func_gethostbyaddr_r_nargs=8
27892 ol_cv_func_gethostbyaddr_r_nargs=0
27896 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27897 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27898 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27900 cat >>confdefs.h <<_ACEOF
27901 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27907 ol_cv_func_gethostbyaddr_r_nargs=0
27912 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27914 if test $ol_enable_ldbm_api = bcompat; then \
27917 for ac_header in db_185.h db.h
27919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27921 echo "$as_me:$LINENO: checking for $ac_header" >&5
27922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27924 echo $ECHO_N "(cached) $ECHO_C" >&6
27926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27929 # Is the header compilable?
27930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27932 cat >conftest.$ac_ext <<_ACEOF
27935 cat confdefs.h >>conftest.$ac_ext
27936 cat >>conftest.$ac_ext <<_ACEOF
27937 /* end confdefs.h. */
27938 $ac_includes_default
27939 #include <$ac_header>
27941 rm -f conftest.$ac_objext
27942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27943 (eval $ac_compile) 2>conftest.er1
27945 grep -v '^ *+' conftest.er1 >conftest.err
27947 cat conftest.err >&5
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); } &&
27950 { ac_try='test -z "$ac_c_werror_flag"
27951 || test ! -s conftest.err'
27952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27953 (eval $ac_try) 2>&5
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); }; } &&
27957 { ac_try='test -s conftest.$ac_objext'
27958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27959 (eval $ac_try) 2>&5
27961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); }; }; then
27963 ac_header_compiler=yes
27965 echo "$as_me: failed program was:" >&5
27966 sed 's/^/| /' conftest.$ac_ext >&5
27968 ac_header_compiler=no
27970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27972 echo "${ECHO_T}$ac_header_compiler" >&6
27974 # Is the header present?
27975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27977 cat >conftest.$ac_ext <<_ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h. */
27983 #include <$ac_header>
27985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27988 grep -v '^ *+' conftest.er1 >conftest.err
27990 cat conftest.err >&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); } >/dev/null; then
27993 if test -s conftest.err; then
27994 ac_cpp_err=$ac_c_preproc_warn_flag
27995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28002 if test -z "$ac_cpp_err"; then
28003 ac_header_preproc=yes
28005 echo "$as_me: failed program was:" >&5
28006 sed 's/^/| /' conftest.$ac_ext >&5
28008 ac_header_preproc=no
28010 rm -f conftest.err conftest.$ac_ext
28011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28012 echo "${ECHO_T}$ac_header_preproc" >&6
28014 # So? What about this header?
28015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28021 ac_header_preproc=yes
28024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28038 ## --------------------------------------------- ##
28039 ## Report this to <http://www.openldap.org/its/> ##
28040 ## --------------------------------------------- ##
28043 sed "s/^/$as_me: WARNING: /" >&2
28046 echo "$as_me:$LINENO: checking for $ac_header" >&5
28047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28049 echo $ECHO_N "(cached) $ECHO_C" >&6
28051 eval "$as_ac_Header=\$ac_header_preproc"
28053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28058 cat >>confdefs.h <<_ACEOF
28059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28066 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
28067 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
28068 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
28069 if test "${ol_cv_header_db1+set}" = set; then
28070 echo $ECHO_N "(cached) $ECHO_C" >&6
28073 cat >conftest.$ac_ext <<_ACEOF
28076 cat confdefs.h >>conftest.$ac_ext
28077 cat >>conftest.$ac_ext <<_ACEOF
28078 /* end confdefs.h. */
28081 # include <db_185.h>
28086 /* this check could be improved */
28087 #ifndef DB_VERSION_MAJOR
28088 # define DB_VERSION_MAJOR 1
28091 #if DB_VERSION_MAJOR == 1
28096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28097 $EGREP "__db_version_1" >/dev/null 2>&1; then
28098 ol_cv_header_db1=yes
28100 ol_cv_header_db1=no
28105 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
28106 echo "${ECHO_T}$ol_cv_header_db1" >&6
28108 if test $ol_cv_header_db1 = yes ; then
28111 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
28112 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
28113 if test "${ol_cv_bdb_major+set}" = set; then
28114 echo $ECHO_N "(cached) $ECHO_C" >&6
28118 if test $ol_cv_bdb_major = 0 ; then
28119 cat >conftest.$ac_ext <<_ACEOF
28122 cat confdefs.h >>conftest.$ac_ext
28123 cat >>conftest.$ac_ext <<_ACEOF
28124 /* end confdefs.h. */
28127 #ifndef DB_VERSION_MAJOR
28128 # define DB_VERSION_MAJOR 1
28130 #if DB_VERSION_MAJOR == 4
28135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28136 $EGREP "__db_version" >/dev/null 2>&1; then
28144 if test $ol_cv_bdb_major = 0 ; then
28145 cat >conftest.$ac_ext <<_ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h. */
28153 #ifndef DB_VERSION_MAJOR
28154 # define DB_VERSION_MAJOR 1
28156 #if DB_VERSION_MAJOR == 3
28161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28162 $EGREP "__db_version" >/dev/null 2>&1; then
28170 if test $ol_cv_bdb_major = 0 ; then
28171 cat >conftest.$ac_ext <<_ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h. */
28179 #ifndef DB_VERSION_MAJOR
28180 # define DB_VERSION_MAJOR 1
28182 #if DB_VERSION_MAJOR == 2
28187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28188 $EGREP "__db_version" >/dev/null 2>&1; then
28196 if test $ol_cv_bdb_major = 0 ; then
28197 cat >conftest.$ac_ext <<_ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h. */
28205 #ifndef DB_VERSION_MAJOR
28206 # define DB_VERSION_MAJOR 1
28208 #if DB_VERSION_MAJOR == 1
28213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28214 $EGREP "__db_version" >/dev/null 2>&1; then
28223 if test $ol_cv_bdb_major = 0 ; then
28224 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28225 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28226 { (exit 1); exit 1; }; }
28230 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28231 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28233 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28234 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28235 if test "${ol_cv_bdb_minor+set}" = set; then
28236 echo $ECHO_N "(cached) $ECHO_C" >&6
28240 if test $ol_cv_bdb_minor = 0 ; then
28241 cat >conftest.$ac_ext <<_ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h. */
28249 #ifndef DB_VERSION_MINOR
28250 # define DB_VERSION_MINOR 0
28252 #if DB_VERSION_MINOR == 9
28257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28258 $EGREP "__db_version" >/dev/null 2>&1; then
28266 if test $ol_cv_bdb_minor = 0 ; then
28267 cat >conftest.$ac_ext <<_ACEOF
28270 cat confdefs.h >>conftest.$ac_ext
28271 cat >>conftest.$ac_ext <<_ACEOF
28272 /* end confdefs.h. */
28275 #ifndef DB_VERSION_MINOR
28276 # define DB_VERSION_MINOR 0
28278 #if DB_VERSION_MINOR == 8
28283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28284 $EGREP "__db_version" >/dev/null 2>&1; then
28292 if test $ol_cv_bdb_minor = 0 ; then
28293 cat >conftest.$ac_ext <<_ACEOF
28296 cat confdefs.h >>conftest.$ac_ext
28297 cat >>conftest.$ac_ext <<_ACEOF
28298 /* end confdefs.h. */
28301 #ifndef DB_VERSION_MINOR
28302 # define DB_VERSION_MINOR 0
28304 #if DB_VERSION_MINOR == 7
28309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28310 $EGREP "__db_version" >/dev/null 2>&1; then
28318 if test $ol_cv_bdb_minor = 0 ; then
28319 cat >conftest.$ac_ext <<_ACEOF
28322 cat confdefs.h >>conftest.$ac_ext
28323 cat >>conftest.$ac_ext <<_ACEOF
28324 /* end confdefs.h. */
28327 #ifndef DB_VERSION_MINOR
28328 # define DB_VERSION_MINOR 0
28330 #if DB_VERSION_MINOR == 6
28335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28336 $EGREP "__db_version" >/dev/null 2>&1; then
28344 if test $ol_cv_bdb_minor = 0 ; then
28345 cat >conftest.$ac_ext <<_ACEOF
28348 cat confdefs.h >>conftest.$ac_ext
28349 cat >>conftest.$ac_ext <<_ACEOF
28350 /* end confdefs.h. */
28353 #ifndef DB_VERSION_MINOR
28354 # define DB_VERSION_MINOR 0
28356 #if DB_VERSION_MINOR == 5
28361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28362 $EGREP "__db_version" >/dev/null 2>&1; then
28370 if test $ol_cv_bdb_minor = 0 ; then
28371 cat >conftest.$ac_ext <<_ACEOF
28374 cat confdefs.h >>conftest.$ac_ext
28375 cat >>conftest.$ac_ext <<_ACEOF
28376 /* end confdefs.h. */
28379 #ifndef DB_VERSION_MINOR
28380 # define DB_VERSION_MINOR 0
28382 #if DB_VERSION_MINOR == 4
28387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28388 $EGREP "__db_version" >/dev/null 2>&1; then
28396 if test $ol_cv_bdb_minor = 0 ; then
28397 cat >conftest.$ac_ext <<_ACEOF
28400 cat confdefs.h >>conftest.$ac_ext
28401 cat >>conftest.$ac_ext <<_ACEOF
28402 /* end confdefs.h. */
28405 #ifndef DB_VERSION_MINOR
28406 # define DB_VERSION_MINOR 0
28408 #if DB_VERSION_MINOR == 3
28413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28414 $EGREP "__db_version" >/dev/null 2>&1; then
28422 if test $ol_cv_bdb_minor = 0 ; then
28423 cat >conftest.$ac_ext <<_ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h. */
28431 #ifndef DB_VERSION_MINOR
28432 # define DB_VERSION_MINOR 0
28434 #if DB_VERSION_MINOR == 2
28439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28440 $EGREP "__db_version" >/dev/null 2>&1; then
28448 if test $ol_cv_bdb_minor = 0 ; then
28449 cat >conftest.$ac_ext <<_ACEOF
28452 cat confdefs.h >>conftest.$ac_ext
28453 cat >>conftest.$ac_ext <<_ACEOF
28454 /* end confdefs.h. */
28457 #ifndef DB_VERSION_MINOR
28458 # define DB_VERSION_MINOR 0
28460 #if DB_VERSION_MINOR == 1
28465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28466 $EGREP "__db_version" >/dev/null 2>&1; then
28476 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28477 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28479 if test $ol_cv_bdb_major = 4 ; then
28480 if test $ol_cv_bdb_minor = 4 ; then
28481 if test $ol_cv_lib_db = no ; then
28482 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28483 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28484 if test "${ol_cv_db_db44+set}" = set; then
28485 echo $ECHO_N "(cached) $ECHO_C" >&6
28490 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28492 cat >conftest.$ac_ext <<_ACEOF
28495 cat confdefs.h >>conftest.$ac_ext
28496 cat >>conftest.$ac_ext <<_ACEOF
28497 /* end confdefs.h. */
28499 #ifdef HAVE_DB_185_H
28500 # include <db_185.h>
28505 #ifndef DB_VERSION_MAJOR
28506 # define DB_VERSION_MAJOR 1
28510 #define NULL ((void*)0)
28517 #if DB_VERSION_MAJOR > 1
28520 int major, minor, patch;
28522 version = db_version( &major, &minor, &patch );
28524 if( major != DB_VERSION_MAJOR ||
28525 minor < DB_VERSION_MINOR )
28527 printf("Berkeley DB version mismatch\n"
28528 "\theader: %s\n\tlibrary: %s\n",
28529 DB_VERSION_STRING, version);
28535 #if DB_VERSION_MAJOR > 2
28536 db_env_create( NULL, 0 );
28537 #elif DB_VERSION_MAJOR > 1
28538 db_appexit( NULL );
28540 (void) dbopen( NULL, 0, 0, 0, NULL);
28547 rm -f conftest.$ac_objext conftest$ac_exeext
28548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28549 (eval $ac_link) 2>conftest.er1
28551 grep -v '^ *+' conftest.er1 >conftest.err
28553 cat conftest.err >&5
28554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555 (exit $ac_status); } &&
28556 { ac_try='test -z "$ac_c_werror_flag"
28557 || test ! -s conftest.err'
28558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28559 (eval $ac_try) 2>&5
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); }; } &&
28563 { ac_try='test -s conftest$ac_exeext'
28564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28565 (eval $ac_try) 2>&5
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); }; }; then
28571 echo "$as_me: failed program was:" >&5
28572 sed 's/^/| /' conftest.$ac_ext >&5
28576 rm -f conftest.err conftest.$ac_objext \
28577 conftest$ac_exeext conftest.$ac_ext
28582 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28583 echo "${ECHO_T}$ol_cv_db_db44" >&6
28585 if test $ol_cv_db_db44 = yes ; then
28586 ol_cv_lib_db=-ldb44
28590 if test $ol_cv_lib_db = no ; then
28591 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28592 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28593 if test "${ol_cv_db_db_44+set}" = set; then
28594 echo $ECHO_N "(cached) $ECHO_C" >&6
28599 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28601 cat >conftest.$ac_ext <<_ACEOF
28604 cat confdefs.h >>conftest.$ac_ext
28605 cat >>conftest.$ac_ext <<_ACEOF
28606 /* end confdefs.h. */
28608 #ifdef HAVE_DB_185_H
28609 # include <db_185.h>
28614 #ifndef DB_VERSION_MAJOR
28615 # define DB_VERSION_MAJOR 1
28619 #define NULL ((void*)0)
28626 #if DB_VERSION_MAJOR > 1
28629 int major, minor, patch;
28631 version = db_version( &major, &minor, &patch );
28633 if( major != DB_VERSION_MAJOR ||
28634 minor < DB_VERSION_MINOR )
28636 printf("Berkeley DB version mismatch\n"
28637 "\theader: %s\n\tlibrary: %s\n",
28638 DB_VERSION_STRING, version);
28644 #if DB_VERSION_MAJOR > 2
28645 db_env_create( NULL, 0 );
28646 #elif DB_VERSION_MAJOR > 1
28647 db_appexit( NULL );
28649 (void) dbopen( NULL, 0, 0, 0, NULL);
28656 rm -f conftest.$ac_objext conftest$ac_exeext
28657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28658 (eval $ac_link) 2>conftest.er1
28660 grep -v '^ *+' conftest.er1 >conftest.err
28662 cat conftest.err >&5
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); } &&
28665 { ac_try='test -z "$ac_c_werror_flag"
28666 || test ! -s conftest.err'
28667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28668 (eval $ac_try) 2>&5
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); }; } &&
28672 { ac_try='test -s conftest$ac_exeext'
28673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28674 (eval $ac_try) 2>&5
28676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677 (exit $ac_status); }; }; then
28680 echo "$as_me: failed program was:" >&5
28681 sed 's/^/| /' conftest.$ac_ext >&5
28685 rm -f conftest.err conftest.$ac_objext \
28686 conftest$ac_exeext conftest.$ac_ext
28691 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28692 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28694 if test $ol_cv_db_db_44 = yes ; then
28695 ol_cv_lib_db=-ldb-44
28699 if test $ol_cv_lib_db = no ; then
28700 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28701 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28702 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28708 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28710 cat >conftest.$ac_ext <<_ACEOF
28713 cat confdefs.h >>conftest.$ac_ext
28714 cat >>conftest.$ac_ext <<_ACEOF
28715 /* end confdefs.h. */
28717 #ifdef HAVE_DB_185_H
28718 # include <db_185.h>
28723 #ifndef DB_VERSION_MAJOR
28724 # define DB_VERSION_MAJOR 1
28728 #define NULL ((void*)0)
28735 #if DB_VERSION_MAJOR > 1
28738 int major, minor, patch;
28740 version = db_version( &major, &minor, &patch );
28742 if( major != DB_VERSION_MAJOR ||
28743 minor < DB_VERSION_MINOR )
28745 printf("Berkeley DB version mismatch\n"
28746 "\theader: %s\n\tlibrary: %s\n",
28747 DB_VERSION_STRING, version);
28753 #if DB_VERSION_MAJOR > 2
28754 db_env_create( NULL, 0 );
28755 #elif DB_VERSION_MAJOR > 1
28756 db_appexit( NULL );
28758 (void) dbopen( NULL, 0, 0, 0, NULL);
28765 rm -f conftest.$ac_objext conftest$ac_exeext
28766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28767 (eval $ac_link) 2>conftest.er1
28769 grep -v '^ *+' conftest.er1 >conftest.err
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } &&
28774 { ac_try='test -z "$ac_c_werror_flag"
28775 || test ! -s conftest.err'
28776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28777 (eval $ac_try) 2>&5
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); }; } &&
28781 { ac_try='test -s conftest$ac_exeext'
28782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28783 (eval $ac_try) 2>&5
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); }; }; then
28787 ol_cv_db_db_4_dot_4=yes
28789 echo "$as_me: failed program was:" >&5
28790 sed 's/^/| /' conftest.$ac_ext >&5
28792 ol_cv_db_db_4_dot_4=no
28794 rm -f conftest.err conftest.$ac_objext \
28795 conftest$ac_exeext conftest.$ac_ext
28800 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28801 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28803 if test $ol_cv_db_db_4_dot_4 = yes ; then
28804 ol_cv_lib_db=-ldb-4.4
28808 if test $ol_cv_lib_db = no ; then
28809 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28810 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28811 if test "${ol_cv_db_db_4_4+set}" = set; then
28812 echo $ECHO_N "(cached) $ECHO_C" >&6
28817 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28819 cat >conftest.$ac_ext <<_ACEOF
28822 cat confdefs.h >>conftest.$ac_ext
28823 cat >>conftest.$ac_ext <<_ACEOF
28824 /* end confdefs.h. */
28826 #ifdef HAVE_DB_185_H
28827 # include <db_185.h>
28832 #ifndef DB_VERSION_MAJOR
28833 # define DB_VERSION_MAJOR 1
28837 #define NULL ((void*)0)
28844 #if DB_VERSION_MAJOR > 1
28847 int major, minor, patch;
28849 version = db_version( &major, &minor, &patch );
28851 if( major != DB_VERSION_MAJOR ||
28852 minor < DB_VERSION_MINOR )
28854 printf("Berkeley DB version mismatch\n"
28855 "\theader: %s\n\tlibrary: %s\n",
28856 DB_VERSION_STRING, version);
28862 #if DB_VERSION_MAJOR > 2
28863 db_env_create( NULL, 0 );
28864 #elif DB_VERSION_MAJOR > 1
28865 db_appexit( NULL );
28867 (void) dbopen( NULL, 0, 0, 0, NULL);
28874 rm -f conftest.$ac_objext conftest$ac_exeext
28875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28876 (eval $ac_link) 2>conftest.er1
28878 grep -v '^ *+' conftest.er1 >conftest.err
28880 cat conftest.err >&5
28881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882 (exit $ac_status); } &&
28883 { ac_try='test -z "$ac_c_werror_flag"
28884 || test ! -s conftest.err'
28885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28886 (eval $ac_try) 2>&5
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); }; } &&
28890 { ac_try='test -s conftest$ac_exeext'
28891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28892 (eval $ac_try) 2>&5
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); }; }; then
28896 ol_cv_db_db_4_4=yes
28898 echo "$as_me: failed program was:" >&5
28899 sed 's/^/| /' conftest.$ac_ext >&5
28903 rm -f conftest.err conftest.$ac_objext \
28904 conftest$ac_exeext conftest.$ac_ext
28909 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28910 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28912 if test $ol_cv_db_db_4_4 = yes ; then
28913 ol_cv_lib_db=-ldb-4-4
28917 elif test $ol_cv_bdb_minor = 3 ; then
28918 if test $ol_cv_lib_db = no ; then
28919 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28920 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28921 if test "${ol_cv_db_db43+set}" = set; then
28922 echo $ECHO_N "(cached) $ECHO_C" >&6
28927 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28929 cat >conftest.$ac_ext <<_ACEOF
28932 cat confdefs.h >>conftest.$ac_ext
28933 cat >>conftest.$ac_ext <<_ACEOF
28934 /* end confdefs.h. */
28936 #ifdef HAVE_DB_185_H
28937 # include <db_185.h>
28942 #ifndef DB_VERSION_MAJOR
28943 # define DB_VERSION_MAJOR 1
28947 #define NULL ((void*)0)
28954 #if DB_VERSION_MAJOR > 1
28957 int major, minor, patch;
28959 version = db_version( &major, &minor, &patch );
28961 if( major != DB_VERSION_MAJOR ||
28962 minor < DB_VERSION_MINOR )
28964 printf("Berkeley DB version mismatch\n"
28965 "\theader: %s\n\tlibrary: %s\n",
28966 DB_VERSION_STRING, version);
28972 #if DB_VERSION_MAJOR > 2
28973 db_env_create( NULL, 0 );
28974 #elif DB_VERSION_MAJOR > 1
28975 db_appexit( NULL );
28977 (void) dbopen( NULL, 0, 0, 0, NULL);
28984 rm -f conftest.$ac_objext conftest$ac_exeext
28985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28986 (eval $ac_link) 2>conftest.er1
28988 grep -v '^ *+' conftest.er1 >conftest.err
28990 cat conftest.err >&5
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); } &&
28993 { ac_try='test -z "$ac_c_werror_flag"
28994 || test ! -s conftest.err'
28995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996 (eval $ac_try) 2>&5
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); }; } &&
29000 { ac_try='test -s conftest$ac_exeext'
29001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002 (eval $ac_try) 2>&5
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); }; }; then
29008 echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29013 rm -f conftest.err conftest.$ac_objext \
29014 conftest$ac_exeext conftest.$ac_ext
29019 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
29020 echo "${ECHO_T}$ol_cv_db_db43" >&6
29022 if test $ol_cv_db_db43 = yes ; then
29023 ol_cv_lib_db=-ldb43
29027 if test $ol_cv_lib_db = no ; then
29028 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
29029 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
29030 if test "${ol_cv_db_db_43+set}" = set; then
29031 echo $ECHO_N "(cached) $ECHO_C" >&6
29036 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29038 cat >conftest.$ac_ext <<_ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h. */
29045 #ifdef HAVE_DB_185_H
29046 # include <db_185.h>
29051 #ifndef DB_VERSION_MAJOR
29052 # define DB_VERSION_MAJOR 1
29056 #define NULL ((void*)0)
29063 #if DB_VERSION_MAJOR > 1
29066 int major, minor, patch;
29068 version = db_version( &major, &minor, &patch );
29070 if( major != DB_VERSION_MAJOR ||
29071 minor < DB_VERSION_MINOR )
29073 printf("Berkeley DB version mismatch\n"
29074 "\theader: %s\n\tlibrary: %s\n",
29075 DB_VERSION_STRING, version);
29081 #if DB_VERSION_MAJOR > 2
29082 db_env_create( NULL, 0 );
29083 #elif DB_VERSION_MAJOR > 1
29084 db_appexit( NULL );
29086 (void) dbopen( NULL, 0, 0, 0, NULL);
29093 rm -f conftest.$ac_objext conftest$ac_exeext
29094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29095 (eval $ac_link) 2>conftest.er1
29097 grep -v '^ *+' conftest.er1 >conftest.err
29099 cat conftest.err >&5
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); } &&
29102 { ac_try='test -z "$ac_c_werror_flag"
29103 || test ! -s conftest.err'
29104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29105 (eval $ac_try) 2>&5
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; } &&
29109 { ac_try='test -s conftest$ac_exeext'
29110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29111 (eval $ac_try) 2>&5
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); }; }; then
29117 echo "$as_me: failed program was:" >&5
29118 sed 's/^/| /' conftest.$ac_ext >&5
29122 rm -f conftest.err conftest.$ac_objext \
29123 conftest$ac_exeext conftest.$ac_ext
29128 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
29129 echo "${ECHO_T}$ol_cv_db_db_43" >&6
29131 if test $ol_cv_db_db_43 = yes ; then
29132 ol_cv_lib_db=-ldb-43
29136 if test $ol_cv_lib_db = no ; then
29137 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29138 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29139 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29145 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29147 cat >conftest.$ac_ext <<_ACEOF
29150 cat confdefs.h >>conftest.$ac_ext
29151 cat >>conftest.$ac_ext <<_ACEOF
29152 /* end confdefs.h. */
29154 #ifdef HAVE_DB_185_H
29155 # include <db_185.h>
29160 #ifndef DB_VERSION_MAJOR
29161 # define DB_VERSION_MAJOR 1
29165 #define NULL ((void*)0)
29172 #if DB_VERSION_MAJOR > 1
29175 int major, minor, patch;
29177 version = db_version( &major, &minor, &patch );
29179 if( major != DB_VERSION_MAJOR ||
29180 minor < DB_VERSION_MINOR )
29182 printf("Berkeley DB version mismatch\n"
29183 "\theader: %s\n\tlibrary: %s\n",
29184 DB_VERSION_STRING, version);
29190 #if DB_VERSION_MAJOR > 2
29191 db_env_create( NULL, 0 );
29192 #elif DB_VERSION_MAJOR > 1
29193 db_appexit( NULL );
29195 (void) dbopen( NULL, 0, 0, 0, NULL);
29202 rm -f conftest.$ac_objext conftest$ac_exeext
29203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29204 (eval $ac_link) 2>conftest.er1
29206 grep -v '^ *+' conftest.er1 >conftest.err
29208 cat conftest.err >&5
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); } &&
29211 { ac_try='test -z "$ac_c_werror_flag"
29212 || test ! -s conftest.err'
29213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29214 (eval $ac_try) 2>&5
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); }; } &&
29218 { ac_try='test -s conftest$ac_exeext'
29219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29220 (eval $ac_try) 2>&5
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); }; }; then
29224 ol_cv_db_db_4_dot_3=yes
29226 echo "$as_me: failed program was:" >&5
29227 sed 's/^/| /' conftest.$ac_ext >&5
29229 ol_cv_db_db_4_dot_3=no
29231 rm -f conftest.err conftest.$ac_objext \
29232 conftest$ac_exeext conftest.$ac_ext
29237 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29238 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29240 if test $ol_cv_db_db_4_dot_3 = yes ; then
29241 ol_cv_lib_db=-ldb-4.3
29245 if test $ol_cv_lib_db = no ; then
29246 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29247 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29248 if test "${ol_cv_db_db_4_3+set}" = set; then
29249 echo $ECHO_N "(cached) $ECHO_C" >&6
29254 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29256 cat >conftest.$ac_ext <<_ACEOF
29259 cat confdefs.h >>conftest.$ac_ext
29260 cat >>conftest.$ac_ext <<_ACEOF
29261 /* end confdefs.h. */
29263 #ifdef HAVE_DB_185_H
29264 # include <db_185.h>
29269 #ifndef DB_VERSION_MAJOR
29270 # define DB_VERSION_MAJOR 1
29274 #define NULL ((void*)0)
29281 #if DB_VERSION_MAJOR > 1
29284 int major, minor, patch;
29286 version = db_version( &major, &minor, &patch );
29288 if( major != DB_VERSION_MAJOR ||
29289 minor < DB_VERSION_MINOR )
29291 printf("Berkeley DB version mismatch\n"
29292 "\theader: %s\n\tlibrary: %s\n",
29293 DB_VERSION_STRING, version);
29299 #if DB_VERSION_MAJOR > 2
29300 db_env_create( NULL, 0 );
29301 #elif DB_VERSION_MAJOR > 1
29302 db_appexit( NULL );
29304 (void) dbopen( NULL, 0, 0, 0, NULL);
29311 rm -f conftest.$ac_objext conftest$ac_exeext
29312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29313 (eval $ac_link) 2>conftest.er1
29315 grep -v '^ *+' conftest.er1 >conftest.err
29317 cat conftest.err >&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } &&
29320 { ac_try='test -z "$ac_c_werror_flag"
29321 || test ! -s conftest.err'
29322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323 (eval $ac_try) 2>&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); }; } &&
29327 { ac_try='test -s conftest$ac_exeext'
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; }; then
29333 ol_cv_db_db_4_3=yes
29335 echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29340 rm -f conftest.err conftest.$ac_objext \
29341 conftest$ac_exeext conftest.$ac_ext
29346 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29347 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29349 if test $ol_cv_db_db_4_3 = yes ; then
29350 ol_cv_lib_db=-ldb-4-3
29354 elif test $ol_cv_bdb_minor = 2 ; then
29355 if test $ol_cv_lib_db = no ; then
29356 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29357 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29358 if test "${ol_cv_db_db42+set}" = set; then
29359 echo $ECHO_N "(cached) $ECHO_C" >&6
29364 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29366 cat >conftest.$ac_ext <<_ACEOF
29369 cat confdefs.h >>conftest.$ac_ext
29370 cat >>conftest.$ac_ext <<_ACEOF
29371 /* end confdefs.h. */
29373 #ifdef HAVE_DB_185_H
29374 # include <db_185.h>
29379 #ifndef DB_VERSION_MAJOR
29380 # define DB_VERSION_MAJOR 1
29384 #define NULL ((void*)0)
29391 #if DB_VERSION_MAJOR > 1
29394 int major, minor, patch;
29396 version = db_version( &major, &minor, &patch );
29398 if( major != DB_VERSION_MAJOR ||
29399 minor < DB_VERSION_MINOR )
29401 printf("Berkeley DB version mismatch\n"
29402 "\theader: %s\n\tlibrary: %s\n",
29403 DB_VERSION_STRING, version);
29409 #if DB_VERSION_MAJOR > 2
29410 db_env_create( NULL, 0 );
29411 #elif DB_VERSION_MAJOR > 1
29412 db_appexit( NULL );
29414 (void) dbopen( NULL, 0, 0, 0, NULL);
29421 rm -f conftest.$ac_objext conftest$ac_exeext
29422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29423 (eval $ac_link) 2>conftest.er1
29425 grep -v '^ *+' conftest.er1 >conftest.err
29427 cat conftest.err >&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } &&
29430 { ac_try='test -z "$ac_c_werror_flag"
29431 || test ! -s conftest.err'
29432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433 (eval $ac_try) 2>&5
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; } &&
29437 { ac_try='test -s conftest$ac_exeext'
29438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29439 (eval $ac_try) 2>&5
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); }; }; then
29445 echo "$as_me: failed program was:" >&5
29446 sed 's/^/| /' conftest.$ac_ext >&5
29450 rm -f conftest.err conftest.$ac_objext \
29451 conftest$ac_exeext conftest.$ac_ext
29456 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29457 echo "${ECHO_T}$ol_cv_db_db42" >&6
29459 if test $ol_cv_db_db42 = yes ; then
29460 ol_cv_lib_db=-ldb42
29464 if test $ol_cv_lib_db = no ; then
29465 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29466 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29467 if test "${ol_cv_db_db_42+set}" = set; then
29468 echo $ECHO_N "(cached) $ECHO_C" >&6
29473 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29475 cat >conftest.$ac_ext <<_ACEOF
29478 cat confdefs.h >>conftest.$ac_ext
29479 cat >>conftest.$ac_ext <<_ACEOF
29480 /* end confdefs.h. */
29482 #ifdef HAVE_DB_185_H
29483 # include <db_185.h>
29488 #ifndef DB_VERSION_MAJOR
29489 # define DB_VERSION_MAJOR 1
29493 #define NULL ((void*)0)
29500 #if DB_VERSION_MAJOR > 1
29503 int major, minor, patch;
29505 version = db_version( &major, &minor, &patch );
29507 if( major != DB_VERSION_MAJOR ||
29508 minor < DB_VERSION_MINOR )
29510 printf("Berkeley DB version mismatch\n"
29511 "\theader: %s\n\tlibrary: %s\n",
29512 DB_VERSION_STRING, version);
29518 #if DB_VERSION_MAJOR > 2
29519 db_env_create( NULL, 0 );
29520 #elif DB_VERSION_MAJOR > 1
29521 db_appexit( NULL );
29523 (void) dbopen( NULL, 0, 0, 0, NULL);
29530 rm -f conftest.$ac_objext conftest$ac_exeext
29531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29532 (eval $ac_link) 2>conftest.er1
29534 grep -v '^ *+' conftest.er1 >conftest.err
29536 cat conftest.err >&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); } &&
29539 { ac_try='test -z "$ac_c_werror_flag"
29540 || test ! -s conftest.err'
29541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29542 (eval $ac_try) 2>&5
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); }; } &&
29546 { ac_try='test -s conftest$ac_exeext'
29547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29548 (eval $ac_try) 2>&5
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); }; }; then
29554 echo "$as_me: failed program was:" >&5
29555 sed 's/^/| /' conftest.$ac_ext >&5
29559 rm -f conftest.err conftest.$ac_objext \
29560 conftest$ac_exeext conftest.$ac_ext
29565 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29566 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29568 if test $ol_cv_db_db_42 = yes ; then
29569 ol_cv_lib_db=-ldb-42
29573 if test $ol_cv_lib_db = no ; then
29574 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29575 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29576 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29577 echo $ECHO_N "(cached) $ECHO_C" >&6
29582 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29584 cat >conftest.$ac_ext <<_ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h. */
29591 #ifdef HAVE_DB_185_H
29592 # include <db_185.h>
29597 #ifndef DB_VERSION_MAJOR
29598 # define DB_VERSION_MAJOR 1
29602 #define NULL ((void*)0)
29609 #if DB_VERSION_MAJOR > 1
29612 int major, minor, patch;
29614 version = db_version( &major, &minor, &patch );
29616 if( major != DB_VERSION_MAJOR ||
29617 minor < DB_VERSION_MINOR )
29619 printf("Berkeley DB version mismatch\n"
29620 "\theader: %s\n\tlibrary: %s\n",
29621 DB_VERSION_STRING, version);
29627 #if DB_VERSION_MAJOR > 2
29628 db_env_create( NULL, 0 );
29629 #elif DB_VERSION_MAJOR > 1
29630 db_appexit( NULL );
29632 (void) dbopen( NULL, 0, 0, 0, NULL);
29639 rm -f conftest.$ac_objext conftest$ac_exeext
29640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29641 (eval $ac_link) 2>conftest.er1
29643 grep -v '^ *+' conftest.er1 >conftest.err
29645 cat conftest.err >&5
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); } &&
29648 { ac_try='test -z "$ac_c_werror_flag"
29649 || test ! -s conftest.err'
29650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29651 (eval $ac_try) 2>&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); }; } &&
29655 { ac_try='test -s conftest$ac_exeext'
29656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29657 (eval $ac_try) 2>&5
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); }; }; then
29661 ol_cv_db_db_4_dot_2=yes
29663 echo "$as_me: failed program was:" >&5
29664 sed 's/^/| /' conftest.$ac_ext >&5
29666 ol_cv_db_db_4_dot_2=no
29668 rm -f conftest.err conftest.$ac_objext \
29669 conftest$ac_exeext conftest.$ac_ext
29674 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29675 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29677 if test $ol_cv_db_db_4_dot_2 = yes ; then
29678 ol_cv_lib_db=-ldb-4.2
29682 if test $ol_cv_lib_db = no ; then
29683 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29684 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29685 if test "${ol_cv_db_db_4_2+set}" = set; then
29686 echo $ECHO_N "(cached) $ECHO_C" >&6
29691 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29693 cat >conftest.$ac_ext <<_ACEOF
29696 cat confdefs.h >>conftest.$ac_ext
29697 cat >>conftest.$ac_ext <<_ACEOF
29698 /* end confdefs.h. */
29700 #ifdef HAVE_DB_185_H
29701 # include <db_185.h>
29706 #ifndef DB_VERSION_MAJOR
29707 # define DB_VERSION_MAJOR 1
29711 #define NULL ((void*)0)
29718 #if DB_VERSION_MAJOR > 1
29721 int major, minor, patch;
29723 version = db_version( &major, &minor, &patch );
29725 if( major != DB_VERSION_MAJOR ||
29726 minor < DB_VERSION_MINOR )
29728 printf("Berkeley DB version mismatch\n"
29729 "\theader: %s\n\tlibrary: %s\n",
29730 DB_VERSION_STRING, version);
29736 #if DB_VERSION_MAJOR > 2
29737 db_env_create( NULL, 0 );
29738 #elif DB_VERSION_MAJOR > 1
29739 db_appexit( NULL );
29741 (void) dbopen( NULL, 0, 0, 0, NULL);
29748 rm -f conftest.$ac_objext conftest$ac_exeext
29749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29750 (eval $ac_link) 2>conftest.er1
29752 grep -v '^ *+' conftest.er1 >conftest.err
29754 cat conftest.err >&5
29755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756 (exit $ac_status); } &&
29757 { ac_try='test -z "$ac_c_werror_flag"
29758 || test ! -s conftest.err'
29759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29760 (eval $ac_try) 2>&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); }; } &&
29764 { ac_try='test -s conftest$ac_exeext'
29765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766 (eval $ac_try) 2>&5
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; }; then
29770 ol_cv_db_db_4_2=yes
29772 echo "$as_me: failed program was:" >&5
29773 sed 's/^/| /' conftest.$ac_ext >&5
29777 rm -f conftest.err conftest.$ac_objext \
29778 conftest$ac_exeext conftest.$ac_ext
29783 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29784 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29786 if test $ol_cv_db_db_4_2 = yes ; then
29787 ol_cv_lib_db=-ldb-4-2
29791 elif test $ol_cv_bdb_minor = 1 ; then
29792 if test $ol_cv_lib_db = no ; then
29793 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29794 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29795 if test "${ol_cv_db_db41+set}" = set; then
29796 echo $ECHO_N "(cached) $ECHO_C" >&6
29801 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29803 cat >conftest.$ac_ext <<_ACEOF
29806 cat confdefs.h >>conftest.$ac_ext
29807 cat >>conftest.$ac_ext <<_ACEOF
29808 /* end confdefs.h. */
29810 #ifdef HAVE_DB_185_H
29811 # include <db_185.h>
29816 #ifndef DB_VERSION_MAJOR
29817 # define DB_VERSION_MAJOR 1
29821 #define NULL ((void*)0)
29828 #if DB_VERSION_MAJOR > 1
29831 int major, minor, patch;
29833 version = db_version( &major, &minor, &patch );
29835 if( major != DB_VERSION_MAJOR ||
29836 minor < DB_VERSION_MINOR )
29838 printf("Berkeley DB version mismatch\n"
29839 "\theader: %s\n\tlibrary: %s\n",
29840 DB_VERSION_STRING, version);
29846 #if DB_VERSION_MAJOR > 2
29847 db_env_create( NULL, 0 );
29848 #elif DB_VERSION_MAJOR > 1
29849 db_appexit( NULL );
29851 (void) dbopen( NULL, 0, 0, 0, NULL);
29858 rm -f conftest.$ac_objext conftest$ac_exeext
29859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29860 (eval $ac_link) 2>conftest.er1
29862 grep -v '^ *+' conftest.er1 >conftest.err
29864 cat conftest.err >&5
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); } &&
29867 { ac_try='test -z "$ac_c_werror_flag"
29868 || test ! -s conftest.err'
29869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870 (eval $ac_try) 2>&5
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; } &&
29874 { ac_try='test -s conftest$ac_exeext'
29875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29876 (eval $ac_try) 2>&5
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); }; }; then
29882 echo "$as_me: failed program was:" >&5
29883 sed 's/^/| /' conftest.$ac_ext >&5
29887 rm -f conftest.err conftest.$ac_objext \
29888 conftest$ac_exeext conftest.$ac_ext
29893 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29894 echo "${ECHO_T}$ol_cv_db_db41" >&6
29896 if test $ol_cv_db_db41 = yes ; then
29897 ol_cv_lib_db=-ldb41
29901 if test $ol_cv_lib_db = no ; then
29902 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29903 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29904 if test "${ol_cv_db_db_41+set}" = set; then
29905 echo $ECHO_N "(cached) $ECHO_C" >&6
29910 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29912 cat >conftest.$ac_ext <<_ACEOF
29915 cat confdefs.h >>conftest.$ac_ext
29916 cat >>conftest.$ac_ext <<_ACEOF
29917 /* end confdefs.h. */
29919 #ifdef HAVE_DB_185_H
29920 # include <db_185.h>
29925 #ifndef DB_VERSION_MAJOR
29926 # define DB_VERSION_MAJOR 1
29930 #define NULL ((void*)0)
29937 #if DB_VERSION_MAJOR > 1
29940 int major, minor, patch;
29942 version = db_version( &major, &minor, &patch );
29944 if( major != DB_VERSION_MAJOR ||
29945 minor < DB_VERSION_MINOR )
29947 printf("Berkeley DB version mismatch\n"
29948 "\theader: %s\n\tlibrary: %s\n",
29949 DB_VERSION_STRING, version);
29955 #if DB_VERSION_MAJOR > 2
29956 db_env_create( NULL, 0 );
29957 #elif DB_VERSION_MAJOR > 1
29958 db_appexit( NULL );
29960 (void) dbopen( NULL, 0, 0, 0, NULL);
29967 rm -f conftest.$ac_objext conftest$ac_exeext
29968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29969 (eval $ac_link) 2>conftest.er1
29971 grep -v '^ *+' conftest.er1 >conftest.err
29973 cat conftest.err >&5
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); } &&
29976 { ac_try='test -z "$ac_c_werror_flag"
29977 || test ! -s conftest.err'
29978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29979 (eval $ac_try) 2>&5
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; } &&
29983 { ac_try='test -s conftest$ac_exeext'
29984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29985 (eval $ac_try) 2>&5
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); }; }; then
29991 echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.$ac_ext >&5
29996 rm -f conftest.err conftest.$ac_objext \
29997 conftest$ac_exeext conftest.$ac_ext
30002 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
30003 echo "${ECHO_T}$ol_cv_db_db_41" >&6
30005 if test $ol_cv_db_db_41 = yes ; then
30006 ol_cv_lib_db=-ldb-41
30010 if test $ol_cv_lib_db = no ; then
30011 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
30012 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
30013 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
30014 echo $ECHO_N "(cached) $ECHO_C" >&6
30019 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30021 cat >conftest.$ac_ext <<_ACEOF
30024 cat confdefs.h >>conftest.$ac_ext
30025 cat >>conftest.$ac_ext <<_ACEOF
30026 /* end confdefs.h. */
30028 #ifdef HAVE_DB_185_H
30029 # include <db_185.h>
30034 #ifndef DB_VERSION_MAJOR
30035 # define DB_VERSION_MAJOR 1
30039 #define NULL ((void*)0)
30046 #if DB_VERSION_MAJOR > 1
30049 int major, minor, patch;
30051 version = db_version( &major, &minor, &patch );
30053 if( major != DB_VERSION_MAJOR ||
30054 minor < DB_VERSION_MINOR )
30056 printf("Berkeley DB version mismatch\n"
30057 "\theader: %s\n\tlibrary: %s\n",
30058 DB_VERSION_STRING, version);
30064 #if DB_VERSION_MAJOR > 2
30065 db_env_create( NULL, 0 );
30066 #elif DB_VERSION_MAJOR > 1
30067 db_appexit( NULL );
30069 (void) dbopen( NULL, 0, 0, 0, NULL);
30076 rm -f conftest.$ac_objext conftest$ac_exeext
30077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30078 (eval $ac_link) 2>conftest.er1
30080 grep -v '^ *+' conftest.er1 >conftest.err
30082 cat conftest.err >&5
30083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084 (exit $ac_status); } &&
30085 { ac_try='test -z "$ac_c_werror_flag"
30086 || test ! -s conftest.err'
30087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30088 (eval $ac_try) 2>&5
30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091 (exit $ac_status); }; } &&
30092 { ac_try='test -s conftest$ac_exeext'
30093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30094 (eval $ac_try) 2>&5
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); }; }; then
30098 ol_cv_db_db_4_dot_1=yes
30100 echo "$as_me: failed program was:" >&5
30101 sed 's/^/| /' conftest.$ac_ext >&5
30103 ol_cv_db_db_4_dot_1=no
30105 rm -f conftest.err conftest.$ac_objext \
30106 conftest$ac_exeext conftest.$ac_ext
30111 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
30112 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
30114 if test $ol_cv_db_db_4_dot_1 = yes ; then
30115 ol_cv_lib_db=-ldb-4.1
30119 if test $ol_cv_lib_db = no ; then
30120 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
30121 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
30122 if test "${ol_cv_db_db_4_1+set}" = set; then
30123 echo $ECHO_N "(cached) $ECHO_C" >&6
30128 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30130 cat >conftest.$ac_ext <<_ACEOF
30133 cat confdefs.h >>conftest.$ac_ext
30134 cat >>conftest.$ac_ext <<_ACEOF
30135 /* end confdefs.h. */
30137 #ifdef HAVE_DB_185_H
30138 # include <db_185.h>
30143 #ifndef DB_VERSION_MAJOR
30144 # define DB_VERSION_MAJOR 1
30148 #define NULL ((void*)0)
30155 #if DB_VERSION_MAJOR > 1
30158 int major, minor, patch;
30160 version = db_version( &major, &minor, &patch );
30162 if( major != DB_VERSION_MAJOR ||
30163 minor < DB_VERSION_MINOR )
30165 printf("Berkeley DB version mismatch\n"
30166 "\theader: %s\n\tlibrary: %s\n",
30167 DB_VERSION_STRING, version);
30173 #if DB_VERSION_MAJOR > 2
30174 db_env_create( NULL, 0 );
30175 #elif DB_VERSION_MAJOR > 1
30176 db_appexit( NULL );
30178 (void) dbopen( NULL, 0, 0, 0, NULL);
30185 rm -f conftest.$ac_objext conftest$ac_exeext
30186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30187 (eval $ac_link) 2>conftest.er1
30189 grep -v '^ *+' conftest.er1 >conftest.err
30191 cat conftest.err >&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); } &&
30194 { ac_try='test -z "$ac_c_werror_flag"
30195 || test ! -s conftest.err'
30196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30197 (eval $ac_try) 2>&5
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); }; } &&
30201 { ac_try='test -s conftest$ac_exeext'
30202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30203 (eval $ac_try) 2>&5
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; }; then
30207 ol_cv_db_db_4_1=yes
30209 echo "$as_me: failed program was:" >&5
30210 sed 's/^/| /' conftest.$ac_ext >&5
30214 rm -f conftest.err conftest.$ac_objext \
30215 conftest$ac_exeext conftest.$ac_ext
30220 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30221 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30223 if test $ol_cv_db_db_4_1 = yes ; then
30224 ol_cv_lib_db=-ldb-4-1
30229 if test $ol_cv_lib_db = no ; then
30230 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30231 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30232 if test "${ol_cv_db_db_4+set}" = set; then
30233 echo $ECHO_N "(cached) $ECHO_C" >&6
30238 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30240 cat >conftest.$ac_ext <<_ACEOF
30243 cat confdefs.h >>conftest.$ac_ext
30244 cat >>conftest.$ac_ext <<_ACEOF
30245 /* end confdefs.h. */
30247 #ifdef HAVE_DB_185_H
30248 # include <db_185.h>
30253 #ifndef DB_VERSION_MAJOR
30254 # define DB_VERSION_MAJOR 1
30258 #define NULL ((void*)0)
30265 #if DB_VERSION_MAJOR > 1
30268 int major, minor, patch;
30270 version = db_version( &major, &minor, &patch );
30272 if( major != DB_VERSION_MAJOR ||
30273 minor < DB_VERSION_MINOR )
30275 printf("Berkeley DB version mismatch\n"
30276 "\theader: %s\n\tlibrary: %s\n",
30277 DB_VERSION_STRING, version);
30283 #if DB_VERSION_MAJOR > 2
30284 db_env_create( NULL, 0 );
30285 #elif DB_VERSION_MAJOR > 1
30286 db_appexit( NULL );
30288 (void) dbopen( NULL, 0, 0, 0, NULL);
30295 rm -f conftest.$ac_objext conftest$ac_exeext
30296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30297 (eval $ac_link) 2>conftest.er1
30299 grep -v '^ *+' conftest.er1 >conftest.err
30301 cat conftest.err >&5
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); } &&
30304 { ac_try='test -z "$ac_c_werror_flag"
30305 || test ! -s conftest.err'
30306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30307 (eval $ac_try) 2>&5
30309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310 (exit $ac_status); }; } &&
30311 { ac_try='test -s conftest$ac_exeext'
30312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30313 (eval $ac_try) 2>&5
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); }; }; then
30319 echo "$as_me: failed program was:" >&5
30320 sed 's/^/| /' conftest.$ac_ext >&5
30324 rm -f conftest.err conftest.$ac_objext \
30325 conftest$ac_exeext conftest.$ac_ext
30330 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30331 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30333 if test $ol_cv_db_db_4 = yes ; then
30334 ol_cv_lib_db=-ldb-4
30338 if test $ol_cv_lib_db = no ; then
30339 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30340 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30341 if test "${ol_cv_db_db4+set}" = set; then
30342 echo $ECHO_N "(cached) $ECHO_C" >&6
30347 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30349 cat >conftest.$ac_ext <<_ACEOF
30352 cat confdefs.h >>conftest.$ac_ext
30353 cat >>conftest.$ac_ext <<_ACEOF
30354 /* end confdefs.h. */
30356 #ifdef HAVE_DB_185_H
30357 # include <db_185.h>
30362 #ifndef DB_VERSION_MAJOR
30363 # define DB_VERSION_MAJOR 1
30367 #define NULL ((void*)0)
30374 #if DB_VERSION_MAJOR > 1
30377 int major, minor, patch;
30379 version = db_version( &major, &minor, &patch );
30381 if( major != DB_VERSION_MAJOR ||
30382 minor < DB_VERSION_MINOR )
30384 printf("Berkeley DB version mismatch\n"
30385 "\theader: %s\n\tlibrary: %s\n",
30386 DB_VERSION_STRING, version);
30392 #if DB_VERSION_MAJOR > 2
30393 db_env_create( NULL, 0 );
30394 #elif DB_VERSION_MAJOR > 1
30395 db_appexit( NULL );
30397 (void) dbopen( NULL, 0, 0, 0, NULL);
30404 rm -f conftest.$ac_objext conftest$ac_exeext
30405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30406 (eval $ac_link) 2>conftest.er1
30408 grep -v '^ *+' conftest.er1 >conftest.err
30410 cat conftest.err >&5
30411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); } &&
30413 { ac_try='test -z "$ac_c_werror_flag"
30414 || test ! -s conftest.err'
30415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30416 (eval $ac_try) 2>&5
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); }; } &&
30420 { ac_try='test -s conftest$ac_exeext'
30421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30422 (eval $ac_try) 2>&5
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); }; }; then
30428 echo "$as_me: failed program was:" >&5
30429 sed 's/^/| /' conftest.$ac_ext >&5
30433 rm -f conftest.err conftest.$ac_objext \
30434 conftest$ac_exeext conftest.$ac_ext
30439 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30440 echo "${ECHO_T}$ol_cv_db_db4" >&6
30442 if test $ol_cv_db_db4 = yes ; then
30447 if test $ol_cv_lib_db = no ; then
30448 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30449 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30450 if test "${ol_cv_db_db+set}" = set; then
30451 echo $ECHO_N "(cached) $ECHO_C" >&6
30456 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30458 cat >conftest.$ac_ext <<_ACEOF
30461 cat confdefs.h >>conftest.$ac_ext
30462 cat >>conftest.$ac_ext <<_ACEOF
30463 /* end confdefs.h. */
30465 #ifdef HAVE_DB_185_H
30466 # include <db_185.h>
30471 #ifndef DB_VERSION_MAJOR
30472 # define DB_VERSION_MAJOR 1
30476 #define NULL ((void*)0)
30483 #if DB_VERSION_MAJOR > 1
30486 int major, minor, patch;
30488 version = db_version( &major, &minor, &patch );
30490 if( major != DB_VERSION_MAJOR ||
30491 minor < DB_VERSION_MINOR )
30493 printf("Berkeley DB version mismatch\n"
30494 "\theader: %s\n\tlibrary: %s\n",
30495 DB_VERSION_STRING, version);
30501 #if DB_VERSION_MAJOR > 2
30502 db_env_create( NULL, 0 );
30503 #elif DB_VERSION_MAJOR > 1
30504 db_appexit( NULL );
30506 (void) dbopen( NULL, 0, 0, 0, NULL);
30513 rm -f conftest.$ac_objext conftest$ac_exeext
30514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30515 (eval $ac_link) 2>conftest.er1
30517 grep -v '^ *+' conftest.er1 >conftest.err
30519 cat conftest.err >&5
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); } &&
30522 { ac_try='test -z "$ac_c_werror_flag"
30523 || test ! -s conftest.err'
30524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30525 (eval $ac_try) 2>&5
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); }; } &&
30529 { ac_try='test -s conftest$ac_exeext'
30530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30531 (eval $ac_try) 2>&5
30533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534 (exit $ac_status); }; }; then
30537 echo "$as_me: failed program was:" >&5
30538 sed 's/^/| /' conftest.$ac_ext >&5
30542 rm -f conftest.err conftest.$ac_objext \
30543 conftest$ac_exeext conftest.$ac_ext
30548 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30549 echo "${ECHO_T}$ol_cv_db_db" >&6
30551 if test $ol_cv_db_db = yes ; then
30557 elif test $ol_cv_bdb_major = 3 ; then
30558 if test $ol_cv_lib_db = no ; then
30559 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30560 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30561 if test "${ol_cv_db_db3+set}" = set; then
30562 echo $ECHO_N "(cached) $ECHO_C" >&6
30567 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30569 cat >conftest.$ac_ext <<_ACEOF
30572 cat confdefs.h >>conftest.$ac_ext
30573 cat >>conftest.$ac_ext <<_ACEOF
30574 /* end confdefs.h. */
30576 #ifdef HAVE_DB_185_H
30577 # include <db_185.h>
30582 #ifndef DB_VERSION_MAJOR
30583 # define DB_VERSION_MAJOR 1
30587 #define NULL ((void*)0)
30594 #if DB_VERSION_MAJOR > 1
30597 int major, minor, patch;
30599 version = db_version( &major, &minor, &patch );
30601 if( major != DB_VERSION_MAJOR ||
30602 minor < DB_VERSION_MINOR )
30604 printf("Berkeley DB version mismatch\n"
30605 "\theader: %s\n\tlibrary: %s\n",
30606 DB_VERSION_STRING, version);
30612 #if DB_VERSION_MAJOR > 2
30613 db_env_create( NULL, 0 );
30614 #elif DB_VERSION_MAJOR > 1
30615 db_appexit( NULL );
30617 (void) dbopen( NULL, 0, 0, 0, NULL);
30624 rm -f conftest.$ac_objext conftest$ac_exeext
30625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30626 (eval $ac_link) 2>conftest.er1
30628 grep -v '^ *+' conftest.er1 >conftest.err
30630 cat conftest.err >&5
30631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30632 (exit $ac_status); } &&
30633 { ac_try='test -z "$ac_c_werror_flag"
30634 || test ! -s conftest.err'
30635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30636 (eval $ac_try) 2>&5
30638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639 (exit $ac_status); }; } &&
30640 { ac_try='test -s conftest$ac_exeext'
30641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30642 (eval $ac_try) 2>&5
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); }; }; then
30648 echo "$as_me: failed program was:" >&5
30649 sed 's/^/| /' conftest.$ac_ext >&5
30653 rm -f conftest.err conftest.$ac_objext \
30654 conftest$ac_exeext conftest.$ac_ext
30659 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30660 echo "${ECHO_T}$ol_cv_db_db3" >&6
30662 if test $ol_cv_db_db3 = yes ; then
30667 if test $ol_cv_lib_db = no ; then
30668 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30669 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30670 if test "${ol_cv_db_db_3+set}" = set; then
30671 echo $ECHO_N "(cached) $ECHO_C" >&6
30676 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30678 cat >conftest.$ac_ext <<_ACEOF
30681 cat confdefs.h >>conftest.$ac_ext
30682 cat >>conftest.$ac_ext <<_ACEOF
30683 /* end confdefs.h. */
30685 #ifdef HAVE_DB_185_H
30686 # include <db_185.h>
30691 #ifndef DB_VERSION_MAJOR
30692 # define DB_VERSION_MAJOR 1
30696 #define NULL ((void*)0)
30703 #if DB_VERSION_MAJOR > 1
30706 int major, minor, patch;
30708 version = db_version( &major, &minor, &patch );
30710 if( major != DB_VERSION_MAJOR ||
30711 minor < DB_VERSION_MINOR )
30713 printf("Berkeley DB version mismatch\n"
30714 "\theader: %s\n\tlibrary: %s\n",
30715 DB_VERSION_STRING, version);
30721 #if DB_VERSION_MAJOR > 2
30722 db_env_create( NULL, 0 );
30723 #elif DB_VERSION_MAJOR > 1
30724 db_appexit( NULL );
30726 (void) dbopen( NULL, 0, 0, 0, NULL);
30733 rm -f conftest.$ac_objext conftest$ac_exeext
30734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30735 (eval $ac_link) 2>conftest.er1
30737 grep -v '^ *+' conftest.er1 >conftest.err
30739 cat conftest.err >&5
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); } &&
30742 { ac_try='test -z "$ac_c_werror_flag"
30743 || test ! -s conftest.err'
30744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30745 (eval $ac_try) 2>&5
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); }; } &&
30749 { ac_try='test -s conftest$ac_exeext'
30750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751 (eval $ac_try) 2>&5
30753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754 (exit $ac_status); }; }; then
30757 echo "$as_me: failed program was:" >&5
30758 sed 's/^/| /' conftest.$ac_ext >&5
30762 rm -f conftest.err conftest.$ac_objext \
30763 conftest$ac_exeext conftest.$ac_ext
30768 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30769 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30771 if test $ol_cv_db_db_3 = yes ; then
30772 ol_cv_lib_db=-ldb-3
30777 elif test $ol_cv_bdb_major = 2 ; then
30778 if test $ol_cv_lib_db = no ; then
30779 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30780 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30781 if test "${ol_cv_db_db2+set}" = set; then
30782 echo $ECHO_N "(cached) $ECHO_C" >&6
30787 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30789 cat >conftest.$ac_ext <<_ACEOF
30792 cat confdefs.h >>conftest.$ac_ext
30793 cat >>conftest.$ac_ext <<_ACEOF
30794 /* end confdefs.h. */
30796 #ifdef HAVE_DB_185_H
30797 # include <db_185.h>
30802 #ifndef DB_VERSION_MAJOR
30803 # define DB_VERSION_MAJOR 1
30807 #define NULL ((void*)0)
30814 #if DB_VERSION_MAJOR > 1
30817 int major, minor, patch;
30819 version = db_version( &major, &minor, &patch );
30821 if( major != DB_VERSION_MAJOR ||
30822 minor < DB_VERSION_MINOR )
30824 printf("Berkeley DB version mismatch\n"
30825 "\theader: %s\n\tlibrary: %s\n",
30826 DB_VERSION_STRING, version);
30832 #if DB_VERSION_MAJOR > 2
30833 db_env_create( NULL, 0 );
30834 #elif DB_VERSION_MAJOR > 1
30835 db_appexit( NULL );
30837 (void) dbopen( NULL, 0, 0, 0, NULL);
30844 rm -f conftest.$ac_objext conftest$ac_exeext
30845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30846 (eval $ac_link) 2>conftest.er1
30848 grep -v '^ *+' conftest.er1 >conftest.err
30850 cat conftest.err >&5
30851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852 (exit $ac_status); } &&
30853 { ac_try='test -z "$ac_c_werror_flag"
30854 || test ! -s conftest.err'
30855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30856 (eval $ac_try) 2>&5
30858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859 (exit $ac_status); }; } &&
30860 { ac_try='test -s conftest$ac_exeext'
30861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30862 (eval $ac_try) 2>&5
30864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30865 (exit $ac_status); }; }; then
30868 echo "$as_me: failed program was:" >&5
30869 sed 's/^/| /' conftest.$ac_ext >&5
30873 rm -f conftest.err conftest.$ac_objext \
30874 conftest$ac_exeext conftest.$ac_ext
30879 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30880 echo "${ECHO_T}$ol_cv_db_db2" >&6
30882 if test $ol_cv_db_db2 = yes ; then
30887 if test $ol_cv_lib_db = no ; then
30888 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30889 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30890 if test "${ol_cv_db_db_2+set}" = set; then
30891 echo $ECHO_N "(cached) $ECHO_C" >&6
30896 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30898 cat >conftest.$ac_ext <<_ACEOF
30901 cat confdefs.h >>conftest.$ac_ext
30902 cat >>conftest.$ac_ext <<_ACEOF
30903 /* end confdefs.h. */
30905 #ifdef HAVE_DB_185_H
30906 # include <db_185.h>
30911 #ifndef DB_VERSION_MAJOR
30912 # define DB_VERSION_MAJOR 1
30916 #define NULL ((void*)0)
30923 #if DB_VERSION_MAJOR > 1
30926 int major, minor, patch;
30928 version = db_version( &major, &minor, &patch );
30930 if( major != DB_VERSION_MAJOR ||
30931 minor < DB_VERSION_MINOR )
30933 printf("Berkeley DB version mismatch\n"
30934 "\theader: %s\n\tlibrary: %s\n",
30935 DB_VERSION_STRING, version);
30941 #if DB_VERSION_MAJOR > 2
30942 db_env_create( NULL, 0 );
30943 #elif DB_VERSION_MAJOR > 1
30944 db_appexit( NULL );
30946 (void) dbopen( NULL, 0, 0, 0, NULL);
30953 rm -f conftest.$ac_objext conftest$ac_exeext
30954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30955 (eval $ac_link) 2>conftest.er1
30957 grep -v '^ *+' conftest.er1 >conftest.err
30959 cat conftest.err >&5
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); } &&
30962 { ac_try='test -z "$ac_c_werror_flag"
30963 || test ! -s conftest.err'
30964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30965 (eval $ac_try) 2>&5
30967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968 (exit $ac_status); }; } &&
30969 { ac_try='test -s conftest$ac_exeext'
30970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30971 (eval $ac_try) 2>&5
30973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974 (exit $ac_status); }; }; then
30977 echo "$as_me: failed program was:" >&5
30978 sed 's/^/| /' conftest.$ac_ext >&5
30982 rm -f conftest.err conftest.$ac_objext \
30983 conftest$ac_exeext conftest.$ac_ext
30988 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30989 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30991 if test $ol_cv_db_db_2 = yes ; then
30992 ol_cv_lib_db=-ldb-2
30997 elif test $ol_cv_bdb_major = 1 ; then
30998 if test $ol_cv_lib_db = no ; then
30999 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
31000 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
31001 if test "${ol_cv_db_db1+set}" = set; then
31002 echo $ECHO_N "(cached) $ECHO_C" >&6
31007 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31009 cat >conftest.$ac_ext <<_ACEOF
31012 cat confdefs.h >>conftest.$ac_ext
31013 cat >>conftest.$ac_ext <<_ACEOF
31014 /* end confdefs.h. */
31016 #ifdef HAVE_DB_185_H
31017 # include <db_185.h>
31022 #ifndef DB_VERSION_MAJOR
31023 # define DB_VERSION_MAJOR 1
31027 #define NULL ((void*)0)
31034 #if DB_VERSION_MAJOR > 1
31037 int major, minor, patch;
31039 version = db_version( &major, &minor, &patch );
31041 if( major != DB_VERSION_MAJOR ||
31042 minor < DB_VERSION_MINOR )
31044 printf("Berkeley DB version mismatch\n"
31045 "\theader: %s\n\tlibrary: %s\n",
31046 DB_VERSION_STRING, version);
31052 #if DB_VERSION_MAJOR > 2
31053 db_env_create( NULL, 0 );
31054 #elif DB_VERSION_MAJOR > 1
31055 db_appexit( NULL );
31057 (void) dbopen( NULL, 0, 0, 0, NULL);
31064 rm -f conftest.$ac_objext conftest$ac_exeext
31065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31066 (eval $ac_link) 2>conftest.er1
31068 grep -v '^ *+' conftest.er1 >conftest.err
31070 cat conftest.err >&5
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); } &&
31073 { ac_try='test -z "$ac_c_werror_flag"
31074 || test ! -s conftest.err'
31075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31076 (eval $ac_try) 2>&5
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); }; } &&
31080 { ac_try='test -s conftest$ac_exeext'
31081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31082 (eval $ac_try) 2>&5
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); }; }; then
31088 echo "$as_me: failed program was:" >&5
31089 sed 's/^/| /' conftest.$ac_ext >&5
31093 rm -f conftest.err conftest.$ac_objext \
31094 conftest$ac_exeext conftest.$ac_ext
31099 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
31100 echo "${ECHO_T}$ol_cv_db_db1" >&6
31102 if test $ol_cv_db_db1 = yes ; then
31107 if test $ol_cv_lib_db = no ; then
31108 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
31109 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
31110 if test "${ol_cv_db_db_1+set}" = set; then
31111 echo $ECHO_N "(cached) $ECHO_C" >&6
31116 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31118 cat >conftest.$ac_ext <<_ACEOF
31121 cat confdefs.h >>conftest.$ac_ext
31122 cat >>conftest.$ac_ext <<_ACEOF
31123 /* end confdefs.h. */
31125 #ifdef HAVE_DB_185_H
31126 # include <db_185.h>
31131 #ifndef DB_VERSION_MAJOR
31132 # define DB_VERSION_MAJOR 1
31136 #define NULL ((void*)0)
31143 #if DB_VERSION_MAJOR > 1
31146 int major, minor, patch;
31148 version = db_version( &major, &minor, &patch );
31150 if( major != DB_VERSION_MAJOR ||
31151 minor < DB_VERSION_MINOR )
31153 printf("Berkeley DB version mismatch\n"
31154 "\theader: %s\n\tlibrary: %s\n",
31155 DB_VERSION_STRING, version);
31161 #if DB_VERSION_MAJOR > 2
31162 db_env_create( NULL, 0 );
31163 #elif DB_VERSION_MAJOR > 1
31164 db_appexit( NULL );
31166 (void) dbopen( NULL, 0, 0, 0, NULL);
31173 rm -f conftest.$ac_objext conftest$ac_exeext
31174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31175 (eval $ac_link) 2>conftest.er1
31177 grep -v '^ *+' conftest.er1 >conftest.err
31179 cat conftest.err >&5
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); } &&
31182 { ac_try='test -z "$ac_c_werror_flag"
31183 || test ! -s conftest.err'
31184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31185 (eval $ac_try) 2>&5
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); }; } &&
31189 { ac_try='test -s conftest$ac_exeext'
31190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31191 (eval $ac_try) 2>&5
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); }; }; then
31197 echo "$as_me: failed program was:" >&5
31198 sed 's/^/| /' conftest.$ac_ext >&5
31202 rm -f conftest.err conftest.$ac_objext \
31203 conftest$ac_exeext conftest.$ac_ext
31208 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31209 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31211 if test $ol_cv_db_db_1 = yes ; then
31212 ol_cv_lib_db=-ldb-1
31217 if test $ol_cv_lib_db = no ; then
31218 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31219 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31220 if test "${ol_cv_db_none+set}" = set; then
31221 echo $ECHO_N "(cached) $ECHO_C" >&6
31226 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31228 cat >conftest.$ac_ext <<_ACEOF
31231 cat confdefs.h >>conftest.$ac_ext
31232 cat >>conftest.$ac_ext <<_ACEOF
31233 /* end confdefs.h. */
31235 #ifdef HAVE_DB_185_H
31236 # include <db_185.h>
31241 #ifndef DB_VERSION_MAJOR
31242 # define DB_VERSION_MAJOR 1
31246 #define NULL ((void*)0)
31253 #if DB_VERSION_MAJOR > 1
31256 int major, minor, patch;
31258 version = db_version( &major, &minor, &patch );
31260 if( major != DB_VERSION_MAJOR ||
31261 minor < DB_VERSION_MINOR )
31263 printf("Berkeley DB version mismatch\n"
31264 "\theader: %s\n\tlibrary: %s\n",
31265 DB_VERSION_STRING, version);
31271 #if DB_VERSION_MAJOR > 2
31272 db_env_create( NULL, 0 );
31273 #elif DB_VERSION_MAJOR > 1
31274 db_appexit( NULL );
31276 (void) dbopen( NULL, 0, 0, 0, NULL);
31283 rm -f conftest.$ac_objext conftest$ac_exeext
31284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31285 (eval $ac_link) 2>conftest.er1
31287 grep -v '^ *+' conftest.er1 >conftest.err
31289 cat conftest.err >&5
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291 (exit $ac_status); } &&
31292 { ac_try='test -z "$ac_c_werror_flag"
31293 || test ! -s conftest.err'
31294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31295 (eval $ac_try) 2>&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); }; } &&
31299 { ac_try='test -s conftest$ac_exeext'
31300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31301 (eval $ac_try) 2>&5
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); }; }; then
31307 echo "$as_me: failed program was:" >&5
31308 sed 's/^/| /' conftest.$ac_ext >&5
31312 rm -f conftest.err conftest.$ac_objext \
31313 conftest$ac_exeext conftest.$ac_ext
31318 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31319 echo "${ECHO_T}$ol_cv_db_none" >&6
31321 if test $ol_cv_db_none = yes ; then
31327 if test "$ol_cv_lib_db" != no ; then
31328 ol_cv_berkeley_db=yes
31334 ol_cv_berkeley_db=no
31336 for ac_header in db.h
31338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31340 echo "$as_me:$LINENO: checking for $ac_header" >&5
31341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31343 echo $ECHO_N "(cached) $ECHO_C" >&6
31345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31348 # Is the header compilable?
31349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31351 cat >conftest.$ac_ext <<_ACEOF
31354 cat confdefs.h >>conftest.$ac_ext
31355 cat >>conftest.$ac_ext <<_ACEOF
31356 /* end confdefs.h. */
31357 $ac_includes_default
31358 #include <$ac_header>
31360 rm -f conftest.$ac_objext
31361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31362 (eval $ac_compile) 2>conftest.er1
31364 grep -v '^ *+' conftest.er1 >conftest.err
31366 cat conftest.err >&5
31367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368 (exit $ac_status); } &&
31369 { ac_try='test -z "$ac_c_werror_flag"
31370 || test ! -s conftest.err'
31371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31372 (eval $ac_try) 2>&5
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; } &&
31376 { ac_try='test -s conftest.$ac_objext'
31377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31378 (eval $ac_try) 2>&5
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); }; }; then
31382 ac_header_compiler=yes
31384 echo "$as_me: failed program was:" >&5
31385 sed 's/^/| /' conftest.$ac_ext >&5
31387 ac_header_compiler=no
31389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31391 echo "${ECHO_T}$ac_header_compiler" >&6
31393 # Is the header present?
31394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31396 cat >conftest.$ac_ext <<_ACEOF
31399 cat confdefs.h >>conftest.$ac_ext
31400 cat >>conftest.$ac_ext <<_ACEOF
31401 /* end confdefs.h. */
31402 #include <$ac_header>
31404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31407 grep -v '^ *+' conftest.er1 >conftest.err
31409 cat conftest.err >&5
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); } >/dev/null; then
31412 if test -s conftest.err; then
31413 ac_cpp_err=$ac_c_preproc_warn_flag
31414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31421 if test -z "$ac_cpp_err"; then
31422 ac_header_preproc=yes
31424 echo "$as_me: failed program was:" >&5
31425 sed 's/^/| /' conftest.$ac_ext >&5
31427 ac_header_preproc=no
31429 rm -f conftest.err conftest.$ac_ext
31430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31431 echo "${ECHO_T}$ac_header_preproc" >&6
31433 # So? What about this header?
31434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31440 ac_header_preproc=yes
31443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31457 ## --------------------------------------------- ##
31458 ## Report this to <http://www.openldap.org/its/> ##
31459 ## --------------------------------------------- ##
31462 sed "s/^/$as_me: WARNING: /" >&2
31465 echo "$as_me:$LINENO: checking for $ac_header" >&5
31466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31468 echo $ECHO_N "(cached) $ECHO_C" >&6
31470 eval "$as_ac_Header=\$ac_header_preproc"
31472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31477 cat >>confdefs.h <<_ACEOF
31478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31485 if test $ac_cv_header_db_h = yes; then
31488 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31489 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31490 if test "${ol_cv_bdb_major+set}" = set; then
31491 echo $ECHO_N "(cached) $ECHO_C" >&6
31495 if test $ol_cv_bdb_major = 0 ; then
31496 cat >conftest.$ac_ext <<_ACEOF
31499 cat confdefs.h >>conftest.$ac_ext
31500 cat >>conftest.$ac_ext <<_ACEOF
31501 /* end confdefs.h. */
31504 #ifndef DB_VERSION_MAJOR
31505 # define DB_VERSION_MAJOR 1
31507 #if DB_VERSION_MAJOR == 4
31512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31513 $EGREP "__db_version" >/dev/null 2>&1; then
31521 if test $ol_cv_bdb_major = 0 ; then
31522 cat >conftest.$ac_ext <<_ACEOF
31525 cat confdefs.h >>conftest.$ac_ext
31526 cat >>conftest.$ac_ext <<_ACEOF
31527 /* end confdefs.h. */
31530 #ifndef DB_VERSION_MAJOR
31531 # define DB_VERSION_MAJOR 1
31533 #if DB_VERSION_MAJOR == 3
31538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31539 $EGREP "__db_version" >/dev/null 2>&1; then
31547 if test $ol_cv_bdb_major = 0 ; then
31548 cat >conftest.$ac_ext <<_ACEOF
31551 cat confdefs.h >>conftest.$ac_ext
31552 cat >>conftest.$ac_ext <<_ACEOF
31553 /* end confdefs.h. */
31556 #ifndef DB_VERSION_MAJOR
31557 # define DB_VERSION_MAJOR 1
31559 #if DB_VERSION_MAJOR == 2
31564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31565 $EGREP "__db_version" >/dev/null 2>&1; then
31573 if test $ol_cv_bdb_major = 0 ; then
31574 cat >conftest.$ac_ext <<_ACEOF
31577 cat confdefs.h >>conftest.$ac_ext
31578 cat >>conftest.$ac_ext <<_ACEOF
31579 /* end confdefs.h. */
31582 #ifndef DB_VERSION_MAJOR
31583 # define DB_VERSION_MAJOR 1
31585 #if DB_VERSION_MAJOR == 1
31590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31591 $EGREP "__db_version" >/dev/null 2>&1; then
31600 if test $ol_cv_bdb_major = 0 ; then
31601 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31602 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31603 { (exit 1); exit 1; }; }
31607 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31608 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31610 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31611 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31612 if test "${ol_cv_bdb_minor+set}" = set; then
31613 echo $ECHO_N "(cached) $ECHO_C" >&6
31617 if test $ol_cv_bdb_minor = 0 ; then
31618 cat >conftest.$ac_ext <<_ACEOF
31621 cat confdefs.h >>conftest.$ac_ext
31622 cat >>conftest.$ac_ext <<_ACEOF
31623 /* end confdefs.h. */
31626 #ifndef DB_VERSION_MINOR
31627 # define DB_VERSION_MINOR 0
31629 #if DB_VERSION_MINOR == 9
31634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31635 $EGREP "__db_version" >/dev/null 2>&1; then
31643 if test $ol_cv_bdb_minor = 0 ; then
31644 cat >conftest.$ac_ext <<_ACEOF
31647 cat confdefs.h >>conftest.$ac_ext
31648 cat >>conftest.$ac_ext <<_ACEOF
31649 /* end confdefs.h. */
31652 #ifndef DB_VERSION_MINOR
31653 # define DB_VERSION_MINOR 0
31655 #if DB_VERSION_MINOR == 8
31660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31661 $EGREP "__db_version" >/dev/null 2>&1; then
31669 if test $ol_cv_bdb_minor = 0 ; then
31670 cat >conftest.$ac_ext <<_ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h. */
31678 #ifndef DB_VERSION_MINOR
31679 # define DB_VERSION_MINOR 0
31681 #if DB_VERSION_MINOR == 7
31686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31687 $EGREP "__db_version" >/dev/null 2>&1; then
31695 if test $ol_cv_bdb_minor = 0 ; then
31696 cat >conftest.$ac_ext <<_ACEOF
31699 cat confdefs.h >>conftest.$ac_ext
31700 cat >>conftest.$ac_ext <<_ACEOF
31701 /* end confdefs.h. */
31704 #ifndef DB_VERSION_MINOR
31705 # define DB_VERSION_MINOR 0
31707 #if DB_VERSION_MINOR == 6
31712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31713 $EGREP "__db_version" >/dev/null 2>&1; then
31721 if test $ol_cv_bdb_minor = 0 ; then
31722 cat >conftest.$ac_ext <<_ACEOF
31725 cat confdefs.h >>conftest.$ac_ext
31726 cat >>conftest.$ac_ext <<_ACEOF
31727 /* end confdefs.h. */
31730 #ifndef DB_VERSION_MINOR
31731 # define DB_VERSION_MINOR 0
31733 #if DB_VERSION_MINOR == 5
31738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31739 $EGREP "__db_version" >/dev/null 2>&1; then
31747 if test $ol_cv_bdb_minor = 0 ; then
31748 cat >conftest.$ac_ext <<_ACEOF
31751 cat confdefs.h >>conftest.$ac_ext
31752 cat >>conftest.$ac_ext <<_ACEOF
31753 /* end confdefs.h. */
31756 #ifndef DB_VERSION_MINOR
31757 # define DB_VERSION_MINOR 0
31759 #if DB_VERSION_MINOR == 4
31764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31765 $EGREP "__db_version" >/dev/null 2>&1; then
31773 if test $ol_cv_bdb_minor = 0 ; then
31774 cat >conftest.$ac_ext <<_ACEOF
31777 cat confdefs.h >>conftest.$ac_ext
31778 cat >>conftest.$ac_ext <<_ACEOF
31779 /* end confdefs.h. */
31782 #ifndef DB_VERSION_MINOR
31783 # define DB_VERSION_MINOR 0
31785 #if DB_VERSION_MINOR == 3
31790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31791 $EGREP "__db_version" >/dev/null 2>&1; then
31799 if test $ol_cv_bdb_minor = 0 ; then
31800 cat >conftest.$ac_ext <<_ACEOF
31803 cat confdefs.h >>conftest.$ac_ext
31804 cat >>conftest.$ac_ext <<_ACEOF
31805 /* end confdefs.h. */
31808 #ifndef DB_VERSION_MINOR
31809 # define DB_VERSION_MINOR 0
31811 #if DB_VERSION_MINOR == 2
31816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31817 $EGREP "__db_version" >/dev/null 2>&1; then
31825 if test $ol_cv_bdb_minor = 0 ; then
31826 cat >conftest.$ac_ext <<_ACEOF
31829 cat confdefs.h >>conftest.$ac_ext
31830 cat >>conftest.$ac_ext <<_ACEOF
31831 /* end confdefs.h. */
31834 #ifndef DB_VERSION_MINOR
31835 # define DB_VERSION_MINOR 0
31837 #if DB_VERSION_MINOR == 1
31842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31843 $EGREP "__db_version" >/dev/null 2>&1; then
31853 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31854 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31856 if test $ol_cv_bdb_major = 4 ; then
31857 if test $ol_cv_bdb_minor = 4 ; then
31858 if test $ol_cv_lib_db = no ; then
31859 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31860 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31861 if test "${ol_cv_db_db44+set}" = set; then
31862 echo $ECHO_N "(cached) $ECHO_C" >&6
31867 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31869 cat >conftest.$ac_ext <<_ACEOF
31872 cat confdefs.h >>conftest.$ac_ext
31873 cat >>conftest.$ac_ext <<_ACEOF
31874 /* end confdefs.h. */
31876 #ifdef HAVE_DB_185_H
31877 # include <db_185.h>
31882 #ifndef DB_VERSION_MAJOR
31883 # define DB_VERSION_MAJOR 1
31887 #define NULL ((void*)0)
31894 #if DB_VERSION_MAJOR > 1
31897 int major, minor, patch;
31899 version = db_version( &major, &minor, &patch );
31901 if( major != DB_VERSION_MAJOR ||
31902 minor < DB_VERSION_MINOR )
31904 printf("Berkeley DB version mismatch\n"
31905 "\theader: %s\n\tlibrary: %s\n",
31906 DB_VERSION_STRING, version);
31912 #if DB_VERSION_MAJOR > 2
31913 db_env_create( NULL, 0 );
31914 #elif DB_VERSION_MAJOR > 1
31915 db_appexit( NULL );
31917 (void) dbopen( NULL, 0, 0, 0, NULL);
31924 rm -f conftest.$ac_objext conftest$ac_exeext
31925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31926 (eval $ac_link) 2>conftest.er1
31928 grep -v '^ *+' conftest.er1 >conftest.err
31930 cat conftest.err >&5
31931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); } &&
31933 { ac_try='test -z "$ac_c_werror_flag"
31934 || test ! -s conftest.err'
31935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31936 (eval $ac_try) 2>&5
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); }; } &&
31940 { ac_try='test -s conftest$ac_exeext'
31941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31942 (eval $ac_try) 2>&5
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); }; }; then
31948 echo "$as_me: failed program was:" >&5
31949 sed 's/^/| /' conftest.$ac_ext >&5
31953 rm -f conftest.err conftest.$ac_objext \
31954 conftest$ac_exeext conftest.$ac_ext
31959 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31960 echo "${ECHO_T}$ol_cv_db_db44" >&6
31962 if test $ol_cv_db_db44 = yes ; then
31963 ol_cv_lib_db=-ldb44
31967 if test $ol_cv_lib_db = no ; then
31968 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31969 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31970 if test "${ol_cv_db_db_44+set}" = set; then
31971 echo $ECHO_N "(cached) $ECHO_C" >&6
31976 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31978 cat >conftest.$ac_ext <<_ACEOF
31981 cat confdefs.h >>conftest.$ac_ext
31982 cat >>conftest.$ac_ext <<_ACEOF
31983 /* end confdefs.h. */
31985 #ifdef HAVE_DB_185_H
31986 # include <db_185.h>
31991 #ifndef DB_VERSION_MAJOR
31992 # define DB_VERSION_MAJOR 1
31996 #define NULL ((void*)0)
32003 #if DB_VERSION_MAJOR > 1
32006 int major, minor, patch;
32008 version = db_version( &major, &minor, &patch );
32010 if( major != DB_VERSION_MAJOR ||
32011 minor < DB_VERSION_MINOR )
32013 printf("Berkeley DB version mismatch\n"
32014 "\theader: %s\n\tlibrary: %s\n",
32015 DB_VERSION_STRING, version);
32021 #if DB_VERSION_MAJOR > 2
32022 db_env_create( NULL, 0 );
32023 #elif DB_VERSION_MAJOR > 1
32024 db_appexit( NULL );
32026 (void) dbopen( NULL, 0, 0, 0, NULL);
32033 rm -f conftest.$ac_objext conftest$ac_exeext
32034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32035 (eval $ac_link) 2>conftest.er1
32037 grep -v '^ *+' conftest.er1 >conftest.err
32039 cat conftest.err >&5
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); } &&
32042 { ac_try='test -z "$ac_c_werror_flag"
32043 || test ! -s conftest.err'
32044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32045 (eval $ac_try) 2>&5
32047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048 (exit $ac_status); }; } &&
32049 { ac_try='test -s conftest$ac_exeext'
32050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32051 (eval $ac_try) 2>&5
32053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054 (exit $ac_status); }; }; then
32057 echo "$as_me: failed program was:" >&5
32058 sed 's/^/| /' conftest.$ac_ext >&5
32062 rm -f conftest.err conftest.$ac_objext \
32063 conftest$ac_exeext conftest.$ac_ext
32068 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
32069 echo "${ECHO_T}$ol_cv_db_db_44" >&6
32071 if test $ol_cv_db_db_44 = yes ; then
32072 ol_cv_lib_db=-ldb-44
32076 if test $ol_cv_lib_db = no ; then
32077 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
32078 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
32079 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
32080 echo $ECHO_N "(cached) $ECHO_C" >&6
32085 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32087 cat >conftest.$ac_ext <<_ACEOF
32090 cat confdefs.h >>conftest.$ac_ext
32091 cat >>conftest.$ac_ext <<_ACEOF
32092 /* end confdefs.h. */
32094 #ifdef HAVE_DB_185_H
32095 # include <db_185.h>
32100 #ifndef DB_VERSION_MAJOR
32101 # define DB_VERSION_MAJOR 1
32105 #define NULL ((void*)0)
32112 #if DB_VERSION_MAJOR > 1
32115 int major, minor, patch;
32117 version = db_version( &major, &minor, &patch );
32119 if( major != DB_VERSION_MAJOR ||
32120 minor < DB_VERSION_MINOR )
32122 printf("Berkeley DB version mismatch\n"
32123 "\theader: %s\n\tlibrary: %s\n",
32124 DB_VERSION_STRING, version);
32130 #if DB_VERSION_MAJOR > 2
32131 db_env_create( NULL, 0 );
32132 #elif DB_VERSION_MAJOR > 1
32133 db_appexit( NULL );
32135 (void) dbopen( NULL, 0, 0, 0, NULL);
32142 rm -f conftest.$ac_objext conftest$ac_exeext
32143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32144 (eval $ac_link) 2>conftest.er1
32146 grep -v '^ *+' conftest.er1 >conftest.err
32148 cat conftest.err >&5
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); } &&
32151 { ac_try='test -z "$ac_c_werror_flag"
32152 || test ! -s conftest.err'
32153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32154 (eval $ac_try) 2>&5
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }; } &&
32158 { ac_try='test -s conftest$ac_exeext'
32159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32160 (eval $ac_try) 2>&5
32162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163 (exit $ac_status); }; }; then
32164 ol_cv_db_db_4_dot_4=yes
32166 echo "$as_me: failed program was:" >&5
32167 sed 's/^/| /' conftest.$ac_ext >&5
32169 ol_cv_db_db_4_dot_4=no
32171 rm -f conftest.err conftest.$ac_objext \
32172 conftest$ac_exeext conftest.$ac_ext
32177 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
32178 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
32180 if test $ol_cv_db_db_4_dot_4 = yes ; then
32181 ol_cv_lib_db=-ldb-4.4
32185 if test $ol_cv_lib_db = no ; then
32186 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
32187 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
32188 if test "${ol_cv_db_db_4_4+set}" = set; then
32189 echo $ECHO_N "(cached) $ECHO_C" >&6
32194 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32196 cat >conftest.$ac_ext <<_ACEOF
32199 cat confdefs.h >>conftest.$ac_ext
32200 cat >>conftest.$ac_ext <<_ACEOF
32201 /* end confdefs.h. */
32203 #ifdef HAVE_DB_185_H
32204 # include <db_185.h>
32209 #ifndef DB_VERSION_MAJOR
32210 # define DB_VERSION_MAJOR 1
32214 #define NULL ((void*)0)
32221 #if DB_VERSION_MAJOR > 1
32224 int major, minor, patch;
32226 version = db_version( &major, &minor, &patch );
32228 if( major != DB_VERSION_MAJOR ||
32229 minor < DB_VERSION_MINOR )
32231 printf("Berkeley DB version mismatch\n"
32232 "\theader: %s\n\tlibrary: %s\n",
32233 DB_VERSION_STRING, version);
32239 #if DB_VERSION_MAJOR > 2
32240 db_env_create( NULL, 0 );
32241 #elif DB_VERSION_MAJOR > 1
32242 db_appexit( NULL );
32244 (void) dbopen( NULL, 0, 0, 0, NULL);
32251 rm -f conftest.$ac_objext conftest$ac_exeext
32252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32253 (eval $ac_link) 2>conftest.er1
32255 grep -v '^ *+' conftest.er1 >conftest.err
32257 cat conftest.err >&5
32258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259 (exit $ac_status); } &&
32260 { ac_try='test -z "$ac_c_werror_flag"
32261 || test ! -s conftest.err'
32262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32263 (eval $ac_try) 2>&5
32265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266 (exit $ac_status); }; } &&
32267 { ac_try='test -s conftest$ac_exeext'
32268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32269 (eval $ac_try) 2>&5
32271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272 (exit $ac_status); }; }; then
32273 ol_cv_db_db_4_4=yes
32275 echo "$as_me: failed program was:" >&5
32276 sed 's/^/| /' conftest.$ac_ext >&5
32280 rm -f conftest.err conftest.$ac_objext \
32281 conftest$ac_exeext conftest.$ac_ext
32286 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32287 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32289 if test $ol_cv_db_db_4_4 = yes ; then
32290 ol_cv_lib_db=-ldb-4-4
32294 elif test $ol_cv_bdb_minor = 3 ; then
32295 if test $ol_cv_lib_db = no ; then
32296 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32297 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32298 if test "${ol_cv_db_db43+set}" = set; then
32299 echo $ECHO_N "(cached) $ECHO_C" >&6
32304 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32306 cat >conftest.$ac_ext <<_ACEOF
32309 cat confdefs.h >>conftest.$ac_ext
32310 cat >>conftest.$ac_ext <<_ACEOF
32311 /* end confdefs.h. */
32313 #ifdef HAVE_DB_185_H
32314 # include <db_185.h>
32319 #ifndef DB_VERSION_MAJOR
32320 # define DB_VERSION_MAJOR 1
32324 #define NULL ((void*)0)
32331 #if DB_VERSION_MAJOR > 1
32334 int major, minor, patch;
32336 version = db_version( &major, &minor, &patch );
32338 if( major != DB_VERSION_MAJOR ||
32339 minor < DB_VERSION_MINOR )
32341 printf("Berkeley DB version mismatch\n"
32342 "\theader: %s\n\tlibrary: %s\n",
32343 DB_VERSION_STRING, version);
32349 #if DB_VERSION_MAJOR > 2
32350 db_env_create( NULL, 0 );
32351 #elif DB_VERSION_MAJOR > 1
32352 db_appexit( NULL );
32354 (void) dbopen( NULL, 0, 0, 0, NULL);
32361 rm -f conftest.$ac_objext conftest$ac_exeext
32362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32363 (eval $ac_link) 2>conftest.er1
32365 grep -v '^ *+' conftest.er1 >conftest.err
32367 cat conftest.err >&5
32368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369 (exit $ac_status); } &&
32370 { ac_try='test -z "$ac_c_werror_flag"
32371 || test ! -s conftest.err'
32372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32373 (eval $ac_try) 2>&5
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); }; } &&
32377 { ac_try='test -s conftest$ac_exeext'
32378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32379 (eval $ac_try) 2>&5
32381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); }; }; then
32385 echo "$as_me: failed program was:" >&5
32386 sed 's/^/| /' conftest.$ac_ext >&5
32390 rm -f conftest.err conftest.$ac_objext \
32391 conftest$ac_exeext conftest.$ac_ext
32396 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32397 echo "${ECHO_T}$ol_cv_db_db43" >&6
32399 if test $ol_cv_db_db43 = yes ; then
32400 ol_cv_lib_db=-ldb43
32404 if test $ol_cv_lib_db = no ; then
32405 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32406 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32407 if test "${ol_cv_db_db_43+set}" = set; then
32408 echo $ECHO_N "(cached) $ECHO_C" >&6
32413 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32415 cat >conftest.$ac_ext <<_ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h. */
32422 #ifdef HAVE_DB_185_H
32423 # include <db_185.h>
32428 #ifndef DB_VERSION_MAJOR
32429 # define DB_VERSION_MAJOR 1
32433 #define NULL ((void*)0)
32440 #if DB_VERSION_MAJOR > 1
32443 int major, minor, patch;
32445 version = db_version( &major, &minor, &patch );
32447 if( major != DB_VERSION_MAJOR ||
32448 minor < DB_VERSION_MINOR )
32450 printf("Berkeley DB version mismatch\n"
32451 "\theader: %s\n\tlibrary: %s\n",
32452 DB_VERSION_STRING, version);
32458 #if DB_VERSION_MAJOR > 2
32459 db_env_create( NULL, 0 );
32460 #elif DB_VERSION_MAJOR > 1
32461 db_appexit( NULL );
32463 (void) dbopen( NULL, 0, 0, 0, NULL);
32470 rm -f conftest.$ac_objext conftest$ac_exeext
32471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32472 (eval $ac_link) 2>conftest.er1
32474 grep -v '^ *+' conftest.er1 >conftest.err
32476 cat conftest.err >&5
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); } &&
32479 { ac_try='test -z "$ac_c_werror_flag"
32480 || test ! -s conftest.err'
32481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32482 (eval $ac_try) 2>&5
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); }; } &&
32486 { ac_try='test -s conftest$ac_exeext'
32487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32488 (eval $ac_try) 2>&5
32490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491 (exit $ac_status); }; }; then
32494 echo "$as_me: failed program was:" >&5
32495 sed 's/^/| /' conftest.$ac_ext >&5
32499 rm -f conftest.err conftest.$ac_objext \
32500 conftest$ac_exeext conftest.$ac_ext
32505 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32506 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32508 if test $ol_cv_db_db_43 = yes ; then
32509 ol_cv_lib_db=-ldb-43
32513 if test $ol_cv_lib_db = no ; then
32514 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32515 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32516 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32517 echo $ECHO_N "(cached) $ECHO_C" >&6
32522 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32524 cat >conftest.$ac_ext <<_ACEOF
32527 cat confdefs.h >>conftest.$ac_ext
32528 cat >>conftest.$ac_ext <<_ACEOF
32529 /* end confdefs.h. */
32531 #ifdef HAVE_DB_185_H
32532 # include <db_185.h>
32537 #ifndef DB_VERSION_MAJOR
32538 # define DB_VERSION_MAJOR 1
32542 #define NULL ((void*)0)
32549 #if DB_VERSION_MAJOR > 1
32552 int major, minor, patch;
32554 version = db_version( &major, &minor, &patch );
32556 if( major != DB_VERSION_MAJOR ||
32557 minor < DB_VERSION_MINOR )
32559 printf("Berkeley DB version mismatch\n"
32560 "\theader: %s\n\tlibrary: %s\n",
32561 DB_VERSION_STRING, version);
32567 #if DB_VERSION_MAJOR > 2
32568 db_env_create( NULL, 0 );
32569 #elif DB_VERSION_MAJOR > 1
32570 db_appexit( NULL );
32572 (void) dbopen( NULL, 0, 0, 0, NULL);
32579 rm -f conftest.$ac_objext conftest$ac_exeext
32580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32581 (eval $ac_link) 2>conftest.er1
32583 grep -v '^ *+' conftest.er1 >conftest.err
32585 cat conftest.err >&5
32586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587 (exit $ac_status); } &&
32588 { ac_try='test -z "$ac_c_werror_flag"
32589 || test ! -s conftest.err'
32590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32591 (eval $ac_try) 2>&5
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); }; } &&
32595 { ac_try='test -s conftest$ac_exeext'
32596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32597 (eval $ac_try) 2>&5
32599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600 (exit $ac_status); }; }; then
32601 ol_cv_db_db_4_dot_3=yes
32603 echo "$as_me: failed program was:" >&5
32604 sed 's/^/| /' conftest.$ac_ext >&5
32606 ol_cv_db_db_4_dot_3=no
32608 rm -f conftest.err conftest.$ac_objext \
32609 conftest$ac_exeext conftest.$ac_ext
32614 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32615 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32617 if test $ol_cv_db_db_4_dot_3 = yes ; then
32618 ol_cv_lib_db=-ldb-4.3
32622 if test $ol_cv_lib_db = no ; then
32623 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32624 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32625 if test "${ol_cv_db_db_4_3+set}" = set; then
32626 echo $ECHO_N "(cached) $ECHO_C" >&6
32631 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32633 cat >conftest.$ac_ext <<_ACEOF
32636 cat confdefs.h >>conftest.$ac_ext
32637 cat >>conftest.$ac_ext <<_ACEOF
32638 /* end confdefs.h. */
32640 #ifdef HAVE_DB_185_H
32641 # include <db_185.h>
32646 #ifndef DB_VERSION_MAJOR
32647 # define DB_VERSION_MAJOR 1
32651 #define NULL ((void*)0)
32658 #if DB_VERSION_MAJOR > 1
32661 int major, minor, patch;
32663 version = db_version( &major, &minor, &patch );
32665 if( major != DB_VERSION_MAJOR ||
32666 minor < DB_VERSION_MINOR )
32668 printf("Berkeley DB version mismatch\n"
32669 "\theader: %s\n\tlibrary: %s\n",
32670 DB_VERSION_STRING, version);
32676 #if DB_VERSION_MAJOR > 2
32677 db_env_create( NULL, 0 );
32678 #elif DB_VERSION_MAJOR > 1
32679 db_appexit( NULL );
32681 (void) dbopen( NULL, 0, 0, 0, NULL);
32688 rm -f conftest.$ac_objext conftest$ac_exeext
32689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32690 (eval $ac_link) 2>conftest.er1
32692 grep -v '^ *+' conftest.er1 >conftest.err
32694 cat conftest.err >&5
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); } &&
32697 { ac_try='test -z "$ac_c_werror_flag"
32698 || test ! -s conftest.err'
32699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32700 (eval $ac_try) 2>&5
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); }; } &&
32704 { ac_try='test -s conftest$ac_exeext'
32705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32706 (eval $ac_try) 2>&5
32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709 (exit $ac_status); }; }; then
32710 ol_cv_db_db_4_3=yes
32712 echo "$as_me: failed program was:" >&5
32713 sed 's/^/| /' conftest.$ac_ext >&5
32717 rm -f conftest.err conftest.$ac_objext \
32718 conftest$ac_exeext conftest.$ac_ext
32723 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32724 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32726 if test $ol_cv_db_db_4_3 = yes ; then
32727 ol_cv_lib_db=-ldb-4-3
32731 elif test $ol_cv_bdb_minor = 2 ; then
32732 if test $ol_cv_lib_db = no ; then
32733 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32734 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32735 if test "${ol_cv_db_db42+set}" = set; then
32736 echo $ECHO_N "(cached) $ECHO_C" >&6
32741 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32743 cat >conftest.$ac_ext <<_ACEOF
32746 cat confdefs.h >>conftest.$ac_ext
32747 cat >>conftest.$ac_ext <<_ACEOF
32748 /* end confdefs.h. */
32750 #ifdef HAVE_DB_185_H
32751 # include <db_185.h>
32756 #ifndef DB_VERSION_MAJOR
32757 # define DB_VERSION_MAJOR 1
32761 #define NULL ((void*)0)
32768 #if DB_VERSION_MAJOR > 1
32771 int major, minor, patch;
32773 version = db_version( &major, &minor, &patch );
32775 if( major != DB_VERSION_MAJOR ||
32776 minor < DB_VERSION_MINOR )
32778 printf("Berkeley DB version mismatch\n"
32779 "\theader: %s\n\tlibrary: %s\n",
32780 DB_VERSION_STRING, version);
32786 #if DB_VERSION_MAJOR > 2
32787 db_env_create( NULL, 0 );
32788 #elif DB_VERSION_MAJOR > 1
32789 db_appexit( NULL );
32791 (void) dbopen( NULL, 0, 0, 0, NULL);
32798 rm -f conftest.$ac_objext conftest$ac_exeext
32799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32800 (eval $ac_link) 2>conftest.er1
32802 grep -v '^ *+' conftest.er1 >conftest.err
32804 cat conftest.err >&5
32805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806 (exit $ac_status); } &&
32807 { ac_try='test -z "$ac_c_werror_flag"
32808 || test ! -s conftest.err'
32809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32810 (eval $ac_try) 2>&5
32812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813 (exit $ac_status); }; } &&
32814 { ac_try='test -s conftest$ac_exeext'
32815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32816 (eval $ac_try) 2>&5
32818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819 (exit $ac_status); }; }; then
32822 echo "$as_me: failed program was:" >&5
32823 sed 's/^/| /' conftest.$ac_ext >&5
32827 rm -f conftest.err conftest.$ac_objext \
32828 conftest$ac_exeext conftest.$ac_ext
32833 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32834 echo "${ECHO_T}$ol_cv_db_db42" >&6
32836 if test $ol_cv_db_db42 = yes ; then
32837 ol_cv_lib_db=-ldb42
32841 if test $ol_cv_lib_db = no ; then
32842 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32843 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32844 if test "${ol_cv_db_db_42+set}" = set; then
32845 echo $ECHO_N "(cached) $ECHO_C" >&6
32850 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32852 cat >conftest.$ac_ext <<_ACEOF
32855 cat confdefs.h >>conftest.$ac_ext
32856 cat >>conftest.$ac_ext <<_ACEOF
32857 /* end confdefs.h. */
32859 #ifdef HAVE_DB_185_H
32860 # include <db_185.h>
32865 #ifndef DB_VERSION_MAJOR
32866 # define DB_VERSION_MAJOR 1
32870 #define NULL ((void*)0)
32877 #if DB_VERSION_MAJOR > 1
32880 int major, minor, patch;
32882 version = db_version( &major, &minor, &patch );
32884 if( major != DB_VERSION_MAJOR ||
32885 minor < DB_VERSION_MINOR )
32887 printf("Berkeley DB version mismatch\n"
32888 "\theader: %s\n\tlibrary: %s\n",
32889 DB_VERSION_STRING, version);
32895 #if DB_VERSION_MAJOR > 2
32896 db_env_create( NULL, 0 );
32897 #elif DB_VERSION_MAJOR > 1
32898 db_appexit( NULL );
32900 (void) dbopen( NULL, 0, 0, 0, NULL);
32907 rm -f conftest.$ac_objext conftest$ac_exeext
32908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32909 (eval $ac_link) 2>conftest.er1
32911 grep -v '^ *+' conftest.er1 >conftest.err
32913 cat conftest.err >&5
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); } &&
32916 { ac_try='test -z "$ac_c_werror_flag"
32917 || test ! -s conftest.err'
32918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32919 (eval $ac_try) 2>&5
32921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); }; } &&
32923 { ac_try='test -s conftest$ac_exeext'
32924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32925 (eval $ac_try) 2>&5
32927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928 (exit $ac_status); }; }; then
32931 echo "$as_me: failed program was:" >&5
32932 sed 's/^/| /' conftest.$ac_ext >&5
32936 rm -f conftest.err conftest.$ac_objext \
32937 conftest$ac_exeext conftest.$ac_ext
32942 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32943 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32945 if test $ol_cv_db_db_42 = yes ; then
32946 ol_cv_lib_db=-ldb-42
32950 if test $ol_cv_lib_db = no ; then
32951 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32952 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32953 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32954 echo $ECHO_N "(cached) $ECHO_C" >&6
32959 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32961 cat >conftest.$ac_ext <<_ACEOF
32964 cat confdefs.h >>conftest.$ac_ext
32965 cat >>conftest.$ac_ext <<_ACEOF
32966 /* end confdefs.h. */
32968 #ifdef HAVE_DB_185_H
32969 # include <db_185.h>
32974 #ifndef DB_VERSION_MAJOR
32975 # define DB_VERSION_MAJOR 1
32979 #define NULL ((void*)0)
32986 #if DB_VERSION_MAJOR > 1
32989 int major, minor, patch;
32991 version = db_version( &major, &minor, &patch );
32993 if( major != DB_VERSION_MAJOR ||
32994 minor < DB_VERSION_MINOR )
32996 printf("Berkeley DB version mismatch\n"
32997 "\theader: %s\n\tlibrary: %s\n",
32998 DB_VERSION_STRING, version);
33004 #if DB_VERSION_MAJOR > 2
33005 db_env_create( NULL, 0 );
33006 #elif DB_VERSION_MAJOR > 1
33007 db_appexit( NULL );
33009 (void) dbopen( NULL, 0, 0, 0, NULL);
33016 rm -f conftest.$ac_objext conftest$ac_exeext
33017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33018 (eval $ac_link) 2>conftest.er1
33020 grep -v '^ *+' conftest.er1 >conftest.err
33022 cat conftest.err >&5
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); } &&
33025 { ac_try='test -z "$ac_c_werror_flag"
33026 || test ! -s conftest.err'
33027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33028 (eval $ac_try) 2>&5
33030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33031 (exit $ac_status); }; } &&
33032 { ac_try='test -s conftest$ac_exeext'
33033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33034 (eval $ac_try) 2>&5
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); }; }; then
33038 ol_cv_db_db_4_dot_2=yes
33040 echo "$as_me: failed program was:" >&5
33041 sed 's/^/| /' conftest.$ac_ext >&5
33043 ol_cv_db_db_4_dot_2=no
33045 rm -f conftest.err conftest.$ac_objext \
33046 conftest$ac_exeext conftest.$ac_ext
33051 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
33052 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
33054 if test $ol_cv_db_db_4_dot_2 = yes ; then
33055 ol_cv_lib_db=-ldb-4.2
33059 if test $ol_cv_lib_db = no ; then
33060 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
33061 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
33062 if test "${ol_cv_db_db_4_2+set}" = set; then
33063 echo $ECHO_N "(cached) $ECHO_C" >&6
33068 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33070 cat >conftest.$ac_ext <<_ACEOF
33073 cat confdefs.h >>conftest.$ac_ext
33074 cat >>conftest.$ac_ext <<_ACEOF
33075 /* end confdefs.h. */
33077 #ifdef HAVE_DB_185_H
33078 # include <db_185.h>
33083 #ifndef DB_VERSION_MAJOR
33084 # define DB_VERSION_MAJOR 1
33088 #define NULL ((void*)0)
33095 #if DB_VERSION_MAJOR > 1
33098 int major, minor, patch;
33100 version = db_version( &major, &minor, &patch );
33102 if( major != DB_VERSION_MAJOR ||
33103 minor < DB_VERSION_MINOR )
33105 printf("Berkeley DB version mismatch\n"
33106 "\theader: %s\n\tlibrary: %s\n",
33107 DB_VERSION_STRING, version);
33113 #if DB_VERSION_MAJOR > 2
33114 db_env_create( NULL, 0 );
33115 #elif DB_VERSION_MAJOR > 1
33116 db_appexit( NULL );
33118 (void) dbopen( NULL, 0, 0, 0, NULL);
33125 rm -f conftest.$ac_objext conftest$ac_exeext
33126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33127 (eval $ac_link) 2>conftest.er1
33129 grep -v '^ *+' conftest.er1 >conftest.err
33131 cat conftest.err >&5
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); } &&
33134 { ac_try='test -z "$ac_c_werror_flag"
33135 || test ! -s conftest.err'
33136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33137 (eval $ac_try) 2>&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); }; } &&
33141 { ac_try='test -s conftest$ac_exeext'
33142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33143 (eval $ac_try) 2>&5
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); }; }; then
33147 ol_cv_db_db_4_2=yes
33149 echo "$as_me: failed program was:" >&5
33150 sed 's/^/| /' conftest.$ac_ext >&5
33154 rm -f conftest.err conftest.$ac_objext \
33155 conftest$ac_exeext conftest.$ac_ext
33160 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
33161 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
33163 if test $ol_cv_db_db_4_2 = yes ; then
33164 ol_cv_lib_db=-ldb-4-2
33168 elif test $ol_cv_bdb_minor = 1 ; then
33169 if test $ol_cv_lib_db = no ; then
33170 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
33171 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
33172 if test "${ol_cv_db_db41+set}" = set; then
33173 echo $ECHO_N "(cached) $ECHO_C" >&6
33178 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33180 cat >conftest.$ac_ext <<_ACEOF
33183 cat confdefs.h >>conftest.$ac_ext
33184 cat >>conftest.$ac_ext <<_ACEOF
33185 /* end confdefs.h. */
33187 #ifdef HAVE_DB_185_H
33188 # include <db_185.h>
33193 #ifndef DB_VERSION_MAJOR
33194 # define DB_VERSION_MAJOR 1
33198 #define NULL ((void*)0)
33205 #if DB_VERSION_MAJOR > 1
33208 int major, minor, patch;
33210 version = db_version( &major, &minor, &patch );
33212 if( major != DB_VERSION_MAJOR ||
33213 minor < DB_VERSION_MINOR )
33215 printf("Berkeley DB version mismatch\n"
33216 "\theader: %s\n\tlibrary: %s\n",
33217 DB_VERSION_STRING, version);
33223 #if DB_VERSION_MAJOR > 2
33224 db_env_create( NULL, 0 );
33225 #elif DB_VERSION_MAJOR > 1
33226 db_appexit( NULL );
33228 (void) dbopen( NULL, 0, 0, 0, NULL);
33235 rm -f conftest.$ac_objext conftest$ac_exeext
33236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33237 (eval $ac_link) 2>conftest.er1
33239 grep -v '^ *+' conftest.er1 >conftest.err
33241 cat conftest.err >&5
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); } &&
33244 { ac_try='test -z "$ac_c_werror_flag"
33245 || test ! -s conftest.err'
33246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33247 (eval $ac_try) 2>&5
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); }; } &&
33251 { ac_try='test -s conftest$ac_exeext'
33252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33253 (eval $ac_try) 2>&5
33255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256 (exit $ac_status); }; }; then
33259 echo "$as_me: failed program was:" >&5
33260 sed 's/^/| /' conftest.$ac_ext >&5
33264 rm -f conftest.err conftest.$ac_objext \
33265 conftest$ac_exeext conftest.$ac_ext
33270 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33271 echo "${ECHO_T}$ol_cv_db_db41" >&6
33273 if test $ol_cv_db_db41 = yes ; then
33274 ol_cv_lib_db=-ldb41
33278 if test $ol_cv_lib_db = no ; then
33279 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33280 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33281 if test "${ol_cv_db_db_41+set}" = set; then
33282 echo $ECHO_N "(cached) $ECHO_C" >&6
33287 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33289 cat >conftest.$ac_ext <<_ACEOF
33292 cat confdefs.h >>conftest.$ac_ext
33293 cat >>conftest.$ac_ext <<_ACEOF
33294 /* end confdefs.h. */
33296 #ifdef HAVE_DB_185_H
33297 # include <db_185.h>
33302 #ifndef DB_VERSION_MAJOR
33303 # define DB_VERSION_MAJOR 1
33307 #define NULL ((void*)0)
33314 #if DB_VERSION_MAJOR > 1
33317 int major, minor, patch;
33319 version = db_version( &major, &minor, &patch );
33321 if( major != DB_VERSION_MAJOR ||
33322 minor < DB_VERSION_MINOR )
33324 printf("Berkeley DB version mismatch\n"
33325 "\theader: %s\n\tlibrary: %s\n",
33326 DB_VERSION_STRING, version);
33332 #if DB_VERSION_MAJOR > 2
33333 db_env_create( NULL, 0 );
33334 #elif DB_VERSION_MAJOR > 1
33335 db_appexit( NULL );
33337 (void) dbopen( NULL, 0, 0, 0, NULL);
33344 rm -f conftest.$ac_objext conftest$ac_exeext
33345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33346 (eval $ac_link) 2>conftest.er1
33348 grep -v '^ *+' conftest.er1 >conftest.err
33350 cat conftest.err >&5
33351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352 (exit $ac_status); } &&
33353 { ac_try='test -z "$ac_c_werror_flag"
33354 || test ! -s conftest.err'
33355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33356 (eval $ac_try) 2>&5
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); }; } &&
33360 { ac_try='test -s conftest$ac_exeext'
33361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33362 (eval $ac_try) 2>&5
33364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365 (exit $ac_status); }; }; then
33368 echo "$as_me: failed program was:" >&5
33369 sed 's/^/| /' conftest.$ac_ext >&5
33373 rm -f conftest.err conftest.$ac_objext \
33374 conftest$ac_exeext conftest.$ac_ext
33379 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33380 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33382 if test $ol_cv_db_db_41 = yes ; then
33383 ol_cv_lib_db=-ldb-41
33387 if test $ol_cv_lib_db = no ; then
33388 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33389 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33390 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33391 echo $ECHO_N "(cached) $ECHO_C" >&6
33396 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33398 cat >conftest.$ac_ext <<_ACEOF
33401 cat confdefs.h >>conftest.$ac_ext
33402 cat >>conftest.$ac_ext <<_ACEOF
33403 /* end confdefs.h. */
33405 #ifdef HAVE_DB_185_H
33406 # include <db_185.h>
33411 #ifndef DB_VERSION_MAJOR
33412 # define DB_VERSION_MAJOR 1
33416 #define NULL ((void*)0)
33423 #if DB_VERSION_MAJOR > 1
33426 int major, minor, patch;
33428 version = db_version( &major, &minor, &patch );
33430 if( major != DB_VERSION_MAJOR ||
33431 minor < DB_VERSION_MINOR )
33433 printf("Berkeley DB version mismatch\n"
33434 "\theader: %s\n\tlibrary: %s\n",
33435 DB_VERSION_STRING, version);
33441 #if DB_VERSION_MAJOR > 2
33442 db_env_create( NULL, 0 );
33443 #elif DB_VERSION_MAJOR > 1
33444 db_appexit( NULL );
33446 (void) dbopen( NULL, 0, 0, 0, NULL);
33453 rm -f conftest.$ac_objext conftest$ac_exeext
33454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33455 (eval $ac_link) 2>conftest.er1
33457 grep -v '^ *+' conftest.er1 >conftest.err
33459 cat conftest.err >&5
33460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461 (exit $ac_status); } &&
33462 { ac_try='test -z "$ac_c_werror_flag"
33463 || test ! -s conftest.err'
33464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33465 (eval $ac_try) 2>&5
33467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468 (exit $ac_status); }; } &&
33469 { ac_try='test -s conftest$ac_exeext'
33470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33471 (eval $ac_try) 2>&5
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); }; }; then
33475 ol_cv_db_db_4_dot_1=yes
33477 echo "$as_me: failed program was:" >&5
33478 sed 's/^/| /' conftest.$ac_ext >&5
33480 ol_cv_db_db_4_dot_1=no
33482 rm -f conftest.err conftest.$ac_objext \
33483 conftest$ac_exeext conftest.$ac_ext
33488 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33489 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33491 if test $ol_cv_db_db_4_dot_1 = yes ; then
33492 ol_cv_lib_db=-ldb-4.1
33496 if test $ol_cv_lib_db = no ; then
33497 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33498 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33499 if test "${ol_cv_db_db_4_1+set}" = set; then
33500 echo $ECHO_N "(cached) $ECHO_C" >&6
33505 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33507 cat >conftest.$ac_ext <<_ACEOF
33510 cat confdefs.h >>conftest.$ac_ext
33511 cat >>conftest.$ac_ext <<_ACEOF
33512 /* end confdefs.h. */
33514 #ifdef HAVE_DB_185_H
33515 # include <db_185.h>
33520 #ifndef DB_VERSION_MAJOR
33521 # define DB_VERSION_MAJOR 1
33525 #define NULL ((void*)0)
33532 #if DB_VERSION_MAJOR > 1
33535 int major, minor, patch;
33537 version = db_version( &major, &minor, &patch );
33539 if( major != DB_VERSION_MAJOR ||
33540 minor < DB_VERSION_MINOR )
33542 printf("Berkeley DB version mismatch\n"
33543 "\theader: %s\n\tlibrary: %s\n",
33544 DB_VERSION_STRING, version);
33550 #if DB_VERSION_MAJOR > 2
33551 db_env_create( NULL, 0 );
33552 #elif DB_VERSION_MAJOR > 1
33553 db_appexit( NULL );
33555 (void) dbopen( NULL, 0, 0, 0, NULL);
33562 rm -f conftest.$ac_objext conftest$ac_exeext
33563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33564 (eval $ac_link) 2>conftest.er1
33566 grep -v '^ *+' conftest.er1 >conftest.err
33568 cat conftest.err >&5
33569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33570 (exit $ac_status); } &&
33571 { ac_try='test -z "$ac_c_werror_flag"
33572 || test ! -s conftest.err'
33573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33574 (eval $ac_try) 2>&5
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); }; } &&
33578 { ac_try='test -s conftest$ac_exeext'
33579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33580 (eval $ac_try) 2>&5
33582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583 (exit $ac_status); }; }; then
33584 ol_cv_db_db_4_1=yes
33586 echo "$as_me: failed program was:" >&5
33587 sed 's/^/| /' conftest.$ac_ext >&5
33591 rm -f conftest.err conftest.$ac_objext \
33592 conftest$ac_exeext conftest.$ac_ext
33597 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33598 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33600 if test $ol_cv_db_db_4_1 = yes ; then
33601 ol_cv_lib_db=-ldb-4-1
33606 if test $ol_cv_lib_db = no ; then
33607 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33608 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33609 if test "${ol_cv_db_db_4+set}" = set; then
33610 echo $ECHO_N "(cached) $ECHO_C" >&6
33615 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33617 cat >conftest.$ac_ext <<_ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h. */
33624 #ifdef HAVE_DB_185_H
33625 # include <db_185.h>
33630 #ifndef DB_VERSION_MAJOR
33631 # define DB_VERSION_MAJOR 1
33635 #define NULL ((void*)0)
33642 #if DB_VERSION_MAJOR > 1
33645 int major, minor, patch;
33647 version = db_version( &major, &minor, &patch );
33649 if( major != DB_VERSION_MAJOR ||
33650 minor < DB_VERSION_MINOR )
33652 printf("Berkeley DB version mismatch\n"
33653 "\theader: %s\n\tlibrary: %s\n",
33654 DB_VERSION_STRING, version);
33660 #if DB_VERSION_MAJOR > 2
33661 db_env_create( NULL, 0 );
33662 #elif DB_VERSION_MAJOR > 1
33663 db_appexit( NULL );
33665 (void) dbopen( NULL, 0, 0, 0, NULL);
33672 rm -f conftest.$ac_objext conftest$ac_exeext
33673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33674 (eval $ac_link) 2>conftest.er1
33676 grep -v '^ *+' conftest.er1 >conftest.err
33678 cat conftest.err >&5
33679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); } &&
33681 { ac_try='test -z "$ac_c_werror_flag"
33682 || test ! -s conftest.err'
33683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33684 (eval $ac_try) 2>&5
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); }; } &&
33688 { ac_try='test -s conftest$ac_exeext'
33689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33690 (eval $ac_try) 2>&5
33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); }; }; then
33696 echo "$as_me: failed program was:" >&5
33697 sed 's/^/| /' conftest.$ac_ext >&5
33701 rm -f conftest.err conftest.$ac_objext \
33702 conftest$ac_exeext conftest.$ac_ext
33707 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33708 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33710 if test $ol_cv_db_db_4 = yes ; then
33711 ol_cv_lib_db=-ldb-4
33715 if test $ol_cv_lib_db = no ; then
33716 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33717 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33718 if test "${ol_cv_db_db4+set}" = set; then
33719 echo $ECHO_N "(cached) $ECHO_C" >&6
33724 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33726 cat >conftest.$ac_ext <<_ACEOF
33729 cat confdefs.h >>conftest.$ac_ext
33730 cat >>conftest.$ac_ext <<_ACEOF
33731 /* end confdefs.h. */
33733 #ifdef HAVE_DB_185_H
33734 # include <db_185.h>
33739 #ifndef DB_VERSION_MAJOR
33740 # define DB_VERSION_MAJOR 1
33744 #define NULL ((void*)0)
33751 #if DB_VERSION_MAJOR > 1
33754 int major, minor, patch;
33756 version = db_version( &major, &minor, &patch );
33758 if( major != DB_VERSION_MAJOR ||
33759 minor < DB_VERSION_MINOR )
33761 printf("Berkeley DB version mismatch\n"
33762 "\theader: %s\n\tlibrary: %s\n",
33763 DB_VERSION_STRING, version);
33769 #if DB_VERSION_MAJOR > 2
33770 db_env_create( NULL, 0 );
33771 #elif DB_VERSION_MAJOR > 1
33772 db_appexit( NULL );
33774 (void) dbopen( NULL, 0, 0, 0, NULL);
33781 rm -f conftest.$ac_objext conftest$ac_exeext
33782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33783 (eval $ac_link) 2>conftest.er1
33785 grep -v '^ *+' conftest.er1 >conftest.err
33787 cat conftest.err >&5
33788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789 (exit $ac_status); } &&
33790 { ac_try='test -z "$ac_c_werror_flag"
33791 || test ! -s conftest.err'
33792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33793 (eval $ac_try) 2>&5
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); }; } &&
33797 { ac_try='test -s conftest$ac_exeext'
33798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33799 (eval $ac_try) 2>&5
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); }; }; then
33805 echo "$as_me: failed program was:" >&5
33806 sed 's/^/| /' conftest.$ac_ext >&5
33810 rm -f conftest.err conftest.$ac_objext \
33811 conftest$ac_exeext conftest.$ac_ext
33816 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33817 echo "${ECHO_T}$ol_cv_db_db4" >&6
33819 if test $ol_cv_db_db4 = yes ; then
33824 if test $ol_cv_lib_db = no ; then
33825 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33826 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33827 if test "${ol_cv_db_db+set}" = set; then
33828 echo $ECHO_N "(cached) $ECHO_C" >&6
33833 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33835 cat >conftest.$ac_ext <<_ACEOF
33838 cat confdefs.h >>conftest.$ac_ext
33839 cat >>conftest.$ac_ext <<_ACEOF
33840 /* end confdefs.h. */
33842 #ifdef HAVE_DB_185_H
33843 # include <db_185.h>
33848 #ifndef DB_VERSION_MAJOR
33849 # define DB_VERSION_MAJOR 1
33853 #define NULL ((void*)0)
33860 #if DB_VERSION_MAJOR > 1
33863 int major, minor, patch;
33865 version = db_version( &major, &minor, &patch );
33867 if( major != DB_VERSION_MAJOR ||
33868 minor < DB_VERSION_MINOR )
33870 printf("Berkeley DB version mismatch\n"
33871 "\theader: %s\n\tlibrary: %s\n",
33872 DB_VERSION_STRING, version);
33878 #if DB_VERSION_MAJOR > 2
33879 db_env_create( NULL, 0 );
33880 #elif DB_VERSION_MAJOR > 1
33881 db_appexit( NULL );
33883 (void) dbopen( NULL, 0, 0, 0, NULL);
33890 rm -f conftest.$ac_objext conftest$ac_exeext
33891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33892 (eval $ac_link) 2>conftest.er1
33894 grep -v '^ *+' conftest.er1 >conftest.err
33896 cat conftest.err >&5
33897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33898 (exit $ac_status); } &&
33899 { ac_try='test -z "$ac_c_werror_flag"
33900 || test ! -s conftest.err'
33901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33902 (eval $ac_try) 2>&5
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); }; } &&
33906 { ac_try='test -s conftest$ac_exeext'
33907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33908 (eval $ac_try) 2>&5
33910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911 (exit $ac_status); }; }; then
33914 echo "$as_me: failed program was:" >&5
33915 sed 's/^/| /' conftest.$ac_ext >&5
33919 rm -f conftest.err conftest.$ac_objext \
33920 conftest$ac_exeext conftest.$ac_ext
33925 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33926 echo "${ECHO_T}$ol_cv_db_db" >&6
33928 if test $ol_cv_db_db = yes ; then
33934 elif test $ol_cv_bdb_major = 3 ; then
33935 if test $ol_cv_lib_db = no ; then
33936 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33937 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33938 if test "${ol_cv_db_db3+set}" = set; then
33939 echo $ECHO_N "(cached) $ECHO_C" >&6
33944 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33946 cat >conftest.$ac_ext <<_ACEOF
33949 cat confdefs.h >>conftest.$ac_ext
33950 cat >>conftest.$ac_ext <<_ACEOF
33951 /* end confdefs.h. */
33953 #ifdef HAVE_DB_185_H
33954 # include <db_185.h>
33959 #ifndef DB_VERSION_MAJOR
33960 # define DB_VERSION_MAJOR 1
33964 #define NULL ((void*)0)
33971 #if DB_VERSION_MAJOR > 1
33974 int major, minor, patch;
33976 version = db_version( &major, &minor, &patch );
33978 if( major != DB_VERSION_MAJOR ||
33979 minor < DB_VERSION_MINOR )
33981 printf("Berkeley DB version mismatch\n"
33982 "\theader: %s\n\tlibrary: %s\n",
33983 DB_VERSION_STRING, version);
33989 #if DB_VERSION_MAJOR > 2
33990 db_env_create( NULL, 0 );
33991 #elif DB_VERSION_MAJOR > 1
33992 db_appexit( NULL );
33994 (void) dbopen( NULL, 0, 0, 0, NULL);
34001 rm -f conftest.$ac_objext conftest$ac_exeext
34002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34003 (eval $ac_link) 2>conftest.er1
34005 grep -v '^ *+' conftest.er1 >conftest.err
34007 cat conftest.err >&5
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009 (exit $ac_status); } &&
34010 { ac_try='test -z "$ac_c_werror_flag"
34011 || test ! -s conftest.err'
34012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34013 (eval $ac_try) 2>&5
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); }; } &&
34017 { ac_try='test -s conftest$ac_exeext'
34018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34019 (eval $ac_try) 2>&5
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); }; }; then
34025 echo "$as_me: failed program was:" >&5
34026 sed 's/^/| /' conftest.$ac_ext >&5
34030 rm -f conftest.err conftest.$ac_objext \
34031 conftest$ac_exeext conftest.$ac_ext
34036 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
34037 echo "${ECHO_T}$ol_cv_db_db3" >&6
34039 if test $ol_cv_db_db3 = yes ; then
34044 if test $ol_cv_lib_db = no ; then
34045 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
34046 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
34047 if test "${ol_cv_db_db_3+set}" = set; then
34048 echo $ECHO_N "(cached) $ECHO_C" >&6
34053 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34055 cat >conftest.$ac_ext <<_ACEOF
34058 cat confdefs.h >>conftest.$ac_ext
34059 cat >>conftest.$ac_ext <<_ACEOF
34060 /* end confdefs.h. */
34062 #ifdef HAVE_DB_185_H
34063 # include <db_185.h>
34068 #ifndef DB_VERSION_MAJOR
34069 # define DB_VERSION_MAJOR 1
34073 #define NULL ((void*)0)
34080 #if DB_VERSION_MAJOR > 1
34083 int major, minor, patch;
34085 version = db_version( &major, &minor, &patch );
34087 if( major != DB_VERSION_MAJOR ||
34088 minor < DB_VERSION_MINOR )
34090 printf("Berkeley DB version mismatch\n"
34091 "\theader: %s\n\tlibrary: %s\n",
34092 DB_VERSION_STRING, version);
34098 #if DB_VERSION_MAJOR > 2
34099 db_env_create( NULL, 0 );
34100 #elif DB_VERSION_MAJOR > 1
34101 db_appexit( NULL );
34103 (void) dbopen( NULL, 0, 0, 0, NULL);
34110 rm -f conftest.$ac_objext conftest$ac_exeext
34111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34112 (eval $ac_link) 2>conftest.er1
34114 grep -v '^ *+' conftest.er1 >conftest.err
34116 cat conftest.err >&5
34117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118 (exit $ac_status); } &&
34119 { ac_try='test -z "$ac_c_werror_flag"
34120 || test ! -s conftest.err'
34121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34122 (eval $ac_try) 2>&5
34124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34125 (exit $ac_status); }; } &&
34126 { ac_try='test -s conftest$ac_exeext'
34127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34128 (eval $ac_try) 2>&5
34130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34131 (exit $ac_status); }; }; then
34134 echo "$as_me: failed program was:" >&5
34135 sed 's/^/| /' conftest.$ac_ext >&5
34139 rm -f conftest.err conftest.$ac_objext \
34140 conftest$ac_exeext conftest.$ac_ext
34145 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
34146 echo "${ECHO_T}$ol_cv_db_db_3" >&6
34148 if test $ol_cv_db_db_3 = yes ; then
34149 ol_cv_lib_db=-ldb-3
34154 elif test $ol_cv_bdb_major = 2 ; then
34155 if test $ol_cv_lib_db = no ; then
34156 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
34157 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
34158 if test "${ol_cv_db_db2+set}" = set; then
34159 echo $ECHO_N "(cached) $ECHO_C" >&6
34164 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34166 cat >conftest.$ac_ext <<_ACEOF
34169 cat confdefs.h >>conftest.$ac_ext
34170 cat >>conftest.$ac_ext <<_ACEOF
34171 /* end confdefs.h. */
34173 #ifdef HAVE_DB_185_H
34174 # include <db_185.h>
34179 #ifndef DB_VERSION_MAJOR
34180 # define DB_VERSION_MAJOR 1
34184 #define NULL ((void*)0)
34191 #if DB_VERSION_MAJOR > 1
34194 int major, minor, patch;
34196 version = db_version( &major, &minor, &patch );
34198 if( major != DB_VERSION_MAJOR ||
34199 minor < DB_VERSION_MINOR )
34201 printf("Berkeley DB version mismatch\n"
34202 "\theader: %s\n\tlibrary: %s\n",
34203 DB_VERSION_STRING, version);
34209 #if DB_VERSION_MAJOR > 2
34210 db_env_create( NULL, 0 );
34211 #elif DB_VERSION_MAJOR > 1
34212 db_appexit( NULL );
34214 (void) dbopen( NULL, 0, 0, 0, NULL);
34221 rm -f conftest.$ac_objext conftest$ac_exeext
34222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34223 (eval $ac_link) 2>conftest.er1
34225 grep -v '^ *+' conftest.er1 >conftest.err
34227 cat conftest.err >&5
34228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34229 (exit $ac_status); } &&
34230 { ac_try='test -z "$ac_c_werror_flag"
34231 || test ! -s conftest.err'
34232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34233 (eval $ac_try) 2>&5
34235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236 (exit $ac_status); }; } &&
34237 { ac_try='test -s conftest$ac_exeext'
34238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34239 (eval $ac_try) 2>&5
34241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34242 (exit $ac_status); }; }; then
34245 echo "$as_me: failed program was:" >&5
34246 sed 's/^/| /' conftest.$ac_ext >&5
34250 rm -f conftest.err conftest.$ac_objext \
34251 conftest$ac_exeext conftest.$ac_ext
34256 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34257 echo "${ECHO_T}$ol_cv_db_db2" >&6
34259 if test $ol_cv_db_db2 = yes ; then
34264 if test $ol_cv_lib_db = no ; then
34265 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34266 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34267 if test "${ol_cv_db_db_2+set}" = set; then
34268 echo $ECHO_N "(cached) $ECHO_C" >&6
34273 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34275 cat >conftest.$ac_ext <<_ACEOF
34278 cat confdefs.h >>conftest.$ac_ext
34279 cat >>conftest.$ac_ext <<_ACEOF
34280 /* end confdefs.h. */
34282 #ifdef HAVE_DB_185_H
34283 # include <db_185.h>
34288 #ifndef DB_VERSION_MAJOR
34289 # define DB_VERSION_MAJOR 1
34293 #define NULL ((void*)0)
34300 #if DB_VERSION_MAJOR > 1
34303 int major, minor, patch;
34305 version = db_version( &major, &minor, &patch );
34307 if( major != DB_VERSION_MAJOR ||
34308 minor < DB_VERSION_MINOR )
34310 printf("Berkeley DB version mismatch\n"
34311 "\theader: %s\n\tlibrary: %s\n",
34312 DB_VERSION_STRING, version);
34318 #if DB_VERSION_MAJOR > 2
34319 db_env_create( NULL, 0 );
34320 #elif DB_VERSION_MAJOR > 1
34321 db_appexit( NULL );
34323 (void) dbopen( NULL, 0, 0, 0, NULL);
34330 rm -f conftest.$ac_objext conftest$ac_exeext
34331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34332 (eval $ac_link) 2>conftest.er1
34334 grep -v '^ *+' conftest.er1 >conftest.err
34336 cat conftest.err >&5
34337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34338 (exit $ac_status); } &&
34339 { ac_try='test -z "$ac_c_werror_flag"
34340 || test ! -s conftest.err'
34341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34342 (eval $ac_try) 2>&5
34344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345 (exit $ac_status); }; } &&
34346 { ac_try='test -s conftest$ac_exeext'
34347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34348 (eval $ac_try) 2>&5
34350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351 (exit $ac_status); }; }; then
34354 echo "$as_me: failed program was:" >&5
34355 sed 's/^/| /' conftest.$ac_ext >&5
34359 rm -f conftest.err conftest.$ac_objext \
34360 conftest$ac_exeext conftest.$ac_ext
34365 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34366 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34368 if test $ol_cv_db_db_2 = yes ; then
34369 ol_cv_lib_db=-ldb-2
34374 elif test $ol_cv_bdb_major = 1 ; then
34375 if test $ol_cv_lib_db = no ; then
34376 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34377 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34378 if test "${ol_cv_db_db1+set}" = set; then
34379 echo $ECHO_N "(cached) $ECHO_C" >&6
34384 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34386 cat >conftest.$ac_ext <<_ACEOF
34389 cat confdefs.h >>conftest.$ac_ext
34390 cat >>conftest.$ac_ext <<_ACEOF
34391 /* end confdefs.h. */
34393 #ifdef HAVE_DB_185_H
34394 # include <db_185.h>
34399 #ifndef DB_VERSION_MAJOR
34400 # define DB_VERSION_MAJOR 1
34404 #define NULL ((void*)0)
34411 #if DB_VERSION_MAJOR > 1
34414 int major, minor, patch;
34416 version = db_version( &major, &minor, &patch );
34418 if( major != DB_VERSION_MAJOR ||
34419 minor < DB_VERSION_MINOR )
34421 printf("Berkeley DB version mismatch\n"
34422 "\theader: %s\n\tlibrary: %s\n",
34423 DB_VERSION_STRING, version);
34429 #if DB_VERSION_MAJOR > 2
34430 db_env_create( NULL, 0 );
34431 #elif DB_VERSION_MAJOR > 1
34432 db_appexit( NULL );
34434 (void) dbopen( NULL, 0, 0, 0, NULL);
34441 rm -f conftest.$ac_objext conftest$ac_exeext
34442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34443 (eval $ac_link) 2>conftest.er1
34445 grep -v '^ *+' conftest.er1 >conftest.err
34447 cat conftest.err >&5
34448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449 (exit $ac_status); } &&
34450 { ac_try='test -z "$ac_c_werror_flag"
34451 || test ! -s conftest.err'
34452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34453 (eval $ac_try) 2>&5
34455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34456 (exit $ac_status); }; } &&
34457 { ac_try='test -s conftest$ac_exeext'
34458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34459 (eval $ac_try) 2>&5
34461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462 (exit $ac_status); }; }; then
34465 echo "$as_me: failed program was:" >&5
34466 sed 's/^/| /' conftest.$ac_ext >&5
34470 rm -f conftest.err conftest.$ac_objext \
34471 conftest$ac_exeext conftest.$ac_ext
34476 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34477 echo "${ECHO_T}$ol_cv_db_db1" >&6
34479 if test $ol_cv_db_db1 = yes ; then
34484 if test $ol_cv_lib_db = no ; then
34485 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34486 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34487 if test "${ol_cv_db_db_1+set}" = set; then
34488 echo $ECHO_N "(cached) $ECHO_C" >&6
34493 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34495 cat >conftest.$ac_ext <<_ACEOF
34498 cat confdefs.h >>conftest.$ac_ext
34499 cat >>conftest.$ac_ext <<_ACEOF
34500 /* end confdefs.h. */
34502 #ifdef HAVE_DB_185_H
34503 # include <db_185.h>
34508 #ifndef DB_VERSION_MAJOR
34509 # define DB_VERSION_MAJOR 1
34513 #define NULL ((void*)0)
34520 #if DB_VERSION_MAJOR > 1
34523 int major, minor, patch;
34525 version = db_version( &major, &minor, &patch );
34527 if( major != DB_VERSION_MAJOR ||
34528 minor < DB_VERSION_MINOR )
34530 printf("Berkeley DB version mismatch\n"
34531 "\theader: %s\n\tlibrary: %s\n",
34532 DB_VERSION_STRING, version);
34538 #if DB_VERSION_MAJOR > 2
34539 db_env_create( NULL, 0 );
34540 #elif DB_VERSION_MAJOR > 1
34541 db_appexit( NULL );
34543 (void) dbopen( NULL, 0, 0, 0, NULL);
34550 rm -f conftest.$ac_objext conftest$ac_exeext
34551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34552 (eval $ac_link) 2>conftest.er1
34554 grep -v '^ *+' conftest.er1 >conftest.err
34556 cat conftest.err >&5
34557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558 (exit $ac_status); } &&
34559 { ac_try='test -z "$ac_c_werror_flag"
34560 || test ! -s conftest.err'
34561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34562 (eval $ac_try) 2>&5
34564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34565 (exit $ac_status); }; } &&
34566 { ac_try='test -s conftest$ac_exeext'
34567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34568 (eval $ac_try) 2>&5
34570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571 (exit $ac_status); }; }; then
34574 echo "$as_me: failed program was:" >&5
34575 sed 's/^/| /' conftest.$ac_ext >&5
34579 rm -f conftest.err conftest.$ac_objext \
34580 conftest$ac_exeext conftest.$ac_ext
34585 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34586 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34588 if test $ol_cv_db_db_1 = yes ; then
34589 ol_cv_lib_db=-ldb-1
34594 if test $ol_cv_lib_db = no ; then
34595 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34596 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34597 if test "${ol_cv_db_none+set}" = set; then
34598 echo $ECHO_N "(cached) $ECHO_C" >&6
34603 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34605 cat >conftest.$ac_ext <<_ACEOF
34608 cat confdefs.h >>conftest.$ac_ext
34609 cat >>conftest.$ac_ext <<_ACEOF
34610 /* end confdefs.h. */
34612 #ifdef HAVE_DB_185_H
34613 # include <db_185.h>
34618 #ifndef DB_VERSION_MAJOR
34619 # define DB_VERSION_MAJOR 1
34623 #define NULL ((void*)0)
34630 #if DB_VERSION_MAJOR > 1
34633 int major, minor, patch;
34635 version = db_version( &major, &minor, &patch );
34637 if( major != DB_VERSION_MAJOR ||
34638 minor < DB_VERSION_MINOR )
34640 printf("Berkeley DB version mismatch\n"
34641 "\theader: %s\n\tlibrary: %s\n",
34642 DB_VERSION_STRING, version);
34648 #if DB_VERSION_MAJOR > 2
34649 db_env_create( NULL, 0 );
34650 #elif DB_VERSION_MAJOR > 1
34651 db_appexit( NULL );
34653 (void) dbopen( NULL, 0, 0, 0, NULL);
34660 rm -f conftest.$ac_objext conftest$ac_exeext
34661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34662 (eval $ac_link) 2>conftest.er1
34664 grep -v '^ *+' conftest.er1 >conftest.err
34666 cat conftest.err >&5
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); } &&
34669 { ac_try='test -z "$ac_c_werror_flag"
34670 || test ! -s conftest.err'
34671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34672 (eval $ac_try) 2>&5
34674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675 (exit $ac_status); }; } &&
34676 { ac_try='test -s conftest$ac_exeext'
34677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34678 (eval $ac_try) 2>&5
34680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34681 (exit $ac_status); }; }; then
34684 echo "$as_me: failed program was:" >&5
34685 sed 's/^/| /' conftest.$ac_ext >&5
34689 rm -f conftest.err conftest.$ac_objext \
34690 conftest$ac_exeext conftest.$ac_ext
34695 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34696 echo "${ECHO_T}$ol_cv_db_none" >&6
34698 if test $ol_cv_db_none = yes ; then
34704 if test "$ol_cv_lib_db" != no ; then
34705 ol_cv_berkeley_db=yes
34706 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34707 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34708 if test "${ol_cv_berkeley_db_version+set}" = set; then
34709 echo $ECHO_N "(cached) $ECHO_C" >&6
34713 LIBS="$LTHREAD_LIBS $LIBS"
34714 if test $ol_cv_lib_db != yes ; then
34715 LIBS="$ol_cv_lib_db $LIBS"
34718 if test "$cross_compiling" = yes; then
34719 ol_cv_berkeley_db_version=cross
34721 cat >conftest.$ac_ext <<_ACEOF
34724 cat confdefs.h >>conftest.$ac_ext
34725 cat >>conftest.$ac_ext <<_ACEOF
34726 /* end confdefs.h. */
34728 #ifdef HAVE_DB_185_H
34733 #ifndef DB_VERSION_MAJOR
34734 # define DB_VERSION_MAJOR 1
34737 #define NULL ((void *)0)
34741 #if DB_VERSION_MAJOR > 1
34743 int major, minor, patch;
34745 version = db_version( &major, &minor, &patch );
34747 if( major != DB_VERSION_MAJOR ||
34748 minor != DB_VERSION_MINOR ||
34749 patch != DB_VERSION_PATCH )
34751 printf("Berkeley DB version mismatch\n"
34752 "\theader: %s\n\tlibrary: %s\n",
34753 DB_VERSION_STRING, version);
34761 rm -f conftest$ac_exeext
34762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34763 (eval $ac_link) 2>&5
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34768 (eval $ac_try) 2>&5
34770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771 (exit $ac_status); }; }; then
34772 ol_cv_berkeley_db_version=yes
34774 echo "$as_me: program exited with status $ac_status" >&5
34775 echo "$as_me: failed program was:" >&5
34776 sed 's/^/| /' conftest.$ac_ext >&5
34778 ( exit $ac_status )
34779 ol_cv_berkeley_db_version=no
34781 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34787 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34788 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34790 if test $ol_cv_berkeley_db_version = no ; then
34791 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34792 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34793 { (exit 1); exit 1; }; }
34796 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34797 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34798 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34799 echo $ECHO_N "(cached) $ECHO_C" >&6
34803 LIBS="$LTHREAD_LIBS $LIBS"
34804 if test $ol_cv_lib_db != yes ; then
34805 LIBS="$ol_cv_lib_db $LIBS"
34808 if test "$cross_compiling" = yes; then
34809 ol_cv_berkeley_db_thread=cross
34811 cat >conftest.$ac_ext <<_ACEOF
34814 cat confdefs.h >>conftest.$ac_ext
34815 cat >>conftest.$ac_ext <<_ACEOF
34816 /* end confdefs.h. */
34818 #ifdef HAVE_DB_185_H
34824 #define NULL ((void *)0)
34829 u_int32_t flags = DB_CREATE |
34835 #if DB_VERSION_MAJOR > 2
34836 DB_ENV *env = NULL;
34838 rc = db_env_create( &env, 0 );
34840 flags |= DB_INIT_MPOOL;
34841 #ifdef DB_MPOOL_PRIVATE
34842 flags |= DB_MPOOL_PRIVATE;
34846 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34850 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34851 rc = env->open( env, NULL, flags, 0 );
34853 rc = env->open( env, NULL, NULL, flags, 0 );
34857 rc = env->close( env, 0 );
34861 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34867 memset( &env, '\0', sizeof(env) );
34869 rc = db_appinit( NULL, NULL, &env, flags );
34872 db_appexit( &env );
34875 unlink("__db_mpool.share");
34876 unlink("__db_lock.share");
34882 rm -f conftest$ac_exeext
34883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34884 (eval $ac_link) 2>&5
34886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34889 (eval $ac_try) 2>&5
34891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34892 (exit $ac_status); }; }; then
34893 ol_cv_berkeley_db_thread=yes
34895 echo "$as_me: program exited with status $ac_status" >&5
34896 echo "$as_me: failed program was:" >&5
34897 sed 's/^/| /' conftest.$ac_ext >&5
34899 ( exit $ac_status )
34900 ol_cv_berkeley_db_thread=no
34902 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34908 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34909 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34911 if test $ol_cv_berkeley_db_thread != no ; then
34913 cat >>confdefs.h <<\_ACEOF
34914 #define HAVE_BERKELEY_DB_THREAD 1
34924 if test $ol_cv_berkeley_db != no ; then
34926 cat >>confdefs.h <<\_ACEOF
34927 #define HAVE_BERKELEY_DB 1
34931 ol_link_ldbm=berkeley
34932 ol_enable_ldbm_api=berkeley
34934 if test $ol_enable_ldbm_type = hash ; then
34936 cat >>confdefs.h <<\_ACEOF
34937 #define LDBM_USE_DBHASH 1
34942 cat >>confdefs.h <<\_ACEOF
34943 #define LDBM_USE_DBBTREE 1
34948 if test $ol_cv_lib_db != yes ; then
34949 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34955 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34956 if test $ol_link_ldbm != berkeley ; then
34957 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34958 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34959 { (exit 1); exit 1; }; }
34961 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34962 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34963 if test "${ol_cv_bdb_compat+set}" = set; then
34964 echo $ECHO_N "(cached) $ECHO_C" >&6
34967 cat >conftest.$ac_ext <<_ACEOF
34970 cat confdefs.h >>conftest.$ac_ext
34971 cat >>conftest.$ac_ext <<_ACEOF
34972 /* end confdefs.h. */
34976 /* this check could be improved */
34977 #ifndef DB_VERSION_MAJOR
34978 # define DB_VERSION_MAJOR 1
34980 #ifndef DB_VERSION_MINOR
34981 # define DB_VERSION_MINOR 0
34984 /* require 4.2 or later */
34985 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34986 __db_version_compat
34990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34991 $EGREP "__db_version_compat" >/dev/null 2>&1; then
34992 ol_cv_bdb_compat=yes
34994 ol_cv_bdb_compat=no
34999 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
35000 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
35003 if test $ol_cv_bdb_compat != yes ; then
35004 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
35005 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
35006 { (exit 1); exit 1; }; }
35011 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
35012 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
35013 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
35014 ol_enable_ldbm_api=none
35017 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
35018 echo "$as_me:$LINENO: checking for MDBM library" >&5
35019 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
35020 if test "${ol_cv_lib_mdbm+set}" = set; then
35021 echo $ECHO_N "(cached) $ECHO_C" >&6
35024 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
35025 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
35026 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
35027 echo $ECHO_N "(cached) $ECHO_C" >&6
35029 cat >conftest.$ac_ext <<_ACEOF
35032 cat confdefs.h >>conftest.$ac_ext
35033 cat >>conftest.$ac_ext <<_ACEOF
35034 /* end confdefs.h. */
35035 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
35036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35037 #define mdbm_set_chain innocuous_mdbm_set_chain
35039 /* System header to define __stub macros and hopefully few prototypes,
35040 which can conflict with char mdbm_set_chain (); below.
35041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35042 <limits.h> exists even on freestanding compilers. */
35045 # include <limits.h>
35047 # include <assert.h>
35050 #undef mdbm_set_chain
35052 /* Override any gcc2 internal prototype to avoid an error. */
35057 /* We use char because int might match the return type of a gcc2
35058 builtin and then its argument prototype would still apply. */
35059 char mdbm_set_chain ();
35060 /* The GNU C library defines this for functions which it implements
35061 to always fail with ENOSYS. Some functions are actually named
35062 something starting with __ and the normal name is an alias. */
35063 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
35066 char (*f) () = mdbm_set_chain;
35075 return f != mdbm_set_chain;
35080 rm -f conftest.$ac_objext conftest$ac_exeext
35081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35082 (eval $ac_link) 2>conftest.er1
35084 grep -v '^ *+' conftest.er1 >conftest.err
35086 cat conftest.err >&5
35087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35088 (exit $ac_status); } &&
35089 { ac_try='test -z "$ac_c_werror_flag"
35090 || test ! -s conftest.err'
35091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35092 (eval $ac_try) 2>&5
35094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35095 (exit $ac_status); }; } &&
35096 { ac_try='test -s conftest$ac_exeext'
35097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35098 (eval $ac_try) 2>&5
35100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101 (exit $ac_status); }; }; then
35102 ac_cv_func_mdbm_set_chain=yes
35104 echo "$as_me: failed program was:" >&5
35105 sed 's/^/| /' conftest.$ac_ext >&5
35107 ac_cv_func_mdbm_set_chain=no
35109 rm -f conftest.err conftest.$ac_objext \
35110 conftest$ac_exeext conftest.$ac_ext
35112 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
35113 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
35114 if test $ac_cv_func_mdbm_set_chain = yes; then
35118 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
35119 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
35120 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
35121 echo $ECHO_N "(cached) $ECHO_C" >&6
35123 ac_check_lib_save_LIBS=$LIBS
35124 LIBS="-lmdbm $LIBS"
35125 cat >conftest.$ac_ext <<_ACEOF
35128 cat confdefs.h >>conftest.$ac_ext
35129 cat >>conftest.$ac_ext <<_ACEOF
35130 /* end confdefs.h. */
35132 /* Override any gcc2 internal prototype to avoid an error. */
35136 /* We use char because int might match the return type of a gcc2
35137 builtin and then its argument prototype would still apply. */
35138 char mdbm_set_chain ();
35147 rm -f conftest.$ac_objext conftest$ac_exeext
35148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35149 (eval $ac_link) 2>conftest.er1
35151 grep -v '^ *+' conftest.er1 >conftest.err
35153 cat conftest.err >&5
35154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35155 (exit $ac_status); } &&
35156 { ac_try='test -z "$ac_c_werror_flag"
35157 || test ! -s conftest.err'
35158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35159 (eval $ac_try) 2>&5
35161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35162 (exit $ac_status); }; } &&
35163 { ac_try='test -s conftest$ac_exeext'
35164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35165 (eval $ac_try) 2>&5
35167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35168 (exit $ac_status); }; }; then
35169 ac_cv_lib_mdbm_mdbm_set_chain=yes
35171 echo "$as_me: failed program was:" >&5
35172 sed 's/^/| /' conftest.$ac_ext >&5
35174 ac_cv_lib_mdbm_mdbm_set_chain=no
35176 rm -f conftest.err conftest.$ac_objext \
35177 conftest$ac_exeext conftest.$ac_ext
35178 LIBS=$ac_check_lib_save_LIBS
35180 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
35181 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
35182 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
35183 ol_cv_lib_mdbm=-lmdbm
35194 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
35195 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
35199 for ac_header in mdbm.h
35201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35203 echo "$as_me:$LINENO: checking for $ac_header" >&5
35204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35206 echo $ECHO_N "(cached) $ECHO_C" >&6
35208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35211 # Is the header compilable?
35212 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35214 cat >conftest.$ac_ext <<_ACEOF
35217 cat confdefs.h >>conftest.$ac_ext
35218 cat >>conftest.$ac_ext <<_ACEOF
35219 /* end confdefs.h. */
35220 $ac_includes_default
35221 #include <$ac_header>
35223 rm -f conftest.$ac_objext
35224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35225 (eval $ac_compile) 2>conftest.er1
35227 grep -v '^ *+' conftest.er1 >conftest.err
35229 cat conftest.err >&5
35230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231 (exit $ac_status); } &&
35232 { ac_try='test -z "$ac_c_werror_flag"
35233 || test ! -s conftest.err'
35234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35235 (eval $ac_try) 2>&5
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); }; } &&
35239 { ac_try='test -s conftest.$ac_objext'
35240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35241 (eval $ac_try) 2>&5
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244 (exit $ac_status); }; }; then
35245 ac_header_compiler=yes
35247 echo "$as_me: failed program was:" >&5
35248 sed 's/^/| /' conftest.$ac_ext >&5
35250 ac_header_compiler=no
35252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35254 echo "${ECHO_T}$ac_header_compiler" >&6
35256 # Is the header present?
35257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35259 cat >conftest.$ac_ext <<_ACEOF
35262 cat confdefs.h >>conftest.$ac_ext
35263 cat >>conftest.$ac_ext <<_ACEOF
35264 /* end confdefs.h. */
35265 #include <$ac_header>
35267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35270 grep -v '^ *+' conftest.er1 >conftest.err
35272 cat conftest.err >&5
35273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35274 (exit $ac_status); } >/dev/null; then
35275 if test -s conftest.err; then
35276 ac_cpp_err=$ac_c_preproc_warn_flag
35277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35284 if test -z "$ac_cpp_err"; then
35285 ac_header_preproc=yes
35287 echo "$as_me: failed program was:" >&5
35288 sed 's/^/| /' conftest.$ac_ext >&5
35290 ac_header_preproc=no
35292 rm -f conftest.err conftest.$ac_ext
35293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35294 echo "${ECHO_T}$ac_header_preproc" >&6
35296 # So? What about this header?
35297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35303 ac_header_preproc=yes
35306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35320 ## --------------------------------------------- ##
35321 ## Report this to <http://www.openldap.org/its/> ##
35322 ## --------------------------------------------- ##
35325 sed "s/^/$as_me: WARNING: /" >&2
35328 echo "$as_me:$LINENO: checking for $ac_header" >&5
35329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35331 echo $ECHO_N "(cached) $ECHO_C" >&6
35333 eval "$as_ac_Header=\$ac_header_preproc"
35335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35340 cat >>confdefs.h <<_ACEOF
35341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35348 echo "$as_me:$LINENO: checking for db" >&5
35349 echo $ECHO_N "checking for db... $ECHO_C" >&6
35350 if test "${ol_cv_mdbm+set}" = set; then
35351 echo $ECHO_N "(cached) $ECHO_C" >&6
35354 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35361 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35362 echo "${ECHO_T}$ol_cv_mdbm" >&6
35363 if test $ol_cv_mdbm = yes ; then
35365 cat >>confdefs.h <<\_ACEOF
35366 #define HAVE_MDBM 1
35372 if test $ol_cv_mdbm = yes ; then
35374 ol_enable_ldbm_api=mdbm
35375 if test $ol_cv_lib_mdbm != yes ; then
35376 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35381 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35382 echo "$as_me:$LINENO: checking for GDBM library" >&5
35383 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35384 if test "${ol_cv_lib_gdbm+set}" = set; then
35385 echo $ECHO_N "(cached) $ECHO_C" >&6
35388 echo "$as_me:$LINENO: checking for gdbm_open" >&5
35389 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35390 if test "${ac_cv_func_gdbm_open+set}" = set; then
35391 echo $ECHO_N "(cached) $ECHO_C" >&6
35393 cat >conftest.$ac_ext <<_ACEOF
35396 cat confdefs.h >>conftest.$ac_ext
35397 cat >>conftest.$ac_ext <<_ACEOF
35398 /* end confdefs.h. */
35399 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35401 #define gdbm_open innocuous_gdbm_open
35403 /* System header to define __stub macros and hopefully few prototypes,
35404 which can conflict with char gdbm_open (); below.
35405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35406 <limits.h> exists even on freestanding compilers. */
35409 # include <limits.h>
35411 # include <assert.h>
35416 /* Override any gcc2 internal prototype to avoid an error. */
35421 /* We use char because int might match the return type of a gcc2
35422 builtin and then its argument prototype would still apply. */
35424 /* The GNU C library defines this for functions which it implements
35425 to always fail with ENOSYS. Some functions are actually named
35426 something starting with __ and the normal name is an alias. */
35427 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35430 char (*f) () = gdbm_open;
35439 return f != gdbm_open;
35444 rm -f conftest.$ac_objext conftest$ac_exeext
35445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35446 (eval $ac_link) 2>conftest.er1
35448 grep -v '^ *+' conftest.er1 >conftest.err
35450 cat conftest.err >&5
35451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35452 (exit $ac_status); } &&
35453 { ac_try='test -z "$ac_c_werror_flag"
35454 || test ! -s conftest.err'
35455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35456 (eval $ac_try) 2>&5
35458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459 (exit $ac_status); }; } &&
35460 { ac_try='test -s conftest$ac_exeext'
35461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35462 (eval $ac_try) 2>&5
35464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35465 (exit $ac_status); }; }; then
35466 ac_cv_func_gdbm_open=yes
35468 echo "$as_me: failed program was:" >&5
35469 sed 's/^/| /' conftest.$ac_ext >&5
35471 ac_cv_func_gdbm_open=no
35473 rm -f conftest.err conftest.$ac_objext \
35474 conftest$ac_exeext conftest.$ac_ext
35476 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35477 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35478 if test $ac_cv_func_gdbm_open = yes; then
35482 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35483 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35484 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35485 echo $ECHO_N "(cached) $ECHO_C" >&6
35487 ac_check_lib_save_LIBS=$LIBS
35488 LIBS="-lgdbm $LIBS"
35489 cat >conftest.$ac_ext <<_ACEOF
35492 cat confdefs.h >>conftest.$ac_ext
35493 cat >>conftest.$ac_ext <<_ACEOF
35494 /* end confdefs.h. */
35496 /* Override any gcc2 internal prototype to avoid an error. */
35500 /* We use char because int might match the return type of a gcc2
35501 builtin and then its argument prototype would still apply. */
35511 rm -f conftest.$ac_objext conftest$ac_exeext
35512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35513 (eval $ac_link) 2>conftest.er1
35515 grep -v '^ *+' conftest.er1 >conftest.err
35517 cat conftest.err >&5
35518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35519 (exit $ac_status); } &&
35520 { ac_try='test -z "$ac_c_werror_flag"
35521 || test ! -s conftest.err'
35522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35523 (eval $ac_try) 2>&5
35525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); }; } &&
35527 { ac_try='test -s conftest$ac_exeext'
35528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35529 (eval $ac_try) 2>&5
35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532 (exit $ac_status); }; }; then
35533 ac_cv_lib_gdbm_gdbm_open=yes
35535 echo "$as_me: failed program was:" >&5
35536 sed 's/^/| /' conftest.$ac_ext >&5
35538 ac_cv_lib_gdbm_gdbm_open=no
35540 rm -f conftest.err conftest.$ac_objext \
35541 conftest$ac_exeext conftest.$ac_ext
35542 LIBS=$ac_check_lib_save_LIBS
35544 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35545 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35546 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35547 ol_cv_lib_gdbm=-lgdbm
35558 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35559 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35563 for ac_header in gdbm.h
35565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35567 echo "$as_me:$LINENO: checking for $ac_header" >&5
35568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35570 echo $ECHO_N "(cached) $ECHO_C" >&6
35572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35575 # Is the header compilable?
35576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35578 cat >conftest.$ac_ext <<_ACEOF
35581 cat confdefs.h >>conftest.$ac_ext
35582 cat >>conftest.$ac_ext <<_ACEOF
35583 /* end confdefs.h. */
35584 $ac_includes_default
35585 #include <$ac_header>
35587 rm -f conftest.$ac_objext
35588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35589 (eval $ac_compile) 2>conftest.er1
35591 grep -v '^ *+' conftest.er1 >conftest.err
35593 cat conftest.err >&5
35594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595 (exit $ac_status); } &&
35596 { ac_try='test -z "$ac_c_werror_flag"
35597 || test ! -s conftest.err'
35598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35599 (eval $ac_try) 2>&5
35601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602 (exit $ac_status); }; } &&
35603 { ac_try='test -s conftest.$ac_objext'
35604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35605 (eval $ac_try) 2>&5
35607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608 (exit $ac_status); }; }; then
35609 ac_header_compiler=yes
35611 echo "$as_me: failed program was:" >&5
35612 sed 's/^/| /' conftest.$ac_ext >&5
35614 ac_header_compiler=no
35616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35618 echo "${ECHO_T}$ac_header_compiler" >&6
35620 # Is the header present?
35621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35623 cat >conftest.$ac_ext <<_ACEOF
35626 cat confdefs.h >>conftest.$ac_ext
35627 cat >>conftest.$ac_ext <<_ACEOF
35628 /* end confdefs.h. */
35629 #include <$ac_header>
35631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35634 grep -v '^ *+' conftest.er1 >conftest.err
35636 cat conftest.err >&5
35637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638 (exit $ac_status); } >/dev/null; then
35639 if test -s conftest.err; then
35640 ac_cpp_err=$ac_c_preproc_warn_flag
35641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35648 if test -z "$ac_cpp_err"; then
35649 ac_header_preproc=yes
35651 echo "$as_me: failed program was:" >&5
35652 sed 's/^/| /' conftest.$ac_ext >&5
35654 ac_header_preproc=no
35656 rm -f conftest.err conftest.$ac_ext
35657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35658 echo "${ECHO_T}$ac_header_preproc" >&6
35660 # So? What about this header?
35661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35667 ac_header_preproc=yes
35670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35684 ## --------------------------------------------- ##
35685 ## Report this to <http://www.openldap.org/its/> ##
35686 ## --------------------------------------------- ##
35689 sed "s/^/$as_me: WARNING: /" >&2
35692 echo "$as_me:$LINENO: checking for $ac_header" >&5
35693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35695 echo $ECHO_N "(cached) $ECHO_C" >&6
35697 eval "$as_ac_Header=\$ac_header_preproc"
35699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35704 cat >>confdefs.h <<_ACEOF
35705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35712 echo "$as_me:$LINENO: checking for db" >&5
35713 echo $ECHO_N "checking for db... $ECHO_C" >&6
35714 if test "${ol_cv_gdbm+set}" = set; then
35715 echo $ECHO_N "(cached) $ECHO_C" >&6
35718 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35725 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35726 echo "${ECHO_T}$ol_cv_gdbm" >&6
35727 if test $ol_cv_gdbm = yes ; then
35729 cat >>confdefs.h <<\_ACEOF
35730 #define HAVE_GDBM 1
35736 if test $ol_cv_gdbm = yes ; then
35738 ol_enable_ldbm_api=gdbm
35740 if test $ol_cv_lib_gdbm != yes ; then
35741 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35746 if test $ol_enable_ldbm_api = ndbm ; then
35747 echo "$as_me:$LINENO: checking for NDBM library" >&5
35748 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35749 if test "${ol_cv_lib_ndbm+set}" = set; then
35750 echo $ECHO_N "(cached) $ECHO_C" >&6
35753 echo "$as_me:$LINENO: checking for dbm_open" >&5
35754 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35755 if test "${ac_cv_func_dbm_open+set}" = set; then
35756 echo $ECHO_N "(cached) $ECHO_C" >&6
35758 cat >conftest.$ac_ext <<_ACEOF
35761 cat confdefs.h >>conftest.$ac_ext
35762 cat >>conftest.$ac_ext <<_ACEOF
35763 /* end confdefs.h. */
35764 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35766 #define dbm_open innocuous_dbm_open
35768 /* System header to define __stub macros and hopefully few prototypes,
35769 which can conflict with char dbm_open (); below.
35770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35771 <limits.h> exists even on freestanding compilers. */
35774 # include <limits.h>
35776 # include <assert.h>
35781 /* Override any gcc2 internal prototype to avoid an error. */
35786 /* We use char because int might match the return type of a gcc2
35787 builtin and then its argument prototype would still apply. */
35789 /* The GNU C library defines this for functions which it implements
35790 to always fail with ENOSYS. Some functions are actually named
35791 something starting with __ and the normal name is an alias. */
35792 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35795 char (*f) () = dbm_open;
35804 return f != dbm_open;
35809 rm -f conftest.$ac_objext conftest$ac_exeext
35810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35811 (eval $ac_link) 2>conftest.er1
35813 grep -v '^ *+' conftest.er1 >conftest.err
35815 cat conftest.err >&5
35816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817 (exit $ac_status); } &&
35818 { ac_try='test -z "$ac_c_werror_flag"
35819 || test ! -s conftest.err'
35820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35821 (eval $ac_try) 2>&5
35823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35824 (exit $ac_status); }; } &&
35825 { ac_try='test -s conftest$ac_exeext'
35826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35827 (eval $ac_try) 2>&5
35829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830 (exit $ac_status); }; }; then
35831 ac_cv_func_dbm_open=yes
35833 echo "$as_me: failed program was:" >&5
35834 sed 's/^/| /' conftest.$ac_ext >&5
35836 ac_cv_func_dbm_open=no
35838 rm -f conftest.err conftest.$ac_objext \
35839 conftest$ac_exeext conftest.$ac_ext
35841 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35842 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35843 if test $ac_cv_func_dbm_open = yes; then
35847 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35848 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35849 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35850 echo $ECHO_N "(cached) $ECHO_C" >&6
35852 ac_check_lib_save_LIBS=$LIBS
35853 LIBS="-lndbm $LIBS"
35854 cat >conftest.$ac_ext <<_ACEOF
35857 cat confdefs.h >>conftest.$ac_ext
35858 cat >>conftest.$ac_ext <<_ACEOF
35859 /* end confdefs.h. */
35861 /* Override any gcc2 internal prototype to avoid an error. */
35865 /* We use char because int might match the return type of a gcc2
35866 builtin and then its argument prototype would still apply. */
35876 rm -f conftest.$ac_objext conftest$ac_exeext
35877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35878 (eval $ac_link) 2>conftest.er1
35880 grep -v '^ *+' conftest.er1 >conftest.err
35882 cat conftest.err >&5
35883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884 (exit $ac_status); } &&
35885 { ac_try='test -z "$ac_c_werror_flag"
35886 || test ! -s conftest.err'
35887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35888 (eval $ac_try) 2>&5
35890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891 (exit $ac_status); }; } &&
35892 { ac_try='test -s conftest$ac_exeext'
35893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35894 (eval $ac_try) 2>&5
35896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35897 (exit $ac_status); }; }; then
35898 ac_cv_lib_ndbm_dbm_open=yes
35900 echo "$as_me: failed program was:" >&5
35901 sed 's/^/| /' conftest.$ac_ext >&5
35903 ac_cv_lib_ndbm_dbm_open=no
35905 rm -f conftest.err conftest.$ac_objext \
35906 conftest$ac_exeext conftest.$ac_ext
35907 LIBS=$ac_check_lib_save_LIBS
35909 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35910 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35911 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35912 ol_cv_lib_ndbm=-lndbm
35915 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35916 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35917 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35918 echo $ECHO_N "(cached) $ECHO_C" >&6
35920 ac_check_lib_save_LIBS=$LIBS
35922 cat >conftest.$ac_ext <<_ACEOF
35925 cat confdefs.h >>conftest.$ac_ext
35926 cat >>conftest.$ac_ext <<_ACEOF
35927 /* end confdefs.h. */
35929 /* Override any gcc2 internal prototype to avoid an error. */
35933 /* We use char because int might match the return type of a gcc2
35934 builtin and then its argument prototype would still apply. */
35944 rm -f conftest.$ac_objext conftest$ac_exeext
35945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35946 (eval $ac_link) 2>conftest.er1
35948 grep -v '^ *+' conftest.er1 >conftest.err
35950 cat conftest.err >&5
35951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952 (exit $ac_status); } &&
35953 { ac_try='test -z "$ac_c_werror_flag"
35954 || test ! -s conftest.err'
35955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35956 (eval $ac_try) 2>&5
35958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35959 (exit $ac_status); }; } &&
35960 { ac_try='test -s conftest$ac_exeext'
35961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35962 (eval $ac_try) 2>&5
35964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35965 (exit $ac_status); }; }; then
35966 ac_cv_lib_dbm_dbm_open=yes
35968 echo "$as_me: failed program was:" >&5
35969 sed 's/^/| /' conftest.$ac_ext >&5
35971 ac_cv_lib_dbm_dbm_open=no
35973 rm -f conftest.err conftest.$ac_objext \
35974 conftest$ac_exeext conftest.$ac_ext
35975 LIBS=$ac_check_lib_save_LIBS
35977 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35978 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35979 if test $ac_cv_lib_dbm_dbm_open = yes; then
35980 ol_cv_lib_ndbm=-ldbm
35993 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35994 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35998 for ac_header in ndbm.h
36000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36002 echo "$as_me:$LINENO: checking for $ac_header" >&5
36003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36005 echo $ECHO_N "(cached) $ECHO_C" >&6
36007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36010 # Is the header compilable?
36011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36013 cat >conftest.$ac_ext <<_ACEOF
36016 cat confdefs.h >>conftest.$ac_ext
36017 cat >>conftest.$ac_ext <<_ACEOF
36018 /* end confdefs.h. */
36019 $ac_includes_default
36020 #include <$ac_header>
36022 rm -f conftest.$ac_objext
36023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36024 (eval $ac_compile) 2>conftest.er1
36026 grep -v '^ *+' conftest.er1 >conftest.err
36028 cat conftest.err >&5
36029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36030 (exit $ac_status); } &&
36031 { ac_try='test -z "$ac_c_werror_flag"
36032 || test ! -s conftest.err'
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); }; } &&
36038 { ac_try='test -s conftest.$ac_objext'
36039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36040 (eval $ac_try) 2>&5
36042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36043 (exit $ac_status); }; }; then
36044 ac_header_compiler=yes
36046 echo "$as_me: failed program was:" >&5
36047 sed 's/^/| /' conftest.$ac_ext >&5
36049 ac_header_compiler=no
36051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36053 echo "${ECHO_T}$ac_header_compiler" >&6
36055 # Is the header present?
36056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36058 cat >conftest.$ac_ext <<_ACEOF
36061 cat confdefs.h >>conftest.$ac_ext
36062 cat >>conftest.$ac_ext <<_ACEOF
36063 /* end confdefs.h. */
36064 #include <$ac_header>
36066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36069 grep -v '^ *+' conftest.er1 >conftest.err
36071 cat conftest.err >&5
36072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36073 (exit $ac_status); } >/dev/null; then
36074 if test -s conftest.err; then
36075 ac_cpp_err=$ac_c_preproc_warn_flag
36076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36083 if test -z "$ac_cpp_err"; then
36084 ac_header_preproc=yes
36086 echo "$as_me: failed program was:" >&5
36087 sed 's/^/| /' conftest.$ac_ext >&5
36089 ac_header_preproc=no
36091 rm -f conftest.err conftest.$ac_ext
36092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36093 echo "${ECHO_T}$ac_header_preproc" >&6
36095 # So? What about this header?
36096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36102 ac_header_preproc=yes
36105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36119 ## --------------------------------------------- ##
36120 ## Report this to <http://www.openldap.org/its/> ##
36121 ## --------------------------------------------- ##
36124 sed "s/^/$as_me: WARNING: /" >&2
36127 echo "$as_me:$LINENO: checking for $ac_header" >&5
36128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36130 echo $ECHO_N "(cached) $ECHO_C" >&6
36132 eval "$as_ac_Header=\$ac_header_preproc"
36134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36139 cat >>confdefs.h <<_ACEOF
36140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36147 echo "$as_me:$LINENO: checking for db" >&5
36148 echo $ECHO_N "checking for db... $ECHO_C" >&6
36149 if test "${ol_cv_ndbm+set}" = set; then
36150 echo $ECHO_N "(cached) $ECHO_C" >&6
36153 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
36160 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
36161 echo "${ECHO_T}$ol_cv_ndbm" >&6
36162 if test $ol_cv_ndbm = yes ; then
36164 cat >>confdefs.h <<\_ACEOF
36165 #define HAVE_NDBM 1
36171 if test $ol_cv_ndbm = yes ; then
36173 ol_enable_ldbm_api=ndbm
36175 if test $ol_cv_lib_ndbm != yes ; then
36176 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
36181 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
36182 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
36183 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
36184 { (exit 1); exit 1; }; }
36187 if test $ol_enable_bdb = yes ||
36188 test $ol_enable_hdb = yes ||
36189 test $ol_enable_ldbm = yes ; then
36190 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
36194 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
36195 BUILD_LIBS_DYNAMIC=shared
36197 cat >>confdefs.h <<\_ACEOF
36198 #define LDAP_LIBS_DYNAMIC 1
36203 BUILD_LIBS_DYNAMIC=static
36207 if test $ol_enable_wrappers != no ; then
36209 for ac_header in tcpd.h
36211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36213 echo "$as_me:$LINENO: checking for $ac_header" >&5
36214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36216 echo $ECHO_N "(cached) $ECHO_C" >&6
36218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36221 # Is the header compilable?
36222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36224 cat >conftest.$ac_ext <<_ACEOF
36227 cat confdefs.h >>conftest.$ac_ext
36228 cat >>conftest.$ac_ext <<_ACEOF
36229 /* end confdefs.h. */
36230 $ac_includes_default
36231 #include <$ac_header>
36233 rm -f conftest.$ac_objext
36234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36235 (eval $ac_compile) 2>conftest.er1
36237 grep -v '^ *+' conftest.er1 >conftest.err
36239 cat conftest.err >&5
36240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241 (exit $ac_status); } &&
36242 { ac_try='test -z "$ac_c_werror_flag"
36243 || test ! -s conftest.err'
36244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36245 (eval $ac_try) 2>&5
36247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36248 (exit $ac_status); }; } &&
36249 { ac_try='test -s conftest.$ac_objext'
36250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36251 (eval $ac_try) 2>&5
36253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36254 (exit $ac_status); }; }; then
36255 ac_header_compiler=yes
36257 echo "$as_me: failed program was:" >&5
36258 sed 's/^/| /' conftest.$ac_ext >&5
36260 ac_header_compiler=no
36262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36264 echo "${ECHO_T}$ac_header_compiler" >&6
36266 # Is the header present?
36267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36269 cat >conftest.$ac_ext <<_ACEOF
36272 cat confdefs.h >>conftest.$ac_ext
36273 cat >>conftest.$ac_ext <<_ACEOF
36274 /* end confdefs.h. */
36275 #include <$ac_header>
36277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36280 grep -v '^ *+' conftest.er1 >conftest.err
36282 cat conftest.err >&5
36283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36284 (exit $ac_status); } >/dev/null; then
36285 if test -s conftest.err; then
36286 ac_cpp_err=$ac_c_preproc_warn_flag
36287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36294 if test -z "$ac_cpp_err"; then
36295 ac_header_preproc=yes
36297 echo "$as_me: failed program was:" >&5
36298 sed 's/^/| /' conftest.$ac_ext >&5
36300 ac_header_preproc=no
36302 rm -f conftest.err conftest.$ac_ext
36303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36304 echo "${ECHO_T}$ac_header_preproc" >&6
36306 # So? What about this header?
36307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36313 ac_header_preproc=yes
36316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36330 ## --------------------------------------------- ##
36331 ## Report this to <http://www.openldap.org/its/> ##
36332 ## --------------------------------------------- ##
36335 sed "s/^/$as_me: WARNING: /" >&2
36338 echo "$as_me:$LINENO: checking for $ac_header" >&5
36339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36341 echo $ECHO_N "(cached) $ECHO_C" >&6
36343 eval "$as_ac_Header=\$ac_header_preproc"
36345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36350 cat >>confdefs.h <<_ACEOF
36351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36354 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36355 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36357 LIBS="$LIBS -lwrap"
36358 cat >conftest.$ac_ext <<_ACEOF
36361 cat confdefs.h >>conftest.$ac_ext
36362 cat >>conftest.$ac_ext <<_ACEOF
36363 /* end confdefs.h. */
36366 int allow_severity = 0;
36367 int deny_severity = 0;
36369 struct request_info *req;
36381 rm -f conftest.$ac_objext conftest$ac_exeext
36382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36383 (eval $ac_link) 2>conftest.er1
36385 grep -v '^ *+' conftest.er1 >conftest.err
36387 cat conftest.err >&5
36388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389 (exit $ac_status); } &&
36390 { ac_try='test -z "$ac_c_werror_flag"
36391 || test ! -s conftest.err'
36392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36393 (eval $ac_try) 2>&5
36395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396 (exit $ac_status); }; } &&
36397 { ac_try='test -s conftest$ac_exeext'
36398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36399 (eval $ac_try) 2>&5
36401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36402 (exit $ac_status); }; }; then
36403 echo "$as_me:$LINENO: result: -lwrap" >&5
36404 echo "${ECHO_T}-lwrap" >&6
36408 echo "$as_me: failed program was:" >&5
36409 sed 's/^/| /' conftest.$ac_ext >&5
36413 cat >conftest.$ac_ext <<_ACEOF
36416 cat confdefs.h >>conftest.$ac_ext
36417 cat >>conftest.$ac_ext <<_ACEOF
36418 /* end confdefs.h. */
36421 int allow_severity = 0;
36422 int deny_severity = 0;
36424 struct request_info *req;
36436 rm -f conftest.$ac_objext conftest$ac_exeext
36437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36438 (eval $ac_link) 2>conftest.er1
36440 grep -v '^ *+' conftest.er1 >conftest.err
36442 cat conftest.err >&5
36443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444 (exit $ac_status); } &&
36445 { ac_try='test -z "$ac_c_werror_flag"
36446 || test ! -s conftest.err'
36447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448 (eval $ac_try) 2>&5
36450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451 (exit $ac_status); }; } &&
36452 { ac_try='test -s conftest$ac_exeext'
36453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36454 (eval $ac_try) 2>&5
36456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457 (exit $ac_status); }; }; then
36458 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36459 echo "${ECHO_T}-lwrap -lnsl" >&6
36461 LIBS="$save_LIBS -lnsl"
36463 echo "$as_me: failed program was:" >&5
36464 sed 's/^/| /' conftest.$ac_ext >&5
36467 echo "$as_me:$LINENO: result: no" >&5
36468 echo "${ECHO_T}no" >&6
36472 rm -f conftest.err conftest.$ac_objext \
36473 conftest$ac_exeext conftest.$ac_ext
36475 rm -f conftest.err conftest.$ac_objext \
36476 conftest$ac_exeext conftest.$ac_ext
36484 if test $have_wrappers = yes ; then
36486 cat >>confdefs.h <<\_ACEOF
36487 #define HAVE_TCPD 1
36491 elif test $ol_enable_wrappers = yes ; then
36492 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36493 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36494 { (exit 1); exit 1; }; }
36496 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36497 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36502 if test $ol_enable_syslog != no ; then
36503 echo "$as_me:$LINENO: checking for openlog" >&5
36504 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36505 if test "${ac_cv_func_openlog+set}" = set; then
36506 echo $ECHO_N "(cached) $ECHO_C" >&6
36508 cat >conftest.$ac_ext <<_ACEOF
36511 cat confdefs.h >>conftest.$ac_ext
36512 cat >>conftest.$ac_ext <<_ACEOF
36513 /* end confdefs.h. */
36514 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36516 #define openlog innocuous_openlog
36518 /* System header to define __stub macros and hopefully few prototypes,
36519 which can conflict with char openlog (); below.
36520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36521 <limits.h> exists even on freestanding compilers. */
36524 # include <limits.h>
36526 # include <assert.h>
36531 /* Override any gcc2 internal prototype to avoid an error. */
36536 /* We use char because int might match the return type of a gcc2
36537 builtin and then its argument prototype would still apply. */
36539 /* The GNU C library defines this for functions which it implements
36540 to always fail with ENOSYS. Some functions are actually named
36541 something starting with __ and the normal name is an alias. */
36542 #if defined (__stub_openlog) || defined (__stub___openlog)
36545 char (*f) () = openlog;
36554 return f != openlog;
36559 rm -f conftest.$ac_objext conftest$ac_exeext
36560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36561 (eval $ac_link) 2>conftest.er1
36563 grep -v '^ *+' conftest.er1 >conftest.err
36565 cat conftest.err >&5
36566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567 (exit $ac_status); } &&
36568 { ac_try='test -z "$ac_c_werror_flag"
36569 || test ! -s conftest.err'
36570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36571 (eval $ac_try) 2>&5
36573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574 (exit $ac_status); }; } &&
36575 { ac_try='test -s conftest$ac_exeext'
36576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36577 (eval $ac_try) 2>&5
36579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36580 (exit $ac_status); }; }; then
36581 ac_cv_func_openlog=yes
36583 echo "$as_me: failed program was:" >&5
36584 sed 's/^/| /' conftest.$ac_ext >&5
36586 ac_cv_func_openlog=no
36588 rm -f conftest.err conftest.$ac_objext \
36589 conftest$ac_exeext conftest.$ac_ext
36591 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36592 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36594 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36595 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36596 echo "$as_me: error: could not find syslog" >&2;}
36597 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36599 ol_enable_syslog=$ac_cv_func_openlog
36603 if test $ol_enable_sql != no ; then
36606 for ac_header in sql.h sqlext.h
36608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36610 echo "$as_me:$LINENO: checking for $ac_header" >&5
36611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36613 echo $ECHO_N "(cached) $ECHO_C" >&6
36615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36618 # Is the header compilable?
36619 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36621 cat >conftest.$ac_ext <<_ACEOF
36624 cat confdefs.h >>conftest.$ac_ext
36625 cat >>conftest.$ac_ext <<_ACEOF
36626 /* end confdefs.h. */
36627 $ac_includes_default
36628 #include <$ac_header>
36630 rm -f conftest.$ac_objext
36631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36632 (eval $ac_compile) 2>conftest.er1
36634 grep -v '^ *+' conftest.er1 >conftest.err
36636 cat conftest.err >&5
36637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36638 (exit $ac_status); } &&
36639 { ac_try='test -z "$ac_c_werror_flag"
36640 || test ! -s conftest.err'
36641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36642 (eval $ac_try) 2>&5
36644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36645 (exit $ac_status); }; } &&
36646 { ac_try='test -s conftest.$ac_objext'
36647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36648 (eval $ac_try) 2>&5
36650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651 (exit $ac_status); }; }; then
36652 ac_header_compiler=yes
36654 echo "$as_me: failed program was:" >&5
36655 sed 's/^/| /' conftest.$ac_ext >&5
36657 ac_header_compiler=no
36659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36661 echo "${ECHO_T}$ac_header_compiler" >&6
36663 # Is the header present?
36664 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36666 cat >conftest.$ac_ext <<_ACEOF
36669 cat confdefs.h >>conftest.$ac_ext
36670 cat >>conftest.$ac_ext <<_ACEOF
36671 /* end confdefs.h. */
36672 #include <$ac_header>
36674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36677 grep -v '^ *+' conftest.er1 >conftest.err
36679 cat conftest.err >&5
36680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36681 (exit $ac_status); } >/dev/null; then
36682 if test -s conftest.err; then
36683 ac_cpp_err=$ac_c_preproc_warn_flag
36684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36691 if test -z "$ac_cpp_err"; then
36692 ac_header_preproc=yes
36694 echo "$as_me: failed program was:" >&5
36695 sed 's/^/| /' conftest.$ac_ext >&5
36697 ac_header_preproc=no
36699 rm -f conftest.err conftest.$ac_ext
36700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36701 echo "${ECHO_T}$ac_header_preproc" >&6
36703 # So? What about this header?
36704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36710 ac_header_preproc=yes
36713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36727 ## --------------------------------------------- ##
36728 ## Report this to <http://www.openldap.org/its/> ##
36729 ## --------------------------------------------- ##
36732 sed "s/^/$as_me: WARNING: /" >&2
36735 echo "$as_me:$LINENO: checking for $ac_header" >&5
36736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36738 echo $ECHO_N "(cached) $ECHO_C" >&6
36740 eval "$as_ac_Header=\$ac_header_preproc"
36742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36747 cat >>confdefs.h <<_ACEOF
36748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36753 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36754 echo "$as_me: error: could not locate SQL headers" >&2;}
36755 { (exit 1); exit 1; }; }
36763 LIBS="$LTHREAD_LIBS"
36765 if test $ol_with_odbc = auto ; then
36766 ol_with_odbc="iodbc unixodbc"
36769 for odbc in $ol_with_odbc ; do
36770 if test $ol_link_sql = no ; then
36773 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36774 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36775 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36776 echo $ECHO_N "(cached) $ECHO_C" >&6
36778 ac_check_lib_save_LIBS=$LIBS
36779 LIBS="-liodbc $LIBS"
36780 cat >conftest.$ac_ext <<_ACEOF
36783 cat confdefs.h >>conftest.$ac_ext
36784 cat >>conftest.$ac_ext <<_ACEOF
36785 /* end confdefs.h. */
36787 /* Override any gcc2 internal prototype to avoid an error. */
36791 /* We use char because int might match the return type of a gcc2
36792 builtin and then its argument prototype would still apply. */
36793 char SQLDriverConnect ();
36797 SQLDriverConnect ();
36802 rm -f conftest.$ac_objext conftest$ac_exeext
36803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36804 (eval $ac_link) 2>conftest.er1
36806 grep -v '^ *+' conftest.er1 >conftest.err
36808 cat conftest.err >&5
36809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810 (exit $ac_status); } &&
36811 { ac_try='test -z "$ac_c_werror_flag"
36812 || test ! -s conftest.err'
36813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36814 (eval $ac_try) 2>&5
36816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36817 (exit $ac_status); }; } &&
36818 { ac_try='test -s conftest$ac_exeext'
36819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36820 (eval $ac_try) 2>&5
36822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36823 (exit $ac_status); }; }; then
36824 ac_cv_lib_iodbc_SQLDriverConnect=yes
36826 echo "$as_me: failed program was:" >&5
36827 sed 's/^/| /' conftest.$ac_ext >&5
36829 ac_cv_lib_iodbc_SQLDriverConnect=no
36831 rm -f conftest.err conftest.$ac_objext \
36832 conftest$ac_exeext conftest.$ac_ext
36833 LIBS=$ac_check_lib_save_LIBS
36835 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36836 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36837 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36843 if test $have_iodbc = yes ; then
36844 ol_link_sql="-liodbc"
36849 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36850 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36851 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36852 echo $ECHO_N "(cached) $ECHO_C" >&6
36854 ac_check_lib_save_LIBS=$LIBS
36855 LIBS="-lodbc $LIBS"
36856 cat >conftest.$ac_ext <<_ACEOF
36859 cat confdefs.h >>conftest.$ac_ext
36860 cat >>conftest.$ac_ext <<_ACEOF
36861 /* end confdefs.h. */
36863 /* Override any gcc2 internal prototype to avoid an error. */
36867 /* We use char because int might match the return type of a gcc2
36868 builtin and then its argument prototype would still apply. */
36869 char SQLDriverConnect ();
36873 SQLDriverConnect ();
36878 rm -f conftest.$ac_objext conftest$ac_exeext
36879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36880 (eval $ac_link) 2>conftest.er1
36882 grep -v '^ *+' conftest.er1 >conftest.err
36884 cat conftest.err >&5
36885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36886 (exit $ac_status); } &&
36887 { ac_try='test -z "$ac_c_werror_flag"
36888 || test ! -s conftest.err'
36889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36890 (eval $ac_try) 2>&5
36892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893 (exit $ac_status); }; } &&
36894 { ac_try='test -s conftest$ac_exeext'
36895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36896 (eval $ac_try) 2>&5
36898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36899 (exit $ac_status); }; }; then
36900 ac_cv_lib_odbc_SQLDriverConnect=yes
36902 echo "$as_me: failed program was:" >&5
36903 sed 's/^/| /' conftest.$ac_ext >&5
36905 ac_cv_lib_odbc_SQLDriverConnect=no
36907 rm -f conftest.err conftest.$ac_objext \
36908 conftest$ac_exeext conftest.$ac_ext
36909 LIBS=$ac_check_lib_save_LIBS
36911 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36912 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36913 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36919 if test $have_odbc = yes ; then
36920 ol_link_sql="-lodbc"
36925 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
36926 echo "$as_me: error: unknown ODBC library" >&2;}
36927 { (exit 1); exit 1; }; }
36935 if test $ol_link_sql != no ; then
36936 SLAPD_SQL_LIBS="$ol_link_sql"
36938 elif test $ol_enable_sql != auto ; then
36939 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36940 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36941 { (exit 1); exit 1; }; }
36948 if test $ol_with_cyrus_sasl != no ; then
36951 for ac_header in sasl/sasl.h sasl.h
36953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36955 echo "$as_me:$LINENO: checking for $ac_header" >&5
36956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36958 echo $ECHO_N "(cached) $ECHO_C" >&6
36960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36963 # Is the header compilable?
36964 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36966 cat >conftest.$ac_ext <<_ACEOF
36969 cat confdefs.h >>conftest.$ac_ext
36970 cat >>conftest.$ac_ext <<_ACEOF
36971 /* end confdefs.h. */
36972 $ac_includes_default
36973 #include <$ac_header>
36975 rm -f conftest.$ac_objext
36976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36977 (eval $ac_compile) 2>conftest.er1
36979 grep -v '^ *+' conftest.er1 >conftest.err
36981 cat conftest.err >&5
36982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983 (exit $ac_status); } &&
36984 { ac_try='test -z "$ac_c_werror_flag"
36985 || test ! -s conftest.err'
36986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36987 (eval $ac_try) 2>&5
36989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36990 (exit $ac_status); }; } &&
36991 { ac_try='test -s conftest.$ac_objext'
36992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36993 (eval $ac_try) 2>&5
36995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36996 (exit $ac_status); }; }; then
36997 ac_header_compiler=yes
36999 echo "$as_me: failed program was:" >&5
37000 sed 's/^/| /' conftest.$ac_ext >&5
37002 ac_header_compiler=no
37004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37006 echo "${ECHO_T}$ac_header_compiler" >&6
37008 # Is the header present?
37009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37011 cat >conftest.$ac_ext <<_ACEOF
37014 cat confdefs.h >>conftest.$ac_ext
37015 cat >>conftest.$ac_ext <<_ACEOF
37016 /* end confdefs.h. */
37017 #include <$ac_header>
37019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37022 grep -v '^ *+' conftest.er1 >conftest.err
37024 cat conftest.err >&5
37025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026 (exit $ac_status); } >/dev/null; then
37027 if test -s conftest.err; then
37028 ac_cpp_err=$ac_c_preproc_warn_flag
37029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37036 if test -z "$ac_cpp_err"; then
37037 ac_header_preproc=yes
37039 echo "$as_me: failed program was:" >&5
37040 sed 's/^/| /' conftest.$ac_ext >&5
37042 ac_header_preproc=no
37044 rm -f conftest.err conftest.$ac_ext
37045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37046 echo "${ECHO_T}$ac_header_preproc" >&6
37048 # So? What about this header?
37049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37055 ac_header_preproc=yes
37058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37072 ## --------------------------------------------- ##
37073 ## Report this to <http://www.openldap.org/its/> ##
37074 ## --------------------------------------------- ##
37077 sed "s/^/$as_me: WARNING: /" >&2
37080 echo "$as_me:$LINENO: checking for $ac_header" >&5
37081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37083 echo $ECHO_N "(cached) $ECHO_C" >&6
37085 eval "$as_ac_Header=\$ac_header_preproc"
37087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37092 cat >>confdefs.h <<_ACEOF
37093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37101 if test $ac_cv_header_sasl_sasl_h = yes ||
37102 test $ac_cv_header_sasl_h = yes; then
37103 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37104 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37105 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37106 echo $ECHO_N "(cached) $ECHO_C" >&6
37108 ac_check_lib_save_LIBS=$LIBS
37109 LIBS="-lsasl2 $LIBS"
37110 cat >conftest.$ac_ext <<_ACEOF
37113 cat confdefs.h >>conftest.$ac_ext
37114 cat >>conftest.$ac_ext <<_ACEOF
37115 /* end confdefs.h. */
37117 /* Override any gcc2 internal prototype to avoid an error. */
37121 /* We use char because int might match the return type of a gcc2
37122 builtin and then its argument prototype would still apply. */
37123 char sasl_client_init ();
37127 sasl_client_init ();
37132 rm -f conftest.$ac_objext conftest$ac_exeext
37133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37134 (eval $ac_link) 2>conftest.er1
37136 grep -v '^ *+' conftest.er1 >conftest.err
37138 cat conftest.err >&5
37139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37140 (exit $ac_status); } &&
37141 { ac_try='test -z "$ac_c_werror_flag"
37142 || test ! -s conftest.err'
37143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37144 (eval $ac_try) 2>&5
37146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37147 (exit $ac_status); }; } &&
37148 { ac_try='test -s conftest$ac_exeext'
37149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37150 (eval $ac_try) 2>&5
37152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37153 (exit $ac_status); }; }; then
37154 ac_cv_lib_sasl2_sasl_client_init=yes
37156 echo "$as_me: failed program was:" >&5
37157 sed 's/^/| /' conftest.$ac_ext >&5
37159 ac_cv_lib_sasl2_sasl_client_init=no
37161 rm -f conftest.err conftest.$ac_objext \
37162 conftest$ac_exeext conftest.$ac_ext
37163 LIBS=$ac_check_lib_save_LIBS
37165 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37166 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37167 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37168 ol_link_sasl="-lsasl2"
37170 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37171 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37172 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37173 echo $ECHO_N "(cached) $ECHO_C" >&6
37175 ac_check_lib_save_LIBS=$LIBS
37176 LIBS="-lsasl $LIBS"
37177 cat >conftest.$ac_ext <<_ACEOF
37180 cat confdefs.h >>conftest.$ac_ext
37181 cat >>conftest.$ac_ext <<_ACEOF
37182 /* end confdefs.h. */
37184 /* Override any gcc2 internal prototype to avoid an error. */
37188 /* We use char because int might match the return type of a gcc2
37189 builtin and then its argument prototype would still apply. */
37190 char sasl_client_init ();
37194 sasl_client_init ();
37199 rm -f conftest.$ac_objext conftest$ac_exeext
37200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37201 (eval $ac_link) 2>conftest.er1
37203 grep -v '^ *+' conftest.er1 >conftest.err
37205 cat conftest.err >&5
37206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37207 (exit $ac_status); } &&
37208 { ac_try='test -z "$ac_c_werror_flag"
37209 || test ! -s conftest.err'
37210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37211 (eval $ac_try) 2>&5
37213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37214 (exit $ac_status); }; } &&
37215 { ac_try='test -s conftest$ac_exeext'
37216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37217 (eval $ac_try) 2>&5
37219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37220 (exit $ac_status); }; }; then
37221 ac_cv_lib_sasl_sasl_client_init=yes
37223 echo "$as_me: failed program was:" >&5
37224 sed 's/^/| /' conftest.$ac_ext >&5
37226 ac_cv_lib_sasl_sasl_client_init=no
37228 rm -f conftest.err conftest.$ac_objext \
37229 conftest$ac_exeext conftest.$ac_ext
37230 LIBS=$ac_check_lib_save_LIBS
37232 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37233 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37234 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37235 ol_link_sasl="-lsasl"
37242 if test $ol_link_sasl = no ; then
37243 if test $ol_with_cyrus_sasl != auto ; then
37244 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37245 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37246 { (exit 1); exit 1; }; }
37248 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37249 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37250 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37251 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37252 if test $ol_link_tls = no ; then
37253 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37254 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37258 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37259 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37260 if test "${ol_cv_sasl_compat+set}" = set; then
37261 echo $ECHO_N "(cached) $ECHO_C" >&6
37264 cat >conftest.$ac_ext <<_ACEOF
37267 cat confdefs.h >>conftest.$ac_ext
37268 cat >>conftest.$ac_ext <<_ACEOF
37269 /* end confdefs.h. */
37271 #ifdef HAVE_SASL_SASL_H
37272 #include <sasl/sasl.h>
37277 /* Require 2.1.15+ */
37278 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
37279 char *__sasl_compat = "2.2+ or better okay (we guess)";
37280 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
37281 && SASL_VERSION_STEP >=15
37282 char *__sasl_compat = "2.1.15+ or better okay";
37286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37287 $EGREP "__sasl_compat" >/dev/null 2>&1; then
37288 ol_cv_sasl_compat=yes
37290 ol_cv_sasl_compat=no
37295 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37296 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37298 if test $ol_cv_sasl_compat = no ; then
37300 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37301 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37302 { (exit 1); exit 1; }; }
37306 cat >>confdefs.h <<\_ACEOF
37307 #define HAVE_CYRUS_SASL 1
37310 SASL_LIBS="$ol_link_sasl"
37311 if test $ol_enable_spasswd != no ; then
37312 ol_link_spasswd=yes
37315 ac_save_LIBS="$LIBS"
37316 LIBS="$LIBS $ol_link_sasl"
37317 echo "$as_me:$LINENO: checking for sasl_version" >&5
37318 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37319 if test "${ac_cv_func_sasl_version+set}" = set; then
37320 echo $ECHO_N "(cached) $ECHO_C" >&6
37322 cat >conftest.$ac_ext <<_ACEOF
37325 cat confdefs.h >>conftest.$ac_ext
37326 cat >>conftest.$ac_ext <<_ACEOF
37327 /* end confdefs.h. */
37328 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37330 #define sasl_version innocuous_sasl_version
37332 /* System header to define __stub macros and hopefully few prototypes,
37333 which can conflict with char sasl_version (); below.
37334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37335 <limits.h> exists even on freestanding compilers. */
37338 # include <limits.h>
37340 # include <assert.h>
37343 #undef sasl_version
37345 /* Override any gcc2 internal prototype to avoid an error. */
37350 /* We use char because int might match the return type of a gcc2
37351 builtin and then its argument prototype would still apply. */
37352 char sasl_version ();
37353 /* The GNU C library defines this for functions which it implements
37354 to always fail with ENOSYS. Some functions are actually named
37355 something starting with __ and the normal name is an alias. */
37356 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37359 char (*f) () = sasl_version;
37368 return f != sasl_version;
37373 rm -f conftest.$ac_objext conftest$ac_exeext
37374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37375 (eval $ac_link) 2>conftest.er1
37377 grep -v '^ *+' conftest.er1 >conftest.err
37379 cat conftest.err >&5
37380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37381 (exit $ac_status); } &&
37382 { ac_try='test -z "$ac_c_werror_flag"
37383 || test ! -s conftest.err'
37384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37385 (eval $ac_try) 2>&5
37387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37388 (exit $ac_status); }; } &&
37389 { ac_try='test -s conftest$ac_exeext'
37390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37391 (eval $ac_try) 2>&5
37393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394 (exit $ac_status); }; }; then
37395 ac_cv_func_sasl_version=yes
37397 echo "$as_me: failed program was:" >&5
37398 sed 's/^/| /' conftest.$ac_ext >&5
37400 ac_cv_func_sasl_version=no
37402 rm -f conftest.err conftest.$ac_objext \
37403 conftest$ac_exeext conftest.$ac_ext
37405 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37406 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37407 if test $ac_cv_func_sasl_version = yes; then
37409 cat >>confdefs.h <<\_ACEOF
37410 #define HAVE_SASL_VERSION 1
37415 LIBS="$ac_save_LIBS"
37421 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37422 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37423 if test $ol_link_tls = no ; then
37424 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37425 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37429 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37431 if test -r /dev/urandom ; then
37432 dev="/dev/urandom";
37433 elif test -r /idev/urandom ; then
37434 dev="/idev/urandom";
37435 elif test -r /dev/srandom ; then
37436 dev="/dev/srandom";
37437 elif test -r /dev/random ; then
37439 elif test -r /idev/random ; then
37440 dev="/idev/random";
37443 if test $dev != no ; then
37445 cat >>confdefs.h <<_ACEOF
37446 #define URANDOM_DEVICE "$dev"
37453 if test $ol_with_fetch != no ; then
37455 LIBS="-lfetch -lcom_err $LIBS"
37456 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37457 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37458 if test "${ol_cv_lib_fetch+set}" = set; then
37459 echo $ECHO_N "(cached) $ECHO_C" >&6
37462 cat >conftest.$ac_ext <<_ACEOF
37465 cat confdefs.h >>conftest.$ac_ext
37466 cat >>conftest.$ac_ext <<_ACEOF
37467 /* end confdefs.h. */
37469 #include <sys/param.h>
37475 struct url *u = fetchParseURL("file:///");
37480 rm -f conftest.$ac_objext conftest$ac_exeext
37481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37482 (eval $ac_link) 2>conftest.er1
37484 grep -v '^ *+' conftest.er1 >conftest.err
37486 cat conftest.err >&5
37487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37488 (exit $ac_status); } &&
37489 { ac_try='test -z "$ac_c_werror_flag"
37490 || test ! -s conftest.err'
37491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37492 (eval $ac_try) 2>&5
37494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37495 (exit $ac_status); }; } &&
37496 { ac_try='test -s conftest$ac_exeext'
37497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37498 (eval $ac_try) 2>&5
37500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501 (exit $ac_status); }; }; then
37502 ol_cv_lib_fetch=yes
37504 echo "$as_me: failed program was:" >&5
37505 sed 's/^/| /' conftest.$ac_ext >&5
37509 rm -f conftest.err conftest.$ac_objext \
37510 conftest$ac_exeext conftest.$ac_ext
37512 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37513 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37515 if test $ol_cv_lib_fetch != no ; then
37516 ol_link_fetch="-lfetch -lcom_err"
37518 cat >>confdefs.h <<\_ACEOF
37519 #define HAVE_FETCH 1
37525 if test $ol_cv_lib_fetch != no ; then
37526 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37527 ol_link_fetch=freebsd
37529 elif test $ol_with_fetch != auto ; then
37530 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37531 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37532 { (exit 1); exit 1; }; }
37536 if test $ol_enable_crypt != no ; then
37538 LIBS="$TLS_LIBS $LIBS"
37540 echo "$as_me:$LINENO: checking for crypt" >&5
37541 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37542 if test "${ac_cv_func_crypt+set}" = set; then
37543 echo $ECHO_N "(cached) $ECHO_C" >&6
37545 cat >conftest.$ac_ext <<_ACEOF
37548 cat confdefs.h >>conftest.$ac_ext
37549 cat >>conftest.$ac_ext <<_ACEOF
37550 /* end confdefs.h. */
37551 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37553 #define crypt innocuous_crypt
37555 /* System header to define __stub macros and hopefully few prototypes,
37556 which can conflict with char crypt (); below.
37557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37558 <limits.h> exists even on freestanding compilers. */
37561 # include <limits.h>
37563 # include <assert.h>
37568 /* Override any gcc2 internal prototype to avoid an error. */
37573 /* We use char because int might match the return type of a gcc2
37574 builtin and then its argument prototype would still apply. */
37576 /* The GNU C library defines this for functions which it implements
37577 to always fail with ENOSYS. Some functions are actually named
37578 something starting with __ and the normal name is an alias. */
37579 #if defined (__stub_crypt) || defined (__stub___crypt)
37582 char (*f) () = crypt;
37596 rm -f conftest.$ac_objext conftest$ac_exeext
37597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37598 (eval $ac_link) 2>conftest.er1
37600 grep -v '^ *+' conftest.er1 >conftest.err
37602 cat conftest.err >&5
37603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604 (exit $ac_status); } &&
37605 { ac_try='test -z "$ac_c_werror_flag"
37606 || test ! -s conftest.err'
37607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37608 (eval $ac_try) 2>&5
37610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611 (exit $ac_status); }; } &&
37612 { ac_try='test -s conftest$ac_exeext'
37613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37614 (eval $ac_try) 2>&5
37616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37617 (exit $ac_status); }; }; then
37618 ac_cv_func_crypt=yes
37620 echo "$as_me: failed program was:" >&5
37621 sed 's/^/| /' conftest.$ac_ext >&5
37623 ac_cv_func_crypt=no
37625 rm -f conftest.err conftest.$ac_objext \
37626 conftest$ac_exeext conftest.$ac_ext
37628 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37629 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37630 if test $ac_cv_func_crypt = yes; then
37635 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37636 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37637 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37638 echo $ECHO_N "(cached) $ECHO_C" >&6
37640 ac_check_lib_save_LIBS=$LIBS
37641 LIBS="-lcrypt $LIBS"
37642 cat >conftest.$ac_ext <<_ACEOF
37645 cat confdefs.h >>conftest.$ac_ext
37646 cat >>conftest.$ac_ext <<_ACEOF
37647 /* end confdefs.h. */
37649 /* Override any gcc2 internal prototype to avoid an error. */
37653 /* We use char because int might match the return type of a gcc2
37654 builtin and then its argument prototype would still apply. */
37664 rm -f conftest.$ac_objext conftest$ac_exeext
37665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37666 (eval $ac_link) 2>conftest.er1
37668 grep -v '^ *+' conftest.er1 >conftest.err
37670 cat conftest.err >&5
37671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37672 (exit $ac_status); } &&
37673 { ac_try='test -z "$ac_c_werror_flag"
37674 || test ! -s conftest.err'
37675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37676 (eval $ac_try) 2>&5
37678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37679 (exit $ac_status); }; } &&
37680 { ac_try='test -s conftest$ac_exeext'
37681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37682 (eval $ac_try) 2>&5
37684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685 (exit $ac_status); }; }; then
37686 ac_cv_lib_crypt_crypt=yes
37688 echo "$as_me: failed program was:" >&5
37689 sed 's/^/| /' conftest.$ac_ext >&5
37691 ac_cv_lib_crypt_crypt=no
37693 rm -f conftest.err conftest.$ac_objext \
37694 conftest$ac_exeext conftest.$ac_ext
37695 LIBS=$ac_check_lib_save_LIBS
37697 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37698 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37699 if test $ac_cv_lib_crypt_crypt = yes; then
37700 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37711 if test $have_crypt = yes ; then
37713 cat >>confdefs.h <<\_ACEOF
37714 #define HAVE_CRYPT 1
37718 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37719 echo "$as_me: WARNING: could not find crypt" >&2;}
37720 if test $ol_enable_crypt = yes ; then
37721 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37722 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37723 { (exit 1); exit 1; }; }
37726 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37727 echo "$as_me: WARNING: disabling crypt support" >&2;}
37732 if test $ol_enable_proctitle != no ; then
37733 echo "$as_me:$LINENO: checking for setproctitle" >&5
37734 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37735 if test "${ac_cv_func_setproctitle+set}" = set; then
37736 echo $ECHO_N "(cached) $ECHO_C" >&6
37738 cat >conftest.$ac_ext <<_ACEOF
37741 cat confdefs.h >>conftest.$ac_ext
37742 cat >>conftest.$ac_ext <<_ACEOF
37743 /* end confdefs.h. */
37744 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37746 #define setproctitle innocuous_setproctitle
37748 /* System header to define __stub macros and hopefully few prototypes,
37749 which can conflict with char setproctitle (); below.
37750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37751 <limits.h> exists even on freestanding compilers. */
37754 # include <limits.h>
37756 # include <assert.h>
37759 #undef setproctitle
37761 /* Override any gcc2 internal prototype to avoid an error. */
37766 /* We use char because int might match the return type of a gcc2
37767 builtin and then its argument prototype would still apply. */
37768 char setproctitle ();
37769 /* The GNU C library defines this for functions which it implements
37770 to always fail with ENOSYS. Some functions are actually named
37771 something starting with __ and the normal name is an alias. */
37772 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37775 char (*f) () = setproctitle;
37784 return f != setproctitle;
37789 rm -f conftest.$ac_objext conftest$ac_exeext
37790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37791 (eval $ac_link) 2>conftest.er1
37793 grep -v '^ *+' conftest.er1 >conftest.err
37795 cat conftest.err >&5
37796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37797 (exit $ac_status); } &&
37798 { ac_try='test -z "$ac_c_werror_flag"
37799 || test ! -s conftest.err'
37800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37801 (eval $ac_try) 2>&5
37803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804 (exit $ac_status); }; } &&
37805 { ac_try='test -s conftest$ac_exeext'
37806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37807 (eval $ac_try) 2>&5
37809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37810 (exit $ac_status); }; }; then
37811 ac_cv_func_setproctitle=yes
37813 echo "$as_me: failed program was:" >&5
37814 sed 's/^/| /' conftest.$ac_ext >&5
37816 ac_cv_func_setproctitle=no
37818 rm -f conftest.err conftest.$ac_objext \
37819 conftest$ac_exeext conftest.$ac_ext
37821 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37822 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37823 if test $ac_cv_func_setproctitle = yes; then
37824 have_setproctitle=yes
37827 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37828 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37829 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37830 echo $ECHO_N "(cached) $ECHO_C" >&6
37832 ac_check_lib_save_LIBS=$LIBS
37833 LIBS="-lutil $LIBS"
37834 cat >conftest.$ac_ext <<_ACEOF
37837 cat confdefs.h >>conftest.$ac_ext
37838 cat >>conftest.$ac_ext <<_ACEOF
37839 /* end confdefs.h. */
37841 /* Override any gcc2 internal prototype to avoid an error. */
37845 /* We use char because int might match the return type of a gcc2
37846 builtin and then its argument prototype would still apply. */
37847 char setproctitle ();
37856 rm -f conftest.$ac_objext conftest$ac_exeext
37857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37858 (eval $ac_link) 2>conftest.er1
37860 grep -v '^ *+' conftest.er1 >conftest.err
37862 cat conftest.err >&5
37863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37864 (exit $ac_status); } &&
37865 { ac_try='test -z "$ac_c_werror_flag"
37866 || test ! -s conftest.err'
37867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37868 (eval $ac_try) 2>&5
37870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871 (exit $ac_status); }; } &&
37872 { ac_try='test -s conftest$ac_exeext'
37873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37874 (eval $ac_try) 2>&5
37876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37877 (exit $ac_status); }; }; then
37878 ac_cv_lib_util_setproctitle=yes
37880 echo "$as_me: failed program was:" >&5
37881 sed 's/^/| /' conftest.$ac_ext >&5
37883 ac_cv_lib_util_setproctitle=no
37885 rm -f conftest.err conftest.$ac_objext \
37886 conftest$ac_exeext conftest.$ac_ext
37887 LIBS=$ac_check_lib_save_LIBS
37889 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37890 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37891 if test $ac_cv_lib_util_setproctitle = yes; then
37892 have_setproctitle=yes
37893 LUTIL_LIBS="$LUTIL_LIBS -lutil"
37895 have_setproctitle=no
37897 "setproctitle.$ac_objext" | \
37898 *" setproctitle.$ac_objext" | \
37899 "setproctitle.$ac_objext "* | \
37900 *" setproctitle.$ac_objext "* ) ;;
37901 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37904 LIBSRCS="$LIBSRCS setproctitle.c"
37910 if test $have_setproctitle = yes ; then
37912 cat >>confdefs.h <<\_ACEOF
37913 #define HAVE_SETPROCTITLE 1
37919 if test $ol_enable_slp != no ; then
37921 for ac_header in slp.h
37923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37925 echo "$as_me:$LINENO: checking for $ac_header" >&5
37926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37928 echo $ECHO_N "(cached) $ECHO_C" >&6
37930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37933 # Is the header compilable?
37934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37936 cat >conftest.$ac_ext <<_ACEOF
37939 cat confdefs.h >>conftest.$ac_ext
37940 cat >>conftest.$ac_ext <<_ACEOF
37941 /* end confdefs.h. */
37942 $ac_includes_default
37943 #include <$ac_header>
37945 rm -f conftest.$ac_objext
37946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37947 (eval $ac_compile) 2>conftest.er1
37949 grep -v '^ *+' conftest.er1 >conftest.err
37951 cat conftest.err >&5
37952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37953 (exit $ac_status); } &&
37954 { ac_try='test -z "$ac_c_werror_flag"
37955 || test ! -s conftest.err'
37956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37957 (eval $ac_try) 2>&5
37959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37960 (exit $ac_status); }; } &&
37961 { ac_try='test -s conftest.$ac_objext'
37962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37963 (eval $ac_try) 2>&5
37965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37966 (exit $ac_status); }; }; then
37967 ac_header_compiler=yes
37969 echo "$as_me: failed program was:" >&5
37970 sed 's/^/| /' conftest.$ac_ext >&5
37972 ac_header_compiler=no
37974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37976 echo "${ECHO_T}$ac_header_compiler" >&6
37978 # Is the header present?
37979 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37981 cat >conftest.$ac_ext <<_ACEOF
37984 cat confdefs.h >>conftest.$ac_ext
37985 cat >>conftest.$ac_ext <<_ACEOF
37986 /* end confdefs.h. */
37987 #include <$ac_header>
37989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37992 grep -v '^ *+' conftest.er1 >conftest.err
37994 cat conftest.err >&5
37995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37996 (exit $ac_status); } >/dev/null; then
37997 if test -s conftest.err; then
37998 ac_cpp_err=$ac_c_preproc_warn_flag
37999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38006 if test -z "$ac_cpp_err"; then
38007 ac_header_preproc=yes
38009 echo "$as_me: failed program was:" >&5
38010 sed 's/^/| /' conftest.$ac_ext >&5
38012 ac_header_preproc=no
38014 rm -f conftest.err conftest.$ac_ext
38015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38016 echo "${ECHO_T}$ac_header_preproc" >&6
38018 # So? What about this header?
38019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38025 ac_header_preproc=yes
38028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38035 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38042 ## --------------------------------------------- ##
38043 ## Report this to <http://www.openldap.org/its/> ##
38044 ## --------------------------------------------- ##
38047 sed "s/^/$as_me: WARNING: /" >&2
38050 echo "$as_me:$LINENO: checking for $ac_header" >&5
38051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38053 echo $ECHO_N "(cached) $ECHO_C" >&6
38055 eval "$as_ac_Header=\$ac_header_preproc"
38057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38062 cat >>confdefs.h <<_ACEOF
38063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38071 if test $ac_cv_header_slp_h = yes ; then
38072 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38073 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38074 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38075 echo $ECHO_N "(cached) $ECHO_C" >&6
38077 ac_check_lib_save_LIBS=$LIBS
38079 cat >conftest.$ac_ext <<_ACEOF
38082 cat confdefs.h >>conftest.$ac_ext
38083 cat >>conftest.$ac_ext <<_ACEOF
38084 /* end confdefs.h. */
38086 /* Override any gcc2 internal prototype to avoid an error. */
38090 /* We use char because int might match the return type of a gcc2
38091 builtin and then its argument prototype would still apply. */
38101 rm -f conftest.$ac_objext conftest$ac_exeext
38102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38103 (eval $ac_link) 2>conftest.er1
38105 grep -v '^ *+' conftest.er1 >conftest.err
38107 cat conftest.err >&5
38108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38109 (exit $ac_status); } &&
38110 { ac_try='test -z "$ac_c_werror_flag"
38111 || test ! -s conftest.err'
38112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38113 (eval $ac_try) 2>&5
38115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38116 (exit $ac_status); }; } &&
38117 { ac_try='test -s conftest$ac_exeext'
38118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38119 (eval $ac_try) 2>&5
38121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38122 (exit $ac_status); }; }; then
38123 ac_cv_lib_slp_SLPOpen=yes
38125 echo "$as_me: failed program was:" >&5
38126 sed 's/^/| /' conftest.$ac_ext >&5
38128 ac_cv_lib_slp_SLPOpen=no
38130 rm -f conftest.err conftest.$ac_objext \
38131 conftest$ac_exeext conftest.$ac_ext
38132 LIBS=$ac_check_lib_save_LIBS
38134 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38135 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38136 if test $ac_cv_lib_slp_SLPOpen = yes; then
38142 if test $have_slp = yes ; then
38144 cat >>confdefs.h <<\_ACEOF
38148 SLAPD_SLP_LIBS=-lslp
38151 elif test $ol_enable_slp = yes ; then
38152 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38153 echo "$as_me: error: SLP not found" >&2;}
38154 { (exit 1); exit 1; }; }
38159 echo "$as_me:$LINENO: checking for mode_t" >&5
38160 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38161 if test "${ac_cv_type_mode_t+set}" = set; then
38162 echo $ECHO_N "(cached) $ECHO_C" >&6
38164 cat >conftest.$ac_ext <<_ACEOF
38167 cat confdefs.h >>conftest.$ac_ext
38168 cat >>conftest.$ac_ext <<_ACEOF
38169 /* end confdefs.h. */
38170 $ac_includes_default
38176 if (sizeof (mode_t))
38182 rm -f conftest.$ac_objext
38183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38184 (eval $ac_compile) 2>conftest.er1
38186 grep -v '^ *+' conftest.er1 >conftest.err
38188 cat conftest.err >&5
38189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38190 (exit $ac_status); } &&
38191 { ac_try='test -z "$ac_c_werror_flag"
38192 || test ! -s conftest.err'
38193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38194 (eval $ac_try) 2>&5
38196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38197 (exit $ac_status); }; } &&
38198 { ac_try='test -s conftest.$ac_objext'
38199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38200 (eval $ac_try) 2>&5
38202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38203 (exit $ac_status); }; }; then
38204 ac_cv_type_mode_t=yes
38206 echo "$as_me: failed program was:" >&5
38207 sed 's/^/| /' conftest.$ac_ext >&5
38209 ac_cv_type_mode_t=no
38211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38213 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38214 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38215 if test $ac_cv_type_mode_t = yes; then
38219 cat >>confdefs.h <<_ACEOF
38225 echo "$as_me:$LINENO: checking for off_t" >&5
38226 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38227 if test "${ac_cv_type_off_t+set}" = set; then
38228 echo $ECHO_N "(cached) $ECHO_C" >&6
38230 cat >conftest.$ac_ext <<_ACEOF
38233 cat confdefs.h >>conftest.$ac_ext
38234 cat >>conftest.$ac_ext <<_ACEOF
38235 /* end confdefs.h. */
38236 $ac_includes_default
38242 if (sizeof (off_t))
38248 rm -f conftest.$ac_objext
38249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38250 (eval $ac_compile) 2>conftest.er1
38252 grep -v '^ *+' conftest.er1 >conftest.err
38254 cat conftest.err >&5
38255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38256 (exit $ac_status); } &&
38257 { ac_try='test -z "$ac_c_werror_flag"
38258 || test ! -s conftest.err'
38259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38260 (eval $ac_try) 2>&5
38262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38263 (exit $ac_status); }; } &&
38264 { ac_try='test -s conftest.$ac_objext'
38265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38266 (eval $ac_try) 2>&5
38268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38269 (exit $ac_status); }; }; then
38270 ac_cv_type_off_t=yes
38272 echo "$as_me: failed program was:" >&5
38273 sed 's/^/| /' conftest.$ac_ext >&5
38275 ac_cv_type_off_t=no
38277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38279 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38280 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38281 if test $ac_cv_type_off_t = yes; then
38285 cat >>confdefs.h <<_ACEOF
38291 echo "$as_me:$LINENO: checking for pid_t" >&5
38292 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38293 if test "${ac_cv_type_pid_t+set}" = set; then
38294 echo $ECHO_N "(cached) $ECHO_C" >&6
38296 cat >conftest.$ac_ext <<_ACEOF
38299 cat confdefs.h >>conftest.$ac_ext
38300 cat >>conftest.$ac_ext <<_ACEOF
38301 /* end confdefs.h. */
38302 $ac_includes_default
38308 if (sizeof (pid_t))
38314 rm -f conftest.$ac_objext
38315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38316 (eval $ac_compile) 2>conftest.er1
38318 grep -v '^ *+' conftest.er1 >conftest.err
38320 cat conftest.err >&5
38321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38322 (exit $ac_status); } &&
38323 { ac_try='test -z "$ac_c_werror_flag"
38324 || test ! -s conftest.err'
38325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38326 (eval $ac_try) 2>&5
38328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38329 (exit $ac_status); }; } &&
38330 { ac_try='test -s conftest.$ac_objext'
38331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38332 (eval $ac_try) 2>&5
38334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38335 (exit $ac_status); }; }; then
38336 ac_cv_type_pid_t=yes
38338 echo "$as_me: failed program was:" >&5
38339 sed 's/^/| /' conftest.$ac_ext >&5
38341 ac_cv_type_pid_t=no
38343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38345 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38346 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38347 if test $ac_cv_type_pid_t = yes; then
38351 cat >>confdefs.h <<_ACEOF
38357 echo "$as_me:$LINENO: checking for ssize_t" >&5
38358 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38359 if test "${ac_cv_type_ssize_t+set}" = set; then
38360 echo $ECHO_N "(cached) $ECHO_C" >&6
38362 cat >conftest.$ac_ext <<_ACEOF
38365 cat confdefs.h >>conftest.$ac_ext
38366 cat >>conftest.$ac_ext <<_ACEOF
38367 /* end confdefs.h. */
38368 $ac_includes_default
38374 if (sizeof (ssize_t))
38380 rm -f conftest.$ac_objext
38381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38382 (eval $ac_compile) 2>conftest.er1
38384 grep -v '^ *+' conftest.er1 >conftest.err
38386 cat conftest.err >&5
38387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388 (exit $ac_status); } &&
38389 { ac_try='test -z "$ac_c_werror_flag"
38390 || test ! -s conftest.err'
38391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38392 (eval $ac_try) 2>&5
38394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38395 (exit $ac_status); }; } &&
38396 { ac_try='test -s conftest.$ac_objext'
38397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38398 (eval $ac_try) 2>&5
38400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38401 (exit $ac_status); }; }; then
38402 ac_cv_type_ssize_t=yes
38404 echo "$as_me: failed program was:" >&5
38405 sed 's/^/| /' conftest.$ac_ext >&5
38407 ac_cv_type_ssize_t=no
38409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38411 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
38412 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
38413 if test $ac_cv_type_ssize_t = yes; then
38417 cat >>confdefs.h <<_ACEOF
38418 #define ssize_t signed int
38423 echo "$as_me:$LINENO: checking for caddr_t" >&5
38424 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
38425 if test "${ac_cv_type_caddr_t+set}" = set; then
38426 echo $ECHO_N "(cached) $ECHO_C" >&6
38428 cat >conftest.$ac_ext <<_ACEOF
38431 cat confdefs.h >>conftest.$ac_ext
38432 cat >>conftest.$ac_ext <<_ACEOF
38433 /* end confdefs.h. */
38434 $ac_includes_default
38440 if (sizeof (caddr_t))
38446 rm -f conftest.$ac_objext
38447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38448 (eval $ac_compile) 2>conftest.er1
38450 grep -v '^ *+' conftest.er1 >conftest.err
38452 cat conftest.err >&5
38453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38454 (exit $ac_status); } &&
38455 { ac_try='test -z "$ac_c_werror_flag"
38456 || test ! -s conftest.err'
38457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38458 (eval $ac_try) 2>&5
38460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38461 (exit $ac_status); }; } &&
38462 { ac_try='test -s conftest.$ac_objext'
38463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38464 (eval $ac_try) 2>&5
38466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38467 (exit $ac_status); }; }; then
38468 ac_cv_type_caddr_t=yes
38470 echo "$as_me: failed program was:" >&5
38471 sed 's/^/| /' conftest.$ac_ext >&5
38473 ac_cv_type_caddr_t=no
38475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38477 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
38478 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
38479 if test $ac_cv_type_caddr_t = yes; then
38483 cat >>confdefs.h <<_ACEOF
38484 #define caddr_t char *
38489 echo "$as_me:$LINENO: checking for size_t" >&5
38490 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
38491 if test "${ac_cv_type_size_t+set}" = set; then
38492 echo $ECHO_N "(cached) $ECHO_C" >&6
38494 cat >conftest.$ac_ext <<_ACEOF
38497 cat confdefs.h >>conftest.$ac_ext
38498 cat >>conftest.$ac_ext <<_ACEOF
38499 /* end confdefs.h. */
38500 $ac_includes_default
38506 if (sizeof (size_t))
38512 rm -f conftest.$ac_objext
38513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38514 (eval $ac_compile) 2>conftest.er1
38516 grep -v '^ *+' conftest.er1 >conftest.err
38518 cat conftest.err >&5
38519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38520 (exit $ac_status); } &&
38521 { ac_try='test -z "$ac_c_werror_flag"
38522 || test ! -s conftest.err'
38523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38524 (eval $ac_try) 2>&5
38526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527 (exit $ac_status); }; } &&
38528 { ac_try='test -s conftest.$ac_objext'
38529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38530 (eval $ac_try) 2>&5
38532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533 (exit $ac_status); }; }; then
38534 ac_cv_type_size_t=yes
38536 echo "$as_me: failed program was:" >&5
38537 sed 's/^/| /' conftest.$ac_ext >&5
38539 ac_cv_type_size_t=no
38541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38543 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38544 echo "${ECHO_T}$ac_cv_type_size_t" >&6
38545 if test $ac_cv_type_size_t = yes; then
38549 cat >>confdefs.h <<_ACEOF
38550 #define size_t unsigned
38556 echo "$as_me:$LINENO: checking for long long" >&5
38557 echo $ECHO_N "checking for long long... $ECHO_C" >&6
38558 if test "${ac_cv_type_long_long+set}" = set; then
38559 echo $ECHO_N "(cached) $ECHO_C" >&6
38561 cat >conftest.$ac_ext <<_ACEOF
38564 cat confdefs.h >>conftest.$ac_ext
38565 cat >>conftest.$ac_ext <<_ACEOF
38566 /* end confdefs.h. */
38567 $ac_includes_default
38571 if ((long long *) 0)
38573 if (sizeof (long long))
38579 rm -f conftest.$ac_objext
38580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38581 (eval $ac_compile) 2>conftest.er1
38583 grep -v '^ *+' conftest.er1 >conftest.err
38585 cat conftest.err >&5
38586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38587 (exit $ac_status); } &&
38588 { ac_try='test -z "$ac_c_werror_flag"
38589 || test ! -s conftest.err'
38590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38591 (eval $ac_try) 2>&5
38593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38594 (exit $ac_status); }; } &&
38595 { ac_try='test -s conftest.$ac_objext'
38596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38597 (eval $ac_try) 2>&5
38599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38600 (exit $ac_status); }; }; then
38601 ac_cv_type_long_long=yes
38603 echo "$as_me: failed program was:" >&5
38604 sed 's/^/| /' conftest.$ac_ext >&5
38606 ac_cv_type_long_long=no
38608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38610 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
38611 echo "${ECHO_T}$ac_cv_type_long_long" >&6
38612 if test $ac_cv_type_long_long = yes; then
38614 cat >>confdefs.h <<_ACEOF
38615 #define HAVE_LONG_LONG 1
38621 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
38622 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
38623 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
38624 echo $ECHO_N "(cached) $ECHO_C" >&6
38626 cat >conftest.$ac_ext <<_ACEOF
38629 cat confdefs.h >>conftest.$ac_ext
38630 cat >>conftest.$ac_ext <<_ACEOF
38631 /* end confdefs.h. */
38632 $ac_includes_default
38636 if ((ptrdiff_t *) 0)
38638 if (sizeof (ptrdiff_t))
38644 rm -f conftest.$ac_objext
38645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38646 (eval $ac_compile) 2>conftest.er1
38648 grep -v '^ *+' conftest.er1 >conftest.err
38650 cat conftest.err >&5
38651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38652 (exit $ac_status); } &&
38653 { ac_try='test -z "$ac_c_werror_flag"
38654 || test ! -s conftest.err'
38655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38656 (eval $ac_try) 2>&5
38658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38659 (exit $ac_status); }; } &&
38660 { ac_try='test -s conftest.$ac_objext'
38661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38662 (eval $ac_try) 2>&5
38664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38665 (exit $ac_status); }; }; then
38666 ac_cv_type_ptrdiff_t=yes
38668 echo "$as_me: failed program was:" >&5
38669 sed 's/^/| /' conftest.$ac_ext >&5
38671 ac_cv_type_ptrdiff_t=no
38673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38675 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
38676 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
38677 if test $ac_cv_type_ptrdiff_t = yes; then
38679 cat >>confdefs.h <<_ACEOF
38680 #define HAVE_PTRDIFF_T 1
38687 echo "$as_me:$LINENO: checking for socklen_t" >&5
38688 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
38689 if test "${ac_cv_type_socklen_t+set}" = set; then
38690 echo $ECHO_N "(cached) $ECHO_C" >&6
38692 cat >conftest.$ac_ext <<_ACEOF
38695 cat confdefs.h >>conftest.$ac_ext
38696 cat >>conftest.$ac_ext <<_ACEOF
38697 /* end confdefs.h. */
38698 $ac_includes_default
38699 #ifdef HAVE_SYS_SOCKET_H
38700 #include <sys/socket.h>
38707 if ((socklen_t *) 0)
38709 if (sizeof (socklen_t))
38715 rm -f conftest.$ac_objext
38716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38717 (eval $ac_compile) 2>conftest.er1
38719 grep -v '^ *+' conftest.er1 >conftest.err
38721 cat conftest.err >&5
38722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38723 (exit $ac_status); } &&
38724 { ac_try='test -z "$ac_c_werror_flag"
38725 || test ! -s conftest.err'
38726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38727 (eval $ac_try) 2>&5
38729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38730 (exit $ac_status); }; } &&
38731 { ac_try='test -s conftest.$ac_objext'
38732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38733 (eval $ac_try) 2>&5
38735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38736 (exit $ac_status); }; }; then
38737 ac_cv_type_socklen_t=yes
38739 echo "$as_me: failed program was:" >&5
38740 sed 's/^/| /' conftest.$ac_ext >&5
38742 ac_cv_type_socklen_t=no
38744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38746 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
38747 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
38748 if test $ac_cv_type_socklen_t = yes; then
38752 cat >>confdefs.h <<_ACEOF
38753 #define socklen_t int
38759 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
38760 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
38761 if test "${ac_cv_type_signal+set}" = set; then
38762 echo $ECHO_N "(cached) $ECHO_C" >&6
38764 cat >conftest.$ac_ext <<_ACEOF
38767 cat confdefs.h >>conftest.$ac_ext
38768 cat >>conftest.$ac_ext <<_ACEOF
38769 /* end confdefs.h. */
38770 #include <sys/types.h>
38771 #include <signal.h>
38776 extern "C" void (*signal (int, void (*)(int)))(int);
38778 void (*signal ()) ();
38789 rm -f conftest.$ac_objext
38790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38791 (eval $ac_compile) 2>conftest.er1
38793 grep -v '^ *+' conftest.er1 >conftest.err
38795 cat conftest.err >&5
38796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38797 (exit $ac_status); } &&
38798 { ac_try='test -z "$ac_c_werror_flag"
38799 || test ! -s conftest.err'
38800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38801 (eval $ac_try) 2>&5
38803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38804 (exit $ac_status); }; } &&
38805 { ac_try='test -s conftest.$ac_objext'
38806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38807 (eval $ac_try) 2>&5
38809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38810 (exit $ac_status); }; }; then
38811 ac_cv_type_signal=void
38813 echo "$as_me: failed program was:" >&5
38814 sed 's/^/| /' conftest.$ac_ext >&5
38816 ac_cv_type_signal=int
38818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38820 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
38821 echo "${ECHO_T}$ac_cv_type_signal" >&6
38823 cat >>confdefs.h <<_ACEOF
38824 #define RETSIGTYPE $ac_cv_type_signal
38829 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
38830 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
38831 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
38832 echo $ECHO_N "(cached) $ECHO_C" >&6
38834 cat >conftest.$ac_ext <<_ACEOF
38837 cat confdefs.h >>conftest.$ac_ext
38838 cat >>conftest.$ac_ext <<_ACEOF
38839 /* end confdefs.h. */
38840 $ac_includes_default
38841 #include <signal.h>
38847 if ((sig_atomic_t *) 0)
38849 if (sizeof (sig_atomic_t))
38855 rm -f conftest.$ac_objext
38856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38857 (eval $ac_compile) 2>conftest.er1
38859 grep -v '^ *+' conftest.er1 >conftest.err
38861 cat conftest.err >&5
38862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38863 (exit $ac_status); } &&
38864 { ac_try='test -z "$ac_c_werror_flag"
38865 || test ! -s conftest.err'
38866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38867 (eval $ac_try) 2>&5
38869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38870 (exit $ac_status); }; } &&
38871 { ac_try='test -s conftest.$ac_objext'
38872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38873 (eval $ac_try) 2>&5
38875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38876 (exit $ac_status); }; }; then
38877 ac_cv_type_sig_atomic_t=yes
38879 echo "$as_me: failed program was:" >&5
38880 sed 's/^/| /' conftest.$ac_ext >&5
38882 ac_cv_type_sig_atomic_t=no
38884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38886 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
38887 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
38888 if test $ac_cv_type_sig_atomic_t = yes; then
38892 cat >>confdefs.h <<_ACEOF
38893 #define sig_atomic_t int
38899 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
38900 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
38901 if test "${ac_cv_type_uid_t+set}" = set; then
38902 echo $ECHO_N "(cached) $ECHO_C" >&6
38904 cat >conftest.$ac_ext <<_ACEOF
38907 cat confdefs.h >>conftest.$ac_ext
38908 cat >>conftest.$ac_ext <<_ACEOF
38909 /* end confdefs.h. */
38910 #include <sys/types.h>
38913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38914 $EGREP "uid_t" >/dev/null 2>&1; then
38915 ac_cv_type_uid_t=yes
38917 ac_cv_type_uid_t=no
38922 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
38923 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
38924 if test $ac_cv_type_uid_t = no; then
38926 cat >>confdefs.h <<\_ACEOF
38931 cat >>confdefs.h <<\_ACEOF
38938 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
38939 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
38940 if test "${ac_cv_header_time+set}" = set; then
38941 echo $ECHO_N "(cached) $ECHO_C" >&6
38943 cat >conftest.$ac_ext <<_ACEOF
38946 cat confdefs.h >>conftest.$ac_ext
38947 cat >>conftest.$ac_ext <<_ACEOF
38948 /* end confdefs.h. */
38949 #include <sys/types.h>
38950 #include <sys/time.h>
38956 if ((struct tm *) 0)
38962 rm -f conftest.$ac_objext
38963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38964 (eval $ac_compile) 2>conftest.er1
38966 grep -v '^ *+' conftest.er1 >conftest.err
38968 cat conftest.err >&5
38969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38970 (exit $ac_status); } &&
38971 { ac_try='test -z "$ac_c_werror_flag"
38972 || test ! -s conftest.err'
38973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38974 (eval $ac_try) 2>&5
38976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38977 (exit $ac_status); }; } &&
38978 { ac_try='test -s conftest.$ac_objext'
38979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38980 (eval $ac_try) 2>&5
38982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38983 (exit $ac_status); }; }; then
38984 ac_cv_header_time=yes
38986 echo "$as_me: failed program was:" >&5
38987 sed 's/^/| /' conftest.$ac_ext >&5
38989 ac_cv_header_time=no
38991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38993 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
38994 echo "${ECHO_T}$ac_cv_header_time" >&6
38995 if test $ac_cv_header_time = yes; then
38997 cat >>confdefs.h <<\_ACEOF
38998 #define TIME_WITH_SYS_TIME 1
39003 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39004 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39005 if test "${ac_cv_struct_tm+set}" = set; then
39006 echo $ECHO_N "(cached) $ECHO_C" >&6
39008 cat >conftest.$ac_ext <<_ACEOF
39011 cat confdefs.h >>conftest.$ac_ext
39012 cat >>conftest.$ac_ext <<_ACEOF
39013 /* end confdefs.h. */
39014 #include <sys/types.h>
39020 struct tm *tp; tp->tm_sec;
39025 rm -f conftest.$ac_objext
39026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39027 (eval $ac_compile) 2>conftest.er1
39029 grep -v '^ *+' conftest.er1 >conftest.err
39031 cat conftest.err >&5
39032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39033 (exit $ac_status); } &&
39034 { ac_try='test -z "$ac_c_werror_flag"
39035 || test ! -s conftest.err'
39036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39037 (eval $ac_try) 2>&5
39039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39040 (exit $ac_status); }; } &&
39041 { ac_try='test -s conftest.$ac_objext'
39042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39043 (eval $ac_try) 2>&5
39045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39046 (exit $ac_status); }; }; then
39047 ac_cv_struct_tm=time.h
39049 echo "$as_me: failed program was:" >&5
39050 sed 's/^/| /' conftest.$ac_ext >&5
39052 ac_cv_struct_tm=sys/time.h
39054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39056 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39057 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39058 if test $ac_cv_struct_tm = sys/time.h; then
39060 cat >>confdefs.h <<\_ACEOF
39061 #define TM_IN_SYS_TIME 1
39066 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39067 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39068 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39069 echo $ECHO_N "(cached) $ECHO_C" >&6
39071 cat >conftest.$ac_ext <<_ACEOF
39074 cat confdefs.h >>conftest.$ac_ext
39075 cat >>conftest.$ac_ext <<_ACEOF
39076 /* end confdefs.h. */
39077 $ac_includes_default
39081 static struct stat ac_aggr;
39082 if (ac_aggr.st_blksize)
39088 rm -f conftest.$ac_objext
39089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39090 (eval $ac_compile) 2>conftest.er1
39092 grep -v '^ *+' conftest.er1 >conftest.err
39094 cat conftest.err >&5
39095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39096 (exit $ac_status); } &&
39097 { ac_try='test -z "$ac_c_werror_flag"
39098 || test ! -s conftest.err'
39099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39100 (eval $ac_try) 2>&5
39102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39103 (exit $ac_status); }; } &&
39104 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
39110 ac_cv_member_struct_stat_st_blksize=yes
39112 echo "$as_me: failed program was:" >&5
39113 sed 's/^/| /' conftest.$ac_ext >&5
39115 cat >conftest.$ac_ext <<_ACEOF
39118 cat confdefs.h >>conftest.$ac_ext
39119 cat >>conftest.$ac_ext <<_ACEOF
39120 /* end confdefs.h. */
39121 $ac_includes_default
39125 static struct stat ac_aggr;
39126 if (sizeof ac_aggr.st_blksize)
39132 rm -f conftest.$ac_objext
39133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39134 (eval $ac_compile) 2>conftest.er1
39136 grep -v '^ *+' conftest.er1 >conftest.err
39138 cat conftest.err >&5
39139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39140 (exit $ac_status); } &&
39141 { ac_try='test -z "$ac_c_werror_flag"
39142 || test ! -s conftest.err'
39143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39144 (eval $ac_try) 2>&5
39146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39147 (exit $ac_status); }; } &&
39148 { ac_try='test -s conftest.$ac_objext'
39149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39150 (eval $ac_try) 2>&5
39152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39153 (exit $ac_status); }; }; then
39154 ac_cv_member_struct_stat_st_blksize=yes
39156 echo "$as_me: failed program was:" >&5
39157 sed 's/^/| /' conftest.$ac_ext >&5
39159 ac_cv_member_struct_stat_st_blksize=no
39161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39165 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39166 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39167 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39169 cat >>confdefs.h <<_ACEOF
39170 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39176 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39177 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39178 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39179 echo $ECHO_N "(cached) $ECHO_C" >&6
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
39193 static struct passwd ac_aggr;
39194 if (ac_aggr.pw_gecos)
39200 rm -f conftest.$ac_objext
39201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39202 (eval $ac_compile) 2>conftest.er1
39204 grep -v '^ *+' conftest.er1 >conftest.err
39206 cat conftest.err >&5
39207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39208 (exit $ac_status); } &&
39209 { ac_try='test -z "$ac_c_werror_flag"
39210 || test ! -s conftest.err'
39211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39212 (eval $ac_try) 2>&5
39214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39215 (exit $ac_status); }; } &&
39216 { ac_try='test -s conftest.$ac_objext'
39217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39218 (eval $ac_try) 2>&5
39220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221 (exit $ac_status); }; }; then
39222 ac_cv_member_struct_passwd_pw_gecos=yes
39224 echo "$as_me: failed program was:" >&5
39225 sed 's/^/| /' conftest.$ac_ext >&5
39227 cat >conftest.$ac_ext <<_ACEOF
39230 cat confdefs.h >>conftest.$ac_ext
39231 cat >>conftest.$ac_ext <<_ACEOF
39232 /* end confdefs.h. */
39233 $ac_includes_default
39239 static struct passwd ac_aggr;
39240 if (sizeof ac_aggr.pw_gecos)
39246 rm -f conftest.$ac_objext
39247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39248 (eval $ac_compile) 2>conftest.er1
39250 grep -v '^ *+' conftest.er1 >conftest.err
39252 cat conftest.err >&5
39253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39254 (exit $ac_status); } &&
39255 { ac_try='test -z "$ac_c_werror_flag"
39256 || test ! -s conftest.err'
39257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39258 (eval $ac_try) 2>&5
39260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39261 (exit $ac_status); }; } &&
39262 { ac_try='test -s conftest.$ac_objext'
39263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39264 (eval $ac_try) 2>&5
39266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39267 (exit $ac_status); }; }; then
39268 ac_cv_member_struct_passwd_pw_gecos=yes
39270 echo "$as_me: failed program was:" >&5
39271 sed 's/^/| /' conftest.$ac_ext >&5
39273 ac_cv_member_struct_passwd_pw_gecos=no
39275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39279 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39280 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39281 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39283 cat >>confdefs.h <<_ACEOF
39284 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39290 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39291 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39292 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39293 echo $ECHO_N "(cached) $ECHO_C" >&6
39295 cat >conftest.$ac_ext <<_ACEOF
39298 cat confdefs.h >>conftest.$ac_ext
39299 cat >>conftest.$ac_ext <<_ACEOF
39300 /* end confdefs.h. */
39301 $ac_includes_default
39307 static struct passwd ac_aggr;
39308 if (ac_aggr.pw_passwd)
39314 rm -f conftest.$ac_objext
39315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39316 (eval $ac_compile) 2>conftest.er1
39318 grep -v '^ *+' conftest.er1 >conftest.err
39320 cat conftest.err >&5
39321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39322 (exit $ac_status); } &&
39323 { ac_try='test -z "$ac_c_werror_flag"
39324 || test ! -s conftest.err'
39325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39326 (eval $ac_try) 2>&5
39328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39329 (exit $ac_status); }; } &&
39330 { ac_try='test -s conftest.$ac_objext'
39331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39332 (eval $ac_try) 2>&5
39334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39335 (exit $ac_status); }; }; then
39336 ac_cv_member_struct_passwd_pw_passwd=yes
39338 echo "$as_me: failed program was:" >&5
39339 sed 's/^/| /' conftest.$ac_ext >&5
39341 cat >conftest.$ac_ext <<_ACEOF
39344 cat confdefs.h >>conftest.$ac_ext
39345 cat >>conftest.$ac_ext <<_ACEOF
39346 /* end confdefs.h. */
39347 $ac_includes_default
39353 static struct passwd ac_aggr;
39354 if (sizeof ac_aggr.pw_passwd)
39360 rm -f conftest.$ac_objext
39361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39362 (eval $ac_compile) 2>conftest.er1
39364 grep -v '^ *+' conftest.er1 >conftest.err
39366 cat conftest.err >&5
39367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39368 (exit $ac_status); } &&
39369 { ac_try='test -z "$ac_c_werror_flag"
39370 || test ! -s conftest.err'
39371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39372 (eval $ac_try) 2>&5
39374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39375 (exit $ac_status); }; } &&
39376 { ac_try='test -s conftest.$ac_objext'
39377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39378 (eval $ac_try) 2>&5
39380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39381 (exit $ac_status); }; }; then
39382 ac_cv_member_struct_passwd_pw_passwd=yes
39384 echo "$as_me: failed program was:" >&5
39385 sed 's/^/| /' conftest.$ac_ext >&5
39387 ac_cv_member_struct_passwd_pw_passwd=no
39389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39393 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
39394 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
39395 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
39397 cat >>confdefs.h <<_ACEOF
39398 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
39405 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
39406 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
39407 if test "${ol_cv_c_upper_lower+set}" = set; then
39408 echo $ECHO_N "(cached) $ECHO_C" >&6
39411 if test "$cross_compiling" = yes; then
39412 ol_cv_c_upper_lower=safe
39414 cat >conftest.$ac_ext <<_ACEOF
39417 cat confdefs.h >>conftest.$ac_ext
39418 cat >>conftest.$ac_ext <<_ACEOF
39419 /* end confdefs.h. */
39424 if ('C' == toupper('C'))
39430 rm -f conftest$ac_exeext
39431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39432 (eval $ac_link) 2>&5
39434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39437 (eval $ac_try) 2>&5
39439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39440 (exit $ac_status); }; }; then
39441 ol_cv_c_upper_lower=no
39443 echo "$as_me: program exited with status $ac_status" >&5
39444 echo "$as_me: failed program was:" >&5
39445 sed 's/^/| /' conftest.$ac_ext >&5
39447 ( exit $ac_status )
39448 ol_cv_c_upper_lower=yes
39450 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39453 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
39454 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
39455 if test $ol_cv_c_upper_lower != no ; then
39457 cat >>confdefs.h <<\_ACEOF
39458 #define C_UPPER_LOWER 1
39463 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
39464 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
39465 if test "${ac_cv_c_const+set}" = set; then
39466 echo $ECHO_N "(cached) $ECHO_C" >&6
39468 cat >conftest.$ac_ext <<_ACEOF
39471 cat confdefs.h >>conftest.$ac_ext
39472 cat >>conftest.$ac_ext <<_ACEOF
39473 /* end confdefs.h. */
39478 /* FIXME: Include the comments suggested by Paul. */
39479 #ifndef __cplusplus
39480 /* Ultrix mips cc rejects this. */
39481 typedef int charset[2];
39483 /* SunOS 4.1.1 cc rejects this. */
39484 char const *const *ccp;
39486 /* NEC SVR4.0.2 mips cc rejects this. */
39487 struct point {int x, y;};
39488 static struct point const zero = {0,0};
39489 /* AIX XL C 1.02.0.0 rejects this.
39490 It does not let you subtract one const X* pointer from another in
39491 an arm of an if-expression whose if-part is not a constant
39493 const char *g = "string";
39494 ccp = &g + (g ? g-g : 0);
39495 /* HPUX 7.0 cc rejects these. */
39498 ccp = (char const *const *) p;
39499 { /* SCO 3.2v4 cc rejects this. */
39501 char const *s = 0 ? (char *) 0 : (char const *) 0;
39505 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
39506 int x[] = {25, 17};
39507 const int *foo = &x[0];
39510 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
39511 typedef const int *iptr;
39515 { /* AIX XL C 1.02.0.0 rejects this saying
39516 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
39517 struct s { int j; const int *ap[3]; };
39518 struct s *b; b->j = 5;
39520 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
39521 const int foo = 10;
39529 rm -f conftest.$ac_objext
39530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39531 (eval $ac_compile) 2>conftest.er1
39533 grep -v '^ *+' conftest.er1 >conftest.err
39535 cat conftest.err >&5
39536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39537 (exit $ac_status); } &&
39538 { ac_try='test -z "$ac_c_werror_flag"
39539 || test ! -s conftest.err'
39540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39541 (eval $ac_try) 2>&5
39543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544 (exit $ac_status); }; } &&
39545 { ac_try='test -s conftest.$ac_objext'
39546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39547 (eval $ac_try) 2>&5
39549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550 (exit $ac_status); }; }; then
39553 echo "$as_me: failed program was:" >&5
39554 sed 's/^/| /' conftest.$ac_ext >&5
39558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39560 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
39561 echo "${ECHO_T}$ac_cv_c_const" >&6
39562 if test $ac_cv_c_const = no; then
39564 cat >>confdefs.h <<\_ACEOF
39570 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
39571 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
39572 if test "${ol_cv_c_volatile+set}" = set; then
39573 echo $ECHO_N "(cached) $ECHO_C" >&6
39575 cat >conftest.$ac_ext <<_ACEOF
39578 cat confdefs.h >>conftest.$ac_ext
39579 cat >>conftest.$ac_ext <<_ACEOF
39580 /* end confdefs.h. */
39585 volatile int a; int * volatile b = x ? &y : &z;
39586 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
39592 rm -f conftest.$ac_objext
39593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39594 (eval $ac_compile) 2>conftest.er1
39596 grep -v '^ *+' conftest.er1 >conftest.err
39598 cat conftest.err >&5
39599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600 (exit $ac_status); } &&
39601 { ac_try='test -z "$ac_c_werror_flag"
39602 || test ! -s conftest.err'
39603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39604 (eval $ac_try) 2>&5
39606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607 (exit $ac_status); }; } &&
39608 { ac_try='test -s conftest.$ac_objext'
39609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39610 (eval $ac_try) 2>&5
39612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613 (exit $ac_status); }; }; then
39614 ol_cv_c_volatile=yes
39616 echo "$as_me: failed program was:" >&5
39617 sed 's/^/| /' conftest.$ac_ext >&5
39619 ol_cv_c_volatile=no
39621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39623 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
39624 echo "${ECHO_T}$ol_cv_c_volatile" >&6
39625 if test $ol_cv_c_volatile = yes; then
39629 cat >>confdefs.h <<\_ACEOF
39636 if test $cross_compiling = yes ; then
39637 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
39638 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
39640 cat >>confdefs.h <<\_ACEOF
39641 #define CROSS_COMPILING 1
39645 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
39646 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
39647 if test "${ac_cv_c_bigendian+set}" = set; then
39648 echo $ECHO_N "(cached) $ECHO_C" >&6
39650 # See if sys/param.h defines the BYTE_ORDER macro.
39651 cat >conftest.$ac_ext <<_ACEOF
39654 cat confdefs.h >>conftest.$ac_ext
39655 cat >>conftest.$ac_ext <<_ACEOF
39656 /* end confdefs.h. */
39657 #include <sys/types.h>
39658 #include <sys/param.h>
39663 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
39664 bogus endian macros
39671 rm -f conftest.$ac_objext
39672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39673 (eval $ac_compile) 2>conftest.er1
39675 grep -v '^ *+' conftest.er1 >conftest.err
39677 cat conftest.err >&5
39678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39679 (exit $ac_status); } &&
39680 { ac_try='test -z "$ac_c_werror_flag"
39681 || test ! -s conftest.err'
39682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39683 (eval $ac_try) 2>&5
39685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39686 (exit $ac_status); }; } &&
39687 { ac_try='test -s conftest.$ac_objext'
39688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39689 (eval $ac_try) 2>&5
39691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39692 (exit $ac_status); }; }; then
39693 # It does; now see whether it defined to BIG_ENDIAN or not.
39694 cat >conftest.$ac_ext <<_ACEOF
39697 cat confdefs.h >>conftest.$ac_ext
39698 cat >>conftest.$ac_ext <<_ACEOF
39699 /* end confdefs.h. */
39700 #include <sys/types.h>
39701 #include <sys/param.h>
39706 #if BYTE_ORDER != BIG_ENDIAN
39714 rm -f conftest.$ac_objext
39715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39716 (eval $ac_compile) 2>conftest.er1
39718 grep -v '^ *+' conftest.er1 >conftest.err
39720 cat conftest.err >&5
39721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39722 (exit $ac_status); } &&
39723 { ac_try='test -z "$ac_c_werror_flag"
39724 || test ! -s conftest.err'
39725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39726 (eval $ac_try) 2>&5
39728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39729 (exit $ac_status); }; } &&
39730 { ac_try='test -s conftest.$ac_objext'
39731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39732 (eval $ac_try) 2>&5
39734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39735 (exit $ac_status); }; }; then
39736 ac_cv_c_bigendian=yes
39738 echo "$as_me: failed program was:" >&5
39739 sed 's/^/| /' conftest.$ac_ext >&5
39741 ac_cv_c_bigendian=no
39743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39745 echo "$as_me: failed program was:" >&5
39746 sed 's/^/| /' conftest.$ac_ext >&5
39748 # It does not; compile a test program.
39749 if test "$cross_compiling" = yes; then
39750 # try to guess the endianness by grepping values into an object file
39751 ac_cv_c_bigendian=unknown
39752 cat >conftest.$ac_ext <<_ACEOF
39755 cat confdefs.h >>conftest.$ac_ext
39756 cat >>conftest.$ac_ext <<_ACEOF
39757 /* end confdefs.h. */
39758 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
39759 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
39760 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
39761 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
39762 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
39763 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
39767 _ascii (); _ebcdic ();
39772 rm -f conftest.$ac_objext
39773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39774 (eval $ac_compile) 2>conftest.er1
39776 grep -v '^ *+' conftest.er1 >conftest.err
39778 cat conftest.err >&5
39779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39780 (exit $ac_status); } &&
39781 { ac_try='test -z "$ac_c_werror_flag"
39782 || test ! -s conftest.err'
39783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39784 (eval $ac_try) 2>&5
39786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39787 (exit $ac_status); }; } &&
39788 { ac_try='test -s conftest.$ac_objext'
39789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39790 (eval $ac_try) 2>&5
39792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39793 (exit $ac_status); }; }; then
39794 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
39795 ac_cv_c_bigendian=yes
39797 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
39798 if test "$ac_cv_c_bigendian" = unknown; then
39799 ac_cv_c_bigendian=no
39801 # finding both strings is unlikely to happen, but who knows?
39802 ac_cv_c_bigendian=unknown
39806 echo "$as_me: failed program was:" >&5
39807 sed 's/^/| /' conftest.$ac_ext >&5
39810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39812 cat >conftest.$ac_ext <<_ACEOF
39815 cat confdefs.h >>conftest.$ac_ext
39816 cat >>conftest.$ac_ext <<_ACEOF
39817 /* end confdefs.h. */
39821 /* Are we little or big endian? From Harbison&Steele. */
39825 char c[sizeof (long)];
39828 exit (u.c[sizeof (long) - 1] == 1);
39831 rm -f conftest$ac_exeext
39832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39833 (eval $ac_link) 2>&5
39835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39838 (eval $ac_try) 2>&5
39840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39841 (exit $ac_status); }; }; then
39842 ac_cv_c_bigendian=no
39844 echo "$as_me: program exited with status $ac_status" >&5
39845 echo "$as_me: failed program was:" >&5
39846 sed 's/^/| /' conftest.$ac_ext >&5
39848 ( exit $ac_status )
39849 ac_cv_c_bigendian=yes
39851 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39856 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
39857 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
39858 case $ac_cv_c_bigendian in
39861 cat >>confdefs.h <<\_ACEOF
39862 #define WORDS_BIGENDIAN 1
39868 { { echo "$as_me:$LINENO: error: unknown endianness
39869 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
39870 echo "$as_me: error: unknown endianness
39871 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
39872 { (exit 1); exit 1; }; } ;;
39877 echo "$as_me:$LINENO: checking for short" >&5
39878 echo $ECHO_N "checking for short... $ECHO_C" >&6
39879 if test "${ac_cv_type_short+set}" = set; then
39880 echo $ECHO_N "(cached) $ECHO_C" >&6
39882 cat >conftest.$ac_ext <<_ACEOF
39885 cat confdefs.h >>conftest.$ac_ext
39886 cat >>conftest.$ac_ext <<_ACEOF
39887 /* end confdefs.h. */
39888 $ac_includes_default
39894 if (sizeof (short))
39900 rm -f conftest.$ac_objext
39901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39902 (eval $ac_compile) 2>conftest.er1
39904 grep -v '^ *+' conftest.er1 >conftest.err
39906 cat conftest.err >&5
39907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39908 (exit $ac_status); } &&
39909 { ac_try='test -z "$ac_c_werror_flag"
39910 || test ! -s conftest.err'
39911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39912 (eval $ac_try) 2>&5
39914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39915 (exit $ac_status); }; } &&
39916 { ac_try='test -s conftest.$ac_objext'
39917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39918 (eval $ac_try) 2>&5
39920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39921 (exit $ac_status); }; }; then
39922 ac_cv_type_short=yes
39924 echo "$as_me: failed program was:" >&5
39925 sed 's/^/| /' conftest.$ac_ext >&5
39927 ac_cv_type_short=no
39929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39931 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
39932 echo "${ECHO_T}$ac_cv_type_short" >&6
39934 echo "$as_me:$LINENO: checking size of short" >&5
39935 echo $ECHO_N "checking size of short... $ECHO_C" >&6
39936 if test "${ac_cv_sizeof_short+set}" = set; then
39937 echo $ECHO_N "(cached) $ECHO_C" >&6
39939 if test "$ac_cv_type_short" = yes; then
39940 # The cast to unsigned long works around a bug in the HP C Compiler
39941 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39942 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39943 # This bug is HP SR number 8606223364.
39944 if test "$cross_compiling" = yes; then
39945 # Depending upon the size, compute the lo and hi bounds.
39946 cat >conftest.$ac_ext <<_ACEOF
39949 cat confdefs.h >>conftest.$ac_ext
39950 cat >>conftest.$ac_ext <<_ACEOF
39951 /* end confdefs.h. */
39952 $ac_includes_default
39956 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
39963 rm -f conftest.$ac_objext
39964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39965 (eval $ac_compile) 2>conftest.er1
39967 grep -v '^ *+' conftest.er1 >conftest.err
39969 cat conftest.err >&5
39970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39971 (exit $ac_status); } &&
39972 { ac_try='test -z "$ac_c_werror_flag"
39973 || test ! -s conftest.err'
39974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39975 (eval $ac_try) 2>&5
39977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39978 (exit $ac_status); }; } &&
39979 { ac_try='test -s conftest.$ac_objext'
39980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39981 (eval $ac_try) 2>&5
39983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984 (exit $ac_status); }; }; then
39987 cat >conftest.$ac_ext <<_ACEOF
39990 cat confdefs.h >>conftest.$ac_ext
39991 cat >>conftest.$ac_ext <<_ACEOF
39992 /* end confdefs.h. */
39993 $ac_includes_default
39997 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40004 rm -f conftest.$ac_objext
40005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40006 (eval $ac_compile) 2>conftest.er1
40008 grep -v '^ *+' conftest.er1 >conftest.err
40010 cat conftest.err >&5
40011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40012 (exit $ac_status); } &&
40013 { ac_try='test -z "$ac_c_werror_flag"
40014 || test ! -s conftest.err'
40015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40016 (eval $ac_try) 2>&5
40018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40019 (exit $ac_status); }; } &&
40020 { ac_try='test -s conftest.$ac_objext'
40021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40022 (eval $ac_try) 2>&5
40024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40025 (exit $ac_status); }; }; then
40026 ac_hi=$ac_mid; break
40028 echo "$as_me: failed program was:" >&5
40029 sed 's/^/| /' conftest.$ac_ext >&5
40031 ac_lo=`expr $ac_mid + 1`
40032 if test $ac_lo -le $ac_mid; then
40036 ac_mid=`expr 2 '*' $ac_mid + 1`
40038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40041 echo "$as_me: failed program was:" >&5
40042 sed 's/^/| /' conftest.$ac_ext >&5
40044 cat >conftest.$ac_ext <<_ACEOF
40047 cat confdefs.h >>conftest.$ac_ext
40048 cat >>conftest.$ac_ext <<_ACEOF
40049 /* end confdefs.h. */
40050 $ac_includes_default
40054 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40061 rm -f conftest.$ac_objext
40062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40063 (eval $ac_compile) 2>conftest.er1
40065 grep -v '^ *+' conftest.er1 >conftest.err
40067 cat conftest.err >&5
40068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40069 (exit $ac_status); } &&
40070 { ac_try='test -z "$ac_c_werror_flag"
40071 || test ! -s conftest.err'
40072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40073 (eval $ac_try) 2>&5
40075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40076 (exit $ac_status); }; } &&
40077 { ac_try='test -s conftest.$ac_objext'
40078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40079 (eval $ac_try) 2>&5
40081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40082 (exit $ac_status); }; }; then
40085 cat >conftest.$ac_ext <<_ACEOF
40088 cat confdefs.h >>conftest.$ac_ext
40089 cat >>conftest.$ac_ext <<_ACEOF
40090 /* end confdefs.h. */
40091 $ac_includes_default
40095 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40102 rm -f conftest.$ac_objext
40103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40104 (eval $ac_compile) 2>conftest.er1
40106 grep -v '^ *+' conftest.er1 >conftest.err
40108 cat conftest.err >&5
40109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40110 (exit $ac_status); } &&
40111 { ac_try='test -z "$ac_c_werror_flag"
40112 || test ! -s conftest.err'
40113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40114 (eval $ac_try) 2>&5
40116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40117 (exit $ac_status); }; } &&
40118 { ac_try='test -s conftest.$ac_objext'
40119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40120 (eval $ac_try) 2>&5
40122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40123 (exit $ac_status); }; }; then
40124 ac_lo=$ac_mid; break
40126 echo "$as_me: failed program was:" >&5
40127 sed 's/^/| /' conftest.$ac_ext >&5
40129 ac_hi=`expr '(' $ac_mid ')' - 1`
40130 if test $ac_mid -le $ac_hi; then
40134 ac_mid=`expr 2 '*' $ac_mid`
40136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40139 echo "$as_me: failed program was:" >&5
40140 sed 's/^/| /' conftest.$ac_ext >&5
40144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40147 # Binary search between lo and hi bounds.
40148 while test "x$ac_lo" != "x$ac_hi"; do
40149 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40150 cat >conftest.$ac_ext <<_ACEOF
40153 cat confdefs.h >>conftest.$ac_ext
40154 cat >>conftest.$ac_ext <<_ACEOF
40155 /* end confdefs.h. */
40156 $ac_includes_default
40160 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40167 rm -f conftest.$ac_objext
40168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40169 (eval $ac_compile) 2>conftest.er1
40171 grep -v '^ *+' conftest.er1 >conftest.err
40173 cat conftest.err >&5
40174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40175 (exit $ac_status); } &&
40176 { ac_try='test -z "$ac_c_werror_flag"
40177 || test ! -s conftest.err'
40178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40179 (eval $ac_try) 2>&5
40181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40182 (exit $ac_status); }; } &&
40183 { ac_try='test -s conftest.$ac_objext'
40184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40185 (eval $ac_try) 2>&5
40187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40188 (exit $ac_status); }; }; then
40191 echo "$as_me: failed program was:" >&5
40192 sed 's/^/| /' conftest.$ac_ext >&5
40194 ac_lo=`expr '(' $ac_mid ')' + 1`
40196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40199 ?*) ac_cv_sizeof_short=$ac_lo;;
40200 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40201 See \`config.log' for more details." >&5
40202 echo "$as_me: error: cannot compute sizeof (short), 77
40203 See \`config.log' for more details." >&2;}
40204 { (exit 1); exit 1; }; } ;;
40207 if test "$cross_compiling" = yes; then
40208 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40209 See \`config.log' for more details." >&5
40210 echo "$as_me: error: cannot run test program while cross compiling
40211 See \`config.log' for more details." >&2;}
40212 { (exit 1); exit 1; }; }
40214 cat >conftest.$ac_ext <<_ACEOF
40217 cat confdefs.h >>conftest.$ac_ext
40218 cat >>conftest.$ac_ext <<_ACEOF
40219 /* end confdefs.h. */
40220 $ac_includes_default
40221 long longval () { return (long) (sizeof (short)); }
40222 unsigned long ulongval () { return (long) (sizeof (short)); }
40224 #include <stdlib.h>
40229 FILE *f = fopen ("conftest.val", "w");
40232 if (((long) (sizeof (short))) < 0)
40234 long i = longval ();
40235 if (i != ((long) (sizeof (short))))
40237 fprintf (f, "%ld\n", i);
40241 unsigned long i = ulongval ();
40242 if (i != ((long) (sizeof (short))))
40244 fprintf (f, "%lu\n", i);
40246 exit (ferror (f) || fclose (f) != 0);
40252 rm -f conftest$ac_exeext
40253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40254 (eval $ac_link) 2>&5
40256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40259 (eval $ac_try) 2>&5
40261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40262 (exit $ac_status); }; }; then
40263 ac_cv_sizeof_short=`cat conftest.val`
40265 echo "$as_me: program exited with status $ac_status" >&5
40266 echo "$as_me: failed program was:" >&5
40267 sed 's/^/| /' conftest.$ac_ext >&5
40269 ( exit $ac_status )
40270 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40271 See \`config.log' for more details." >&5
40272 echo "$as_me: error: cannot compute sizeof (short), 77
40273 See \`config.log' for more details." >&2;}
40274 { (exit 1); exit 1; }; }
40276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40281 ac_cv_sizeof_short=0
40284 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40285 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40286 cat >>confdefs.h <<_ACEOF
40287 #define SIZEOF_SHORT $ac_cv_sizeof_short
40291 echo "$as_me:$LINENO: checking for int" >&5
40292 echo $ECHO_N "checking for int... $ECHO_C" >&6
40293 if test "${ac_cv_type_int+set}" = set; then
40294 echo $ECHO_N "(cached) $ECHO_C" >&6
40296 cat >conftest.$ac_ext <<_ACEOF
40299 cat confdefs.h >>conftest.$ac_ext
40300 cat >>conftest.$ac_ext <<_ACEOF
40301 /* end confdefs.h. */
40302 $ac_includes_default
40314 rm -f conftest.$ac_objext
40315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40316 (eval $ac_compile) 2>conftest.er1
40318 grep -v '^ *+' conftest.er1 >conftest.err
40320 cat conftest.err >&5
40321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40322 (exit $ac_status); } &&
40323 { ac_try='test -z "$ac_c_werror_flag"
40324 || test ! -s conftest.err'
40325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40326 (eval $ac_try) 2>&5
40328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40329 (exit $ac_status); }; } &&
40330 { ac_try='test -s conftest.$ac_objext'
40331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40332 (eval $ac_try) 2>&5
40334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40335 (exit $ac_status); }; }; then
40338 echo "$as_me: failed program was:" >&5
40339 sed 's/^/| /' conftest.$ac_ext >&5
40343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40345 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40346 echo "${ECHO_T}$ac_cv_type_int" >&6
40348 echo "$as_me:$LINENO: checking size of int" >&5
40349 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40350 if test "${ac_cv_sizeof_int+set}" = set; then
40351 echo $ECHO_N "(cached) $ECHO_C" >&6
40353 if test "$ac_cv_type_int" = yes; then
40354 # The cast to unsigned long works around a bug in the HP C Compiler
40355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40357 # This bug is HP SR number 8606223364.
40358 if test "$cross_compiling" = yes; then
40359 # Depending upon the size, compute the lo and hi bounds.
40360 cat >conftest.$ac_ext <<_ACEOF
40363 cat confdefs.h >>conftest.$ac_ext
40364 cat >>conftest.$ac_ext <<_ACEOF
40365 /* end confdefs.h. */
40366 $ac_includes_default
40370 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
40377 rm -f conftest.$ac_objext
40378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40379 (eval $ac_compile) 2>conftest.er1
40381 grep -v '^ *+' conftest.er1 >conftest.err
40383 cat conftest.err >&5
40384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40385 (exit $ac_status); } &&
40386 { ac_try='test -z "$ac_c_werror_flag"
40387 || test ! -s conftest.err'
40388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40389 (eval $ac_try) 2>&5
40391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40392 (exit $ac_status); }; } &&
40393 { ac_try='test -s conftest.$ac_objext'
40394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40395 (eval $ac_try) 2>&5
40397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40398 (exit $ac_status); }; }; then
40401 cat >conftest.$ac_ext <<_ACEOF
40404 cat confdefs.h >>conftest.$ac_ext
40405 cat >>conftest.$ac_ext <<_ACEOF
40406 /* end confdefs.h. */
40407 $ac_includes_default
40411 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40418 rm -f conftest.$ac_objext
40419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40420 (eval $ac_compile) 2>conftest.er1
40422 grep -v '^ *+' conftest.er1 >conftest.err
40424 cat conftest.err >&5
40425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40426 (exit $ac_status); } &&
40427 { ac_try='test -z "$ac_c_werror_flag"
40428 || test ! -s conftest.err'
40429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40430 (eval $ac_try) 2>&5
40432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40433 (exit $ac_status); }; } &&
40434 { ac_try='test -s conftest.$ac_objext'
40435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40436 (eval $ac_try) 2>&5
40438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40439 (exit $ac_status); }; }; then
40440 ac_hi=$ac_mid; break
40442 echo "$as_me: failed program was:" >&5
40443 sed 's/^/| /' conftest.$ac_ext >&5
40445 ac_lo=`expr $ac_mid + 1`
40446 if test $ac_lo -le $ac_mid; then
40450 ac_mid=`expr 2 '*' $ac_mid + 1`
40452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40455 echo "$as_me: failed program was:" >&5
40456 sed 's/^/| /' conftest.$ac_ext >&5
40458 cat >conftest.$ac_ext <<_ACEOF
40461 cat confdefs.h >>conftest.$ac_ext
40462 cat >>conftest.$ac_ext <<_ACEOF
40463 /* end confdefs.h. */
40464 $ac_includes_default
40468 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
40475 rm -f conftest.$ac_objext
40476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40477 (eval $ac_compile) 2>conftest.er1
40479 grep -v '^ *+' conftest.er1 >conftest.err
40481 cat conftest.err >&5
40482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40483 (exit $ac_status); } &&
40484 { ac_try='test -z "$ac_c_werror_flag"
40485 || test ! -s conftest.err'
40486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40487 (eval $ac_try) 2>&5
40489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40490 (exit $ac_status); }; } &&
40491 { ac_try='test -s conftest.$ac_objext'
40492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40493 (eval $ac_try) 2>&5
40495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40496 (exit $ac_status); }; }; then
40499 cat >conftest.$ac_ext <<_ACEOF
40502 cat confdefs.h >>conftest.$ac_ext
40503 cat >>conftest.$ac_ext <<_ACEOF
40504 /* end confdefs.h. */
40505 $ac_includes_default
40509 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
40516 rm -f conftest.$ac_objext
40517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40518 (eval $ac_compile) 2>conftest.er1
40520 grep -v '^ *+' conftest.er1 >conftest.err
40522 cat conftest.err >&5
40523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40524 (exit $ac_status); } &&
40525 { ac_try='test -z "$ac_c_werror_flag"
40526 || test ! -s conftest.err'
40527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40528 (eval $ac_try) 2>&5
40530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40531 (exit $ac_status); }; } &&
40532 { ac_try='test -s conftest.$ac_objext'
40533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40534 (eval $ac_try) 2>&5
40536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40537 (exit $ac_status); }; }; then
40538 ac_lo=$ac_mid; break
40540 echo "$as_me: failed program was:" >&5
40541 sed 's/^/| /' conftest.$ac_ext >&5
40543 ac_hi=`expr '(' $ac_mid ')' - 1`
40544 if test $ac_mid -le $ac_hi; then
40548 ac_mid=`expr 2 '*' $ac_mid`
40550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40553 echo "$as_me: failed program was:" >&5
40554 sed 's/^/| /' conftest.$ac_ext >&5
40558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40561 # Binary search between lo and hi bounds.
40562 while test "x$ac_lo" != "x$ac_hi"; do
40563 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40564 cat >conftest.$ac_ext <<_ACEOF
40567 cat confdefs.h >>conftest.$ac_ext
40568 cat >>conftest.$ac_ext <<_ACEOF
40569 /* end confdefs.h. */
40570 $ac_includes_default
40574 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40581 rm -f conftest.$ac_objext
40582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40583 (eval $ac_compile) 2>conftest.er1
40585 grep -v '^ *+' conftest.er1 >conftest.err
40587 cat conftest.err >&5
40588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40589 (exit $ac_status); } &&
40590 { ac_try='test -z "$ac_c_werror_flag"
40591 || test ! -s conftest.err'
40592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40593 (eval $ac_try) 2>&5
40595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40596 (exit $ac_status); }; } &&
40597 { ac_try='test -s conftest.$ac_objext'
40598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40599 (eval $ac_try) 2>&5
40601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40602 (exit $ac_status); }; }; then
40605 echo "$as_me: failed program was:" >&5
40606 sed 's/^/| /' conftest.$ac_ext >&5
40608 ac_lo=`expr '(' $ac_mid ')' + 1`
40610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40613 ?*) ac_cv_sizeof_int=$ac_lo;;
40614 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
40615 See \`config.log' for more details." >&5
40616 echo "$as_me: error: cannot compute sizeof (int), 77
40617 See \`config.log' for more details." >&2;}
40618 { (exit 1); exit 1; }; } ;;
40621 if test "$cross_compiling" = yes; then
40622 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40623 See \`config.log' for more details." >&5
40624 echo "$as_me: error: cannot run test program while cross compiling
40625 See \`config.log' for more details." >&2;}
40626 { (exit 1); exit 1; }; }
40628 cat >conftest.$ac_ext <<_ACEOF
40631 cat confdefs.h >>conftest.$ac_ext
40632 cat >>conftest.$ac_ext <<_ACEOF
40633 /* end confdefs.h. */
40634 $ac_includes_default
40635 long longval () { return (long) (sizeof (int)); }
40636 unsigned long ulongval () { return (long) (sizeof (int)); }
40638 #include <stdlib.h>
40643 FILE *f = fopen ("conftest.val", "w");
40646 if (((long) (sizeof (int))) < 0)
40648 long i = longval ();
40649 if (i != ((long) (sizeof (int))))
40651 fprintf (f, "%ld\n", i);
40655 unsigned long i = ulongval ();
40656 if (i != ((long) (sizeof (int))))
40658 fprintf (f, "%lu\n", i);
40660 exit (ferror (f) || fclose (f) != 0);
40666 rm -f conftest$ac_exeext
40667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40668 (eval $ac_link) 2>&5
40670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40673 (eval $ac_try) 2>&5
40675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40676 (exit $ac_status); }; }; then
40677 ac_cv_sizeof_int=`cat conftest.val`
40679 echo "$as_me: program exited with status $ac_status" >&5
40680 echo "$as_me: failed program was:" >&5
40681 sed 's/^/| /' conftest.$ac_ext >&5
40683 ( exit $ac_status )
40684 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
40685 See \`config.log' for more details." >&5
40686 echo "$as_me: error: cannot compute sizeof (int), 77
40687 See \`config.log' for more details." >&2;}
40688 { (exit 1); exit 1; }; }
40690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40698 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
40699 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
40700 cat >>confdefs.h <<_ACEOF
40701 #define SIZEOF_INT $ac_cv_sizeof_int
40705 echo "$as_me:$LINENO: checking for long" >&5
40706 echo $ECHO_N "checking for long... $ECHO_C" >&6
40707 if test "${ac_cv_type_long+set}" = set; then
40708 echo $ECHO_N "(cached) $ECHO_C" >&6
40710 cat >conftest.$ac_ext <<_ACEOF
40713 cat confdefs.h >>conftest.$ac_ext
40714 cat >>conftest.$ac_ext <<_ACEOF
40715 /* end confdefs.h. */
40716 $ac_includes_default
40728 rm -f conftest.$ac_objext
40729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40730 (eval $ac_compile) 2>conftest.er1
40732 grep -v '^ *+' conftest.er1 >conftest.err
40734 cat conftest.err >&5
40735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40736 (exit $ac_status); } &&
40737 { ac_try='test -z "$ac_c_werror_flag"
40738 || test ! -s conftest.err'
40739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40740 (eval $ac_try) 2>&5
40742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40743 (exit $ac_status); }; } &&
40744 { ac_try='test -s conftest.$ac_objext'
40745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40746 (eval $ac_try) 2>&5
40748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40749 (exit $ac_status); }; }; then
40750 ac_cv_type_long=yes
40752 echo "$as_me: failed program was:" >&5
40753 sed 's/^/| /' conftest.$ac_ext >&5
40757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40759 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
40760 echo "${ECHO_T}$ac_cv_type_long" >&6
40762 echo "$as_me:$LINENO: checking size of long" >&5
40763 echo $ECHO_N "checking size of long... $ECHO_C" >&6
40764 if test "${ac_cv_sizeof_long+set}" = set; then
40765 echo $ECHO_N "(cached) $ECHO_C" >&6
40767 if test "$ac_cv_type_long" = yes; then
40768 # The cast to unsigned long works around a bug in the HP C Compiler
40769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40771 # This bug is HP SR number 8606223364.
40772 if test "$cross_compiling" = yes; then
40773 # Depending upon the size, compute the lo and hi bounds.
40774 cat >conftest.$ac_ext <<_ACEOF
40777 cat confdefs.h >>conftest.$ac_ext
40778 cat >>conftest.$ac_ext <<_ACEOF
40779 /* end confdefs.h. */
40780 $ac_includes_default
40784 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
40791 rm -f conftest.$ac_objext
40792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40793 (eval $ac_compile) 2>conftest.er1
40795 grep -v '^ *+' conftest.er1 >conftest.err
40797 cat conftest.err >&5
40798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799 (exit $ac_status); } &&
40800 { ac_try='test -z "$ac_c_werror_flag"
40801 || test ! -s conftest.err'
40802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40803 (eval $ac_try) 2>&5
40805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40806 (exit $ac_status); }; } &&
40807 { ac_try='test -s conftest.$ac_objext'
40808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40809 (eval $ac_try) 2>&5
40811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812 (exit $ac_status); }; }; then
40815 cat >conftest.$ac_ext <<_ACEOF
40818 cat confdefs.h >>conftest.$ac_ext
40819 cat >>conftest.$ac_ext <<_ACEOF
40820 /* end confdefs.h. */
40821 $ac_includes_default
40825 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
40832 rm -f conftest.$ac_objext
40833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40834 (eval $ac_compile) 2>conftest.er1
40836 grep -v '^ *+' conftest.er1 >conftest.err
40838 cat conftest.err >&5
40839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40840 (exit $ac_status); } &&
40841 { ac_try='test -z "$ac_c_werror_flag"
40842 || test ! -s conftest.err'
40843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40844 (eval $ac_try) 2>&5
40846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40847 (exit $ac_status); }; } &&
40848 { ac_try='test -s conftest.$ac_objext'
40849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40850 (eval $ac_try) 2>&5
40852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40853 (exit $ac_status); }; }; then
40854 ac_hi=$ac_mid; break
40856 echo "$as_me: failed program was:" >&5
40857 sed 's/^/| /' conftest.$ac_ext >&5
40859 ac_lo=`expr $ac_mid + 1`
40860 if test $ac_lo -le $ac_mid; then
40864 ac_mid=`expr 2 '*' $ac_mid + 1`
40866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40869 echo "$as_me: failed program was:" >&5
40870 sed 's/^/| /' conftest.$ac_ext >&5
40872 cat >conftest.$ac_ext <<_ACEOF
40875 cat confdefs.h >>conftest.$ac_ext
40876 cat >>conftest.$ac_ext <<_ACEOF
40877 /* end confdefs.h. */
40878 $ac_includes_default
40882 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
40889 rm -f conftest.$ac_objext
40890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40891 (eval $ac_compile) 2>conftest.er1
40893 grep -v '^ *+' conftest.er1 >conftest.err
40895 cat conftest.err >&5
40896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40897 (exit $ac_status); } &&
40898 { ac_try='test -z "$ac_c_werror_flag"
40899 || test ! -s conftest.err'
40900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40901 (eval $ac_try) 2>&5
40903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40904 (exit $ac_status); }; } &&
40905 { ac_try='test -s conftest.$ac_objext'
40906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40907 (eval $ac_try) 2>&5
40909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40910 (exit $ac_status); }; }; then
40913 cat >conftest.$ac_ext <<_ACEOF
40916 cat confdefs.h >>conftest.$ac_ext
40917 cat >>conftest.$ac_ext <<_ACEOF
40918 /* end confdefs.h. */
40919 $ac_includes_default
40923 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
40930 rm -f conftest.$ac_objext
40931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40932 (eval $ac_compile) 2>conftest.er1
40934 grep -v '^ *+' conftest.er1 >conftest.err
40936 cat conftest.err >&5
40937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40938 (exit $ac_status); } &&
40939 { ac_try='test -z "$ac_c_werror_flag"
40940 || test ! -s conftest.err'
40941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40942 (eval $ac_try) 2>&5
40944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40945 (exit $ac_status); }; } &&
40946 { ac_try='test -s conftest.$ac_objext'
40947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40948 (eval $ac_try) 2>&5
40950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40951 (exit $ac_status); }; }; then
40952 ac_lo=$ac_mid; break
40954 echo "$as_me: failed program was:" >&5
40955 sed 's/^/| /' conftest.$ac_ext >&5
40957 ac_hi=`expr '(' $ac_mid ')' - 1`
40958 if test $ac_mid -le $ac_hi; then
40962 ac_mid=`expr 2 '*' $ac_mid`
40964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40967 echo "$as_me: failed program was:" >&5
40968 sed 's/^/| /' conftest.$ac_ext >&5
40972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40975 # Binary search between lo and hi bounds.
40976 while test "x$ac_lo" != "x$ac_hi"; do
40977 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40978 cat >conftest.$ac_ext <<_ACEOF
40981 cat confdefs.h >>conftest.$ac_ext
40982 cat >>conftest.$ac_ext <<_ACEOF
40983 /* end confdefs.h. */
40984 $ac_includes_default
40988 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
40995 rm -f conftest.$ac_objext
40996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40997 (eval $ac_compile) 2>conftest.er1
40999 grep -v '^ *+' conftest.er1 >conftest.err
41001 cat conftest.err >&5
41002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41003 (exit $ac_status); } &&
41004 { ac_try='test -z "$ac_c_werror_flag"
41005 || test ! -s conftest.err'
41006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41007 (eval $ac_try) 2>&5
41009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41010 (exit $ac_status); }; } &&
41011 { ac_try='test -s conftest.$ac_objext'
41012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41013 (eval $ac_try) 2>&5
41015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41016 (exit $ac_status); }; }; then
41019 echo "$as_me: failed program was:" >&5
41020 sed 's/^/| /' conftest.$ac_ext >&5
41022 ac_lo=`expr '(' $ac_mid ')' + 1`
41024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41027 ?*) ac_cv_sizeof_long=$ac_lo;;
41028 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41029 See \`config.log' for more details." >&5
41030 echo "$as_me: error: cannot compute sizeof (long), 77
41031 See \`config.log' for more details." >&2;}
41032 { (exit 1); exit 1; }; } ;;
41035 if test "$cross_compiling" = yes; then
41036 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41037 See \`config.log' for more details." >&5
41038 echo "$as_me: error: cannot run test program while cross compiling
41039 See \`config.log' for more details." >&2;}
41040 { (exit 1); exit 1; }; }
41042 cat >conftest.$ac_ext <<_ACEOF
41045 cat confdefs.h >>conftest.$ac_ext
41046 cat >>conftest.$ac_ext <<_ACEOF
41047 /* end confdefs.h. */
41048 $ac_includes_default
41049 long longval () { return (long) (sizeof (long)); }
41050 unsigned long ulongval () { return (long) (sizeof (long)); }
41052 #include <stdlib.h>
41057 FILE *f = fopen ("conftest.val", "w");
41060 if (((long) (sizeof (long))) < 0)
41062 long i = longval ();
41063 if (i != ((long) (sizeof (long))))
41065 fprintf (f, "%ld\n", i);
41069 unsigned long i = ulongval ();
41070 if (i != ((long) (sizeof (long))))
41072 fprintf (f, "%lu\n", i);
41074 exit (ferror (f) || fclose (f) != 0);
41080 rm -f conftest$ac_exeext
41081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41082 (eval $ac_link) 2>&5
41084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41087 (eval $ac_try) 2>&5
41089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41090 (exit $ac_status); }; }; then
41091 ac_cv_sizeof_long=`cat conftest.val`
41093 echo "$as_me: program exited with status $ac_status" >&5
41094 echo "$as_me: failed program was:" >&5
41095 sed 's/^/| /' conftest.$ac_ext >&5
41097 ( exit $ac_status )
41098 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41099 See \`config.log' for more details." >&5
41100 echo "$as_me: error: cannot compute sizeof (long), 77
41101 See \`config.log' for more details." >&2;}
41102 { (exit 1); exit 1; }; }
41104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41109 ac_cv_sizeof_long=0
41112 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41113 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41114 cat >>confdefs.h <<_ACEOF
41115 #define SIZEOF_LONG $ac_cv_sizeof_long
41119 echo "$as_me:$LINENO: checking for long long" >&5
41120 echo $ECHO_N "checking for long long... $ECHO_C" >&6
41121 if test "${ac_cv_type_long_long+set}" = set; then
41122 echo $ECHO_N "(cached) $ECHO_C" >&6
41124 cat >conftest.$ac_ext <<_ACEOF
41127 cat confdefs.h >>conftest.$ac_ext
41128 cat >>conftest.$ac_ext <<_ACEOF
41129 /* end confdefs.h. */
41130 $ac_includes_default
41134 if ((long long *) 0)
41136 if (sizeof (long long))
41142 rm -f conftest.$ac_objext
41143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41144 (eval $ac_compile) 2>conftest.er1
41146 grep -v '^ *+' conftest.er1 >conftest.err
41148 cat conftest.err >&5
41149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41150 (exit $ac_status); } &&
41151 { ac_try='test -z "$ac_c_werror_flag"
41152 || test ! -s conftest.err'
41153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41154 (eval $ac_try) 2>&5
41156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41157 (exit $ac_status); }; } &&
41158 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
41164 ac_cv_type_long_long=yes
41166 echo "$as_me: failed program was:" >&5
41167 sed 's/^/| /' conftest.$ac_ext >&5
41169 ac_cv_type_long_long=no
41171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41173 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
41174 echo "${ECHO_T}$ac_cv_type_long_long" >&6
41176 echo "$as_me:$LINENO: checking size of long long" >&5
41177 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
41178 if test "${ac_cv_sizeof_long_long+set}" = set; then
41179 echo $ECHO_N "(cached) $ECHO_C" >&6
41181 if test "$ac_cv_type_long_long" = yes; then
41182 # The cast to unsigned long works around a bug in the HP C Compiler
41183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41185 # This bug is HP SR number 8606223364.
41186 if test "$cross_compiling" = yes; then
41187 # Depending upon the size, compute the lo and hi bounds.
41188 cat >conftest.$ac_ext <<_ACEOF
41191 cat confdefs.h >>conftest.$ac_ext
41192 cat >>conftest.$ac_ext <<_ACEOF
41193 /* end confdefs.h. */
41194 $ac_includes_default
41198 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
41205 rm -f conftest.$ac_objext
41206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41207 (eval $ac_compile) 2>conftest.er1
41209 grep -v '^ *+' conftest.er1 >conftest.err
41211 cat conftest.err >&5
41212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41213 (exit $ac_status); } &&
41214 { ac_try='test -z "$ac_c_werror_flag"
41215 || test ! -s conftest.err'
41216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41217 (eval $ac_try) 2>&5
41219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41220 (exit $ac_status); }; } &&
41221 { ac_try='test -s conftest.$ac_objext'
41222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41223 (eval $ac_try) 2>&5
41225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41226 (exit $ac_status); }; }; then
41229 cat >conftest.$ac_ext <<_ACEOF
41232 cat confdefs.h >>conftest.$ac_ext
41233 cat >>conftest.$ac_ext <<_ACEOF
41234 /* end confdefs.h. */
41235 $ac_includes_default
41239 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
41246 rm -f conftest.$ac_objext
41247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41248 (eval $ac_compile) 2>conftest.er1
41250 grep -v '^ *+' conftest.er1 >conftest.err
41252 cat conftest.err >&5
41253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254 (exit $ac_status); } &&
41255 { ac_try='test -z "$ac_c_werror_flag"
41256 || test ! -s conftest.err'
41257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41258 (eval $ac_try) 2>&5
41260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41261 (exit $ac_status); }; } &&
41262 { ac_try='test -s conftest.$ac_objext'
41263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41264 (eval $ac_try) 2>&5
41266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41267 (exit $ac_status); }; }; then
41268 ac_hi=$ac_mid; break
41270 echo "$as_me: failed program was:" >&5
41271 sed 's/^/| /' conftest.$ac_ext >&5
41273 ac_lo=`expr $ac_mid + 1`
41274 if test $ac_lo -le $ac_mid; then
41278 ac_mid=`expr 2 '*' $ac_mid + 1`
41280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41283 echo "$as_me: failed program was:" >&5
41284 sed 's/^/| /' conftest.$ac_ext >&5
41286 cat >conftest.$ac_ext <<_ACEOF
41289 cat confdefs.h >>conftest.$ac_ext
41290 cat >>conftest.$ac_ext <<_ACEOF
41291 /* end confdefs.h. */
41292 $ac_includes_default
41296 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
41303 rm -f conftest.$ac_objext
41304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41305 (eval $ac_compile) 2>conftest.er1
41307 grep -v '^ *+' conftest.er1 >conftest.err
41309 cat conftest.err >&5
41310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41311 (exit $ac_status); } &&
41312 { ac_try='test -z "$ac_c_werror_flag"
41313 || test ! -s conftest.err'
41314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41315 (eval $ac_try) 2>&5
41317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41318 (exit $ac_status); }; } &&
41319 { ac_try='test -s conftest.$ac_objext'
41320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41321 (eval $ac_try) 2>&5
41323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41324 (exit $ac_status); }; }; then
41327 cat >conftest.$ac_ext <<_ACEOF
41330 cat confdefs.h >>conftest.$ac_ext
41331 cat >>conftest.$ac_ext <<_ACEOF
41332 /* end confdefs.h. */
41333 $ac_includes_default
41337 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
41344 rm -f conftest.$ac_objext
41345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41346 (eval $ac_compile) 2>conftest.er1
41348 grep -v '^ *+' conftest.er1 >conftest.err
41350 cat conftest.err >&5
41351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41352 (exit $ac_status); } &&
41353 { ac_try='test -z "$ac_c_werror_flag"
41354 || test ! -s conftest.err'
41355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41356 (eval $ac_try) 2>&5
41358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41359 (exit $ac_status); }; } &&
41360 { ac_try='test -s conftest.$ac_objext'
41361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41362 (eval $ac_try) 2>&5
41364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41365 (exit $ac_status); }; }; then
41366 ac_lo=$ac_mid; break
41368 echo "$as_me: failed program was:" >&5
41369 sed 's/^/| /' conftest.$ac_ext >&5
41371 ac_hi=`expr '(' $ac_mid ')' - 1`
41372 if test $ac_mid -le $ac_hi; then
41376 ac_mid=`expr 2 '*' $ac_mid`
41378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41381 echo "$as_me: failed program was:" >&5
41382 sed 's/^/| /' conftest.$ac_ext >&5
41386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41389 # Binary search between lo and hi bounds.
41390 while test "x$ac_lo" != "x$ac_hi"; do
41391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41392 cat >conftest.$ac_ext <<_ACEOF
41395 cat confdefs.h >>conftest.$ac_ext
41396 cat >>conftest.$ac_ext <<_ACEOF
41397 /* end confdefs.h. */
41398 $ac_includes_default
41402 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
41409 rm -f conftest.$ac_objext
41410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41411 (eval $ac_compile) 2>conftest.er1
41413 grep -v '^ *+' conftest.er1 >conftest.err
41415 cat conftest.err >&5
41416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41417 (exit $ac_status); } &&
41418 { ac_try='test -z "$ac_c_werror_flag"
41419 || test ! -s conftest.err'
41420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41421 (eval $ac_try) 2>&5
41423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41424 (exit $ac_status); }; } &&
41425 { ac_try='test -s conftest.$ac_objext'
41426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41427 (eval $ac_try) 2>&5
41429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41430 (exit $ac_status); }; }; then
41433 echo "$as_me: failed program was:" >&5
41434 sed 's/^/| /' conftest.$ac_ext >&5
41436 ac_lo=`expr '(' $ac_mid ')' + 1`
41438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41441 ?*) ac_cv_sizeof_long_long=$ac_lo;;
41442 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
41443 See \`config.log' for more details." >&5
41444 echo "$as_me: error: cannot compute sizeof (long long), 77
41445 See \`config.log' for more details." >&2;}
41446 { (exit 1); exit 1; }; } ;;
41449 if test "$cross_compiling" = yes; then
41450 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41451 See \`config.log' for more details." >&5
41452 echo "$as_me: error: cannot run test program while cross compiling
41453 See \`config.log' for more details." >&2;}
41454 { (exit 1); exit 1; }; }
41456 cat >conftest.$ac_ext <<_ACEOF
41459 cat confdefs.h >>conftest.$ac_ext
41460 cat >>conftest.$ac_ext <<_ACEOF
41461 /* end confdefs.h. */
41462 $ac_includes_default
41463 long longval () { return (long) (sizeof (long long)); }
41464 unsigned long ulongval () { return (long) (sizeof (long long)); }
41466 #include <stdlib.h>
41471 FILE *f = fopen ("conftest.val", "w");
41474 if (((long) (sizeof (long long))) < 0)
41476 long i = longval ();
41477 if (i != ((long) (sizeof (long long))))
41479 fprintf (f, "%ld\n", i);
41483 unsigned long i = ulongval ();
41484 if (i != ((long) (sizeof (long long))))
41486 fprintf (f, "%lu\n", i);
41488 exit (ferror (f) || fclose (f) != 0);
41494 rm -f conftest$ac_exeext
41495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41496 (eval $ac_link) 2>&5
41498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41501 (eval $ac_try) 2>&5
41503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504 (exit $ac_status); }; }; then
41505 ac_cv_sizeof_long_long=`cat conftest.val`
41507 echo "$as_me: program exited with status $ac_status" >&5
41508 echo "$as_me: failed program was:" >&5
41509 sed 's/^/| /' conftest.$ac_ext >&5
41511 ( exit $ac_status )
41512 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
41513 See \`config.log' for more details." >&5
41514 echo "$as_me: error: cannot compute sizeof (long long), 77
41515 See \`config.log' for more details." >&2;}
41516 { (exit 1); exit 1; }; }
41518 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41523 ac_cv_sizeof_long_long=0
41526 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
41527 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
41528 cat >>confdefs.h <<_ACEOF
41529 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
41533 echo "$as_me:$LINENO: checking for wchar_t" >&5
41534 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41535 if test "${ac_cv_type_wchar_t+set}" = set; then
41536 echo $ECHO_N "(cached) $ECHO_C" >&6
41538 cat >conftest.$ac_ext <<_ACEOF
41541 cat confdefs.h >>conftest.$ac_ext
41542 cat >>conftest.$ac_ext <<_ACEOF
41543 /* end confdefs.h. */
41544 $ac_includes_default
41550 if (sizeof (wchar_t))
41556 rm -f conftest.$ac_objext
41557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41558 (eval $ac_compile) 2>conftest.er1
41560 grep -v '^ *+' conftest.er1 >conftest.err
41562 cat conftest.err >&5
41563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41564 (exit $ac_status); } &&
41565 { ac_try='test -z "$ac_c_werror_flag"
41566 || test ! -s conftest.err'
41567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41568 (eval $ac_try) 2>&5
41570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41571 (exit $ac_status); }; } &&
41572 { ac_try='test -s conftest.$ac_objext'
41573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41574 (eval $ac_try) 2>&5
41576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41577 (exit $ac_status); }; }; then
41578 ac_cv_type_wchar_t=yes
41580 echo "$as_me: failed program was:" >&5
41581 sed 's/^/| /' conftest.$ac_ext >&5
41583 ac_cv_type_wchar_t=no
41585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41587 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41588 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41590 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41591 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41592 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41593 echo $ECHO_N "(cached) $ECHO_C" >&6
41595 if test "$ac_cv_type_wchar_t" = yes; then
41596 # The cast to unsigned long works around a bug in the HP C Compiler
41597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41599 # This bug is HP SR number 8606223364.
41600 if test "$cross_compiling" = yes; then
41601 # Depending upon the size, compute the lo and hi bounds.
41602 cat >conftest.$ac_ext <<_ACEOF
41605 cat confdefs.h >>conftest.$ac_ext
41606 cat >>conftest.$ac_ext <<_ACEOF
41607 /* end confdefs.h. */
41608 $ac_includes_default
41612 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41619 rm -f conftest.$ac_objext
41620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41621 (eval $ac_compile) 2>conftest.er1
41623 grep -v '^ *+' conftest.er1 >conftest.err
41625 cat conftest.err >&5
41626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41627 (exit $ac_status); } &&
41628 { ac_try='test -z "$ac_c_werror_flag"
41629 || test ! -s conftest.err'
41630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41631 (eval $ac_try) 2>&5
41633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41634 (exit $ac_status); }; } &&
41635 { ac_try='test -s conftest.$ac_objext'
41636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41637 (eval $ac_try) 2>&5
41639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41640 (exit $ac_status); }; }; then
41643 cat >conftest.$ac_ext <<_ACEOF
41646 cat confdefs.h >>conftest.$ac_ext
41647 cat >>conftest.$ac_ext <<_ACEOF
41648 /* end confdefs.h. */
41649 $ac_includes_default
41653 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41660 rm -f conftest.$ac_objext
41661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41662 (eval $ac_compile) 2>conftest.er1
41664 grep -v '^ *+' conftest.er1 >conftest.err
41666 cat conftest.err >&5
41667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41668 (exit $ac_status); } &&
41669 { ac_try='test -z "$ac_c_werror_flag"
41670 || test ! -s conftest.err'
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); }; } &&
41676 { ac_try='test -s conftest.$ac_objext'
41677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41678 (eval $ac_try) 2>&5
41680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41681 (exit $ac_status); }; }; then
41682 ac_hi=$ac_mid; break
41684 echo "$as_me: failed program was:" >&5
41685 sed 's/^/| /' conftest.$ac_ext >&5
41687 ac_lo=`expr $ac_mid + 1`
41688 if test $ac_lo -le $ac_mid; then
41692 ac_mid=`expr 2 '*' $ac_mid + 1`
41694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41697 echo "$as_me: failed program was:" >&5
41698 sed 's/^/| /' conftest.$ac_ext >&5
41700 cat >conftest.$ac_ext <<_ACEOF
41703 cat confdefs.h >>conftest.$ac_ext
41704 cat >>conftest.$ac_ext <<_ACEOF
41705 /* end confdefs.h. */
41706 $ac_includes_default
41710 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41717 rm -f conftest.$ac_objext
41718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41719 (eval $ac_compile) 2>conftest.er1
41721 grep -v '^ *+' conftest.er1 >conftest.err
41723 cat conftest.err >&5
41724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41725 (exit $ac_status); } &&
41726 { ac_try='test -z "$ac_c_werror_flag"
41727 || test ! -s conftest.err'
41728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41729 (eval $ac_try) 2>&5
41731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41732 (exit $ac_status); }; } &&
41733 { ac_try='test -s conftest.$ac_objext'
41734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41735 (eval $ac_try) 2>&5
41737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41738 (exit $ac_status); }; }; then
41741 cat >conftest.$ac_ext <<_ACEOF
41744 cat confdefs.h >>conftest.$ac_ext
41745 cat >>conftest.$ac_ext <<_ACEOF
41746 /* end confdefs.h. */
41747 $ac_includes_default
41751 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41758 rm -f conftest.$ac_objext
41759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41760 (eval $ac_compile) 2>conftest.er1
41762 grep -v '^ *+' conftest.er1 >conftest.err
41764 cat conftest.err >&5
41765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41766 (exit $ac_status); } &&
41767 { ac_try='test -z "$ac_c_werror_flag"
41768 || test ! -s conftest.err'
41769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41770 (eval $ac_try) 2>&5
41772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41773 (exit $ac_status); }; } &&
41774 { ac_try='test -s conftest.$ac_objext'
41775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41776 (eval $ac_try) 2>&5
41778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41779 (exit $ac_status); }; }; then
41780 ac_lo=$ac_mid; break
41782 echo "$as_me: failed program was:" >&5
41783 sed 's/^/| /' conftest.$ac_ext >&5
41785 ac_hi=`expr '(' $ac_mid ')' - 1`
41786 if test $ac_mid -le $ac_hi; then
41790 ac_mid=`expr 2 '*' $ac_mid`
41792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41795 echo "$as_me: failed program was:" >&5
41796 sed 's/^/| /' conftest.$ac_ext >&5
41800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41803 # Binary search between lo and hi bounds.
41804 while test "x$ac_lo" != "x$ac_hi"; do
41805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41806 cat >conftest.$ac_ext <<_ACEOF
41809 cat confdefs.h >>conftest.$ac_ext
41810 cat >>conftest.$ac_ext <<_ACEOF
41811 /* end confdefs.h. */
41812 $ac_includes_default
41816 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41823 rm -f conftest.$ac_objext
41824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41825 (eval $ac_compile) 2>conftest.er1
41827 grep -v '^ *+' conftest.er1 >conftest.err
41829 cat conftest.err >&5
41830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41831 (exit $ac_status); } &&
41832 { ac_try='test -z "$ac_c_werror_flag"
41833 || test ! -s conftest.err'
41834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41835 (eval $ac_try) 2>&5
41837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41838 (exit $ac_status); }; } &&
41839 { ac_try='test -s conftest.$ac_objext'
41840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41841 (eval $ac_try) 2>&5
41843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41844 (exit $ac_status); }; }; then
41847 echo "$as_me: failed program was:" >&5
41848 sed 's/^/| /' conftest.$ac_ext >&5
41850 ac_lo=`expr '(' $ac_mid ')' + 1`
41852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41855 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
41856 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
41857 See \`config.log' for more details." >&5
41858 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
41859 See \`config.log' for more details." >&2;}
41860 { (exit 1); exit 1; }; } ;;
41863 if test "$cross_compiling" = yes; then
41864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41865 See \`config.log' for more details." >&5
41866 echo "$as_me: error: cannot run test program while cross compiling
41867 See \`config.log' for more details." >&2;}
41868 { (exit 1); exit 1; }; }
41870 cat >conftest.$ac_ext <<_ACEOF
41873 cat confdefs.h >>conftest.$ac_ext
41874 cat >>conftest.$ac_ext <<_ACEOF
41875 /* end confdefs.h. */
41876 $ac_includes_default
41877 long longval () { return (long) (sizeof (wchar_t)); }
41878 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
41880 #include <stdlib.h>
41885 FILE *f = fopen ("conftest.val", "w");
41888 if (((long) (sizeof (wchar_t))) < 0)
41890 long i = longval ();
41891 if (i != ((long) (sizeof (wchar_t))))
41893 fprintf (f, "%ld\n", i);
41897 unsigned long i = ulongval ();
41898 if (i != ((long) (sizeof (wchar_t))))
41900 fprintf (f, "%lu\n", i);
41902 exit (ferror (f) || fclose (f) != 0);
41908 rm -f conftest$ac_exeext
41909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41910 (eval $ac_link) 2>&5
41912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41915 (eval $ac_try) 2>&5
41917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41918 (exit $ac_status); }; }; then
41919 ac_cv_sizeof_wchar_t=`cat conftest.val`
41921 echo "$as_me: program exited with status $ac_status" >&5
41922 echo "$as_me: failed program was:" >&5
41923 sed 's/^/| /' conftest.$ac_ext >&5
41925 ( exit $ac_status )
41926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
41927 See \`config.log' for more details." >&5
41928 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
41929 See \`config.log' for more details." >&2;}
41930 { (exit 1); exit 1; }; }
41932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41937 ac_cv_sizeof_wchar_t=0
41940 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
41941 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
41942 cat >>confdefs.h <<_ACEOF
41943 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
41948 if test "$ac_cv_sizeof_int" -lt 4 ; then
41949 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
41950 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
41953 cat >>confdefs.h <<\_ACEOF
41954 #define LBER_INT_T long
41959 cat >>confdefs.h <<\_ACEOF
41960 #define LBER_INT_T int
41966 cat >>confdefs.h <<\_ACEOF
41967 #define LBER_LEN_T long
41971 cat >>confdefs.h <<\_ACEOF
41972 #define LBER_SOCKET_T int
41976 cat >>confdefs.h <<\_ACEOF
41977 #define LBER_TAG_T long
41981 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
41982 if test $ac_cv_sizeof_long_long -gt 4 ; then
41983 ol_with_mp=longlong
41985 cat >>confdefs.h <<\_ACEOF
41986 #define USE_MP_LONG_LONG 1
41989 elif test $ol_with_mp = longlong ; then
41990 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
41991 echo "$as_me: error: long long unusable for multiple precision" >&2;}
41992 { (exit 1); exit 1; }; }
41995 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
41996 if test $ac_cv_sizeof_long -gt 4 ; then
41999 cat >>confdefs.h <<\_ACEOF
42000 #define USE_MP_LONG 1
42003 elif test $ol_with_mp = long ; then
42004 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
42005 echo "$as_me: error: long unusable for multiple precision" >&2;}
42006 { (exit 1); exit 1; }; }
42009 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
42011 for ac_header in openssl/bn.h
42013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42015 echo "$as_me:$LINENO: checking for $ac_header" >&5
42016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42018 echo $ECHO_N "(cached) $ECHO_C" >&6
42020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42023 # Is the header compilable?
42024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42026 cat >conftest.$ac_ext <<_ACEOF
42029 cat confdefs.h >>conftest.$ac_ext
42030 cat >>conftest.$ac_ext <<_ACEOF
42031 /* end confdefs.h. */
42032 $ac_includes_default
42033 #include <$ac_header>
42035 rm -f conftest.$ac_objext
42036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42037 (eval $ac_compile) 2>conftest.er1
42039 grep -v '^ *+' conftest.er1 >conftest.err
42041 cat conftest.err >&5
42042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42043 (exit $ac_status); } &&
42044 { ac_try='test -z "$ac_c_werror_flag"
42045 || test ! -s conftest.err'
42046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42047 (eval $ac_try) 2>&5
42049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42050 (exit $ac_status); }; } &&
42051 { ac_try='test -s conftest.$ac_objext'
42052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42053 (eval $ac_try) 2>&5
42055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42056 (exit $ac_status); }; }; then
42057 ac_header_compiler=yes
42059 echo "$as_me: failed program was:" >&5
42060 sed 's/^/| /' conftest.$ac_ext >&5
42062 ac_header_compiler=no
42064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42066 echo "${ECHO_T}$ac_header_compiler" >&6
42068 # Is the header present?
42069 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42071 cat >conftest.$ac_ext <<_ACEOF
42074 cat confdefs.h >>conftest.$ac_ext
42075 cat >>conftest.$ac_ext <<_ACEOF
42076 /* end confdefs.h. */
42077 #include <$ac_header>
42079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42082 grep -v '^ *+' conftest.er1 >conftest.err
42084 cat conftest.err >&5
42085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42086 (exit $ac_status); } >/dev/null; then
42087 if test -s conftest.err; then
42088 ac_cpp_err=$ac_c_preproc_warn_flag
42089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42096 if test -z "$ac_cpp_err"; then
42097 ac_header_preproc=yes
42099 echo "$as_me: failed program was:" >&5
42100 sed 's/^/| /' conftest.$ac_ext >&5
42102 ac_header_preproc=no
42104 rm -f conftest.err conftest.$ac_ext
42105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42106 echo "${ECHO_T}$ac_header_preproc" >&6
42108 # So? What about this header?
42109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42115 ac_header_preproc=yes
42118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42121 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42125 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42132 ## --------------------------------------------- ##
42133 ## Report this to <http://www.openldap.org/its/> ##
42134 ## --------------------------------------------- ##
42137 sed "s/^/$as_me: WARNING: /" >&2
42140 echo "$as_me:$LINENO: checking for $ac_header" >&5
42141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42143 echo $ECHO_N "(cached) $ECHO_C" >&6
42145 eval "$as_ac_Header=\$ac_header_preproc"
42147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42152 cat >>confdefs.h <<_ACEOF
42153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42161 for ac_header in openssl/crypto.h
42163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42165 echo "$as_me:$LINENO: checking for $ac_header" >&5
42166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42168 echo $ECHO_N "(cached) $ECHO_C" >&6
42170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42173 # Is the header compilable?
42174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42176 cat >conftest.$ac_ext <<_ACEOF
42179 cat confdefs.h >>conftest.$ac_ext
42180 cat >>conftest.$ac_ext <<_ACEOF
42181 /* end confdefs.h. */
42182 $ac_includes_default
42183 #include <$ac_header>
42185 rm -f conftest.$ac_objext
42186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42187 (eval $ac_compile) 2>conftest.er1
42189 grep -v '^ *+' conftest.er1 >conftest.err
42191 cat conftest.err >&5
42192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42193 (exit $ac_status); } &&
42194 { ac_try='test -z "$ac_c_werror_flag"
42195 || test ! -s conftest.err'
42196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42197 (eval $ac_try) 2>&5
42199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42200 (exit $ac_status); }; } &&
42201 { ac_try='test -s conftest.$ac_objext'
42202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42203 (eval $ac_try) 2>&5
42205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42206 (exit $ac_status); }; }; then
42207 ac_header_compiler=yes
42209 echo "$as_me: failed program was:" >&5
42210 sed 's/^/| /' conftest.$ac_ext >&5
42212 ac_header_compiler=no
42214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42216 echo "${ECHO_T}$ac_header_compiler" >&6
42218 # Is the header present?
42219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42221 cat >conftest.$ac_ext <<_ACEOF
42224 cat confdefs.h >>conftest.$ac_ext
42225 cat >>conftest.$ac_ext <<_ACEOF
42226 /* end confdefs.h. */
42227 #include <$ac_header>
42229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42232 grep -v '^ *+' conftest.er1 >conftest.err
42234 cat conftest.err >&5
42235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42236 (exit $ac_status); } >/dev/null; then
42237 if test -s conftest.err; then
42238 ac_cpp_err=$ac_c_preproc_warn_flag
42239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42246 if test -z "$ac_cpp_err"; then
42247 ac_header_preproc=yes
42249 echo "$as_me: failed program was:" >&5
42250 sed 's/^/| /' conftest.$ac_ext >&5
42252 ac_header_preproc=no
42254 rm -f conftest.err conftest.$ac_ext
42255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42256 echo "${ECHO_T}$ac_header_preproc" >&6
42258 # So? What about this header?
42259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42265 ac_header_preproc=yes
42268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42275 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42282 ## --------------------------------------------- ##
42283 ## Report this to <http://www.openldap.org/its/> ##
42284 ## --------------------------------------------- ##
42287 sed "s/^/$as_me: WARNING: /" >&2
42290 echo "$as_me:$LINENO: checking for $ac_header" >&5
42291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42293 echo $ECHO_N "(cached) $ECHO_C" >&6
42295 eval "$as_ac_Header=\$ac_header_preproc"
42297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42302 cat >>confdefs.h <<_ACEOF
42303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42310 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
42311 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
42312 test "$ol_with_tls" = "found" ; then
42315 cat >>confdefs.h <<\_ACEOF
42316 #define USE_MP_BIGNUM 1
42319 elif test $ol_with_mp = bignum ; then
42320 { { echo "$as_me:$LINENO: error: bignum not available" >&5
42321 echo "$as_me: error: bignum not available" >&2;}
42322 { (exit 1); exit 1; }; }
42325 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
42327 for ac_header in gmp.h
42329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42331 echo "$as_me:$LINENO: checking for $ac_header" >&5
42332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42334 echo $ECHO_N "(cached) $ECHO_C" >&6
42336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42339 # Is the header compilable?
42340 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42342 cat >conftest.$ac_ext <<_ACEOF
42345 cat confdefs.h >>conftest.$ac_ext
42346 cat >>conftest.$ac_ext <<_ACEOF
42347 /* end confdefs.h. */
42348 $ac_includes_default
42349 #include <$ac_header>
42351 rm -f conftest.$ac_objext
42352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42353 (eval $ac_compile) 2>conftest.er1
42355 grep -v '^ *+' conftest.er1 >conftest.err
42357 cat conftest.err >&5
42358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42359 (exit $ac_status); } &&
42360 { ac_try='test -z "$ac_c_werror_flag"
42361 || test ! -s conftest.err'
42362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42363 (eval $ac_try) 2>&5
42365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42366 (exit $ac_status); }; } &&
42367 { ac_try='test -s conftest.$ac_objext'
42368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42369 (eval $ac_try) 2>&5
42371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42372 (exit $ac_status); }; }; then
42373 ac_header_compiler=yes
42375 echo "$as_me: failed program was:" >&5
42376 sed 's/^/| /' conftest.$ac_ext >&5
42378 ac_header_compiler=no
42380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42381 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42382 echo "${ECHO_T}$ac_header_compiler" >&6
42384 # Is the header present?
42385 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42387 cat >conftest.$ac_ext <<_ACEOF
42390 cat confdefs.h >>conftest.$ac_ext
42391 cat >>conftest.$ac_ext <<_ACEOF
42392 /* end confdefs.h. */
42393 #include <$ac_header>
42395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42398 grep -v '^ *+' conftest.er1 >conftest.err
42400 cat conftest.err >&5
42401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42402 (exit $ac_status); } >/dev/null; then
42403 if test -s conftest.err; then
42404 ac_cpp_err=$ac_c_preproc_warn_flag
42405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42412 if test -z "$ac_cpp_err"; then
42413 ac_header_preproc=yes
42415 echo "$as_me: failed program was:" >&5
42416 sed 's/^/| /' conftest.$ac_ext >&5
42418 ac_header_preproc=no
42420 rm -f conftest.err conftest.$ac_ext
42421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42422 echo "${ECHO_T}$ac_header_preproc" >&6
42424 # So? What about this header?
42425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42431 ac_header_preproc=yes
42434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42441 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42448 ## --------------------------------------------- ##
42449 ## Report this to <http://www.openldap.org/its/> ##
42450 ## --------------------------------------------- ##
42453 sed "s/^/$as_me: WARNING: /" >&2
42456 echo "$as_me:$LINENO: checking for $ac_header" >&5
42457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42459 echo $ECHO_N "(cached) $ECHO_C" >&6
42461 eval "$as_ac_Header=\$ac_header_preproc"
42463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42468 cat >>confdefs.h <<_ACEOF
42469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42477 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
42478 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
42479 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
42480 echo $ECHO_N "(cached) $ECHO_C" >&6
42482 ac_check_lib_save_LIBS=$LIBS
42484 cat >conftest.$ac_ext <<_ACEOF
42487 cat confdefs.h >>conftest.$ac_ext
42488 cat >>conftest.$ac_ext <<_ACEOF
42489 /* end confdefs.h. */
42491 /* Override any gcc2 internal prototype to avoid an error. */
42495 /* We use char because int might match the return type of a gcc2
42496 builtin and then its argument prototype would still apply. */
42497 char __gmpz_add_ui ();
42506 rm -f conftest.$ac_objext conftest$ac_exeext
42507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42508 (eval $ac_link) 2>conftest.er1
42510 grep -v '^ *+' conftest.er1 >conftest.err
42512 cat conftest.err >&5
42513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42514 (exit $ac_status); } &&
42515 { ac_try='test -z "$ac_c_werror_flag"
42516 || test ! -s conftest.err'
42517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42518 (eval $ac_try) 2>&5
42520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521 (exit $ac_status); }; } &&
42522 { ac_try='test -s conftest$ac_exeext'
42523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42524 (eval $ac_try) 2>&5
42526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42527 (exit $ac_status); }; }; then
42528 ac_cv_lib_gmp___gmpz_add_ui=yes
42530 echo "$as_me: failed program was:" >&5
42531 sed 's/^/| /' conftest.$ac_ext >&5
42533 ac_cv_lib_gmp___gmpz_add_ui=no
42535 rm -f conftest.err conftest.$ac_objext \
42536 conftest$ac_exeext conftest.$ac_ext
42537 LIBS=$ac_check_lib_save_LIBS
42539 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
42540 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
42541 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
42542 cat >>confdefs.h <<_ACEOF
42543 #define HAVE_LIBGMP 1
42550 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
42552 cat >>confdefs.h <<\_ACEOF
42553 #define USE_MP_GMP 1
42557 elif test $ol_with_mp = gmp ; then
42558 { { echo "$as_me:$LINENO: error: gmp not available" >&5
42559 echo "$as_me: error: gmp not available" >&2;}
42560 { (exit 1); exit 1; }; }
42563 if test $ol_with_mp = auto ; then
42567 echo "$as_me:$LINENO: checking for working memcmp" >&5
42568 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42569 if test "${ac_cv_func_memcmp_working+set}" = set; then
42570 echo $ECHO_N "(cached) $ECHO_C" >&6
42572 if test "$cross_compiling" = yes; then
42573 ac_cv_func_memcmp_working=no
42575 cat >conftest.$ac_ext <<_ACEOF
42578 cat confdefs.h >>conftest.$ac_ext
42579 cat >>conftest.$ac_ext <<_ACEOF
42580 /* end confdefs.h. */
42581 $ac_includes_default
42586 /* Some versions of memcmp are not 8-bit clean. */
42587 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42588 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42591 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42592 or more and with at least one buffer not starting on a 4-byte boundary.
42593 William Lewis provided this test program. */
42598 for (i = 0; i < 4; i++)
42602 strcpy (a, "--------01111111");
42603 strcpy (b, "--------10000000");
42604 if (memcmp (a, b, 16) >= 0)
42614 rm -f conftest$ac_exeext
42615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42616 (eval $ac_link) 2>&5
42618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42621 (eval $ac_try) 2>&5
42623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42624 (exit $ac_status); }; }; then
42625 ac_cv_func_memcmp_working=yes
42627 echo "$as_me: program exited with status $ac_status" >&5
42628 echo "$as_me: failed program was:" >&5
42629 sed 's/^/| /' conftest.$ac_ext >&5
42631 ( exit $ac_status )
42632 ac_cv_func_memcmp_working=no
42634 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42637 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42638 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42639 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42640 "memcmp.$ac_objext" | \
42641 *" memcmp.$ac_objext" | \
42642 "memcmp.$ac_objext "* | \
42643 *" memcmp.$ac_objext "* ) ;;
42644 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42649 if test $ac_cv_func_memcmp_working = no ; then
42651 cat >>confdefs.h <<\_ACEOF
42652 #define NEED_MEMCMP_REPLACEMENT 1
42658 for ac_func in strftime
42660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42661 echo "$as_me:$LINENO: checking for $ac_func" >&5
42662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42663 if eval "test \"\${$as_ac_var+set}\" = set"; then
42664 echo $ECHO_N "(cached) $ECHO_C" >&6
42666 cat >conftest.$ac_ext <<_ACEOF
42669 cat confdefs.h >>conftest.$ac_ext
42670 cat >>conftest.$ac_ext <<_ACEOF
42671 /* end confdefs.h. */
42672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42674 #define $ac_func innocuous_$ac_func
42676 /* System header to define __stub macros and hopefully few prototypes,
42677 which can conflict with char $ac_func (); below.
42678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42679 <limits.h> exists even on freestanding compilers. */
42682 # include <limits.h>
42684 # include <assert.h>
42689 /* Override any gcc2 internal prototype to avoid an error. */
42694 /* We use char because int might match the return type of a gcc2
42695 builtin and then its argument prototype would still apply. */
42697 /* The GNU C library defines this for functions which it implements
42698 to always fail with ENOSYS. Some functions are actually named
42699 something starting with __ and the normal name is an alias. */
42700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42703 char (*f) () = $ac_func;
42712 return f != $ac_func;
42717 rm -f conftest.$ac_objext conftest$ac_exeext
42718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42719 (eval $ac_link) 2>conftest.er1
42721 grep -v '^ *+' conftest.er1 >conftest.err
42723 cat conftest.err >&5
42724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42725 (exit $ac_status); } &&
42726 { ac_try='test -z "$ac_c_werror_flag"
42727 || test ! -s conftest.err'
42728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42729 (eval $ac_try) 2>&5
42731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42732 (exit $ac_status); }; } &&
42733 { ac_try='test -s conftest$ac_exeext'
42734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42735 (eval $ac_try) 2>&5
42737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42738 (exit $ac_status); }; }; then
42739 eval "$as_ac_var=yes"
42741 echo "$as_me: failed program was:" >&5
42742 sed 's/^/| /' conftest.$ac_ext >&5
42744 eval "$as_ac_var=no"
42746 rm -f conftest.err conftest.$ac_objext \
42747 conftest$ac_exeext conftest.$ac_ext
42749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42751 if test `eval echo '${'$as_ac_var'}'` = yes; then
42752 cat >>confdefs.h <<_ACEOF
42753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42757 # strftime is in -lintl on SCO UNIX.
42758 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42759 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42760 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42761 echo $ECHO_N "(cached) $ECHO_C" >&6
42763 ac_check_lib_save_LIBS=$LIBS
42764 LIBS="-lintl $LIBS"
42765 cat >conftest.$ac_ext <<_ACEOF
42768 cat confdefs.h >>conftest.$ac_ext
42769 cat >>conftest.$ac_ext <<_ACEOF
42770 /* end confdefs.h. */
42772 /* Override any gcc2 internal prototype to avoid an error. */
42776 /* We use char because int might match the return type of a gcc2
42777 builtin and then its argument prototype would still apply. */
42787 rm -f conftest.$ac_objext conftest$ac_exeext
42788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42789 (eval $ac_link) 2>conftest.er1
42791 grep -v '^ *+' conftest.er1 >conftest.err
42793 cat conftest.err >&5
42794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42795 (exit $ac_status); } &&
42796 { ac_try='test -z "$ac_c_werror_flag"
42797 || test ! -s conftest.err'
42798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42799 (eval $ac_try) 2>&5
42801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42802 (exit $ac_status); }; } &&
42803 { ac_try='test -s conftest$ac_exeext'
42804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42805 (eval $ac_try) 2>&5
42807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42808 (exit $ac_status); }; }; then
42809 ac_cv_lib_intl_strftime=yes
42811 echo "$as_me: failed program was:" >&5
42812 sed 's/^/| /' conftest.$ac_ext >&5
42814 ac_cv_lib_intl_strftime=no
42816 rm -f conftest.err conftest.$ac_objext \
42817 conftest$ac_exeext conftest.$ac_ext
42818 LIBS=$ac_check_lib_save_LIBS
42820 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42821 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42822 if test $ac_cv_lib_intl_strftime = yes; then
42823 cat >>confdefs.h <<\_ACEOF
42824 #define HAVE_STRFTIME 1
42827 LIBS="-lintl $LIBS"
42834 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42835 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42836 if test "${ol_cv_func_inet_aton+set}" = set; then
42837 echo $ECHO_N "(cached) $ECHO_C" >&6
42839 cat >conftest.$ac_ext <<_ACEOF
42842 cat confdefs.h >>conftest.$ac_ext
42843 cat >>conftest.$ac_ext <<_ACEOF
42844 /* end confdefs.h. */
42846 #ifdef HAVE_SYS_TYPES_H
42847 # include <sys/types.h>
42849 #ifdef HAVE_SYS_SOCKET_H
42850 # include <sys/socket.h>
42851 # ifdef HAVE_SYS_SELECT_H
42852 # include <sys/select.h>
42854 # include <netinet/in.h>
42855 # ifdef HAVE_ARPA_INET_H
42856 # include <arpa/inet.h>
42864 int rc = inet_aton( "255.255.255.255", &in );
42869 rm -f conftest.$ac_objext conftest$ac_exeext
42870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42871 (eval $ac_link) 2>conftest.er1
42873 grep -v '^ *+' conftest.er1 >conftest.err
42875 cat conftest.err >&5
42876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42877 (exit $ac_status); } &&
42878 { ac_try='test -z "$ac_c_werror_flag"
42879 || test ! -s conftest.err'
42880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42881 (eval $ac_try) 2>&5
42883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42884 (exit $ac_status); }; } &&
42885 { ac_try='test -s conftest$ac_exeext'
42886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42887 (eval $ac_try) 2>&5
42889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42890 (exit $ac_status); }; }; then
42891 ol_cv_func_inet_aton=yes
42893 echo "$as_me: failed program was:" >&5
42894 sed 's/^/| /' conftest.$ac_ext >&5
42896 ol_cv_func_inet_aton=no
42898 rm -f conftest.err conftest.$ac_objext \
42899 conftest$ac_exeext conftest.$ac_ext
42901 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42902 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42903 if test $ol_cv_func_inet_aton != no; then
42905 cat >>confdefs.h <<\_ACEOF
42906 #define HAVE_INET_ATON 1
42912 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42913 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42914 if test "${ac_cv_func__spawnlp+set}" = set; then
42915 echo $ECHO_N "(cached) $ECHO_C" >&6
42917 cat >conftest.$ac_ext <<_ACEOF
42920 cat confdefs.h >>conftest.$ac_ext
42921 cat >>conftest.$ac_ext <<_ACEOF
42922 /* end confdefs.h. */
42923 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42925 #define _spawnlp innocuous__spawnlp
42927 /* System header to define __stub macros and hopefully few prototypes,
42928 which can conflict with char _spawnlp (); below.
42929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42930 <limits.h> exists even on freestanding compilers. */
42933 # include <limits.h>
42935 # include <assert.h>
42940 /* Override any gcc2 internal prototype to avoid an error. */
42945 /* We use char because int might match the return type of a gcc2
42946 builtin and then its argument prototype would still apply. */
42948 /* The GNU C library defines this for functions which it implements
42949 to always fail with ENOSYS. Some functions are actually named
42950 something starting with __ and the normal name is an alias. */
42951 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42954 char (*f) () = _spawnlp;
42963 return f != _spawnlp;
42968 rm -f conftest.$ac_objext conftest$ac_exeext
42969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42970 (eval $ac_link) 2>conftest.er1
42972 grep -v '^ *+' conftest.er1 >conftest.err
42974 cat conftest.err >&5
42975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42976 (exit $ac_status); } &&
42977 { ac_try='test -z "$ac_c_werror_flag"
42978 || test ! -s conftest.err'
42979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42980 (eval $ac_try) 2>&5
42982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42983 (exit $ac_status); }; } &&
42984 { ac_try='test -s conftest$ac_exeext'
42985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42986 (eval $ac_try) 2>&5
42988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42989 (exit $ac_status); }; }; then
42990 ac_cv_func__spawnlp=yes
42992 echo "$as_me: failed program was:" >&5
42993 sed 's/^/| /' conftest.$ac_ext >&5
42995 ac_cv_func__spawnlp=no
42997 rm -f conftest.err conftest.$ac_objext \
42998 conftest$ac_exeext conftest.$ac_ext
43000 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
43001 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
43002 if test $ac_cv_func__spawnlp = yes; then
43004 cat >>confdefs.h <<\_ACEOF
43005 #define HAVE_SPAWNLP 1
43011 echo "$as_me:$LINENO: checking for _snprintf" >&5
43012 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
43013 if test "${ac_cv_func__snprintf+set}" = set; then
43014 echo $ECHO_N "(cached) $ECHO_C" >&6
43016 cat >conftest.$ac_ext <<_ACEOF
43019 cat confdefs.h >>conftest.$ac_ext
43020 cat >>conftest.$ac_ext <<_ACEOF
43021 /* end confdefs.h. */
43022 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
43023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43024 #define _snprintf innocuous__snprintf
43026 /* System header to define __stub macros and hopefully few prototypes,
43027 which can conflict with char _snprintf (); below.
43028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43029 <limits.h> exists even on freestanding compilers. */
43032 # include <limits.h>
43034 # include <assert.h>
43039 /* Override any gcc2 internal prototype to avoid an error. */
43044 /* We use char because int might match the return type of a gcc2
43045 builtin and then its argument prototype would still apply. */
43047 /* The GNU C library defines this for functions which it implements
43048 to always fail with ENOSYS. Some functions are actually named
43049 something starting with __ and the normal name is an alias. */
43050 #if defined (__stub__snprintf) || defined (__stub____snprintf)
43053 char (*f) () = _snprintf;
43062 return f != _snprintf;
43067 rm -f conftest.$ac_objext conftest$ac_exeext
43068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43069 (eval $ac_link) 2>conftest.er1
43071 grep -v '^ *+' conftest.er1 >conftest.err
43073 cat conftest.err >&5
43074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43075 (exit $ac_status); } &&
43076 { ac_try='test -z "$ac_c_werror_flag"
43077 || test ! -s conftest.err'
43078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43079 (eval $ac_try) 2>&5
43081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43082 (exit $ac_status); }; } &&
43083 { ac_try='test -s conftest$ac_exeext'
43084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43085 (eval $ac_try) 2>&5
43087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43088 (exit $ac_status); }; }; then
43089 ac_cv_func__snprintf=yes
43091 echo "$as_me: failed program was:" >&5
43092 sed 's/^/| /' conftest.$ac_ext >&5
43094 ac_cv_func__snprintf=no
43096 rm -f conftest.err conftest.$ac_objext \
43097 conftest$ac_exeext conftest.$ac_ext
43099 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
43100 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
43101 if test $ac_cv_func__snprintf = yes; then
43102 ac_cv_func_snprintf=yes
43104 cat >>confdefs.h <<\_ACEOF
43105 #define snprintf _snprintf
43112 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
43113 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
43114 if test "${ac_cv_func__vsnprintf+set}" = set; then
43115 echo $ECHO_N "(cached) $ECHO_C" >&6
43117 cat >conftest.$ac_ext <<_ACEOF
43120 cat confdefs.h >>conftest.$ac_ext
43121 cat >>conftest.$ac_ext <<_ACEOF
43122 /* end confdefs.h. */
43123 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
43124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43125 #define _vsnprintf innocuous__vsnprintf
43127 /* System header to define __stub macros and hopefully few prototypes,
43128 which can conflict with char _vsnprintf (); below.
43129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43130 <limits.h> exists even on freestanding compilers. */
43133 # include <limits.h>
43135 # include <assert.h>
43140 /* Override any gcc2 internal prototype to avoid an error. */
43145 /* We use char because int might match the return type of a gcc2
43146 builtin and then its argument prototype would still apply. */
43147 char _vsnprintf ();
43148 /* The GNU C library defines this for functions which it implements
43149 to always fail with ENOSYS. Some functions are actually named
43150 something starting with __ and the normal name is an alias. */
43151 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
43154 char (*f) () = _vsnprintf;
43163 return f != _vsnprintf;
43168 rm -f conftest.$ac_objext conftest$ac_exeext
43169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43170 (eval $ac_link) 2>conftest.er1
43172 grep -v '^ *+' conftest.er1 >conftest.err
43174 cat conftest.err >&5
43175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43176 (exit $ac_status); } &&
43177 { ac_try='test -z "$ac_c_werror_flag"
43178 || test ! -s conftest.err'
43179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43180 (eval $ac_try) 2>&5
43182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43183 (exit $ac_status); }; } &&
43184 { ac_try='test -s conftest$ac_exeext'
43185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43186 (eval $ac_try) 2>&5
43188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43189 (exit $ac_status); }; }; then
43190 ac_cv_func__vsnprintf=yes
43192 echo "$as_me: failed program was:" >&5
43193 sed 's/^/| /' conftest.$ac_ext >&5
43195 ac_cv_func__vsnprintf=no
43197 rm -f conftest.err conftest.$ac_objext \
43198 conftest$ac_exeext conftest.$ac_ext
43200 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
43201 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
43202 if test $ac_cv_func__vsnprintf = yes; then
43203 ac_cv_func_vsnprintf=yes
43205 cat >>confdefs.h <<\_ACEOF
43206 #define vsnprintf _vsnprintf
43214 for ac_func in vprintf
43216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43217 echo "$as_me:$LINENO: checking for $ac_func" >&5
43218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43219 if eval "test \"\${$as_ac_var+set}\" = set"; then
43220 echo $ECHO_N "(cached) $ECHO_C" >&6
43222 cat >conftest.$ac_ext <<_ACEOF
43225 cat confdefs.h >>conftest.$ac_ext
43226 cat >>conftest.$ac_ext <<_ACEOF
43227 /* end confdefs.h. */
43228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43230 #define $ac_func innocuous_$ac_func
43232 /* System header to define __stub macros and hopefully few prototypes,
43233 which can conflict with char $ac_func (); below.
43234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43235 <limits.h> exists even on freestanding compilers. */
43238 # include <limits.h>
43240 # include <assert.h>
43245 /* Override any gcc2 internal prototype to avoid an error. */
43250 /* We use char because int might match the return type of a gcc2
43251 builtin and then its argument prototype would still apply. */
43253 /* The GNU C library defines this for functions which it implements
43254 to always fail with ENOSYS. Some functions are actually named
43255 something starting with __ and the normal name is an alias. */
43256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43259 char (*f) () = $ac_func;
43268 return f != $ac_func;
43273 rm -f conftest.$ac_objext conftest$ac_exeext
43274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43275 (eval $ac_link) 2>conftest.er1
43277 grep -v '^ *+' conftest.er1 >conftest.err
43279 cat conftest.err >&5
43280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43281 (exit $ac_status); } &&
43282 { ac_try='test -z "$ac_c_werror_flag"
43283 || test ! -s conftest.err'
43284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43285 (eval $ac_try) 2>&5
43287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43288 (exit $ac_status); }; } &&
43289 { ac_try='test -s conftest$ac_exeext'
43290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43291 (eval $ac_try) 2>&5
43293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43294 (exit $ac_status); }; }; then
43295 eval "$as_ac_var=yes"
43297 echo "$as_me: failed program was:" >&5
43298 sed 's/^/| /' conftest.$ac_ext >&5
43300 eval "$as_ac_var=no"
43302 rm -f conftest.err conftest.$ac_objext \
43303 conftest$ac_exeext conftest.$ac_ext
43305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43307 if test `eval echo '${'$as_ac_var'}'` = yes; then
43308 cat >>confdefs.h <<_ACEOF
43309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43312 echo "$as_me:$LINENO: checking for _doprnt" >&5
43313 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
43314 if test "${ac_cv_func__doprnt+set}" = set; then
43315 echo $ECHO_N "(cached) $ECHO_C" >&6
43317 cat >conftest.$ac_ext <<_ACEOF
43320 cat confdefs.h >>conftest.$ac_ext
43321 cat >>conftest.$ac_ext <<_ACEOF
43322 /* end confdefs.h. */
43323 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
43324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43325 #define _doprnt innocuous__doprnt
43327 /* System header to define __stub macros and hopefully few prototypes,
43328 which can conflict with char _doprnt (); below.
43329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43330 <limits.h> exists even on freestanding compilers. */
43333 # include <limits.h>
43335 # include <assert.h>
43340 /* Override any gcc2 internal prototype to avoid an error. */
43345 /* We use char because int might match the return type of a gcc2
43346 builtin and then its argument prototype would still apply. */
43348 /* The GNU C library defines this for functions which it implements
43349 to always fail with ENOSYS. Some functions are actually named
43350 something starting with __ and the normal name is an alias. */
43351 #if defined (__stub__doprnt) || defined (__stub____doprnt)
43354 char (*f) () = _doprnt;
43363 return f != _doprnt;
43368 rm -f conftest.$ac_objext conftest$ac_exeext
43369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43370 (eval $ac_link) 2>conftest.er1
43372 grep -v '^ *+' conftest.er1 >conftest.err
43374 cat conftest.err >&5
43375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43376 (exit $ac_status); } &&
43377 { ac_try='test -z "$ac_c_werror_flag"
43378 || test ! -s conftest.err'
43379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43380 (eval $ac_try) 2>&5
43382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43383 (exit $ac_status); }; } &&
43384 { ac_try='test -s conftest$ac_exeext'
43385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43386 (eval $ac_try) 2>&5
43388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43389 (exit $ac_status); }; }; then
43390 ac_cv_func__doprnt=yes
43392 echo "$as_me: failed program was:" >&5
43393 sed 's/^/| /' conftest.$ac_ext >&5
43395 ac_cv_func__doprnt=no
43397 rm -f conftest.err conftest.$ac_objext \
43398 conftest$ac_exeext conftest.$ac_ext
43400 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43401 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43402 if test $ac_cv_func__doprnt = yes; then
43404 cat >>confdefs.h <<\_ACEOF
43405 #define HAVE_DOPRNT 1
43415 if test $ac_cv_func_vprintf = yes ; then
43418 for ac_func in snprintf vsnprintf
43420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43421 echo "$as_me:$LINENO: checking for $ac_func" >&5
43422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43423 if eval "test \"\${$as_ac_var+set}\" = set"; then
43424 echo $ECHO_N "(cached) $ECHO_C" >&6
43426 cat >conftest.$ac_ext <<_ACEOF
43429 cat confdefs.h >>conftest.$ac_ext
43430 cat >>conftest.$ac_ext <<_ACEOF
43431 /* end confdefs.h. */
43432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43434 #define $ac_func innocuous_$ac_func
43436 /* System header to define __stub macros and hopefully few prototypes,
43437 which can conflict with char $ac_func (); below.
43438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43439 <limits.h> exists even on freestanding compilers. */
43442 # include <limits.h>
43444 # include <assert.h>
43449 /* Override any gcc2 internal prototype to avoid an error. */
43454 /* We use char because int might match the return type of a gcc2
43455 builtin and then its argument prototype would still apply. */
43457 /* The GNU C library defines this for functions which it implements
43458 to always fail with ENOSYS. Some functions are actually named
43459 something starting with __ and the normal name is an alias. */
43460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43463 char (*f) () = $ac_func;
43472 return f != $ac_func;
43477 rm -f conftest.$ac_objext conftest$ac_exeext
43478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43479 (eval $ac_link) 2>conftest.er1
43481 grep -v '^ *+' conftest.er1 >conftest.err
43483 cat conftest.err >&5
43484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43485 (exit $ac_status); } &&
43486 { ac_try='test -z "$ac_c_werror_flag"
43487 || test ! -s conftest.err'
43488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43489 (eval $ac_try) 2>&5
43491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43492 (exit $ac_status); }; } &&
43493 { ac_try='test -s conftest$ac_exeext'
43494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43495 (eval $ac_try) 2>&5
43497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43498 (exit $ac_status); }; }; then
43499 eval "$as_ac_var=yes"
43501 echo "$as_me: failed program was:" >&5
43502 sed 's/^/| /' conftest.$ac_ext >&5
43504 eval "$as_ac_var=no"
43506 rm -f conftest.err conftest.$ac_objext \
43507 conftest$ac_exeext conftest.$ac_ext
43509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43511 if test `eval echo '${'$as_ac_var'}'` = yes; then
43512 cat >>confdefs.h <<_ACEOF
43513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43633 echo "$as_me:$LINENO: checking for $ac_func" >&5
43634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43635 if eval "test \"\${$as_ac_var+set}\" = set"; then
43636 echo $ECHO_N "(cached) $ECHO_C" >&6
43638 cat >conftest.$ac_ext <<_ACEOF
43641 cat confdefs.h >>conftest.$ac_ext
43642 cat >>conftest.$ac_ext <<_ACEOF
43643 /* end confdefs.h. */
43644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43646 #define $ac_func innocuous_$ac_func
43648 /* System header to define __stub macros and hopefully few prototypes,
43649 which can conflict with char $ac_func (); below.
43650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43651 <limits.h> exists even on freestanding compilers. */
43654 # include <limits.h>
43656 # include <assert.h>
43661 /* Override any gcc2 internal prototype to avoid an error. */
43666 /* We use char because int might match the return type of a gcc2
43667 builtin and then its argument prototype would still apply. */
43669 /* The GNU C library defines this for functions which it implements
43670 to always fail with ENOSYS. Some functions are actually named
43671 something starting with __ and the normal name is an alias. */
43672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43675 char (*f) () = $ac_func;
43684 return f != $ac_func;
43689 rm -f conftest.$ac_objext conftest$ac_exeext
43690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43691 (eval $ac_link) 2>conftest.er1
43693 grep -v '^ *+' conftest.er1 >conftest.err
43695 cat conftest.err >&5
43696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43697 (exit $ac_status); } &&
43698 { ac_try='test -z "$ac_c_werror_flag"
43699 || test ! -s conftest.err'
43700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43701 (eval $ac_try) 2>&5
43703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43704 (exit $ac_status); }; } &&
43705 { ac_try='test -s conftest$ac_exeext'
43706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43707 (eval $ac_try) 2>&5
43709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43710 (exit $ac_status); }; }; then
43711 eval "$as_ac_var=yes"
43713 echo "$as_me: failed program was:" >&5
43714 sed 's/^/| /' conftest.$ac_ext >&5
43716 eval "$as_ac_var=no"
43718 rm -f conftest.err conftest.$ac_objext \
43719 conftest$ac_exeext conftest.$ac_ext
43721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43723 if test `eval echo '${'$as_ac_var'}'` = yes; then
43724 cat >>confdefs.h <<_ACEOF
43725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43734 for ac_func in getopt getpeereid
43736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43737 echo "$as_me:$LINENO: checking for $ac_func" >&5
43738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43739 if eval "test \"\${$as_ac_var+set}\" = set"; then
43740 echo $ECHO_N "(cached) $ECHO_C" >&6
43742 cat >conftest.$ac_ext <<_ACEOF
43745 cat confdefs.h >>conftest.$ac_ext
43746 cat >>conftest.$ac_ext <<_ACEOF
43747 /* end confdefs.h. */
43748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43750 #define $ac_func innocuous_$ac_func
43752 /* System header to define __stub macros and hopefully few prototypes,
43753 which can conflict with char $ac_func (); below.
43754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43755 <limits.h> exists even on freestanding compilers. */
43758 # include <limits.h>
43760 # include <assert.h>
43765 /* Override any gcc2 internal prototype to avoid an error. */
43770 /* We use char because int might match the return type of a gcc2
43771 builtin and then its argument prototype would still apply. */
43773 /* The GNU C library defines this for functions which it implements
43774 to always fail with ENOSYS. Some functions are actually named
43775 something starting with __ and the normal name is an alias. */
43776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43779 char (*f) () = $ac_func;
43788 return f != $ac_func;
43793 rm -f conftest.$ac_objext conftest$ac_exeext
43794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43795 (eval $ac_link) 2>conftest.er1
43797 grep -v '^ *+' conftest.er1 >conftest.err
43799 cat conftest.err >&5
43800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43801 (exit $ac_status); } &&
43802 { ac_try='test -z "$ac_c_werror_flag"
43803 || test ! -s conftest.err'
43804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43805 (eval $ac_try) 2>&5
43807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43808 (exit $ac_status); }; } &&
43809 { ac_try='test -s conftest$ac_exeext'
43810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43811 (eval $ac_try) 2>&5
43813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43814 (exit $ac_status); }; }; then
43815 eval "$as_ac_var=yes"
43817 echo "$as_me: failed program was:" >&5
43818 sed 's/^/| /' conftest.$ac_ext >&5
43820 eval "$as_ac_var=no"
43822 rm -f conftest.err conftest.$ac_objext \
43823 conftest$ac_exeext conftest.$ac_ext
43825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43827 if test `eval echo '${'$as_ac_var'}'` = yes; then
43828 cat >>confdefs.h <<_ACEOF
43829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43834 "$ac_func.$ac_objext" | \
43835 *" $ac_func.$ac_objext" | \
43836 "$ac_func.$ac_objext "* | \
43837 *" $ac_func.$ac_objext "* ) ;;
43838 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43846 if test "$ac_cv_func_getopt" != yes; then
43847 LIBSRCS="$LIBSRCS getopt.c"
43849 if test "$ac_cv_func_getpeereid" != yes; then
43850 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43851 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43852 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43853 echo $ECHO_N "(cached) $ECHO_C" >&6
43855 cat >conftest.$ac_ext <<_ACEOF
43858 cat confdefs.h >>conftest.$ac_ext
43859 cat >>conftest.$ac_ext <<_ACEOF
43860 /* end confdefs.h. */
43861 $ac_includes_default
43862 #ifdef HAVE_SYS_SOCKET_H
43863 #include <sys/socket.h>
43869 static struct msghdr ac_aggr;
43870 if (ac_aggr.msg_accrightslen)
43876 rm -f conftest.$ac_objext
43877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43878 (eval $ac_compile) 2>conftest.er1
43880 grep -v '^ *+' conftest.er1 >conftest.err
43882 cat conftest.err >&5
43883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43884 (exit $ac_status); } &&
43885 { ac_try='test -z "$ac_c_werror_flag"
43886 || test ! -s conftest.err'
43887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43888 (eval $ac_try) 2>&5
43890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43891 (exit $ac_status); }; } &&
43892 { ac_try='test -s conftest.$ac_objext'
43893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43894 (eval $ac_try) 2>&5
43896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43897 (exit $ac_status); }; }; then
43898 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43900 echo "$as_me: failed program was:" >&5
43901 sed 's/^/| /' conftest.$ac_ext >&5
43903 cat >conftest.$ac_ext <<_ACEOF
43906 cat confdefs.h >>conftest.$ac_ext
43907 cat >>conftest.$ac_ext <<_ACEOF
43908 /* end confdefs.h. */
43909 $ac_includes_default
43910 #ifdef HAVE_SYS_SOCKET_H
43911 #include <sys/socket.h>
43917 static struct msghdr ac_aggr;
43918 if (sizeof ac_aggr.msg_accrightslen)
43924 rm -f conftest.$ac_objext
43925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43926 (eval $ac_compile) 2>conftest.er1
43928 grep -v '^ *+' conftest.er1 >conftest.err
43930 cat conftest.err >&5
43931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43932 (exit $ac_status); } &&
43933 { ac_try='test -z "$ac_c_werror_flag"
43934 || test ! -s conftest.err'
43935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43936 (eval $ac_try) 2>&5
43938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43939 (exit $ac_status); }; } &&
43940 { ac_try='test -s conftest.$ac_objext'
43941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43942 (eval $ac_try) 2>&5
43944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43945 (exit $ac_status); }; }; then
43946 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43948 echo "$as_me: failed program was:" >&5
43949 sed 's/^/| /' conftest.$ac_ext >&5
43951 ac_cv_member_struct_msghdr_msg_accrightslen=no
43953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43957 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43958 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43959 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43961 cat >>confdefs.h <<_ACEOF
43962 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43968 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43969 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43970 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43971 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43972 echo $ECHO_N "(cached) $ECHO_C" >&6
43974 cat >conftest.$ac_ext <<_ACEOF
43977 cat confdefs.h >>conftest.$ac_ext
43978 cat >>conftest.$ac_ext <<_ACEOF
43979 /* end confdefs.h. */
43980 $ac_includes_default
43981 #ifdef HAVE_SYS_SOCKET_H
43982 #include <sys/socket.h>
43988 static struct msghdr ac_aggr;
43989 if (ac_aggr.msg_control)
43995 rm -f conftest.$ac_objext
43996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43997 (eval $ac_compile) 2>conftest.er1
43999 grep -v '^ *+' conftest.er1 >conftest.err
44001 cat conftest.err >&5
44002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44003 (exit $ac_status); } &&
44004 { ac_try='test -z "$ac_c_werror_flag"
44005 || test ! -s conftest.err'
44006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44007 (eval $ac_try) 2>&5
44009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44010 (exit $ac_status); }; } &&
44011 { ac_try='test -s conftest.$ac_objext'
44012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44013 (eval $ac_try) 2>&5
44015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44016 (exit $ac_status); }; }; then
44017 ac_cv_member_struct_msghdr_msg_control=yes
44019 echo "$as_me: failed program was:" >&5
44020 sed 's/^/| /' conftest.$ac_ext >&5
44022 cat >conftest.$ac_ext <<_ACEOF
44025 cat confdefs.h >>conftest.$ac_ext
44026 cat >>conftest.$ac_ext <<_ACEOF
44027 /* end confdefs.h. */
44028 $ac_includes_default
44029 #ifdef HAVE_SYS_SOCKET_H
44030 #include <sys/socket.h>
44036 static struct msghdr ac_aggr;
44037 if (sizeof ac_aggr.msg_control)
44043 rm -f conftest.$ac_objext
44044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44045 (eval $ac_compile) 2>conftest.er1
44047 grep -v '^ *+' conftest.er1 >conftest.err
44049 cat conftest.err >&5
44050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44051 (exit $ac_status); } &&
44052 { ac_try='test -z "$ac_c_werror_flag"
44053 || test ! -s conftest.err'
44054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44055 (eval $ac_try) 2>&5
44057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44058 (exit $ac_status); }; } &&
44059 { ac_try='test -s conftest.$ac_objext'
44060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44061 (eval $ac_try) 2>&5
44063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44064 (exit $ac_status); }; }; then
44065 ac_cv_member_struct_msghdr_msg_control=yes
44067 echo "$as_me: failed program was:" >&5
44068 sed 's/^/| /' conftest.$ac_ext >&5
44070 ac_cv_member_struct_msghdr_msg_control=no
44072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44076 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
44077 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
44078 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
44080 cat >>confdefs.h <<_ACEOF
44081 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
44088 LIBSRCS="$LIBSRCS getpeereid.c"
44090 if test "$ac_cv_func_snprintf" != yes ||
44091 test "$ac_cv_func_vsnprintf" != yes; then
44092 if test "$ac_cv_func_snprintf" != yes; then
44094 cat >>confdefs.h <<\_ACEOF
44095 #define snprintf ber_pvt_snprintf
44099 if test "$ac_cv_func_vsnprintf" != yes; then
44101 cat >>confdefs.h <<\_ACEOF
44102 #define vsnprintf ber_pvt_vsnprintf
44109 if test "$ol_enable_slapi" != no ; then
44111 for ac_header in ltdl.h
44113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44115 echo "$as_me:$LINENO: checking for $ac_header" >&5
44116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44118 echo $ECHO_N "(cached) $ECHO_C" >&6
44120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44123 # Is the header compilable?
44124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44126 cat >conftest.$ac_ext <<_ACEOF
44129 cat confdefs.h >>conftest.$ac_ext
44130 cat >>conftest.$ac_ext <<_ACEOF
44131 /* end confdefs.h. */
44132 $ac_includes_default
44133 #include <$ac_header>
44135 rm -f conftest.$ac_objext
44136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44137 (eval $ac_compile) 2>conftest.er1
44139 grep -v '^ *+' conftest.er1 >conftest.err
44141 cat conftest.err >&5
44142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44143 (exit $ac_status); } &&
44144 { ac_try='test -z "$ac_c_werror_flag"
44145 || test ! -s conftest.err'
44146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44147 (eval $ac_try) 2>&5
44149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44150 (exit $ac_status); }; } &&
44151 { ac_try='test -s conftest.$ac_objext'
44152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44153 (eval $ac_try) 2>&5
44155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44156 (exit $ac_status); }; }; then
44157 ac_header_compiler=yes
44159 echo "$as_me: failed program was:" >&5
44160 sed 's/^/| /' conftest.$ac_ext >&5
44162 ac_header_compiler=no
44164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44166 echo "${ECHO_T}$ac_header_compiler" >&6
44168 # Is the header present?
44169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44171 cat >conftest.$ac_ext <<_ACEOF
44174 cat confdefs.h >>conftest.$ac_ext
44175 cat >>conftest.$ac_ext <<_ACEOF
44176 /* end confdefs.h. */
44177 #include <$ac_header>
44179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44182 grep -v '^ *+' conftest.er1 >conftest.err
44184 cat conftest.err >&5
44185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44186 (exit $ac_status); } >/dev/null; then
44187 if test -s conftest.err; then
44188 ac_cpp_err=$ac_c_preproc_warn_flag
44189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44196 if test -z "$ac_cpp_err"; then
44197 ac_header_preproc=yes
44199 echo "$as_me: failed program was:" >&5
44200 sed 's/^/| /' conftest.$ac_ext >&5
44202 ac_header_preproc=no
44204 rm -f conftest.err conftest.$ac_ext
44205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44206 echo "${ECHO_T}$ac_header_preproc" >&6
44208 # So? What about this header?
44209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44215 ac_header_preproc=yes
44218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44232 ## --------------------------------------------- ##
44233 ## Report this to <http://www.openldap.org/its/> ##
44234 ## --------------------------------------------- ##
44237 sed "s/^/$as_me: WARNING: /" >&2
44240 echo "$as_me:$LINENO: checking for $ac_header" >&5
44241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44243 echo $ECHO_N "(cached) $ECHO_C" >&6
44245 eval "$as_ac_Header=\$ac_header_preproc"
44247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44252 cat >>confdefs.h <<_ACEOF
44253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44261 if test $ac_cv_header_ltdl_h != yes ; then
44262 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44263 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44264 { (exit 1); exit 1; }; }
44266 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44267 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44268 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44269 echo $ECHO_N "(cached) $ECHO_C" >&6
44271 ac_check_lib_save_LIBS=$LIBS
44272 LIBS="-lltdl $LIBS"
44273 cat >conftest.$ac_ext <<_ACEOF
44276 cat confdefs.h >>conftest.$ac_ext
44277 cat >>conftest.$ac_ext <<_ACEOF
44278 /* end confdefs.h. */
44280 /* Override any gcc2 internal prototype to avoid an error. */
44284 /* We use char because int might match the return type of a gcc2
44285 builtin and then its argument prototype would still apply. */
44295 rm -f conftest.$ac_objext conftest$ac_exeext
44296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44297 (eval $ac_link) 2>conftest.er1
44299 grep -v '^ *+' conftest.er1 >conftest.err
44301 cat conftest.err >&5
44302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44303 (exit $ac_status); } &&
44304 { ac_try='test -z "$ac_c_werror_flag"
44305 || test ! -s conftest.err'
44306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44307 (eval $ac_try) 2>&5
44309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44310 (exit $ac_status); }; } &&
44311 { ac_try='test -s conftest$ac_exeext'
44312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44313 (eval $ac_try) 2>&5
44315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44316 (exit $ac_status); }; }; then
44317 ac_cv_lib_ltdl_lt_dlinit=yes
44319 echo "$as_me: failed program was:" >&5
44320 sed 's/^/| /' conftest.$ac_ext >&5
44322 ac_cv_lib_ltdl_lt_dlinit=no
44324 rm -f conftest.err conftest.$ac_objext \
44325 conftest$ac_exeext conftest.$ac_ext
44326 LIBS=$ac_check_lib_save_LIBS
44328 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44329 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44330 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44333 LIBSLAPI=libslapi.a
44334 LIBSLAPITOOLS=../libslapi.a
44336 cat >>confdefs.h <<\_ACEOF
44337 #define HAVE_LIBLTDL 1
44342 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44343 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44344 { (exit 1); exit 1; }; }
44349 cat >>confdefs.h <<\_ACEOF
44350 #define LDAP_SLAPI 1
44355 if test "$ol_enable_debug" != no ; then
44357 cat >>confdefs.h <<\_ACEOF
44358 #define LDAP_DEBUG 1
44362 if test "$ol_enable_syslog" = yes ; then
44364 cat >>confdefs.h <<\_ACEOF
44365 #define LDAP_SYSLOG 1
44369 if test "$ol_link_kbind" != no ; then
44371 cat >>confdefs.h <<\_ACEOF
44372 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44376 if test "$ol_enable_proctitle" != no ; then
44378 cat >>confdefs.h <<\_ACEOF
44379 #define LDAP_PROCTITLE 1
44383 if test "$ol_enable_referrals" != no ; then
44385 cat >>confdefs.h <<\_ACEOF
44386 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44390 if test "$ol_enable_local" != no; then
44392 cat >>confdefs.h <<\_ACEOF
44393 #define LDAP_PF_LOCAL 1
44397 if test "$ol_link_ipv6" != no; then
44399 cat >>confdefs.h <<\_ACEOF
44400 #define LDAP_PF_INET6 1
44404 if test "$ol_enable_cleartext" != no ; then
44406 cat >>confdefs.h <<\_ACEOF
44407 #define SLAPD_CLEARTEXT 1
44411 if test "$ol_enable_crypt" != no ; then
44413 cat >>confdefs.h <<\_ACEOF
44414 #define SLAPD_CRYPT 1
44418 if test "$ol_link_spasswd" != no ; then
44420 cat >>confdefs.h <<\_ACEOF
44421 #define SLAPD_SPASSWD 1
44425 if test "$ol_enable_multimaster" != no ; then
44427 cat >>confdefs.h <<\_ACEOF
44428 #define SLAPD_MULTIMASTER 1
44432 if test "$ol_enable_rlookups" != no ; then
44434 cat >>confdefs.h <<\_ACEOF
44435 #define SLAPD_RLOOKUPS 1
44439 if test "$ol_enable_aci" != no ; then
44441 cat >>confdefs.h <<\_ACEOF
44442 #define SLAPD_ACI_ENABLED 1
44445 WITH_ACI_ENABLED=yes
44447 WITH_ACI_ENABLED=no
44450 if test "$ol_link_modules" != no ; then
44452 cat >>confdefs.h <<\_ACEOF
44453 #define SLAPD_MODULES 1
44457 SLAPD_MODULES_LDFLAGS="-dlopen self"
44461 cat >>confdefs.h <<\_ACEOF
44462 #define SLAPD_MOD_STATIC 1
44466 cat >>confdefs.h <<\_ACEOF
44467 #define SLAPD_MOD_DYNAMIC 2
44471 if test "$ol_enable_bdb" != no ; then
44473 BUILD_BDB=$ol_enable_bdb
44474 if test "$ol_enable_bdb" = mod ; then
44475 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44476 MFLAG=SLAPD_MOD_DYNAMIC
44478 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44479 MFLAG=SLAPD_MOD_STATIC
44482 cat >>confdefs.h <<_ACEOF
44483 #define SLAPD_BDB $MFLAG
44488 if test "$ol_enable_dnssrv" != no ; then
44490 BUILD_DNSSRV=$ol_enable_dnssrv
44491 if test "$ol_enable_dnssrv" = mod ; then
44492 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44493 MFLAG=SLAPD_MOD_DYNAMIC
44495 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44496 MFLAG=SLAPD_MOD_STATIC
44499 cat >>confdefs.h <<_ACEOF
44500 #define SLAPD_DNSSRV $MFLAG
44505 if test "$ol_enable_hdb" != no ; then
44507 BUILD_HDB=$ol_enable_hdb
44508 if test "$ol_enable_hdb" = mod ; then
44509 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44510 MFLAG=SLAPD_MOD_DYNAMIC
44512 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44513 MFLAG=SLAPD_MOD_STATIC
44516 cat >>confdefs.h <<_ACEOF
44517 #define SLAPD_HDB $MFLAG
44522 if test "$ol_enable_ldap" != no ; then
44524 BUILD_LDAP=$ol_enable_ldap
44525 if test "$ol_enable_ldap" = mod ; then
44526 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44527 MFLAG=SLAPD_MOD_DYNAMIC
44529 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44530 MFLAG=SLAPD_MOD_STATIC
44533 cat >>confdefs.h <<_ACEOF
44534 #define SLAPD_LDAP $MFLAG
44539 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44541 BUILD_LDBM=$ol_enable_ldbm
44542 if test "$ol_enable_ldbm" = mod ; then
44543 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44544 MFLAG=SLAPD_MOD_DYNAMIC
44546 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44547 MFLAG=SLAPD_MOD_STATIC
44550 cat >>confdefs.h <<_ACEOF
44551 #define SLAPD_LDBM $MFLAG
44556 if test "$ol_enable_meta" != no ; then
44558 BUILD_META=$ol_enable_meta
44560 if test "$ol_enable_meta" = mod ; then
44561 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44562 MFLAG=SLAPD_MOD_DYNAMIC
44564 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44565 MFLAG=SLAPD_MOD_STATIC
44568 cat >>confdefs.h <<_ACEOF
44569 #define SLAPD_META $MFLAG
44574 if test "$ol_enable_monitor" != no ; then
44576 BUILD_MONITOR=$ol_enable_monitor
44577 if test "$ol_enable_monitor" = mod ; then
44578 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44579 MFLAG=SLAPD_MOD_DYNAMIC
44581 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44582 MFLAG=SLAPD_MOD_STATIC
44585 cat >>confdefs.h <<_ACEOF
44586 #define SLAPD_MONITOR $MFLAG
44591 if test "$ol_enable_null" != no ; then
44593 BUILD_NULL=$ol_enable_null
44594 if test "$ol_enable_null" = mod ; then
44595 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44596 MFLAG=SLAPD_MOD_DYNAMIC
44598 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44599 MFLAG=SLAPD_MOD_STATIC
44602 cat >>confdefs.h <<_ACEOF
44603 #define SLAPD_NULL $MFLAG
44608 if test "$ol_enable_passwd" != no ; then
44610 BUILD_PASSWD=$ol_enable_passwd
44611 if test "$ol_enable_passwd" = mod ; then
44612 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44613 MFLAG=SLAPD_MOD_DYNAMIC
44615 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44616 MFLAG=SLAPD_MOD_STATIC
44619 cat >>confdefs.h <<_ACEOF
44620 #define SLAPD_PASSWD $MFLAG
44625 if test "$ol_link_perl" != no ; then
44627 BUILD_PERL=$ol_enable_perl
44628 if test "$ol_enable_perl" = mod ; then
44629 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44630 MFLAG=SLAPD_MOD_DYNAMIC
44632 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44633 MFLAG=SLAPD_MOD_STATIC
44636 cat >>confdefs.h <<_ACEOF
44637 #define SLAPD_PERL $MFLAG
44642 if test "$ol_enable_relay" != no ; then
44644 BUILD_RELAY=$ol_enable_relay
44645 if test "$ol_enable_relay" = mod ; then
44646 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44647 MFLAG=SLAPD_MOD_DYNAMIC
44649 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44650 MFLAG=SLAPD_MOD_STATIC
44653 cat >>confdefs.h <<_ACEOF
44654 #define SLAPD_RELAY $MFLAG
44659 if test "$ol_enable_shell" != no ; then
44660 if test "$ol_link_threads" != no ; then
44661 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44662 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44665 BUILD_SHELL=$ol_enable_shell
44666 if test "$ol_enable_shell" = mod ; then
44667 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44668 MFLAG=SLAPD_MOD_DYNAMIC
44670 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44671 MFLAG=SLAPD_MOD_STATIC
44674 cat >>confdefs.h <<_ACEOF
44675 #define SLAPD_SHELL $MFLAG
44680 if test "$ol_link_sql" != no ; then
44682 BUILD_SQL=$ol_enable_sql
44683 if test "$ol_enable_sql" = mod; then
44684 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44685 MFLAG=SLAPD_MOD_DYNAMIC
44687 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44688 MFLAG=SLAPD_MOD_STATIC
44691 cat >>confdefs.h <<_ACEOF
44692 #define SLAPD_SQL $MFLAG
44697 if test "$ol_enable_accesslog" != no ; then
44698 BUILD_ACCESSLOG=$ol_enable_accesslog
44699 if test "$ol_enable_accesslog" = mod ; then
44700 MFLAG=SLAPD_MOD_DYNAMIC
44701 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44703 MFLAG=SLAPD_MOD_STATIC
44704 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44707 cat >>confdefs.h <<_ACEOF
44708 #define SLAPD_OVER_ACCESSLOG $MFLAG
44713 if test "$ol_enable_auditlog" != no ; then
44714 BUILD_AUDITLOG=$ol_enable_auditlog
44715 if test "$ol_enable_auditlog" = mod ; then
44716 MFLAG=SLAPD_MOD_DYNAMIC
44717 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
44719 MFLAG=SLAPD_MOD_STATIC
44720 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
44723 cat >>confdefs.h <<_ACEOF
44724 #define SLAPD_OVER_AUDITLOG $MFLAG
44729 if test "$ol_enable_denyop" != no ; then
44730 BUILD_DENYOP=$ol_enable_denyop
44731 if test "$ol_enable_denyop" = mod ; then
44732 MFLAG=SLAPD_MOD_DYNAMIC
44733 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44735 MFLAG=SLAPD_MOD_STATIC
44736 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44739 cat >>confdefs.h <<_ACEOF
44740 #define SLAPD_OVER_DENYOP $MFLAG
44745 if test "$ol_enable_dyngroup" != no ; then
44746 BUILD_DYNGROUP=$ol_enable_dyngroup
44747 if test "$ol_enable_dyngroup" = mod ; then
44748 MFLAG=SLAPD_MOD_DYNAMIC
44749 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44751 MFLAG=SLAPD_MOD_STATIC
44752 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44755 cat >>confdefs.h <<_ACEOF
44756 #define SLAPD_OVER_DYNGROUP $MFLAG
44761 if test "$ol_enable_dynlist" != no ; then
44762 BUILD_DYNLIST=$ol_enable_dynlist
44763 if test "$ol_enable_dynlist" = mod ; then
44764 MFLAG=SLAPD_MOD_DYNAMIC
44765 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44767 MFLAG=SLAPD_MOD_STATIC
44768 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44771 cat >>confdefs.h <<_ACEOF
44772 #define SLAPD_OVER_DYNLIST $MFLAG
44777 if test "$ol_enable_lastmod" != no ; then
44778 BUILD_LASTMOD=$ol_enable_lastmod
44779 if test "$ol_enable_lastmod" = mod ; then
44780 MFLAG=SLAPD_MOD_DYNAMIC
44781 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44783 MFLAG=SLAPD_MOD_STATIC
44784 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44787 cat >>confdefs.h <<_ACEOF
44788 #define SLAPD_OVER_LASTMOD $MFLAG
44793 if test "$ol_enable_ppolicy" != no ; then
44794 BUILD_PPOLICY=$ol_enable_ppolicy
44795 if test "$ol_enable_ppolicy" = mod ; then
44796 MFLAG=SLAPD_MOD_DYNAMIC
44797 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44799 MFLAG=SLAPD_MOD_STATIC
44800 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44803 cat >>confdefs.h <<_ACEOF
44804 #define SLAPD_OVER_PPOLICY $MFLAG
44809 if test "$ol_enable_proxycache" != no ; then
44810 BUILD_PROXYCACHE=$ol_enable_proxycache
44811 if test "$ol_enable_proxycache" = mod ; then
44812 MFLAG=SLAPD_MOD_DYNAMIC
44813 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44815 MFLAG=SLAPD_MOD_STATIC
44816 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44819 cat >>confdefs.h <<_ACEOF
44820 #define SLAPD_OVER_PROXYCACHE $MFLAG
44825 if test "$ol_enable_refint" != no ; then
44826 BUILD_REFINT=$ol_enable_refint
44827 if test "$ol_enable_refint" = mod ; then
44828 MFLAG=SLAPD_MOD_DYNAMIC
44829 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44831 MFLAG=SLAPD_MOD_STATIC
44832 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44835 cat >>confdefs.h <<_ACEOF
44836 #define SLAPD_OVER_REFINT $MFLAG
44841 if test "$ol_enable_retcode" != no ; then
44842 BUILD_RETCODE=$ol_enable_retcode
44843 if test "$ol_enable_retcode" = mod ; then
44844 MFLAG=SLAPD_MOD_DYNAMIC
44845 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44847 MFLAG=SLAPD_MOD_STATIC
44848 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44851 cat >>confdefs.h <<_ACEOF
44852 #define SLAPD_OVER_RETCODE $MFLAG
44857 if test "$ol_enable_rwm" != no ; then
44859 BUILD_RWM=$ol_enable_rwm
44860 if test "$ol_enable_rwm" = mod ; then
44861 MFLAG=SLAPD_MOD_DYNAMIC
44862 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44864 MFLAG=SLAPD_MOD_STATIC
44865 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44868 cat >>confdefs.h <<_ACEOF
44869 #define SLAPD_OVER_RWM $MFLAG
44874 if test "$ol_enable_syncprov" != no ; then
44875 BUILD_SYNCPROV=$ol_enable_syncprov
44876 if test "$ol_enable_syncprov" = mod ; then
44877 MFLAG=SLAPD_MOD_DYNAMIC
44878 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44880 MFLAG=SLAPD_MOD_STATIC
44881 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44884 cat >>confdefs.h <<_ACEOF
44885 #define SLAPD_OVER_SYNCPROV $MFLAG
44890 if test "$ol_enable_translucent" != no ; then
44891 BUILD_TRANSLUCENT=$ol_enable_translucent
44892 if test "$ol_enable_translucent" = mod ; then
44893 MFLAG=SLAPD_MOD_DYNAMIC
44894 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44896 MFLAG=SLAPD_MOD_STATIC
44897 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44900 cat >>confdefs.h <<_ACEOF
44901 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44906 if test "$ol_enable_unique" != no ; then
44907 BUILD_UNIQUE=$ol_enable_unique
44908 if test "$ol_enable_unique" = mod ; then
44909 MFLAG=SLAPD_MOD_DYNAMIC
44910 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44912 MFLAG=SLAPD_MOD_STATIC
44913 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44916 cat >>confdefs.h <<_ACEOF
44917 #define SLAPD_OVER_UNIQUE $MFLAG
44922 if test "$ol_enable_valsort" != no ; then
44923 BUILD_VALSORT=$ol_enable_valsort
44924 if test "$ol_enable_valsort" = mod ; then
44925 MFLAG=SLAPD_MOD_DYNAMIC
44926 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44928 MFLAG=SLAPD_MOD_STATIC
44929 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44932 cat >>confdefs.h <<_ACEOF
44933 #define SLAPD_OVER_VALSORT $MFLAG
44938 if test "$ol_enable_slurpd" != no &&
44939 test "$ol_link_threads" != no &&
44940 test $BUILD_SLAPD = yes ; then
44944 if test "$ol_enable_rewrite" != no ; then
44946 cat >>confdefs.h <<\_ACEOF
44947 #define ENABLE_REWRITE 1
44953 if test "$ol_enable_slapi" != no ; then
44955 cat >>confdefs.h <<\_ACEOF
44956 #define ENABLE_SLAPI 1
44960 SLAPD_SLAPI_DEPEND=libslapi.a
44965 if test "$ac_cv_mingw32" = yes ; then
44967 SLAPD_MODULES_LDFLAGS=
45053 # Check whether --with-xxinstall or --without-xxinstall was given.
45054 if test "${with_xxinstall+set}" = set; then
45055 withval="$with_xxinstall"
45060 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"
45063 ac_config_commands="$ac_config_commands default"
45067 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45068 # Let make expand exec_prefix.
45069 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45071 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45072 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45073 # trailing colons and then remove the whole line if VPATH becomes empty
45074 # (actually we leave an empty line to preserve line numbers).
45075 if test "x$srcdir" = x.; then
45076 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45077 s/:*\$(srcdir):*/:/;
45078 s/:*\${srcdir}:*/:/;
45080 s/^\([^=]*=[ ]*\):*/\1/;
45086 DEFS=-DHAVE_CONFIG_H
45090 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45091 # 1. Remove the extension, and $U if already installed.
45092 ac_i=`echo "$ac_i" |
45093 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
45095 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
45096 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
45098 LIBOBJS=$ac_libobjs
45100 LTLIBOBJS=$ac_ltlibobjs
45103 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45104 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
45105 Usually this means the macro was only invoked conditionally." >&5
45106 echo "$as_me: error: conditional \"AMDEP\" was never defined.
45107 Usually this means the macro was only invoked conditionally." >&2;}
45108 { (exit 1); exit 1; }; }
45110 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45111 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45112 Usually this means the macro was only invoked conditionally." >&5
45113 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45114 Usually this means the macro was only invoked conditionally." >&2;}
45115 { (exit 1); exit 1; }; }
45117 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45118 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45119 Usually this means the macro was only invoked conditionally." >&5
45120 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45121 Usually this means the macro was only invoked conditionally." >&2;}
45122 { (exit 1); exit 1; }; }
45125 : ${CONFIG_STATUS=./config.status}
45126 ac_clean_files_save=$ac_clean_files
45127 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45128 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45129 echo "$as_me: creating $CONFIG_STATUS" >&6;}
45130 cat >$CONFIG_STATUS <<_ACEOF
45132 # Generated by $as_me.
45133 # Run this file to recreate the current configuration.
45134 # Compiler output produced by configure, useful for debugging
45135 # configure, is in config.log if it exists.
45138 ac_cs_recheck=false
45140 SHELL=\${CONFIG_SHELL-$SHELL}
45143 cat >>$CONFIG_STATUS <<\_ACEOF
45144 ## --------------------- ##
45145 ## M4sh Initialization. ##
45146 ## --------------------- ##
45148 # Be Bourne compatible
45149 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45152 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45153 # is contrary to our usage. Disable this feature.
45154 alias -g '${1+"$@"}'='"$@"'
45155 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
45158 DUALCASE=1; export DUALCASE # for MKS sh
45160 # Support unset when possible.
45161 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45168 # Work around bugs in pre-3.0 UWIN ksh.
45169 $as_unset ENV MAIL MAILPATH
45176 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45177 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45178 LC_TELEPHONE LC_TIME
45180 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45181 eval $as_var=C; export $as_var
45187 # Required to use basename.
45188 if expr a : '\(a\)' >/dev/null 2>&1; then
45194 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45195 as_basename=basename
45201 # Name of the executable.
45202 as_me=`$as_basename "$0" ||
45203 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45204 X"$0" : 'X\(//\)$' \| \
45205 X"$0" : 'X\(/\)$' \| \
45206 . : '\(.\)' 2>/dev/null ||
45208 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45209 /^X\/\(\/\/\)$/{ s//\1/; q; }
45210 /^X\/\(\/\).*/{ s//\1/; q; }
45214 # PATH needs CR, and LINENO needs CR and PATH.
45215 # Avoid depending upon Character Ranges.
45216 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45217 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45218 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45219 as_cr_digits='0123456789'
45220 as_cr_alnum=$as_cr_Letters$as_cr_digits
45222 # The user is always right.
45223 if test "${PATH_SEPARATOR+set}" != set; then
45224 echo "#! /bin/sh" >conf$$.sh
45225 echo "exit 0" >>conf$$.sh
45227 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45236 as_lineno_1=$LINENO
45237 as_lineno_2=$LINENO
45238 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45239 test "x$as_lineno_1" != "x$as_lineno_2" &&
45240 test "x$as_lineno_3" = "x$as_lineno_2" || {
45241 # Find who we are. Look in the path if we contain no path at all
45244 *[\\/]* ) as_myself=$0 ;;
45245 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45246 for as_dir in $PATH
45249 test -z "$as_dir" && as_dir=.
45250 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45255 # We did not find ourselves, most probably we were run as `sh COMMAND'
45256 # in which case we are not to be found in the path.
45257 if test "x$as_myself" = x; then
45260 if test ! -f "$as_myself"; then
45261 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45262 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45263 { (exit 1); exit 1; }; }
45265 case $CONFIG_SHELL in
45267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45268 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45271 test -z "$as_dir" && as_dir=.
45272 for as_base in sh bash ksh sh5; do
45275 if ("$as_dir/$as_base" -c '
45276 as_lineno_1=$LINENO
45277 as_lineno_2=$LINENO
45278 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45279 test "x$as_lineno_1" != "x$as_lineno_2" &&
45280 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45281 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45282 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45283 CONFIG_SHELL=$as_dir/$as_base
45284 export CONFIG_SHELL
45285 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45293 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45294 # uniformly replaced by the line number. The first 'sed' inserts a
45295 # line-number line before each line; the second 'sed' does the real
45296 # work. The second script uses 'N' to pair each line-number line
45297 # with the numbered line, and appends trailing '-' during
45298 # substitution so that $LINENO is not a special case at line end.
45299 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45300 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45301 sed '=' <$as_myself |
45306 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45309 s,^['$as_cr_digits']*\n,,
45310 ' >$as_me.lineno &&
45311 chmod +x $as_me.lineno ||
45312 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45313 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45314 { (exit 1); exit 1; }; }
45316 # Don't try to exec as it changes $[0], causing all sort of problems
45317 # (the dirname of $[0] is not the place where we might find the
45318 # original and so on. Autoconf is especially sensible to this).
45320 # Exit status is that of the last command.
45325 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45326 *c*,-n*) ECHO_N= ECHO_C='
45328 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45329 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45332 if expr a : '\(a\)' >/dev/null 2>&1; then
45338 rm -f conf$$ conf$$.exe conf$$.file
45340 if ln -s conf$$.file conf$$ 2>/dev/null; then
45341 # We could just check for DJGPP; but this test a) works b) is more generic
45342 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45343 if test -f conf$$.exe; then
45344 # Don't use ln at all; we don't have any links
45349 elif ln conf$$.file conf$$ 2>/dev/null; then
45354 rm -f conf$$ conf$$.exe conf$$.file
45356 if mkdir -p . 2>/dev/null; then
45359 test -d ./-p && rmdir ./-p
45363 as_executable_p="test -f"
45365 # Sed expression to map a string onto a valid CPP name.
45366 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45368 # Sed expression to map a string onto a valid variable name.
45369 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45373 # We need space, tab and new line, in precisely that order.
45383 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45384 # report actual input values of CONFIG_FILES etc. instead of their
45385 # values after options handling. Logging --version etc. is OK.
45389 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45390 ## Running $as_me. ##
45395 This file was extended by $as_me, which was
45396 generated by GNU Autoconf 2.59. Invocation command line was
45398 CONFIG_FILES = $CONFIG_FILES
45399 CONFIG_HEADERS = $CONFIG_HEADERS
45400 CONFIG_LINKS = $CONFIG_LINKS
45401 CONFIG_COMMANDS = $CONFIG_COMMANDS
45405 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45409 # Files that config.status was made for.
45410 if test -n "$ac_config_files"; then
45411 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45414 if test -n "$ac_config_headers"; then
45415 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45418 if test -n "$ac_config_links"; then
45419 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45422 if test -n "$ac_config_commands"; then
45423 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45426 cat >>$CONFIG_STATUS <<\_ACEOF
45429 \`$as_me' instantiates files from templates according to the
45430 current configuration.
45432 Usage: $0 [OPTIONS] [FILE]...
45434 -h, --help print this help, then exit
45435 -V, --version print version number, then exit
45436 -q, --quiet do not print progress messages
45437 -d, --debug don't remove temporary files
45438 --recheck update $as_me by reconfiguring in the same conditions
45439 --file=FILE[:TEMPLATE]
45440 instantiate the configuration file FILE
45441 --header=FILE[:TEMPLATE]
45442 instantiate the configuration header FILE
45444 Configuration files:
45447 Configuration headers:
45450 Configuration commands:
45453 Report bugs to <bug-autoconf@gnu.org>."
45456 cat >>$CONFIG_STATUS <<_ACEOF
45459 configured by $0, generated by GNU Autoconf 2.59,
45460 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45462 Copyright (C) 2003 Free Software Foundation, Inc.
45463 This config.status script is free software; the Free Software Foundation
45464 gives unlimited permission to copy, distribute and modify it."
45469 cat >>$CONFIG_STATUS <<\_ACEOF
45470 # If no file are specified by the user, then we need to provide default
45471 # value. By we need to know if files were specified by the user.
45477 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45478 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45486 *) # This is not an option, so the user has probably given explicit
45489 ac_need_defaults=false;;
45493 # Handling of the options.
45495 cat >>$CONFIG_STATUS <<\_ACEOF
45496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45498 --version | --vers* | -V )
45499 echo "$ac_cs_version"; exit 0 ;;
45501 # Conflict between --help and --header
45502 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45503 Try \`$0 --help' for more information." >&5
45504 echo "$as_me: error: ambiguous option: $1
45505 Try \`$0 --help' for more information." >&2;}
45506 { (exit 1); exit 1; }; };;
45507 --help | --hel | -h )
45508 echo "$ac_cs_usage"; exit 0 ;;
45509 --debug | --d* | -d )
45511 --file | --fil | --fi | --f )
45513 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45514 ac_need_defaults=false;;
45515 --header | --heade | --head | --hea )
45517 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45518 ac_need_defaults=false;;
45519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45520 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45523 # This is an error.
45524 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45525 Try \`$0 --help' for more information." >&5
45526 echo "$as_me: error: unrecognized option: $1
45527 Try \`$0 --help' for more information." >&2;}
45528 { (exit 1); exit 1; }; } ;;
45530 *) ac_config_targets="$ac_config_targets $1" ;;
45536 ac_configure_extra_args=
45538 if $ac_cs_silent; then
45540 ac_configure_extra_args="$ac_configure_extra_args --silent"
45544 cat >>$CONFIG_STATUS <<_ACEOF
45545 if \$ac_cs_recheck; then
45546 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45547 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45552 cat >>$CONFIG_STATUS <<_ACEOF
45554 # INIT-COMMANDS section.
45557 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45559 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45560 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45567 cat >>$CONFIG_STATUS <<\_ACEOF
45568 for ac_config_target in $ac_config_targets
45570 case "$ac_config_target" in
45571 # Handling of arguments.
45572 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45573 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45574 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45575 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45576 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45577 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45578 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45579 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45580 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45581 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45582 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45583 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45584 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45585 "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" ;;
45586 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45587 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45588 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45589 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45590 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45591 "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" ;;
45592 "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" ;;
45593 "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" ;;
45594 "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" ;;
45595 "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" ;;
45596 "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" ;;
45597 "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" ;;
45598 "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" ;;
45599 "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" ;;
45600 "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" ;;
45601 "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" ;;
45602 "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" ;;
45603 "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" ;;
45604 "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" ;;
45605 "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" ;;
45606 "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" ;;
45607 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45608 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45609 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45610 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45611 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45612 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45613 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45614 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45615 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45616 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45617 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45618 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45619 { (exit 1); exit 1; }; };;
45623 # If the user did not use the arguments to specify the items to instantiate,
45624 # then the envvar interface is used. Set only those that are not.
45625 # We use the long form for the default assignment because of an extremely
45626 # bizarre bug on SunOS 4.1.3.
45627 if $ac_need_defaults; then
45628 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45629 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45630 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45633 # Have a temporary directory for convenience. Make it in the build tree
45634 # simply because there is no reason to put it here, and in addition,
45635 # creating and moving files from /tmp can sometimes cause problems.
45636 # Create a temporary directory, and hook for its removal unless debugging.
45639 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45640 trap '{ (exit 1); exit 1; }' 1 2 13 15
45643 # Create a (secure) tmp directory for tmp files.
45646 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45647 test -n "$tmp" && test -d "$tmp"
45650 tmp=./confstat$$-$RANDOM
45651 (umask 077 && mkdir $tmp)
45654 echo "$me: cannot create a temporary directory in ." >&2
45655 { (exit 1); exit 1; }
45660 cat >>$CONFIG_STATUS <<_ACEOF
45663 # CONFIG_FILES section.
45666 # No need to generate the scripts if there are no CONFIG_FILES.
45667 # This happens for instance when ./config.status config.h
45668 if test -n "\$CONFIG_FILES"; then
45669 # Protect against being on the right side of a sed subst in config.status.
45670 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45671 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45672 s,@SHELL@,$SHELL,;t t
45673 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45674 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45675 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45676 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45677 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45678 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45679 s,@exec_prefix@,$exec_prefix,;t t
45680 s,@prefix@,$prefix,;t t
45681 s,@program_transform_name@,$program_transform_name,;t t
45682 s,@bindir@,$bindir,;t t
45683 s,@sbindir@,$sbindir,;t t
45684 s,@libexecdir@,$libexecdir,;t t
45685 s,@datadir@,$datadir,;t t
45686 s,@sysconfdir@,$sysconfdir,;t t
45687 s,@sharedstatedir@,$sharedstatedir,;t t
45688 s,@localstatedir@,$localstatedir,;t t
45689 s,@libdir@,$libdir,;t t
45690 s,@includedir@,$includedir,;t t
45691 s,@oldincludedir@,$oldincludedir,;t t
45692 s,@infodir@,$infodir,;t t
45693 s,@mandir@,$mandir,;t t
45694 s,@build_alias@,$build_alias,;t t
45695 s,@host_alias@,$host_alias,;t t
45696 s,@target_alias@,$target_alias,;t t
45697 s,@DEFS@,$DEFS,;t t
45698 s,@ECHO_C@,$ECHO_C,;t t
45699 s,@ECHO_N@,$ECHO_N,;t t
45700 s,@ECHO_T@,$ECHO_T,;t t
45701 s,@LIBS@,$LIBS,;t t
45702 s,@build@,$build,;t t
45703 s,@build_cpu@,$build_cpu,;t t
45704 s,@build_vendor@,$build_vendor,;t t
45705 s,@build_os@,$build_os,;t t
45706 s,@host@,$host,;t t
45707 s,@host_cpu@,$host_cpu,;t t
45708 s,@host_vendor@,$host_vendor,;t t
45709 s,@host_os@,$host_os,;t t
45710 s,@target@,$target,;t t
45711 s,@target_cpu@,$target_cpu,;t t
45712 s,@target_vendor@,$target_vendor,;t t
45713 s,@target_os@,$target_os,;t t
45714 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45715 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45716 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45717 s,@CYGPATH_W@,$CYGPATH_W,;t t
45718 s,@PACKAGE@,$PACKAGE,;t t
45719 s,@VERSION@,$VERSION,;t t
45720 s,@ACLOCAL@,$ACLOCAL,;t t
45721 s,@AUTOCONF@,$AUTOCONF,;t t
45722 s,@AUTOMAKE@,$AUTOMAKE,;t t
45723 s,@AUTOHEADER@,$AUTOHEADER,;t t
45724 s,@MAKEINFO@,$MAKEINFO,;t t
45725 s,@install_sh@,$install_sh,;t t
45726 s,@STRIP@,$STRIP,;t t
45727 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45728 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45729 s,@mkdir_p@,$mkdir_p,;t t
45731 s,@SET_MAKE@,$SET_MAKE,;t t
45732 s,@am__leading_dot@,$am__leading_dot,;t t
45733 s,@AMTAR@,$AMTAR,;t t
45734 s,@am__tar@,$am__tar,;t t
45735 s,@am__untar@,$am__untar,;t t
45736 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45737 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45738 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45739 s,@top_builddir@,$top_builddir,;t t
45740 s,@ldap_subdir@,$ldap_subdir,;t t
45743 s,@CFLAGS@,$CFLAGS,;t t
45744 s,@LDFLAGS@,$LDFLAGS,;t t
45745 s,@CPPFLAGS@,$CPPFLAGS,;t t
45746 s,@ac_ct_CC@,$ac_ct_CC,;t t
45747 s,@EXEEXT@,$EXEEXT,;t t
45748 s,@OBJEXT@,$OBJEXT,;t t
45749 s,@DEPDIR@,$DEPDIR,;t t
45750 s,@am__include@,$am__include,;t t
45751 s,@am__quote@,$am__quote,;t t
45752 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45753 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45754 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45755 s,@CCDEPMODE@,$CCDEPMODE,;t t
45756 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45757 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45758 s,@EGREP@,$EGREP,;t t
45759 s,@LN_S@,$LN_S,;t t
45760 s,@ECHO@,$ECHO,;t t
45761 s,@ac_ct_AR@,$ac_ct_AR,;t t
45762 s,@RANLIB@,$RANLIB,;t t
45763 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45764 s,@DLLTOOL@,$DLLTOOL,;t t
45765 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45767 s,@ac_ct_AS@,$ac_ct_AS,;t t
45768 s,@OBJDUMP@,$OBJDUMP,;t t
45769 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45771 s,@LIBTOOL@,$LIBTOOL,;t t
45772 s,@PERLBIN@,$PERLBIN,;t t
45773 s,@OL_MKDEP@,$OL_MKDEP,;t t
45774 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45775 s,@LTSTATIC@,$LTSTATIC,;t t
45776 s,@LIBOBJS@,$LIBOBJS,;t t
45777 s,@LIBSRCS@,$LIBSRCS,;t t
45778 s,@PLAT@,$PLAT,;t t
45779 s,@WITH_SASL@,$WITH_SASL,;t t
45780 s,@WITH_TLS@,$WITH_TLS,;t t
45781 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45782 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45783 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45784 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45785 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45786 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45787 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45788 s,@BUILD_BDB@,$BUILD_BDB,;t t
45789 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45790 s,@BUILD_HDB@,$BUILD_HDB,;t t
45791 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45792 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45793 s,@BUILD_META@,$BUILD_META,;t t
45794 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45795 s,@BUILD_NULL@,$BUILD_NULL,;t t
45796 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45797 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45798 s,@BUILD_PERL@,$BUILD_PERL,;t t
45799 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45800 s,@BUILD_SQL@,$BUILD_SQL,;t t
45801 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45802 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
45803 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45804 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45805 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45806 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45807 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45808 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45809 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45810 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45811 s,@BUILD_RWM@,$BUILD_RWM,;t t
45812 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45813 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45814 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45815 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45816 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45817 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45818 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45819 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45820 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45821 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45822 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45823 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45824 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45825 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45826 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45827 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45828 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45829 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45830 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45831 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45832 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45833 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45834 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45835 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45836 s,@SASL_LIBS@,$SASL_LIBS,;t t
45837 s,@TLS_LIBS@,$TLS_LIBS,;t t
45838 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45839 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45840 s,@LIBSLAPI@,$LIBSLAPI,;t t
45841 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45842 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45843 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45844 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45845 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45846 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45847 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45848 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45853 cat >>$CONFIG_STATUS <<\_ACEOF
45854 # Split the substitutions into bite-sized pieces for seds with
45855 # small command number limits, like on Digital OSF/1 and HP-UX.
45856 ac_max_sed_lines=48
45857 ac_sed_frag=1 # Number of current file.
45858 ac_beg=1 # First line for current file.
45859 ac_end=$ac_max_sed_lines # Line after last line for current file.
45862 while $ac_more_lines; do
45863 if test $ac_beg -gt 1; then
45864 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45866 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45868 if test ! -s $tmp/subs.frag; then
45869 ac_more_lines=false
45871 # The purpose of the label and of the branching condition is to
45872 # speed up the sed processing (if there are no `@' at all, there
45873 # is no need to browse any of the substitutions).
45874 # These are the two extra sed commands mentioned above.
45876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45877 if test -z "$ac_sed_cmds"; then
45878 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45880 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45882 ac_sed_frag=`expr $ac_sed_frag + 1`
45884 ac_end=`expr $ac_end + $ac_max_sed_lines`
45887 if test -z "$ac_sed_cmds"; then
45890 fi # test -n "$CONFIG_FILES"
45893 cat >>$CONFIG_STATUS <<\_ACEOF
45894 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45895 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45897 - | *:- | *:-:* ) # input from stdin
45899 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45901 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45903 * ) ac_file_in=$ac_file.in ;;
45906 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45907 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45909 X"$ac_file" : 'X\(//\)[^/]' \| \
45910 X"$ac_file" : 'X\(//\)$' \| \
45911 X"$ac_file" : 'X\(/\)' \| \
45912 . : '\(.\)' 2>/dev/null ||
45914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45916 /^X\(\/\/\)$/{ s//\1/; q; }
45917 /^X\(\/\).*/{ s//\1/; q; }
45919 { if $as_mkdir_p; then
45924 while test ! -d "$as_dir"; do
45925 as_dirs="$as_dir $as_dirs"
45926 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45928 X"$as_dir" : 'X\(//\)[^/]' \| \
45929 X"$as_dir" : 'X\(//\)$' \| \
45930 X"$as_dir" : 'X\(/\)' \| \
45931 . : '\(.\)' 2>/dev/null ||
45933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45935 /^X\(\/\/\)$/{ s//\1/; q; }
45936 /^X\(\/\).*/{ s//\1/; q; }
45939 test ! -n "$as_dirs" || mkdir $as_dirs
45940 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45941 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45942 { (exit 1); exit 1; }; }; }
45946 if test "$ac_dir" != .; then
45947 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45948 # A "../" for each directory in $ac_dir_suffix.
45949 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45951 ac_dir_suffix= ac_top_builddir=
45955 .) # No --srcdir option. We are building in place.
45957 if test -z "$ac_top_builddir"; then
45960 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45962 [\\/]* | ?:[\\/]* ) # Absolute path.
45963 ac_srcdir=$srcdir$ac_dir_suffix;
45964 ac_top_srcdir=$srcdir ;;
45965 *) # Relative path.
45966 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45967 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45970 # Do not use `cd foo && pwd` to compute absolute paths, because
45971 # the directories may not exist.
45973 .) ac_abs_builddir="$ac_dir";;
45976 .) ac_abs_builddir=`pwd`;;
45977 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45978 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45981 case $ac_abs_builddir in
45982 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45984 case ${ac_top_builddir}. in
45985 .) ac_abs_top_builddir=$ac_abs_builddir;;
45986 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45987 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45990 case $ac_abs_builddir in
45991 .) ac_abs_srcdir=$ac_srcdir;;
45994 .) ac_abs_srcdir=$ac_abs_builddir;;
45995 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45996 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45999 case $ac_abs_builddir in
46000 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46002 case $ac_top_srcdir in
46003 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46004 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46005 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46012 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
46015 if test x"$ac_file" != x-; then
46016 { echo "$as_me:$LINENO: creating $ac_file" >&5
46017 echo "$as_me: creating $ac_file" >&6;}
46020 # Let's still pretend it is `configure' which instantiates (i.e., don't
46021 # use $as_me), people would be surprised to read:
46022 # /* config.h. Generated by config.status. */
46023 if test x"$ac_file" = x-; then
46026 configure_input="$ac_file. "
46028 configure_input=$configure_input"Generated from `echo $ac_file_in |
46029 sed 's,.*/,,'` by configure."
46031 # First look for the input files in the build tree, otherwise in the
46033 ac_file_inputs=`IFS=:
46034 for f in $ac_file_in; do
46036 -) echo $tmp/stdin ;;
46038 # Absolute (can't be DOS-style, as IFS=:)
46039 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46040 echo "$as_me: error: cannot find input file: $f" >&2;}
46041 { (exit 1); exit 1; }; }
46044 if test -f "$f"; then
46047 elif test -f "$srcdir/$f"; then
46052 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46053 echo "$as_me: error: cannot find input file: $f" >&2;}
46054 { (exit 1); exit 1; }; }
46057 done` || { (exit 1); exit 1; }
46059 cat >>$CONFIG_STATUS <<_ACEOF
46063 cat >>$CONFIG_STATUS <<\_ACEOF
46065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46066 s,@configure_input@,$configure_input,;t t
46067 s,@srcdir@,$ac_srcdir,;t t
46068 s,@abs_srcdir@,$ac_abs_srcdir,;t t
46069 s,@top_srcdir@,$ac_top_srcdir,;t t
46070 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46071 s,@builddir@,$ac_builddir,;t t
46072 s,@abs_builddir@,$ac_abs_builddir,;t t
46073 s,@top_builddir@,$ac_top_builddir,;t t
46074 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46075 s,@INSTALL@,$ac_INSTALL,;t t
46076 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46078 if test x"$ac_file" != x-; then
46079 mv $tmp/out $ac_file
46087 cat >>$CONFIG_STATUS <<\_ACEOF
46090 # CONFIG_HEADER section.
46093 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46094 # NAME is the cpp macro being defined and VALUE is the value it is being given.
46096 # ac_d sets the value in "#define NAME VALUE" lines.
46097 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
46098 ac_dB='[ ].*$,\1#\2'
46101 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
46102 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
46103 ac_uB='$,\1#\2define\3'
46107 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
46108 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46110 - | *:- | *:-:* ) # input from stdin
46112 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46113 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46114 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46115 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46116 * ) ac_file_in=$ac_file.in ;;
46119 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
46120 echo "$as_me: creating $ac_file" >&6;}
46122 # First look for the input files in the build tree, otherwise in the
46124 ac_file_inputs=`IFS=:
46125 for f in $ac_file_in; do
46127 -) echo $tmp/stdin ;;
46129 # Absolute (can't be DOS-style, as IFS=:)
46130 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46131 echo "$as_me: error: cannot find input file: $f" >&2;}
46132 { (exit 1); exit 1; }; }
46133 # Do quote $f, to prevent DOS paths from being IFS'd.
46136 if test -f "$f"; then
46139 elif test -f "$srcdir/$f"; then
46144 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46145 echo "$as_me: error: cannot find input file: $f" >&2;}
46146 { (exit 1); exit 1; }; }
46149 done` || { (exit 1); exit 1; }
46150 # Remove the trailing spaces.
46151 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
46155 # Transform confdefs.h into two sed scripts, `conftest.defines' and
46156 # `conftest.undefs', that substitutes the proper values into
46157 # config.h.in to produce config.h. The first handles `#define'
46158 # templates, and the second `#undef' templates.
46159 # And first: Protect against being on the right side of a sed subst in
46160 # config.status. Protect against being in an unquoted here document
46161 # in config.status.
46162 rm -f conftest.defines conftest.undefs
46163 # Using a here document instead of a string reduces the quoting nightmare.
46164 # Putting comments in sed scripts is not portable.
46166 # `end' is used to avoid that the second main sed command (meant for
46167 # 0-ary CPP macros) applies to n-ary macro definitions.
46168 # See the Autoconf documentation for `clear'.
46169 cat >confdef2sed.sed <<\_ACEOF
46174 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
46176 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
46179 # If some macros were called several times there might be several times
46180 # the same #defines, which is useless. Nevertheless, we may not want to
46181 # sort them, since we want the *last* AC-DEFINE to be honored.
46182 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46183 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46184 rm -f confdef2sed.sed
46186 # This sed command replaces #undef with comments. This is necessary, for
46187 # example, in the case of _POSIX_SOURCE, which is predefined and required
46188 # on some systems where configure will not decide to define it.
46189 cat >>conftest.undefs <<\_ACEOF
46190 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
46193 # Break up conftest.defines because some shells have a limit on the size
46194 # of here documents, and old seds have small limits too (100 cmds).
46195 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
46196 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
46197 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46198 echo ' :' >>$CONFIG_STATUS
46199 rm -f conftest.tail
46200 while grep . conftest.defines >/dev/null
46202 # Write a limited-size here document to $tmp/defines.sed.
46203 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46204 # Speed up: don't consider the non `#define' lines.
46205 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
46206 # Work around the forget-to-reset-the-flag bug.
46207 echo 't clr' >>$CONFIG_STATUS
46208 echo ': clr' >>$CONFIG_STATUS
46209 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46211 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46213 mv $tmp/out $tmp/in
46215 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46216 rm -f conftest.defines
46217 mv conftest.tail conftest.defines
46219 rm -f conftest.defines
46220 echo ' fi # grep' >>$CONFIG_STATUS
46221 echo >>$CONFIG_STATUS
46223 # Break up conftest.undefs because some shells have a limit on the size
46224 # of here documents, and old seds have small limits too (100 cmds).
46225 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46226 rm -f conftest.tail
46227 while grep . conftest.undefs >/dev/null
46229 # Write a limited-size here document to $tmp/undefs.sed.
46230 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46231 # Speed up: don't consider the non `#undef'
46232 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
46233 # Work around the forget-to-reset-the-flag bug.
46234 echo 't clr' >>$CONFIG_STATUS
46235 echo ': clr' >>$CONFIG_STATUS
46236 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46238 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46240 mv $tmp/out $tmp/in
46242 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46243 rm -f conftest.undefs
46244 mv conftest.tail conftest.undefs
46246 rm -f conftest.undefs
46248 cat >>$CONFIG_STATUS <<\_ACEOF
46249 # Let's still pretend it is `configure' which instantiates (i.e., don't
46250 # use $as_me), people would be surprised to read:
46251 # /* config.h. Generated by config.status. */
46252 if test x"$ac_file" = x-; then
46253 echo "/* Generated by configure. */" >$tmp/config.h
46255 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46257 cat $tmp/in >>$tmp/config.h
46259 if test x"$ac_file" != x-; then
46260 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46261 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46262 echo "$as_me: $ac_file is unchanged" >&6;}
46264 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46265 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46266 X"$ac_file" : 'X\(//\)[^/]' \| \
46267 X"$ac_file" : 'X\(//\)$' \| \
46268 X"$ac_file" : 'X\(/\)' \| \
46269 . : '\(.\)' 2>/dev/null ||
46271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46273 /^X\(\/\/\)$/{ s//\1/; q; }
46274 /^X\(\/\).*/{ s//\1/; q; }
46276 { if $as_mkdir_p; then
46281 while test ! -d "$as_dir"; do
46282 as_dirs="$as_dir $as_dirs"
46283 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46285 X"$as_dir" : 'X\(//\)[^/]' \| \
46286 X"$as_dir" : 'X\(//\)$' \| \
46287 X"$as_dir" : 'X\(/\)' \| \
46288 . : '\(.\)' 2>/dev/null ||
46290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46291 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46292 /^X\(\/\/\)$/{ s//\1/; q; }
46293 /^X\(\/\).*/{ s//\1/; q; }
46296 test ! -n "$as_dirs" || mkdir $as_dirs
46297 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46298 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46299 { (exit 1); exit 1; }; }; }
46302 mv $tmp/config.h $ac_file
46306 rm -f $tmp/config.h
46308 # Compute $ac_file's index in $config_headers.
46310 for _am_header in $config_headers :; do
46311 case $_am_header in
46312 $ac_file | $ac_file:* )
46315 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46318 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46319 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46320 X$ac_file : 'X\(//\)[^/]' \| \
46321 X$ac_file : 'X\(//\)$' \| \
46322 X$ac_file : 'X\(/\)' \| \
46323 . : '\(.\)' 2>/dev/null ||
46325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46327 /^X\(\/\/\)$/{ s//\1/; q; }
46328 /^X\(\/\).*/{ s//\1/; q; }
46329 s/.*/./; q'`/stamp-h$_am_stamp_count
46332 cat >>$CONFIG_STATUS <<\_ACEOF
46335 # CONFIG_COMMANDS section.
46337 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46338 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46339 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46340 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46341 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46342 X"$ac_dest" : 'X\(//\)[^/]' \| \
46343 X"$ac_dest" : 'X\(//\)$' \| \
46344 X"$ac_dest" : 'X\(/\)' \| \
46345 . : '\(.\)' 2>/dev/null ||
46347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46349 /^X\(\/\/\)$/{ s//\1/; q; }
46350 /^X\(\/\).*/{ s//\1/; q; }
46352 { if $as_mkdir_p; then
46357 while test ! -d "$as_dir"; do
46358 as_dirs="$as_dir $as_dirs"
46359 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46361 X"$as_dir" : 'X\(//\)[^/]' \| \
46362 X"$as_dir" : 'X\(//\)$' \| \
46363 X"$as_dir" : 'X\(/\)' \| \
46364 . : '\(.\)' 2>/dev/null ||
46366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46368 /^X\(\/\/\)$/{ s//\1/; q; }
46369 /^X\(\/\).*/{ s//\1/; q; }
46372 test ! -n "$as_dirs" || mkdir $as_dirs
46373 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46374 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46375 { (exit 1); exit 1; }; }; }
46379 if test "$ac_dir" != .; then
46380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46381 # A "../" for each directory in $ac_dir_suffix.
46382 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46384 ac_dir_suffix= ac_top_builddir=
46388 .) # No --srcdir option. We are building in place.
46390 if test -z "$ac_top_builddir"; then
46393 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46395 [\\/]* | ?:[\\/]* ) # Absolute path.
46396 ac_srcdir=$srcdir$ac_dir_suffix;
46397 ac_top_srcdir=$srcdir ;;
46398 *) # Relative path.
46399 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46400 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46403 # Do not use `cd foo && pwd` to compute absolute paths, because
46404 # the directories may not exist.
46406 .) ac_abs_builddir="$ac_dir";;
46409 .) ac_abs_builddir=`pwd`;;
46410 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46411 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46414 case $ac_abs_builddir in
46415 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46417 case ${ac_top_builddir}. in
46418 .) ac_abs_top_builddir=$ac_abs_builddir;;
46419 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46420 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46423 case $ac_abs_builddir in
46424 .) ac_abs_srcdir=$ac_srcdir;;
46427 .) ac_abs_srcdir=$ac_abs_builddir;;
46428 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46429 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46432 case $ac_abs_builddir in
46433 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46435 case $ac_top_srcdir in
46436 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46437 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46438 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46443 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46444 echo "$as_me: executing $ac_dest commands" >&6;}
46446 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46447 # Strip MF so we end up with the name of the file.
46448 mf=`echo "$mf" | sed -e 's/:.*$//'`
46449 # Check whether this is an Automake generated Makefile or not.
46450 # We used to match only the files named `Makefile.in', but
46451 # some people rename them; so instead we look at the file content.
46452 # Grep'ing the first line is not enough: some people post-process
46453 # each Makefile.in and add a new line on top of each file to say so.
46454 # So let's grep whole file.
46455 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46456 dirpart=`(dirname "$mf") 2>/dev/null ||
46457 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46458 X"$mf" : 'X\(//\)[^/]' \| \
46459 X"$mf" : 'X\(//\)$' \| \
46460 X"$mf" : 'X\(/\)' \| \
46461 . : '\(.\)' 2>/dev/null ||
46463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46465 /^X\(\/\/\)$/{ s//\1/; q; }
46466 /^X\(\/\).*/{ s//\1/; q; }
46471 # Extract the definition of DEPDIR, am__include, and am__quote
46472 # from the Makefile without running `make'.
46473 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46474 test -z "$DEPDIR" && continue
46475 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46476 test -z "am__include" && continue
46477 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46478 # When using ansi2knr, U may be empty or an underscore; expand it
46479 U=`sed -n 's/^U = //p' < "$mf"`
46480 # Find all dependency output files, they are included files with
46481 # $(DEPDIR) in their names. We invoke sed twice because it is the
46482 # simplest approach to changing $(DEPDIR) to its actual value in the
46484 for file in `sed -n "
46485 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46486 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46487 # Make sure the directory exists.
46488 test -f "$dirpart/$file" && continue
46489 fdir=`(dirname "$file") 2>/dev/null ||
46490 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46491 X"$file" : 'X\(//\)[^/]' \| \
46492 X"$file" : 'X\(//\)$' \| \
46493 X"$file" : 'X\(/\)' \| \
46494 . : '\(.\)' 2>/dev/null ||
46496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46498 /^X\(\/\/\)$/{ s//\1/; q; }
46499 /^X\(\/\).*/{ s//\1/; q; }
46501 { if $as_mkdir_p; then
46502 mkdir -p $dirpart/$fdir
46504 as_dir=$dirpart/$fdir
46506 while test ! -d "$as_dir"; do
46507 as_dirs="$as_dir $as_dirs"
46508 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46510 X"$as_dir" : 'X\(//\)[^/]' \| \
46511 X"$as_dir" : 'X\(//\)$' \| \
46512 X"$as_dir" : 'X\(/\)' \| \
46513 . : '\(.\)' 2>/dev/null ||
46515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46517 /^X\(\/\/\)$/{ s//\1/; q; }
46518 /^X\(\/\).*/{ s//\1/; q; }
46521 test ! -n "$as_dirs" || mkdir $as_dirs
46522 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46523 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46524 { (exit 1); exit 1; }; }; }
46526 # echo "creating $dirpart/$file"
46527 echo '# dummy' > "$dirpart/$file"
46534 BACKENDSC="servers/slapd/backends.c"
46535 echo "Making $BACKENDSC"
46537 cat > $BACKENDSC << ENDX
46538 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46540 * Copyright 1998-2006 The OpenLDAP Foundation.
46541 * All rights reserved.
46543 * Redistribution and use in source and binary forms, with or without
46544 * modification, are permitted only as authorized by the OpenLDAP
46547 * A copy of this license is available in the file LICENSE in the
46548 * top-level directory of the distribution or, alternatively, at
46549 * <http://www.OpenLDAP.org/license.html>.
46551 /* This file is automatically generated by configure; please do not edit. */
46553 #include "portable.h"
46557 if test "${STATIC_BACKENDS}"; then
46558 for b in config ${STATIC_BACKENDS}; do
46559 bb=`echo "${b}" | sed -e 's/back-//'`
46560 cat >> $BACKENDSC << ENDX
46561 extern BI_init ${bb}_back_initialize;
46565 cat >> $BACKENDSC << ENDX
46567 BackendInfo slap_binfo[] = {
46570 for b in config ${STATIC_BACKENDS}; do
46571 bb=`echo "${b}" | sed -e 's/back-//'`
46572 echo " Add ${bb} ..."
46573 cat >> $BACKENDSC << ENDX
46574 { "${bb}", ${bb}_back_initialize },
46578 cat >> $BACKENDSC << ENDX
46582 /* end of generated file */
46585 OVERLAYSC="servers/slapd/overlays/statover.c"
46586 echo "Making $OVERLAYSC"
46588 cat > $OVERLAYSC << ENDX
46589 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46591 * Copyright 1998-2006 The OpenLDAP Foundation.
46592 * All rights reserved.
46594 * Redistribution and use in source and binary forms, with or without
46595 * modification, are permitted only as authorized by the OpenLDAP
46598 * A copy of this license is available in the file LICENSE in the
46599 * top-level directory of the distribution or, alternatively, at
46600 * <http://www.OpenLDAP.org/license.html>.
46602 /* This file is automatically generated by configure; please do not edit. */
46604 #include "portable.h"
46608 if test "${STATIC_OVERLAYS}"; then
46609 for o in ${STATIC_OVERLAYS}; do
46610 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46611 cat >> $OVERLAYSC << ENDX
46612 extern OV_init ${oo}_initialize;
46617 cat >> $OVERLAYSC << ENDX
46619 OverlayInit slap_oinfo[] = {
46622 if test "${STATIC_OVERLAYS}"; then
46623 for o in ${STATIC_OVERLAYS}; do
46624 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46625 echo " Add ${oo} ..."
46626 cat >> $OVERLAYSC << ENDX
46627 { "${oo}", ${oo}_initialize },
46632 cat >> $OVERLAYSC << ENDX
46636 /* end of generated file */
46639 echo Please run \"make depend\" to build dependencies
46645 cat >>$CONFIG_STATUS <<\_ACEOF
46647 { (exit 0); exit 0; }
46649 chmod +x $CONFIG_STATUS
46650 ac_clean_files=$ac_clean_files_save
46653 # configure is writing to config.log, and then calls config.status.
46654 # config.status does its own redirection, appending to config.log.
46655 # Unfortunately, on DOS this fails, as config.log is still kept open
46656 # by configure, so config.status won't be able to write to it; its
46657 # output is simply discarded. So we exec the FD to /dev/null,
46658 # effectively closing config.log, so it can be properly (re)opened and
46659 # appended to by config.status. When coming back to configure, we
46660 # need to make the FD available again.
46661 if test "$no_create" != yes; then
46663 ac_config_status_args=
46664 test "$silent" = yes &&
46665 ac_config_status_args="$ac_config_status_args --quiet"
46667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46670 # would make configure fail if this is the last instruction.
46671 $ac_cs_success || { (exit 1); exit 1; }