2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.653 2007/05/09 16:17:10 hallvard Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60.
6 # Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 exec 7<&0 </dev/null 6>&1
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701 ac_default_prefix=/usr/local
703 ac_config_libobj_dir=.
709 SHELL=${CONFIG_SHELL-/bin/sh}
711 # Identity of this package.
718 ac_unique_file="OpenLDAP"
719 ac_unique_file="build/version.sh"
720 ac_default_prefix=/usr/local
721 # Factoring default headers for most tests.
722 ac_includes_default="\
725 # include <sys/types.h>
728 # include <sys/stat.h>
739 # if !STDC_HEADERS && HAVE_MEMORY_H
745 # include <strings.h>
748 # include <inttypes.h>
766 program_transform_name
819 INSTALL_STRIP_PROGRAM
829 OPENLDAP_RELEASE_DATE
911 SLAPD_MODULES_CPPFLAGS
912 SLAPD_MODULES_LDFLAGS
914 SLAPD_STATIC_BACKENDS
915 SLAPD_DYNAMIC_BACKENDS
916 SLAPD_STATIC_OVERLAYS
917 SLAPD_DYNAMIC_OVERLAYS
938 ac_precious_vars='build_alias
948 # Initialize some variables set by options.
950 ac_init_version=false
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
960 program_transform_name=s,x,x,
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE}'
985 infodir='${datarootdir}/info'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
998 # If the previous option needs an argument, assign it.
999 if test -n "$ac_prev"; then
1000 eval $ac_prev=\$ac_option
1006 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1012 case $ac_dashdash$ac_option in
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1036 -datadir | --datadir | --datadi | --datad)
1038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039 datadir=$ac_optarg ;;
1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1048 -disable-* | --disable-*)
1049 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1055 eval enable_$ac_feature=no ;;
1057 -docdir | --docdir | --docdi | --doc | --do)
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
1067 -enable-* | --enable-*)
1068 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1074 eval enable_$ac_feature=\$ac_optarg ;;
1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078 | --exec | --exe | --ex)
1079 ac_prev=exec_prefix ;;
1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082 | --exec=* | --exe=* | --ex=*)
1083 exec_prefix=$ac_optarg ;;
1085 -gas | --gas | --ga | --g)
1086 # Obsolete; use --with-gas.
1089 -help | --help | --hel | --he | -h)
1090 ac_init_help=long ;;
1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092 ac_init_help=recursive ;;
1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094 ac_init_help=short ;;
1096 -host | --host | --hos | --ho)
1097 ac_prev=host_alias ;;
1098 -host=* | --host=* | --hos=* | --ho=*)
1099 host_alias=$ac_optarg ;;
1101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1105 htmldir=$ac_optarg ;;
1107 -includedir | --includedir | --includedi | --included | --include \
1108 | --includ | --inclu | --incl | --inc)
1109 ac_prev=includedir ;;
1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111 | --includ=* | --inclu=* | --incl=* | --inc=*)
1112 includedir=$ac_optarg ;;
1114 -infodir | --infodir | --infodi | --infod | --info | --inf)
1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1117 infodir=$ac_optarg ;;
1119 -libdir | --libdir | --libdi | --libd)
1121 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1122 libdir=$ac_optarg ;;
1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125 | --libexe | --libex | --libe)
1126 ac_prev=libexecdir ;;
1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128 | --libexe=* | --libex=* | --libe=*)
1129 libexecdir=$ac_optarg ;;
1131 -localedir | --localedir | --localedi | --localed | --locale)
1132 ac_prev=localedir ;;
1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134 localedir=$ac_optarg ;;
1136 -localstatedir | --localstatedir | --localstatedi | --localstated \
1137 | --localstate | --localstat | --localsta | --localst | --locals)
1138 ac_prev=localstatedir ;;
1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1141 localstatedir=$ac_optarg ;;
1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1146 mandir=$ac_optarg ;;
1148 -nfp | --nfp | --nf)
1149 # Obsolete; use --without-fp.
1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1153 | --no-cr | --no-c | -n)
1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162 | --oldin | --oldi | --old | --ol | --o)
1163 ac_prev=oldincludedir ;;
1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1167 oldincludedir=$ac_optarg ;;
1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1172 prefix=$ac_optarg ;;
1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175 | --program-pre | --program-pr | --program-p)
1176 ac_prev=program_prefix ;;
1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1179 program_prefix=$ac_optarg ;;
1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182 | --program-suf | --program-su | --program-s)
1183 ac_prev=program_suffix ;;
1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1186 program_suffix=$ac_optarg ;;
1188 -program-transform-name | --program-transform-name \
1189 | --program-transform-nam | --program-transform-na \
1190 | --program-transform-n | --program-transform- \
1191 | --program-transform | --program-transfor \
1192 | --program-transfo | --program-transf \
1193 | --program-trans | --program-tran \
1194 | --progr-tra | --program-tr | --program-t)
1195 ac_prev=program_transform_name ;;
1196 -program-transform-name=* | --program-transform-name=* \
1197 | --program-transform-nam=* | --program-transform-na=* \
1198 | --program-transform-n=* | --program-transform-=* \
1199 | --program-transform=* | --program-transfor=* \
1200 | --program-transfo=* | --program-transf=* \
1201 | --program-trans=* | --program-tran=* \
1202 | --progr-tra=* | --program-tr=* | --program-t=*)
1203 program_transform_name=$ac_optarg ;;
1205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208 pdfdir=$ac_optarg ;;
1210 -psdir | --psdir | --psdi | --psd | --ps)
1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1223 sbindir=$ac_optarg ;;
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1234 sharedstatedir=$ac_optarg ;;
1236 -site | --site | --sit)
1238 -site=* | --site=* | --sit=*)
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244 srcdir=$ac_optarg ;;
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251 sysconfdir=$ac_optarg ;;
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
1254 ac_prev=target_alias ;;
1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256 target_alias=$ac_optarg ;;
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
1265 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1268 { echo "$as_me: error: invalid package name: $ac_package" >&2
1269 { (exit 1); exit 1; }; }
1270 ac_package=`echo $ac_package| sed 's/-/_/g'`
1271 eval with_$ac_package=\$ac_optarg ;;
1273 -without-* | --without-*)
1274 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1277 { echo "$as_me: error: invalid package name: $ac_package" >&2
1278 { (exit 1); exit 1; }; }
1279 ac_package=`echo $ac_package | sed 's/-/_/g'`
1280 eval with_$ac_package=no ;;
1283 # Obsolete; use --with-x.
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1300 -*) { echo "$as_me: error: unrecognized option: $ac_option
1301 Try \`$0 --help' for more information." >&2
1302 { (exit 1); exit 1; }; }
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1309 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1310 { (exit 1); exit 1; }; }
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1315 # FIXME: should be removed in autoconf 3.0.
1316 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1325 if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 { echo "$as_me: error: missing argument to $ac_option" >&2
1328 { (exit 1); exit 1; }; }
1331 # Be sure to have absolute directory names.
1332 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1337 eval ac_val=\$$ac_var
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1343 { (exit 1); exit 1; }; }
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1351 target=$target_alias
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x; then
1355 if test "x$build_alias" = x; then
1356 cross_compiling=maybe
1357 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1358 If a cross compiler is detected then cross compile mode will be used." >&2
1359 elif test "x$build_alias" != "x$host_alias"; then
1365 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367 test "$silent" = yes && exec 6>/dev/null
1370 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di=`ls -di .` &&
1372 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373 { echo "$as_me: error: Working directory cannot be determined" >&2
1374 { (exit 1); exit 1; }; }
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 { echo "$as_me: error: pwd does not report name of working directory" >&2
1377 { (exit 1); exit 1; }; }
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir=`$as_dirname -- "$0" ||
1385 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$0" : 'X\(//\)[^/]' \| \
1387 X"$0" : 'X\(//\)$' \| \
1388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1412 ac_srcdir_defaulted=no
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1417 { (exit 1); exit 1; }; }
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1422 { (exit 1); exit 1; }; }
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442 # Report the --help message.
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1448 \`configure' configures this package to adapt to many kinds of systems.
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1455 Defaults for the options are specified in brackets.
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1479 For better control, use the options below.
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1506 --program-prefix=PREFIX prepend PREFIX to installed program names
1507 --program-suffix=SUFFIX append SUFFIX to installed program names
1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 --target=TARGET configure for building compilers for TARGET [HOST]
1517 if test -n "$ac_init_help"; then
1522 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1523 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1524 --enable-debug enable debugging no|yes|traditional [yes]
1525 --enable-dynamic enable linking built binaries with dynamic libs [no]
1526 --enable-syslog enable syslog support [auto]
1527 --enable-proctitle enable proctitle support [yes]
1528 --enable-ipv6 enable IPv6 support [auto]
1529 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1531 SLAPD (Standalone LDAP Daemon) Options:
1532 --enable-slapd enable building slapd [yes]
1533 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1534 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1535 --enable-cleartext enable cleartext passwords [yes]
1536 --enable-crypt enable crypt(3) passwords [no]
1537 --enable-lmpasswd enable LAN Manager passwords [no]
1538 --enable-spasswd enable (Cyrus) SASL password verification [no]
1539 --enable-modules enable dynamic module support [no]
1540 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1541 --enable-rlookups enable reverse lookups of client hostnames [no]
1542 --enable-slapi enable SLAPI support (experimental) [no]
1543 --enable-slp enable SLPv2 support [no]
1544 --enable-wrappers enable tcp wrapper support [no]
1546 SLAPD Backend Options:
1547 --enable-backends enable all available backends no|yes|mod
1548 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1549 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1550 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1551 --enable-ldap enable ldap backend no|yes|mod [no]
1552 --enable-meta enable metadirectory backend no|yes|mod [no]
1553 --enable-monitor enable monitor backend no|yes|mod [yes]
1554 --enable-null enable null backend no|yes|mod [no]
1555 --enable-passwd enable passwd backend no|yes|mod [no]
1556 --enable-perl enable perl backend no|yes|mod [no]
1557 --enable-relay enable relay backend no|yes|mod [yes]
1558 --enable-shell enable shell backend no|yes|mod [no]
1559 --enable-sql enable sql backend no|yes|mod [no]
1561 SLAPD Overlay Options:
1562 --enable-overlays enable all available overlays no|yes|mod
1563 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1564 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1565 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1566 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1567 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1568 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1569 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1570 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1571 --enable-refint Referential Integrity overlay no|yes|mod [no]
1572 --enable-retcode Return Code testing overlay no|yes|mod [no]
1573 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1574 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1575 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1576 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1577 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1578 --enable-valsort Value Sorting overlay no|yes|mod [no]
1580 Library Generation & Linking Options
1581 --enable-static[=PKGS] build static libraries [default=yes]
1582 --enable-shared[=PKGS] build shared libraries [default=yes]
1583 --enable-fast-install[=PKGS]
1584 optimize for fast installation [default=yes]
1585 --disable-dependency-tracking speeds up one-time build
1586 --enable-dependency-tracking do not reject slow dependency extractors
1587 --disable-libtool-lock avoid locking (might break parallel builds)
1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1592 --with-subdir=DIR change default subdirectory used for installs
1593 --with-cyrus-sasl with Cyrus SASL support [auto]
1594 --with-fetch with fetch(3) URL support [auto]
1595 --with-threads with threads [auto]
1596 --with-tls with TLS/SSL support auto|openssl|gnutls [auto]
1597 --with-yielding-select with implicitly yielding select [auto]
1598 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1599 --with-odbc with specific ODBC support iodbc|unixodbc|auto [auto]
1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1601 --with-pic try to use only PIC/non-PIC objects [default=use
1603 --with-tags[=TAGS] include additional configurations [automatic]
1605 See INSTALL file for further details.
1607 Some influential environment variables:
1608 CC C compiler command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611 nonstandard directory <lib dir>
1612 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1613 you have headers in a nonstandard directory <include dir>
1616 Use these variables to override the choices made by `configure' or to help
1617 it to find libraries and programs with nonstandard names/locations.
1623 if test "$ac_init_help" = "recursive"; then
1624 # If there are subdirs, report their specific --help.
1625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1626 test -d "$ac_dir" || continue
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1646 .) # We are building in place.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1670 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1680 generated by GNU Autoconf 2.60
1682 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1683 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1684 This configure script is free software; the Free Software Foundation
1685 gives unlimited permission to copy, distribute and modify it.
1687 Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
1688 Restrictions apply, see COPYRIGHT and LICENSE files.
1692 cat >config.log <<_ACEOF
1693 This file contains any messages produced by compilers while
1694 running configure, to aid debugging if configure makes a mistake.
1696 It was created by $as_me, which was
1697 generated by GNU Autoconf 2.60. Invocation command line was
1709 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1710 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1711 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1712 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1713 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1715 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1716 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1718 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1719 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1720 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1721 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1722 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1723 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1724 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 test -z "$as_dir" && as_dir=.
1733 echo "PATH: $as_dir"
1749 # Keep a trace of the command line.
1750 # Strip out --no-create and --no-recursion so they do not pile up.
1751 # Strip out --silent because we don't want to record it for future runs.
1752 # Also quote any args containing shell meta-characters.
1753 # Make two passes to allow for proper duplicate-argument suppression.
1757 ac_must_keep_next=false
1763 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1764 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1765 | -silent | --silent | --silen | --sile | --sil)
1768 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1771 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1773 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1774 if test $ac_must_keep_next = true; then
1775 ac_must_keep_next=false # Got value, back to normal.
1778 *=* | --config-cache | -C | -disable-* | --disable-* \
1779 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1780 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1781 | -with-* | --with-* | -without-* | --without-* | --x)
1782 case "$ac_configure_args0 " in
1783 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1786 -* ) ac_must_keep_next=true ;;
1789 ac_configure_args="$ac_configure_args '$ac_arg'"
1794 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1795 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1797 # When interrupted or exit'd, cleanup temporary files, and complete
1798 # config.log. We remove comments because anyway the quotes in there
1799 # would cause problems or look ugly.
1800 # WARNING: Use '\'' to represent an apostrophe within the trap.
1801 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1802 trap 'exit_status=$?
1803 # Save into config.log some information that might help in debugging.
1808 ## ---------------- ##
1809 ## Cache variables. ##
1810 ## ---------------- ##
1813 # The following way of writing the cache mishandles newlines in values,
1815 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1816 eval ac_val=\$$ac_var
1820 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1821 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1824 _ | IFS | as_nl) ;; #(
1825 *) $as_unset $ac_var ;;
1830 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1831 *${as_nl}ac_space=\ *)
1833 "s/'\''/'\''\\\\'\'''\''/g;
1834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1837 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1845 ## ----------------- ##
1846 ## Output variables. ##
1847 ## ----------------- ##
1850 for ac_var in $ac_subst_vars
1852 eval ac_val=\$$ac_var
1854 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 echo "$ac_var='\''$ac_val'\''"
1860 if test -n "$ac_subst_files"; then
1862 ## ------------------- ##
1863 ## File substitutions. ##
1864 ## ------------------- ##
1867 for ac_var in $ac_subst_files
1869 eval ac_val=\$$ac_var
1871 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1873 echo "$ac_var='\''$ac_val'\''"
1878 if test -s confdefs.h; then
1888 test "$ac_signal" != 0 &&
1889 echo "$as_me: caught signal $ac_signal"
1890 echo "$as_me: exit $exit_status"
1892 rm -f core *.core core.conftest.* &&
1893 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1896 for ac_signal in 1 2 13 15; do
1897 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1901 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1902 rm -f -r conftest* confdefs.h
1904 # Predefined preprocessor variables.
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE_NAME "$PACKAGE_NAME"
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_STRING "$PACKAGE_STRING"
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1931 # Let the site file select an alternate cache file if it wants to.
1932 # Prefer explicitly selected file to automatically selected ones.
1933 if test -n "$CONFIG_SITE"; then
1934 set x "$CONFIG_SITE"
1935 elif test "x$prefix" != xNONE; then
1936 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1938 set x "$ac_default_prefix/share/config.site" \
1939 "$ac_default_prefix/etc/config.site"
1944 if test -r "$ac_site_file"; then
1945 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1946 echo "$as_me: loading site script $ac_site_file" >&6;}
1947 sed 's/^/| /' "$ac_site_file" >&5
1953 # Check that the precious variables saved in the cache have kept the same
1955 ac_cache_corrupted=false
1956 for ac_var in $ac_precious_vars; do
1957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958 eval ac_new_set=\$ac_env_${ac_var}_set
1959 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960 eval ac_new_val=\$ac_env_${ac_var}_value
1961 case $ac_old_set,$ac_new_set in
1963 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1967 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1972 if test "x$ac_old_val" != "x$ac_new_val"; then
1973 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1976 echo "$as_me: former value: $ac_old_val" >&2;}
1977 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1978 echo "$as_me: current value: $ac_new_val" >&2;}
1979 ac_cache_corrupted=:
1982 # Pass precious variables to config.status.
1983 if test "$ac_new_set" = set; then
1985 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1986 *) ac_arg=$ac_var=$ac_new_val ;;
1988 case " $ac_configure_args " in
1989 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1990 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994 if $ac_cache_corrupted; then
1995 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1996 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1997 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1998 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1999 { (exit 1); exit 1; }; }
2019 ac_cpp='$CPP $CPPFLAGS'
2020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050 for ac_dir in build "$srcdir"/build; do
2051 if test -f "$ac_dir/install-sh"; then
2053 ac_install_sh="$ac_aux_dir/install-sh -c"
2055 elif test -f "$ac_dir/install.sh"; then
2057 ac_install_sh="$ac_aux_dir/install.sh -c"
2059 elif test -f "$ac_dir/shtool"; then
2061 ac_install_sh="$ac_aux_dir/shtool install -c"
2065 if test -z "$ac_aux_dir"; then
2066 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2067 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2068 { (exit 1); exit 1; }; }
2071 # These three variables are undocumented and unsupported,
2072 # and are intended to be withdrawn in a future Autoconf release.
2073 # They can cause serious problems if a builder's source tree is in a directory
2074 # whose full name contains unusual characters.
2075 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2076 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2077 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2080 eval `$ac_aux_dir/version.sh`
2081 if test -z "$OL_STRING"; then
2082 { { echo "$as_me:$LINENO: error: could not determine version" >&5
2083 echo "$as_me: error: could not determine version" >&2;}
2084 { (exit 1); exit 1; }; }
2087 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2088 ac_cv_shtool="$ac_aux_dir/shtool"
2090 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2091 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2092 { (exit 1); exit 1; }; }
2095 SHTOOL="$ac_cv_shtool"
2097 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2098 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2101 if test -d $ac_aux_dir/CVS; then
2102 OPENLDAP_CVS="(from CVS sources) "
2105 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2107 # Make sure we can run config.sub.
2108 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2109 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2110 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2111 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: checking build system type" >&5
2114 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2115 if test "${ac_cv_build+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 ac_build_alias=$build_alias
2119 test "x$ac_build_alias" = x &&
2120 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2121 test "x$ac_build_alias" = x &&
2122 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2123 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2124 { (exit 1); exit 1; }; }
2125 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2126 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2127 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2128 { (exit 1); exit 1; }; }
2131 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2132 echo "${ECHO_T}$ac_cv_build" >&6; }
2133 case $ac_cv_build in
2135 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2136 echo "$as_me: error: invalid value of canonical build" >&2;}
2137 { (exit 1); exit 1; }; };;
2140 ac_save_IFS=$IFS; IFS='-'
2146 # Remember, the first character of IFS is used to create $*,
2147 # except with old shells:
2150 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2153 { echo "$as_me:$LINENO: checking host system type" >&5
2154 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2155 if test "${ac_cv_host+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 if test "x$host_alias" = x; then
2159 ac_cv_host=$ac_cv_build
2161 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2162 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2163 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2164 { (exit 1); exit 1; }; }
2168 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2169 echo "${ECHO_T}$ac_cv_host" >&6; }
2172 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2173 echo "$as_me: error: invalid value of canonical host" >&2;}
2174 { (exit 1); exit 1; }; };;
2177 ac_save_IFS=$IFS; IFS='-'
2183 # Remember, the first character of IFS is used to create $*,
2184 # except with old shells:
2187 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2190 { echo "$as_me:$LINENO: checking target system type" >&5
2191 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2192 if test "${ac_cv_target+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 if test "x$target_alias" = x; then
2196 ac_cv_target=$ac_cv_host
2198 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2199 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2200 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2201 { (exit 1); exit 1; }; }
2205 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2206 echo "${ECHO_T}$ac_cv_target" >&6; }
2207 case $ac_cv_target in
2209 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2210 echo "$as_me: error: invalid value of canonical target" >&2;}
2211 { (exit 1); exit 1; }; };;
2213 target=$ac_cv_target
2214 ac_save_IFS=$IFS; IFS='-'
2220 # Remember, the first character of IFS is used to create $*,
2221 # except with old shells:
2224 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2227 # The aliases save the names the user supplied, while $host etc.
2228 # will get canonicalized.
2229 test -n "$target_alias" &&
2230 test "$program_prefix$program_suffix$program_transform_name" = \
2232 program_prefix=${target_alias}-
2234 am__api_version="1.9"
2235 # Find a good install program. We prefer a C program (faster),
2236 # so one script is as good as another. But avoid the broken or
2237 # incompatible versions:
2238 # SysV /etc/install, /usr/sbin/install
2239 # SunOS /usr/etc/install
2240 # IRIX /sbin/install
2242 # AmigaOS /C/install, which installs bootblocks on floppy discs
2243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2246 # OS/2's system install, which has a completely different semantic
2247 # ./install, which can be erroneously created by make from ./install.sh.
2248 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2249 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2250 if test -z "$INSTALL"; then
2251 if test "${ac_cv_path_install+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 test -z "$as_dir" && as_dir=.
2259 # Account for people who put trailing slashes in PATH elements.
2261 ./ | .// | /cC/* | \
2262 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2263 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2266 # OSF1 and SCO ODT 3.0 have their own names for install.
2267 # Don't use installbsd from OSF since it installs stuff as root
2269 for ac_prog in ginstall scoinst install; do
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2272 if test $ac_prog = install &&
2273 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274 # AIX install. It has an incompatible calling convention.
2276 elif test $ac_prog = install &&
2277 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278 # program-specific install script used by HP pwplus--don't use.
2281 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2294 if test "${ac_cv_path_install+set}" = set; then
2295 INSTALL=$ac_cv_path_install
2297 # As a last resort, use the slow shell script. Don't cache a
2298 # value for INSTALL within a source directory, because that will
2299 # break other packages using the cache if that directory is
2300 # removed, or if the value is a relative name.
2301 INSTALL=$ac_install_sh
2304 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2305 echo "${ECHO_T}$INSTALL" >&6; }
2307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2308 # It thinks the first close brace ends the variable substitution.
2309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2315 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2316 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2319 echo timestamp > conftest.file
2320 # Do `set' in a subshell so we don't clobber the current shell's
2321 # arguments. Must try -L first in case configure is actually a
2322 # symlink; some systems play weird games with the mod time of symlinks
2323 # (eg FreeBSD returns the mod time of the symlink's containing
2326 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2327 if test "$*" = "X"; then
2329 set X `ls -t $srcdir/configure conftest.file`
2332 if test "$*" != "X $srcdir/configure conftest.file" \
2333 && test "$*" != "X conftest.file $srcdir/configure"; then
2335 # If neither matched, then we have a broken ls. This can happen
2336 # if, for instance, CONFIG_SHELL is bash and it inherits a
2337 # broken ls alias from the environment. This has actually
2338 # happened. Such a system could not be considered "sane".
2339 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2340 alias in your environment" >&5
2341 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2342 alias in your environment" >&2;}
2343 { (exit 1); exit 1; }; }
2346 test "$2" = conftest.file
2352 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2353 Check your system clock" >&5
2354 echo "$as_me: error: newly created file is older than distributed files!
2355 Check your system clock" >&2;}
2356 { (exit 1); exit 1; }; }
2358 { echo "$as_me:$LINENO: result: yes" >&5
2359 echo "${ECHO_T}yes" >&6; }
2360 test "$program_prefix" != NONE &&
2361 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2362 # Use a double $ so make ignores it.
2363 test "$program_suffix" != NONE &&
2364 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2365 # Double any \ or $. echo might interpret backslashes.
2366 # By default was `s,x,x', remove it if useless.
2367 cat <<\_ACEOF >conftest.sed
2368 s/[\\$]/&&/g;s/;s,x,x,$//
2370 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2373 # expand $ac_aux_dir to an absolute path
2374 am_aux_dir=`cd $ac_aux_dir && pwd`
2376 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2377 # Use eval to expand $SHELL
2378 if eval "$MISSING --run true"; then
2379 am_missing_run="$MISSING --run "
2382 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2383 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2386 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2387 # We used to keeping the `.' as first argument, in order to
2388 # allow $(mkdir_p) to be used without argument. As in
2389 # $(mkdir_p) $(somedir)
2390 # where $(somedir) is conditionally defined. However this is wrong
2392 # 1. if the package is installed by a user who cannot write `.'
2393 # make install will fail,
2394 # 2. the above comment should most certainly read
2395 # $(mkdir_p) $(DESTDIR)$(somedir)
2396 # so it does not work when $(somedir) is undefined and
2397 # $(DESTDIR) is not.
2398 # To support the latter case, we have to write
2399 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2400 # so the `.' trick is pointless.
2401 mkdir_p='mkdir -p --'
2403 # On NextStep and OpenStep, the `mkdir' command does not
2404 # recognize any option. It will interpret all options as
2405 # directories to create, and then abort because `.' already
2407 for d in ./-p ./--version;
2409 test -d $d && rmdir $d
2411 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2412 if test -f "$ac_aux_dir/mkinstalldirs"; then
2413 mkdir_p='$(mkinstalldirs)'
2415 mkdir_p='$(install_sh) -d'
2419 for ac_prog in gawk mawk nawk awk
2421 # Extract the first word of "$ac_prog", so it can be a program name with args.
2422 set dummy $ac_prog; ac_word=$2
2423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2425 if test "${ac_cv_prog_AWK+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 if test -n "$AWK"; then
2429 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 test -z "$as_dir" && as_dir=.
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2438 ac_cv_prog_AWK="$ac_prog"
2439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 if test -n "$AWK"; then
2450 { echo "$as_me:$LINENO: result: $AWK" >&5
2451 echo "${ECHO_T}$AWK" >&6; }
2453 { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2458 test -n "$AWK" && break
2461 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2462 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2463 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2464 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 cat >conftest.make <<\_ACEOF
2470 @echo '@@@%%%=$(MAKE)=@@@%%%'
2472 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2473 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2475 eval ac_cv_prog_make_${ac_make}_set=yes;;
2477 eval ac_cv_prog_make_${ac_make}_set=no;;
2481 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2482 { echo "$as_me:$LINENO: result: yes" >&5
2483 echo "${ECHO_T}yes" >&6; }
2486 { echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6; }
2488 SET_MAKE="MAKE=${MAKE-make}"
2491 rm -rf .tst 2>/dev/null
2492 mkdir .tst 2>/dev/null
2493 if test -d .tst; then
2498 rmdir .tst 2>/dev/null
2500 # test to see if srcdir already configured
2501 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2502 test -f $srcdir/config.status; then
2503 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2504 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2505 { (exit 1); exit 1; }; }
2508 # test whether we have cygpath
2509 if test -z "$CYGPATH_W"; then
2510 if (cygpath --version) >/dev/null 2>/dev/null; then
2511 CYGPATH_W='cygpath -w'
2518 # Define the identity of the package.
2523 # Some tools Automake needs.
2525 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2528 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2531 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2534 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2537 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2539 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2541 # Installed binaries are usually stripped using `strip' when the user
2542 # run `make install-strip'. However `strip' might not be the right
2543 # tool to use in cross-compilation environments, therefore Automake
2544 # will honor the `STRIP' environment variable to overrule this program.
2545 if test "$cross_compiling" != no; then
2546 if test -n "$ac_tool_prefix"; then
2547 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2548 set dummy ${ac_tool_prefix}strip; ac_word=$2
2549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2551 if test "${ac_cv_prog_STRIP+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 if test -n "$STRIP"; then
2555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 STRIP=$ac_cv_prog_STRIP
2575 if test -n "$STRIP"; then
2576 { echo "$as_me:$LINENO: result: $STRIP" >&5
2577 echo "${ECHO_T}$STRIP" >&6; }
2579 { echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6; }
2585 if test -z "$ac_cv_prog_STRIP"; then
2587 # Extract the first word of "strip", so it can be a program name with args.
2588 set dummy strip; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 if test -n "$ac_ct_STRIP"; then
2595 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_ac_ct_STRIP="strip"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2615 if test -n "$ac_ct_STRIP"; then
2616 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2617 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2623 if test "x$ac_ct_STRIP" = x; then
2626 case $cross_compiling:$ac_tool_warned in
2628 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2629 whose name does not start with the host triplet. If you think this
2630 configuration is useful to you, please write to autoconf@gnu.org." >&5
2631 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2632 whose name does not start with the host triplet. If you think this
2633 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2634 ac_tool_warned=yes ;;
2639 STRIP="$ac_cv_prog_STRIP"
2643 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2645 # We need awk for the "check" target. The system "awk" is bad on
2647 # Always define AMTAR for backward compatibility.
2649 AMTAR=${AMTAR-"${am_missing_run}tar"}
2651 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2657 cat >>confdefs.h <<_ACEOF
2658 #define OPENLDAP_PACKAGE "$PACKAGE"
2662 cat >>confdefs.h <<_ACEOF
2663 #define OPENLDAP_VERSION "$VERSION"
2668 cat >>confdefs.h <<_ACEOF
2669 #define LDAP_VENDOR_VERSION $OL_API_INC
2673 cat >>confdefs.h <<_ACEOF
2674 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2678 cat >>confdefs.h <<_ACEOF
2679 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2683 cat >>confdefs.h <<_ACEOF
2684 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2688 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2690 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2692 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2700 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2702 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2704 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2707 { echo "$as_me:$LINENO: checking configure arguments" >&5
2708 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2713 ldap_subdir="/openldap"
2716 # Check whether --with-subdir was given.
2717 if test "${with_subdir+set}" = set; then
2718 withval=$with_subdir; case "$withval" in
2724 ldap_subdir="$withval"
2727 ldap_subdir="/$withval"
2734 # OpenLDAP --enable-debug
2736 # Check whether --enable-debug was given.
2737 if test "${enable_debug+set}" = set; then
2738 enableval=$enable_debug;
2740 for ol_val in no yes traditional ; do
2741 if test "$enableval" = "$ol_val" ; then
2745 if test "$ol_arg" = "invalid" ; then
2746 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2747 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2748 { (exit 1); exit 1; }; }
2750 ol_enable_debug="$ol_arg"
2756 # end --enable-debug
2757 # OpenLDAP --enable-dynamic
2759 # Check whether --enable-dynamic was given.
2760 if test "${enable_dynamic+set}" = set; then
2761 enableval=$enable_dynamic;
2763 for ol_val in auto yes no ; do
2764 if test "$enableval" = "$ol_val" ; then
2768 if test "$ol_arg" = "invalid" ; then
2769 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2770 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2771 { (exit 1); exit 1; }; }
2773 ol_enable_dynamic="$ol_arg"
2776 ol_enable_dynamic=no
2779 # end --enable-dynamic
2780 # OpenLDAP --enable-syslog
2782 # Check whether --enable-syslog was given.
2783 if test "${enable_syslog+set}" = set; then
2784 enableval=$enable_syslog;
2786 for ol_val in auto yes no ; do
2787 if test "$enableval" = "$ol_val" ; then
2791 if test "$ol_arg" = "invalid" ; then
2792 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2793 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2794 { (exit 1); exit 1; }; }
2796 ol_enable_syslog="$ol_arg"
2799 ol_enable_syslog=auto
2802 # end --enable-syslog
2803 # OpenLDAP --enable-proctitle
2805 # Check whether --enable-proctitle was given.
2806 if test "${enable_proctitle+set}" = set; then
2807 enableval=$enable_proctitle;
2809 for ol_val in auto yes no ; 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-proctitle" >&5
2816 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2817 { (exit 1); exit 1; }; }
2819 ol_enable_proctitle="$ol_arg"
2822 ol_enable_proctitle=yes
2825 # end --enable-proctitle
2826 ol_enable_referrals=${ol_enable_referrals-no}
2827 # OpenLDAP --enable-ipv6
2829 # Check whether --enable-ipv6 was given.
2830 if test "${enable_ipv6+set}" = set; then
2831 enableval=$enable_ipv6;
2833 for ol_val in auto yes no ; do
2834 if test "$enableval" = "$ol_val" ; then
2838 if test "$ol_arg" = "invalid" ; then
2839 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2840 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2841 { (exit 1); exit 1; }; }
2843 ol_enable_ipv6="$ol_arg"
2850 # OpenLDAP --enable-local
2852 # Check whether --enable-local was given.
2853 if test "${enable_local+set}" = set; then
2854 enableval=$enable_local;
2856 for ol_val in auto yes no ; do
2857 if test "$enableval" = "$ol_val" ; then
2861 if test "$ol_arg" = "invalid" ; then
2862 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2863 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2864 { (exit 1); exit 1; }; }
2866 ol_enable_local="$ol_arg"
2869 ol_enable_local=auto
2872 # end --enable-local
2874 # OpenLDAP --with-cyrus_sasl
2876 # Check whether --with-cyrus_sasl was given.
2877 if test "${with_cyrus_sasl+set}" = set; then
2878 withval=$with_cyrus_sasl;
2880 for ol_val in auto yes no ; do
2881 if test "$withval" = "$ol_val" ; then
2885 if test "$ol_arg" = "invalid" ; then
2886 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2887 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2888 { (exit 1); exit 1; }; }
2890 ol_with_cyrus_sasl="$ol_arg"
2893 ol_with_cyrus_sasl="auto"
2895 # end --with-cyrus_sasl
2897 # OpenLDAP --with-fetch
2899 # Check whether --with-fetch was given.
2900 if test "${with_fetch+set}" = set; then
2901 withval=$with_fetch;
2903 for ol_val in auto yes no ; do
2904 if test "$withval" = "$ol_val" ; then
2908 if test "$ol_arg" = "invalid" ; then
2909 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2910 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2911 { (exit 1); exit 1; }; }
2913 ol_with_fetch="$ol_arg"
2916 ol_with_fetch="auto"
2920 # OpenLDAP --with-threads
2922 # Check whether --with-threads was given.
2923 if test "${with_threads+set}" = set; then
2924 withval=$with_threads;
2926 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2927 if test "$withval" = "$ol_val" ; then
2931 if test "$ol_arg" = "invalid" ; then
2932 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2933 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2934 { (exit 1); exit 1; }; }
2936 ol_with_threads="$ol_arg"
2939 ol_with_threads="auto"
2941 # end --with-threads
2943 # OpenLDAP --with-tls
2945 # Check whether --with-tls was given.
2946 if test "${with_tls+set}" = set; then
2949 for ol_val in auto openssl gnutls yes no ; do
2950 if test "$withval" = "$ol_val" ; then
2954 if test "$ol_arg" = "invalid" ; then
2955 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2956 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2957 { (exit 1); exit 1; }; }
2959 ol_with_tls="$ol_arg"
2966 # OpenLDAP --with-yielding_select
2968 # Check whether --with-yielding_select was given.
2969 if test "${with_yielding_select+set}" = set; then
2970 withval=$with_yielding_select;
2972 for ol_val in auto yes no manual ; do
2973 if test "$withval" = "$ol_val" ; then
2977 if test "$ol_arg" = "invalid" ; then
2978 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2979 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2980 { (exit 1); exit 1; }; }
2982 ol_with_yielding_select="$ol_arg"
2985 ol_with_yielding_select="auto"
2987 # end --with-yielding_select
2989 # OpenLDAP --with-mp
2991 # Check whether --with-mp was given.
2992 if test "${with_mp+set}" = set; then
2995 for ol_val in auto longlong long bignum gmp yes no ; do
2996 if test "$withval" = "$ol_val" ; then
3000 if test "$ol_arg" = "invalid" ; then
3001 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3002 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3003 { (exit 1); exit 1; }; }
3005 ol_with_mp="$ol_arg"
3012 # OpenLDAP --with-odbc
3014 # Check whether --with-odbc was given.
3015 if test "${with_odbc+set}" = set; then
3018 for ol_val in auto iodbc unixodbc ; do
3019 if test "$withval" = "$ol_val" ; then
3023 if test "$ol_arg" = "invalid" ; then
3024 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3025 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3026 { (exit 1); exit 1; }; }
3028 ol_with_odbc="$ol_arg"
3037 # Check whether --enable-xxslapdoptions was given.
3038 if test "${enable_xxslapdoptions+set}" = set; then
3039 enableval=$enable_xxslapdoptions;
3042 # OpenLDAP --enable-slapd
3044 # Check whether --enable-slapd was given.
3045 if test "${enable_slapd+set}" = set; then
3046 enableval=$enable_slapd;
3048 for ol_val in auto yes no ; do
3049 if test "$enableval" = "$ol_val" ; then
3053 if test "$ol_arg" = "invalid" ; then
3054 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3055 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3056 { (exit 1); exit 1; }; }
3058 ol_enable_slapd="$ol_arg"
3064 # end --enable-slapd
3065 # OpenLDAP --enable-dynacl
3067 # Check whether --enable-dynacl was given.
3068 if test "${enable_dynacl+set}" = set; then
3069 enableval=$enable_dynacl;
3071 for ol_val in auto yes no ; do
3072 if test "$enableval" = "$ol_val" ; then
3076 if test "$ol_arg" = "invalid" ; then
3077 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3078 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3079 { (exit 1); exit 1; }; }
3081 ol_enable_dynacl="$ol_arg"
3087 # end --enable-dynacl
3088 # OpenLDAP --enable-aci
3090 # Check whether --enable-aci was given.
3091 if test "${enable_aci+set}" = set; then
3092 enableval=$enable_aci;
3094 for ol_val in no yes mod ; do
3095 if test "$enableval" = "$ol_val" ; then
3099 if test "$ol_arg" = "invalid" ; then
3100 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3101 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3102 { (exit 1); exit 1; }; }
3104 ol_enable_aci="$ol_arg"
3111 # OpenLDAP --enable-cleartext
3113 # Check whether --enable-cleartext was given.
3114 if test "${enable_cleartext+set}" = set; then
3115 enableval=$enable_cleartext;
3117 for ol_val in auto yes no ; do
3118 if test "$enableval" = "$ol_val" ; then
3122 if test "$ol_arg" = "invalid" ; then
3123 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3124 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3125 { (exit 1); exit 1; }; }
3127 ol_enable_cleartext="$ol_arg"
3130 ol_enable_cleartext=yes
3133 # end --enable-cleartext
3134 # OpenLDAP --enable-crypt
3136 # Check whether --enable-crypt was given.
3137 if test "${enable_crypt+set}" = set; then
3138 enableval=$enable_crypt;
3140 for ol_val in auto yes no ; do
3141 if test "$enableval" = "$ol_val" ; then
3145 if test "$ol_arg" = "invalid" ; then
3146 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3147 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3148 { (exit 1); exit 1; }; }
3150 ol_enable_crypt="$ol_arg"
3156 # end --enable-crypt
3157 # OpenLDAP --enable-lmpasswd
3159 # Check whether --enable-lmpasswd was given.
3160 if test "${enable_lmpasswd+set}" = set; then
3161 enableval=$enable_lmpasswd;
3163 for ol_val in auto yes no ; do
3164 if test "$enableval" = "$ol_val" ; then
3168 if test "$ol_arg" = "invalid" ; then
3169 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3170 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3171 { (exit 1); exit 1; }; }
3173 ol_enable_lmpasswd="$ol_arg"
3176 ol_enable_lmpasswd=no
3179 # end --enable-lmpasswd
3180 # OpenLDAP --enable-spasswd
3182 # Check whether --enable-spasswd was given.
3183 if test "${enable_spasswd+set}" = set; then
3184 enableval=$enable_spasswd;
3186 for ol_val in auto yes no ; do
3187 if test "$enableval" = "$ol_val" ; then
3191 if test "$ol_arg" = "invalid" ; then
3192 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3193 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3194 { (exit 1); exit 1; }; }
3196 ol_enable_spasswd="$ol_arg"
3199 ol_enable_spasswd=no
3202 # end --enable-spasswd
3203 # OpenLDAP --enable-modules
3205 # Check whether --enable-modules was given.
3206 if test "${enable_modules+set}" = set; then
3207 enableval=$enable_modules;
3209 for ol_val in auto yes no ; do
3210 if test "$enableval" = "$ol_val" ; then
3214 if test "$ol_arg" = "invalid" ; then
3215 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3216 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3217 { (exit 1); exit 1; }; }
3219 ol_enable_modules="$ol_arg"
3222 ol_enable_modules=no
3225 # end --enable-modules
3226 # OpenLDAP --enable-rewrite
3228 # Check whether --enable-rewrite was given.
3229 if test "${enable_rewrite+set}" = set; then
3230 enableval=$enable_rewrite;
3232 for ol_val in auto yes no ; do
3233 if test "$enableval" = "$ol_val" ; then
3237 if test "$ol_arg" = "invalid" ; then
3238 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3239 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3240 { (exit 1); exit 1; }; }
3242 ol_enable_rewrite="$ol_arg"
3245 ol_enable_rewrite=auto
3248 # end --enable-rewrite
3249 # OpenLDAP --enable-rlookups
3251 # Check whether --enable-rlookups was given.
3252 if test "${enable_rlookups+set}" = set; then
3253 enableval=$enable_rlookups;
3255 for ol_val in auto yes no ; do
3256 if test "$enableval" = "$ol_val" ; then
3260 if test "$ol_arg" = "invalid" ; then
3261 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3262 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3263 { (exit 1); exit 1; }; }
3265 ol_enable_rlookups="$ol_arg"
3268 ol_enable_rlookups=no
3271 # end --enable-rlookups
3272 # OpenLDAP --enable-slapi
3274 # Check whether --enable-slapi was given.
3275 if test "${enable_slapi+set}" = set; then
3276 enableval=$enable_slapi;
3278 for ol_val in auto yes no ; do
3279 if test "$enableval" = "$ol_val" ; then
3283 if test "$ol_arg" = "invalid" ; then
3284 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3285 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3286 { (exit 1); exit 1; }; }
3288 ol_enable_slapi="$ol_arg"
3294 # end --enable-slapi
3295 # OpenLDAP --enable-slp
3297 # Check whether --enable-slp was given.
3298 if test "${enable_slp+set}" = set; then
3299 enableval=$enable_slp;
3301 for ol_val in auto yes no ; do
3302 if test "$enableval" = "$ol_val" ; then
3306 if test "$ol_arg" = "invalid" ; then
3307 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3308 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3309 { (exit 1); exit 1; }; }
3311 ol_enable_slp="$ol_arg"
3318 # OpenLDAP --enable-wrappers
3320 # Check whether --enable-wrappers was given.
3321 if test "${enable_wrappers+set}" = set; then
3322 enableval=$enable_wrappers;
3324 for ol_val in auto yes no ; do
3325 if test "$enableval" = "$ol_val" ; then
3329 if test "$ol_arg" = "invalid" ; then
3330 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3331 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3332 { (exit 1); exit 1; }; }
3334 ol_enable_wrappers="$ol_arg"
3337 ol_enable_wrappers=no
3340 # end --enable-wrappers
3355 # Check whether --enable-xxslapbackends was given.
3356 if test "${enable_xxslapbackends+set}" = set; then
3357 enableval=$enable_xxslapbackends;
3361 # OpenLDAP --enable-backends
3363 # Check whether --enable-backends was given.
3364 if test "${enable_backends+set}" = set; then
3365 enableval=$enable_backends;
3367 for ol_val in no yes mod ; do
3368 if test "$enableval" = "$ol_val" ; then
3372 if test "$ol_arg" = "invalid" ; then
3373 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3374 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3375 { (exit 1); exit 1; }; }
3377 ol_enable_backends="$ol_arg"
3381 # end --enable-backends
3382 # OpenLDAP --enable-bdb
3384 # Check whether --enable-bdb was given.
3385 if test "${enable_bdb+set}" = set; then
3386 enableval=$enable_bdb;
3388 for ol_val in no yes mod ; do
3389 if test "$enableval" = "$ol_val" ; then
3393 if test "$ol_arg" = "invalid" ; then
3394 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3395 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3396 { (exit 1); exit 1; }; }
3398 ol_enable_bdb="$ol_arg"
3401 ol_enable_bdb=${ol_enable_backends:-yes}
3405 # OpenLDAP --enable-dnssrv
3407 # Check whether --enable-dnssrv was given.
3408 if test "${enable_dnssrv+set}" = set; then
3409 enableval=$enable_dnssrv;
3411 for ol_val in no yes mod ; do
3412 if test "$enableval" = "$ol_val" ; then
3416 if test "$ol_arg" = "invalid" ; then
3417 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3418 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3419 { (exit 1); exit 1; }; }
3421 ol_enable_dnssrv="$ol_arg"
3424 ol_enable_dnssrv=${ol_enable_backends:-no}
3427 # end --enable-dnssrv
3428 # OpenLDAP --enable-hdb
3430 # Check whether --enable-hdb was given.
3431 if test "${enable_hdb+set}" = set; then
3432 enableval=$enable_hdb;
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-hdb" >&5
3441 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3442 { (exit 1); exit 1; }; }
3444 ol_enable_hdb="$ol_arg"
3447 ol_enable_hdb=${ol_enable_backends:-yes}
3451 # OpenLDAP --enable-ldap
3453 # Check whether --enable-ldap was given.
3454 if test "${enable_ldap+set}" = set; then
3455 enableval=$enable_ldap;
3457 for ol_val in no yes mod ; do
3458 if test "$enableval" = "$ol_val" ; then
3462 if test "$ol_arg" = "invalid" ; then
3463 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3464 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3465 { (exit 1); exit 1; }; }
3467 ol_enable_ldap="$ol_arg"
3470 ol_enable_ldap=${ol_enable_backends:-no}
3474 # OpenLDAP --enable-meta
3476 # Check whether --enable-meta was given.
3477 if test "${enable_meta+set}" = set; then
3478 enableval=$enable_meta;
3480 for ol_val in no yes mod ; do
3481 if test "$enableval" = "$ol_val" ; then
3485 if test "$ol_arg" = "invalid" ; then
3486 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3487 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3488 { (exit 1); exit 1; }; }
3490 ol_enable_meta="$ol_arg"
3493 ol_enable_meta=${ol_enable_backends:-no}
3497 # OpenLDAP --enable-monitor
3499 # Check whether --enable-monitor was given.
3500 if test "${enable_monitor+set}" = set; then
3501 enableval=$enable_monitor;
3503 for ol_val in no yes mod ; do
3504 if test "$enableval" = "$ol_val" ; then
3508 if test "$ol_arg" = "invalid" ; then
3509 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3510 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3511 { (exit 1); exit 1; }; }
3513 ol_enable_monitor="$ol_arg"
3516 ol_enable_monitor=${ol_enable_backends:-yes}
3519 # end --enable-monitor
3520 # OpenLDAP --enable-null
3522 # Check whether --enable-null was given.
3523 if test "${enable_null+set}" = set; then
3524 enableval=$enable_null;
3526 for ol_val in no yes mod ; do
3527 if test "$enableval" = "$ol_val" ; then
3531 if test "$ol_arg" = "invalid" ; then
3532 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3533 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3534 { (exit 1); exit 1; }; }
3536 ol_enable_null="$ol_arg"
3539 ol_enable_null=${ol_enable_backends:-no}
3543 # OpenLDAP --enable-passwd
3545 # Check whether --enable-passwd was given.
3546 if test "${enable_passwd+set}" = set; then
3547 enableval=$enable_passwd;
3549 for ol_val in no yes mod ; do
3550 if test "$enableval" = "$ol_val" ; then
3554 if test "$ol_arg" = "invalid" ; then
3555 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3556 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3557 { (exit 1); exit 1; }; }
3559 ol_enable_passwd="$ol_arg"
3562 ol_enable_passwd=${ol_enable_backends:-no}
3565 # end --enable-passwd
3566 # OpenLDAP --enable-perl
3568 # Check whether --enable-perl was given.
3569 if test "${enable_perl+set}" = set; then
3570 enableval=$enable_perl;
3572 for ol_val in no yes mod ; do
3573 if test "$enableval" = "$ol_val" ; then
3577 if test "$ol_arg" = "invalid" ; then
3578 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3579 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3580 { (exit 1); exit 1; }; }
3582 ol_enable_perl="$ol_arg"
3585 ol_enable_perl=${ol_enable_backends:-no}
3589 # OpenLDAP --enable-relay
3591 # Check whether --enable-relay was given.
3592 if test "${enable_relay+set}" = set; then
3593 enableval=$enable_relay;
3595 for ol_val in no yes mod ; do
3596 if test "$enableval" = "$ol_val" ; then
3600 if test "$ol_arg" = "invalid" ; then
3601 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3602 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3603 { (exit 1); exit 1; }; }
3605 ol_enable_relay="$ol_arg"
3608 ol_enable_relay=${ol_enable_backends:-yes}
3611 # end --enable-relay
3612 # OpenLDAP --enable-shell
3614 # Check whether --enable-shell was given.
3615 if test "${enable_shell+set}" = set; then
3616 enableval=$enable_shell;
3618 for ol_val in no yes mod ; do
3619 if test "$enableval" = "$ol_val" ; then
3623 if test "$ol_arg" = "invalid" ; then
3624 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3625 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3626 { (exit 1); exit 1; }; }
3628 ol_enable_shell="$ol_arg"
3631 ol_enable_shell=${ol_enable_backends:-no}
3634 # end --enable-shell
3635 # OpenLDAP --enable-sql
3637 # Check whether --enable-sql was given.
3638 if test "${enable_sql+set}" = set; then
3639 enableval=$enable_sql;
3641 for ol_val in no yes mod ; do
3642 if test "$enableval" = "$ol_val" ; then
3646 if test "$ol_arg" = "invalid" ; then
3647 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3648 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3649 { (exit 1); exit 1; }; }
3651 ol_enable_sql="$ol_arg"
3654 ol_enable_sql=${ol_enable_backends:-no}
3659 Overlays="accesslog \
3676 # Check whether --enable-xxslapoverlays was given.
3677 if test "${enable_xxslapoverlays+set}" = set; then
3678 enableval=$enable_xxslapoverlays;
3682 # OpenLDAP --enable-overlays
3684 # Check whether --enable-overlays was given.
3685 if test "${enable_overlays+set}" = set; then
3686 enableval=$enable_overlays;
3688 for ol_val in no yes mod ; do
3689 if test "$enableval" = "$ol_val" ; then
3693 if test "$ol_arg" = "invalid" ; then
3694 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3695 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3696 { (exit 1); exit 1; }; }
3698 ol_enable_overlays="$ol_arg"
3702 # end --enable-overlays
3703 # OpenLDAP --enable-accesslog
3705 # Check whether --enable-accesslog was given.
3706 if test "${enable_accesslog+set}" = set; then
3707 enableval=$enable_accesslog;
3709 for ol_val in no yes mod ; do
3710 if test "$enableval" = "$ol_val" ; then
3714 if test "$ol_arg" = "invalid" ; then
3715 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3716 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3717 { (exit 1); exit 1; }; }
3719 ol_enable_accesslog="$ol_arg"
3722 ol_enable_accesslog=${ol_enable_overlays:-no}
3725 # end --enable-accesslog
3727 # OpenLDAP --enable-auditlog
3729 # Check whether --enable-auditlog was given.
3730 if test "${enable_auditlog+set}" = set; then
3731 enableval=$enable_auditlog;
3733 for ol_val in no yes mod ; do
3734 if test "$enableval" = "$ol_val" ; then
3738 if test "$ol_arg" = "invalid" ; then
3739 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3740 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3741 { (exit 1); exit 1; }; }
3743 ol_enable_auditlog="$ol_arg"
3746 ol_enable_auditlog=${ol_enable_overlays:-no}
3749 # end --enable-auditlog
3751 # OpenLDAP --enable-constraint
3753 # Check whether --enable-constraint was given.
3754 if test "${enable_constraint+set}" = set; then
3755 enableval=$enable_constraint;
3757 for ol_val in no yes mod ; do
3758 if test "$enableval" = "$ol_val" ; then
3762 if test "$ol_arg" = "invalid" ; then
3763 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3764 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3765 { (exit 1); exit 1; }; }
3767 ol_enable_constraint="$ol_arg"
3770 ol_enable_constraint=${ol_enable_overlays:-no}
3773 # end --enable-constraint
3775 # OpenLDAP --enable-dds
3777 # Check whether --enable-dds was given.
3778 if test "${enable_dds+set}" = set; then
3779 enableval=$enable_dds;
3781 for ol_val in no yes mod ; do
3782 if test "$enableval" = "$ol_val" ; then
3786 if test "$ol_arg" = "invalid" ; then
3787 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3788 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3789 { (exit 1); exit 1; }; }
3791 ol_enable_dds="$ol_arg"
3794 ol_enable_dds=${ol_enable_overlays:-no}
3799 # OpenLDAP --enable-dyngroup
3801 # Check whether --enable-dyngroup was given.
3802 if test "${enable_dyngroup+set}" = set; then
3803 enableval=$enable_dyngroup;
3805 for ol_val in no yes mod ; do
3806 if test "$enableval" = "$ol_val" ; then
3810 if test "$ol_arg" = "invalid" ; then
3811 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3812 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3813 { (exit 1); exit 1; }; }
3815 ol_enable_dyngroup="$ol_arg"
3818 ol_enable_dyngroup=${ol_enable_overlays:-no}
3821 # end --enable-dyngroup
3823 # OpenLDAP --enable-dynlist
3825 # Check whether --enable-dynlist was given.
3826 if test "${enable_dynlist+set}" = set; then
3827 enableval=$enable_dynlist;
3829 for ol_val in no yes mod ; do
3830 if test "$enableval" = "$ol_val" ; then
3834 if test "$ol_arg" = "invalid" ; then
3835 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3836 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3837 { (exit 1); exit 1; }; }
3839 ol_enable_dynlist="$ol_arg"
3842 ol_enable_dynlist=${ol_enable_overlays:-no}
3845 # end --enable-dynlist
3847 # OpenLDAP --enable-ppolicy
3849 # Check whether --enable-ppolicy was given.
3850 if test "${enable_ppolicy+set}" = set; then
3851 enableval=$enable_ppolicy;
3853 for ol_val in no yes mod ; do
3854 if test "$enableval" = "$ol_val" ; then
3858 if test "$ol_arg" = "invalid" ; then
3859 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3860 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3861 { (exit 1); exit 1; }; }
3863 ol_enable_ppolicy="$ol_arg"
3866 ol_enable_ppolicy=${ol_enable_overlays:-no}
3869 # end --enable-ppolicy
3871 # OpenLDAP --enable-proxycache
3873 # Check whether --enable-proxycache was given.
3874 if test "${enable_proxycache+set}" = set; then
3875 enableval=$enable_proxycache;
3877 for ol_val in no yes mod ; do
3878 if test "$enableval" = "$ol_val" ; then
3882 if test "$ol_arg" = "invalid" ; then
3883 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3884 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3885 { (exit 1); exit 1; }; }
3887 ol_enable_proxycache="$ol_arg"
3890 ol_enable_proxycache=${ol_enable_overlays:-no}
3893 # end --enable-proxycache
3895 # OpenLDAP --enable-refint
3897 # Check whether --enable-refint was given.
3898 if test "${enable_refint+set}" = set; then
3899 enableval=$enable_refint;
3901 for ol_val in no yes mod ; do
3902 if test "$enableval" = "$ol_val" ; then
3906 if test "$ol_arg" = "invalid" ; then
3907 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3908 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3909 { (exit 1); exit 1; }; }
3911 ol_enable_refint="$ol_arg"
3914 ol_enable_refint=${ol_enable_overlays:-no}
3917 # end --enable-refint
3919 # OpenLDAP --enable-retcode
3921 # Check whether --enable-retcode was given.
3922 if test "${enable_retcode+set}" = set; then
3923 enableval=$enable_retcode;
3925 for ol_val in no yes mod ; do
3926 if test "$enableval" = "$ol_val" ; then
3930 if test "$ol_arg" = "invalid" ; then
3931 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3932 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3933 { (exit 1); exit 1; }; }
3935 ol_enable_retcode="$ol_arg"
3938 ol_enable_retcode=${ol_enable_overlays:-no}
3941 # end --enable-retcode
3943 # OpenLDAP --enable-rwm
3945 # Check whether --enable-rwm was given.
3946 if test "${enable_rwm+set}" = set; then
3947 enableval=$enable_rwm;
3949 for ol_val in no yes mod ; do
3950 if test "$enableval" = "$ol_val" ; then
3954 if test "$ol_arg" = "invalid" ; then
3955 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3956 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3957 { (exit 1); exit 1; }; }
3959 ol_enable_rwm="$ol_arg"
3962 ol_enable_rwm=${ol_enable_overlays:-no}
3967 # OpenLDAP --enable-seqmod
3969 # Check whether --enable-seqmod was given.
3970 if test "${enable_seqmod+set}" = set; then
3971 enableval=$enable_seqmod;
3973 for ol_val in no yes mod ; do
3974 if test "$enableval" = "$ol_val" ; then
3978 if test "$ol_arg" = "invalid" ; then
3979 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3980 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3981 { (exit 1); exit 1; }; }
3983 ol_enable_seqmod="$ol_arg"
3986 ol_enable_seqmod=${ol_enable_overlays:-yes}
3989 # end --enable-seqmod
3991 # OpenLDAP --enable-syncprov
3993 # Check whether --enable-syncprov was given.
3994 if test "${enable_syncprov+set}" = set; then
3995 enableval=$enable_syncprov;
3997 for ol_val in no yes mod ; do
3998 if test "$enableval" = "$ol_val" ; then
4002 if test "$ol_arg" = "invalid" ; then
4003 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4004 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4005 { (exit 1); exit 1; }; }
4007 ol_enable_syncprov="$ol_arg"
4010 ol_enable_syncprov=${ol_enable_overlays:-yes}
4013 # end --enable-syncprov
4015 # OpenLDAP --enable-translucent
4017 # Check whether --enable-translucent was given.
4018 if test "${enable_translucent+set}" = set; then
4019 enableval=$enable_translucent;
4021 for ol_val in no yes mod ; do
4022 if test "$enableval" = "$ol_val" ; then
4026 if test "$ol_arg" = "invalid" ; then
4027 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4028 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4029 { (exit 1); exit 1; }; }
4031 ol_enable_translucent="$ol_arg"
4034 ol_enable_translucent=${ol_enable_overlays:-no}
4037 # end --enable-translucent
4039 # OpenLDAP --enable-unique
4041 # Check whether --enable-unique was given.
4042 if test "${enable_unique+set}" = set; then
4043 enableval=$enable_unique;
4045 for ol_val in no yes mod ; do
4046 if test "$enableval" = "$ol_val" ; then
4050 if test "$ol_arg" = "invalid" ; then
4051 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4052 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4053 { (exit 1); exit 1; }; }
4055 ol_enable_unique="$ol_arg"
4058 ol_enable_unique=${ol_enable_overlays:-no}
4061 # end --enable-unique
4063 # OpenLDAP --enable-valsort
4065 # Check whether --enable-valsort was given.
4066 if test "${enable_valsort+set}" = set; then
4067 enableval=$enable_valsort;
4069 for ol_val in no yes mod ; do
4070 if test "$enableval" = "$ol_val" ; then
4074 if test "$ol_arg" = "invalid" ; then
4075 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4076 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4077 { (exit 1); exit 1; }; }
4079 ol_enable_valsort="$ol_arg"
4082 ol_enable_valsort=${ol_enable_overlays:-no}
4085 # end --enable-valsort
4088 # Check whether --enable-xxliboptions was given.
4089 if test "${enable_xxliboptions+set}" = set; then
4090 enableval=$enable_xxliboptions;
4093 # Check whether --enable-static was given.
4094 if test "${enable_static+set}" = set; then
4095 enableval=$enable_static; p=${PACKAGE-default}
4097 yes) enable_static=yes ;;
4098 no) enable_static=no ;;
4101 # Look at the argument we got. We use all the common list separators.
4102 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4103 for pkg in $enableval; do
4105 if test "X$pkg" = "X$p"; then
4117 # Check whether --enable-shared was given.
4118 if test "${enable_shared+set}" = set; then
4119 enableval=$enable_shared; p=${PACKAGE-default}
4121 yes) enable_shared=yes ;;
4122 no) enable_shared=no ;;
4125 # Look at the argument we got. We use all the common list separators.
4126 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4127 for pkg in $enableval; do
4129 if test "X$pkg" = "X$p"; then
4144 if test $ol_enable_slapd = no ; then
4145 if test $ol_enable_slapi = yes ; then
4146 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4147 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4149 case "$ol_enable_backends" in yes | mod)
4150 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4151 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4153 for i in $Backends; do
4154 eval "ol_tmp=\$ol_enable_$i"
4155 if test $ol_tmp != no ; then
4156 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4157 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4158 eval "ol_enable_$i=no"
4161 if test $ol_enable_modules = yes ; then
4162 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4163 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4165 if test $ol_enable_wrappers = yes ; then
4166 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4167 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4169 if test $ol_enable_rlookups = yes ; then
4170 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4171 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4173 if test $ol_enable_dynacl = yes ; then
4174 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4175 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4177 if test $ol_enable_aci != no ; then
4178 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4179 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4181 if test $ol_enable_rewrite = yes ; then
4182 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4183 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4185 case "$ol_enable_overlays" in yes | mod)
4186 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4187 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4189 for i in $Overlays; do
4190 eval "ol_tmp=\$ol_enable_$i"
4191 if test $ol_tmp != no ; then
4192 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4193 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4194 eval "ol_enable_$i=no"
4198 # force settings to no
4203 ol_enable_modules=no
4204 ol_enable_rlookups=no
4207 ol_enable_wrappers=no
4209 ol_enable_rewrite=no
4211 elif test $ol_enable_modules != yes &&
4212 test $ol_enable_bdb = no &&
4213 test $ol_enable_dnssrv = no &&
4214 test $ol_enable_hdb = no &&
4215 test $ol_enable_ldap = no &&
4216 test $ol_enable_meta = no &&
4217 test $ol_enable_monitor = no &&
4218 test $ol_enable_null = no &&
4219 test $ol_enable_passwd = no &&
4220 test $ol_enable_perl = no &&
4221 test $ol_enable_relay = no &&
4222 test $ol_enable_shell = no &&
4223 test $ol_enable_sql = no ; then
4225 if test $ol_enable_slapd = yes ; then
4226 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4227 echo "$as_me: error: slapd requires a backend" >&2;}
4228 { (exit 1); exit 1; }; }
4230 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4231 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4236 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4237 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4238 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4239 { (exit 1); exit 1; }; }
4242 if test $ol_enable_lmpasswd = yes ; then
4243 if test $ol_with_tls = no ; then
4244 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4245 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4246 { (exit 1); exit 1; }; }
4250 if test $ol_enable_spasswd = yes ; then
4251 if test $ol_with_cyrus_sasl = no ; then
4252 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4253 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4254 { (exit 1); exit 1; }; }
4256 ol_with_cyrus_sasl=yes
4259 { echo "$as_me:$LINENO: result: done" >&5
4260 echo "${ECHO_T}done" >&6; }
4304 BUILD_TRANSLUCENT=no
4308 SLAPD_STATIC_OVERLAYS=
4309 SLAPD_DYNAMIC_OVERLAYS=
4311 SLAPD_MODULES_LDFLAGS=
4312 SLAPD_MODULES_CPPFLAGS=
4314 SLAPD_STATIC_BACKENDS=back-ldif
4315 SLAPD_DYNAMIC_BACKENDS=
4341 cat >>confdefs.h <<\_ACEOF
4342 #define HAVE_MKVERSION 1
4350 *-*-aix*) if test -z "$CC" ; then
4351 case "$ol_with_threads" in
4352 auto | yes | posix) ol_aix_threads=yes ;;
4358 if test $ol_aix_threads = yes ; then
4359 if test -z "${CC}" ; then
4360 for ac_prog in cc_r xlc_r cc
4362 # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4366 if test "${ac_cv_prog_CC+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 if test -n "$CC"; then
4370 ac_cv_prog_CC="$CC" # Let the user override the test.
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_CC="$ac_prog"
4380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 if test -n "$CC"; then
4391 { echo "$as_me:$LINENO: result: $CC" >&5
4392 echo "${ECHO_T}$CC" >&6; }
4394 { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4399 test -n "$CC" && break
4403 if test "$CC" = cc ; then
4404 if test $ol_with_threads != auto ; then
4405 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4406 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4407 { (exit 1); exit 1; }; }
4409 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4410 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4416 case ${CC} in cc_r | xlc_r)
4417 ol_with_threads=posix
4418 ol_cv_pthread_create=yes
4423 if test -z "${CC}"; then
4424 for ac_prog in cc gcc
4426 # Extract the first word of "$ac_prog", so it can be a program name with args.
4427 set dummy $ac_prog; ac_word=$2
4428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4430 if test "${ac_cv_prog_CC+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 if test -n "$CC"; then
4434 ac_cv_prog_CC="$CC" # Let the user override the test.
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4443 ac_cv_prog_CC="$ac_prog"
4444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 if test -n "$CC"; then
4455 { echo "$as_me:$LINENO: result: $CC" >&5
4456 echo "${ECHO_T}$CC" >&6; }
4458 { echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6; }
4463 test -n "$CC" && break
4465 test -n "$CC" || CC="missing"
4468 if test "${CC}" = "missing" ; then
4469 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4470 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4471 { (exit 1); exit 1; }; }
4475 if test -z "${AR}"; then
4476 for ac_prog in ar gar
4478 # Extract the first word of "$ac_prog", so it can be a program name with args.
4479 set dummy $ac_prog; ac_word=$2
4480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4482 if test "${ac_cv_prog_AR+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 if test -n "$AR"; then
4486 ac_cv_prog_AR="$AR" # Let the user override the test.
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4495 ac_cv_prog_AR="$ac_prog"
4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 if test -n "$AR"; then
4507 { echo "$as_me:$LINENO: result: $AR" >&5
4508 echo "${ECHO_T}$AR" >&6; }
4510 { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4515 test -n "$AR" && break
4517 test -n "$AR" || AR="missing"
4520 if test "${AR}" = "missing" ; then
4521 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4522 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4523 { (exit 1); exit 1; }; }
4531 # Check whether --enable-fast-install was given.
4532 if test "${enable_fast_install+set}" = set; then
4533 enableval=$enable_fast_install; p=${PACKAGE-default}
4535 yes) enable_fast_install=yes ;;
4536 no) enable_fast_install=no ;;
4538 enable_fast_install=no
4539 # Look at the argument we got. We use all the common list separators.
4540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4541 for pkg in $enableval; do
4543 if test "X$pkg" = "X$p"; then
4544 enable_fast_install=yes
4551 enable_fast_install=yes
4555 DEPDIR="${am__leading_dot}deps"
4557 ac_config_commands="$ac_config_commands depfiles"
4560 am_make=${MAKE-make}
4561 cat > confinc << 'END'
4566 # If we don't find an include directive, just comment out the code.
4567 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4568 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4572 # First try GNU make style include.
4573 echo "include confinc" > confmf
4574 # We grep out `Entering directory' and `Leaving directory'
4575 # messages which can occur if `w' ends up in MAKEFLAGS.
4576 # In particular we don't look at `^make:' because GNU make might
4577 # be invoked under some other name (usually "gmake"), in which
4578 # case it prints its new name instead of `make'.
4579 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4584 # Now try BSD make style include.
4585 if test "$am__include" = "#"; then
4586 echo '.include "confinc"' > confmf
4587 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4588 am__include=.include
4595 { echo "$as_me:$LINENO: result: $_am_result" >&5
4596 echo "${ECHO_T}$_am_result" >&6; }
4597 rm -f confinc confmf
4599 # Check whether --enable-dependency-tracking was given.
4600 if test "${enable_dependency_tracking+set}" = set; then
4601 enableval=$enable_dependency_tracking;
4604 if test "x$enable_dependency_tracking" != xno; then
4605 am_depcomp="$ac_aux_dir/depcomp"
4610 if test "x$enable_dependency_tracking" != xno; then
4621 ac_cpp='$CPP $CPPFLAGS'
4622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4625 if test -n "$ac_tool_prefix"; then
4626 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4627 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_CC+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 if test -n "$CC"; then
4634 ac_cv_prog_CC="$CC" # Let the user override the test.
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4643 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 if test -n "$CC"; then
4655 { echo "$as_me:$LINENO: result: $CC" >&5
4656 echo "${ECHO_T}$CC" >&6; }
4658 { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4664 if test -z "$ac_cv_prog_CC"; then
4666 # Extract the first word of "gcc", so it can be a program name with args.
4667 set dummy gcc; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 if test -n "$ac_ct_CC"; then
4674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_prog_ac_ct_CC="gcc"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4694 if test -n "$ac_ct_CC"; then
4695 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4696 echo "${ECHO_T}$ac_ct_CC" >&6; }
4698 { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4702 if test "x$ac_ct_CC" = x; then
4705 case $cross_compiling:$ac_tool_warned in
4707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4708 whose name does not start with the host triplet. If you think this
4709 configuration is useful to you, please write to autoconf@gnu.org." >&5
4710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4711 whose name does not start with the host triplet. If you think this
4712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4713 ac_tool_warned=yes ;;
4721 if test -z "$CC"; then
4722 if test -n "$ac_tool_prefix"; then
4723 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4724 set dummy ${ac_tool_prefix}cc; ac_word=$2
4725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4727 if test "${ac_cv_prog_CC+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 if test -n "$CC"; then
4731 ac_cv_prog_CC="$CC" # Let the user override the test.
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 ac_cv_prog_CC="${ac_tool_prefix}cc"
4741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 if test -n "$CC"; then
4752 { echo "$as_me:$LINENO: result: $CC" >&5
4753 echo "${ECHO_T}$CC" >&6; }
4755 { echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6; }
4762 if test -z "$CC"; then
4763 # Extract the first word of "cc", so it can be a program name with args.
4764 set dummy cc; ac_word=$2
4765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4767 if test "${ac_cv_prog_CC+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 if test -n "$CC"; then
4771 ac_cv_prog_CC="$CC" # Let the user override the test.
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4782 ac_prog_rejected=yes
4786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 if test $ac_prog_rejected = yes; then
4794 # We found a bogon in the path, so make sure we never use it.
4795 set dummy $ac_cv_prog_CC
4797 if test $# != 0; then
4798 # We chose a different compiler from the bogus one.
4799 # However, it has the same basename, so the bogon will be chosen
4800 # first if we set CC to just the basename; use the full file name.
4802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4808 if test -n "$CC"; then
4809 { echo "$as_me:$LINENO: result: $CC" >&5
4810 echo "${ECHO_T}$CC" >&6; }
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4818 if test -z "$CC"; then
4819 if test -n "$ac_tool_prefix"; then
4820 for ac_prog in cl.exe
4822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_CC+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 if test -n "$CC"; then
4830 ac_cv_prog_CC="$CC" # Let the user override the test.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 if test -n "$CC"; then
4851 { echo "$as_me:$LINENO: result: $CC" >&5
4852 echo "${ECHO_T}$CC" >&6; }
4854 { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4859 test -n "$CC" && break
4862 if test -z "$CC"; then
4864 for ac_prog in cl.exe
4866 # Extract the first word of "$ac_prog", so it can be a program name with args.
4867 set dummy $ac_prog; ac_word=$2
4868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 if test -n "$ac_ct_CC"; then
4874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_ac_ct_CC="$ac_prog"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4894 if test -n "$ac_ct_CC"; then
4895 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4896 echo "${ECHO_T}$ac_ct_CC" >&6; }
4898 { echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6; }
4903 test -n "$ac_ct_CC" && break
4906 if test "x$ac_ct_CC" = x; then
4909 case $cross_compiling:$ac_tool_warned in
4911 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4912 whose name does not start with the host triplet. If you think this
4913 configuration is useful to you, please write to autoconf@gnu.org." >&5
4914 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4915 whose name does not start with the host triplet. If you think this
4916 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4917 ac_tool_warned=yes ;;
4926 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4927 See \`config.log' for more details." >&5
4928 echo "$as_me: error: no acceptable C compiler found in \$PATH
4929 See \`config.log' for more details." >&2;}
4930 { (exit 1); exit 1; }; }
4932 # Provide some information about the compiler.
4933 echo "$as_me:$LINENO: checking for C compiler version" >&5
4934 ac_compiler=`set X $ac_compile; echo $2`
4935 { (ac_try="$ac_compiler --version >&5"
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_compiler --version >&5") 2>&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }
4945 { (ac_try="$ac_compiler -v >&5"
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951 (eval "$ac_compiler -v >&5") 2>&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }
4955 { (ac_try="$ac_compiler -V >&5"
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_compiler -V >&5") 2>&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }
4966 cat >conftest.$ac_ext <<_ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4981 ac_clean_files_save=$ac_clean_files
4982 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4983 # Try to create an executable without -o first, disregard a.out.
4984 # It will help us diagnose broken compilers, and finding out an intuition
4986 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4987 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4988 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4990 # List of possible output files, starting from the most likely.
4991 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4992 # only as a last resort. b.out is created by i960 compilers.
4993 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4995 # The IRIX 6 linker writes into existing files which may not be
4996 # executable, retaining their permissions. Remove them first so a
4997 # subsequent execution test works.
4999 for ac_file in $ac_files
5002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5003 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5008 if { (ac_try="$ac_link_default"
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014 (eval "$ac_link_default") 2>&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; then
5018 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5019 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5020 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5021 # so that the user can short-circuit this test for compilers unknown to
5023 for ac_file in $ac_files
5025 test -f "$ac_file" || continue
5027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5030 # We found the default executable, but exeext='' is most
5034 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5036 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5038 # We set ac_cv_exeext here because the later test for it is not
5039 # safe: cross compilers may not add the suffix if given an `-o'
5040 # argument, so we may need to know it at that point already.
5041 # Even if this section looks crufty: it has the advantage of
5048 test "$ac_cv_exeext" = no && ac_cv_exeext=
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5055 See \`config.log' for more details." >&5
5056 echo "$as_me: error: C compiler cannot create executables
5057 See \`config.log' for more details." >&2;}
5058 { (exit 77); exit 77; }; }
5061 ac_exeext=$ac_cv_exeext
5062 { echo "$as_me:$LINENO: result: $ac_file" >&5
5063 echo "${ECHO_T}$ac_file" >&6; }
5065 # Check that the compiler produces executables we can run. If not, either
5066 # the compiler is broken, or we cross compile.
5067 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5068 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5069 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5070 # If not cross compiling, check that we can run a simple program.
5071 if test "$cross_compiling" != yes; then
5072 if { ac_try='./$ac_file'
5073 { (case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078 (eval "$ac_try") 2>&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5084 if test "$cross_compiling" = maybe; then
5087 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5088 If you meant to cross compile, use \`--host'.
5089 See \`config.log' for more details." >&5
5090 echo "$as_me: error: cannot run C compiled programs.
5091 If you meant to cross compile, use \`--host'.
5092 See \`config.log' for more details." >&2;}
5093 { (exit 1); exit 1; }; }
5097 { echo "$as_me:$LINENO: result: yes" >&5
5098 echo "${ECHO_T}yes" >&6; }
5100 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5101 ac_clean_files=$ac_clean_files_save
5102 # Check that the compiler produces executables we can run. If not, either
5103 # the compiler is broken, or we cross compile.
5104 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5105 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5106 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5107 echo "${ECHO_T}$cross_compiling" >&6; }
5109 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5110 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5111 if { (ac_try="$ac_link"
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_link") 2>&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; then
5121 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5122 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5123 # work properly (i.e., refer to `conftest.exe'), while it won't with
5125 for ac_file in conftest.exe conftest conftest.*; do
5126 test -f "$ac_file" || continue
5128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5129 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5135 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5136 See \`config.log' for more details." >&5
5137 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5138 See \`config.log' for more details." >&2;}
5139 { (exit 1); exit 1; }; }
5142 rm -f conftest$ac_cv_exeext
5143 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5144 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5146 rm -f conftest.$ac_ext
5147 EXEEXT=$ac_cv_exeext
5149 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5150 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5151 if test "${ac_cv_objext+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 cat >conftest.$ac_ext <<_ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5169 rm -f conftest.o conftest.obj
5170 if { (ac_try="$ac_compile"
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_compile") 2>&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; then
5180 for ac_file in conftest.o conftest.obj conftest.*; do
5181 test -f "$ac_file" || continue;
5183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5184 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5193 See \`config.log' for more details." >&5
5194 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5195 See \`config.log' for more details." >&2;}
5196 { (exit 1); exit 1; }; }
5199 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5201 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5202 echo "${ECHO_T}$ac_cv_objext" >&6; }
5203 OBJEXT=$ac_cv_objext
5205 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5206 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5207 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 cat >conftest.$ac_ext <<_ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_compile") 2>conftest.er1
5237 grep -v '^ *+' conftest.er1 >conftest.err
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5243 { (case "(($ac_try" in
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_try") 2>&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try='test -s conftest.$ac_objext'
5253 { (case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_try") 2>&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5274 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5275 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5276 GCC=`test $ac_compiler_gnu = yes && echo yes`
5277 ac_test_CFLAGS=${CFLAGS+set}
5278 ac_save_CFLAGS=$CFLAGS
5279 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5280 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5281 if test "${ac_cv_prog_cc_g+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 ac_save_c_werror_flag=$ac_c_werror_flag
5285 ac_c_werror_flag=yes
5288 cat >conftest.$ac_ext <<_ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5303 rm -f conftest.$ac_objext
5304 if { (ac_try="$ac_compile"
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5310 (eval "$ac_compile") 2>conftest.er1
5312 grep -v '^ *+' conftest.er1 >conftest.err
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5318 { (case "(($ac_try" in
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_try") 2>&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; } &&
5327 { ac_try='test -s conftest.$ac_objext'
5328 { (case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_try") 2>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5343 cat >conftest.$ac_ext <<_ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5358 rm -f conftest.$ac_objext
5359 if { (ac_try="$ac_compile"
5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365 (eval "$ac_compile") 2>conftest.er1
5367 grep -v '^ *+' conftest.er1 >conftest.err
5369 cat conftest.err >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } &&
5372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5373 { (case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_try") 2>&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; } &&
5382 { ac_try='test -s conftest.$ac_objext'
5383 { (case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_try") 2>&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; }; then
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5397 ac_c_werror_flag=$ac_save_c_werror_flag
5399 cat >conftest.$ac_ext <<_ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5414 rm -f conftest.$ac_objext
5415 if { (ac_try="$ac_compile"
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_compile") 2>conftest.er1
5423 grep -v '^ *+' conftest.er1 >conftest.err
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5429 { (case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_try") 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_try") 2>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 ac_c_werror_flag=$ac_save_c_werror_flag
5465 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5467 if test "$ac_test_CFLAGS" = set; then
5468 CFLAGS=$ac_save_CFLAGS
5469 elif test $ac_cv_prog_cc_g = yes; then
5470 if test "$GCC" = yes; then
5476 if test "$GCC" = yes; then
5482 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5483 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5484 if test "${ac_cv_prog_cc_c89+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 ac_cv_prog_cc_c89=no
5489 cat >conftest.$ac_ext <<_ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5497 #include <sys/types.h>
5498 #include <sys/stat.h>
5499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5500 struct buf { int x; };
5501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5502 static char *e (p, i)
5508 static char *f (char * (*g) (char **, int), char **p, ...)
5513 s = g (p, va_arg (v,int));
5518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5519 function prototypes and stuff, but not '\xHH' hex character constants.
5520 These don't provoke an error unfortunately, instead are silently treated
5521 as 'x'. The following induces an error, until -std is added to get
5522 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5523 array size at least. It's necessary to write '\x00'==0 to get something
5524 that's true only with -std. */
5525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5527 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5528 inside strings and character constants. */
5530 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5532 int test (int i, double x);
5533 struct s1 {int (*f) (int a);};
5534 struct s2 {int (*f) (double a);};
5535 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5541 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5546 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5547 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5549 CC="$ac_save_CC $ac_arg"
5550 rm -f conftest.$ac_objext
5551 if { (ac_try="$ac_compile"
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_compile") 2>conftest.er1
5559 grep -v '^ *+' conftest.er1 >conftest.err
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5565 { (case "(($ac_try" in
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570 (eval "$ac_try") 2>&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }; } &&
5574 { ac_try='test -s conftest.$ac_objext'
5575 { (case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_try") 2>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; }; then
5584 ac_cv_prog_cc_c89=$ac_arg
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5592 rm -f core conftest.err conftest.$ac_objext
5593 test "x$ac_cv_prog_cc_c89" != "xno" && break
5595 rm -f conftest.$ac_ext
5600 case "x$ac_cv_prog_cc_c89" in
5602 { echo "$as_me:$LINENO: result: none needed" >&5
5603 echo "${ECHO_T}none needed" >&6; } ;;
5605 { echo "$as_me:$LINENO: result: unsupported" >&5
5606 echo "${ECHO_T}unsupported" >&6; } ;;
5608 CC="$CC $ac_cv_prog_cc_c89"
5609 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5610 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5615 ac_cpp='$CPP $CPPFLAGS'
5616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5620 depcc="$CC" am_compiler_list=
5622 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5623 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5624 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5628 # We make a subdir and do the tests there. Otherwise we can end up
5629 # making bogus files that we don't know about and never remove. For
5630 # instance it was reported that on HP-UX the gcc test will end up
5631 # making a dummy file named `D' -- because `-MD' means `put the output
5634 # Copy depcomp to subdir because otherwise we won't find it if we're
5635 # using a relative directory.
5636 cp "$am_depcomp" conftest.dir
5638 # We will build objects and dependencies in a subdirectory because
5639 # it helps to detect inapplicable dependency modes. For instance
5640 # both Tru64's cc and ICC support -MD to output dependencies as a
5641 # side effect of compilation, but ICC will put the dependencies in
5642 # the current directory while Tru64 will put them in the object
5646 am_cv_CC_dependencies_compiler_type=none
5647 if test "$am_compiler_list" = ""; then
5648 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5650 for depmode in $am_compiler_list; do
5651 # Setup a source with many dependencies, because some compilers
5652 # like to wrap large dependency lists on column 80 (with \), and
5653 # we should not choose a depcomp mode which is confused by this.
5655 # We need to recreate these files for each test, as the compiler may
5656 # overwrite some of them when testing with obscure command lines.
5657 # This happens at least with the AIX C compiler.
5659 for i in 1 2 3 4 5 6; do
5660 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5661 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5662 # Solaris 8's {/usr,}/bin/sh.
5663 touch sub/conftst$i.h
5665 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5669 # after this tag, mechanisms are not by side-effect, so they'll
5670 # only be used when explicitly requested
5671 if test "x$enable_dependency_tracking" = xyes; then
5679 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5680 # mode. It turns out that the SunPro C++ compiler does not properly
5681 # handle `-M -o', and we need to detect this.
5682 if depmode=$depmode \
5683 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5684 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5685 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5686 >/dev/null 2>conftest.err &&
5687 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5688 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5689 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5690 # icc doesn't choke on unknown options, it will just issue warnings
5691 # or remarks (even with -Werror). So we grep stderr for any message
5692 # that says an option was ignored or not supported.
5693 # When given -MP, icc 7.0 and 7.1 complain thusly:
5694 # icc: Command line warning: ignoring option '-M'; no argument required
5695 # The diagnosis changed in icc 8.0:
5696 # icc: Command line remark: option '-MP' not supported
5697 if (grep 'ignoring option' conftest.err ||
5698 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5699 am_cv_CC_dependencies_compiler_type=$depmode
5708 am_cv_CC_dependencies_compiler_type=none
5712 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5713 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5714 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5719 test "x$enable_dependency_tracking" != xno \
5720 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5722 am__fastdepCC_FALSE='#'
5724 am__fastdepCC_TRUE='#'
5725 am__fastdepCC_FALSE=
5729 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5730 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5731 if test "${lt_cv_path_SED+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 # Loop through the user's path and test for sed and gsed.
5735 # Then use that list of sed's as ones to test for truncation.
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 test -z "$as_dir" && as_dir=.
5741 for lt_ac_prog in sed gsed; do
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5744 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5751 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5752 # along with /bin/sed that truncates output.
5753 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5754 test ! -f $lt_ac_sed && continue
5755 cat /dev/null > conftest.in
5757 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5758 # Check for GNU sed and select it if it is found.
5759 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5760 lt_cv_path_SED=$lt_ac_sed
5764 cat conftest.in conftest.in >conftest.tmp
5765 mv conftest.tmp conftest.in
5766 cp conftest.in conftest.nl
5768 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5769 cmp -s conftest.out conftest.nl || break
5770 # 10000 chars as input seems more than enough
5771 test $lt_ac_count -gt 10 && break
5772 lt_ac_count=`expr $lt_ac_count + 1`
5773 if test $lt_ac_count -gt $lt_ac_max; then
5774 lt_ac_max=$lt_ac_count
5775 lt_cv_path_SED=$lt_ac_sed
5783 { echo "$as_me:$LINENO: result: $SED" >&5
5784 echo "${ECHO_T}$SED" >&6; }
5786 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5787 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5788 if test "${ac_cv_path_GREP+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 # Extract the first word of "grep ggrep" to use in msg output
5792 if test -z "$GREP"; then
5793 set dummy grep ggrep; ac_prog_name=$2
5794 if test "${ac_cv_path_GREP+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 ac_path_GREP_found=false
5798 # Loop through the user's path and test for each of PROGNAME-LIST
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5803 test -z "$as_dir" && as_dir=.
5804 for ac_prog in grep ggrep; do
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5807 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5808 # Check for GNU ac_path_GREP and select it if it is found.
5809 # Check for GNU $ac_path_GREP
5810 case `"$ac_path_GREP" --version 2>&1` in
5812 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5815 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5818 cat "conftest.in" "conftest.in" >"conftest.tmp"
5819 mv "conftest.tmp" "conftest.in"
5820 cp "conftest.in" "conftest.nl"
5821 echo 'GREP' >> "conftest.nl"
5822 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5824 ac_count=`expr $ac_count + 1`
5825 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5826 # Best one so far, save it but keep looking for a better one
5827 ac_cv_path_GREP="$ac_path_GREP"
5828 ac_path_GREP_max=$ac_count
5830 # 10*(2^10) chars as input seems more than enough
5831 test $ac_count -gt 10 && break
5833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5837 $ac_path_GREP_found && break 3
5847 GREP="$ac_cv_path_GREP"
5848 if test -z "$GREP"; then
5849 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5850 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5851 { (exit 1); exit 1; }; }
5855 ac_cv_path_GREP=$GREP
5860 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5861 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5862 GREP="$ac_cv_path_GREP"
5865 { echo "$as_me:$LINENO: checking for egrep" >&5
5866 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5867 if test "${ac_cv_path_EGREP+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5871 then ac_cv_path_EGREP="$GREP -E"
5873 # Extract the first word of "egrep" to use in msg output
5874 if test -z "$EGREP"; then
5875 set dummy egrep; ac_prog_name=$2
5876 if test "${ac_cv_path_EGREP+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 ac_path_EGREP_found=false
5880 # Loop through the user's path and test for each of PROGNAME-LIST
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5885 test -z "$as_dir" && as_dir=.
5886 for ac_prog in egrep; do
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5889 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
5890 # Check for GNU ac_path_EGREP and select it if it is found.
5891 # Check for GNU $ac_path_EGREP
5892 case `"$ac_path_EGREP" --version 2>&1` in
5894 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5897 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5900 cat "conftest.in" "conftest.in" >"conftest.tmp"
5901 mv "conftest.tmp" "conftest.in"
5902 cp "conftest.in" "conftest.nl"
5903 echo 'EGREP' >> "conftest.nl"
5904 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5906 ac_count=`expr $ac_count + 1`
5907 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5908 # Best one so far, save it but keep looking for a better one
5909 ac_cv_path_EGREP="$ac_path_EGREP"
5910 ac_path_EGREP_max=$ac_count
5912 # 10*(2^10) chars as input seems more than enough
5913 test $ac_count -gt 10 && break
5915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5919 $ac_path_EGREP_found && break 3
5929 EGREP="$ac_cv_path_EGREP"
5930 if test -z "$EGREP"; then
5931 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5932 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5933 { (exit 1); exit 1; }; }
5937 ac_cv_path_EGREP=$EGREP
5943 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5944 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5945 EGREP="$ac_cv_path_EGREP"
5949 # Check whether --with-gnu-ld was given.
5950 if test "${with_gnu_ld+set}" = set; then
5951 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5957 if test "$GCC" = yes; then
5958 # Check if gcc -print-prog-name=ld gives a path.
5959 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5960 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5963 # gcc leaves a trailing carriage return which upsets mingw
5964 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5966 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5969 # Accept absolute paths.
5971 re_direlt='/[^/][^/]*/\.\./'
5972 # Canonicalize the pathname of ld
5973 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5974 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5975 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5977 test -z "$LD" && LD="$ac_prog"
5980 # If it fails, then pretend we aren't using GCC.
5984 # If it is relative, then search for the first ld in PATH.
5988 elif test "$with_gnu_ld" = yes; then
5989 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5990 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5992 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5993 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5995 if test "${lt_cv_path_LD+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 if test -z "$LD"; then
5999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6000 for ac_dir in $PATH; do
6002 test -z "$ac_dir" && ac_dir=.
6003 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6004 lt_cv_path_LD="$ac_dir/$ac_prog"
6005 # Check to see if the program is GNU ld. I'd rather use --version,
6006 # but apparently some variants of GNU ld only accept -v.
6007 # Break only if it was the GNU/non-GNU ld that we prefer.
6008 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6009 *GNU* | *'with BFD'*)
6010 test "$with_gnu_ld" != no && break
6013 test "$with_gnu_ld" != yes && break
6020 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6025 if test -n "$LD"; then
6026 { echo "$as_me:$LINENO: result: $LD" >&5
6027 echo "${ECHO_T}$LD" >&6; }
6029 { echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6; }
6032 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6033 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6034 { (exit 1); exit 1; }; }
6035 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6036 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6037 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6041 case `$LD -v 2>&1 </dev/null` in
6042 *GNU* | *'with BFD'*)
6043 lt_cv_prog_gnu_ld=yes
6046 lt_cv_prog_gnu_ld=no
6050 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6051 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6052 with_gnu_ld=$lt_cv_prog_gnu_ld
6055 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6056 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6057 if test "${lt_cv_ld_reload_flag+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 lt_cv_ld_reload_flag='-r'
6062 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6063 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6064 reload_flag=$lt_cv_ld_reload_flag
6065 case $reload_flag in
6067 *) reload_flag=" $reload_flag" ;;
6069 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6072 if test "$GCC" = yes; then
6073 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6075 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6080 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6081 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6082 if test "${lt_cv_path_NM+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 if test -n "$NM"; then
6086 # Let the user override the test.
6089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6090 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6092 test -z "$ac_dir" && ac_dir=.
6093 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6094 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6095 # Check to see if the nm accepts a BSD-compat flag.
6096 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6097 # nm: unknown option "B" ignored
6098 # Tru64's nm complains that /dev/null is an invalid object file
6099 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6100 */dev/null* | *'Invalid file or object type'*)
6101 lt_cv_path_NM="$tmp_nm -B"
6105 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6107 lt_cv_path_NM="$tmp_nm -p"
6111 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6112 continue # so that we can try to find one that supports BSD flags
6119 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6122 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6123 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6126 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6127 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6129 if test "$LN_S" = "ln -s"; then
6130 { echo "$as_me:$LINENO: result: yes" >&5
6131 echo "${ECHO_T}yes" >&6; }
6133 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6134 echo "${ECHO_T}no, using $LN_S" >&6; }
6137 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6138 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6139 if test "${lt_cv_deplibs_check_method+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 lt_cv_file_magic_cmd='$MAGIC_CMD'
6143 lt_cv_file_magic_test_file=
6144 lt_cv_deplibs_check_method='unknown'
6145 # Need to set the preceding variable on all platforms that support
6146 # interlibrary dependencies.
6147 # 'none' -- dependencies not supported.
6148 # `unknown' -- same as none, but documents that we really don't know.
6149 # 'pass_all' -- all dependencies passed with no checks.
6150 # 'test_compile' -- check by making test program.
6151 # 'file_magic [[regex]]' -- check by looking for files in library path
6152 # which responds to the $file_magic_cmd with a given extended regex.
6153 # If you have `file' or equivalent on your system and you're not sure
6154 # whether `pass_all' will *always* work, you probably want this one.
6158 lt_cv_deplibs_check_method=pass_all
6162 lt_cv_deplibs_check_method=pass_all
6166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6167 lt_cv_file_magic_cmd='/usr/bin/file -L'
6168 lt_cv_file_magic_test_file=/shlib/libc.so
6172 # func_win32_libid is a shell function defined in ltmain.sh
6173 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6174 lt_cv_file_magic_cmd='func_win32_libid'
6178 # Base MSYS/MinGW do not provide the 'file' command needed by
6179 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6180 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6181 lt_cv_file_magic_cmd='$OBJDUMP -f'
6184 darwin* | rhapsody*)
6185 lt_cv_deplibs_check_method=pass_all
6188 freebsd* | kfreebsd*-gnu | dragonfly*)
6189 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6192 # Not sure whether the presence of OpenBSD here was a mistake.
6193 # Let's accept both of them until this is cleared up.
6194 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6195 lt_cv_file_magic_cmd=/usr/bin/file
6196 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6200 lt_cv_deplibs_check_method=pass_all
6205 lt_cv_deplibs_check_method=pass_all
6208 hpux10.20* | hpux11*)
6209 lt_cv_file_magic_cmd=/usr/bin/file
6212 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6213 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6216 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]'
6217 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6220 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6221 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6226 irix5* | irix6* | nonstopux*)
6228 *-32|*"-32 ") libmagic=32-bit;;
6229 *-n32|*"-n32 ") libmagic=N32;;
6230 *-64|*"-64 ") libmagic=64-bit;;
6231 *) libmagic=never-match;;
6233 lt_cv_deplibs_check_method=pass_all
6236 # This must be Linux ELF.
6238 lt_cv_deplibs_check_method=pass_all
6242 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6251 lt_cv_file_magic_cmd=/usr/bin/file
6252 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6256 lt_cv_deplibs_check_method=unknown
6260 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6267 osf3* | osf4* | osf5*)
6268 lt_cv_deplibs_check_method=pass_all
6272 lt_cv_deplibs_check_method=pass_all
6276 lt_cv_deplibs_check_method=pass_all
6279 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6280 case $host_vendor in
6282 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]'
6283 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6286 lt_cv_deplibs_check_method=pass_all
6289 lt_cv_file_magic_cmd='/bin/file'
6290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6293 lt_cv_file_magic_cmd='/bin/file'
6294 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6295 lt_cv_file_magic_test_file=/lib/libc.so
6298 lt_cv_deplibs_check_method=pass_all
6303 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6304 lt_cv_deplibs_check_method=pass_all
6309 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6310 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6311 file_magic_cmd=$lt_cv_file_magic_cmd
6312 deplibs_check_method=$lt_cv_deplibs_check_method
6313 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6318 # If no C compiler was specified, use CC.
6321 # Allow CC to be a program name with arguments.
6325 # Check whether --enable-libtool-lock was given.
6326 if test "${enable_libtool_lock+set}" = set; then
6327 enableval=$enable_libtool_lock;
6330 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6332 # Some flags need to be propagated to the compiler or linker for good
6336 # Find out which ABI we are using.
6337 echo 'int i;' > conftest.$ac_ext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6339 (eval $ac_compile) 2>&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; then
6343 case `/usr/bin/file conftest.$ac_objext` in
6355 # Find out which ABI we are using.
6356 echo '#line 6356 "configure"' > conftest.$ac_ext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6358 (eval $ac_compile) 2>&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; then
6362 if test "$lt_cv_prog_gnu_ld" = yes; then
6363 case `/usr/bin/file conftest.$ac_objext` in
6365 LD="${LD-ld} -melf32bsmip"
6368 LD="${LD-ld} -melf32bmipn32"
6371 LD="${LD-ld} -melf64bmip"
6375 case `/usr/bin/file conftest.$ac_objext` in
6391 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6392 # Find out which ABI we are using.
6393 echo 'int i;' > conftest.$ac_ext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6395 (eval $ac_compile) 2>&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; then
6399 case `/usr/bin/file conftest.o` in
6403 LD="${LD-ld} -m elf_i386"
6405 ppc64-*linux*|powerpc64-*linux*)
6406 LD="${LD-ld} -m elf32ppclinux"
6409 LD="${LD-ld} -m elf_s390"
6412 LD="${LD-ld} -m elf32_sparc"
6419 LD="${LD-ld} -m elf_x86_64"
6421 ppc*-*linux*|powerpc*-*linux*)
6422 LD="${LD-ld} -m elf64ppc"
6425 LD="${LD-ld} -m elf64_s390"
6428 LD="${LD-ld} -m elf64_sparc"
6438 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6439 SAVE_CFLAGS="$CFLAGS"
6440 CFLAGS="$CFLAGS -belf"
6441 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6442 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6443 if test "${lt_cv_cc_needs_belf+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 ac_cpp='$CPP $CPPFLAGS'
6448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6452 cat >conftest.$ac_ext <<_ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6467 rm -f conftest.$ac_objext conftest$ac_exeext
6468 if { (ac_try="$ac_link"
6470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471 *) ac_try_echo=$ac_try;;
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474 (eval "$ac_link") 2>conftest.er1
6476 grep -v '^ *+' conftest.er1 >conftest.err
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } &&
6481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6482 { (case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_try") 2>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; } &&
6491 { ac_try='test -s conftest$ac_exeext'
6492 { (case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_try") 2>&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 lt_cv_cc_needs_belf=yes
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6506 lt_cv_cc_needs_belf=no
6509 rm -f core conftest.err conftest.$ac_objext \
6510 conftest$ac_exeext conftest.$ac_ext
6512 ac_cpp='$CPP $CPPFLAGS'
6513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6518 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6519 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6520 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6521 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6522 CFLAGS="$SAVE_CFLAGS"
6525 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6526 if test -n "$ac_tool_prefix"; then
6527 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6528 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 if test -n "$DLLTOOL"; then
6535 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6544 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 DLLTOOL=$ac_cv_prog_DLLTOOL
6555 if test -n "$DLLTOOL"; then
6556 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6557 echo "${ECHO_T}$DLLTOOL" >&6; }
6559 { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6565 if test -z "$ac_cv_prog_DLLTOOL"; then
6566 ac_ct_DLLTOOL=$DLLTOOL
6567 # Extract the first word of "dlltool", so it can be a program name with args.
6568 set dummy dlltool; ac_word=$2
6569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 if test -n "$ac_ct_DLLTOOL"; then
6575 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6584 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6595 if test -n "$ac_ct_DLLTOOL"; then
6596 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6597 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6599 { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6603 if test "x$ac_ct_DLLTOOL" = x; then
6606 case $cross_compiling:$ac_tool_warned in
6608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6609 whose name does not start with the host triplet. If you think this
6610 configuration is useful to you, please write to autoconf@gnu.org." >&5
6611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6612 whose name does not start with the host triplet. If you think this
6613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6614 ac_tool_warned=yes ;;
6616 DLLTOOL=$ac_ct_DLLTOOL
6619 DLLTOOL="$ac_cv_prog_DLLTOOL"
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}as; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_prog_AS+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 if test -n "$AS"; then
6631 ac_cv_prog_AS="$AS" # Let the user override the test.
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_prog_AS="${ac_tool_prefix}as"
6641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 if test -n "$AS"; then
6652 { echo "$as_me:$LINENO: result: $AS" >&5
6653 echo "${ECHO_T}$AS" >&6; }
6655 { echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6; }
6661 if test -z "$ac_cv_prog_AS"; then
6663 # Extract the first word of "as", so it can be a program name with args.
6664 set dummy as; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 if test -n "$ac_ct_AS"; then
6671 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_prog_ac_ct_AS="as"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6691 if test -n "$ac_ct_AS"; then
6692 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6693 echo "${ECHO_T}$ac_ct_AS" >&6; }
6695 { echo "$as_me:$LINENO: result: no" >&5
6696 echo "${ECHO_T}no" >&6; }
6699 if test "x$ac_ct_AS" = x; then
6702 case $cross_compiling:$ac_tool_warned in
6704 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6705 whose name does not start with the host triplet. If you think this
6706 configuration is useful to you, please write to autoconf@gnu.org." >&5
6707 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6708 whose name does not start with the host triplet. If you think this
6709 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6710 ac_tool_warned=yes ;;
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 if test -n "$OBJDUMP"; then
6727 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 OBJDUMP=$ac_cv_prog_OBJDUMP
6747 if test -n "$OBJDUMP"; then
6748 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6749 echo "${ECHO_T}$OBJDUMP" >&6; }
6751 { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6757 if test -z "$ac_cv_prog_OBJDUMP"; then
6758 ac_ct_OBJDUMP=$OBJDUMP
6759 # Extract the first word of "objdump", so it can be a program name with args.
6760 set dummy objdump; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 if test -n "$ac_ct_OBJDUMP"; then
6767 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6787 if test -n "$ac_ct_OBJDUMP"; then
6788 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6789 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6791 { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6795 if test "x$ac_ct_OBJDUMP" = x; then
6798 case $cross_compiling:$ac_tool_warned in
6800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet. If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&5
6803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet. If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806 ac_tool_warned=yes ;;
6808 OBJDUMP=$ac_ct_OBJDUMP
6811 OBJDUMP="$ac_cv_prog_OBJDUMP"
6818 need_locks="$enable_libtool_lock"
6822 ac_cpp='$CPP $CPPFLAGS'
6823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6826 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6827 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6828 # On Suns, sometimes $CPP names a directory.
6829 if test -n "$CPP" && test -d "$CPP"; then
6832 if test -z "$CPP"; then
6833 if test "${ac_cv_prog_CPP+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 # Double quotes because CPP needs to be expanded
6837 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6840 for ac_c_preproc_warn_flag in '' yes
6842 # Use a header file that comes with gcc, so configuring glibc
6843 # with a fresh cross-compiler works.
6844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6845 # <limits.h> exists even on freestanding compilers.
6846 # On the NeXT, cc -E runs the code through the compiler's parser,
6847 # not just through cpp. "Syntax error" is here to catch this case.
6848 cat >conftest.$ac_ext <<_ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6855 # include <limits.h>
6857 # include <assert.h>
6861 if { (ac_try="$ac_cpp conftest.$ac_ext"
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6869 grep -v '^ *+' conftest.er1 >conftest.err
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } >/dev/null; then
6874 if test -s conftest.err; then
6875 ac_cpp_err=$ac_c_preproc_warn_flag
6876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6883 if test -z "$ac_cpp_err"; then
6886 echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6889 # Broken: fails on valid input.
6893 rm -f conftest.err conftest.$ac_ext
6895 # OK, works on sane cases. Now check whether nonexistent headers
6896 # can be detected and how.
6897 cat >conftest.$ac_ext <<_ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 #include <ac_nonexistent.h>
6905 if { (ac_try="$ac_cpp conftest.$ac_ext"
6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6913 grep -v '^ *+' conftest.er1 >conftest.err
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } >/dev/null; then
6918 if test -s conftest.err; then
6919 ac_cpp_err=$ac_c_preproc_warn_flag
6920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6927 if test -z "$ac_cpp_err"; then
6928 # Broken: success on invalid input.
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6934 # Passes both tests.
6939 rm -f conftest.err conftest.$ac_ext
6942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6943 rm -f conftest.err conftest.$ac_ext
6944 if $ac_preproc_ok; then
6956 { echo "$as_me:$LINENO: result: $CPP" >&5
6957 echo "${ECHO_T}$CPP" >&6; }
6959 for ac_c_preproc_warn_flag in '' yes
6961 # Use a header file that comes with gcc, so configuring glibc
6962 # with a fresh cross-compiler works.
6963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6964 # <limits.h> exists even on freestanding compilers.
6965 # On the NeXT, cc -E runs the code through the compiler's parser,
6966 # not just through cpp. "Syntax error" is here to catch this case.
6967 cat >conftest.$ac_ext <<_ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6974 # include <limits.h>
6976 # include <assert.h>
6980 if { (ac_try="$ac_cpp conftest.$ac_ext"
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6988 grep -v '^ *+' conftest.er1 >conftest.err
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } >/dev/null; then
6993 if test -s conftest.err; then
6994 ac_cpp_err=$ac_c_preproc_warn_flag
6995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7002 if test -z "$ac_cpp_err"; then
7005 echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7008 # Broken: fails on valid input.
7012 rm -f conftest.err conftest.$ac_ext
7014 # OK, works on sane cases. Now check whether nonexistent headers
7015 # can be detected and how.
7016 cat >conftest.$ac_ext <<_ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 #include <ac_nonexistent.h>
7024 if { (ac_try="$ac_cpp conftest.$ac_ext"
7026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7027 *) ac_try_echo=$ac_try;;
7029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7032 grep -v '^ *+' conftest.er1 >conftest.err
7034 cat conftest.err >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } >/dev/null; then
7037 if test -s conftest.err; then
7038 ac_cpp_err=$ac_c_preproc_warn_flag
7039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7046 if test -z "$ac_cpp_err"; then
7047 # Broken: success on invalid input.
7050 echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7053 # Passes both tests.
7058 rm -f conftest.err conftest.$ac_ext
7061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7062 rm -f conftest.err conftest.$ac_ext
7063 if $ac_preproc_ok; then
7066 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7067 See \`config.log' for more details." >&5
7068 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7069 See \`config.log' for more details." >&2;}
7070 { (exit 1); exit 1; }; }
7074 ac_cpp='$CPP $CPPFLAGS'
7075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7080 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7081 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7082 if test "${ac_cv_header_stdc+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 cat >conftest.$ac_ext <<_ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7104 rm -f conftest.$ac_objext
7105 if { (ac_try="$ac_compile"
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7113 grep -v '^ *+' conftest.er1 >conftest.err
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7119 { (case "(($ac_try" in
7120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7121 *) ac_try_echo=$ac_try;;
7123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7124 (eval "$ac_try") 2>&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; } &&
7128 { ac_try='test -s conftest.$ac_objext'
7129 { (case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134 (eval "$ac_try") 2>&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 ac_cv_header_stdc=yes
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 ac_cv_header_stdc=no
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 if test $ac_cv_header_stdc = yes; then
7149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7150 cat >conftest.$ac_ext <<_ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7160 $EGREP "memchr" >/dev/null 2>&1; then
7163 ac_cv_header_stdc=no
7169 if test $ac_cv_header_stdc = yes; then
7170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7171 cat >conftest.$ac_ext <<_ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7181 $EGREP "free" >/dev/null 2>&1; then
7184 ac_cv_header_stdc=no
7190 if test $ac_cv_header_stdc = yes; then
7191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7192 if test "$cross_compiling" = yes; then
7195 cat >conftest.$ac_ext <<_ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7203 #if ((' ' & 0x0FF) == 0x020)
7204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7207 # define ISLOWER(c) \
7208 (('a' <= (c) && (c) <= 'i') \
7209 || ('j' <= (c) && (c) <= 'r') \
7210 || ('s' <= (c) && (c) <= 'z'))
7211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7219 for (i = 0; i < 256; i++)
7220 if (XOR (islower (i), ISLOWER (i))
7221 || toupper (i) != TOUPPER (i))
7226 rm -f conftest$ac_exeext
7227 if { (ac_try="$ac_link"
7229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230 *) ac_try_echo=$ac_try;;
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233 (eval "$ac_link") 2>&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7237 { (case "(($ac_try" in
7238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7239 *) ac_try_echo=$ac_try;;
7241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7242 (eval "$ac_try") 2>&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7248 echo "$as_me: program exited with status $ac_status" >&5
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7253 ac_cv_header_stdc=no
7255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7261 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7262 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7263 if test $ac_cv_header_stdc = yes; then
7265 cat >>confdefs.h <<\_ACEOF
7266 #define STDC_HEADERS 1
7271 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7282 inttypes.h stdint.h unistd.h
7284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 cat >conftest.$ac_ext <<_ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7296 $ac_includes_default
7298 #include <$ac_header>
7300 rm -f conftest.$ac_objext
7301 if { (ac_try="$ac_compile"
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307 (eval "$ac_compile") 2>conftest.er1
7309 grep -v '^ *+' conftest.er1 >conftest.err
7311 cat conftest.err >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } &&
7314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7315 { (case "(($ac_try" in
7316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317 *) ac_try_echo=$ac_try;;
7319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7320 (eval "$ac_try") 2>&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; } &&
7324 { ac_try='test -s conftest.$ac_objext'
7325 { (case "(($ac_try" in
7326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327 *) ac_try_echo=$ac_try;;
7329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7330 (eval "$ac_try") 2>&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7334 eval "$as_ac_Header=yes"
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7339 eval "$as_ac_Header=no"
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 ac_res=`eval echo '${'$as_ac_Header'}'`
7345 { echo "$as_me:$LINENO: result: $ac_res" >&5
7346 echo "${ECHO_T}$ac_res" >&6; }
7347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7348 cat >>confdefs.h <<_ACEOF
7349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7358 for ac_header in dlfcn.h
7360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 ac_res=`eval echo '${'$as_ac_Header'}'`
7368 { echo "$as_me:$LINENO: result: $ac_res" >&5
7369 echo "${ECHO_T}$ac_res" >&6; }
7371 # Is the header compilable?
7372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7374 cat >conftest.$ac_ext <<_ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 $ac_includes_default
7381 #include <$ac_header>
7383 rm -f conftest.$ac_objext
7384 if { (ac_try="$ac_compile"
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_compile") 2>conftest.er1
7392 grep -v '^ *+' conftest.er1 >conftest.err
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } &&
7397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7398 { (case "(($ac_try" in
7399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400 *) ac_try_echo=$ac_try;;
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403 (eval "$ac_try") 2>&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; } &&
7407 { ac_try='test -s conftest.$ac_objext'
7408 { (case "(($ac_try" in
7409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410 *) ac_try_echo=$ac_try;;
7412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7413 (eval "$ac_try") 2>&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; }; then
7417 ac_header_compiler=yes
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7422 ac_header_compiler=no
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7427 echo "${ECHO_T}$ac_header_compiler" >&6; }
7429 # Is the header present?
7430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7432 cat >conftest.$ac_ext <<_ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7438 #include <$ac_header>
7440 if { (ac_try="$ac_cpp conftest.$ac_ext"
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7448 grep -v '^ *+' conftest.er1 >conftest.err
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } >/dev/null; then
7453 if test -s conftest.err; then
7454 ac_cpp_err=$ac_c_preproc_warn_flag
7455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7462 if test -z "$ac_cpp_err"; then
7463 ac_header_preproc=yes
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ac_header_preproc=no
7471 rm -f conftest.err conftest.$ac_ext
7472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7473 echo "${ECHO_T}$ac_header_preproc" >&6; }
7475 # So? What about this header?
7476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7482 ac_header_preproc=yes
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7498 ## --------------------------------------------- ##
7499 ## Report this to <http://www.openldap.org/its/> ##
7500 ## --------------------------------------------- ##
7502 ) | sed "s/^/$as_me: WARNING: /" >&2
7505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 eval "$as_ac_Header=\$ac_header_preproc"
7512 ac_res=`eval echo '${'$as_ac_Header'}'`
7513 { echo "$as_me:$LINENO: result: $ac_res" >&5
7514 echo "${ECHO_T}$ac_res" >&6; }
7517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7518 cat >>confdefs.h <<_ACEOF
7519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7527 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7529 # find the maximum length of command line arguments
7530 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7531 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7532 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 # On DJGPP, this test can blow up pretty badly due to problems in libc
7541 # (any single argument exceeding 2000 bytes causes a buffer overrun
7542 # during glob expansion). Even if it were fixed, the result of this
7543 # check would be larger than it should be.
7544 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7548 # Under GNU Hurd, this test is not required because there is
7549 # no limit to the length of command line arguments.
7550 # Libtool will interpret -1 as no limit whatsoever
7551 lt_cv_sys_max_cmd_len=-1;
7555 # On Win9x/ME, this test blows up -- it succeeds, but takes
7556 # about 5 minutes as the teststring grows exponentially.
7557 # Worse, since 9x/ME are not pre-emptively multitasking,
7558 # you end up with a "frozen" computer, even though with patience
7559 # the test eventually succeeds (with a max line length of 256k).
7560 # Instead, let's just punt: use the minimum linelength reported by
7561 # all of the supported platforms: 8192 (on NT/2K/XP).
7562 lt_cv_sys_max_cmd_len=8192;
7566 # On AmigaOS with pdksh, this test takes hours, literally.
7567 # So we just punt and use a minimum line length of 8192.
7568 lt_cv_sys_max_cmd_len=8192;
7571 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7572 # This has been around since 386BSD, at least. Likely further.
7573 if test -x /sbin/sysctl; then
7574 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7575 elif test -x /usr/sbin/sysctl; then
7576 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7578 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7580 # And add a safety zone
7581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7585 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7586 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7587 # nice to cause kernel panics so lets avoid the loop below.
7588 # First set a reasonable default.
7589 lt_cv_sys_max_cmd_len=16384
7591 if test -x /sbin/sysconfig; then
7592 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7593 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7598 # If test is not a shell built-in, we'll probably end up computing a
7599 # maximum length that is only half of the actual maximum length, but
7601 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7602 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7603 = "XX$teststring") >/dev/null 2>&1 &&
7604 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7605 lt_cv_sys_max_cmd_len=$new_result &&
7606 test $i != 17 # 1/2 MB should be enough
7609 teststring=$teststring$teststring
7612 # Add a significant safety factor because C++ compilers can tack on massive
7613 # amounts of additional arguments before passing them to the linker.
7614 # It appears as though 1/2 is a usable value.
7615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7621 if test -n $lt_cv_sys_max_cmd_len ; then
7622 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7623 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7625 { echo "$as_me:$LINENO: result: none" >&5
7626 echo "${ECHO_T}none" >&6; }
7632 # Check for command to grab the raw symbol name followed by C symbol from nm.
7633 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7634 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7635 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 # These are sane defaults that work on at least a few old systems.
7640 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7642 # Character class describing NM global symbol codes.
7643 symcode='[BCDEGRST]'
7645 # Regexp to match symbols that can be accessed directly from C.
7646 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7648 # Transform an extracted symbol line into a proper C declaration
7649 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7651 # Transform an extracted symbol line into symbol name and symbol address
7652 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'"
7654 # Define system-specific variables.
7659 cygwin* | mingw* | pw32*)
7660 symcode='[ABCDGISTW]'
7662 hpux*) # Its linker distinguishes data from code symbols
7663 if test "$host_cpu" = ia64; then
7664 symcode='[ABCDEGRST]'
7666 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7667 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'"
7670 if test "$host_cpu" = ia64; then
7671 symcode='[ABCDGIRSTW]'
7672 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7673 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'"
7677 symcode='[BCDEGRST]'
7680 symcode='[BCDEGQRST]'
7690 # Handle CRLF in mingw tool chain
7694 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7698 # If we're using GNU nm, then use its standard symbol codes.
7699 case `$NM -V 2>&1` in
7700 *GNU* | *'with BFD'*)
7701 symcode='[ABCDGIRSTW]' ;;
7704 # Try without a prefix undercore, then with it.
7705 for ac_symprfx in "" "_"; do
7707 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7708 symxfrm="\\1 $ac_symprfx\\2 \\2"
7710 # Write the raw and C identifiers.
7711 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7713 # Check to see that the pipe works correctly.
7717 cat > conftest.$ac_ext <<EOF
7722 void nm_test_func(){}
7726 int main(){nm_test_var='a';nm_test_func();return(0);}
7729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730 (eval $ac_compile) 2>&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; then
7734 # Now try to grab the symbols.
7736 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7737 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } && test -s "$nlist"; then
7741 # Try sorting and uniquifying the output.
7742 if sort "$nlist" | uniq > "$nlist"T; then
7743 mv -f "$nlist"T "$nlist"
7748 # Make sure that we snagged all the symbols we need.
7749 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7750 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7751 cat <<EOF > conftest.$ac_ext
7757 # Now generate the symbol file.
7758 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7760 cat <<EOF >> conftest.$ac_ext
7761 #if defined (__STDC__) && __STDC__
7762 # define lt_ptr_t void *
7764 # define lt_ptr_t char *
7768 /* The mapping between symbol names and symbols. */
7773 lt_preloaded_symbols[] =
7776 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7777 cat <<\EOF >> conftest.$ac_ext
7785 # Now try linking the two files.
7786 mv conftest.$ac_objext conftstm.$ac_objext
7787 lt_save_LIBS="$LIBS"
7788 lt_save_CFLAGS="$CFLAGS"
7789 LIBS="conftstm.$ac_objext"
7790 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7792 (eval $ac_link) 2>&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7798 LIBS="$lt_save_LIBS"
7799 CFLAGS="$lt_save_CFLAGS"
7801 echo "cannot find nm_test_func in $nlist" >&5
7804 echo "cannot find nm_test_var in $nlist" >&5
7807 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7810 echo "$progname: failed program was:" >&5
7811 cat conftest.$ac_ext >&5
7813 rm -f conftest* conftst*
7815 # Do not use the global_symbol_pipe unless it works.
7816 if test "$pipe_works" = yes; then
7819 lt_cv_sys_global_symbol_pipe=
7825 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7826 lt_cv_sys_global_symbol_to_cdecl=
7828 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7829 { echo "$as_me:$LINENO: result: failed" >&5
7830 echo "${ECHO_T}failed" >&6; }
7832 { echo "$as_me:$LINENO: result: ok" >&5
7833 echo "${ECHO_T}ok" >&6; }
7836 { echo "$as_me:$LINENO: checking for objdir" >&5
7837 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7838 if test "${lt_cv_objdir+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 rm -f .libs 2>/dev/null
7842 mkdir .libs 2>/dev/null
7843 if test -d .libs; then
7846 # MS-DOS does not allow filenames that begin with a dot.
7849 rmdir .libs 2>/dev/null
7851 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7852 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7853 objdir=$lt_cv_objdir
7861 # AIX sometimes has problems with the GCC collect2 program. For some
7862 # reason, if we set the COLLECT_NAMES environment variable, the problems
7863 # vanish in a puff of smoke.
7864 if test "X${COLLECT_NAMES+set}" != Xset; then
7866 export COLLECT_NAMES
7871 # Sed substitution that helps us do robust quoting. It backslashifies
7872 # metacharacters that are still active within double-quoted strings.
7873 Xsed='sed -e 1s/^X//'
7874 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7876 # Same as above, but do not quote variable references.
7877 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7879 # Sed substitution to delay expansion of an escaped shell variable in a
7880 # double_quote_subst'ed string.
7881 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7883 # Sed substitution to avoid accidental globbing in evaled expressions
7884 no_glob_subst='s/\*/\\\*/g'
7890 default_ofile=libtool
7891 can_build_shared=yes
7893 # All known linkers require a `.a' archive for static linking (except MSVC,
7894 # which needs '.lib').
7896 ltmain="$ac_aux_dir/ltmain.sh"
7897 ofile="$default_ofile"
7898 with_gnu_ld="$lt_cv_prog_gnu_ld"
7900 if test -n "$ac_tool_prefix"; then
7901 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7902 set dummy ${ac_tool_prefix}ar; ac_word=$2
7903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7905 if test "${ac_cv_prog_AR+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 if test -n "$AR"; then
7909 ac_cv_prog_AR="$AR" # Let the user override the test.
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7918 ac_cv_prog_AR="${ac_tool_prefix}ar"
7919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 if test -n "$AR"; then
7930 { echo "$as_me:$LINENO: result: $AR" >&5
7931 echo "${ECHO_T}$AR" >&6; }
7933 { echo "$as_me:$LINENO: result: no" >&5
7934 echo "${ECHO_T}no" >&6; }
7939 if test -z "$ac_cv_prog_AR"; then
7941 # Extract the first word of "ar", so it can be a program name with args.
7942 set dummy ar; ac_word=$2
7943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7945 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 if test -n "$ac_ct_AR"; then
7949 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7958 ac_cv_prog_ac_ct_AR="ar"
7959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7969 if test -n "$ac_ct_AR"; then
7970 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7971 echo "${ECHO_T}$ac_ct_AR" >&6; }
7973 { echo "$as_me:$LINENO: result: no" >&5
7974 echo "${ECHO_T}no" >&6; }
7977 if test "x$ac_ct_AR" = x; then
7980 case $cross_compiling:$ac_tool_warned in
7982 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7983 whose name does not start with the host triplet. If you think this
7984 configuration is useful to you, please write to autoconf@gnu.org." >&5
7985 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7986 whose name does not start with the host triplet. If you think this
7987 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7988 ac_tool_warned=yes ;;
7996 if test -n "$ac_tool_prefix"; then
7997 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7998 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8001 if test "${ac_cv_prog_RANLIB+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 if test -n "$RANLIB"; then
8005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 test -z "$as_dir" && as_dir=.
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8014 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 RANLIB=$ac_cv_prog_RANLIB
8025 if test -n "$RANLIB"; then
8026 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8027 echo "${ECHO_T}$RANLIB" >&6; }
8029 { echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6; }
8035 if test -z "$ac_cv_prog_RANLIB"; then
8036 ac_ct_RANLIB=$RANLIB
8037 # Extract the first word of "ranlib", so it can be a program name with args.
8038 set dummy ranlib; ac_word=$2
8039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8041 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 if test -n "$ac_ct_RANLIB"; then
8045 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_prog_ac_ct_RANLIB="ranlib"
8055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8064 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8065 if test -n "$ac_ct_RANLIB"; then
8066 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8067 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8069 { echo "$as_me:$LINENO: result: no" >&5
8070 echo "${ECHO_T}no" >&6; }
8073 if test "x$ac_ct_RANLIB" = x; then
8076 case $cross_compiling:$ac_tool_warned in
8078 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8079 whose name does not start with the host triplet. If you think this
8080 configuration is useful to you, please write to autoconf@gnu.org." >&5
8081 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8082 whose name does not start with the host triplet. If you think this
8083 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8084 ac_tool_warned=yes ;;
8086 RANLIB=$ac_ct_RANLIB
8089 RANLIB="$ac_cv_prog_RANLIB"
8092 if test -n "$ac_tool_prefix"; then
8093 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8094 set dummy ${ac_tool_prefix}strip; ac_word=$2
8095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8097 if test "${ac_cv_prog_STRIP+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 if test -n "$STRIP"; then
8101 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8110 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 STRIP=$ac_cv_prog_STRIP
8121 if test -n "$STRIP"; then
8122 { echo "$as_me:$LINENO: result: $STRIP" >&5
8123 echo "${ECHO_T}$STRIP" >&6; }
8125 { echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6; }
8131 if test -z "$ac_cv_prog_STRIP"; then
8133 # Extract the first word of "strip", so it can be a program name with args.
8134 set dummy strip; ac_word=$2
8135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8137 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 if test -n "$ac_ct_STRIP"; then
8141 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8150 ac_cv_prog_ac_ct_STRIP="strip"
8151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8161 if test -n "$ac_ct_STRIP"; then
8162 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8163 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8165 { echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6; }
8169 if test "x$ac_ct_STRIP" = x; then
8172 case $cross_compiling:$ac_tool_warned in
8174 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8175 whose name does not start with the host triplet. If you think this
8176 configuration is useful to you, please write to autoconf@gnu.org." >&5
8177 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8178 whose name does not start with the host triplet. If you think this
8179 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8180 ac_tool_warned=yes ;;
8185 STRIP="$ac_cv_prog_STRIP"
8190 old_CFLAGS="$CFLAGS"
8192 # Set sane defaults for various variables
8193 test -z "$AR" && AR=ar
8194 test -z "$AR_FLAGS" && AR_FLAGS=cru
8195 test -z "$AS" && AS=as
8196 test -z "$CC" && CC=cc
8197 test -z "$LTCC" && LTCC=$CC
8198 test -z "$DLLTOOL" && DLLTOOL=dlltool
8199 test -z "$LD" && LD=ld
8200 test -z "$LN_S" && LN_S="ln -s"
8201 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8202 test -z "$NM" && NM=nm
8203 test -z "$SED" && SED=sed
8204 test -z "$OBJDUMP" && OBJDUMP=objdump
8205 test -z "$RANLIB" && RANLIB=:
8206 test -z "$STRIP" && STRIP=:
8207 test -z "$ac_objext" && ac_objext=o
8209 # Determine commands to create old-style static archives.
8210 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8211 old_postinstall_cmds='chmod 644 $oldlib'
8212 old_postuninstall_cmds=
8214 if test -n "$RANLIB"; then
8217 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8220 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8223 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8226 for cc_temp in $compiler""; do
8228 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8229 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8234 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8237 # Only perform the check for file, if the check method requires it
8238 case $deplibs_check_method in
8240 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8241 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8242 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8243 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8251 lt_save_MAGIC_CMD="$MAGIC_CMD"
8252 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8253 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8254 for ac_dir in $ac_dummy; do
8256 test -z "$ac_dir" && ac_dir=.
8257 if test -f $ac_dir/${ac_tool_prefix}file; then
8258 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8259 if test -n "$file_magic_test_file"; then
8260 case $deplibs_check_method in
8262 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8264 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8265 $EGREP "$file_magic_regex" > /dev/null; then
8270 *** Warning: the command libtool uses to detect shared libraries,
8271 *** $file_magic_cmd, produces output that libtool cannot recognize.
8272 *** The result is that libtool may fail to recognize shared libraries
8273 *** as such. This will affect the creation of libtool libraries that
8274 *** depend on shared libraries, but programs linked with such libtool
8275 *** libraries will work regardless of this problem. Nevertheless, you
8276 *** may want to report the problem to your system manager and/or to
8277 *** bug-libtool@gnu.org
8287 MAGIC_CMD="$lt_save_MAGIC_CMD"
8292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8293 if test -n "$MAGIC_CMD"; then
8294 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8295 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8297 { echo "$as_me:$LINENO: result: no" >&5
8298 echo "${ECHO_T}no" >&6; }
8301 if test -z "$lt_cv_path_MAGIC_CMD"; then
8302 if test -n "$ac_tool_prefix"; then
8303 { echo "$as_me:$LINENO: checking for file" >&5
8304 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8305 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8313 lt_save_MAGIC_CMD="$MAGIC_CMD"
8314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8315 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8316 for ac_dir in $ac_dummy; do
8318 test -z "$ac_dir" && ac_dir=.
8319 if test -f $ac_dir/file; then
8320 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8321 if test -n "$file_magic_test_file"; then
8322 case $deplibs_check_method in
8324 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8326 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8327 $EGREP "$file_magic_regex" > /dev/null; then
8332 *** Warning: the command libtool uses to detect shared libraries,
8333 *** $file_magic_cmd, produces output that libtool cannot recognize.
8334 *** The result is that libtool may fail to recognize shared libraries
8335 *** as such. This will affect the creation of libtool libraries that
8336 *** depend on shared libraries, but programs linked with such libtool
8337 *** libraries will work regardless of this problem. Nevertheless, you
8338 *** may want to report the problem to your system manager and/or to
8339 *** bug-libtool@gnu.org
8349 MAGIC_CMD="$lt_save_MAGIC_CMD"
8354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8355 if test -n "$MAGIC_CMD"; then
8356 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8357 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8359 { echo "$as_me:$LINENO: result: no" >&5
8360 echo "${ECHO_T}no" >&6; }
8373 enable_win32_dll=yes
8375 # Check whether --enable-libtool-lock was given.
8376 if test "${enable_libtool_lock+set}" = set; then
8377 enableval=$enable_libtool_lock;
8380 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8383 # Check whether --with-pic was given.
8384 if test "${with_pic+set}" = set; then
8385 withval=$with_pic; pic_mode="$withval"
8390 test -z "$pic_mode" && pic_mode=default
8392 # Use C for the default configuration in the libtool script
8396 ac_cpp='$CPP $CPPFLAGS'
8397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8402 # Source file extension for C test sources.
8405 # Object file extension for compiled C test sources.
8409 # Code to be used in simple compile tests
8410 lt_simple_compile_test_code="int some_variable = 0;\n"
8412 # Code to be used in simple link tests
8413 lt_simple_link_test_code='int main(){return(0);}\n'
8416 # If no C compiler was specified, use CC.
8419 # Allow CC to be a program name with arguments.
8423 # save warnings/boilerplate of simple test code
8424 ac_outfile=conftest.$ac_objext
8425 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8426 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8427 _lt_compiler_boilerplate=`cat conftest.err`
8430 ac_outfile=conftest.$ac_objext
8431 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8432 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8433 _lt_linker_boilerplate=`cat conftest.err`
8438 # Check for any special shared library compilation flags.
8441 if test "$GCC" = no; then
8444 lt_prog_cc_shlib='-belf'
8448 if test -n "$lt_prog_cc_shlib"; then
8449 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8450 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8451 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8453 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8454 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8455 lt_cv_prog_cc_can_build_shared=no
8461 # Check to make sure the static flag actually works.
8463 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8464 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8465 if test "${lt_prog_compiler_static_works+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 lt_prog_compiler_static_works=no
8469 save_LDFLAGS="$LDFLAGS"
8470 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8471 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8472 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8473 # The linker can only warn and ignore the option if not recognized
8474 # So say no if there are warnings
8475 if test -s conftest.err; then
8476 # Append any errors to the config.log.
8477 cat conftest.err 1>&5
8478 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8479 $SED '/^$/d' conftest.err >conftest.er2
8480 if diff conftest.exp conftest.er2 >/dev/null; then
8481 lt_prog_compiler_static_works=yes
8484 lt_prog_compiler_static_works=yes
8488 LDFLAGS="$save_LDFLAGS"
8491 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8492 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8494 if test x"$lt_prog_compiler_static_works" = xyes; then
8497 lt_prog_compiler_static=
8503 lt_prog_compiler_no_builtin_flag=
8505 if test "$GCC" = yes; then
8506 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8509 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8510 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8511 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 lt_cv_prog_compiler_rtti_exceptions=no
8515 ac_outfile=conftest.$ac_objext
8516 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8517 lt_compiler_flag="-fno-rtti -fno-exceptions"
8518 # Insert the option either (1) after the last *FLAGS variable, or
8519 # (2) before a word containing "conftest.", or (3) at the end.
8520 # Note that $ac_compile itself does not contain backslashes and begins
8521 # with a dollar sign (not a hyphen), so the echo should work correctly.
8522 # The option is referenced via a variable to avoid confusing sed.
8523 lt_compile=`echo "$ac_compile" | $SED \
8524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8526 -e 's:$: $lt_compiler_flag:'`
8527 (eval echo "\"\$as_me:8527: $lt_compile\"" >&5)
8528 (eval "$lt_compile" 2>conftest.err)
8530 cat conftest.err >&5
8531 echo "$as_me:8531: \$? = $ac_status" >&5
8532 if (exit $ac_status) && test -s "$ac_outfile"; then
8533 # The compiler can only warn and ignore the option if not recognized
8534 # So say no if there are warnings other than the usual output.
8535 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8536 $SED '/^$/d' conftest.err >conftest.er2
8537 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8538 lt_cv_prog_compiler_rtti_exceptions=yes
8544 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8545 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8547 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8548 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8555 lt_prog_compiler_wl=
8556 lt_prog_compiler_pic=
8557 lt_prog_compiler_static=
8559 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8560 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8562 if test "$GCC" = yes; then
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_static='-static'
8568 # All AIX code is PIC.
8569 if test "$host_cpu" = ia64; then
8570 # AIX 5 now supports IA64 processor
8571 lt_prog_compiler_static='-Bstatic'
8576 # FIXME: we need at least 68020 code to build shared libraries, but
8577 # adding the `-m68020' flag to GCC prevents building anything better,
8579 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8582 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8583 # PIC is the default for these OSes.
8586 mingw* | pw32* | os2*)
8587 # This hack is so that the source file can tell whether it is being
8588 # built for inclusion in a dll (and should export symbols for example).
8589 lt_prog_compiler_pic='-DDLL_EXPORT'
8592 darwin* | rhapsody*)
8593 # PIC is the default on this platform
8594 # Common symbols not allowed in MH_DYLIB files
8595 lt_prog_compiler_pic='-fno-common'
8599 # Just because we use GCC doesn't mean we suddenly get shared libraries
8600 # on systems that don't support them.
8601 lt_prog_compiler_can_build_shared=no
8606 if test -d /usr/nec; then
8607 lt_prog_compiler_pic=-Kconform_pic
8612 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8619 lt_prog_compiler_pic='-fPIC'
8625 lt_prog_compiler_pic='-fPIC'
8629 # PORTME Check for flag to pass linker flags through the system compiler.
8632 lt_prog_compiler_wl='-Wl,'
8633 if test "$host_cpu" = ia64; then
8634 # AIX 5 now supports IA64 processor
8635 lt_prog_compiler_static='-Bstatic'
8637 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8641 # PIC is the default on this platform
8642 # Common symbols not allowed in MH_DYLIB files
8643 case $cc_basename in
8645 lt_prog_compiler_pic='-qnocommon'
8646 lt_prog_compiler_wl='-Wl,'
8651 mingw* | pw32* | os2*)
8652 # This hack is so that the source file can tell whether it is being
8653 # built for inclusion in a dll (and should export symbols for example).
8654 lt_prog_compiler_pic='-DDLL_EXPORT'
8657 hpux9* | hpux10* | hpux11*)
8658 lt_prog_compiler_wl='-Wl,'
8659 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8666 lt_prog_compiler_pic='+Z'
8669 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8670 lt_prog_compiler_static='${wl}-a ${wl}archive'
8673 irix5* | irix6* | nonstopux*)
8674 lt_prog_compiler_wl='-Wl,'
8675 # PIC (with -KPIC) is the default.
8676 lt_prog_compiler_static='-non_shared'
8680 lt_prog_compiler_pic='-KPIC'
8681 lt_prog_compiler_static='-Bstatic'
8685 case $cc_basename in
8687 lt_prog_compiler_wl='-Wl,'
8688 lt_prog_compiler_pic='-KPIC'
8689 lt_prog_compiler_static='-static'
8691 pgcc* | pgf77* | pgf90* | pgf95*)
8692 # Portland Group compilers (*not* the Pentium gcc compiler,
8693 # which looks to be a dead project)
8694 lt_prog_compiler_wl='-Wl,'
8695 lt_prog_compiler_pic='-fpic'
8696 lt_prog_compiler_static='-Bstatic'
8699 lt_prog_compiler_wl='-Wl,'
8700 # All Alpha code is PIC.
8701 lt_prog_compiler_static='-non_shared'
8706 osf3* | osf4* | osf5*)
8707 lt_prog_compiler_wl='-Wl,'
8708 # All OSF/1 code is PIC.
8709 lt_prog_compiler_static='-non_shared'
8713 lt_prog_compiler_pic='-Kpic'
8714 lt_prog_compiler_static='-dn'
8718 lt_prog_compiler_pic='-KPIC'
8719 lt_prog_compiler_static='-Bstatic'
8720 case $cc_basename in
8722 lt_prog_compiler_wl='-Qoption ld ';;
8724 lt_prog_compiler_wl='-Wl,';;
8729 lt_prog_compiler_wl='-Qoption ld '
8730 lt_prog_compiler_pic='-PIC'
8731 lt_prog_compiler_static='-Bstatic'
8734 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8735 lt_prog_compiler_wl='-Wl,'
8736 lt_prog_compiler_pic='-KPIC'
8737 lt_prog_compiler_static='-Bstatic'
8741 if test -d /usr/nec ;then
8742 lt_prog_compiler_pic='-Kconform_pic'
8743 lt_prog_compiler_static='-Bstatic'
8748 lt_prog_compiler_wl='-Wl,'
8749 lt_prog_compiler_can_build_shared=no
8753 lt_prog_compiler_pic='-pic'
8754 lt_prog_compiler_static='-Bstatic'
8758 lt_prog_compiler_can_build_shared=no
8763 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8764 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8767 # Check to make sure the PIC flag actually works.
8769 if test -n "$lt_prog_compiler_pic"; then
8771 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8772 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8773 if test "${lt_prog_compiler_pic_works+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 lt_prog_compiler_pic_works=no
8777 ac_outfile=conftest.$ac_objext
8778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8779 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8780 # Insert the option either (1) after the last *FLAGS variable, or
8781 # (2) before a word containing "conftest.", or (3) at the end.
8782 # Note that $ac_compile itself does not contain backslashes and begins
8783 # with a dollar sign (not a hyphen), so the echo should work correctly.
8784 # The option is referenced via a variable to avoid confusing sed.
8785 lt_compile=`echo "$ac_compile" | $SED \
8786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8788 -e 's:$: $lt_compiler_flag:'`
8789 (eval echo "\"\$as_me:8789: $lt_compile\"" >&5)
8790 (eval "$lt_compile" 2>conftest.err)
8792 cat conftest.err >&5
8793 echo "$as_me:8793: \$? = $ac_status" >&5
8794 if (exit $ac_status) && test -s "$ac_outfile"; then
8795 # The compiler can only warn and ignore the option if not recognized
8796 # So say no if there are warnings other than the usual output.
8797 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8798 $SED '/^$/d' conftest.err >conftest.er2
8799 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8800 lt_prog_compiler_pic_works=yes
8806 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8807 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8809 if test x"$lt_prog_compiler_pic_works" = xyes; then
8810 case $lt_prog_compiler_pic in
8812 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8815 lt_prog_compiler_pic=
8816 lt_prog_compiler_can_build_shared=no
8821 # For platforms which do not support PIC, -DPIC is meaningless:
8823 lt_prog_compiler_pic=
8826 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8830 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8832 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 lt_cv_prog_compiler_c_o=no
8836 $rm -r conftest 2>/dev/null
8840 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8842 lt_compiler_flag="-o out/conftest2.$ac_objext"
8843 # Insert the option either (1) after the last *FLAGS variable, or
8844 # (2) before a word containing "conftest.", or (3) at the end.
8845 # Note that $ac_compile itself does not contain backslashes and begins
8846 # with a dollar sign (not a hyphen), so the echo should work correctly.
8847 lt_compile=`echo "$ac_compile" | $SED \
8848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8850 -e 's:$: $lt_compiler_flag:'`
8851 (eval echo "\"\$as_me:8851: $lt_compile\"" >&5)
8852 (eval "$lt_compile" 2>out/conftest.err)
8854 cat out/conftest.err >&5
8855 echo "$as_me:8855: \$? = $ac_status" >&5
8856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8858 # The compiler can only warn and ignore the option if not recognized
8859 # So say no if there are warnings
8860 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8861 $SED '/^$/d' out/conftest.err >out/conftest.er2
8862 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8863 lt_cv_prog_compiler_c_o=yes
8868 # SGI C++ compiler will create directory out/ii_files/ for
8869 # template instantiation
8870 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8871 $rm out/* && rmdir out
8877 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8878 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8881 hard_links="nottested"
8882 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8883 # do not overwrite the value of need_locks provided by the user
8884 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8885 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8890 ln conftest.a conftest.b 2>&5 || hard_links=no
8891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8892 { echo "$as_me:$LINENO: result: $hard_links" >&5
8893 echo "${ECHO_T}$hard_links" >&6; }
8894 if test "$hard_links" = no; then
8895 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8896 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8903 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8904 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8907 allow_undefined_flag=
8908 enable_shared_with_static_runtimes=no
8910 archive_expsym_cmds=
8911 old_archive_From_new_cmds=
8912 old_archive_from_expsyms_cmds=
8913 export_dynamic_flag_spec=
8914 whole_archive_flag_spec=
8915 thread_safe_flag_spec=
8916 hardcode_libdir_flag_spec=
8917 hardcode_libdir_flag_spec_ld=
8918 hardcode_libdir_separator=
8921 hardcode_shlibpath_var=unsupported
8922 link_all_deplibs=unknown
8923 hardcode_automatic=no
8926 always_export_symbols=no
8927 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8928 # include_expsyms should be a list of space-separated symbols to be *always*
8929 # included in the symbol list
8931 # exclude_expsyms can be an extended regexp of symbols to exclude
8932 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8933 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8934 # as well as any symbol that contains `d'.
8935 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8936 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8937 # platforms (ab)use it in PIC code, but their linkers get confused if
8938 # the symbol is explicitly referenced. Since portable code cannot
8939 # rely on this symbol name, it's probably fine to never include it in
8940 # preloaded symbol tables.
8941 extract_expsyms_cmds=
8942 # Just being paranoid about ensuring that cc_basename is set.
8943 for cc_temp in $compiler""; do
8945 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8946 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8951 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8954 cygwin* | mingw* | pw32*)
8955 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8956 # When not using gcc, we currently assume that we are using
8957 # Microsoft Visual C++.
8958 if test "$GCC" != yes; then
8968 if test "$with_gnu_ld" = yes; then
8969 # If archive_cmds runs LD, not CC, wlarc should be empty
8972 # Set some defaults for GNU ld with shared library support. These
8973 # are reset later if shared libraries are not supported. Putting them
8974 # here allows them to be overridden if necessary.
8975 runpath_var=LD_RUN_PATH
8976 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8977 export_dynamic_flag_spec='${wl}--export-dynamic'
8978 # ancient GNU ld didn't support --whole-archive et. al.
8979 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8980 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8982 whole_archive_flag_spec=
8984 supports_anon_versioning=no
8985 case `$LD -v 2>/dev/null` in
8986 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8987 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8988 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8989 *\ 2.11.*) ;; # other 2.11 versions
8990 *) supports_anon_versioning=yes ;;
8993 # See if GNU ld supports shared libraries.
8995 aix3* | aix4* | aix5*)
8996 # On AIX/PPC, the GNU linker is very broken
8997 if test "$host_cpu" != ia64; then
9001 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9002 *** to be unable to reliably create shared libraries on AIX.
9003 *** Therefore, libtool is disabling shared libraries support. If you
9004 *** really care for shared libraries, you may want to modify your PATH
9005 *** so that a non-GNU linker is found, and then restart.
9012 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)'
9013 hardcode_libdir_flag_spec='-L$libdir'
9014 hardcode_minus_L=yes
9016 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9017 # that the semantics of dynamic libraries on AmigaOS, at least up
9018 # to version 4, is to share data among multiple programs linked
9019 # with the same dynamic library. Since this doesn't match the
9020 # behavior of shared libraries on other platforms, we can't use
9026 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9027 allow_undefined_flag=unsupported
9028 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9029 # support --undefined. This deserves some investigation. FIXME
9030 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036 cygwin* | mingw* | pw32*)
9037 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9038 # as there is no search path for DLLs.
9039 hardcode_libdir_flag_spec='-L$libdir'
9040 allow_undefined_flag=unsupported
9041 always_export_symbols=no
9042 enable_shared_with_static_runtimes=yes
9043 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9045 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9047 # If the export-symbols file already is a .def file (1st line
9048 # is EXPORTS), use it as is; otherwise, prepend...
9049 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9050 cp $export_symbols $output_objdir/$soname.def;
9052 echo EXPORTS > $output_objdir/$soname.def;
9053 cat $export_symbols >> $output_objdir/$soname.def;
9055 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9064 case $cc_basename,$host_cpu in
9065 pgcc*) # Portland Group C compiler
9066 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'
9067 tmp_addflag=' $pic_flag'
9069 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9070 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'
9071 tmp_addflag=' $pic_flag -Mnomain' ;;
9072 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9073 tmp_addflag=' -i_dynamic' ;;
9074 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9075 tmp_addflag=' -i_dynamic -nofor_main' ;;
9076 ifc* | ifort*) # Intel Fortran compiler
9077 tmp_addflag=' -nofor_main' ;;
9079 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081 if test $supports_anon_versioning = yes; then
9082 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9083 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9084 $echo "local: *; };" >> $output_objdir/$libname.ver~
9085 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9093 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9094 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9103 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9107 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9108 *** create shared libraries on Solaris systems. Therefore, libtool
9109 *** is disabling shared libraries support. We urge you to upgrade GNU
9110 *** binutils to release 2.9.1 or newer. Another option is to modify
9111 *** your PATH or compiler configuration so that the native linker is
9112 *** used, and then restart.
9115 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9117 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9124 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_shlibpath_var=no
9131 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9133 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9140 if test "$ld_shlibs" = no; then
9142 hardcode_libdir_flag_spec=
9143 export_dynamic_flag_spec=
9144 whole_archive_flag_spec=
9147 # PORTME fill in a description of your system's linker (not GNU ld)
9150 allow_undefined_flag=unsupported
9151 always_export_symbols=yes
9152 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'
9153 # Note: this linker hardcodes the directories in LIBPATH if there
9154 # are no directories specified by -L.
9155 hardcode_minus_L=yes
9156 if test "$GCC" = yes && test -z "$link_static_flag"; then
9157 # Neither direct hardcoding nor static linking is supported with a
9159 hardcode_direct=unsupported
9164 if test "$host_cpu" = ia64; then
9165 # On IA64, the linker does run time linking by default, so we don't
9166 # have to do anything special.
9167 aix_use_runtimelinking=no
9168 exp_sym_flag='-Bexport'
9171 # If we're using GNU nm, then we don't want the "-C" option.
9172 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9173 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9174 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'
9176 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'
9178 aix_use_runtimelinking=no
9180 # Test if we are trying to use run time linking or normal
9181 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9182 # need to do runtime linking.
9183 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9184 for ld_flag in $LDFLAGS; do
9185 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9186 aix_use_runtimelinking=yes
9192 exp_sym_flag='-bexport'
9193 no_entry_flag='-bnoentry'
9196 # When large executables or shared objects are built, AIX ld can
9197 # have problems creating the table of contents. If linking a library
9198 # or program results in "error TOC overflow" add -mminimal-toc to
9199 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9200 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9204 hardcode_libdir_separator=':'
9205 link_all_deplibs=yes
9207 if test "$GCC" = yes; then
9208 case $host_os in aix4.[012]|aix4.[012].*)
9209 # We only want to do this on AIX 4.2 and lower, the check
9210 # below for broken collect2 doesn't work under 4.3+
9211 collect2name=`${CC} -print-prog-name=collect2`
9212 if test -f "$collect2name" && \
9213 strings "$collect2name" | grep resolve_lib_name >/dev/null
9215 # We have reworked collect2
9218 # We have old collect2
9219 hardcode_direct=unsupported
9220 # It fails to find uninstalled libraries when the uninstalled
9221 # path is not listed in the libpath. Setting hardcode_minus_L
9222 # to unsupported forces relinking
9223 hardcode_minus_L=yes
9224 hardcode_libdir_flag_spec='-L$libdir'
9225 hardcode_libdir_separator=
9228 shared_flag='-shared'
9229 if test "$aix_use_runtimelinking" = yes; then
9230 shared_flag="$shared_flag "'${wl}-G'
9234 if test "$host_cpu" = ia64; then
9235 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9236 # chokes on -Wl,-G. The following line is correct:
9239 if test "$aix_use_runtimelinking" = yes; then
9240 shared_flag='${wl}-G'
9242 shared_flag='${wl}-bM:SRE'
9247 # It seems that -bexpall does not export symbols beginning with
9248 # underscore (_), so it is better to generate a list of symbols to export.
9249 always_export_symbols=yes
9250 if test "$aix_use_runtimelinking" = yes; then
9251 # Warning - without using the other runtime loading flags (-brtl),
9252 # -berok will link without error, but may produce a broken library.
9253 allow_undefined_flag='-berok'
9254 # Determine the default libpath from the value encoded in an empty executable.
9255 cat >conftest.$ac_ext <<_ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9270 rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (ac_try="$ac_link"
9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274 *) ac_try_echo=$ac_try;;
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277 (eval "$ac_link") 2>conftest.er1
9279 grep -v '^ *+' conftest.er1 >conftest.err
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9285 { (case "(($ac_try" in
9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_try") 2>&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; } &&
9294 { ac_try='test -s conftest$ac_exeext'
9295 { (case "(($ac_try" in
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300 (eval "$ac_try") 2>&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9307 # Check for a 64-bit object if we didn't find anything.
9308 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; }
9311 echo "$as_me: failed program was:" >&5
9312 sed 's/^/| /' conftest.$ac_ext >&5
9317 rm -f core conftest.err conftest.$ac_objext \
9318 conftest$ac_exeext conftest.$ac_ext
9319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9321 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9322 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"
9324 if test "$host_cpu" = ia64; then
9325 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9326 allow_undefined_flag="-z nodefs"
9327 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"
9329 # Determine the default libpath from the value encoded in an empty executable.
9330 cat >conftest.$ac_ext <<_ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (ac_try="$ac_link"
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_link") 2>conftest.er1
9354 grep -v '^ *+' conftest.er1 >conftest.err
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9360 { (case "(($ac_try" in
9361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362 *) ac_try_echo=$ac_try;;
9364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9365 (eval "$ac_try") 2>&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; } &&
9369 { ac_try='test -s conftest$ac_exeext'
9370 { (case "(($ac_try" in
9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372 *) ac_try_echo=$ac_try;;
9374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375 (eval "$ac_try") 2>&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9380 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9382 # Check for a 64-bit object if we didn't find anything.
9383 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; }
9386 echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9392 rm -f core conftest.err conftest.$ac_objext \
9393 conftest$ac_exeext conftest.$ac_ext
9394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9397 # Warning - without using the other run time loading flags,
9398 # -berok will link without error, but may produce a broken library.
9399 no_undefined_flag=' ${wl}-bernotok'
9400 allow_undefined_flag=' ${wl}-berok'
9401 # -bexpall does not export symbols beginning with underscore (_)
9402 always_export_symbols=yes
9403 # Exported symbols can be pulled into shared objects from archives
9404 whole_archive_flag_spec=' '
9405 archive_cmds_need_lc=yes
9406 # This is similar to how AIX traditionally builds its shared libraries.
9407 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'
9413 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)'
9414 hardcode_libdir_flag_spec='-L$libdir'
9415 hardcode_minus_L=yes
9416 # see comment about different semantics on the GNU ld section
9421 export_dynamic_flag_spec=-rdynamic
9424 cygwin* | mingw* | pw32*)
9425 # When not using gcc, we currently assume that we are using
9426 # Microsoft Visual C++.
9427 # hardcode_libdir_flag_spec is actually meaningless, as there is
9428 # no search path for DLLs.
9429 hardcode_libdir_flag_spec=' '
9430 allow_undefined_flag=unsupported
9431 # Tell ltmain to make .lib files, not .a files.
9433 # Tell ltmain to make .dll files, not .so files.
9435 # FIXME: Setting linknames here is a bad hack.
9436 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9437 # The linker will automatically build a .lib file if we build a DLL.
9438 old_archive_From_new_cmds='true'
9439 # FIXME: Should let the user specify the lib program.
9440 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9441 fix_srcfile_path='`cygpath -w "$srcfile"`'
9442 enable_shared_with_static_runtimes=yes
9445 darwin* | rhapsody*)
9447 rhapsody* | darwin1.[012])
9448 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9451 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9452 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9454 case ${MACOSX_DEPLOYMENT_TARGET} in
9456 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9459 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9465 archive_cmds_need_lc=no
9467 hardcode_automatic=yes
9468 hardcode_shlibpath_var=unsupported
9469 whole_archive_flag_spec=''
9470 link_all_deplibs=yes
9471 if test "$GCC" = yes ; then
9472 output_verbose_link_cmd='echo'
9473 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9474 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9475 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9476 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}'
9477 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}'
9479 case $cc_basename in
9481 output_verbose_link_cmd='echo'
9482 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9483 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9484 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9485 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}'
9486 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}'
9496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9497 hardcode_libdir_flag_spec='-L$libdir'
9498 hardcode_shlibpath_var=no
9505 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9506 # support. Future versions do this automatically, but an explicit c++rt0.o
9507 # does not break anything, and helps significantly (at the cost of a little
9510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9511 hardcode_libdir_flag_spec='-R$libdir'
9513 hardcode_shlibpath_var=no
9516 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9520 hardcode_minus_L=yes
9521 hardcode_shlibpath_var=no
9524 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9525 freebsd* | kfreebsd*-gnu | dragonfly*)
9526 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9527 hardcode_libdir_flag_spec='-R$libdir'
9529 hardcode_shlibpath_var=no
9533 if test "$GCC" = yes; then
9534 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'
9536 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'
9538 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9539 hardcode_libdir_separator=:
9542 # hardcode_minus_L: Not really in the search PATH,
9543 # but as the default location of the library.
9544 hardcode_minus_L=yes
9545 export_dynamic_flag_spec='${wl}-E'
9549 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9552 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9561 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9564 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9568 if test "$with_gnu_ld" = no; then
9571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9572 hardcode_libdir_flag_spec_ld='+b $libdir'
9573 hardcode_libdir_separator=:
9575 hardcode_shlibpath_var=no
9578 hardcode_libdir_flag_spec='-L$libdir'
9580 hardcode_shlibpath_var=no
9582 # hardcode_minus_L: Not really in the search PATH,
9583 # but as the default location of the library.
9584 hardcode_minus_L=yes
9587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9588 hardcode_libdir_separator=:
9590 export_dynamic_flag_spec='${wl}-E'
9592 # hardcode_minus_L: Not really in the search PATH,
9593 # but as the default location of the library.
9594 hardcode_minus_L=yes
9600 irix5* | irix6* | nonstopux*)
9601 if test "$GCC" = yes; then
9602 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'
9604 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'
9605 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9608 hardcode_libdir_separator=:
9609 link_all_deplibs=yes
9613 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9616 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9618 hardcode_libdir_flag_spec='-R$libdir'
9620 hardcode_shlibpath_var=no
9624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627 hardcode_libdir_separator=:
9628 hardcode_shlibpath_var=no
9633 hardcode_shlibpath_var=no
9634 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9635 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9636 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9637 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9638 export_dynamic_flag_spec='${wl}-E'
9641 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9643 hardcode_libdir_flag_spec='-R$libdir'
9646 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9647 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9654 hardcode_libdir_flag_spec='-L$libdir'
9655 hardcode_minus_L=yes
9656 allow_undefined_flag=unsupported
9657 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'
9658 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9662 if test "$GCC" = yes; then
9663 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9664 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'
9666 allow_undefined_flag=' -expect_unresolved \*'
9667 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'
9669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9670 hardcode_libdir_separator=:
9673 osf4* | osf5*) # as osf3* with the addition of -msym flag
9674 if test "$GCC" = yes; then
9675 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9676 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'
9677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9679 allow_undefined_flag=' -expect_unresolved \*'
9680 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'
9681 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9682 $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'
9684 # Both c and cxx compiler support -rpath directly
9685 hardcode_libdir_flag_spec='-rpath $libdir'
9687 hardcode_libdir_separator=:
9691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9692 hardcode_shlibpath_var=no
9693 export_dynamic_flag_spec='${wl}-Bexport'
9694 runpath_var=LD_RUN_PATH
9695 hardcode_runpath_var=yes
9699 no_undefined_flag=' -z text'
9700 if test "$GCC" = yes; then
9702 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9704 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9707 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9709 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9711 hardcode_libdir_flag_spec='-R$libdir'
9712 hardcode_shlibpath_var=no
9714 solaris2.[0-5] | solaris2.[0-5].*) ;;
9716 # The compiler driver will combine linker options so we
9717 # cannot just pass the convience library names through
9718 # without $wl, iff we do not link with $LD.
9719 # Luckily, gcc supports the same syntax we need for Sun Studio.
9720 # Supported since Solaris 2.6 (maybe 2.5.1?)
9723 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9725 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' ;;
9728 link_all_deplibs=yes
9732 if test "x$host_vendor" = xsequent; then
9733 # Use $CC to link under sequent, because it throws in some extra .o
9734 # files that make .init and .fini sections work.
9735 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9737 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9739 hardcode_libdir_flag_spec='-L$libdir'
9741 hardcode_minus_L=yes
9742 hardcode_shlibpath_var=no
9746 case $host_vendor in
9748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9749 hardcode_direct=yes # is this really true???
9752 ## LD is ld it makes a PLAMLIB
9753 ## CC just makes a GrossModule.
9754 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9755 reload_cmds='$CC -r -o $output$reload_objs'
9759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9763 runpath_var='LD_RUN_PATH'
9764 hardcode_shlibpath_var=no
9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_shlibpath_var=no
9770 export_dynamic_flag_spec='-Bexport'
9774 if test -d /usr/nec; then
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_shlibpath_var=no
9777 runpath_var=LD_RUN_PATH
9778 hardcode_runpath_var=yes
9784 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9787 hardcode_shlibpath_var=no
9788 hardcode_runpath_var=yes
9789 runpath_var=LD_RUN_PATH
9792 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9793 no_undefined_flag='${wl}-z ${wl}text'
9794 if test "$GCC" = yes; then
9795 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9797 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9799 runpath_var='LD_RUN_PATH'
9800 hardcode_shlibpath_var=no
9804 no_undefined_flag=' -z text'
9805 # $CC -shared without GNU ld will not create a library from C++
9806 # object files and a static libstdc++, better avoid it by now
9807 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9808 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9809 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9810 hardcode_libdir_flag_spec=
9811 hardcode_shlibpath_var=no
9812 runpath_var='LD_RUN_PATH'
9816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9817 hardcode_libdir_flag_spec='-L$libdir'
9818 hardcode_shlibpath_var=no
9827 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9828 echo "${ECHO_T}$ld_shlibs" >&6; }
9829 test "$ld_shlibs" = no && can_build_shared=no
9831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9832 if test "$GCC" = yes; then
9833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9837 # Do we need to explicitly link libc?
9839 case "x$archive_cmds_need_lc" in
9841 # Assume -lc should be added
9842 archive_cmds_need_lc=yes
9844 if test "$enable_shared" = yes && test "$GCC" = yes; then
9845 case $archive_cmds in
9847 # FIXME: we may have to deal with multi-command sequences.
9850 # Test whether the compiler implicitly links with -lc since on some
9851 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9852 # to ld, don't add -lc before -lgcc.
9853 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9854 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859 (eval $ac_compile) 2>&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } 2>conftest.err; then
9865 libobjs=conftest.$ac_objext
9867 wl=$lt_prog_compiler_wl
9873 lt_save_allow_undefined_flag=$allow_undefined_flag
9874 allow_undefined_flag=
9875 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9876 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }
9881 archive_cmds_need_lc=no
9883 archive_cmds_need_lc=yes
9885 allow_undefined_flag=$lt_save_allow_undefined_flag
9887 cat conftest.err 1>&5
9890 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9891 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9898 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9899 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9901 libname_spec='lib$name'
9909 shlibpath_overrides_runpath=unknown
9911 dynamic_linker="$host_os ld.so"
9912 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9913 if test "$GCC" = yes; then
9914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9915 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9916 # if the path contains ";" then we assume it to be the separator
9917 # otherwise default to the standard path separator (i.e. ":") - it is
9918 # assumed that no part of a normal pathname contains ";" but that should
9919 # okay in the real world where ";" in dirpaths is itself problematic.
9920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9925 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9927 need_lib_prefix=unknown
9928 hardcode_into_libs=no
9930 # when you set need_version to no, make sure it does not cause -set_version
9931 # flags to be left without arguments
9932 need_version=unknown
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9938 shlibpath_var=LIBPATH
9940 # AIX 3 has no versioning support, so we append a major version to the name.
9941 soname_spec='${libname}${release}${shared_ext}$major'
9948 hardcode_into_libs=yes
9949 if test "$host_cpu" = ia64; then
9950 # AIX 5 supports IA64
9951 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9952 shlibpath_var=LD_LIBRARY_PATH
9954 # With GCC up to 2.95.x, collect2 would create an import file
9955 # for dependence libraries. The import file would start with
9956 # the line `#! .'. This would cause the generated library to
9957 # depend on `.', always an invalid library. This was fixed in
9958 # development snapshots of GCC prior to 3.0.
9960 aix4 | aix4.[01] | aix4.[01].*)
9961 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9963 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9970 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9971 # soname into executable. Probably we can add versioning support to
9972 # collect2, so additional links can be useful in future.
9973 if test "$aix_use_runtimelinking" = yes; then
9974 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9975 # instead of lib<name>.a to let people know that these are not
9976 # typical AIX shared libraries.
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979 # We preserve .a as extension for shared libraries through AIX4.2
9980 # and later when we are not doing run time linking.
9981 library_names_spec='${libname}${release}.a $libname.a'
9982 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LIBPATH
9989 library_names_spec='$libname.ixlibrary $libname.a'
9990 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9991 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'
9995 library_names_spec='${libname}${shared_ext}'
9996 dynamic_linker="$host_os ld.so"
9997 shlibpath_var=LIBRARY_PATH
10003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10004 soname_spec='${libname}${release}${shared_ext}$major'
10005 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10008 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10009 # the default ld.so.conf also contains /usr/contrib/lib and
10010 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10011 # libtool to hard-code these into programs
10014 cygwin* | mingw* | pw32*)
10015 version_type=windows
10020 case $GCC,$host_os in
10021 yes,cygwin* | yes,mingw* | yes,pw32*)
10022 library_names_spec='$libname.dll.a'
10023 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10024 postinstall_cmds='base_file=`basename \${file}`~
10025 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10026 dldir=$destdir/`dirname \$dlpath`~
10027 test -d \$dldir || mkdir -p \$dldir~
10028 $install_prog $dir/$dlname \$dldir/$dlname~
10029 chmod a+x \$dldir/$dlname'
10030 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10031 dlpath=$dir/\$dldll~
10033 shlibpath_overrides_runpath=yes
10037 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10038 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10039 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10042 # MinGW DLLs use traditional 'lib' prefix
10043 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10044 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10045 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10046 # It is most probably a Windows format PATH printed by
10047 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10048 # path with ; separators, and with drive letters. We can handle the
10049 # drive letters (cygwin fileutils understands them), so leave them,
10050 # especially as we might pass files found there to a mingw objdump,
10051 # which wouldn't understand a cygwinified path. Ahh.
10052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10054 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10058 # pw32 DLLs use 'pw' prefix rather than 'lib'
10059 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10065 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10068 dynamic_linker='Win32 ld.exe'
10069 # FIXME: first we should search . and the directory the executable is in
10073 darwin* | rhapsody*)
10074 dynamic_linker="$host_os dyld"
10075 version_type=darwin
10078 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10079 soname_spec='${libname}${release}${major}$shared_ext'
10080 shlibpath_overrides_runpath=yes
10081 shlibpath_var=DYLD_LIBRARY_PATH
10082 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10083 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10084 if test "$GCC" = yes; then
10085 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"`
10087 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10089 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10098 shlibpath_var=LD_LIBRARY_PATH
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 shlibpath_var=LD_LIBRARY_PATH
10112 shlibpath_overrides_runpath=no
10113 hardcode_into_libs=yes
10114 dynamic_linker='GNU ld.so'
10117 freebsd* | dragonfly*)
10118 # DragonFly does not have aout. When/if they implement a new
10119 # versioning mechanism, adjust this.
10120 if test -x /usr/bin/objformat; then
10121 objformat=`/usr/bin/objformat`
10124 freebsd[123]*) objformat=aout ;;
10125 *) objformat=elf ;;
10128 version_type=freebsd-$objformat
10129 case $version_type in
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10140 shlibpath_var=LD_LIBRARY_PATH
10143 shlibpath_overrides_runpath=yes
10145 freebsd3.[01]* | freebsdelf3.[01]*)
10146 shlibpath_overrides_runpath=yes
10147 hardcode_into_libs=yes
10150 shlibpath_overrides_runpath=no
10151 hardcode_into_libs=yes
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 hardcode_into_libs=yes
10166 hpux9* | hpux10* | hpux11*)
10167 # Give a soname corresponding to the major version so that dld.sl refuses to
10168 # link against other versions.
10175 hardcode_into_libs=yes
10176 dynamic_linker="$host_os dld.so"
10177 shlibpath_var=LD_LIBRARY_PATH
10178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180 soname_spec='${libname}${release}${shared_ext}$major'
10181 if test "X$HPUX_IA64_MODE" = X32; then
10182 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10184 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10190 hardcode_into_libs=yes
10191 dynamic_linker="$host_os dld.sl"
10192 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10193 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10201 dynamic_linker="$host_os dld.sl"
10202 shlibpath_var=SHLIB_PATH
10203 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205 soname_spec='${libname}${release}${shared_ext}$major'
10208 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10209 postinstall_cmds='chmod 555 $lib'
10212 irix5* | irix6* | nonstopux*)
10214 nonstopux*) version_type=nonstopux ;;
10216 if test "$lt_cv_prog_gnu_ld" = yes; then
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10227 irix5* | nonstopux*)
10228 libsuff= shlibsuff=
10231 case $LD in # libtool.m4 will add one of these switches to LD
10232 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10233 libsuff= shlibsuff= libmagic=32-bit;;
10234 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10235 libsuff=32 shlibsuff=N32 libmagic=N32;;
10236 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10237 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10238 *) libsuff= shlibsuff= libmagic=never-match;;
10242 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10243 shlibpath_overrides_runpath=no
10244 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10245 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10246 hardcode_into_libs=yes
10249 # No shared lib support for Linux oldld, aout, or coff.
10250 linux*oldld* | linux*aout* | linux*coff*)
10254 # This must be Linux ELF.
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 shlibpath_overrides_runpath=no
10264 # This implies no fast_install, which is unacceptable.
10265 # Some rework will be needed to allow for fast_install
10266 # before this can be enabled.
10267 hardcode_into_libs=yes
10269 # Append ld.so.conf contents to the search path
10270 if test -f /etc/ld.so.conf; then
10271 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' ' '`
10272 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10275 # We used to test for /lib/ld.so.1 and disable shared libraries on
10276 # powerpc, because MkLinux only supported shared libraries with the
10277 # GNU dynamic linker. Since this was broken with cross compilers,
10278 # most powerpc-linux boxes support dynamic linking these days and
10279 # people can always --disable-shared, the test was removed, and we
10280 # assume the GNU/Linux dynamic linker is in use.
10281 dynamic_linker='GNU/Linux ld.so'
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=no
10292 hardcode_into_libs=yes
10293 dynamic_linker='GNU ld.so'
10300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10303 dynamic_linker='NetBSD (a.out) ld.so'
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 dynamic_linker='NetBSD ld.elf_so'
10309 shlibpath_var=LD_LIBRARY_PATH
10310 shlibpath_overrides_runpath=yes
10311 hardcode_into_libs=yes
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 shlibpath_overrides_runpath=yes
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 shlibpath_overrides_runpath=yes
10334 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10336 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10337 *) need_version=no ;;
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10344 openbsd2.[89] | openbsd2.[89].*)
10345 shlibpath_overrides_runpath=no
10348 shlibpath_overrides_runpath=yes
10352 shlibpath_overrides_runpath=yes
10357 libname_spec='$name'
10360 library_names_spec='$libname${shared_ext} $libname.a'
10361 dynamic_linker='OS/2 ld.exe'
10362 shlibpath_var=LIBPATH
10365 osf3* | osf4* | osf5*)
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10373 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380 shlibpath_var=LD_LIBRARY_PATH
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 shlibpath_overrides_runpath=yes
10391 hardcode_into_libs=yes
10392 # ldd complains unless libraries are executable
10393 postinstall_cmds='chmod +x $lib'
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10399 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10400 shlibpath_var=LD_LIBRARY_PATH
10401 shlibpath_overrides_runpath=yes
10402 if test "$with_gnu_ld" = yes; then
10408 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 shlibpath_var=LD_LIBRARY_PATH
10413 case $host_vendor in
10415 shlibpath_overrides_runpath=no
10417 export_dynamic_flag_spec='${wl}-Blargedynsym'
10418 runpath_var=LD_RUN_PATH
10426 shlibpath_overrides_runpath=no
10427 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10433 if test -d /usr/nec ;then
10435 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10436 soname_spec='$libname${shared_ext}.$major'
10437 shlibpath_var=LD_LIBRARY_PATH
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444 soname_spec='${libname}${release}${shared_ext}$major'
10445 shlibpath_var=LD_LIBRARY_PATH
10452 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10453 echo "${ECHO_T}$dynamic_linker" >&6; }
10454 test "$dynamic_linker" = no && can_build_shared=no
10456 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10457 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10459 if test -n "$hardcode_libdir_flag_spec" || \
10460 test -n "$runpath_var" || \
10461 test "X$hardcode_automatic" = "Xyes" ; then
10463 # We can hardcode non-existant directories.
10464 if test "$hardcode_direct" != no &&
10465 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10466 # have to relink, otherwise we might link with an installed library
10467 # when we should be linking with a yet-to-be-installed one
10468 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10469 test "$hardcode_minus_L" != no; then
10470 # Linking always hardcodes the temporary library directory.
10471 hardcode_action=relink
10473 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10474 hardcode_action=immediate
10477 # We cannot hardcode anything, or else we can only hardcode existing
10479 hardcode_action=unsupported
10481 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10482 echo "${ECHO_T}$hardcode_action" >&6; }
10484 if test "$hardcode_action" = relink; then
10485 # Fast installation is not supported
10486 enable_fast_install=no
10487 elif test "$shlibpath_overrides_runpath" = yes ||
10488 test "$enable_shared" = no; then
10489 # Fast installation is not necessary
10490 enable_fast_install=needless
10495 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10496 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10497 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10498 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10499 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10500 { echo "$as_me:$LINENO: result: yes" >&5
10501 echo "${ECHO_T}yes" >&6; }
10503 # FIXME - insert some real tests, host_os isn't really good enough
10506 if test -n "$STRIP" ; then
10507 striplib="$STRIP -x"
10508 { echo "$as_me:$LINENO: result: yes" >&5
10509 echo "${ECHO_T}yes" >&6; }
10511 { echo "$as_me:$LINENO: result: no" >&5
10512 echo "${ECHO_T}no" >&6; }
10516 { echo "$as_me:$LINENO: result: no" >&5
10517 echo "${ECHO_T}no" >&6; }
10522 if test "x$enable_dlopen" != xyes; then
10523 enable_dlopen=unknown
10524 enable_dlopen_self=unknown
10525 enable_dlopen_self_static=unknown
10532 lt_cv_dlopen="load_add_on"
10534 lt_cv_dlopen_self=yes
10538 lt_cv_dlopen="LoadLibrary"
10543 lt_cv_dlopen="dlopen"
10548 # if libdl is installed we need to link against it
10549 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10550 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10551 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 ac_check_lib_save_LIBS=$LIBS
10556 cat >conftest.$ac_ext <<_ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10563 /* Override any GCC internal prototype to avoid an error.
10564 Use char because int might match the return type of a GCC
10565 builtin and then its argument prototype would still apply. */
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (ac_try="$ac_link"
10580 case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_link") 2>conftest.er1
10587 grep -v '^ *+' conftest.er1 >conftest.err
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } &&
10592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10593 { (case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_try") 2>&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; } &&
10602 { ac_try='test -s conftest$ac_exeext'
10603 { (case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_try") 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 ac_cv_lib_dl_dlopen=yes
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10617 ac_cv_lib_dl_dlopen=no
10620 rm -f core conftest.err conftest.$ac_objext \
10621 conftest$ac_exeext conftest.$ac_ext
10622 LIBS=$ac_check_lib_save_LIBS
10624 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10625 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10626 if test $ac_cv_lib_dl_dlopen = yes; then
10627 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10630 lt_cv_dlopen="dyld"
10632 lt_cv_dlopen_self=yes
10639 { echo "$as_me:$LINENO: checking for shl_load" >&5
10640 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10641 if test "${ac_cv_func_shl_load+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 cat >conftest.$ac_ext <<_ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10652 #define shl_load innocuous_shl_load
10654 /* System header to define __stub macros and hopefully few prototypes,
10655 which can conflict with char shl_load (); below.
10656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10657 <limits.h> exists even on freestanding compilers. */
10660 # include <limits.h>
10662 # include <assert.h>
10667 /* Override any GCC internal prototype to avoid an error.
10668 Use char because int might match the return type of a GCC
10669 builtin and then its argument prototype would still apply. */
10674 /* The GNU C library defines this for functions which it implements
10675 to always fail with ENOSYS. Some functions are actually named
10676 something starting with __ and the normal name is an alias. */
10677 #if defined __stub_shl_load || defined __stub___shl_load
10684 return shl_load ();
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (ac_try="$ac_link"
10691 case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_link") 2>conftest.er1
10698 grep -v '^ *+' conftest.er1 >conftest.err
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } &&
10703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10704 { (case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_try") 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; } &&
10713 { ac_try='test -s conftest$ac_exeext'
10714 { (case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_try") 2>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; }; then
10723 ac_cv_func_shl_load=yes
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 ac_cv_func_shl_load=no
10731 rm -f core conftest.err conftest.$ac_objext \
10732 conftest$ac_exeext conftest.$ac_ext
10734 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10735 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10736 if test $ac_cv_func_shl_load = yes; then
10737 lt_cv_dlopen="shl_load"
10739 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10740 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10741 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 ac_check_lib_save_LIBS=$LIBS
10746 cat >conftest.$ac_ext <<_ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10753 /* Override any GCC internal prototype to avoid an error.
10754 Use char because int might match the return type of a GCC
10755 builtin and then its argument prototype would still apply. */
10763 return shl_load ();
10768 rm -f conftest.$ac_objext conftest$ac_exeext
10769 if { (ac_try="$ac_link"
10770 case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_link") 2>conftest.er1
10777 grep -v '^ *+' conftest.er1 >conftest.err
10779 cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10783 { (case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_try") 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; } &&
10792 { ac_try='test -s conftest$ac_exeext'
10793 { (case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_try") 2>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; }; then
10802 ac_cv_lib_dld_shl_load=yes
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10807 ac_cv_lib_dld_shl_load=no
10810 rm -f core conftest.err conftest.$ac_objext \
10811 conftest$ac_exeext conftest.$ac_ext
10812 LIBS=$ac_check_lib_save_LIBS
10814 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10815 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10816 if test $ac_cv_lib_dld_shl_load = yes; then
10817 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10819 { echo "$as_me:$LINENO: checking for dlopen" >&5
10820 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10821 if test "${ac_cv_func_dlopen+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 cat >conftest.$ac_ext <<_ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10830 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10832 #define dlopen innocuous_dlopen
10834 /* System header to define __stub macros and hopefully few prototypes,
10835 which can conflict with char dlopen (); below.
10836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10837 <limits.h> exists even on freestanding compilers. */
10840 # include <limits.h>
10842 # include <assert.h>
10847 /* Override any GCC internal prototype to avoid an error.
10848 Use char because int might match the return type of a GCC
10849 builtin and then its argument prototype would still apply. */
10854 /* The GNU C library defines this for functions which it implements
10855 to always fail with ENOSYS. Some functions are actually named
10856 something starting with __ and the normal name is an alias. */
10857 #if defined __stub_dlopen || defined __stub___dlopen
10869 rm -f conftest.$ac_objext conftest$ac_exeext
10870 if { (ac_try="$ac_link"
10871 case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_link") 2>conftest.er1
10878 grep -v '^ *+' conftest.er1 >conftest.err
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10884 { (case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_try") 2>&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; } &&
10893 { ac_try='test -s conftest$ac_exeext'
10894 { (case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_try") 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 ac_cv_func_dlopen=yes
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 ac_cv_func_dlopen=no
10911 rm -f core conftest.err conftest.$ac_objext \
10912 conftest$ac_exeext conftest.$ac_ext
10914 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10915 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10916 if test $ac_cv_func_dlopen = yes; then
10917 lt_cv_dlopen="dlopen"
10919 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10920 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10921 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 ac_check_lib_save_LIBS=$LIBS
10926 cat >conftest.$ac_ext <<_ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10933 /* Override any GCC internal prototype to avoid an error.
10934 Use char because int might match the return type of a GCC
10935 builtin and then its argument prototype would still apply. */
10948 rm -f conftest.$ac_objext conftest$ac_exeext
10949 if { (ac_try="$ac_link"
10950 case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_link") 2>conftest.er1
10957 grep -v '^ *+' conftest.er1 >conftest.err
10959 cat conftest.err >&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } &&
10962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10963 { (case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968 (eval "$ac_try") 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; } &&
10972 { ac_try='test -s conftest$ac_exeext'
10973 { (case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978 (eval "$ac_try") 2>&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; }; then
10982 ac_cv_lib_dl_dlopen=yes
10984 echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10987 ac_cv_lib_dl_dlopen=no
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10994 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10995 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10996 if test $ac_cv_lib_dl_dlopen = yes; then
10997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10999 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11000 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11001 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 ac_check_lib_save_LIBS=$LIBS
11005 LIBS="-lsvld $LIBS"
11006 cat >conftest.$ac_ext <<_ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11013 /* Override any GCC internal prototype to avoid an error.
11014 Use char because int might match the return type of a GCC
11015 builtin and then its argument prototype would still apply. */
11028 rm -f conftest.$ac_objext conftest$ac_exeext
11029 if { (ac_try="$ac_link"
11030 case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_link") 2>conftest.er1
11037 grep -v '^ *+' conftest.er1 >conftest.err
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11043 { (case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_try") 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; } &&
11052 { ac_try='test -s conftest$ac_exeext'
11053 { (case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_lib_svld_dlopen=yes
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_cv_lib_svld_dlopen=no
11070 rm -f core conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11072 LIBS=$ac_check_lib_save_LIBS
11074 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11075 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11076 if test $ac_cv_lib_svld_dlopen = yes; then
11077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11079 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11080 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11081 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 ac_check_lib_save_LIBS=$LIBS
11086 cat >conftest.$ac_ext <<_ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11093 /* Override any GCC internal prototype to avoid an error.
11094 Use char because int might match the return type of a GCC
11095 builtin and then its argument prototype would still apply. */
11103 return dld_link ();
11108 rm -f conftest.$ac_objext conftest$ac_exeext
11109 if { (ac_try="$ac_link"
11110 case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_link") 2>conftest.er1
11117 grep -v '^ *+' conftest.er1 >conftest.err
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11123 { (case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_try") 2>&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; } &&
11132 { ac_try='test -s conftest$ac_exeext'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_cv_lib_dld_dld_link=yes
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 ac_cv_lib_dld_dld_link=no
11150 rm -f core conftest.err conftest.$ac_objext \
11151 conftest$ac_exeext conftest.$ac_ext
11152 LIBS=$ac_check_lib_save_LIBS
11154 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11155 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11156 if test $ac_cv_lib_dld_dld_link = yes; then
11157 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11178 if test "x$lt_cv_dlopen" != xno; then
11184 case $lt_cv_dlopen in
11186 save_CPPFLAGS="$CPPFLAGS"
11187 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11189 save_LDFLAGS="$LDFLAGS"
11190 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11193 LIBS="$lt_cv_dlopen_libs $LIBS"
11195 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11196 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11197 if test "${lt_cv_dlopen_self+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 if test "$cross_compiling" = yes; then :
11201 lt_cv_dlopen_self=cross
11203 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11204 lt_status=$lt_dlunknown
11205 cat > conftest.$ac_ext <<EOF
11206 #line 11206 "configure"
11207 #include "confdefs.h"
11216 # define LT_DLGLOBAL RTLD_GLOBAL
11219 # define LT_DLGLOBAL DL_GLOBAL
11221 # define LT_DLGLOBAL 0
11225 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11226 find out it does not work in some platform. */
11227 #ifndef LT_DLLAZY_OR_NOW
11229 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11232 # define LT_DLLAZY_OR_NOW DL_LAZY
11235 # define LT_DLLAZY_OR_NOW RTLD_NOW
11238 # define LT_DLLAZY_OR_NOW DL_NOW
11240 # define LT_DLLAZY_OR_NOW 0
11248 extern "C" void exit (int);
11251 void fnord() { int i=42;}
11254 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11255 int status = $lt_dlunknown;
11259 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11260 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11261 /* dlclose (self); */
11267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11268 (eval $ac_link) 2>&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11272 (./conftest; exit; ) >&5 2>/dev/null
11274 case x$lt_status in
11275 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11276 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11277 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11280 # compilation failed
11281 lt_cv_dlopen_self=no
11288 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11289 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11291 if test "x$lt_cv_dlopen_self" = xyes; then
11292 LDFLAGS="$LDFLAGS $link_static_flag"
11293 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11294 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11295 if test "${lt_cv_dlopen_self_static+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 if test "$cross_compiling" = yes; then :
11299 lt_cv_dlopen_self_static=cross
11301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11302 lt_status=$lt_dlunknown
11303 cat > conftest.$ac_ext <<EOF
11304 #line 11304 "configure"
11305 #include "confdefs.h"
11314 # define LT_DLGLOBAL RTLD_GLOBAL
11317 # define LT_DLGLOBAL DL_GLOBAL
11319 # define LT_DLGLOBAL 0
11323 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11324 find out it does not work in some platform. */
11325 #ifndef LT_DLLAZY_OR_NOW
11327 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11330 # define LT_DLLAZY_OR_NOW DL_LAZY
11333 # define LT_DLLAZY_OR_NOW RTLD_NOW
11336 # define LT_DLLAZY_OR_NOW DL_NOW
11338 # define LT_DLLAZY_OR_NOW 0
11346 extern "C" void exit (int);
11349 void fnord() { int i=42;}
11352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11353 int status = $lt_dlunknown;
11357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11358 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11359 /* dlclose (self); */
11365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11366 (eval $ac_link) 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11370 (./conftest; exit; ) >&5 2>/dev/null
11372 case x$lt_status in
11373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11375 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11378 # compilation failed
11379 lt_cv_dlopen_self_static=no
11386 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11387 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11390 CPPFLAGS="$save_CPPFLAGS"
11391 LDFLAGS="$save_LDFLAGS"
11396 case $lt_cv_dlopen_self in
11397 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11398 *) enable_dlopen_self=unknown ;;
11401 case $lt_cv_dlopen_self_static in
11402 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11403 *) enable_dlopen_self_static=unknown ;;
11408 # Report which librarie types wil actually be built
11409 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11410 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11411 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11412 echo "${ECHO_T}$can_build_shared" >&6; }
11414 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11415 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11416 test "$can_build_shared" = "no" && enable_shared=no
11418 # On AIX, shared libraries and static libraries use the same namespace, and
11419 # are all built from PIC.
11422 test "$enable_shared" = yes && enable_static=no
11423 if test -n "$RANLIB"; then
11424 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11425 postinstall_cmds='$RANLIB $lib'
11430 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11431 test "$enable_shared" = yes && enable_static=no
11435 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11436 echo "${ECHO_T}$enable_shared" >&6; }
11438 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11439 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11440 # Make sure either enable_shared or enable_static is yes.
11441 test "$enable_shared" = yes || enable_static=yes
11442 { echo "$as_me:$LINENO: result: $enable_static" >&5
11443 echo "${ECHO_T}$enable_static" >&6; }
11445 # The else clause should only fire when bootstrapping the
11446 # libtool distribution, otherwise you forgot to ship ltmain.sh
11447 # with your package, and you will get complaints that there are
11448 # no rules to generate ltmain.sh.
11449 if test -f "$ltmain"; then
11450 # See if we are running on zsh, and set the options which allow our commands through
11451 # without removal of \ escapes.
11452 if test -n "${ZSH_VERSION+set}" ; then
11453 setopt NO_GLOB_SUBST
11455 # Now quote all the things that may contain metacharacters while being
11456 # careful not to overquote the AC_SUBSTed values. We take copies of the
11457 # variables and quote the copies for generation of the libtool script.
11458 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11460 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11461 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11462 deplibs_check_method reload_flag reload_cmds need_locks \
11463 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11464 lt_cv_sys_global_symbol_to_c_name_address \
11465 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11466 old_postinstall_cmds old_postuninstall_cmds \
11470 lt_prog_compiler_wl \
11471 lt_prog_compiler_pic \
11472 lt_prog_compiler_static \
11473 lt_prog_compiler_no_builtin_flag \
11474 export_dynamic_flag_spec \
11475 thread_safe_flag_spec \
11476 whole_archive_flag_spec \
11477 enable_shared_with_static_runtimes \
11479 old_archive_from_new_cmds \
11484 compiler_lib_search_path \
11486 archive_expsym_cmds \
11488 postuninstall_cmds \
11489 old_archive_from_expsyms_cmds \
11490 allow_undefined_flag \
11491 no_undefined_flag \
11492 export_symbols_cmds \
11493 hardcode_libdir_flag_spec \
11494 hardcode_libdir_flag_spec_ld \
11495 hardcode_libdir_separator \
11496 hardcode_automatic \
11498 module_expsym_cmds \
11499 lt_cv_prog_compiler_c_o \
11501 include_expsyms; do
11504 old_archive_cmds | \
11505 old_archive_from_new_cmds | \
11507 archive_expsym_cmds | \
11509 module_expsym_cmds | \
11510 old_archive_from_expsyms_cmds | \
11511 export_symbols_cmds | \
11512 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11513 postinstall_cmds | postuninstall_cmds | \
11514 old_postinstall_cmds | old_postuninstall_cmds | \
11515 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11516 # Double-quote double-evaled strings.
11517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11526 *'\$0 --fallback-echo"')
11527 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11531 cfgfile="${ofile}T"
11532 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11534 { echo "$as_me:$LINENO: creating $ofile" >&5
11535 echo "$as_me: creating $ofile" >&6;}
11537 cat <<__EOF__ >> "$cfgfile"
11540 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11541 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11542 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11544 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11545 # Free Software Foundation, Inc.
11547 # This file is part of GNU Libtool:
11548 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11550 # This program is free software; you can redistribute it and/or modify
11551 # it under the terms of the GNU General Public License as published by
11552 # the Free Software Foundation; either version 2 of the License, or
11553 # (at your option) any later version.
11555 # This program is distributed in the hope that it will be useful, but
11556 # WITHOUT ANY WARRANTY; without even the implied warranty of
11557 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11558 # General Public License for more details.
11560 # You should have received a copy of the GNU General Public License
11561 # along with this program; if not, write to the Free Software
11562 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11564 # As a special exception to the GNU General Public License, if you
11565 # distribute this file as part of a program that contains a
11566 # configuration script generated by Autoconf, you may include it under
11567 # the same distribution terms that you use for the rest of that program.
11569 # A sed program that does not truncate output.
11572 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11573 Xsed="$SED -e 1s/^X//"
11575 # The HP-UX ksh and POSIX shell print the target directory to stdout
11576 # if CDPATH is set.
11577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11579 # The names of the tagged configurations supported by this script.
11582 # ### BEGIN LIBTOOL CONFIG
11584 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11586 # Shell to use when invoking shell scripts.
11589 # Whether or not to build shared libraries.
11590 build_libtool_libs=$enable_shared
11592 # Whether or not to build static libraries.
11593 build_old_libs=$enable_static
11595 # Whether or not to add -lc for building shared libraries.
11596 build_libtool_need_lc=$archive_cmds_need_lc
11598 # Whether or not to disallow shared libs when runtime libs are static
11599 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11601 # Whether or not to optimize for fast installation.
11602 fast_install=$enable_fast_install
11605 host_alias=$host_alias
11609 # The build system.
11610 build_alias=$build_alias
11614 # An echo program that does not interpret backslashes.
11619 AR_FLAGS=$lt_AR_FLAGS
11624 # A language-specific compiler.
11627 # Is the compiler the GNU C compiler?
11633 # The linker used to build libraries.
11636 # Whether we need hard or soft links.
11639 # A BSD-compatible nm program.
11642 # A symbol stripping program
11645 # Used to examine libraries when file_magic_cmd begins "file"
11646 MAGIC_CMD=$MAGIC_CMD
11648 # Used on cygwin: DLL creation program.
11651 # Used on cygwin: object dumper.
11654 # Used on cygwin: assembler.
11657 # The name of the directory that contains temporary libtool files.
11660 # How to create reloadable object files.
11661 reload_flag=$lt_reload_flag
11662 reload_cmds=$lt_reload_cmds
11664 # How to pass a linker flag through the compiler.
11665 wl=$lt_lt_prog_compiler_wl
11667 # Object file suffix (normally "o").
11668 objext="$ac_objext"
11670 # Old archive suffix (normally "a").
11673 # Shared library suffix (normally ".so").
11674 shrext_cmds='$shrext_cmds'
11676 # Executable file suffix (normally "").
11679 # Additional compiler flags for building library objects.
11680 pic_flag=$lt_lt_prog_compiler_pic
11683 # What is the maximum length of a command?
11684 max_cmd_len=$lt_cv_sys_max_cmd_len
11686 # Does compiler simultaneously support -c and -o options?
11687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11689 # Must we lock files when doing compilation?
11690 need_locks=$lt_need_locks
11692 # Do we need the lib prefix for modules?
11693 need_lib_prefix=$need_lib_prefix
11695 # Do we need a version for libraries?
11696 need_version=$need_version
11698 # Whether dlopen is supported.
11699 dlopen_support=$enable_dlopen
11701 # Whether dlopen of programs is supported.
11702 dlopen_self=$enable_dlopen_self
11704 # Whether dlopen of statically linked programs is supported.
11705 dlopen_self_static=$enable_dlopen_self_static
11707 # Compiler flag to prevent dynamic linking.
11708 link_static_flag=$lt_lt_prog_compiler_static
11710 # Compiler flag to turn off builtin functions.
11711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11713 # Compiler flag to allow reflexive dlopens.
11714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11716 # Compiler flag to generate shared objects directly from archives.
11717 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11719 # Compiler flag to generate thread-safe objects.
11720 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11722 # Library versioning type.
11723 version_type=$version_type
11725 # Format of library name prefix.
11726 libname_spec=$lt_libname_spec
11728 # List of archive names. First name is the real one, the rest are links.
11729 # The last name is the one that the linker finds with -lNAME.
11730 library_names_spec=$lt_library_names_spec
11732 # The coded name of the library, if different from the real name.
11733 soname_spec=$lt_soname_spec
11735 # Commands used to build and install an old-style archive.
11737 old_archive_cmds=$lt_old_archive_cmds
11738 old_postinstall_cmds=$lt_old_postinstall_cmds
11739 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11741 # Create an old-style archive from a shared archive.
11742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11744 # Create a temporary old-style archive to link instead of a shared archive.
11745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11747 # Commands used to build and install a shared archive.
11748 archive_cmds=$lt_archive_cmds
11749 archive_expsym_cmds=$lt_archive_expsym_cmds
11750 postinstall_cmds=$lt_postinstall_cmds
11751 postuninstall_cmds=$lt_postuninstall_cmds
11753 # Commands used to build a loadable module (assumed same as above if empty)
11754 module_cmds=$lt_module_cmds
11755 module_expsym_cmds=$lt_module_expsym_cmds
11757 # Commands to strip libraries.
11758 old_striplib=$lt_old_striplib
11759 striplib=$lt_striplib
11761 # Dependencies to place before the objects being linked to create a
11763 predep_objects=$lt_predep_objects
11765 # Dependencies to place after the objects being linked to create a
11767 postdep_objects=$lt_postdep_objects
11769 # Dependencies to place before the objects being linked to create a
11771 predeps=$lt_predeps
11773 # Dependencies to place after the objects being linked to create a
11775 postdeps=$lt_postdeps
11777 # The library search path used internally by the compiler when linking
11778 # a shared library.
11779 compiler_lib_search_path=$lt_compiler_lib_search_path
11781 # Method to check whether dependent libraries are shared objects.
11782 deplibs_check_method=$lt_deplibs_check_method
11784 # Command to use when deplibs_check_method == file_magic.
11785 file_magic_cmd=$lt_file_magic_cmd
11787 # Flag that allows shared libraries with undefined symbols to be built.
11788 allow_undefined_flag=$lt_allow_undefined_flag
11790 # Flag that forces no undefined symbols.
11791 no_undefined_flag=$lt_no_undefined_flag
11793 # Commands used to finish a libtool library installation in a directory.
11794 finish_cmds=$lt_finish_cmds
11796 # Same as above, but a single script fragment to be evaled but not shown.
11797 finish_eval=$lt_finish_eval
11799 # Take the output of nm and produce a listing of raw symbols and C names.
11800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11802 # Transform the output of nm in a proper C declaration
11803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11805 # Transform the output of nm in a C name address pair
11806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11808 # This is the shared library runtime path variable.
11809 runpath_var=$runpath_var
11811 # This is the shared library path variable.
11812 shlibpath_var=$shlibpath_var
11814 # Is shlibpath searched before the hard-coded library search path?
11815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11817 # How to hardcode a shared library path into an executable.
11818 hardcode_action=$hardcode_action
11820 # Whether we should hardcode library paths into libraries.
11821 hardcode_into_libs=$hardcode_into_libs
11823 # Flag to hardcode \$libdir into a binary during linking.
11824 # This must work even if \$libdir does not exist.
11825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11827 # If ld is used when linking, flag to hardcode \$libdir into
11828 # a binary during linking. This must work even if \$libdir does
11830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11832 # Whether we need a single -rpath flag with a separated argument.
11833 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11836 # resulting binary.
11837 hardcode_direct=$hardcode_direct
11839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11840 # resulting binary.
11841 hardcode_minus_L=$hardcode_minus_L
11843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11844 # the resulting binary.
11845 hardcode_shlibpath_var=$hardcode_shlibpath_var
11847 # Set to yes if building a shared library automatically hardcodes DIR into the library
11848 # and all subsequent libraries and executables linked against it.
11849 hardcode_automatic=$hardcode_automatic
11851 # Variables whose values should be saved in libtool wrapper scripts and
11852 # restored at relink time.
11853 variables_saved_for_relink="$variables_saved_for_relink"
11855 # Whether libtool must link a program against all its dependency libraries.
11856 link_all_deplibs=$link_all_deplibs
11858 # Compile-time system search path for libraries
11859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11861 # Run-time system search path for libraries
11862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11864 # Fix the shell variable \$srcfile for the compiler.
11865 fix_srcfile_path="$fix_srcfile_path"
11867 # Set to yes if exported symbols are required.
11868 always_export_symbols=$always_export_symbols
11870 # The commands to list exported symbols.
11871 export_symbols_cmds=$lt_export_symbols_cmds
11873 # The commands to extract the exported symbol list from a shared archive.
11874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11876 # Symbols that should not be listed in the preloaded symbols.
11877 exclude_expsyms=$lt_exclude_expsyms
11879 # Symbols that must always be exported.
11880 include_expsyms=$lt_include_expsyms
11882 # ### END LIBTOOL CONFIG
11889 cat <<\EOF >> "$cfgfile"
11891 # AIX sometimes has problems with the GCC collect2 program. For some
11892 # reason, if we set the COLLECT_NAMES environment variable, the problems
11893 # vanish in a puff of smoke.
11894 if test "X${COLLECT_NAMES+set}" != Xset; then
11896 export COLLECT_NAMES
11902 # We use sed instead of cat because bash on DJGPP gets confused if
11903 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11904 # text mode, it properly converts lines to CR/LF. This bash problem
11905 # is reportedly fixed, but why not run on old versions too?
11906 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11908 mv -f "$cfgfile" "$ofile" || \
11909 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11913 # If there is no Makefile yet, we rely on a make rule to execute
11914 # `config.status --recheck' to rerun these tests and create the
11915 # libtool script then.
11916 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11917 if test -f "$ltmain_in"; then
11918 test -f Makefile && make "$ltmain"
11924 ac_cpp='$CPP $CPPFLAGS'
11925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11932 # Check whether --with-tags was given.
11933 if test "${with_tags+set}" = set; then
11934 withval=$with_tags; tagnames="$withval"
11938 if test -f "$ltmain" && test -n "$tagnames"; then
11939 if test ! -f "${ofile}"; then
11940 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11941 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11944 if test -z "$LTCC"; then
11945 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11946 if test -z "$LTCC"; then
11947 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11948 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11951 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11955 # Extract list of available tagged configurations in $ofile.
11956 # Note that this assumes the entire list is on one line.
11957 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11959 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11960 for tagname in $tagnames; do
11962 # Check whether tagname contains only valid characters
11963 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11965 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11966 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11967 { (exit 1); exit 1; }; }
11971 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11973 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11974 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11975 { (exit 1); exit 1; }; }
11978 # Update the list of available tags.
11979 if test -n "$tagname"; then
11980 echo appending configuration tag \"$tagname\" to $ofile
11984 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11985 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11986 (test "X$CXX" != "Xg++"))) ; then
11994 if test -n "$F77" && test "X$F77" != "Xno"; then
12002 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12012 # Source file extension for RC test sources.
12015 # Object file extension for compiled RC test sources.
12019 # Code to be used in simple compile tests
12020 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
12022 # Code to be used in simple link tests
12023 lt_simple_link_test_code="$lt_simple_compile_test_code"
12025 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12027 # If no C compiler was specified, use CC.
12030 # Allow CC to be a program name with arguments.
12034 # save warnings/boilerplate of simple test code
12035 ac_outfile=conftest.$ac_objext
12036 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12038 _lt_compiler_boilerplate=`cat conftest.err`
12041 ac_outfile=conftest.$ac_objext
12042 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12044 _lt_linker_boilerplate=`cat conftest.err`
12048 # Allow CC to be a program name with arguments.
12053 for cc_temp in $compiler""; do
12055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12061 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12063 lt_cv_prog_compiler_c_o_RC=yes
12065 # The else clause should only fire when bootstrapping the
12066 # libtool distribution, otherwise you forgot to ship ltmain.sh
12067 # with your package, and you will get complaints that there are
12068 # no rules to generate ltmain.sh.
12069 if test -f "$ltmain"; then
12070 # See if we are running on zsh, and set the options which allow our commands through
12071 # without removal of \ escapes.
12072 if test -n "${ZSH_VERSION+set}" ; then
12073 setopt NO_GLOB_SUBST
12075 # Now quote all the things that may contain metacharacters while being
12076 # careful not to overquote the AC_SUBSTed values. We take copies of the
12077 # variables and quote the copies for generation of the libtool script.
12078 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12080 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12081 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12082 deplibs_check_method reload_flag reload_cmds need_locks \
12083 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12084 lt_cv_sys_global_symbol_to_c_name_address \
12085 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12086 old_postinstall_cmds old_postuninstall_cmds \
12090 lt_prog_compiler_wl_RC \
12091 lt_prog_compiler_pic_RC \
12092 lt_prog_compiler_static_RC \
12093 lt_prog_compiler_no_builtin_flag_RC \
12094 export_dynamic_flag_spec_RC \
12095 thread_safe_flag_spec_RC \
12096 whole_archive_flag_spec_RC \
12097 enable_shared_with_static_runtimes_RC \
12098 old_archive_cmds_RC \
12099 old_archive_from_new_cmds_RC \
12100 predep_objects_RC \
12101 postdep_objects_RC \
12104 compiler_lib_search_path_RC \
12106 archive_expsym_cmds_RC \
12107 postinstall_cmds_RC \
12108 postuninstall_cmds_RC \
12109 old_archive_from_expsyms_cmds_RC \
12110 allow_undefined_flag_RC \
12111 no_undefined_flag_RC \
12112 export_symbols_cmds_RC \
12113 hardcode_libdir_flag_spec_RC \
12114 hardcode_libdir_flag_spec_ld_RC \
12115 hardcode_libdir_separator_RC \
12116 hardcode_automatic_RC \
12118 module_expsym_cmds_RC \
12119 lt_cv_prog_compiler_c_o_RC \
12120 exclude_expsyms_RC \
12121 include_expsyms_RC; do
12124 old_archive_cmds_RC | \
12125 old_archive_from_new_cmds_RC | \
12126 archive_cmds_RC | \
12127 archive_expsym_cmds_RC | \
12129 module_expsym_cmds_RC | \
12130 old_archive_from_expsyms_cmds_RC | \
12131 export_symbols_cmds_RC | \
12132 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12133 postinstall_cmds | postuninstall_cmds | \
12134 old_postinstall_cmds | old_postuninstall_cmds | \
12135 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12136 # Double-quote double-evaled strings.
12137 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12146 *'\$0 --fallback-echo"')
12147 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12153 cat <<__EOF__ >> "$cfgfile"
12154 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12156 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12158 # Shell to use when invoking shell scripts.
12161 # Whether or not to build shared libraries.
12162 build_libtool_libs=$enable_shared
12164 # Whether or not to build static libraries.
12165 build_old_libs=$enable_static
12167 # Whether or not to add -lc for building shared libraries.
12168 build_libtool_need_lc=$archive_cmds_need_lc_RC
12170 # Whether or not to disallow shared libs when runtime libs are static
12171 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12173 # Whether or not to optimize for fast installation.
12174 fast_install=$enable_fast_install
12177 host_alias=$host_alias
12181 # The build system.
12182 build_alias=$build_alias
12186 # An echo program that does not interpret backslashes.
12191 AR_FLAGS=$lt_AR_FLAGS
12196 # A language-specific compiler.
12199 # Is the compiler the GNU C compiler?
12205 # The linker used to build libraries.
12208 # Whether we need hard or soft links.
12211 # A BSD-compatible nm program.
12214 # A symbol stripping program
12217 # Used to examine libraries when file_magic_cmd begins "file"
12218 MAGIC_CMD=$MAGIC_CMD
12220 # Used on cygwin: DLL creation program.
12223 # Used on cygwin: object dumper.
12226 # Used on cygwin: assembler.
12229 # The name of the directory that contains temporary libtool files.
12232 # How to create reloadable object files.
12233 reload_flag=$lt_reload_flag
12234 reload_cmds=$lt_reload_cmds
12236 # How to pass a linker flag through the compiler.
12237 wl=$lt_lt_prog_compiler_wl_RC
12239 # Object file suffix (normally "o").
12240 objext="$ac_objext"
12242 # Old archive suffix (normally "a").
12245 # Shared library suffix (normally ".so").
12246 shrext_cmds='$shrext_cmds'
12248 # Executable file suffix (normally "").
12251 # Additional compiler flags for building library objects.
12252 pic_flag=$lt_lt_prog_compiler_pic_RC
12255 # What is the maximum length of a command?
12256 max_cmd_len=$lt_cv_sys_max_cmd_len
12258 # Does compiler simultaneously support -c and -o options?
12259 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12261 # Must we lock files when doing compilation?
12262 need_locks=$lt_need_locks
12264 # Do we need the lib prefix for modules?
12265 need_lib_prefix=$need_lib_prefix
12267 # Do we need a version for libraries?
12268 need_version=$need_version
12270 # Whether dlopen is supported.
12271 dlopen_support=$enable_dlopen
12273 # Whether dlopen of programs is supported.
12274 dlopen_self=$enable_dlopen_self
12276 # Whether dlopen of statically linked programs is supported.
12277 dlopen_self_static=$enable_dlopen_self_static
12279 # Compiler flag to prevent dynamic linking.
12280 link_static_flag=$lt_lt_prog_compiler_static_RC
12282 # Compiler flag to turn off builtin functions.
12283 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12285 # Compiler flag to allow reflexive dlopens.
12286 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12288 # Compiler flag to generate shared objects directly from archives.
12289 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12291 # Compiler flag to generate thread-safe objects.
12292 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12294 # Library versioning type.
12295 version_type=$version_type
12297 # Format of library name prefix.
12298 libname_spec=$lt_libname_spec
12300 # List of archive names. First name is the real one, the rest are links.
12301 # The last name is the one that the linker finds with -lNAME.
12302 library_names_spec=$lt_library_names_spec
12304 # The coded name of the library, if different from the real name.
12305 soname_spec=$lt_soname_spec
12307 # Commands used to build and install an old-style archive.
12309 old_archive_cmds=$lt_old_archive_cmds_RC
12310 old_postinstall_cmds=$lt_old_postinstall_cmds
12311 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12313 # Create an old-style archive from a shared archive.
12314 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12316 # Create a temporary old-style archive to link instead of a shared archive.
12317 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12319 # Commands used to build and install a shared archive.
12320 archive_cmds=$lt_archive_cmds_RC
12321 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12322 postinstall_cmds=$lt_postinstall_cmds
12323 postuninstall_cmds=$lt_postuninstall_cmds
12325 # Commands used to build a loadable module (assumed same as above if empty)
12326 module_cmds=$lt_module_cmds_RC
12327 module_expsym_cmds=$lt_module_expsym_cmds_RC
12329 # Commands to strip libraries.
12330 old_striplib=$lt_old_striplib
12331 striplib=$lt_striplib
12333 # Dependencies to place before the objects being linked to create a
12335 predep_objects=$lt_predep_objects_RC
12337 # Dependencies to place after the objects being linked to create a
12339 postdep_objects=$lt_postdep_objects_RC
12341 # Dependencies to place before the objects being linked to create a
12343 predeps=$lt_predeps_RC
12345 # Dependencies to place after the objects being linked to create a
12347 postdeps=$lt_postdeps_RC
12349 # The library search path used internally by the compiler when linking
12350 # a shared library.
12351 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12353 # Method to check whether dependent libraries are shared objects.
12354 deplibs_check_method=$lt_deplibs_check_method
12356 # Command to use when deplibs_check_method == file_magic.
12357 file_magic_cmd=$lt_file_magic_cmd
12359 # Flag that allows shared libraries with undefined symbols to be built.
12360 allow_undefined_flag=$lt_allow_undefined_flag_RC
12362 # Flag that forces no undefined symbols.
12363 no_undefined_flag=$lt_no_undefined_flag_RC
12365 # Commands used to finish a libtool library installation in a directory.
12366 finish_cmds=$lt_finish_cmds
12368 # Same as above, but a single script fragment to be evaled but not shown.
12369 finish_eval=$lt_finish_eval
12371 # Take the output of nm and produce a listing of raw symbols and C names.
12372 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12374 # Transform the output of nm in a proper C declaration
12375 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12377 # Transform the output of nm in a C name address pair
12378 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12380 # This is the shared library runtime path variable.
12381 runpath_var=$runpath_var
12383 # This is the shared library path variable.
12384 shlibpath_var=$shlibpath_var
12386 # Is shlibpath searched before the hard-coded library search path?
12387 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12389 # How to hardcode a shared library path into an executable.
12390 hardcode_action=$hardcode_action_RC
12392 # Whether we should hardcode library paths into libraries.
12393 hardcode_into_libs=$hardcode_into_libs
12395 # Flag to hardcode \$libdir into a binary during linking.
12396 # This must work even if \$libdir does not exist.
12397 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12399 # If ld is used when linking, flag to hardcode \$libdir into
12400 # a binary during linking. This must work even if \$libdir does
12402 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12404 # Whether we need a single -rpath flag with a separated argument.
12405 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12407 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12408 # resulting binary.
12409 hardcode_direct=$hardcode_direct_RC
12411 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12412 # resulting binary.
12413 hardcode_minus_L=$hardcode_minus_L_RC
12415 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12416 # the resulting binary.
12417 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12419 # Set to yes if building a shared library automatically hardcodes DIR into the library
12420 # and all subsequent libraries and executables linked against it.
12421 hardcode_automatic=$hardcode_automatic_RC
12423 # Variables whose values should be saved in libtool wrapper scripts and
12424 # restored at relink time.
12425 variables_saved_for_relink="$variables_saved_for_relink"
12427 # Whether libtool must link a program against all its dependency libraries.
12428 link_all_deplibs=$link_all_deplibs_RC
12430 # Compile-time system search path for libraries
12431 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12433 # Run-time system search path for libraries
12434 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12436 # Fix the shell variable \$srcfile for the compiler.
12437 fix_srcfile_path="$fix_srcfile_path_RC"
12439 # Set to yes if exported symbols are required.
12440 always_export_symbols=$always_export_symbols_RC
12442 # The commands to list exported symbols.
12443 export_symbols_cmds=$lt_export_symbols_cmds_RC
12445 # The commands to extract the exported symbol list from a shared archive.
12446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12448 # Symbols that should not be listed in the preloaded symbols.
12449 exclude_expsyms=$lt_exclude_expsyms_RC
12451 # Symbols that must always be exported.
12452 include_expsyms=$lt_include_expsyms_RC
12454 # ### END LIBTOOL TAG CONFIG: $tagname
12460 # If there is no Makefile yet, we rely on a make rule to execute
12461 # `config.status --recheck' to rerun these tests and create the
12462 # libtool script then.
12463 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12464 if test -f "$ltmain_in"; then
12465 test -f Makefile && make "$ltmain"
12471 ac_cpp='$CPP $CPPFLAGS'
12472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12481 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12482 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12483 { (exit 1); exit 1; }; }
12487 # Append the new tag name to the list of available tags.
12488 if test -n "$tagname" ; then
12489 available_tags="$available_tags $tagname"
12495 # Now substitute the updated list of available tags.
12496 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12497 mv "${ofile}T" "$ofile"
12501 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12502 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12503 { (exit 1); exit 1; }; }
12509 # This can be used to rebuild libtool when needed
12510 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12512 # Always use our own libtool.
12513 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12515 # Prevent multiple expansion
12527 if test $ol_enable_perl != no ; then
12528 # Extract the first word of "perl", so it can be a program name with args.
12529 set dummy perl; ac_word=$2
12530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12532 if test "${ac_cv_path_PERLBIN+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in $PATH
12544 test -z "$as_dir" && as_dir=.
12545 for ac_exec_ext in '' $ac_executable_extensions; do
12546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12547 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12555 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12559 PERLBIN=$ac_cv_path_PERLBIN
12560 if test -n "$PERLBIN"; then
12561 { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12562 echo "${ECHO_T}$PERLBIN" >&6; }
12564 { echo "$as_me:$LINENO: result: no" >&5
12565 echo "${ECHO_T}no" >&6; }
12570 if test "no$PERLBIN" = "no" ; then
12571 if test $ol_enable_perl = yes ; then
12572 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12573 echo "$as_me: error: could not locate perl" >&2;}
12574 { (exit 1); exit 1; }; }
12578 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12579 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12581 if test x"$ol_enable_perl" = "xyes" ; then
12582 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12584 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12591 ac_cpp='$CPP $CPPFLAGS'
12592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12595 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12596 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12597 # On Suns, sometimes $CPP names a directory.
12598 if test -n "$CPP" && test -d "$CPP"; then
12601 if test -z "$CPP"; then
12602 if test "${ac_cv_prog_CPP+set}" = set; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12605 # Double quotes because CPP needs to be expanded
12606 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12608 ac_preproc_ok=false
12609 for ac_c_preproc_warn_flag in '' yes
12611 # Use a header file that comes with gcc, so configuring glibc
12612 # with a fresh cross-compiler works.
12613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12614 # <limits.h> exists even on freestanding compilers.
12615 # On the NeXT, cc -E runs the code through the compiler's parser,
12616 # not just through cpp. "Syntax error" is here to catch this case.
12617 cat >conftest.$ac_ext <<_ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12624 # include <limits.h>
12626 # include <assert.h>
12630 if { (ac_try="$ac_cpp conftest.$ac_ext"
12631 case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12638 grep -v '^ *+' conftest.er1 >conftest.err
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } >/dev/null; then
12643 if test -s conftest.err; then
12644 ac_cpp_err=$ac_c_preproc_warn_flag
12645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12652 if test -z "$ac_cpp_err"; then
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 # Broken: fails on valid input.
12662 rm -f conftest.err conftest.$ac_ext
12664 # OK, works on sane cases. Now check whether nonexistent headers
12665 # can be detected and how.
12666 cat >conftest.$ac_ext <<_ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12672 #include <ac_nonexistent.h>
12674 if { (ac_try="$ac_cpp conftest.$ac_ext"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } >/dev/null; then
12687 if test -s conftest.err; then
12688 ac_cpp_err=$ac_c_preproc_warn_flag
12689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12696 if test -z "$ac_cpp_err"; then
12697 # Broken: success on invalid input.
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 # Passes both tests.
12708 rm -f conftest.err conftest.$ac_ext
12711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12712 rm -f conftest.err conftest.$ac_ext
12713 if $ac_preproc_ok; then
12718 ac_cv_prog_CPP=$CPP
12721 CPP=$ac_cv_prog_CPP
12723 ac_cv_prog_CPP=$CPP
12725 { echo "$as_me:$LINENO: result: $CPP" >&5
12726 echo "${ECHO_T}$CPP" >&6; }
12727 ac_preproc_ok=false
12728 for ac_c_preproc_warn_flag in '' yes
12730 # Use a header file that comes with gcc, so configuring glibc
12731 # with a fresh cross-compiler works.
12732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12733 # <limits.h> exists even on freestanding compilers.
12734 # On the NeXT, cc -E runs the code through the compiler's parser,
12735 # not just through cpp. "Syntax error" is here to catch this case.
12736 cat >conftest.$ac_ext <<_ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12743 # include <limits.h>
12745 # include <assert.h>
12749 if { (ac_try="$ac_cpp conftest.$ac_ext"
12750 case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12757 grep -v '^ *+' conftest.er1 >conftest.err
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } >/dev/null; then
12762 if test -s conftest.err; then
12763 ac_cpp_err=$ac_c_preproc_warn_flag
12764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12771 if test -z "$ac_cpp_err"; then
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 # Broken: fails on valid input.
12781 rm -f conftest.err conftest.$ac_ext
12783 # OK, works on sane cases. Now check whether nonexistent headers
12784 # can be detected and how.
12785 cat >conftest.$ac_ext <<_ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791 #include <ac_nonexistent.h>
12793 if { (ac_try="$ac_cpp conftest.$ac_ext"
12794 case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12801 grep -v '^ *+' conftest.er1 >conftest.err
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } >/dev/null; then
12806 if test -s conftest.err; then
12807 ac_cpp_err=$ac_c_preproc_warn_flag
12808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12815 if test -z "$ac_cpp_err"; then
12816 # Broken: success on invalid input.
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12822 # Passes both tests.
12827 rm -f conftest.err conftest.$ac_ext
12830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12831 rm -f conftest.err conftest.$ac_ext
12832 if $ac_preproc_ok; then
12835 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12836 See \`config.log' for more details." >&5
12837 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12838 See \`config.log' for more details." >&2;}
12839 { (exit 1); exit 1; }; }
12843 ac_cpp='$CPP $CPPFLAGS'
12844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12850 *mingw32* ) ac_cv_mingw32=yes ;;
12851 *cygwin* ) ac_cv_cygwin=yes ;;
12857 cat >>confdefs.h <<_ACEOF
12858 #define EXEEXT "${EXEEXT}"
12862 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12863 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12864 if test "${ac_cv_lib_be_be_app+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 ac_check_lib_save_LIBS=$LIBS
12868 LIBS="-lbe -lroot -lnet $LIBS"
12869 cat >conftest.$ac_ext <<_ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12876 /* Override any GCC internal prototype to avoid an error.
12877 Use char because int might match the return type of a GCC
12878 builtin and then its argument prototype would still apply. */
12891 rm -f conftest.$ac_objext conftest$ac_exeext
12892 if { (ac_try="$ac_link"
12893 case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898 (eval "$ac_link") 2>conftest.er1
12900 grep -v '^ *+' conftest.er1 >conftest.err
12902 cat conftest.err >&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } &&
12905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12906 { (case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_try") 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest$ac_exeext'
12916 { (case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_try") 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_cv_lib_be_be_app=yes
12927 echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12930 ac_cv_lib_be_be_app=no
12933 rm -f core conftest.err conftest.$ac_objext \
12934 conftest$ac_exeext conftest.$ac_ext
12935 LIBS=$ac_check_lib_save_LIBS
12937 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12938 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12939 if test $ac_cv_lib_be_be_app = yes; then
12940 LIBS="$LIBS -lbe -lroot -lnet"
12947 ac_cpp='$CPP $CPPFLAGS'
12948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12951 if test -n "$ac_tool_prefix"; then
12952 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12953 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12956 if test "${ac_cv_prog_CC+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 if test -n "$CC"; then
12960 ac_cv_prog_CC="$CC" # Let the user override the test.
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12980 if test -n "$CC"; then
12981 { echo "$as_me:$LINENO: result: $CC" >&5
12982 echo "${ECHO_T}$CC" >&6; }
12984 { echo "$as_me:$LINENO: result: no" >&5
12985 echo "${ECHO_T}no" >&6; }
12990 if test -z "$ac_cv_prog_CC"; then
12992 # Extract the first word of "gcc", so it can be a program name with args.
12993 set dummy gcc; ac_word=$2
12994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12996 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 if test -n "$ac_ct_CC"; then
13000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13003 for as_dir in $PATH
13006 test -z "$as_dir" && as_dir=.
13007 for ac_exec_ext in '' $ac_executable_extensions; do
13008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13009 ac_cv_prog_ac_ct_CC="gcc"
13010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13020 if test -n "$ac_ct_CC"; then
13021 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13022 echo "${ECHO_T}$ac_ct_CC" >&6; }
13024 { echo "$as_me:$LINENO: result: no" >&5
13025 echo "${ECHO_T}no" >&6; }
13028 if test "x$ac_ct_CC" = x; then
13031 case $cross_compiling:$ac_tool_warned in
13033 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13034 whose name does not start with the host triplet. If you think this
13035 configuration is useful to you, please write to autoconf@gnu.org." >&5
13036 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13037 whose name does not start with the host triplet. If you think this
13038 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13039 ac_tool_warned=yes ;;
13044 CC="$ac_cv_prog_CC"
13047 if test -z "$CC"; then
13048 if test -n "$ac_tool_prefix"; then
13049 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13050 set dummy ${ac_tool_prefix}cc; ac_word=$2
13051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13053 if test "${ac_cv_prog_CC+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13056 if test -n "$CC"; then
13057 ac_cv_prog_CC="$CC" # Let the user override the test.
13059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060 for as_dir in $PATH
13063 test -z "$as_dir" && as_dir=.
13064 for ac_exec_ext in '' $ac_executable_extensions; do
13065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13066 ac_cv_prog_CC="${ac_tool_prefix}cc"
13067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13077 if test -n "$CC"; then
13078 { echo "$as_me:$LINENO: result: $CC" >&5
13079 echo "${ECHO_T}$CC" >&6; }
13081 { echo "$as_me:$LINENO: result: no" >&5
13082 echo "${ECHO_T}no" >&6; }
13088 if test -z "$CC"; then
13089 # Extract the first word of "cc", so it can be a program name with args.
13090 set dummy cc; ac_word=$2
13091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13093 if test "${ac_cv_prog_CC+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 if test -n "$CC"; then
13097 ac_cv_prog_CC="$CC" # Let the user override the test.
13099 ac_prog_rejected=no
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101 for as_dir in $PATH
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13107 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13108 ac_prog_rejected=yes
13112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 if test $ac_prog_rejected = yes; then
13120 # We found a bogon in the path, so make sure we never use it.
13121 set dummy $ac_cv_prog_CC
13123 if test $# != 0; then
13124 # We chose a different compiler from the bogus one.
13125 # However, it has the same basename, so the bogon will be chosen
13126 # first if we set CC to just the basename; use the full file name.
13128 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13134 if test -n "$CC"; then
13135 { echo "$as_me:$LINENO: result: $CC" >&5
13136 echo "${ECHO_T}$CC" >&6; }
13138 { echo "$as_me:$LINENO: result: no" >&5
13139 echo "${ECHO_T}no" >&6; }
13144 if test -z "$CC"; then
13145 if test -n "$ac_tool_prefix"; then
13146 for ac_prog in cl.exe
13148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13152 if test "${ac_cv_prog_CC+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 if test -n "$CC"; then
13156 ac_cv_prog_CC="$CC" # Let the user override the test.
13158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13159 for as_dir in $PATH
13162 test -z "$as_dir" && as_dir=.
13163 for ac_exec_ext in '' $ac_executable_extensions; do
13164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13165 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13176 if test -n "$CC"; then
13177 { echo "$as_me:$LINENO: result: $CC" >&5
13178 echo "${ECHO_T}$CC" >&6; }
13180 { echo "$as_me:$LINENO: result: no" >&5
13181 echo "${ECHO_T}no" >&6; }
13185 test -n "$CC" && break
13188 if test -z "$CC"; then
13190 for ac_prog in cl.exe
13192 # Extract the first word of "$ac_prog", so it can be a program name with args.
13193 set dummy $ac_prog; ac_word=$2
13194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 if test -n "$ac_ct_CC"; then
13200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13206 test -z "$as_dir" && as_dir=.
13207 for ac_exec_ext in '' $ac_executable_extensions; do
13208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13209 ac_cv_prog_ac_ct_CC="$ac_prog"
13210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13220 if test -n "$ac_ct_CC"; then
13221 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13222 echo "${ECHO_T}$ac_ct_CC" >&6; }
13224 { echo "$as_me:$LINENO: result: no" >&5
13225 echo "${ECHO_T}no" >&6; }
13229 test -n "$ac_ct_CC" && break
13232 if test "x$ac_ct_CC" = x; then
13235 case $cross_compiling:$ac_tool_warned in
13237 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13238 whose name does not start with the host triplet. If you think this
13239 configuration is useful to you, please write to autoconf@gnu.org." >&5
13240 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13241 whose name does not start with the host triplet. If you think this
13242 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13243 ac_tool_warned=yes ;;
13252 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13253 See \`config.log' for more details." >&5
13254 echo "$as_me: error: no acceptable C compiler found in \$PATH
13255 See \`config.log' for more details." >&2;}
13256 { (exit 1); exit 1; }; }
13258 # Provide some information about the compiler.
13259 echo "$as_me:$LINENO: checking for C compiler version" >&5
13260 ac_compiler=`set X $ac_compile; echo $2`
13261 { (ac_try="$ac_compiler --version >&5"
13262 case "(($ac_try" in
13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264 *) ac_try_echo=$ac_try;;
13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267 (eval "$ac_compiler --version >&5") 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }
13271 { (ac_try="$ac_compiler -v >&5"
13272 case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_compiler -v >&5") 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }
13281 { (ac_try="$ac_compiler -V >&5"
13282 case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_compiler -V >&5") 2>&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }
13292 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13293 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13297 cat >conftest.$ac_ext <<_ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13315 rm -f conftest.$ac_objext
13316 if { (ac_try="$ac_compile"
13317 case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_compile") 2>conftest.er1
13324 grep -v '^ *+' conftest.er1 >conftest.err
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } &&
13329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13330 { (case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_try") 2>&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; } &&
13339 { ac_try='test -s conftest.$ac_objext'
13340 { (case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_try") 2>&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; }; then
13349 ac_compiler_gnu=yes
13351 echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13361 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13362 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13363 GCC=`test $ac_compiler_gnu = yes && echo yes`
13364 ac_test_CFLAGS=${CFLAGS+set}
13365 ac_save_CFLAGS=$CFLAGS
13366 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13367 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13368 if test "${ac_cv_prog_cc_g+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 ac_save_c_werror_flag=$ac_c_werror_flag
13372 ac_c_werror_flag=yes
13375 cat >conftest.$ac_ext <<_ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13390 rm -f conftest.$ac_objext
13391 if { (ac_try="$ac_compile"
13392 case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_compile") 2>conftest.er1
13399 grep -v '^ *+' conftest.er1 >conftest.err
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } &&
13404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13405 { (case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_try") 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; } &&
13414 { ac_try='test -s conftest.$ac_objext'
13415 { (case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_try") 2>&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; }; then
13424 ac_cv_prog_cc_g=yes
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13430 cat >conftest.$ac_ext <<_ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13445 rm -f conftest.$ac_objext
13446 if { (ac_try="$ac_compile"
13447 case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_compile") 2>conftest.er1
13454 grep -v '^ *+' conftest.er1 >conftest.err
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } &&
13459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13460 { (case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_try") 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest.$ac_objext'
13470 { (case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_try") 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13481 echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13484 ac_c_werror_flag=$ac_save_c_werror_flag
13486 cat >conftest.$ac_ext <<_ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13501 rm -f conftest.$ac_objext
13502 if { (ac_try="$ac_compile"
13503 case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_compile") 2>conftest.er1
13510 grep -v '^ *+' conftest.er1 >conftest.err
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
13515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13516 { (case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_try") 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (case "(($ac_try" in
13527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528 *) ac_try_echo=$ac_try;;
13530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531 (eval "$ac_try") 2>&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535 ac_cv_prog_cc_g=yes
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550 ac_c_werror_flag=$ac_save_c_werror_flag
13552 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13553 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13554 if test "$ac_test_CFLAGS" = set; then
13555 CFLAGS=$ac_save_CFLAGS
13556 elif test $ac_cv_prog_cc_g = yes; then
13557 if test "$GCC" = yes; then
13563 if test "$GCC" = yes; then
13569 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13570 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13571 if test "${ac_cv_prog_cc_c89+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 ac_cv_prog_cc_c89=no
13576 cat >conftest.$ac_ext <<_ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 #include <stdarg.h>
13584 #include <sys/types.h>
13585 #include <sys/stat.h>
13586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13587 struct buf { int x; };
13588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13589 static char *e (p, i)
13595 static char *f (char * (*g) (char **, int), char **p, ...)
13600 s = g (p, va_arg (v,int));
13605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13606 function prototypes and stuff, but not '\xHH' hex character constants.
13607 These don't provoke an error unfortunately, instead are silently treated
13608 as 'x'. The following induces an error, until -std is added to get
13609 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13610 array size at least. It's necessary to write '\x00'==0 to get something
13611 that's true only with -std. */
13612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13615 inside strings and character constants. */
13617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13619 int test (int i, double x);
13620 struct s1 {int (*f) (int a);};
13621 struct s2 {int (*f) (double a);};
13622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13628 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13634 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13636 CC="$ac_save_CC $ac_arg"
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compile") 2>conftest.er1
13646 grep -v '^ *+' conftest.er1 >conftest.err
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13652 { (case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_try") 2>&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest.$ac_objext'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13671 ac_cv_prog_cc_c89=$ac_arg
13673 echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13679 rm -f core conftest.err conftest.$ac_objext
13680 test "x$ac_cv_prog_cc_c89" != "xno" && break
13682 rm -f conftest.$ac_ext
13687 case "x$ac_cv_prog_cc_c89" in
13689 { echo "$as_me:$LINENO: result: none needed" >&5
13690 echo "${ECHO_T}none needed" >&6; } ;;
13692 { echo "$as_me:$LINENO: result: unsupported" >&5
13693 echo "${ECHO_T}unsupported" >&6; } ;;
13695 CC="$CC $ac_cv_prog_cc_c89"
13696 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13697 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13702 ac_cpp='$CPP $CPPFLAGS'
13703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13707 depcc="$CC" am_compiler_list=
13709 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13710 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13711 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13715 # We make a subdir and do the tests there. Otherwise we can end up
13716 # making bogus files that we don't know about and never remove. For
13717 # instance it was reported that on HP-UX the gcc test will end up
13718 # making a dummy file named `D' -- because `-MD' means `put the output
13721 # Copy depcomp to subdir because otherwise we won't find it if we're
13722 # using a relative directory.
13723 cp "$am_depcomp" conftest.dir
13725 # We will build objects and dependencies in a subdirectory because
13726 # it helps to detect inapplicable dependency modes. For instance
13727 # both Tru64's cc and ICC support -MD to output dependencies as a
13728 # side effect of compilation, but ICC will put the dependencies in
13729 # the current directory while Tru64 will put them in the object
13733 am_cv_CC_dependencies_compiler_type=none
13734 if test "$am_compiler_list" = ""; then
13735 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13737 for depmode in $am_compiler_list; do
13738 # Setup a source with many dependencies, because some compilers
13739 # like to wrap large dependency lists on column 80 (with \), and
13740 # we should not choose a depcomp mode which is confused by this.
13742 # We need to recreate these files for each test, as the compiler may
13743 # overwrite some of them when testing with obscure command lines.
13744 # This happens at least with the AIX C compiler.
13746 for i in 1 2 3 4 5 6; do
13747 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13748 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13749 # Solaris 8's {/usr,}/bin/sh.
13750 touch sub/conftst$i.h
13752 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13756 # after this tag, mechanisms are not by side-effect, so they'll
13757 # only be used when explicitly requested
13758 if test "x$enable_dependency_tracking" = xyes; then
13766 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13767 # mode. It turns out that the SunPro C++ compiler does not properly
13768 # handle `-M -o', and we need to detect this.
13769 if depmode=$depmode \
13770 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13771 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13772 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13773 >/dev/null 2>conftest.err &&
13774 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13775 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13776 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13777 # icc doesn't choke on unknown options, it will just issue warnings
13778 # or remarks (even with -Werror). So we grep stderr for any message
13779 # that says an option was ignored or not supported.
13780 # When given -MP, icc 7.0 and 7.1 complain thusly:
13781 # icc: Command line warning: ignoring option '-M'; no argument required
13782 # The diagnosis changed in icc 8.0:
13783 # icc: Command line remark: option '-MP' not supported
13784 if (grep 'ignoring option' conftest.err ||
13785 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13786 am_cv_CC_dependencies_compiler_type=$depmode
13793 rm -rf conftest.dir
13795 am_cv_CC_dependencies_compiler_type=none
13799 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13800 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13801 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13806 test "x$enable_dependency_tracking" != xno \
13807 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13808 am__fastdepCC_TRUE=
13809 am__fastdepCC_FALSE='#'
13811 am__fastdepCC_TRUE='#'
13812 am__fastdepCC_FALSE=
13816 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13817 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13818 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13819 { (exit 1); exit 1; }; }
13822 # test for make depend flag
13825 if test -z "${MKDEP}"; then
13826 OL_MKDEP="${CC-cc}"
13827 if test -z "${MKDEP_FLAGS}"; then
13828 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13829 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13830 if test "${ol_cv_mkdep+set}" = set; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 for flag in "-M" "-xM"; do
13836 cat > conftest.c <<EOF
13839 if { ac_try='$OL_MKDEP $flag conftest.c'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; } \
13845 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13847 if test ! -f conftest."${ac_object}" ; then
13849 OL_MKDEP_FLAGS="$flag"
13857 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13858 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13861 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13865 OL_MKDEP="${MKDEP}"
13866 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13871 if test "${ol_cv_mkdep}" = no ; then
13872 # this will soon become an error
13873 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13874 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13877 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13878 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13879 if test "${ac_cv_lib_s_afopen+set}" = set; then
13880 echo $ECHO_N "(cached) $ECHO_C" >&6
13882 ac_check_lib_save_LIBS=$LIBS
13884 cat >conftest.$ac_ext <<_ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13891 /* Override any GCC internal prototype to avoid an error.
13892 Use char because int might match the return type of a GCC
13893 builtin and then its argument prototype would still apply. */
13906 rm -f conftest.$ac_objext conftest$ac_exeext
13907 if { (ac_try="$ac_link"
13908 case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_link") 2>conftest.er1
13915 grep -v '^ *+' conftest.er1 >conftest.err
13917 cat conftest.err >&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } &&
13920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13921 { (case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_try") 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; } &&
13930 { ac_try='test -s conftest$ac_exeext'
13931 { (case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_try") 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13940 ac_cv_lib_s_afopen=yes
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13945 ac_cv_lib_s_afopen=no
13948 rm -f core conftest.err conftest.$ac_objext \
13949 conftest$ac_exeext conftest.$ac_ext
13950 LIBS=$ac_check_lib_save_LIBS
13952 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13953 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13954 if test $ac_cv_lib_s_afopen = yes; then
13958 cat >>confdefs.h <<\_ACEOF
13959 #define HAVE_AIX_SECURITY 1
13968 ac_cv_func_getopt=no
13970 cat >>confdefs.h <<\_ACEOF
13971 #define BOTH_STRINGS_H 1
13978 WITH_MODULES_ENABLED=no
13979 if test $ol_enable_modules != no ; then
13981 for ac_header in ltdl.h
13983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 ac_res=`eval echo '${'$as_ac_Header'}'`
13991 { echo "$as_me:$LINENO: result: $ac_res" >&5
13992 echo "${ECHO_T}$ac_res" >&6; }
13994 # Is the header compilable?
13995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13997 cat >conftest.$ac_ext <<_ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14003 $ac_includes_default
14004 #include <$ac_header>
14006 rm -f conftest.$ac_objext
14007 if { (ac_try="$ac_compile"
14008 case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013 (eval "$ac_compile") 2>conftest.er1
14015 grep -v '^ *+' conftest.er1 >conftest.err
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14021 { (case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_try") 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; } &&
14030 { ac_try='test -s conftest.$ac_objext'
14031 { (case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_try") 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 ac_header_compiler=yes
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_header_compiler=no
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14050 echo "${ECHO_T}$ac_header_compiler" >&6; }
14052 # Is the header present?
14053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14055 cat >conftest.$ac_ext <<_ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14061 #include <$ac_header>
14063 if { (ac_try="$ac_cpp conftest.$ac_ext"
14064 case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14071 grep -v '^ *+' conftest.er1 >conftest.err
14073 cat conftest.err >&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } >/dev/null; then
14076 if test -s conftest.err; then
14077 ac_cpp_err=$ac_c_preproc_warn_flag
14078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14085 if test -z "$ac_cpp_err"; then
14086 ac_header_preproc=yes
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 ac_header_preproc=no
14094 rm -f conftest.err conftest.$ac_ext
14095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14096 echo "${ECHO_T}$ac_header_preproc" >&6; }
14098 # So? What about this header?
14099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14105 ac_header_preproc=yes
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14121 ## --------------------------------------------- ##
14122 ## Report this to <http://www.openldap.org/its/> ##
14123 ## --------------------------------------------- ##
14125 ) | sed "s/^/$as_me: WARNING: /" >&2
14128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 eval "$as_ac_Header=\$ac_header_preproc"
14135 ac_res=`eval echo '${'$as_ac_Header'}'`
14136 { echo "$as_me:$LINENO: result: $ac_res" >&5
14137 echo "${ECHO_T}$ac_res" >&6; }
14140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14141 cat >>confdefs.h <<_ACEOF
14142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14150 if test $ac_cv_header_ltdl_h = no ; then
14151 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
14152 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
14153 { (exit 1); exit 1; }; }
14156 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
14157 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
14158 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 ac_check_lib_save_LIBS=$LIBS
14162 LIBS="-lltdl $LIBS"
14163 cat >conftest.$ac_ext <<_ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14170 /* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
14180 return lt_dlinit ();
14185 rm -f conftest.$ac_objext conftest$ac_exeext
14186 if { (ac_try="$ac_link"
14187 case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_link") 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" || test ! -s conftest.err'
14200 { (case "(($ac_try" in
14201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202 *) ac_try_echo=$ac_try;;
14204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14205 (eval "$ac_try") 2>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; } &&
14209 { ac_try='test -s conftest$ac_exeext'
14210 { (case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_try") 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; }; then
14219 ac_cv_lib_ltdl_lt_dlinit=yes
14221 echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14224 ac_cv_lib_ltdl_lt_dlinit=no
14227 rm -f core conftest.err conftest.$ac_objext \
14228 conftest$ac_exeext conftest.$ac_ext
14229 LIBS=$ac_check_lib_save_LIBS
14231 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
14232 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
14233 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
14235 MODULES_LIBS=-lltdl
14237 cat >>confdefs.h <<\_ACEOF
14238 #define HAVE_LIBLTDL 1
14245 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
14246 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
14247 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
14248 { (exit 1); exit 1; }; }
14250 ol_link_modules=yes
14251 WITH_MODULES_ENABLED=yes
14254 for i in $Backends; do
14255 eval "ol_tmp=\$ol_enable_$i"
14256 if test $ol_tmp = mod ; then
14257 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
14258 echo "$as_me: WARNING: building static $i backend" >&2;}
14259 eval "ol_enable_$i=yes"
14262 for i in $Overlays; do
14263 eval "ol_tmp=\$ol_enable_$i"
14264 if test $ol_tmp = mod ; then
14265 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
14266 echo "$as_me: WARNING: building static $i overlay" >&2;}
14267 eval "ol_enable_$i=yes"
14273 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14274 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14275 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 cat >conftest.$ac_ext <<_ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14287 #include <__ASCII__/generate_error.h>
14291 if { (ac_try="$ac_cpp conftest.$ac_ext"
14292 case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14299 grep -v '^ *+' conftest.er1 >conftest.err
14301 cat conftest.err >&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } >/dev/null; then
14304 if test -s conftest.err; then
14305 ac_cpp_err=$ac_c_preproc_warn_flag
14306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14313 if test -z "$ac_cpp_err"; then
14314 ol_cv_cpp_ebcdic=yes
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14319 ol_cv_cpp_ebcdic=no
14322 rm -f conftest.err conftest.$ac_ext
14324 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14325 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14326 if test $ol_cv_cpp_ebcdic = yes ; then
14328 cat >>confdefs.h <<\_ACEOF
14329 #define HAVE_EBCDIC 1
14334 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14335 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14336 if test "${ol_cv_header_stdc+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 cat >conftest.$ac_ext <<_ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 #include <stdlib.h>
14346 #include <stdarg.h>
14347 #include <string.h>
14350 if { (ac_try="$ac_cpp conftest.$ac_ext"
14351 case "(($ac_try" in
14352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14353 *) ac_try_echo=$ac_try;;
14355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14358 grep -v '^ *+' conftest.er1 >conftest.err
14360 cat conftest.err >&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } >/dev/null; then
14363 if test -s conftest.err; then
14364 ac_cpp_err=$ac_c_preproc_warn_flag
14365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14372 if test -z "$ac_cpp_err"; then
14373 ol_cv_header_stdc=yes
14375 echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14378 ol_cv_header_stdc=no
14381 rm -f conftest.err conftest.$ac_ext
14383 if test $ol_cv_header_stdc = yes; then
14384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14385 cat >conftest.$ac_ext <<_ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h. */
14391 #include <string.h>
14394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14395 $EGREP "memchr" >/dev/null 2>&1; then
14398 ol_cv_header_stdc=no
14404 if test $ol_cv_header_stdc = yes; then
14405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14406 cat >conftest.$ac_ext <<_ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14412 #include <stdlib.h>
14415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14416 $EGREP "free" >/dev/null 2>&1; then
14419 ol_cv_header_stdc=no
14425 if test $ol_cv_header_stdc = yes; then
14426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14427 if test "$cross_compiling" = yes; then
14430 cat >conftest.$ac_ext <<_ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14437 #ifndef HAVE_EBCDIC
14438 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14439 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14441 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14442 || ('j' <= (c) && (c) <= 'r') \
14443 || ('s' <= (c) && (c) <= 'z'))
14444 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14447 int main () { int i; for (i = 0; i < 256; i++)
14448 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14452 rm -f conftest$ac_exeext
14453 if { (ac_try="$ac_link"
14454 case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14459 (eval "$ac_link") 2>&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14463 { (case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468 (eval "$ac_try") 2>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14474 echo "$as_me: program exited with status $ac_status" >&5
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 ( exit $ac_status )
14479 ol_cv_header_stdc=no
14481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14487 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14488 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14489 if test $ol_cv_header_stdc = yes; then
14490 cat >>confdefs.h <<\_ACEOF
14491 #define STDC_HEADERS 1
14495 ac_cv_header_stdc=disable
14498 if test $ol_cv_header_stdc != yes; then
14499 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14500 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14508 ac_header_dirent=no
14509 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14510 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14511 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14512 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 cat >conftest.$ac_ext <<_ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522 #include <sys/types.h>
14534 rm -f conftest.$ac_objext
14535 if { (ac_try="$ac_compile"
14536 case "(($ac_try" in
14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538 *) ac_try_echo=$ac_try;;
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541 (eval "$ac_compile") 2>conftest.er1
14543 grep -v '^ *+' conftest.er1 >conftest.err
14545 cat conftest.err >&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14549 { (case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_try") 2>&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; } &&
14558 { ac_try='test -s conftest.$ac_objext'
14559 { (case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_try") 2>&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; }; then
14568 eval "$as_ac_Header=yes"
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 eval "$as_ac_Header=no"
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578 ac_res=`eval echo '${'$as_ac_Header'}'`
14579 { echo "$as_me:$LINENO: result: $ac_res" >&5
14580 echo "${ECHO_T}$ac_res" >&6; }
14581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14582 cat >>confdefs.h <<_ACEOF
14583 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14586 ac_header_dirent=$ac_hdr; break
14590 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14591 if test $ac_header_dirent = dirent.h; then
14592 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14593 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14594 if test "${ac_cv_search_opendir+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 ac_func_search_save_LIBS=$LIBS
14598 cat >conftest.$ac_ext <<_ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h. */
14605 /* Override any GCC internal prototype to avoid an error.
14606 Use char because int might match the return type of a GCC
14607 builtin and then its argument prototype would still apply. */
14620 for ac_lib in '' dir; do
14621 if test -z "$ac_lib"; then
14622 ac_res="none required"
14625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14627 rm -f conftest.$ac_objext conftest$ac_exeext
14628 if { (ac_try="$ac_link"
14629 case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_link") 2>conftest.er1
14636 grep -v '^ *+' conftest.er1 >conftest.err
14638 cat conftest.err >&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } &&
14641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14642 { (case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_try") 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; } &&
14651 { ac_try='test -s conftest$ac_exeext'
14652 { (case "(($ac_try" in
14653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654 *) ac_try_echo=$ac_try;;
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657 (eval "$ac_try") 2>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14661 ac_cv_search_opendir=$ac_res
14663 echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14669 rm -f core conftest.err conftest.$ac_objext \
14671 if test "${ac_cv_search_opendir+set}" = set; then
14675 if test "${ac_cv_search_opendir+set}" = set; then
14678 ac_cv_search_opendir=no
14680 rm conftest.$ac_ext
14681 LIBS=$ac_func_search_save_LIBS
14683 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14684 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14685 ac_res=$ac_cv_search_opendir
14686 if test "$ac_res" != no; then
14687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14692 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14693 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14694 if test "${ac_cv_search_opendir+set}" = set; then
14695 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 ac_func_search_save_LIBS=$LIBS
14698 cat >conftest.$ac_ext <<_ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14705 /* Override any GCC internal prototype to avoid an error.
14706 Use char because int might match the return type of a GCC
14707 builtin and then its argument prototype would still apply. */
14720 for ac_lib in '' x; do
14721 if test -z "$ac_lib"; then
14722 ac_res="none required"
14725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14727 rm -f conftest.$ac_objext conftest$ac_exeext
14728 if { (ac_try="$ac_link"
14729 case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_link") 2>conftest.er1
14736 grep -v '^ *+' conftest.er1 >conftest.err
14738 cat conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14742 { (case "(($ac_try" in
14743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14744 *) ac_try_echo=$ac_try;;
14746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14747 (eval "$ac_try") 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; } &&
14751 { ac_try='test -s conftest$ac_exeext'
14752 { (case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_try") 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_cv_search_opendir=$ac_res
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14769 rm -f core conftest.err conftest.$ac_objext \
14771 if test "${ac_cv_search_opendir+set}" = set; then
14775 if test "${ac_cv_search_opendir+set}" = set; then
14778 ac_cv_search_opendir=no
14780 rm conftest.$ac_ext
14781 LIBS=$ac_func_search_save_LIBS
14783 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14784 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14785 ac_res=$ac_cv_search_opendir
14786 if test "$ac_res" != no; then
14787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14793 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14794 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14795 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 cat >conftest.$ac_ext <<_ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804 #include <sys/types.h>
14805 #include <sys/wait.h>
14806 #ifndef WEXITSTATUS
14807 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14810 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14818 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14823 rm -f conftest.$ac_objext
14824 if { (ac_try="$ac_compile"
14825 case "(($ac_try" in
14826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827 *) ac_try_echo=$ac_try;;
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830 (eval "$ac_compile") 2>conftest.er1
14832 grep -v '^ *+' conftest.er1 >conftest.err
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } &&
14837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14838 { (case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_try") 2>&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; } &&
14847 { ac_try='test -s conftest.$ac_objext'
14848 { (case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_try") 2>&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; }; then
14857 ac_cv_header_sys_wait_h=yes
14859 echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14862 ac_cv_header_sys_wait_h=no
14865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14868 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14869 if test $ac_cv_header_sys_wait_h = yes; then
14871 cat >>confdefs.h <<\_ACEOF
14872 #define HAVE_SYS_WAIT_H 1
14877 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14878 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14879 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 cat >conftest.$ac_ext <<_ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h. */
14888 #include <sys/types.h>
14889 #include <termios.h>
14895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14896 $EGREP "yes" >/dev/null 2>&1; then
14897 ac_cv_sys_tiocgwinsz_in_termios_h=yes
14899 ac_cv_sys_tiocgwinsz_in_termios_h=no
14904 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14905 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14907 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14908 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14909 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14910 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 cat >conftest.$ac_ext <<_ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14919 #include <sys/types.h>
14920 #include <sys/ioctl.h>
14926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14927 $EGREP "yes" >/dev/null 2>&1; then
14928 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14930 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14935 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14936 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14938 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14940 cat >>confdefs.h <<\_ACEOF
14941 #define GWINSZ_IN_SYS_IOCTL 1
15045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15052 ac_res=`eval echo '${'$as_ac_Header'}'`
15053 { echo "$as_me:$LINENO: result: $ac_res" >&5
15054 echo "${ECHO_T}$ac_res" >&6; }
15056 # Is the header compilable?
15057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15059 cat >conftest.$ac_ext <<_ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 $ac_includes_default
15066 #include <$ac_header>
15068 rm -f conftest.$ac_objext
15069 if { (ac_try="$ac_compile"
15070 case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_compile") 2>conftest.er1
15077 grep -v '^ *+' conftest.er1 >conftest.err
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
15082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15083 { (case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088 (eval "$ac_try") 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } &&
15092 { ac_try='test -s conftest.$ac_objext'
15093 { (case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_try") 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_header_compiler=yes
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_header_compiler=no
15110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15112 echo "${ECHO_T}$ac_header_compiler" >&6; }
15114 # Is the header present?
15115 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15117 cat >conftest.$ac_ext <<_ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15123 #include <$ac_header>
15125 if { (ac_try="$ac_cpp conftest.$ac_ext"
15126 case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15133 grep -v '^ *+' conftest.er1 >conftest.err
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } >/dev/null; then
15138 if test -s conftest.err; then
15139 ac_cpp_err=$ac_c_preproc_warn_flag
15140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15147 if test -z "$ac_cpp_err"; then
15148 ac_header_preproc=yes
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15153 ac_header_preproc=no
15156 rm -f conftest.err conftest.$ac_ext
15157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15158 echo "${ECHO_T}$ac_header_preproc" >&6; }
15160 # So? What about this header?
15161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15167 ac_header_preproc=yes
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15183 ## --------------------------------------------- ##
15184 ## Report this to <http://www.openldap.org/its/> ##
15185 ## --------------------------------------------- ##
15187 ) | sed "s/^/$as_me: WARNING: /" >&2
15190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 eval "$as_ac_Header=\$ac_header_preproc"
15197 ac_res=`eval echo '${'$as_ac_Header'}'`
15198 { echo "$as_me:$LINENO: result: $ac_res" >&5
15199 echo "${ECHO_T}$ac_res" >&6; }
15202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15203 cat >>confdefs.h <<_ACEOF
15204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15212 if test "$ac_cv_mingw32" = yes ; then
15215 for ac_header in winsock.h winsock2.h
15217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 ac_res=`eval echo '${'$as_ac_Header'}'`
15225 { echo "$as_me:$LINENO: result: $ac_res" >&5
15226 echo "${ECHO_T}$ac_res" >&6; }
15228 # Is the header compilable?
15229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15231 cat >conftest.$ac_ext <<_ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15237 $ac_includes_default
15238 #include <$ac_header>
15240 rm -f conftest.$ac_objext
15241 if { (ac_try="$ac_compile"
15242 case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_compile") 2>conftest.er1
15249 grep -v '^ *+' conftest.er1 >conftest.err
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; } &&
15264 { ac_try='test -s conftest.$ac_objext'
15265 { (case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_try") 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 ac_header_compiler=yes
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 ac_header_compiler=no
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15284 echo "${ECHO_T}$ac_header_compiler" >&6; }
15286 # Is the header present?
15287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15289 cat >conftest.$ac_ext <<_ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 #include <$ac_header>
15297 if { (ac_try="$ac_cpp conftest.$ac_ext"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15305 grep -v '^ *+' conftest.er1 >conftest.err
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } >/dev/null; then
15310 if test -s conftest.err; then
15311 ac_cpp_err=$ac_c_preproc_warn_flag
15312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15319 if test -z "$ac_cpp_err"; then
15320 ac_header_preproc=yes
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 ac_header_preproc=no
15328 rm -f conftest.err conftest.$ac_ext
15329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15330 echo "${ECHO_T}$ac_header_preproc" >&6; }
15332 # So? What about this header?
15333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15339 ac_header_preproc=yes
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15355 ## --------------------------------------------- ##
15356 ## Report this to <http://www.openldap.org/its/> ##
15357 ## --------------------------------------------- ##
15359 ) | sed "s/^/$as_me: WARNING: /" >&2
15362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 eval "$as_ac_Header=\$ac_header_preproc"
15369 ac_res=`eval echo '${'$as_ac_Header'}'`
15370 { echo "$as_me:$LINENO: result: $ac_res" >&5
15371 echo "${ECHO_T}$ac_res" >&6; }
15374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15375 cat >>confdefs.h <<_ACEOF
15376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15386 for ac_header in resolv.h
15388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 cat >conftest.$ac_ext <<_ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 $ac_includes_default
15401 #include <netinet/in.h>
15404 #include <$ac_header>
15406 rm -f conftest.$ac_objext
15407 if { (ac_try="$ac_compile"
15408 case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_compile") 2>conftest.er1
15415 grep -v '^ *+' conftest.er1 >conftest.err
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15421 { (case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_try") 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; } &&
15430 { ac_try='test -s conftest.$ac_objext'
15431 { (case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_try") 2>&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
15440 eval "$as_ac_Header=yes"
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15445 eval "$as_ac_Header=no"
15448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15450 ac_res=`eval echo '${'$as_ac_Header'}'`
15451 { echo "$as_me:$LINENO: result: $ac_res" >&5
15452 echo "${ECHO_T}$ac_res" >&6; }
15453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15454 cat >>confdefs.h <<_ACEOF
15455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15464 for ac_header in netinet/tcp.h
15466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 cat >conftest.$ac_ext <<_ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15478 $ac_includes_default
15479 #include <netinet/in.h>
15482 #include <$ac_header>
15484 rm -f conftest.$ac_objext
15485 if { (ac_try="$ac_compile"
15486 case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_compile") 2>conftest.er1
15493 grep -v '^ *+' conftest.er1 >conftest.err
15495 cat conftest.err >&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } &&
15498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15499 { (case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_try") 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; } &&
15508 { ac_try='test -s conftest.$ac_objext'
15509 { (case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_try") 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 eval "$as_ac_Header=yes"
15520 echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15523 eval "$as_ac_Header=no"
15526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15528 ac_res=`eval echo '${'$as_ac_Header'}'`
15529 { echo "$as_me:$LINENO: result: $ac_res" >&5
15530 echo "${ECHO_T}$ac_res" >&6; }
15531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15532 cat >>confdefs.h <<_ACEOF
15533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15542 for ac_header in sys/ucred.h
15544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15550 cat >conftest.$ac_ext <<_ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h. */
15556 $ac_includes_default
15557 #ifdef HAVE_SYS_PARAM_H
15558 #include <sys/param.h>
15562 #include <$ac_header>
15564 rm -f conftest.$ac_objext
15565 if { (ac_try="$ac_compile"
15566 case "(($ac_try" in
15567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571 (eval "$ac_compile") 2>conftest.er1
15573 grep -v '^ *+' conftest.er1 >conftest.err
15575 cat conftest.err >&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } &&
15578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15579 { (case "(($ac_try" in
15580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15581 *) ac_try_echo=$ac_try;;
15583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15584 (eval "$ac_try") 2>&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; } &&
15588 { ac_try='test -s conftest.$ac_objext'
15589 { (case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_try") 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 eval "$as_ac_Header=yes"
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 eval "$as_ac_Header=no"
15606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15608 ac_res=`eval echo '${'$as_ac_Header'}'`
15609 { echo "$as_me:$LINENO: result: $ac_res" >&5
15610 echo "${ECHO_T}$ac_res" >&6; }
15611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15612 cat >>confdefs.h <<_ACEOF
15613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15624 for ac_func in sigaction sigset
15626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 cat >conftest.$ac_ext <<_ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15640 #define $ac_func innocuous_$ac_func
15642 /* System header to define __stub macros and hopefully few prototypes,
15643 which can conflict with char $ac_func (); below.
15644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15645 <limits.h> exists even on freestanding compilers. */
15648 # include <limits.h>
15650 # include <assert.h>
15655 /* Override any GCC internal prototype to avoid an error.
15656 Use char because int might match the return type of a GCC
15657 builtin and then its argument prototype would still apply. */
15662 /* The GNU C library defines this for functions which it implements
15663 to always fail with ENOSYS. Some functions are actually named
15664 something starting with __ and the normal name is an alias. */
15665 #if defined __stub_$ac_func || defined __stub___$ac_func
15672 return $ac_func ();
15677 rm -f conftest.$ac_objext conftest$ac_exeext
15678 if { (ac_try="$ac_link"
15679 case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_link") 2>conftest.er1
15686 grep -v '^ *+' conftest.er1 >conftest.err
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } &&
15691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15692 { (case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_try") 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; } &&
15701 { ac_try='test -s conftest$ac_exeext'
15702 { (case "(($ac_try" in
15703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704 *) ac_try_echo=$ac_try;;
15706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15707 (eval "$ac_try") 2>&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; }; then
15711 eval "$as_ac_var=yes"
15713 echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15716 eval "$as_ac_var=no"
15719 rm -f core conftest.err conftest.$ac_objext \
15720 conftest$ac_exeext conftest.$ac_ext
15722 ac_res=`eval echo '${'$as_ac_var'}'`
15723 { echo "$as_me:$LINENO: result: $ac_res" >&5
15724 echo "${ECHO_T}$ac_res" >&6; }
15725 if test `eval echo '${'$as_ac_var'}'` = yes; then
15726 cat >>confdefs.h <<_ACEOF
15727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15734 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15736 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15737 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15738 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 ac_check_lib_save_LIBS=$LIBS
15743 cat >conftest.$ac_ext <<_ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15750 /* Override any GCC internal prototype to avoid an error.
15751 Use char because int might match the return type of a GCC
15752 builtin and then its argument prototype would still apply. */
15765 rm -f conftest.$ac_objext conftest$ac_exeext
15766 if { (ac_try="$ac_link"
15767 case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_link") 2>conftest.er1
15774 grep -v '^ *+' conftest.er1 >conftest.err
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
15779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15780 { (case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_try") 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest$ac_exeext'
15790 { (case "(($ac_try" in
15791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792 *) ac_try_echo=$ac_try;;
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795 (eval "$ac_try") 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15799 ac_cv_lib_V3_sigset=yes
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 ac_cv_lib_V3_sigset=no
15807 rm -f core conftest.err conftest.$ac_objext \
15808 conftest$ac_exeext conftest.$ac_ext
15809 LIBS=$ac_check_lib_save_LIBS
15811 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15812 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15813 if test $ac_cv_lib_V3_sigset = yes; then
15814 cat >>confdefs.h <<_ACEOF
15815 #define HAVE_LIBV3 1
15824 if test "$ac_cv_header_winsock_h" = yes; then
15825 { echo "$as_me:$LINENO: checking for winsock" >&5
15826 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15827 if test "${ol_cv_winsock+set}" = set; then
15828 echo $ECHO_N "(cached) $ECHO_C" >&6
15831 for curlib in ws2_32 wsock32; do
15832 LIBS="$LIBS -l$curlib"
15833 cat >conftest.$ac_ext <<_ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15839 #include <winsock.h>
15846 select(0,NULL,NULL,NULL,NULL);
15848 gethostname(NULL,0);
15854 rm -f conftest.$ac_objext conftest$ac_exeext
15855 if { (ac_try="$ac_link"
15856 case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_link") 2>conftest.er1
15863 grep -v '^ *+' conftest.er1 >conftest.err
15865 cat conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } &&
15868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15869 { (case "(($ac_try" in
15870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871 *) ac_try_echo=$ac_try;;
15873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874 (eval "$ac_try") 2>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; } &&
15878 { ac_try='test -s conftest$ac_exeext'
15879 { (case "(($ac_try" in
15880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881 *) ac_try_echo=$ac_try;;
15883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884 (eval "$ac_try") 2>&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; }; then
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15896 rm -f core conftest.err conftest.$ac_objext \
15897 conftest$ac_exeext conftest.$ac_ext
15899 if test $ol_cv_winsock = yes; then
15901 cat >>confdefs.h <<\_ACEOF
15902 #define HAVE_WINSOCK 1
15905 ac_cv_func_socket=yes
15906 ac_cv_func_select=yes
15907 ac_cv_func_closesocket=yes
15908 ac_cv_func_gethostname=yes
15909 if test $curlib = ws2_32; then
15910 ol_cv_winsock=winsock2
15912 cat >>confdefs.h <<\_ACEOF
15913 #define HAVE_WINSOCK2 1
15922 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15923 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15927 { echo "$as_me:$LINENO: checking for socket" >&5
15928 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15929 if test "${ac_cv_func_socket+set}" = set; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 cat >conftest.$ac_ext <<_ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15940 #define socket innocuous_socket
15942 /* System header to define __stub macros and hopefully few prototypes,
15943 which can conflict with char socket (); below.
15944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15945 <limits.h> exists even on freestanding compilers. */
15948 # include <limits.h>
15950 # include <assert.h>
15955 /* Override any GCC internal prototype to avoid an error.
15956 Use char because int might match the return type of a GCC
15957 builtin and then its argument prototype would still apply. */
15962 /* The GNU C library defines this for functions which it implements
15963 to always fail with ENOSYS. Some functions are actually named
15964 something starting with __ and the normal name is an alias. */
15965 #if defined __stub_socket || defined __stub___socket
15977 rm -f conftest.$ac_objext conftest$ac_exeext
15978 if { (ac_try="$ac_link"
15979 case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_link") 2>conftest.er1
15986 grep -v '^ *+' conftest.er1 >conftest.err
15988 cat conftest.err >&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } &&
15991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15992 { (case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_try") 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try='test -s conftest$ac_exeext'
16002 { (case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_try") 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16011 ac_cv_func_socket=yes
16013 echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.$ac_ext >&5
16016 ac_cv_func_socket=no
16019 rm -f core conftest.err conftest.$ac_objext \
16020 conftest$ac_exeext conftest.$ac_ext
16022 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16023 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
16024 if test $ac_cv_func_socket = yes; then
16029 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
16030 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
16031 if test "${ac_cv_lib_socket_main+set}" = set; then
16032 echo $ECHO_N "(cached) $ECHO_C" >&6
16034 ac_check_lib_save_LIBS=$LIBS
16035 LIBS="-lsocket $LIBS"
16036 cat >conftest.$ac_ext <<_ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16052 rm -f conftest.$ac_objext conftest$ac_exeext
16053 if { (ac_try="$ac_link"
16054 case "(($ac_try" in
16055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056 *) ac_try_echo=$ac_try;;
16058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16059 (eval "$ac_link") 2>conftest.er1
16061 grep -v '^ *+' conftest.er1 >conftest.err
16063 cat conftest.err >&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
16066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16067 { (case "(($ac_try" in
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_try") 2>&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; } &&
16076 { ac_try='test -s conftest$ac_exeext'
16077 { (case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082 (eval "$ac_try") 2>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_cv_lib_socket_main=yes
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 ac_cv_lib_socket_main=no
16094 rm -f core conftest.err conftest.$ac_objext \
16095 conftest$ac_exeext conftest.$ac_ext
16096 LIBS=$ac_check_lib_save_LIBS
16098 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
16099 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
16100 if test $ac_cv_lib_socket_main = yes; then
16101 cat >>confdefs.h <<_ACEOF
16102 #define HAVE_LIBSOCKET 1
16105 LIBS="-lsocket $LIBS"
16110 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
16111 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
16112 if test "${ac_cv_lib_net_main+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 ac_check_lib_save_LIBS=$LIBS
16117 cat >conftest.$ac_ext <<_ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16133 rm -f conftest.$ac_objext conftest$ac_exeext
16134 if { (ac_try="$ac_link"
16135 case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_link") 2>conftest.er1
16142 grep -v '^ *+' conftest.er1 >conftest.err
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16148 { (case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153 (eval "$ac_try") 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; } &&
16157 { ac_try='test -s conftest$ac_exeext'
16158 { (case "(($ac_try" in
16159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160 *) ac_try_echo=$ac_try;;
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163 (eval "$ac_try") 2>&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16167 ac_cv_lib_net_main=yes
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16172 ac_cv_lib_net_main=no
16175 rm -f core conftest.err conftest.$ac_objext \
16176 conftest$ac_exeext conftest.$ac_ext
16177 LIBS=$ac_check_lib_save_LIBS
16179 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
16180 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
16181 if test $ac_cv_lib_net_main = yes; then
16182 cat >>confdefs.h <<_ACEOF
16183 #define HAVE_LIBNET 1
16191 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
16192 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
16193 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
16194 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 ac_check_lib_save_LIBS=$LIBS
16197 LIBS="-lnsl_s $LIBS"
16198 cat >conftest.$ac_ext <<_ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16214 rm -f conftest.$ac_objext conftest$ac_exeext
16215 if { (ac_try="$ac_link"
16216 case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_link") 2>conftest.er1
16223 grep -v '^ *+' conftest.er1 >conftest.err
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } &&
16228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16229 { (case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_try") 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; } &&
16238 { ac_try='test -s conftest$ac_exeext'
16239 { (case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_try") 2>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; }; then
16248 ac_cv_lib_nsl_s_main=yes
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253 ac_cv_lib_nsl_s_main=no
16256 rm -f core conftest.err conftest.$ac_objext \
16257 conftest$ac_exeext conftest.$ac_ext
16258 LIBS=$ac_check_lib_save_LIBS
16260 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
16261 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
16262 if test $ac_cv_lib_nsl_s_main = yes; then
16263 cat >>confdefs.h <<_ACEOF
16264 #define HAVE_LIBNSL_S 1
16267 LIBS="-lnsl_s $LIBS"
16272 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
16273 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
16274 if test "${ac_cv_lib_nsl_main+set}" = set; then
16275 echo $ECHO_N "(cached) $ECHO_C" >&6
16277 ac_check_lib_save_LIBS=$LIBS
16279 cat >conftest.$ac_ext <<_ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16295 rm -f conftest.$ac_objext conftest$ac_exeext
16296 if { (ac_try="$ac_link"
16297 case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_link") 2>conftest.er1
16304 grep -v '^ *+' conftest.er1 >conftest.err
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16310 { (case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_try") 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; } &&
16319 { ac_try='test -s conftest$ac_exeext'
16320 { (case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_try") 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_cv_lib_nsl_main=yes
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 ac_cv_lib_nsl_main=no
16337 rm -f core conftest.err conftest.$ac_objext \
16338 conftest$ac_exeext conftest.$ac_ext
16339 LIBS=$ac_check_lib_save_LIBS
16341 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
16342 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
16343 if test $ac_cv_lib_nsl_main = yes; then
16344 cat >>confdefs.h <<_ACEOF
16345 #define HAVE_LIBNSL 1
16353 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16354 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16355 if test "${ac_cv_lib_inet_socket+set}" = set; then
16356 echo $ECHO_N "(cached) $ECHO_C" >&6
16358 ac_check_lib_save_LIBS=$LIBS
16359 LIBS="-linet $LIBS"
16360 cat >conftest.$ac_ext <<_ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16367 /* Override any GCC internal prototype to avoid an error.
16368 Use char because int might match the return type of a GCC
16369 builtin and then its argument prototype would still apply. */
16382 rm -f conftest.$ac_objext conftest$ac_exeext
16383 if { (ac_try="$ac_link"
16384 case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_link") 2>conftest.er1
16391 grep -v '^ *+' conftest.er1 >conftest.err
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
16396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16397 { (case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402 (eval "$ac_try") 2>&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; } &&
16406 { ac_try='test -s conftest$ac_exeext'
16407 { (case "(($ac_try" in
16408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16409 *) ac_try_echo=$ac_try;;
16411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16412 (eval "$ac_try") 2>&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }; then
16416 ac_cv_lib_inet_socket=yes
16418 echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16421 ac_cv_lib_inet_socket=no
16424 rm -f core conftest.err conftest.$ac_objext \
16425 conftest$ac_exeext conftest.$ac_ext
16426 LIBS=$ac_check_lib_save_LIBS
16428 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16429 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16430 if test $ac_cv_lib_inet_socket = yes; then
16431 cat >>confdefs.h <<_ACEOF
16432 #define HAVE_LIBINET 1
16435 LIBS="-linet $LIBS"
16440 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
16441 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
16442 if test "${ac_cv_lib_gen_main+set}" = set; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 ac_check_lib_save_LIBS=$LIBS
16447 cat >conftest.$ac_ext <<_ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16463 rm -f conftest.$ac_objext conftest$ac_exeext
16464 if { (ac_try="$ac_link"
16465 case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_link") 2>conftest.er1
16472 grep -v '^ *+' conftest.er1 >conftest.err
16474 cat conftest.err >&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } &&
16477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16478 { (case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_try") 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; } &&
16487 { ac_try='test -s conftest$ac_exeext'
16488 { (case "(($ac_try" in
16489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490 *) ac_try_echo=$ac_try;;
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493 (eval "$ac_try") 2>&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497 ac_cv_lib_gen_main=yes
16499 echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16502 ac_cv_lib_gen_main=no
16505 rm -f core conftest.err conftest.$ac_objext \
16506 conftest$ac_exeext conftest.$ac_ext
16507 LIBS=$ac_check_lib_save_LIBS
16509 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
16510 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
16511 if test $ac_cv_lib_gen_main = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 #define HAVE_LIBGEN 1
16524 { echo "$as_me:$LINENO: checking for select" >&5
16525 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
16526 if test "${ac_cv_func_select+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 cat >conftest.$ac_ext <<_ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16535 /* Define select to an innocuous variant, in case <limits.h> declares select.
16536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16537 #define select innocuous_select
16539 /* System header to define __stub macros and hopefully few prototypes,
16540 which can conflict with char select (); below.
16541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16542 <limits.h> exists even on freestanding compilers. */
16545 # include <limits.h>
16547 # include <assert.h>
16552 /* Override any GCC internal prototype to avoid an error.
16553 Use char because int might match the return type of a GCC
16554 builtin and then its argument prototype would still apply. */
16559 /* The GNU C library defines this for functions which it implements
16560 to always fail with ENOSYS. Some functions are actually named
16561 something starting with __ and the normal name is an alias. */
16562 #if defined __stub_select || defined __stub___select
16574 rm -f conftest.$ac_objext conftest$ac_exeext
16575 if { (ac_try="$ac_link"
16576 case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_link") 2>conftest.er1
16583 grep -v '^ *+' conftest.er1 >conftest.err
16585 cat conftest.err >&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } &&
16588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16589 { (case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594 (eval "$ac_try") 2>&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; } &&
16598 { ac_try='test -s conftest$ac_exeext'
16599 { (case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_try") 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 ac_cv_func_select=yes
16610 echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16613 ac_cv_func_select=no
16616 rm -f core conftest.err conftest.$ac_objext \
16617 conftest$ac_exeext conftest.$ac_ext
16619 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16620 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16621 if test $ac_cv_func_select = yes; then
16624 { { echo "$as_me:$LINENO: error: select() required." >&5
16625 echo "$as_me: error: select() required." >&2;}
16626 { (exit 1); exit 1; }; }
16630 if test "${ac_cv_header_winsock_h}" != yes; then
16633 for ac_header in sys/select.h sys/socket.h
16635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 ac_res=`eval echo '${'$as_ac_Header'}'`
16643 { echo "$as_me:$LINENO: result: $ac_res" >&5
16644 echo "${ECHO_T}$ac_res" >&6; }
16646 # Is the header compilable?
16647 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16649 cat >conftest.$ac_ext <<_ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16655 $ac_includes_default
16656 #include <$ac_header>
16658 rm -f conftest.$ac_objext
16659 if { (ac_try="$ac_compile"
16660 case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_compile") 2>conftest.er1
16667 grep -v '^ *+' conftest.er1 >conftest.err
16669 cat conftest.err >&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } &&
16672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16673 { (case "(($ac_try" in
16674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16675 *) ac_try_echo=$ac_try;;
16677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16678 (eval "$ac_try") 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; } &&
16682 { ac_try='test -s conftest.$ac_objext'
16683 { (case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_try") 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 ac_header_compiler=yes
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16697 ac_header_compiler=no
16700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16702 echo "${ECHO_T}$ac_header_compiler" >&6; }
16704 # Is the header present?
16705 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16707 cat >conftest.$ac_ext <<_ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16713 #include <$ac_header>
16715 if { (ac_try="$ac_cpp conftest.$ac_ext"
16716 case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16723 grep -v '^ *+' conftest.er1 >conftest.err
16725 cat conftest.err >&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } >/dev/null; then
16728 if test -s conftest.err; then
16729 ac_cpp_err=$ac_c_preproc_warn_flag
16730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16737 if test -z "$ac_cpp_err"; then
16738 ac_header_preproc=yes
16740 echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16743 ac_header_preproc=no
16746 rm -f conftest.err conftest.$ac_ext
16747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16748 echo "${ECHO_T}$ac_header_preproc" >&6; }
16750 # So? What about this header?
16751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16757 ac_header_preproc=yes
16760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16773 ## --------------------------------------------- ##
16774 ## Report this to <http://www.openldap.org/its/> ##
16775 ## --------------------------------------------- ##
16777 ) | sed "s/^/$as_me: WARNING: /" >&2
16780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 eval "$as_ac_Header=\$ac_header_preproc"
16787 ac_res=`eval echo '${'$as_ac_Header'}'`
16788 { echo "$as_me:$LINENO: result: $ac_res" >&5
16789 echo "${ECHO_T}$ac_res" >&6; }
16792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16793 cat >>confdefs.h <<_ACEOF
16794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16801 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16802 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16803 if test "${ac_cv_func_select_args+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16807 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16808 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16809 cat >conftest.$ac_ext <<_ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 $ac_includes_default
16816 #if HAVE_SYS_SELECT_H
16817 # include <sys/select.h>
16819 #if HAVE_SYS_SOCKET_H
16820 # include <sys/socket.h>
16826 extern int select ($ac_arg1,
16827 $ac_arg234, $ac_arg234, $ac_arg234,
16833 rm -f conftest.$ac_objext
16834 if { (ac_try="$ac_compile"
16835 case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_compile") 2>conftest.er1
16842 grep -v '^ *+' conftest.er1 >conftest.err
16844 cat conftest.err >&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); } &&
16847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16848 { (case "(($ac_try" in
16849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850 *) ac_try_echo=$ac_try;;
16852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16853 (eval "$ac_try") 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; } &&
16857 { ac_try='test -s conftest.$ac_objext'
16858 { (case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_try") 2>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
16867 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16869 echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879 # Provide a safe default value.
16880 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16883 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16884 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16885 ac_save_IFS=$IFS; IFS=','
16886 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16890 cat >>confdefs.h <<_ACEOF
16891 #define SELECT_TYPE_ARG1 $1
16895 cat >>confdefs.h <<_ACEOF
16896 #define SELECT_TYPE_ARG234 ($2)
16900 cat >>confdefs.h <<_ACEOF
16901 #define SELECT_TYPE_ARG5 ($3)
16910 for ac_func in poll
16912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16918 cat >conftest.$ac_ext <<_ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16926 #define $ac_func innocuous_$ac_func
16928 /* System header to define __stub macros and hopefully few prototypes,
16929 which can conflict with char $ac_func (); below.
16930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16931 <limits.h> exists even on freestanding compilers. */
16934 # include <limits.h>
16936 # include <assert.h>
16941 /* Override any GCC internal prototype to avoid an error.
16942 Use char because int might match the return type of a GCC
16943 builtin and then its argument prototype would still apply. */
16948 /* The GNU C library defines this for functions which it implements
16949 to always fail with ENOSYS. Some functions are actually named
16950 something starting with __ and the normal name is an alias. */
16951 #if defined __stub_$ac_func || defined __stub___$ac_func
16958 return $ac_func ();
16963 rm -f conftest.$ac_objext conftest$ac_exeext
16964 if { (ac_try="$ac_link"
16965 case "(($ac_try" in
16966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967 *) ac_try_echo=$ac_try;;
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970 (eval "$ac_link") 2>conftest.er1
16972 grep -v '^ *+' conftest.er1 >conftest.err
16974 cat conftest.err >&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } &&
16977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16978 { (case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_try") 2>&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; } &&
16987 { ac_try='test -s conftest$ac_exeext'
16988 { (case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_try") 2>&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 eval "$as_ac_var=yes"
16999 echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17002 eval "$as_ac_var=no"
17005 rm -f core conftest.err conftest.$ac_objext \
17006 conftest$ac_exeext conftest.$ac_ext
17008 ac_res=`eval echo '${'$as_ac_var'}'`
17009 { echo "$as_me:$LINENO: result: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17011 if test `eval echo '${'$as_ac_var'}'` = yes; then
17012 cat >>confdefs.h <<_ACEOF
17013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17019 if test $ac_cv_func_poll = yes; then
17022 for ac_header in poll.h sys/poll.h
17024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 ac_res=`eval echo '${'$as_ac_Header'}'`
17032 { echo "$as_me:$LINENO: result: $ac_res" >&5
17033 echo "${ECHO_T}$ac_res" >&6; }
17035 # Is the header compilable?
17036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17038 cat >conftest.$ac_ext <<_ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17044 $ac_includes_default
17045 #include <$ac_header>
17047 rm -f conftest.$ac_objext
17048 if { (ac_try="$ac_compile"
17049 case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_compile") 2>conftest.er1
17056 grep -v '^ *+' conftest.er1 >conftest.err
17058 cat conftest.err >&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); } &&
17061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17062 { (case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_try") 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; } &&
17071 { ac_try='test -s conftest.$ac_objext'
17072 { (case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_try") 2>&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 ac_header_compiler=yes
17083 echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17086 ac_header_compiler=no
17089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17091 echo "${ECHO_T}$ac_header_compiler" >&6; }
17093 # Is the header present?
17094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17096 cat >conftest.$ac_ext <<_ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17102 #include <$ac_header>
17104 if { (ac_try="$ac_cpp conftest.$ac_ext"
17105 case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17112 grep -v '^ *+' conftest.er1 >conftest.err
17114 cat conftest.err >&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } >/dev/null; then
17117 if test -s conftest.err; then
17118 ac_cpp_err=$ac_c_preproc_warn_flag
17119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17126 if test -z "$ac_cpp_err"; then
17127 ac_header_preproc=yes
17129 echo "$as_me: failed program was:" >&5
17130 sed 's/^/| /' conftest.$ac_ext >&5
17132 ac_header_preproc=no
17135 rm -f conftest.err conftest.$ac_ext
17136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17137 echo "${ECHO_T}$ac_header_preproc" >&6; }
17139 # So? What about this header?
17140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17146 ac_header_preproc=yes
17149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17162 ## --------------------------------------------- ##
17163 ## Report this to <http://www.openldap.org/its/> ##
17164 ## --------------------------------------------- ##
17166 ) | sed "s/^/$as_me: WARNING: /" >&2
17169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
17174 eval "$as_ac_Header=\$ac_header_preproc"
17176 ac_res=`eval echo '${'$as_ac_Header'}'`
17177 { echo "$as_me:$LINENO: result: $ac_res" >&5
17178 echo "${ECHO_T}$ac_res" >&6; }
17181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17182 cat >>confdefs.h <<_ACEOF
17183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17193 for ac_header in sys/epoll.h
17195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17202 ac_res=`eval echo '${'$as_ac_Header'}'`
17203 { echo "$as_me:$LINENO: result: $ac_res" >&5
17204 echo "${ECHO_T}$ac_res" >&6; }
17206 # Is the header compilable?
17207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17209 cat >conftest.$ac_ext <<_ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h. */
17215 $ac_includes_default
17216 #include <$ac_header>
17218 rm -f conftest.$ac_objext
17219 if { (ac_try="$ac_compile"
17220 case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_compile") 2>conftest.er1
17227 grep -v '^ *+' conftest.er1 >conftest.err
17229 cat conftest.err >&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; } &&
17242 { ac_try='test -s conftest.$ac_objext'
17243 { (case "(($ac_try" in
17244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248 (eval "$ac_try") 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 ac_header_compiler=yes
17254 echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17257 ac_header_compiler=no
17260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17262 echo "${ECHO_T}$ac_header_compiler" >&6; }
17264 # Is the header present?
17265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17267 cat >conftest.$ac_ext <<_ACEOF
17270 cat confdefs.h >>conftest.$ac_ext
17271 cat >>conftest.$ac_ext <<_ACEOF
17272 /* end confdefs.h. */
17273 #include <$ac_header>
17275 if { (ac_try="$ac_cpp conftest.$ac_ext"
17276 case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17283 grep -v '^ *+' conftest.er1 >conftest.err
17285 cat conftest.err >&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } >/dev/null; then
17288 if test -s conftest.err; then
17289 ac_cpp_err=$ac_c_preproc_warn_flag
17290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17297 if test -z "$ac_cpp_err"; then
17298 ac_header_preproc=yes
17300 echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17303 ac_header_preproc=no
17306 rm -f conftest.err conftest.$ac_ext
17307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17308 echo "${ECHO_T}$ac_header_preproc" >&6; }
17310 # So? What about this header?
17311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17317 ac_header_preproc=yes
17320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17327 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17333 ## --------------------------------------------- ##
17334 ## Report this to <http://www.openldap.org/its/> ##
17335 ## --------------------------------------------- ##
17337 ) | sed "s/^/$as_me: WARNING: /" >&2
17340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 eval "$as_ac_Header=\$ac_header_preproc"
17347 ac_res=`eval echo '${'$as_ac_Header'}'`
17348 { echo "$as_me:$LINENO: result: $ac_res" >&5
17349 echo "${ECHO_T}$ac_res" >&6; }
17352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17353 cat >>confdefs.h <<_ACEOF
17354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17361 if test "${ac_cv_header_sys_epoll_h}" = yes; then
17362 { echo "$as_me:$LINENO: checking for epoll system call" >&5
17363 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
17364 if test "$cross_compiling" = yes; then
17365 { echo "$as_me:$LINENO: result: no" >&5
17366 echo "${ECHO_T}no" >&6; }
17368 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 int main(int argc, char **argv)
17376 int epfd = epoll_create(256);
17377 exit (epfd == -1 ? 1 : 0);
17380 rm -f conftest$ac_exeext
17381 if { (ac_try="$ac_link"
17382 case "(($ac_try" in
17383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384 *) ac_try_echo=$ac_try;;
17386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387 (eval "$ac_link") 2>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17391 { (case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_try") 2>&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 { echo "$as_me:$LINENO: result: yes" >&5
17401 echo "${ECHO_T}yes" >&6; }
17403 cat >>confdefs.h <<\_ACEOF
17404 #define HAVE_EPOLL 1
17408 echo "$as_me: program exited with status $ac_status" >&5
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 ( exit $ac_status )
17413 { echo "$as_me:$LINENO: result: no" >&5
17414 echo "${ECHO_T}no" >&6; }
17416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17423 for ac_header in sys/devpoll.h
17425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17430 echo $ECHO_N "(cached) $ECHO_C" >&6
17432 ac_res=`eval echo '${'$as_ac_Header'}'`
17433 { echo "$as_me:$LINENO: result: $ac_res" >&5
17434 echo "${ECHO_T}$ac_res" >&6; }
17436 # Is the header compilable?
17437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17439 cat >conftest.$ac_ext <<_ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445 $ac_includes_default
17446 #include <$ac_header>
17448 rm -f conftest.$ac_objext
17449 if { (ac_try="$ac_compile"
17450 case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455 (eval "$ac_compile") 2>conftest.er1
17457 grep -v '^ *+' conftest.er1 >conftest.err
17459 cat conftest.err >&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } &&
17462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17463 { (case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_try") 2>&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; } &&
17472 { ac_try='test -s conftest.$ac_objext'
17473 { (case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_try") 2>&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; }; then
17482 ac_header_compiler=yes
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17487 ac_header_compiler=no
17490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17492 echo "${ECHO_T}$ac_header_compiler" >&6; }
17494 # Is the header present?
17495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17497 cat >conftest.$ac_ext <<_ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 #include <$ac_header>
17505 if { (ac_try="$ac_cpp conftest.$ac_ext"
17506 case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17513 grep -v '^ *+' conftest.er1 >conftest.err
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } >/dev/null; then
17518 if test -s conftest.err; then
17519 ac_cpp_err=$ac_c_preproc_warn_flag
17520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17527 if test -z "$ac_cpp_err"; then
17528 ac_header_preproc=yes
17530 echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 ac_header_preproc=no
17536 rm -f conftest.err conftest.$ac_ext
17537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17538 echo "${ECHO_T}$ac_header_preproc" >&6; }
17540 # So? What about this header?
17541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17547 ac_header_preproc=yes
17550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17557 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17563 ## --------------------------------------------- ##
17564 ## Report this to <http://www.openldap.org/its/> ##
17565 ## --------------------------------------------- ##
17567 ) | sed "s/^/$as_me: WARNING: /" >&2
17570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17575 eval "$as_ac_Header=\$ac_header_preproc"
17577 ac_res=`eval echo '${'$as_ac_Header'}'`
17578 { echo "$as_me:$LINENO: result: $ac_res" >&5
17579 echo "${ECHO_T}$ac_res" >&6; }
17582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17583 cat >>confdefs.h <<_ACEOF
17584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17591 if test "${ac_cv_header_sys_devpoll_h}" = yes \
17592 -a "${ac_cv_header_poll_h}" = yes ; \
17594 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
17595 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
17596 if test "$cross_compiling" = yes; then
17597 { echo "$as_me:$LINENO: result: no" >&5
17598 echo "${ECHO_T}no" >&6; }
17600 cat >conftest.$ac_ext <<_ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17606 int main(int argc, char **argv)
17608 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
17609 exit (devpollfd == -1 ? 1 : 0);
17612 rm -f conftest$ac_exeext
17613 if { (ac_try="$ac_link"
17614 case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_link") 2>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17623 { (case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_try") 2>&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; }; then
17632 { echo "$as_me:$LINENO: result: yes" >&5
17633 echo "${ECHO_T}yes" >&6; }
17635 cat >>confdefs.h <<\_ACEOF
17636 #define HAVE_DEVPOLL 1
17640 echo "$as_me: program exited with status $ac_status" >&5
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 ( exit $ac_status )
17645 { echo "$as_me:$LINENO: result: no" >&5
17646 echo "${ECHO_T}no" >&6; }
17648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17655 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17656 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17657 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17661 cat >conftest.$ac_ext <<_ACEOF
17664 cat confdefs.h >>conftest.$ac_ext
17665 cat >>conftest.$ac_ext <<_ACEOF
17666 /* end confdefs.h. */
17669 #include <sys/types.h>
17672 #include <stdlib.h>
17677 char *c = (char *) *sys_errlist
17682 rm -f conftest.$ac_objext
17683 if { (ac_try="$ac_compile"
17684 case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_compile") 2>conftest.er1
17691 grep -v '^ *+' conftest.er1 >conftest.err
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
17696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17697 { (case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_try") 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest.$ac_objext'
17707 { (case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_try") 2>&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; }; then
17716 ol_cv_dcl_sys_errlist=yes
17717 ol_cv_have_sys_errlist=yes
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 ol_cv_dcl_sys_errlist=no
17725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17727 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17728 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17730 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17731 if test $ol_cv_dcl_sys_errlist = no ; then
17733 cat >>confdefs.h <<\_ACEOF
17734 #define DECL_SYS_ERRLIST 1
17738 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17739 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17740 if test "${ol_cv_have_sys_errlist+set}" = set; then
17741 echo $ECHO_N "(cached) $ECHO_C" >&6
17744 cat >conftest.$ac_ext <<_ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17754 char *c = (char *) *sys_errlist
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (ac_try="$ac_link"
17761 case "(($ac_try" in
17762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763 *) ac_try_echo=$ac_try;;
17765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17766 (eval "$ac_link") 2>conftest.er1
17768 grep -v '^ *+' conftest.er1 >conftest.err
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
17773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17774 { (case "(($ac_try" in
17775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776 *) ac_try_echo=$ac_try;;
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779 (eval "$ac_try") 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try='test -s conftest$ac_exeext'
17784 { (case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_try") 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 ol_cv_have_sys_errlist=yes
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 ol_cv_have_sys_errlist=no
17801 rm -f core conftest.err conftest.$ac_objext \
17802 conftest$ac_exeext conftest.$ac_ext
17804 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17805 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17807 if test $ol_cv_have_sys_errlist = yes ; then
17809 cat >>confdefs.h <<\_ACEOF
17810 #define HAVE_SYS_ERRLIST 1
17816 for ac_func in strerror strerror_r
17818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17822 echo $ECHO_N "(cached) $ECHO_C" >&6
17824 cat >conftest.$ac_ext <<_ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17832 #define $ac_func innocuous_$ac_func
17834 /* System header to define __stub macros and hopefully few prototypes,
17835 which can conflict with char $ac_func (); below.
17836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17837 <limits.h> exists even on freestanding compilers. */
17840 # include <limits.h>
17842 # include <assert.h>
17847 /* Override any GCC internal prototype to avoid an error.
17848 Use char because int might match the return type of a GCC
17849 builtin and then its argument prototype would still apply. */
17854 /* The GNU C library defines this for functions which it implements
17855 to always fail with ENOSYS. Some functions are actually named
17856 something starting with __ and the normal name is an alias. */
17857 #if defined __stub_$ac_func || defined __stub___$ac_func
17864 return $ac_func ();
17869 rm -f conftest.$ac_objext conftest$ac_exeext
17870 if { (ac_try="$ac_link"
17871 case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_link") 2>conftest.er1
17878 grep -v '^ *+' conftest.er1 >conftest.err
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
17883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17884 { (case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_try") 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; } &&
17893 { ac_try='test -s conftest$ac_exeext'
17894 { (case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_try") 2>&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; }; then
17903 eval "$as_ac_var=yes"
17905 echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17908 eval "$as_ac_var=no"
17911 rm -f core conftest.err conftest.$ac_objext \
17912 conftest$ac_exeext conftest.$ac_ext
17914 ac_res=`eval echo '${'$as_ac_var'}'`
17915 { echo "$as_me:$LINENO: result: $ac_res" >&5
17916 echo "${ECHO_T}$ac_res" >&6; }
17917 if test `eval echo '${'$as_ac_var'}'` = yes; then
17918 cat >>confdefs.h <<_ACEOF
17919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17925 ol_cv_func_strerror_r=no
17926 if test "${ac_cv_func_strerror_r}" = yes ; then
17927 { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17928 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17929 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17933 cat >conftest.$ac_ext <<_ACEOF
17936 cat confdefs.h >>conftest.$ac_ext
17937 cat >>conftest.$ac_ext <<_ACEOF
17938 /* end confdefs.h. */
17939 #include <string.h>
17941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17942 $EGREP "strerror_r" >/dev/null 2>&1; then
17943 ol_decl_strerror_r=yes
17945 ol_decl_strerror_r=no
17949 if test $ol_decl_strerror_r = yes ; then
17950 cat >conftest.$ac_ext <<_ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 #include <string.h>
17960 /* from autoconf 2.59 */
17962 char x = *strerror_r (0, buf, sizeof buf);
17963 char *p = strerror_r (0, buf, sizeof buf);
17969 rm -f conftest.$ac_objext
17970 if { (ac_try="$ac_compile"
17971 case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_compile") 2>conftest.er1
17978 grep -v '^ *+' conftest.er1 >conftest.err
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17984 { (case "(($ac_try" in
17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_try") 2>&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; } &&
17993 { ac_try='test -s conftest.$ac_objext'
17994 { (case "(($ac_try" in
17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996 *) ac_try_echo=$ac_try;;
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_try") 2>&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; }; then
18003 ol_cv_nonposix_strerror_r=yes
18005 echo "$as_me: failed program was:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18008 ol_cv_nonposix_strerror_r=no
18011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013 if test "$cross_compiling" = yes; then
18014 ol_cv_nonposix_strerror=no
18016 cat >conftest.$ac_ext <<_ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h. */
18026 strerror_r( 1, buf, sizeof buf );
18027 exit( buf[0] == 0 );
18031 rm -f conftest$ac_exeext
18032 if { (ac_try="$ac_link"
18033 case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_link") 2>&5
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18042 { (case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_try") 2>&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; }; then
18051 ol_cv_nonposix_strerror_r=yes
18053 echo "$as_me: program exited with status $ac_status" >&5
18054 echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18057 ( exit $ac_status )
18058 ol_cv_nonposix_strerror=no
18060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18067 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
18068 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
18069 if test $ol_cv_nonposix_strerror_r = yes ; then
18071 cat >>confdefs.h <<\_ACEOF
18072 #define HAVE_NONPOSIX_STRERROR_R 1
18077 elif test "${ac_cv_func_strerror}" = no ; then
18078 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
18079 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
18080 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18084 cat >conftest.$ac_ext <<_ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18092 #include <sys/types.h>
18095 #include <stdlib.h>
18100 char *c = (char *) *sys_errlist
18105 rm -f conftest.$ac_objext
18106 if { (ac_try="$ac_compile"
18107 case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_compile") 2>conftest.er1
18114 grep -v '^ *+' conftest.er1 >conftest.err
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
18119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18120 { (case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_try") 2>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest.$ac_objext'
18130 { (case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_try") 2>&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; }; then
18139 ol_cv_dcl_sys_errlist=yes
18140 ol_cv_have_sys_errlist=yes
18142 echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18145 ol_cv_dcl_sys_errlist=no
18148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
18151 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
18153 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
18154 if test $ol_cv_dcl_sys_errlist = no ; then
18156 cat >>confdefs.h <<\_ACEOF
18157 #define DECL_SYS_ERRLIST 1
18161 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
18162 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
18163 if test "${ol_cv_have_sys_errlist+set}" = set; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18167 cat >conftest.$ac_ext <<_ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18177 char *c = (char *) *sys_errlist
18182 rm -f conftest.$ac_objext conftest$ac_exeext
18183 if { (ac_try="$ac_link"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_link") 2>conftest.er1
18191 grep -v '^ *+' conftest.er1 >conftest.err
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } &&
18196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18197 { (case "(($ac_try" in
18198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199 *) ac_try_echo=$ac_try;;
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202 (eval "$ac_try") 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; } &&
18206 { ac_try='test -s conftest$ac_exeext'
18207 { (case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212 (eval "$ac_try") 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ol_cv_have_sys_errlist=yes
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18221 ol_cv_have_sys_errlist=no
18224 rm -f core conftest.err conftest.$ac_objext \
18225 conftest$ac_exeext conftest.$ac_ext
18227 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
18228 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
18230 if test $ol_cv_have_sys_errlist = yes ; then
18232 cat >>confdefs.h <<\_ACEOF
18233 #define HAVE_SYS_ERRLIST 1
18242 for ac_header in regex.h
18244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 cat >conftest.$ac_ext <<_ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 $ac_includes_default
18257 #ifdef HAVE_SYS_TYPES_H
18258 #include <sys/types.h>
18262 #include <$ac_header>
18264 rm -f conftest.$ac_objext
18265 if { (ac_try="$ac_compile"
18266 case "(($ac_try" in
18267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18268 *) ac_try_echo=$ac_try;;
18270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18271 (eval "$ac_compile") 2>conftest.er1
18273 grep -v '^ *+' conftest.er1 >conftest.err
18275 cat conftest.err >&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } &&
18278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18279 { (case "(($ac_try" in
18280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18281 *) ac_try_echo=$ac_try;;
18283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18284 (eval "$ac_try") 2>&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; } &&
18288 { ac_try='test -s conftest.$ac_objext'
18289 { (case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294 (eval "$ac_try") 2>&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; }; then
18298 eval "$as_ac_Header=yes"
18300 echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18303 eval "$as_ac_Header=no"
18306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308 ac_res=`eval echo '${'$as_ac_Header'}'`
18309 { echo "$as_me:$LINENO: result: $ac_res" >&5
18310 echo "${ECHO_T}$ac_res" >&6; }
18311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18312 cat >>confdefs.h <<_ACEOF
18313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18321 if test "$ac_cv_header_regex_h" != yes ; then
18322 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
18323 echo "$as_me: error: POSIX regex.h required." >&2;}
18324 { (exit 1); exit 1; }; }
18326 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
18327 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
18328 if test "${ac_cv_search_regfree+set}" = set; then
18329 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 ac_func_search_save_LIBS=$LIBS
18332 cat >conftest.$ac_ext <<_ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18339 /* Override any GCC internal prototype to avoid an error.
18340 Use char because int might match the return type of a GCC
18341 builtin and then its argument prototype would still apply. */
18354 for ac_lib in '' regex gnuregex; do
18355 if test -z "$ac_lib"; then
18356 ac_res="none required"
18359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18361 rm -f conftest.$ac_objext conftest$ac_exeext
18362 if { (ac_try="$ac_link"
18363 case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_link") 2>conftest.er1
18370 grep -v '^ *+' conftest.er1 >conftest.err
18372 cat conftest.err >&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } &&
18375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18376 { (case "(($ac_try" in
18377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_try") 2>&5
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; } &&
18385 { ac_try='test -s conftest$ac_exeext'
18386 { (case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_try") 2>&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 ac_cv_search_regfree=$ac_res
18397 echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18403 rm -f core conftest.err conftest.$ac_objext \
18405 if test "${ac_cv_search_regfree+set}" = set; then
18409 if test "${ac_cv_search_regfree+set}" = set; then
18412 ac_cv_search_regfree=no
18414 rm conftest.$ac_ext
18415 LIBS=$ac_func_search_save_LIBS
18417 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
18418 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
18419 ac_res=$ac_cv_search_regfree
18420 if test "$ac_res" != no; then
18421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18424 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
18425 echo "$as_me: error: POSIX regex required." >&2;}
18426 { (exit 1); exit 1; }; }
18431 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
18432 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
18433 if test "${ol_cv_c_posix_regex+set}" = set; then
18434 echo $ECHO_N "(cached) $ECHO_C" >&6
18437 if test "$cross_compiling" = yes; then
18438 ol_cv_c_posix_regex=cross
18440 cat >conftest.$ac_ext <<_ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18447 #include <sys/types.h>
18449 static char *pattern, *string;
18457 if(regcomp(&re, pattern, 0)) {
18461 string = "ALL MATCH";
18463 rc = regexec(&re, string, 0, (void*)0, 0);
18470 rm -f conftest$ac_exeext
18471 if { (ac_try="$ac_link"
18472 case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_link") 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18481 { (case "(($ac_try" in
18482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483 *) ac_try_echo=$ac_try;;
18485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486 (eval "$ac_try") 2>&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 ol_cv_c_posix_regex=yes
18492 echo "$as_me: program exited with status $ac_status" >&5
18493 echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18496 ( exit $ac_status )
18497 ol_cv_c_posix_regex=no
18499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18504 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
18505 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
18507 if test "$ol_cv_c_posix_regex" = no ; then
18508 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
18509 echo "$as_me: error: broken POSIX regex!" >&2;}
18510 { (exit 1); exit 1; }; }
18516 for ac_header in sys/uuid.h
18518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18523 echo $ECHO_N "(cached) $ECHO_C" >&6
18525 ac_res=`eval echo '${'$as_ac_Header'}'`
18526 { echo "$as_me:$LINENO: result: $ac_res" >&5
18527 echo "${ECHO_T}$ac_res" >&6; }
18529 # Is the header compilable?
18530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18532 cat >conftest.$ac_ext <<_ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18538 $ac_includes_default
18539 #include <$ac_header>
18541 rm -f conftest.$ac_objext
18542 if { (ac_try="$ac_compile"
18543 case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_compile") 2>conftest.er1
18550 grep -v '^ *+' conftest.er1 >conftest.err
18552 cat conftest.err >&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } &&
18555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18556 { (case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_try") 2>&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; } &&
18565 { ac_try='test -s conftest.$ac_objext'
18566 { (case "(($ac_try" in
18567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18568 *) ac_try_echo=$ac_try;;
18570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18571 (eval "$ac_try") 2>&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; }; then
18575 ac_header_compiler=yes
18577 echo "$as_me: failed program was:" >&5
18578 sed 's/^/| /' conftest.$ac_ext >&5
18580 ac_header_compiler=no
18583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18585 echo "${ECHO_T}$ac_header_compiler" >&6; }
18587 # Is the header present?
18588 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18590 cat >conftest.$ac_ext <<_ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18596 #include <$ac_header>
18598 if { (ac_try="$ac_cpp conftest.$ac_ext"
18599 case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18606 grep -v '^ *+' conftest.er1 >conftest.err
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } >/dev/null; then
18611 if test -s conftest.err; then
18612 ac_cpp_err=$ac_c_preproc_warn_flag
18613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18620 if test -z "$ac_cpp_err"; then
18621 ac_header_preproc=yes
18623 echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18626 ac_header_preproc=no
18629 rm -f conftest.err conftest.$ac_ext
18630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18631 echo "${ECHO_T}$ac_header_preproc" >&6; }
18633 # So? What about this header?
18634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18640 ac_header_preproc=yes
18643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18656 ## --------------------------------------------- ##
18657 ## Report this to <http://www.openldap.org/its/> ##
18658 ## --------------------------------------------- ##
18660 ) | sed "s/^/$as_me: WARNING: /" >&2
18663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18668 eval "$as_ac_Header=\$ac_header_preproc"
18670 ac_res=`eval echo '${'$as_ac_Header'}'`
18671 { echo "$as_me:$LINENO: result: $ac_res" >&5
18672 echo "${ECHO_T}$ac_res" >&6; }
18675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18676 cat >>confdefs.h <<_ACEOF
18677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18684 if test $ac_cv_header_sys_uuid_h = yes ; then
18686 { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
18687 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
18688 if test "${ac_cv_search_uuid_to_str+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18691 ac_func_search_save_LIBS=$LIBS
18692 cat >conftest.$ac_ext <<_ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18699 /* Override any GCC internal prototype to avoid an error.
18700 Use char because int might match the return type of a GCC
18701 builtin and then its argument prototype would still apply. */
18705 char uuid_to_str ();
18709 return uuid_to_str ();
18714 for ac_lib in '' uuid; do
18715 if test -z "$ac_lib"; then
18716 ac_res="none required"
18719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18721 rm -f conftest.$ac_objext conftest$ac_exeext
18722 if { (ac_try="$ac_link"
18723 case "(($ac_try" in
18724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725 *) ac_try_echo=$ac_try;;
18727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18728 (eval "$ac_link") 2>conftest.er1
18730 grep -v '^ *+' conftest.er1 >conftest.err
18732 cat conftest.err >&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } &&
18735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18736 { (case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_try") 2>&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; } &&
18745 { ac_try='test -s conftest$ac_exeext'
18746 { (case "(($ac_try" in
18747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18748 *) ac_try_echo=$ac_try;;
18750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18751 (eval "$ac_try") 2>&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; }; then
18755 ac_cv_search_uuid_to_str=$ac_res
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18763 rm -f core conftest.err conftest.$ac_objext \
18765 if test "${ac_cv_search_uuid_to_str+set}" = set; then
18769 if test "${ac_cv_search_uuid_to_str+set}" = set; then
18772 ac_cv_search_uuid_to_str=no
18774 rm conftest.$ac_ext
18775 LIBS=$ac_func_search_save_LIBS
18777 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
18778 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
18779 ac_res=$ac_cv_search_uuid_to_str
18780 if test "$ac_res" != no; then
18781 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18789 if test have_uuid = yes ; then
18791 cat >>confdefs.h <<\_ACEOF
18792 #define HAVE_UUID_TO_STR 1
18796 test "$ac_cv_search_uuid_to_str" = "none required" || \
18797 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
18801 if test $have_uuid = no ; then
18803 for ac_header in uuid/uuid.h
18805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18812 ac_res=`eval echo '${'$as_ac_Header'}'`
18813 { echo "$as_me:$LINENO: result: $ac_res" >&5
18814 echo "${ECHO_T}$ac_res" >&6; }
18816 # Is the header compilable?
18817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18819 cat >conftest.$ac_ext <<_ACEOF
18822 cat confdefs.h >>conftest.$ac_ext
18823 cat >>conftest.$ac_ext <<_ACEOF
18824 /* end confdefs.h. */
18825 $ac_includes_default
18826 #include <$ac_header>
18828 rm -f conftest.$ac_objext
18829 if { (ac_try="$ac_compile"
18830 case "(($ac_try" in
18831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18832 *) ac_try_echo=$ac_try;;
18834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18835 (eval "$ac_compile") 2>conftest.er1
18837 grep -v '^ *+' conftest.er1 >conftest.err
18839 cat conftest.err >&5
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); } &&
18842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18843 { (case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_try") 2>&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try='test -s conftest.$ac_objext'
18853 { (case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_try") 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_header_compiler=yes
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 ac_header_compiler=no
18870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18872 echo "${ECHO_T}$ac_header_compiler" >&6; }
18874 # Is the header present?
18875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18877 cat >conftest.$ac_ext <<_ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h. */
18883 #include <$ac_header>
18885 if { (ac_try="$ac_cpp conftest.$ac_ext"
18886 case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18893 grep -v '^ *+' conftest.er1 >conftest.err
18895 cat conftest.err >&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); } >/dev/null; then
18898 if test -s conftest.err; then
18899 ac_cpp_err=$ac_c_preproc_warn_flag
18900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18907 if test -z "$ac_cpp_err"; then
18908 ac_header_preproc=yes
18910 echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18913 ac_header_preproc=no
18916 rm -f conftest.err conftest.$ac_ext
18917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18918 echo "${ECHO_T}$ac_header_preproc" >&6; }
18920 # So? What about this header?
18921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18927 ac_header_preproc=yes
18930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18943 ## --------------------------------------------- ##
18944 ## Report this to <http://www.openldap.org/its/> ##
18945 ## --------------------------------------------- ##
18947 ) | sed "s/^/$as_me: WARNING: /" >&2
18950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 eval "$as_ac_Header=\$ac_header_preproc"
18957 ac_res=`eval echo '${'$as_ac_Header'}'`
18958 { echo "$as_me:$LINENO: result: $ac_res" >&5
18959 echo "${ECHO_T}$ac_res" >&6; }
18962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18963 cat >>confdefs.h <<_ACEOF
18964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18971 if test $ac_cv_header_uuid_uuid_h = yes ; then
18973 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18974 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18975 if test "${ac_cv_search_uuid_generate+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 ac_func_search_save_LIBS=$LIBS
18979 cat >conftest.$ac_ext <<_ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h. */
18986 /* Override any GCC internal prototype to avoid an error.
18987 Use char because int might match the return type of a GCC
18988 builtin and then its argument prototype would still apply. */
18992 char uuid_generate ();
18996 return uuid_generate ();
19001 for ac_lib in '' uuid; do
19002 if test -z "$ac_lib"; then
19003 ac_res="none required"
19006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19008 rm -f conftest.$ac_objext conftest$ac_exeext
19009 if { (ac_try="$ac_link"
19010 case "(($ac_try" in
19011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19012 *) ac_try_echo=$ac_try;;
19014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19015 (eval "$ac_link") 2>conftest.er1
19017 grep -v '^ *+' conftest.er1 >conftest.err
19019 cat conftest.err >&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } &&
19022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19023 { (case "(($ac_try" in
19024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025 *) ac_try_echo=$ac_try;;
19027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028 (eval "$ac_try") 2>&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; } &&
19032 { ac_try='test -s conftest$ac_exeext'
19033 { (case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_try") 2>&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 ac_cv_search_uuid_generate=$ac_res
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19050 rm -f core conftest.err conftest.$ac_objext \
19052 if test "${ac_cv_search_uuid_generate+set}" = set; then
19056 if test "${ac_cv_search_uuid_generate+set}" = set; then
19059 ac_cv_search_uuid_generate=no
19061 rm conftest.$ac_ext
19062 LIBS=$ac_func_search_save_LIBS
19064 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
19065 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
19066 ac_res=$ac_cv_search_uuid_generate
19067 if test "$ac_res" != no; then
19068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19076 if test have_uuid = yes ; then
19078 cat >>confdefs.h <<\_ACEOF
19079 #define HAVE_UUID_GENERATE 1
19083 test "$ac_cv_search_uuid_generate" = "none required" || \
19084 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
19089 if test $have_uuid = no ; then
19090 { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
19091 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
19093 LIBS="$LIBS -lrpcrt4"
19094 cat >conftest.$ac_ext <<_ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19101 int __stdcall UuidCreate(void *);
19102 int __stdcall UuidToStringA(void *,void **);
19109 UuidToStringA(0,0);
19115 rm -f conftest.$ac_objext conftest$ac_exeext
19116 if { (ac_try="$ac_link"
19117 case "(($ac_try" in
19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119 *) ac_try_echo=$ac_try;;
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122 (eval "$ac_link") 2>conftest.er1
19124 grep -v '^ *+' conftest.er1 >conftest.err
19126 cat conftest.err >&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); } &&
19129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19130 { (case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_try") 2>&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; } &&
19139 { ac_try='test -s conftest$ac_exeext'
19140 { (case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_try") 2>&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; }; then
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19157 rm -f core conftest.err conftest.$ac_objext \
19158 conftest$ac_exeext conftest.$ac_ext
19159 if test $need_rpcrt = yes; then
19160 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
19163 { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
19164 echo "${ECHO_T}$need_rpcrt" >&6; }
19167 ol_cv_lib_resolver=no
19168 if test $ol_cv_lib_resolver = no ; then
19169 { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
19170 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
19171 if test "${ol_cv_resolver_none+set}" = set; then
19172 echo $ECHO_N "(cached) $ECHO_C" >&6
19177 LIBS="$ol_RESOLVER_LIB $LIBS"
19179 cat >conftest.$ac_ext <<_ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19186 #ifdef HAVE_SYS_TYPES_H
19187 # include <sys/types.h>
19189 #include <netinet/in.h>
19190 #ifdef HAVE_ARPA_NAMESER_H
19191 # include <arpa/nameser.h>
19193 #ifdef HAVE_RESOLV_H
19194 # include <resolv.h>
19202 char *request = NULL;
19203 unsigned char reply[64*1024];
19204 unsigned char host[64*1024];
19208 /* Bind 8/9 interface */
19209 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
19211 /* Bind 4 interface */
19215 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
19219 /* Bind 8/9 interface */
19221 #elif defined(HFIXEDSZ)
19222 /* Bind 4 interface w/ HFIXEDSZ */
19225 /* Bind 4 interface w/o HFIXEDSZ */
19226 p += sizeof(HEADER);
19228 status = dn_expand( reply, reply+len, p, host, sizeof(host));
19234 rm -f conftest.$ac_objext conftest$ac_exeext
19235 if { (ac_try="$ac_link"
19236 case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_link") 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); } &&
19248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19249 { (case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254 (eval "$ac_try") 2>&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; } &&
19258 { ac_try='test -s conftest$ac_exeext'
19259 { (case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_try") 2>&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268 ol_cv_resolver_none=yes
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19273 ol_cv_resolver_none=no
19276 rm -f core conftest.err conftest.$ac_objext \
19277 conftest$ac_exeext conftest.$ac_ext
19282 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
19283 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
19285 if test $ol_cv_resolver_none = yes ; then
19286 ol_cv_lib_resolver=yes
19290 if test $ol_cv_lib_resolver = no ; then
19291 { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
19292 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
19293 if test "${ol_cv_resolver_resolv+set}" = set; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
19297 ol_RESOLVER_LIB=-lresolv
19299 LIBS="$ol_RESOLVER_LIB $LIBS"
19301 cat >conftest.$ac_ext <<_ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19308 #ifdef HAVE_SYS_TYPES_H
19309 # include <sys/types.h>
19311 #include <netinet/in.h>
19312 #ifdef HAVE_ARPA_NAMESER_H
19313 # include <arpa/nameser.h>
19315 #ifdef HAVE_RESOLV_H
19316 # include <resolv.h>
19324 char *request = NULL;
19325 unsigned char reply[64*1024];
19326 unsigned char host[64*1024];
19330 /* Bind 8/9 interface */
19331 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
19333 /* Bind 4 interface */
19337 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
19341 /* Bind 8/9 interface */
19343 #elif defined(HFIXEDSZ)
19344 /* Bind 4 interface w/ HFIXEDSZ */
19347 /* Bind 4 interface w/o HFIXEDSZ */
19348 p += sizeof(HEADER);
19350 status = dn_expand( reply, reply+len, p, host, sizeof(host));
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (ac_try="$ac_link"
19358 case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_link") 2>conftest.er1
19365 grep -v '^ *+' conftest.er1 >conftest.err
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } &&
19370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19371 { (case "(($ac_try" in
19372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373 *) ac_try_echo=$ac_try;;
19375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19376 (eval "$ac_try") 2>&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; } &&
19380 { ac_try='test -s conftest$ac_exeext'
19381 { (case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_try") 2>&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; }; then
19390 ol_cv_resolver_resolv=yes
19392 echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19395 ol_cv_resolver_resolv=no
19398 rm -f core conftest.err conftest.$ac_objext \
19399 conftest$ac_exeext conftest.$ac_ext
19404 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
19405 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
19407 if test $ol_cv_resolver_resolv = yes ; then
19408 ol_cv_lib_resolver=-lresolv
19412 if test $ol_cv_lib_resolver = no ; then
19413 { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
19414 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
19415 if test "${ol_cv_resolver_bind+set}" = set; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 ol_RESOLVER_LIB=-lbind
19421 LIBS="$ol_RESOLVER_LIB $LIBS"
19423 cat >conftest.$ac_ext <<_ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h. */
19430 #ifdef HAVE_SYS_TYPES_H
19431 # include <sys/types.h>
19433 #include <netinet/in.h>
19434 #ifdef HAVE_ARPA_NAMESER_H
19435 # include <arpa/nameser.h>
19437 #ifdef HAVE_RESOLV_H
19438 # include <resolv.h>
19446 char *request = NULL;
19447 unsigned char reply[64*1024];
19448 unsigned char host[64*1024];
19452 /* Bind 8/9 interface */
19453 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
19455 /* Bind 4 interface */
19459 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
19463 /* Bind 8/9 interface */
19465 #elif defined(HFIXEDSZ)
19466 /* Bind 4 interface w/ HFIXEDSZ */
19469 /* Bind 4 interface w/o HFIXEDSZ */
19470 p += sizeof(HEADER);
19472 status = dn_expand( reply, reply+len, p, host, sizeof(host));
19478 rm -f conftest.$ac_objext conftest$ac_exeext
19479 if { (ac_try="$ac_link"
19480 case "(($ac_try" in
19481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482 *) ac_try_echo=$ac_try;;
19484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19485 (eval "$ac_link") 2>conftest.er1
19487 grep -v '^ *+' conftest.er1 >conftest.err
19489 cat conftest.err >&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } &&
19492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19493 { (case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_try") 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest$ac_exeext'
19503 { (case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_try") 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; }; then
19512 ol_cv_resolver_bind=yes
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19517 ol_cv_resolver_bind=no
19520 rm -f core conftest.err conftest.$ac_objext \
19521 conftest$ac_exeext conftest.$ac_ext
19526 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
19527 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
19529 if test $ol_cv_resolver_bind = yes ; then
19530 ol_cv_lib_resolver=-lbind
19537 if test "$ol_cv_lib_resolver" != no ; then
19539 cat >>confdefs.h <<\_ACEOF
19540 #define HAVE_RES_QUERY 1
19544 if test "$ol_enable_dnssrv" != no ; then
19548 if test "$ol_cv_lib_resolver" != yes ; then
19549 LIBS="$ol_cv_lib_resolver $LIBS"
19553 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
19554 if test "$ol_link_dnssrv" = no ; then
19555 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
19556 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
19557 { (exit 1); exit 1; }; }
19560 ol_enable_dnssrv=no
19564 for ac_func in hstrerror
19566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19570 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 cat >conftest.$ac_ext <<_ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19580 #define $ac_func innocuous_$ac_func
19582 /* System header to define __stub macros and hopefully few prototypes,
19583 which can conflict with char $ac_func (); below.
19584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19585 <limits.h> exists even on freestanding compilers. */
19588 # include <limits.h>
19590 # include <assert.h>
19595 /* Override any GCC internal prototype to avoid an error.
19596 Use char because int might match the return type of a GCC
19597 builtin and then its argument prototype would still apply. */
19602 /* The GNU C library defines this for functions which it implements
19603 to always fail with ENOSYS. Some functions are actually named
19604 something starting with __ and the normal name is an alias. */
19605 #if defined __stub_$ac_func || defined __stub___$ac_func
19612 return $ac_func ();
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (ac_try="$ac_link"
19619 case "(($ac_try" in
19620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621 *) ac_try_echo=$ac_try;;
19623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624 (eval "$ac_link") 2>conftest.er1
19626 grep -v '^ *+' conftest.er1 >conftest.err
19628 cat conftest.err >&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } &&
19631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19632 { (case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_try") 2>&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; } &&
19641 { ac_try='test -s conftest$ac_exeext'
19642 { (case "(($ac_try" in
19643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644 *) ac_try_echo=$ac_try;;
19646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647 (eval "$ac_try") 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 eval "$as_ac_var=yes"
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 eval "$as_ac_var=no"
19659 rm -f core conftest.err conftest.$ac_objext \
19660 conftest$ac_exeext conftest.$ac_ext
19662 ac_res=`eval echo '${'$as_ac_var'}'`
19663 { echo "$as_me:$LINENO: result: $ac_res" >&5
19664 echo "${ECHO_T}$ac_res" >&6; }
19665 if test `eval echo '${'$as_ac_var'}'` = yes; then
19666 cat >>confdefs.h <<_ACEOF
19667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19678 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
19680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 cat >conftest.$ac_ext <<_ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19694 #define $ac_func innocuous_$ac_func
19696 /* System header to define __stub macros and hopefully few prototypes,
19697 which can conflict with char $ac_func (); below.
19698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19699 <limits.h> exists even on freestanding compilers. */
19702 # include <limits.h>
19704 # include <assert.h>
19709 /* Override any GCC internal prototype to avoid an error.
19710 Use char because int might match the return type of a GCC
19711 builtin and then its argument prototype would still apply. */
19716 /* The GNU C library defines this for functions which it implements
19717 to always fail with ENOSYS. Some functions are actually named
19718 something starting with __ and the normal name is an alias. */
19719 #if defined __stub_$ac_func || defined __stub___$ac_func
19726 return $ac_func ();
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>conftest.er1
19740 grep -v '^ *+' conftest.er1 >conftest.err
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } &&
19745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19746 { (case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_try") 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; } &&
19755 { ac_try='test -s conftest$ac_exeext'
19756 { (case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_try") 2>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
19765 eval "$as_ac_var=yes"
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19770 eval "$as_ac_var=no"
19773 rm -f core conftest.err conftest.$ac_objext \
19774 conftest$ac_exeext conftest.$ac_ext
19776 ac_res=`eval echo '${'$as_ac_var'}'`
19777 { echo "$as_me:$LINENO: result: $ac_res" >&5
19778 echo "${ECHO_T}$ac_res" >&6; }
19779 if test `eval echo '${'$as_ac_var'}'` = yes; then
19780 cat >>confdefs.h <<_ACEOF
19781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19789 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
19790 if test $ol_enable_ipv6 = yes ; then
19791 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
19792 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
19793 { (exit 1); exit 1; }; }
19795 elif test $ol_enable_ipv6 != no ; then
19796 { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
19797 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
19798 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 cat >conftest.$ac_ext <<_ACEOF
19805 cat confdefs.h >>conftest.$ac_ext
19806 cat >>conftest.$ac_ext <<_ACEOF
19807 /* end confdefs.h. */
19809 # include <netinet/in.h>
19810 # ifdef INET6_ADDRSTRLEN
19811 __has_inet6_addrstrlen__;
19815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19816 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
19817 ol_cv_inet6_addrstrlen=yes
19819 ol_cv_inet6_addrstrlen=no
19824 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
19825 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
19828 { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
19829 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
19830 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19841 #include <sys/types.h>
19842 #include <sys/socket.h>
19848 struct sockaddr_storage ss;
19854 rm -f conftest.$ac_objext
19855 if { (ac_try="$ac_compile"
19856 case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval "$ac_compile") 2>conftest.er1
19863 grep -v '^ *+' conftest.er1 >conftest.err
19865 cat conftest.err >&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } &&
19868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19869 { (case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_try") 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest.$ac_objext'
19879 { (case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884 (eval "$ac_try") 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ol_cv_struct_sockaddr_storage=yes
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19893 ol_cv_struct_sockaddr_storage=no
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19898 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19899 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19901 if test $ol_cv_inet6_addrstrlen = yes &&
19902 test $ol_cv_struct_sockaddr_storage = yes ; then
19904 elif test $ol_enable_ipv6 = yes &&
19905 test $ol_cv_inet6_addrstrlen = no ; then
19906 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19907 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19908 { (exit 1); exit 1; }; }
19909 elif test $ol_enable_ipv6 = yes &&
19910 test $ol_cv_struct_sockaddr_storage = no ; then
19911 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19912 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19913 { (exit 1); exit 1; }; }
19917 if test $ol_enable_local != no ; then
19919 for ac_header in sys/un.h
19921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19926 echo $ECHO_N "(cached) $ECHO_C" >&6
19928 ac_res=`eval echo '${'$as_ac_Header'}'`
19929 { echo "$as_me:$LINENO: result: $ac_res" >&5
19930 echo "${ECHO_T}$ac_res" >&6; }
19932 # Is the header compilable?
19933 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19935 cat >conftest.$ac_ext <<_ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19941 $ac_includes_default
19942 #include <$ac_header>
19944 rm -f conftest.$ac_objext
19945 if { (ac_try="$ac_compile"
19946 case "(($ac_try" in
19947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948 *) ac_try_echo=$ac_try;;
19950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19951 (eval "$ac_compile") 2>conftest.er1
19953 grep -v '^ *+' conftest.er1 >conftest.err
19955 cat conftest.err >&5
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } &&
19958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19959 { (case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_try") 2>&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; } &&
19968 { ac_try='test -s conftest.$ac_objext'
19969 { (case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_try") 2>&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; }; then
19978 ac_header_compiler=yes
19980 echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19983 ac_header_compiler=no
19986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19988 echo "${ECHO_T}$ac_header_compiler" >&6; }
19990 # Is the header present?
19991 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19993 cat >conftest.$ac_ext <<_ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h. */
19999 #include <$ac_header>
20001 if { (ac_try="$ac_cpp conftest.$ac_ext"
20002 case "(($ac_try" in
20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004 *) ac_try_echo=$ac_try;;
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20009 grep -v '^ *+' conftest.er1 >conftest.err
20011 cat conftest.err >&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } >/dev/null; then
20014 if test -s conftest.err; then
20015 ac_cpp_err=$ac_c_preproc_warn_flag
20016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20023 if test -z "$ac_cpp_err"; then
20024 ac_header_preproc=yes
20026 echo "$as_me: failed program was:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20029 ac_header_preproc=no
20032 rm -f conftest.err conftest.$ac_ext
20033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20034 echo "${ECHO_T}$ac_header_preproc" >&6; }
20036 # So? What about this header?
20037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20043 ac_header_preproc=yes
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20049 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20053 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20059 ## --------------------------------------------- ##
20060 ## Report this to <http://www.openldap.org/its/> ##
20061 ## --------------------------------------------- ##
20063 ) | sed "s/^/$as_me: WARNING: /" >&2
20066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20069 echo $ECHO_N "(cached) $ECHO_C" >&6
20071 eval "$as_ac_Header=\$ac_header_preproc"
20073 ac_res=`eval echo '${'$as_ac_Header'}'`
20074 { echo "$as_me:$LINENO: result: $ac_res" >&5
20075 echo "${ECHO_T}$ac_res" >&6; }
20078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20079 cat >>confdefs.h <<_ACEOF
20080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20088 if test $ol_enable_local = auto ; then
20089 ol_enable_local=$ac_cv_header_sys_un_h
20090 elif test $ac_cv_header_sys_un_h = no ; then
20091 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
20092 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
20093 { (exit 1); exit 1; }; }
20098 if test $ol_with_tls = yes ; then
20103 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
20105 for ac_header in openssl/ssl.h
20107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20114 ac_res=`eval echo '${'$as_ac_Header'}'`
20115 { echo "$as_me:$LINENO: result: $ac_res" >&5
20116 echo "${ECHO_T}$ac_res" >&6; }
20118 # Is the header compilable?
20119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20121 cat >conftest.$ac_ext <<_ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h. */
20127 $ac_includes_default
20128 #include <$ac_header>
20130 rm -f conftest.$ac_objext
20131 if { (ac_try="$ac_compile"
20132 case "(($ac_try" in
20133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134 *) ac_try_echo=$ac_try;;
20136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20137 (eval "$ac_compile") 2>conftest.er1
20139 grep -v '^ *+' conftest.er1 >conftest.err
20141 cat conftest.err >&5
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); } &&
20144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20145 { (case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_try") 2>&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; } &&
20154 { ac_try='test -s conftest.$ac_objext'
20155 { (case "(($ac_try" in
20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157 *) ac_try_echo=$ac_try;;
20159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20160 (eval "$ac_try") 2>&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; }; then
20164 ac_header_compiler=yes
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 ac_header_compiler=no
20172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20174 echo "${ECHO_T}$ac_header_compiler" >&6; }
20176 # Is the header present?
20177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 <$ac_header>
20187 if { (ac_try="$ac_cpp conftest.$ac_ext"
20188 case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20195 grep -v '^ *+' conftest.er1 >conftest.err
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } >/dev/null; then
20200 if test -s conftest.err; then
20201 ac_cpp_err=$ac_c_preproc_warn_flag
20202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20209 if test -z "$ac_cpp_err"; then
20210 ac_header_preproc=yes
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ac_header_preproc=no
20218 rm -f conftest.err conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20220 echo "${ECHO_T}$ac_header_preproc" >&6; }
20222 # So? What about this header?
20223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20229 ac_header_preproc=yes
20232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20245 ## --------------------------------------------- ##
20246 ## Report this to <http://www.openldap.org/its/> ##
20247 ## --------------------------------------------- ##
20249 ) | sed "s/^/$as_me: WARNING: /" >&2
20252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20255 echo $ECHO_N "(cached) $ECHO_C" >&6
20257 eval "$as_ac_Header=\$ac_header_preproc"
20259 ac_res=`eval echo '${'$as_ac_Header'}'`
20260 { echo "$as_me:$LINENO: result: $ac_res" >&5
20261 echo "${ECHO_T}$ac_res" >&6; }
20264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20265 cat >>confdefs.h <<_ACEOF
20266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20274 if test $ac_cv_header_openssl_ssl_h = yes ; then
20275 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
20276 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
20277 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 ac_check_lib_save_LIBS=$LIBS
20281 LIBS="-lssl -lcrypto $LIBS"
20282 cat >conftest.$ac_ext <<_ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20289 /* Override any GCC internal prototype to avoid an error.
20290 Use char because int might match the return type of a GCC
20291 builtin and then its argument prototype would still apply. */
20295 char SSL_library_init ();
20299 return SSL_library_init ();
20304 rm -f conftest.$ac_objext conftest$ac_exeext
20305 if { (ac_try="$ac_link"
20306 case "(($ac_try" in
20307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308 *) ac_try_echo=$ac_try;;
20310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311 (eval "$ac_link") 2>conftest.er1
20313 grep -v '^ *+' conftest.er1 >conftest.err
20315 cat conftest.err >&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } &&
20318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20319 { (case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_try") 2>&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; } &&
20328 { ac_try='test -s conftest$ac_exeext'
20329 { (case "(($ac_try" in
20330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331 *) ac_try_echo=$ac_try;;
20333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20334 (eval "$ac_try") 2>&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); }; }; then
20338 ac_cv_lib_ssl_SSL_library_init=yes
20340 echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20343 ac_cv_lib_ssl_SSL_library_init=no
20346 rm -f core conftest.err conftest.$ac_objext \
20347 conftest$ac_exeext conftest.$ac_ext
20348 LIBS=$ac_check_lib_save_LIBS
20350 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
20351 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
20352 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
20360 if test $have_openssl = no ; then
20361 { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
20362 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
20363 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20366 ac_check_lib_save_LIBS=$LIBS
20367 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
20368 cat >conftest.$ac_ext <<_ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20375 /* Override any GCC internal prototype to avoid an error.
20376 Use char because int might match the return type of a GCC
20377 builtin and then its argument prototype would still apply. */
20381 char ssl3_accept ();
20385 return ssl3_accept ();
20390 rm -f conftest.$ac_objext conftest$ac_exeext
20391 if { (ac_try="$ac_link"
20392 case "(($ac_try" in
20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394 *) ac_try_echo=$ac_try;;
20396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397 (eval "$ac_link") 2>conftest.er1
20399 grep -v '^ *+' conftest.er1 >conftest.err
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
20404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20405 { (case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_try") 2>&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; } &&
20414 { ac_try='test -s conftest$ac_exeext'
20415 { (case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_try") 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_cv_lib_ssl_ssl3_accept=yes
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_cv_lib_ssl_ssl3_accept=no
20432 rm -f core conftest.err conftest.$ac_objext \
20433 conftest$ac_exeext conftest.$ac_ext
20434 LIBS=$ac_check_lib_save_LIBS
20436 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
20437 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
20438 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
20447 if test $have_openssl = yes ; then
20448 ol_with_tls=openssl
20452 cat >>confdefs.h <<\_ACEOF
20453 #define HAVE_OPENSSL 1
20457 if test $need_rsaref = yes; then
20459 cat >>confdefs.h <<\_ACEOF
20460 #define HAVE_RSAREF 1
20464 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
20466 TLS_LIBS="-lssl -lcrypto"
20469 { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
20470 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
20471 if test "${ol_cv_ssl_crl_compat+set}" = set; then
20472 echo $ECHO_N "(cached) $ECHO_C" >&6
20475 cat >conftest.$ac_ext <<_ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20482 #ifdef HAVE_OPENSSL_SSL_H
20483 #include <openssl/ssl.h>
20486 /* Require 0.9.7d+ */
20487 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
20488 char *__ssl_compat = "0.9.7d";
20492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20493 $EGREP "__ssl_compat" >/dev/null 2>&1; then
20494 ol_cv_ssl_crl_compat=yes
20496 ol_cv_ssl_crl_compat=no
20501 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
20502 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
20504 if test $ol_cv_ssl_crl_compat = yes ; then
20506 cat >>confdefs.h <<\_ACEOF
20507 #define HAVE_OPENSSL_CRL 1
20515 if test $ol_link_tls = no ; then
20516 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
20518 for ac_header in gnutls/gnutls.h
20520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 ac_res=`eval echo '${'$as_ac_Header'}'`
20528 { echo "$as_me:$LINENO: result: $ac_res" >&5
20529 echo "${ECHO_T}$ac_res" >&6; }
20531 # Is the header compilable?
20532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20534 cat >conftest.$ac_ext <<_ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540 $ac_includes_default
20541 #include <$ac_header>
20543 rm -f conftest.$ac_objext
20544 if { (ac_try="$ac_compile"
20545 case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_compile") 2>conftest.er1
20552 grep -v '^ *+' conftest.er1 >conftest.err
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } &&
20557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20558 { (case "(($ac_try" in
20559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20560 *) ac_try_echo=$ac_try;;
20562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20563 (eval "$ac_try") 2>&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; } &&
20567 { ac_try='test -s conftest.$ac_objext'
20568 { (case "(($ac_try" in
20569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570 *) ac_try_echo=$ac_try;;
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573 (eval "$ac_try") 2>&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; }; then
20577 ac_header_compiler=yes
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 ac_header_compiler=no
20585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20587 echo "${ECHO_T}$ac_header_compiler" >&6; }
20589 # Is the header present?
20590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20592 cat >conftest.$ac_ext <<_ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20598 #include <$ac_header>
20600 if { (ac_try="$ac_cpp conftest.$ac_ext"
20601 case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20608 grep -v '^ *+' conftest.er1 >conftest.err
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } >/dev/null; then
20613 if test -s conftest.err; then
20614 ac_cpp_err=$ac_c_preproc_warn_flag
20615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20622 if test -z "$ac_cpp_err"; then
20623 ac_header_preproc=yes
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20628 ac_header_preproc=no
20631 rm -f conftest.err conftest.$ac_ext
20632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20633 echo "${ECHO_T}$ac_header_preproc" >&6; }
20635 # So? What about this header?
20636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20642 ac_header_preproc=yes
20645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20658 ## --------------------------------------------- ##
20659 ## Report this to <http://www.openldap.org/its/> ##
20660 ## --------------------------------------------- ##
20662 ) | sed "s/^/$as_me: WARNING: /" >&2
20665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20670 eval "$as_ac_Header=\$ac_header_preproc"
20672 ac_res=`eval echo '${'$as_ac_Header'}'`
20673 { echo "$as_me:$LINENO: result: $ac_res" >&5
20674 echo "${ECHO_T}$ac_res" >&6; }
20677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20678 cat >>confdefs.h <<_ACEOF
20679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20687 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
20688 { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
20689 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
20690 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 ac_check_lib_save_LIBS=$LIBS
20694 LIBS="-lgnutls $LIBS"
20695 cat >conftest.$ac_ext <<_ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h. */
20702 /* Override any GCC internal prototype to avoid an error.
20703 Use char because int might match the return type of a GCC
20704 builtin and then its argument prototype would still apply. */
20708 char gnutls_init ();
20712 return gnutls_init ();
20717 rm -f conftest.$ac_objext conftest$ac_exeext
20718 if { (ac_try="$ac_link"
20719 case "(($ac_try" in
20720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721 *) ac_try_echo=$ac_try;;
20723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724 (eval "$ac_link") 2>conftest.er1
20726 grep -v '^ *+' conftest.er1 >conftest.err
20728 cat conftest.err >&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); } &&
20731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20732 { (case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_try") 2>&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; } &&
20741 { ac_try='test -s conftest$ac_exeext'
20742 { (case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747 (eval "$ac_try") 2>&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751 ac_cv_lib_gnutls_gnutls_init=yes
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20756 ac_cv_lib_gnutls_gnutls_init=no
20759 rm -f core conftest.err conftest.$ac_objext \
20760 conftest$ac_exeext conftest.$ac_ext
20761 LIBS=$ac_check_lib_save_LIBS
20763 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
20764 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
20765 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
20772 if test $have_gnutls = yes ; then
20777 cat >>confdefs.h <<\_ACEOF
20778 #define HAVE_GNUTLS 1
20787 if test $ol_link_tls = yes ; then
20789 cat >>confdefs.h <<\_ACEOF
20794 elif test $ol_with_tls = auto ; then
20795 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20796 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20797 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20798 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20799 elif test $ol_with_tls != no ; then
20800 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20801 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20802 { (exit 1); exit 1; }; }
20804 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20805 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20808 if test $ol_enable_lmpasswd != no; then
20809 if test $ol_link_tls != yes ; then
20810 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20811 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20812 { (exit 1); exit 1; }; }
20816 cat >>confdefs.h <<\_ACEOF
20817 #define SLAPD_LMHASH 1
20824 case $ol_with_threads in auto | yes | nt)
20827 { echo "$as_me:$LINENO: checking for _beginthread" >&5
20828 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20829 if test "${ac_cv_func__beginthread+set}" = set; then
20830 echo $ECHO_N "(cached) $ECHO_C" >&6
20832 cat >conftest.$ac_ext <<_ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20838 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20840 #define _beginthread innocuous__beginthread
20842 /* System header to define __stub macros and hopefully few prototypes,
20843 which can conflict with char _beginthread (); below.
20844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20845 <limits.h> exists even on freestanding compilers. */
20848 # include <limits.h>
20850 # include <assert.h>
20853 #undef _beginthread
20855 /* Override any GCC internal prototype to avoid an error.
20856 Use char because int might match the return type of a GCC
20857 builtin and then its argument prototype would still apply. */
20861 char _beginthread ();
20862 /* The GNU C library defines this for functions which it implements
20863 to always fail with ENOSYS. Some functions are actually named
20864 something starting with __ and the normal name is an alias. */
20865 #if defined __stub__beginthread || defined __stub____beginthread
20872 return _beginthread ();
20877 rm -f conftest.$ac_objext conftest$ac_exeext
20878 if { (ac_try="$ac_link"
20879 case "(($ac_try" in
20880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881 *) ac_try_echo=$ac_try;;
20883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20884 (eval "$ac_link") 2>conftest.er1
20886 grep -v '^ *+' conftest.er1 >conftest.err
20888 cat conftest.err >&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); } &&
20891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20892 { (case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897 (eval "$ac_try") 2>&5
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; } &&
20901 { ac_try='test -s conftest$ac_exeext'
20902 { (case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907 (eval "$ac_try") 2>&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; }; then
20911 ac_cv_func__beginthread=yes
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20916 ac_cv_func__beginthread=no
20919 rm -f core conftest.err conftest.$ac_objext \
20920 conftest$ac_exeext conftest.$ac_ext
20922 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20923 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20926 if test $ac_cv_func__beginthread = yes ; then
20928 cat >>confdefs.h <<\_ACEOF
20929 #define HAVE_NT_THREADS 1
20932 ol_cv_nt_threads=yes
20936 if test "$ol_cv_nt_threads" = yes ; then
20938 ol_with_threads=found
20939 ol_with_yielding_select=yes
20942 cat >>confdefs.h <<\_ACEOF
20943 #define HAVE_NT_SERVICE_MANAGER 1
20947 cat >>confdefs.h <<\_ACEOF
20948 #define HAVE_NT_EVENT_LOG 1
20953 if test $ol_with_threads = nt ; then
20954 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20955 echo "$as_me: error: could not locate NT Threads" >&2;}
20956 { (exit 1); exit 1; }; }
20961 case $ol_with_threads in auto | yes | posix)
20964 for ac_header in pthread.h
20966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20971 echo $ECHO_N "(cached) $ECHO_C" >&6
20973 ac_res=`eval echo '${'$as_ac_Header'}'`
20974 { echo "$as_me:$LINENO: result: $ac_res" >&5
20975 echo "${ECHO_T}$ac_res" >&6; }
20977 # Is the header compilable?
20978 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20980 cat >conftest.$ac_ext <<_ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20986 $ac_includes_default
20987 #include <$ac_header>
20989 rm -f conftest.$ac_objext
20990 if { (ac_try="$ac_compile"
20991 case "(($ac_try" in
20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996 (eval "$ac_compile") 2>conftest.er1
20998 grep -v '^ *+' conftest.er1 >conftest.err
21000 cat conftest.err >&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } &&
21003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21004 { (case "(($ac_try" in
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006 *) ac_try_echo=$ac_try;;
21008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009 (eval "$ac_try") 2>&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; } &&
21013 { ac_try='test -s conftest.$ac_objext'
21014 { (case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_try") 2>&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
21023 ac_header_compiler=yes
21025 echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21028 ac_header_compiler=no
21031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21033 echo "${ECHO_T}$ac_header_compiler" >&6; }
21035 # Is the header present?
21036 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21038 cat >conftest.$ac_ext <<_ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 #include <$ac_header>
21046 if { (ac_try="$ac_cpp conftest.$ac_ext"
21047 case "(($ac_try" in
21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049 *) ac_try_echo=$ac_try;;
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21054 grep -v '^ *+' conftest.er1 >conftest.err
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } >/dev/null; then
21059 if test -s conftest.err; then
21060 ac_cpp_err=$ac_c_preproc_warn_flag
21061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21068 if test -z "$ac_cpp_err"; then
21069 ac_header_preproc=yes
21071 echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ac_header_preproc=no
21077 rm -f conftest.err conftest.$ac_ext
21078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21079 echo "${ECHO_T}$ac_header_preproc" >&6; }
21081 # So? What about this header?
21082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21088 ac_header_preproc=yes
21091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21104 ## --------------------------------------------- ##
21105 ## Report this to <http://www.openldap.org/its/> ##
21106 ## --------------------------------------------- ##
21108 ) | sed "s/^/$as_me: WARNING: /" >&2
21111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21116 eval "$as_ac_Header=\$ac_header_preproc"
21118 ac_res=`eval echo '${'$as_ac_Header'}'`
21119 { echo "$as_me:$LINENO: result: $ac_res" >&5
21120 echo "${ECHO_T}$ac_res" >&6; }
21123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21124 cat >>confdefs.h <<_ACEOF
21125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21133 if test $ac_cv_header_pthread_h = yes ; then
21134 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
21135 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
21136 if test "${ol_cv_pthread_version+set}" = set; then
21137 echo $ECHO_N "(cached) $ECHO_C" >&6
21140 cat >conftest.$ac_ext <<_ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21147 # include <pthread.h>
21153 int i = PTHREAD_CREATE_JOINABLE;
21159 rm -f conftest.$ac_objext
21160 if { (ac_try="$ac_compile"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_compile") 2>conftest.er1
21168 grep -v '^ *+' conftest.er1 >conftest.err
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
21173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21174 { (case "(($ac_try" in
21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176 *) ac_try_echo=$ac_try;;
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179 (eval "$ac_try") 2>&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; } &&
21183 { ac_try='test -s conftest.$ac_objext'
21184 { (case "(($ac_try" in
21185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186 *) ac_try_echo=$ac_try;;
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21189 (eval "$ac_try") 2>&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; }; then
21194 cat >conftest.$ac_ext <<_ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21200 #include <pthread.h>
21203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21204 $EGREP "pthread_detach" >/dev/null 2>&1; then
21205 ol_cv_pthread_version=10
21207 ol_cv_pthread_version=8
21212 echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21216 cat >conftest.$ac_ext <<_ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21223 # include <pthread.h>
21224 # ifdef PTHREAD_CREATE_UNDETACHED
21229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21230 $EGREP "draft7" >/dev/null 2>&1; then
21231 ol_cv_pthread_version=7
21234 cat >conftest.$ac_ext <<_ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21240 #include <pthread.h>
21243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21244 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
21245 ol_cv_pthread_version=6
21248 cat >conftest.$ac_ext <<_ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21255 # include <pthread.h>
21256 #ifdef PTHREAD_MUTEX_INITIALIZER
21261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21262 $EGREP "draft5" >/dev/null 2>&1; then
21263 ol_cv_pthread_version=5
21265 ol_cv_pthread_version=4
21277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21280 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
21281 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
21284 if test $ol_cv_pthread_version != 0 ; then
21286 cat >>confdefs.h <<_ACEOF
21287 #define HAVE_PTHREADS $ol_cv_pthread_version
21291 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
21292 echo "$as_me: error: unknown pthread version" >&2;}
21293 { (exit 1); exit 1; }; }
21296 # consider threads found
21297 ol_with_threads=found
21300 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
21301 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
21302 if test "${ol_cv_header_linux_threads+set}" = set; then
21303 echo $ECHO_N "(cached) $ECHO_C" >&6
21305 cat >conftest.$ac_ext <<_ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h. */
21311 #include <pthread.h>
21313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21314 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
21315 ol_cv_header_linux_threads=yes
21317 ol_cv_header_linux_threads=no
21323 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
21324 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
21325 if test $ol_cv_header_linux_threads = yes; then
21327 cat >>confdefs.h <<\_ACEOF
21328 #define HAVE_LINUX_THREADS 1
21334 { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
21335 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
21336 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 cat >conftest.$ac_ext <<_ACEOF
21342 cat confdefs.h >>conftest.$ac_ext
21343 cat >>conftest.$ac_ext <<_ACEOF
21344 /* end confdefs.h. */
21345 #include <pthread.h>
21346 #ifdef _POSIX_THREAD_IS_GNU_PTH
21351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21352 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
21353 ol_cv_header_gnu_pth_pthread_h=yes
21355 ol_cv_header_gnu_pth_pthread_h=no
21361 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
21362 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
21365 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
21367 for ac_header in sched.h
21369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21374 echo $ECHO_N "(cached) $ECHO_C" >&6
21376 ac_res=`eval echo '${'$as_ac_Header'}'`
21377 { echo "$as_me:$LINENO: result: $ac_res" >&5
21378 echo "${ECHO_T}$ac_res" >&6; }
21380 # Is the header compilable?
21381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21383 cat >conftest.$ac_ext <<_ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h. */
21389 $ac_includes_default
21390 #include <$ac_header>
21392 rm -f conftest.$ac_objext
21393 if { (ac_try="$ac_compile"
21394 case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_compile") 2>conftest.er1
21401 grep -v '^ *+' conftest.er1 >conftest.err
21403 cat conftest.err >&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } &&
21406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21407 { (case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_try") 2>&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; } &&
21416 { ac_try='test -s conftest.$ac_objext'
21417 { (case "(($ac_try" in
21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419 *) ac_try_echo=$ac_try;;
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422 (eval "$ac_try") 2>&5
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); }; }; then
21426 ac_header_compiler=yes
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21431 ac_header_compiler=no
21434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21436 echo "${ECHO_T}$ac_header_compiler" >&6; }
21438 # Is the header present?
21439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21441 cat >conftest.$ac_ext <<_ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21447 #include <$ac_header>
21449 if { (ac_try="$ac_cpp conftest.$ac_ext"
21450 case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21457 grep -v '^ *+' conftest.er1 >conftest.err
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } >/dev/null; then
21462 if test -s conftest.err; then
21463 ac_cpp_err=$ac_c_preproc_warn_flag
21464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21471 if test -z "$ac_cpp_err"; then
21472 ac_header_preproc=yes
21474 echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21477 ac_header_preproc=no
21480 rm -f conftest.err conftest.$ac_ext
21481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21482 echo "${ECHO_T}$ac_header_preproc" >&6; }
21484 # So? What about this header?
21485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21491 ac_header_preproc=yes
21494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21507 ## --------------------------------------------- ##
21508 ## Report this to <http://www.openldap.org/its/> ##
21509 ## --------------------------------------------- ##
21511 ) | sed "s/^/$as_me: WARNING: /" >&2
21514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21517 echo $ECHO_N "(cached) $ECHO_C" >&6
21519 eval "$as_ac_Header=\$ac_header_preproc"
21521 ac_res=`eval echo '${'$as_ac_Header'}'`
21522 { echo "$as_me:$LINENO: result: $ac_res" >&5
21523 echo "${ECHO_T}$ac_res" >&6; }
21526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21527 cat >>confdefs.h <<_ACEOF
21528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21538 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
21539 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
21540 if test "${ol_cv_pthread_create+set}" = set; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21544 if test "$cross_compiling" = yes; then
21545 cat >conftest.$ac_ext <<_ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h. */
21552 /* pthread test headers */
21553 #include <pthread.h>
21554 #if HAVE_PTHREADS < 7
21558 #define NULL (void*)0
21561 static void *task(p)
21564 return (void *) (p == NULL);
21571 /* pthread test function */
21572 #ifndef PTHREAD_CREATE_DETACHED
21573 #define PTHREAD_CREATE_DETACHED 1
21577 int detach = PTHREAD_CREATE_DETACHED;
21579 #if HAVE_PTHREADS > 4
21580 /* Final pthreads */
21581 pthread_attr_t attr;
21583 status = pthread_attr_init(&attr);
21584 if( status ) return status;
21586 #if HAVE_PTHREADS < 7
21587 status = pthread_attr_setdetachstate(&attr, &detach);
21588 if( status < 0 ) status = errno;
21590 status = pthread_attr_setdetachstate(&attr, detach);
21592 if( status ) return status;
21593 status = pthread_create( &t, &attr, task, NULL );
21594 #if HAVE_PTHREADS < 7
21595 if( status < 0 ) status = errno;
21597 if( status ) return status;
21599 /* Draft 4 pthreads */
21600 status = pthread_create( &t, pthread_attr_default, task, NULL );
21601 if( status ) return errno;
21603 /* give thread a chance to complete */
21604 /* it should remain joinable and hence detachable */
21607 status = pthread_detach( &t );
21608 if( status ) return errno;
21611 #ifdef HAVE_LINUX_THREADS
21612 pthread_kill_other_threads_np();
21621 rm -f conftest.$ac_objext conftest$ac_exeext
21622 if { (ac_try="$ac_link"
21623 case "(($ac_try" in
21624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21625 *) ac_try_echo=$ac_try;;
21627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21628 (eval "$ac_link") 2>conftest.er1
21630 grep -v '^ *+' conftest.er1 >conftest.err
21632 cat conftest.err >&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } &&
21635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21636 { (case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_try") 2>&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; } &&
21645 { ac_try='test -s conftest$ac_exeext'
21646 { (case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_try") 2>&5
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); }; }; then
21655 ol_cv_pthread_create=yes
21657 echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21660 ol_cv_pthread_create=no
21663 rm -f core conftest.err conftest.$ac_objext \
21664 conftest$ac_exeext conftest.$ac_ext
21666 cat >conftest.$ac_ext <<_ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h. */
21673 /* pthread test headers */
21674 #include <pthread.h>
21675 #if HAVE_PTHREADS < 7
21679 #define NULL (void*)0
21682 static void *task(p)
21685 return (void *) (p == NULL);
21689 int main(argc, argv)
21694 /* pthread test function */
21695 #ifndef PTHREAD_CREATE_DETACHED
21696 #define PTHREAD_CREATE_DETACHED 1
21700 int detach = PTHREAD_CREATE_DETACHED;
21702 #if HAVE_PTHREADS > 4
21703 /* Final pthreads */
21704 pthread_attr_t attr;
21706 status = pthread_attr_init(&attr);
21707 if( status ) return status;
21709 #if HAVE_PTHREADS < 7
21710 status = pthread_attr_setdetachstate(&attr, &detach);
21711 if( status < 0 ) status = errno;
21713 status = pthread_attr_setdetachstate(&attr, detach);
21715 if( status ) return status;
21716 status = pthread_create( &t, &attr, task, NULL );
21717 #if HAVE_PTHREADS < 7
21718 if( status < 0 ) status = errno;
21720 if( status ) return status;
21722 /* Draft 4 pthreads */
21723 status = pthread_create( &t, pthread_attr_default, task, NULL );
21724 if( status ) return errno;
21726 /* give thread a chance to complete */
21727 /* it should remain joinable and hence detachable */
21730 status = pthread_detach( &t );
21731 if( status ) return errno;
21734 #ifdef HAVE_LINUX_THREADS
21735 pthread_kill_other_threads_np();
21743 rm -f conftest$ac_exeext
21744 if { (ac_try="$ac_link"
21745 case "(($ac_try" in
21746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21747 *) ac_try_echo=$ac_try;;
21749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21750 (eval "$ac_link") 2>&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21754 { (case "(($ac_try" in
21755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756 *) ac_try_echo=$ac_try;;
21758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21759 (eval "$ac_try") 2>&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; }; then
21763 ol_cv_pthread_create=yes
21765 echo "$as_me: program exited with status $ac_status" >&5
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21769 ( exit $ac_status )
21770 ol_cv_pthread_create=no
21772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21777 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
21778 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
21780 if test $ol_cv_pthread_create != no ; then
21781 ol_link_threads=posix
21782 ol_link_pthreads=""
21785 # Pthread try link: -kthread (ol_cv_pthread_kthread)
21786 if test "$ol_link_threads" = no ; then
21788 { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
21789 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
21790 if test "${ol_cv_pthread_kthread+set}" = set; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 LIBS="-kthread $LIBS"
21798 if test "$cross_compiling" = yes; then
21799 cat >conftest.$ac_ext <<_ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21806 /* pthread test headers */
21807 #include <pthread.h>
21808 #if HAVE_PTHREADS < 7
21812 #define NULL (void*)0
21815 static void *task(p)
21818 return (void *) (p == NULL);
21825 /* pthread test function */
21826 #ifndef PTHREAD_CREATE_DETACHED
21827 #define PTHREAD_CREATE_DETACHED 1
21831 int detach = PTHREAD_CREATE_DETACHED;
21833 #if HAVE_PTHREADS > 4
21834 /* Final pthreads */
21835 pthread_attr_t attr;
21837 status = pthread_attr_init(&attr);
21838 if( status ) return status;
21840 #if HAVE_PTHREADS < 7
21841 status = pthread_attr_setdetachstate(&attr, &detach);
21842 if( status < 0 ) status = errno;
21844 status = pthread_attr_setdetachstate(&attr, detach);
21846 if( status ) return status;
21847 status = pthread_create( &t, &attr, task, NULL );
21848 #if HAVE_PTHREADS < 7
21849 if( status < 0 ) status = errno;
21851 if( status ) return status;
21853 /* Draft 4 pthreads */
21854 status = pthread_create( &t, pthread_attr_default, task, NULL );
21855 if( status ) return errno;
21857 /* give thread a chance to complete */
21858 /* it should remain joinable and hence detachable */
21861 status = pthread_detach( &t );
21862 if( status ) return errno;
21865 #ifdef HAVE_LINUX_THREADS
21866 pthread_kill_other_threads_np();
21875 rm -f conftest.$ac_objext conftest$ac_exeext
21876 if { (ac_try="$ac_link"
21877 case "(($ac_try" in
21878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879 *) ac_try_echo=$ac_try;;
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882 (eval "$ac_link") 2>conftest.er1
21884 grep -v '^ *+' conftest.er1 >conftest.err
21886 cat conftest.err >&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } &&
21889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21890 { (case "(($ac_try" in
21891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21892 *) ac_try_echo=$ac_try;;
21894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21895 (eval "$ac_try") 2>&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; } &&
21899 { ac_try='test -s conftest$ac_exeext'
21900 { (case "(($ac_try" in
21901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902 *) ac_try_echo=$ac_try;;
21904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21905 (eval "$ac_try") 2>&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); }; }; then
21909 ol_cv_pthread_kthread=yes
21911 echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21914 ol_cv_pthread_kthread=no
21917 rm -f core conftest.err conftest.$ac_objext \
21918 conftest$ac_exeext conftest.$ac_ext
21920 cat >conftest.$ac_ext <<_ACEOF
21923 cat confdefs.h >>conftest.$ac_ext
21924 cat >>conftest.$ac_ext <<_ACEOF
21925 /* end confdefs.h. */
21927 /* pthread test headers */
21928 #include <pthread.h>
21929 #if HAVE_PTHREADS < 7
21933 #define NULL (void*)0
21936 static void *task(p)
21939 return (void *) (p == NULL);
21943 int main(argc, argv)
21948 /* pthread test function */
21949 #ifndef PTHREAD_CREATE_DETACHED
21950 #define PTHREAD_CREATE_DETACHED 1
21954 int detach = PTHREAD_CREATE_DETACHED;
21956 #if HAVE_PTHREADS > 4
21957 /* Final pthreads */
21958 pthread_attr_t attr;
21960 status = pthread_attr_init(&attr);
21961 if( status ) return status;
21963 #if HAVE_PTHREADS < 7
21964 status = pthread_attr_setdetachstate(&attr, &detach);
21965 if( status < 0 ) status = errno;
21967 status = pthread_attr_setdetachstate(&attr, detach);
21969 if( status ) return status;
21970 status = pthread_create( &t, &attr, task, NULL );
21971 #if HAVE_PTHREADS < 7
21972 if( status < 0 ) status = errno;
21974 if( status ) return status;
21976 /* Draft 4 pthreads */
21977 status = pthread_create( &t, pthread_attr_default, task, NULL );
21978 if( status ) return errno;
21980 /* give thread a chance to complete */
21981 /* it should remain joinable and hence detachable */
21984 status = pthread_detach( &t );
21985 if( status ) return errno;
21988 #ifdef HAVE_LINUX_THREADS
21989 pthread_kill_other_threads_np();
21997 rm -f conftest$ac_exeext
21998 if { (ac_try="$ac_link"
21999 case "(($ac_try" in
22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001 *) ac_try_echo=$ac_try;;
22003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22004 (eval "$ac_link") 2>&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22008 { (case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013 (eval "$ac_try") 2>&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; }; then
22017 ol_cv_pthread_kthread=yes
22019 echo "$as_me: program exited with status $ac_status" >&5
22020 echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22023 ( exit $ac_status )
22024 ol_cv_pthread_kthread=no
22026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22035 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
22036 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
22038 if test $ol_cv_pthread_kthread = yes ; then
22039 ol_link_pthreads="-kthread"
22040 ol_link_threads=posix
22044 # Pthread try link: -pthread (ol_cv_pthread_pthread)
22045 if test "$ol_link_threads" = no ; then
22047 { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
22048 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
22049 if test "${ol_cv_pthread_pthread+set}" = set; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22055 LIBS="-pthread $LIBS"
22057 if test "$cross_compiling" = yes; then
22058 cat >conftest.$ac_ext <<_ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22065 /* pthread test headers */
22066 #include <pthread.h>
22067 #if HAVE_PTHREADS < 7
22071 #define NULL (void*)0
22074 static void *task(p)
22077 return (void *) (p == NULL);
22084 /* pthread test function */
22085 #ifndef PTHREAD_CREATE_DETACHED
22086 #define PTHREAD_CREATE_DETACHED 1
22090 int detach = PTHREAD_CREATE_DETACHED;
22092 #if HAVE_PTHREADS > 4
22093 /* Final pthreads */
22094 pthread_attr_t attr;
22096 status = pthread_attr_init(&attr);
22097 if( status ) return status;
22099 #if HAVE_PTHREADS < 7
22100 status = pthread_attr_setdetachstate(&attr, &detach);
22101 if( status < 0 ) status = errno;
22103 status = pthread_attr_setdetachstate(&attr, detach);
22105 if( status ) return status;
22106 status = pthread_create( &t, &attr, task, NULL );
22107 #if HAVE_PTHREADS < 7
22108 if( status < 0 ) status = errno;
22110 if( status ) return status;
22112 /* Draft 4 pthreads */
22113 status = pthread_create( &t, pthread_attr_default, task, NULL );
22114 if( status ) return errno;
22116 /* give thread a chance to complete */
22117 /* it should remain joinable and hence detachable */
22120 status = pthread_detach( &t );
22121 if( status ) return errno;
22124 #ifdef HAVE_LINUX_THREADS
22125 pthread_kill_other_threads_np();
22134 rm -f conftest.$ac_objext conftest$ac_exeext
22135 if { (ac_try="$ac_link"
22136 case "(($ac_try" in
22137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138 *) ac_try_echo=$ac_try;;
22140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141 (eval "$ac_link") 2>conftest.er1
22143 grep -v '^ *+' conftest.er1 >conftest.err
22145 cat conftest.err >&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } &&
22148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22149 { (case "(($ac_try" in
22150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151 *) ac_try_echo=$ac_try;;
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154 (eval "$ac_try") 2>&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; } &&
22158 { ac_try='test -s conftest$ac_exeext'
22159 { (case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_try") 2>&5
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; }; then
22168 ol_cv_pthread_pthread=yes
22170 echo "$as_me: failed program was:" >&5
22171 sed 's/^/| /' conftest.$ac_ext >&5
22173 ol_cv_pthread_pthread=no
22176 rm -f core conftest.err conftest.$ac_objext \
22177 conftest$ac_exeext conftest.$ac_ext
22179 cat >conftest.$ac_ext <<_ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h. */
22186 /* pthread test headers */
22187 #include <pthread.h>
22188 #if HAVE_PTHREADS < 7
22192 #define NULL (void*)0
22195 static void *task(p)
22198 return (void *) (p == NULL);
22202 int main(argc, argv)
22207 /* pthread test function */
22208 #ifndef PTHREAD_CREATE_DETACHED
22209 #define PTHREAD_CREATE_DETACHED 1
22213 int detach = PTHREAD_CREATE_DETACHED;
22215 #if HAVE_PTHREADS > 4
22216 /* Final pthreads */
22217 pthread_attr_t attr;
22219 status = pthread_attr_init(&attr);
22220 if( status ) return status;
22222 #if HAVE_PTHREADS < 7
22223 status = pthread_attr_setdetachstate(&attr, &detach);
22224 if( status < 0 ) status = errno;
22226 status = pthread_attr_setdetachstate(&attr, detach);
22228 if( status ) return status;
22229 status = pthread_create( &t, &attr, task, NULL );
22230 #if HAVE_PTHREADS < 7
22231 if( status < 0 ) status = errno;
22233 if( status ) return status;
22235 /* Draft 4 pthreads */
22236 status = pthread_create( &t, pthread_attr_default, task, NULL );
22237 if( status ) return errno;
22239 /* give thread a chance to complete */
22240 /* it should remain joinable and hence detachable */
22243 status = pthread_detach( &t );
22244 if( status ) return errno;
22247 #ifdef HAVE_LINUX_THREADS
22248 pthread_kill_other_threads_np();
22256 rm -f conftest$ac_exeext
22257 if { (ac_try="$ac_link"
22258 case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_link") 2>&5
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22267 { (case "(($ac_try" in
22268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269 *) ac_try_echo=$ac_try;;
22271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272 (eval "$ac_try") 2>&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; }; then
22276 ol_cv_pthread_pthread=yes
22278 echo "$as_me: program exited with status $ac_status" >&5
22279 echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22282 ( exit $ac_status )
22283 ol_cv_pthread_pthread=no
22285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22294 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
22295 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
22297 if test $ol_cv_pthread_pthread = yes ; then
22298 ol_link_pthreads="-pthread"
22299 ol_link_threads=posix
22303 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
22304 if test "$ol_link_threads" = no ; then
22306 { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
22307 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
22308 if test "${ol_cv_pthread_pthreads+set}" = set; then
22309 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 LIBS="-pthreads $LIBS"
22316 if test "$cross_compiling" = yes; then
22317 cat >conftest.$ac_ext <<_ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22324 /* pthread test headers */
22325 #include <pthread.h>
22326 #if HAVE_PTHREADS < 7
22330 #define NULL (void*)0
22333 static void *task(p)
22336 return (void *) (p == NULL);
22343 /* pthread test function */
22344 #ifndef PTHREAD_CREATE_DETACHED
22345 #define PTHREAD_CREATE_DETACHED 1
22349 int detach = PTHREAD_CREATE_DETACHED;
22351 #if HAVE_PTHREADS > 4
22352 /* Final pthreads */
22353 pthread_attr_t attr;
22355 status = pthread_attr_init(&attr);
22356 if( status ) return status;
22358 #if HAVE_PTHREADS < 7
22359 status = pthread_attr_setdetachstate(&attr, &detach);
22360 if( status < 0 ) status = errno;
22362 status = pthread_attr_setdetachstate(&attr, detach);
22364 if( status ) return status;
22365 status = pthread_create( &t, &attr, task, NULL );
22366 #if HAVE_PTHREADS < 7
22367 if( status < 0 ) status = errno;
22369 if( status ) return status;
22371 /* Draft 4 pthreads */
22372 status = pthread_create( &t, pthread_attr_default, task, NULL );
22373 if( status ) return errno;
22375 /* give thread a chance to complete */
22376 /* it should remain joinable and hence detachable */
22379 status = pthread_detach( &t );
22380 if( status ) return errno;
22383 #ifdef HAVE_LINUX_THREADS
22384 pthread_kill_other_threads_np();
22393 rm -f conftest.$ac_objext conftest$ac_exeext
22394 if { (ac_try="$ac_link"
22395 case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400 (eval "$ac_link") 2>conftest.er1
22402 grep -v '^ *+' conftest.er1 >conftest.err
22404 cat conftest.err >&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); } &&
22407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22408 { (case "(($ac_try" in
22409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410 *) ac_try_echo=$ac_try;;
22412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22413 (eval "$ac_try") 2>&5
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); }; } &&
22417 { ac_try='test -s conftest$ac_exeext'
22418 { (case "(($ac_try" in
22419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420 *) ac_try_echo=$ac_try;;
22422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423 (eval "$ac_try") 2>&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); }; }; then
22427 ol_cv_pthread_pthreads=yes
22429 echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22432 ol_cv_pthread_pthreads=no
22435 rm -f core conftest.err conftest.$ac_objext \
22436 conftest$ac_exeext conftest.$ac_ext
22438 cat >conftest.$ac_ext <<_ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h. */
22445 /* pthread test headers */
22446 #include <pthread.h>
22447 #if HAVE_PTHREADS < 7
22451 #define NULL (void*)0
22454 static void *task(p)
22457 return (void *) (p == NULL);
22461 int main(argc, argv)
22466 /* pthread test function */
22467 #ifndef PTHREAD_CREATE_DETACHED
22468 #define PTHREAD_CREATE_DETACHED 1
22472 int detach = PTHREAD_CREATE_DETACHED;
22474 #if HAVE_PTHREADS > 4
22475 /* Final pthreads */
22476 pthread_attr_t attr;
22478 status = pthread_attr_init(&attr);
22479 if( status ) return status;
22481 #if HAVE_PTHREADS < 7
22482 status = pthread_attr_setdetachstate(&attr, &detach);
22483 if( status < 0 ) status = errno;
22485 status = pthread_attr_setdetachstate(&attr, detach);
22487 if( status ) return status;
22488 status = pthread_create( &t, &attr, task, NULL );
22489 #if HAVE_PTHREADS < 7
22490 if( status < 0 ) status = errno;
22492 if( status ) return status;
22494 /* Draft 4 pthreads */
22495 status = pthread_create( &t, pthread_attr_default, task, NULL );
22496 if( status ) return errno;
22498 /* give thread a chance to complete */
22499 /* it should remain joinable and hence detachable */
22502 status = pthread_detach( &t );
22503 if( status ) return errno;
22506 #ifdef HAVE_LINUX_THREADS
22507 pthread_kill_other_threads_np();
22515 rm -f conftest$ac_exeext
22516 if { (ac_try="$ac_link"
22517 case "(($ac_try" in
22518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22519 *) ac_try_echo=$ac_try;;
22521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22522 (eval "$ac_link") 2>&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22526 { (case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531 (eval "$ac_try") 2>&5
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); }; }; then
22535 ol_cv_pthread_pthreads=yes
22537 echo "$as_me: program exited with status $ac_status" >&5
22538 echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22541 ( exit $ac_status )
22542 ol_cv_pthread_pthreads=no
22544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22553 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
22554 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
22556 if test $ol_cv_pthread_pthreads = yes ; then
22557 ol_link_pthreads="-pthreads"
22558 ol_link_threads=posix
22562 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
22563 if test "$ol_link_threads" = no ; then
22565 { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
22566 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
22567 if test "${ol_cv_pthread_mthreads+set}" = set; then
22568 echo $ECHO_N "(cached) $ECHO_C" >&6
22573 LIBS="-mthreads $LIBS"
22575 if test "$cross_compiling" = yes; then
22576 cat >conftest.$ac_ext <<_ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h. */
22583 /* pthread test headers */
22584 #include <pthread.h>
22585 #if HAVE_PTHREADS < 7
22589 #define NULL (void*)0
22592 static void *task(p)
22595 return (void *) (p == NULL);
22602 /* pthread test function */
22603 #ifndef PTHREAD_CREATE_DETACHED
22604 #define PTHREAD_CREATE_DETACHED 1
22608 int detach = PTHREAD_CREATE_DETACHED;
22610 #if HAVE_PTHREADS > 4
22611 /* Final pthreads */
22612 pthread_attr_t attr;
22614 status = pthread_attr_init(&attr);
22615 if( status ) return status;
22617 #if HAVE_PTHREADS < 7
22618 status = pthread_attr_setdetachstate(&attr, &detach);
22619 if( status < 0 ) status = errno;
22621 status = pthread_attr_setdetachstate(&attr, detach);
22623 if( status ) return status;
22624 status = pthread_create( &t, &attr, task, NULL );
22625 #if HAVE_PTHREADS < 7
22626 if( status < 0 ) status = errno;
22628 if( status ) return status;
22630 /* Draft 4 pthreads */
22631 status = pthread_create( &t, pthread_attr_default, task, NULL );
22632 if( status ) return errno;
22634 /* give thread a chance to complete */
22635 /* it should remain joinable and hence detachable */
22638 status = pthread_detach( &t );
22639 if( status ) return errno;
22642 #ifdef HAVE_LINUX_THREADS
22643 pthread_kill_other_threads_np();
22652 rm -f conftest.$ac_objext conftest$ac_exeext
22653 if { (ac_try="$ac_link"
22654 case "(($ac_try" in
22655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22656 *) ac_try_echo=$ac_try;;
22658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22659 (eval "$ac_link") 2>conftest.er1
22661 grep -v '^ *+' conftest.er1 >conftest.err
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } &&
22666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22667 { (case "(($ac_try" in
22668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22669 *) ac_try_echo=$ac_try;;
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672 (eval "$ac_try") 2>&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); }; } &&
22676 { ac_try='test -s conftest$ac_exeext'
22677 { (case "(($ac_try" in
22678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679 *) ac_try_echo=$ac_try;;
22681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22682 (eval "$ac_try") 2>&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; }; then
22686 ol_cv_pthread_mthreads=yes
22688 echo "$as_me: failed program was:" >&5
22689 sed 's/^/| /' conftest.$ac_ext >&5
22691 ol_cv_pthread_mthreads=no
22694 rm -f core conftest.err conftest.$ac_objext \
22695 conftest$ac_exeext conftest.$ac_ext
22697 cat >conftest.$ac_ext <<_ACEOF
22700 cat confdefs.h >>conftest.$ac_ext
22701 cat >>conftest.$ac_ext <<_ACEOF
22702 /* end confdefs.h. */
22704 /* pthread test headers */
22705 #include <pthread.h>
22706 #if HAVE_PTHREADS < 7
22710 #define NULL (void*)0
22713 static void *task(p)
22716 return (void *) (p == NULL);
22720 int main(argc, argv)
22725 /* pthread test function */
22726 #ifndef PTHREAD_CREATE_DETACHED
22727 #define PTHREAD_CREATE_DETACHED 1
22731 int detach = PTHREAD_CREATE_DETACHED;
22733 #if HAVE_PTHREADS > 4
22734 /* Final pthreads */
22735 pthread_attr_t attr;
22737 status = pthread_attr_init(&attr);
22738 if( status ) return status;
22740 #if HAVE_PTHREADS < 7
22741 status = pthread_attr_setdetachstate(&attr, &detach);
22742 if( status < 0 ) status = errno;
22744 status = pthread_attr_setdetachstate(&attr, detach);
22746 if( status ) return status;
22747 status = pthread_create( &t, &attr, task, NULL );
22748 #if HAVE_PTHREADS < 7
22749 if( status < 0 ) status = errno;
22751 if( status ) return status;
22753 /* Draft 4 pthreads */
22754 status = pthread_create( &t, pthread_attr_default, task, NULL );
22755 if( status ) return errno;
22757 /* give thread a chance to complete */
22758 /* it should remain joinable and hence detachable */
22761 status = pthread_detach( &t );
22762 if( status ) return errno;
22765 #ifdef HAVE_LINUX_THREADS
22766 pthread_kill_other_threads_np();
22774 rm -f conftest$ac_exeext
22775 if { (ac_try="$ac_link"
22776 case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781 (eval "$ac_link") 2>&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22785 { (case "(($ac_try" in
22786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787 *) ac_try_echo=$ac_try;;
22789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790 (eval "$ac_try") 2>&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); }; }; then
22794 ol_cv_pthread_mthreads=yes
22796 echo "$as_me: program exited with status $ac_status" >&5
22797 echo "$as_me: failed program was:" >&5
22798 sed 's/^/| /' conftest.$ac_ext >&5
22800 ( exit $ac_status )
22801 ol_cv_pthread_mthreads=no
22803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22812 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
22813 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
22815 if test $ol_cv_pthread_mthreads = yes ; then
22816 ol_link_pthreads="-mthreads"
22817 ol_link_threads=posix
22821 # Pthread try link: -thread (ol_cv_pthread_thread)
22822 if test "$ol_link_threads" = no ; then
22824 { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
22825 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
22826 if test "${ol_cv_pthread_thread+set}" = set; then
22827 echo $ECHO_N "(cached) $ECHO_C" >&6
22832 LIBS="-thread $LIBS"
22834 if test "$cross_compiling" = yes; then
22835 cat >conftest.$ac_ext <<_ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h. */
22842 /* pthread test headers */
22843 #include <pthread.h>
22844 #if HAVE_PTHREADS < 7
22848 #define NULL (void*)0
22851 static void *task(p)
22854 return (void *) (p == NULL);
22861 /* pthread test function */
22862 #ifndef PTHREAD_CREATE_DETACHED
22863 #define PTHREAD_CREATE_DETACHED 1
22867 int detach = PTHREAD_CREATE_DETACHED;
22869 #if HAVE_PTHREADS > 4
22870 /* Final pthreads */
22871 pthread_attr_t attr;
22873 status = pthread_attr_init(&attr);
22874 if( status ) return status;
22876 #if HAVE_PTHREADS < 7
22877 status = pthread_attr_setdetachstate(&attr, &detach);
22878 if( status < 0 ) status = errno;
22880 status = pthread_attr_setdetachstate(&attr, detach);
22882 if( status ) return status;
22883 status = pthread_create( &t, &attr, task, NULL );
22884 #if HAVE_PTHREADS < 7
22885 if( status < 0 ) status = errno;
22887 if( status ) return status;
22889 /* Draft 4 pthreads */
22890 status = pthread_create( &t, pthread_attr_default, task, NULL );
22891 if( status ) return errno;
22893 /* give thread a chance to complete */
22894 /* it should remain joinable and hence detachable */
22897 status = pthread_detach( &t );
22898 if( status ) return errno;
22901 #ifdef HAVE_LINUX_THREADS
22902 pthread_kill_other_threads_np();
22911 rm -f conftest.$ac_objext conftest$ac_exeext
22912 if { (ac_try="$ac_link"
22913 case "(($ac_try" in
22914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915 *) ac_try_echo=$ac_try;;
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918 (eval "$ac_link") 2>conftest.er1
22920 grep -v '^ *+' conftest.er1 >conftest.err
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } &&
22925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22926 { (case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22931 (eval "$ac_try") 2>&5
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; } &&
22935 { ac_try='test -s conftest$ac_exeext'
22936 { (case "(($ac_try" in
22937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938 *) ac_try_echo=$ac_try;;
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941 (eval "$ac_try") 2>&5
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; }; then
22945 ol_cv_pthread_thread=yes
22947 echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22950 ol_cv_pthread_thread=no
22953 rm -f core conftest.err conftest.$ac_objext \
22954 conftest$ac_exeext conftest.$ac_ext
22956 cat >conftest.$ac_ext <<_ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22963 /* pthread test headers */
22964 #include <pthread.h>
22965 #if HAVE_PTHREADS < 7
22969 #define NULL (void*)0
22972 static void *task(p)
22975 return (void *) (p == NULL);
22979 int main(argc, argv)
22984 /* pthread test function */
22985 #ifndef PTHREAD_CREATE_DETACHED
22986 #define PTHREAD_CREATE_DETACHED 1
22990 int detach = PTHREAD_CREATE_DETACHED;
22992 #if HAVE_PTHREADS > 4
22993 /* Final pthreads */
22994 pthread_attr_t attr;
22996 status = pthread_attr_init(&attr);
22997 if( status ) return status;
22999 #if HAVE_PTHREADS < 7
23000 status = pthread_attr_setdetachstate(&attr, &detach);
23001 if( status < 0 ) status = errno;
23003 status = pthread_attr_setdetachstate(&attr, detach);
23005 if( status ) return status;
23006 status = pthread_create( &t, &attr, task, NULL );
23007 #if HAVE_PTHREADS < 7
23008 if( status < 0 ) status = errno;
23010 if( status ) return status;
23012 /* Draft 4 pthreads */
23013 status = pthread_create( &t, pthread_attr_default, task, NULL );
23014 if( status ) return errno;
23016 /* give thread a chance to complete */
23017 /* it should remain joinable and hence detachable */
23020 status = pthread_detach( &t );
23021 if( status ) return errno;
23024 #ifdef HAVE_LINUX_THREADS
23025 pthread_kill_other_threads_np();
23033 rm -f conftest$ac_exeext
23034 if { (ac_try="$ac_link"
23035 case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040 (eval "$ac_link") 2>&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23044 { (case "(($ac_try" in
23045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23046 *) ac_try_echo=$ac_try;;
23048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23049 (eval "$ac_try") 2>&5
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); }; }; then
23053 ol_cv_pthread_thread=yes
23055 echo "$as_me: program exited with status $ac_status" >&5
23056 echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23059 ( exit $ac_status )
23060 ol_cv_pthread_thread=no
23062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23071 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
23072 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
23074 if test $ol_cv_pthread_thread = yes ; then
23075 ol_link_pthreads="-thread"
23076 ol_link_threads=posix
23081 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
23082 if test "$ol_link_threads" = no ; then
23083 # try -lpthread -lmach -lexc -lc_r
23084 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
23085 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
23086 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
23092 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
23094 if test "$cross_compiling" = yes; then
23095 cat >conftest.$ac_ext <<_ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23102 /* pthread test headers */
23103 #include <pthread.h>
23104 #if HAVE_PTHREADS < 7
23108 #define NULL (void*)0
23111 static void *task(p)
23114 return (void *) (p == NULL);
23121 /* pthread test function */
23122 #ifndef PTHREAD_CREATE_DETACHED
23123 #define PTHREAD_CREATE_DETACHED 1
23127 int detach = PTHREAD_CREATE_DETACHED;
23129 #if HAVE_PTHREADS > 4
23130 /* Final pthreads */
23131 pthread_attr_t attr;
23133 status = pthread_attr_init(&attr);
23134 if( status ) return status;
23136 #if HAVE_PTHREADS < 7
23137 status = pthread_attr_setdetachstate(&attr, &detach);
23138 if( status < 0 ) status = errno;
23140 status = pthread_attr_setdetachstate(&attr, detach);
23142 if( status ) return status;
23143 status = pthread_create( &t, &attr, task, NULL );
23144 #if HAVE_PTHREADS < 7
23145 if( status < 0 ) status = errno;
23147 if( status ) return status;
23149 /* Draft 4 pthreads */
23150 status = pthread_create( &t, pthread_attr_default, task, NULL );
23151 if( status ) return errno;
23153 /* give thread a chance to complete */
23154 /* it should remain joinable and hence detachable */
23157 status = pthread_detach( &t );
23158 if( status ) return errno;
23161 #ifdef HAVE_LINUX_THREADS
23162 pthread_kill_other_threads_np();
23171 rm -f conftest.$ac_objext conftest$ac_exeext
23172 if { (ac_try="$ac_link"
23173 case "(($ac_try" in
23174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23175 *) ac_try_echo=$ac_try;;
23177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23178 (eval "$ac_link") 2>conftest.er1
23180 grep -v '^ *+' conftest.er1 >conftest.err
23182 cat conftest.err >&5
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } &&
23185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23186 { (case "(($ac_try" in
23187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23188 *) ac_try_echo=$ac_try;;
23190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23191 (eval "$ac_try") 2>&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; } &&
23195 { ac_try='test -s conftest$ac_exeext'
23196 { (case "(($ac_try" in
23197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198 *) ac_try_echo=$ac_try;;
23200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23201 (eval "$ac_try") 2>&5
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); }; }; then
23205 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
23207 echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.$ac_ext >&5
23210 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
23213 rm -f core conftest.err conftest.$ac_objext \
23214 conftest$ac_exeext conftest.$ac_ext
23216 cat >conftest.$ac_ext <<_ACEOF
23219 cat confdefs.h >>conftest.$ac_ext
23220 cat >>conftest.$ac_ext <<_ACEOF
23221 /* end confdefs.h. */
23223 /* pthread test headers */
23224 #include <pthread.h>
23225 #if HAVE_PTHREADS < 7
23229 #define NULL (void*)0
23232 static void *task(p)
23235 return (void *) (p == NULL);
23239 int main(argc, argv)
23244 /* pthread test function */
23245 #ifndef PTHREAD_CREATE_DETACHED
23246 #define PTHREAD_CREATE_DETACHED 1
23250 int detach = PTHREAD_CREATE_DETACHED;
23252 #if HAVE_PTHREADS > 4
23253 /* Final pthreads */
23254 pthread_attr_t attr;
23256 status = pthread_attr_init(&attr);
23257 if( status ) return status;
23259 #if HAVE_PTHREADS < 7
23260 status = pthread_attr_setdetachstate(&attr, &detach);
23261 if( status < 0 ) status = errno;
23263 status = pthread_attr_setdetachstate(&attr, detach);
23265 if( status ) return status;
23266 status = pthread_create( &t, &attr, task, NULL );
23267 #if HAVE_PTHREADS < 7
23268 if( status < 0 ) status = errno;
23270 if( status ) return status;
23272 /* Draft 4 pthreads */
23273 status = pthread_create( &t, pthread_attr_default, task, NULL );
23274 if( status ) return errno;
23276 /* give thread a chance to complete */
23277 /* it should remain joinable and hence detachable */
23280 status = pthread_detach( &t );
23281 if( status ) return errno;
23284 #ifdef HAVE_LINUX_THREADS
23285 pthread_kill_other_threads_np();
23293 rm -f conftest$ac_exeext
23294 if { (ac_try="$ac_link"
23295 case "(($ac_try" in
23296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23297 *) ac_try_echo=$ac_try;;
23299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23300 (eval "$ac_link") 2>&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23304 { (case "(($ac_try" in
23305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23306 *) ac_try_echo=$ac_try;;
23308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23309 (eval "$ac_try") 2>&5
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; }; then
23313 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
23315 echo "$as_me: program exited with status $ac_status" >&5
23316 echo "$as_me: failed program was:" >&5
23317 sed 's/^/| /' conftest.$ac_ext >&5
23319 ( exit $ac_status )
23320 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
23322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23331 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
23332 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
23334 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
23335 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
23336 ol_link_threads=posix
23340 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
23341 if test "$ol_link_threads" = no ; then
23342 # try -lpthread -lmach -lexc
23343 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
23344 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
23345 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
23346 echo $ECHO_N "(cached) $ECHO_C" >&6
23351 LIBS="-lpthread -lmach -lexc $LIBS"
23353 if test "$cross_compiling" = yes; then
23354 cat >conftest.$ac_ext <<_ACEOF
23357 cat confdefs.h >>conftest.$ac_ext
23358 cat >>conftest.$ac_ext <<_ACEOF
23359 /* end confdefs.h. */
23361 /* pthread test headers */
23362 #include <pthread.h>
23363 #if HAVE_PTHREADS < 7
23367 #define NULL (void*)0
23370 static void *task(p)
23373 return (void *) (p == NULL);
23380 /* pthread test function */
23381 #ifndef PTHREAD_CREATE_DETACHED
23382 #define PTHREAD_CREATE_DETACHED 1
23386 int detach = PTHREAD_CREATE_DETACHED;
23388 #if HAVE_PTHREADS > 4
23389 /* Final pthreads */
23390 pthread_attr_t attr;
23392 status = pthread_attr_init(&attr);
23393 if( status ) return status;
23395 #if HAVE_PTHREADS < 7
23396 status = pthread_attr_setdetachstate(&attr, &detach);
23397 if( status < 0 ) status = errno;
23399 status = pthread_attr_setdetachstate(&attr, detach);
23401 if( status ) return status;
23402 status = pthread_create( &t, &attr, task, NULL );
23403 #if HAVE_PTHREADS < 7
23404 if( status < 0 ) status = errno;
23406 if( status ) return status;
23408 /* Draft 4 pthreads */
23409 status = pthread_create( &t, pthread_attr_default, task, NULL );
23410 if( status ) return errno;
23412 /* give thread a chance to complete */
23413 /* it should remain joinable and hence detachable */
23416 status = pthread_detach( &t );
23417 if( status ) return errno;
23420 #ifdef HAVE_LINUX_THREADS
23421 pthread_kill_other_threads_np();
23430 rm -f conftest.$ac_objext conftest$ac_exeext
23431 if { (ac_try="$ac_link"
23432 case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_link") 2>conftest.er1
23439 grep -v '^ *+' conftest.er1 >conftest.err
23441 cat conftest.err >&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } &&
23444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23445 { (case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450 (eval "$ac_try") 2>&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); }; } &&
23454 { ac_try='test -s conftest$ac_exeext'
23455 { (case "(($ac_try" in
23456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457 *) ac_try_echo=$ac_try;;
23459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23460 (eval "$ac_try") 2>&5
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); }; }; then
23464 ol_cv_pthread_lpthread_lmach_lexc=yes
23466 echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23469 ol_cv_pthread_lpthread_lmach_lexc=no
23472 rm -f core conftest.err conftest.$ac_objext \
23473 conftest$ac_exeext conftest.$ac_ext
23475 cat >conftest.$ac_ext <<_ACEOF
23478 cat confdefs.h >>conftest.$ac_ext
23479 cat >>conftest.$ac_ext <<_ACEOF
23480 /* end confdefs.h. */
23482 /* pthread test headers */
23483 #include <pthread.h>
23484 #if HAVE_PTHREADS < 7
23488 #define NULL (void*)0
23491 static void *task(p)
23494 return (void *) (p == NULL);
23498 int main(argc, argv)
23503 /* pthread test function */
23504 #ifndef PTHREAD_CREATE_DETACHED
23505 #define PTHREAD_CREATE_DETACHED 1
23509 int detach = PTHREAD_CREATE_DETACHED;
23511 #if HAVE_PTHREADS > 4
23512 /* Final pthreads */
23513 pthread_attr_t attr;
23515 status = pthread_attr_init(&attr);
23516 if( status ) return status;
23518 #if HAVE_PTHREADS < 7
23519 status = pthread_attr_setdetachstate(&attr, &detach);
23520 if( status < 0 ) status = errno;
23522 status = pthread_attr_setdetachstate(&attr, detach);
23524 if( status ) return status;
23525 status = pthread_create( &t, &attr, task, NULL );
23526 #if HAVE_PTHREADS < 7
23527 if( status < 0 ) status = errno;
23529 if( status ) return status;
23531 /* Draft 4 pthreads */
23532 status = pthread_create( &t, pthread_attr_default, task, NULL );
23533 if( status ) return errno;
23535 /* give thread a chance to complete */
23536 /* it should remain joinable and hence detachable */
23539 status = pthread_detach( &t );
23540 if( status ) return errno;
23543 #ifdef HAVE_LINUX_THREADS
23544 pthread_kill_other_threads_np();
23552 rm -f conftest$ac_exeext
23553 if { (ac_try="$ac_link"
23554 case "(($ac_try" in
23555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23556 *) ac_try_echo=$ac_try;;
23558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23559 (eval "$ac_link") 2>&5
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23563 { (case "(($ac_try" in
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565 *) ac_try_echo=$ac_try;;
23567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23568 (eval "$ac_try") 2>&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572 ol_cv_pthread_lpthread_lmach_lexc=yes
23574 echo "$as_me: program exited with status $ac_status" >&5
23575 echo "$as_me: failed program was:" >&5
23576 sed 's/^/| /' conftest.$ac_ext >&5
23578 ( exit $ac_status )
23579 ol_cv_pthread_lpthread_lmach_lexc=no
23581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23590 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
23591 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
23593 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
23594 ol_link_pthreads="-lpthread -lmach -lexc"
23595 ol_link_threads=posix
23600 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
23601 if test "$ol_link_threads" = no ; then
23602 # try -lpthread -Wl,-woff,85
23603 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
23604 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
23605 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
23606 echo $ECHO_N "(cached) $ECHO_C" >&6
23611 LIBS="-lpthread -Wl,-woff,85 $LIBS"
23613 if test "$cross_compiling" = yes; then
23614 cat >conftest.$ac_ext <<_ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h. */
23621 /* pthread test headers */
23622 #include <pthread.h>
23623 #if HAVE_PTHREADS < 7
23627 #define NULL (void*)0
23630 static void *task(p)
23633 return (void *) (p == NULL);
23640 /* pthread test function */
23641 #ifndef PTHREAD_CREATE_DETACHED
23642 #define PTHREAD_CREATE_DETACHED 1
23646 int detach = PTHREAD_CREATE_DETACHED;
23648 #if HAVE_PTHREADS > 4
23649 /* Final pthreads */
23650 pthread_attr_t attr;
23652 status = pthread_attr_init(&attr);
23653 if( status ) return status;
23655 #if HAVE_PTHREADS < 7
23656 status = pthread_attr_setdetachstate(&attr, &detach);
23657 if( status < 0 ) status = errno;
23659 status = pthread_attr_setdetachstate(&attr, detach);
23661 if( status ) return status;
23662 status = pthread_create( &t, &attr, task, NULL );
23663 #if HAVE_PTHREADS < 7
23664 if( status < 0 ) status = errno;
23666 if( status ) return status;
23668 /* Draft 4 pthreads */
23669 status = pthread_create( &t, pthread_attr_default, task, NULL );
23670 if( status ) return errno;
23672 /* give thread a chance to complete */
23673 /* it should remain joinable and hence detachable */
23676 status = pthread_detach( &t );
23677 if( status ) return errno;
23680 #ifdef HAVE_LINUX_THREADS
23681 pthread_kill_other_threads_np();
23690 rm -f conftest.$ac_objext conftest$ac_exeext
23691 if { (ac_try="$ac_link"
23692 case "(($ac_try" in
23693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697 (eval "$ac_link") 2>conftest.er1
23699 grep -v '^ *+' conftest.er1 >conftest.err
23701 cat conftest.err >&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); } &&
23704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23705 { (case "(($ac_try" in
23706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707 *) ac_try_echo=$ac_try;;
23709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23710 (eval "$ac_try") 2>&5
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); }; } &&
23714 { ac_try='test -s conftest$ac_exeext'
23715 { (case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720 (eval "$ac_try") 2>&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); }; }; then
23724 ol_cv_pthread_lib_lpthread_woff=yes
23726 echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.$ac_ext >&5
23729 ol_cv_pthread_lib_lpthread_woff=no
23732 rm -f core conftest.err conftest.$ac_objext \
23733 conftest$ac_exeext conftest.$ac_ext
23735 cat >conftest.$ac_ext <<_ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h. */
23742 /* pthread test headers */
23743 #include <pthread.h>
23744 #if HAVE_PTHREADS < 7
23748 #define NULL (void*)0
23751 static void *task(p)
23754 return (void *) (p == NULL);
23758 int main(argc, argv)
23763 /* pthread test function */
23764 #ifndef PTHREAD_CREATE_DETACHED
23765 #define PTHREAD_CREATE_DETACHED 1
23769 int detach = PTHREAD_CREATE_DETACHED;
23771 #if HAVE_PTHREADS > 4
23772 /* Final pthreads */
23773 pthread_attr_t attr;
23775 status = pthread_attr_init(&attr);
23776 if( status ) return status;
23778 #if HAVE_PTHREADS < 7
23779 status = pthread_attr_setdetachstate(&attr, &detach);
23780 if( status < 0 ) status = errno;
23782 status = pthread_attr_setdetachstate(&attr, detach);
23784 if( status ) return status;
23785 status = pthread_create( &t, &attr, task, NULL );
23786 #if HAVE_PTHREADS < 7
23787 if( status < 0 ) status = errno;
23789 if( status ) return status;
23791 /* Draft 4 pthreads */
23792 status = pthread_create( &t, pthread_attr_default, task, NULL );
23793 if( status ) return errno;
23795 /* give thread a chance to complete */
23796 /* it should remain joinable and hence detachable */
23799 status = pthread_detach( &t );
23800 if( status ) return errno;
23803 #ifdef HAVE_LINUX_THREADS
23804 pthread_kill_other_threads_np();
23812 rm -f conftest$ac_exeext
23813 if { (ac_try="$ac_link"
23814 case "(($ac_try" in
23815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23816 *) ac_try_echo=$ac_try;;
23818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23819 (eval "$ac_link") 2>&5
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23823 { (case "(($ac_try" in
23824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825 *) ac_try_echo=$ac_try;;
23827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23828 (eval "$ac_try") 2>&5
23830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831 (exit $ac_status); }; }; then
23832 ol_cv_pthread_lib_lpthread_woff=yes
23834 echo "$as_me: program exited with status $ac_status" >&5
23835 echo "$as_me: failed program was:" >&5
23836 sed 's/^/| /' conftest.$ac_ext >&5
23838 ( exit $ac_status )
23839 ol_cv_pthread_lib_lpthread_woff=no
23841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23850 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
23851 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
23853 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
23854 ol_link_pthreads="-lpthread -Wl,-woff,85"
23855 ol_link_threads=posix
23860 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
23861 if test "$ol_link_threads" = no ; then
23863 { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
23864 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
23865 if test "${ol_cv_pthread_lpthread+set}" = set; then
23866 echo $ECHO_N "(cached) $ECHO_C" >&6
23871 LIBS="-lpthread $LIBS"
23873 if test "$cross_compiling" = yes; then
23874 cat >conftest.$ac_ext <<_ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h. */
23881 /* pthread test headers */
23882 #include <pthread.h>
23883 #if HAVE_PTHREADS < 7
23887 #define NULL (void*)0
23890 static void *task(p)
23893 return (void *) (p == NULL);
23900 /* pthread test function */
23901 #ifndef PTHREAD_CREATE_DETACHED
23902 #define PTHREAD_CREATE_DETACHED 1
23906 int detach = PTHREAD_CREATE_DETACHED;
23908 #if HAVE_PTHREADS > 4
23909 /* Final pthreads */
23910 pthread_attr_t attr;
23912 status = pthread_attr_init(&attr);
23913 if( status ) return status;
23915 #if HAVE_PTHREADS < 7
23916 status = pthread_attr_setdetachstate(&attr, &detach);
23917 if( status < 0 ) status = errno;
23919 status = pthread_attr_setdetachstate(&attr, detach);
23921 if( status ) return status;
23922 status = pthread_create( &t, &attr, task, NULL );
23923 #if HAVE_PTHREADS < 7
23924 if( status < 0 ) status = errno;
23926 if( status ) return status;
23928 /* Draft 4 pthreads */
23929 status = pthread_create( &t, pthread_attr_default, task, NULL );
23930 if( status ) return errno;
23932 /* give thread a chance to complete */
23933 /* it should remain joinable and hence detachable */
23936 status = pthread_detach( &t );
23937 if( status ) return errno;
23940 #ifdef HAVE_LINUX_THREADS
23941 pthread_kill_other_threads_np();
23950 rm -f conftest.$ac_objext conftest$ac_exeext
23951 if { (ac_try="$ac_link"
23952 case "(($ac_try" in
23953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954 *) ac_try_echo=$ac_try;;
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957 (eval "$ac_link") 2>conftest.er1
23959 grep -v '^ *+' conftest.er1 >conftest.err
23961 cat conftest.err >&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } &&
23964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23965 { (case "(($ac_try" in
23966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23967 *) ac_try_echo=$ac_try;;
23969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23970 (eval "$ac_try") 2>&5
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); }; } &&
23974 { ac_try='test -s conftest$ac_exeext'
23975 { (case "(($ac_try" in
23976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23977 *) ac_try_echo=$ac_try;;
23979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23980 (eval "$ac_try") 2>&5
23982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); }; }; then
23984 ol_cv_pthread_lpthread=yes
23986 echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.$ac_ext >&5
23989 ol_cv_pthread_lpthread=no
23992 rm -f core conftest.err conftest.$ac_objext \
23993 conftest$ac_exeext conftest.$ac_ext
23995 cat >conftest.$ac_ext <<_ACEOF
23998 cat confdefs.h >>conftest.$ac_ext
23999 cat >>conftest.$ac_ext <<_ACEOF
24000 /* end confdefs.h. */
24002 /* pthread test headers */
24003 #include <pthread.h>
24004 #if HAVE_PTHREADS < 7
24008 #define NULL (void*)0
24011 static void *task(p)
24014 return (void *) (p == NULL);
24018 int main(argc, argv)
24023 /* pthread test function */
24024 #ifndef PTHREAD_CREATE_DETACHED
24025 #define PTHREAD_CREATE_DETACHED 1
24029 int detach = PTHREAD_CREATE_DETACHED;
24031 #if HAVE_PTHREADS > 4
24032 /* Final pthreads */
24033 pthread_attr_t attr;
24035 status = pthread_attr_init(&attr);
24036 if( status ) return status;
24038 #if HAVE_PTHREADS < 7
24039 status = pthread_attr_setdetachstate(&attr, &detach);
24040 if( status < 0 ) status = errno;
24042 status = pthread_attr_setdetachstate(&attr, detach);
24044 if( status ) return status;
24045 status = pthread_create( &t, &attr, task, NULL );
24046 #if HAVE_PTHREADS < 7
24047 if( status < 0 ) status = errno;
24049 if( status ) return status;
24051 /* Draft 4 pthreads */
24052 status = pthread_create( &t, pthread_attr_default, task, NULL );
24053 if( status ) return errno;
24055 /* give thread a chance to complete */
24056 /* it should remain joinable and hence detachable */
24059 status = pthread_detach( &t );
24060 if( status ) return errno;
24063 #ifdef HAVE_LINUX_THREADS
24064 pthread_kill_other_threads_np();
24072 rm -f conftest$ac_exeext
24073 if { (ac_try="$ac_link"
24074 case "(($ac_try" in
24075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24076 *) ac_try_echo=$ac_try;;
24078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24079 (eval "$ac_link") 2>&5
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24083 { (case "(($ac_try" in
24084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24085 *) ac_try_echo=$ac_try;;
24087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24088 (eval "$ac_try") 2>&5
24090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); }; }; then
24092 ol_cv_pthread_lpthread=yes
24094 echo "$as_me: program exited with status $ac_status" >&5
24095 echo "$as_me: failed program was:" >&5
24096 sed 's/^/| /' conftest.$ac_ext >&5
24098 ( exit $ac_status )
24099 ol_cv_pthread_lpthread=no
24101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24110 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
24111 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
24113 if test $ol_cv_pthread_lpthread = yes ; then
24114 ol_link_pthreads="-lpthread"
24115 ol_link_threads=posix
24119 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
24120 if test "$ol_link_threads" = no ; then
24122 { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
24123 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
24124 if test "${ol_cv_pthread_lc_r+set}" = set; then
24125 echo $ECHO_N "(cached) $ECHO_C" >&6
24132 if test "$cross_compiling" = yes; then
24133 cat >conftest.$ac_ext <<_ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h. */
24140 /* pthread test headers */
24141 #include <pthread.h>
24142 #if HAVE_PTHREADS < 7
24146 #define NULL (void*)0
24149 static void *task(p)
24152 return (void *) (p == NULL);
24159 /* pthread test function */
24160 #ifndef PTHREAD_CREATE_DETACHED
24161 #define PTHREAD_CREATE_DETACHED 1
24165 int detach = PTHREAD_CREATE_DETACHED;
24167 #if HAVE_PTHREADS > 4
24168 /* Final pthreads */
24169 pthread_attr_t attr;
24171 status = pthread_attr_init(&attr);
24172 if( status ) return status;
24174 #if HAVE_PTHREADS < 7
24175 status = pthread_attr_setdetachstate(&attr, &detach);
24176 if( status < 0 ) status = errno;
24178 status = pthread_attr_setdetachstate(&attr, detach);
24180 if( status ) return status;
24181 status = pthread_create( &t, &attr, task, NULL );
24182 #if HAVE_PTHREADS < 7
24183 if( status < 0 ) status = errno;
24185 if( status ) return status;
24187 /* Draft 4 pthreads */
24188 status = pthread_create( &t, pthread_attr_default, task, NULL );
24189 if( status ) return errno;
24191 /* give thread a chance to complete */
24192 /* it should remain joinable and hence detachable */
24195 status = pthread_detach( &t );
24196 if( status ) return errno;
24199 #ifdef HAVE_LINUX_THREADS
24200 pthread_kill_other_threads_np();
24209 rm -f conftest.$ac_objext conftest$ac_exeext
24210 if { (ac_try="$ac_link"
24211 case "(($ac_try" in
24212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24213 *) ac_try_echo=$ac_try;;
24215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24216 (eval "$ac_link") 2>conftest.er1
24218 grep -v '^ *+' conftest.er1 >conftest.err
24220 cat conftest.err >&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); } &&
24223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24224 { (case "(($ac_try" in
24225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226 *) ac_try_echo=$ac_try;;
24228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24229 (eval "$ac_try") 2>&5
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); }; } &&
24233 { ac_try='test -s conftest$ac_exeext'
24234 { (case "(($ac_try" in
24235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24236 *) ac_try_echo=$ac_try;;
24238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24239 (eval "$ac_try") 2>&5
24241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242 (exit $ac_status); }; }; then
24243 ol_cv_pthread_lc_r=yes
24245 echo "$as_me: failed program was:" >&5
24246 sed 's/^/| /' conftest.$ac_ext >&5
24248 ol_cv_pthread_lc_r=no
24251 rm -f core conftest.err conftest.$ac_objext \
24252 conftest$ac_exeext conftest.$ac_ext
24254 cat >conftest.$ac_ext <<_ACEOF
24257 cat confdefs.h >>conftest.$ac_ext
24258 cat >>conftest.$ac_ext <<_ACEOF
24259 /* end confdefs.h. */
24261 /* pthread test headers */
24262 #include <pthread.h>
24263 #if HAVE_PTHREADS < 7
24267 #define NULL (void*)0
24270 static void *task(p)
24273 return (void *) (p == NULL);
24277 int main(argc, argv)
24282 /* pthread test function */
24283 #ifndef PTHREAD_CREATE_DETACHED
24284 #define PTHREAD_CREATE_DETACHED 1
24288 int detach = PTHREAD_CREATE_DETACHED;
24290 #if HAVE_PTHREADS > 4
24291 /* Final pthreads */
24292 pthread_attr_t attr;
24294 status = pthread_attr_init(&attr);
24295 if( status ) return status;
24297 #if HAVE_PTHREADS < 7
24298 status = pthread_attr_setdetachstate(&attr, &detach);
24299 if( status < 0 ) status = errno;
24301 status = pthread_attr_setdetachstate(&attr, detach);
24303 if( status ) return status;
24304 status = pthread_create( &t, &attr, task, NULL );
24305 #if HAVE_PTHREADS < 7
24306 if( status < 0 ) status = errno;
24308 if( status ) return status;
24310 /* Draft 4 pthreads */
24311 status = pthread_create( &t, pthread_attr_default, task, NULL );
24312 if( status ) return errno;
24314 /* give thread a chance to complete */
24315 /* it should remain joinable and hence detachable */
24318 status = pthread_detach( &t );
24319 if( status ) return errno;
24322 #ifdef HAVE_LINUX_THREADS
24323 pthread_kill_other_threads_np();
24331 rm -f conftest$ac_exeext
24332 if { (ac_try="$ac_link"
24333 case "(($ac_try" in
24334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335 *) ac_try_echo=$ac_try;;
24337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24338 (eval "$ac_link") 2>&5
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24342 { (case "(($ac_try" in
24343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344 *) ac_try_echo=$ac_try;;
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347 (eval "$ac_try") 2>&5
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); }; }; then
24351 ol_cv_pthread_lc_r=yes
24353 echo "$as_me: program exited with status $ac_status" >&5
24354 echo "$as_me: failed program was:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24357 ( exit $ac_status )
24358 ol_cv_pthread_lc_r=no
24360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24369 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
24370 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
24372 if test $ol_cv_pthread_lc_r = yes ; then
24373 ol_link_pthreads="-lc_r"
24374 ol_link_threads=posix
24379 # Pthread try link: -threads (ol_cv_pthread_threads)
24380 if test "$ol_link_threads" = no ; then
24382 { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
24383 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
24384 if test "${ol_cv_pthread_threads+set}" = set; then
24385 echo $ECHO_N "(cached) $ECHO_C" >&6
24390 LIBS="-threads $LIBS"
24392 if test "$cross_compiling" = yes; then
24393 cat >conftest.$ac_ext <<_ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h. */
24400 /* pthread test headers */
24401 #include <pthread.h>
24402 #if HAVE_PTHREADS < 7
24406 #define NULL (void*)0
24409 static void *task(p)
24412 return (void *) (p == NULL);
24419 /* pthread test function */
24420 #ifndef PTHREAD_CREATE_DETACHED
24421 #define PTHREAD_CREATE_DETACHED 1
24425 int detach = PTHREAD_CREATE_DETACHED;
24427 #if HAVE_PTHREADS > 4
24428 /* Final pthreads */
24429 pthread_attr_t attr;
24431 status = pthread_attr_init(&attr);
24432 if( status ) return status;
24434 #if HAVE_PTHREADS < 7
24435 status = pthread_attr_setdetachstate(&attr, &detach);
24436 if( status < 0 ) status = errno;
24438 status = pthread_attr_setdetachstate(&attr, detach);
24440 if( status ) return status;
24441 status = pthread_create( &t, &attr, task, NULL );
24442 #if HAVE_PTHREADS < 7
24443 if( status < 0 ) status = errno;
24445 if( status ) return status;
24447 /* Draft 4 pthreads */
24448 status = pthread_create( &t, pthread_attr_default, task, NULL );
24449 if( status ) return errno;
24451 /* give thread a chance to complete */
24452 /* it should remain joinable and hence detachable */
24455 status = pthread_detach( &t );
24456 if( status ) return errno;
24459 #ifdef HAVE_LINUX_THREADS
24460 pthread_kill_other_threads_np();
24469 rm -f conftest.$ac_objext conftest$ac_exeext
24470 if { (ac_try="$ac_link"
24471 case "(($ac_try" in
24472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24473 *) ac_try_echo=$ac_try;;
24475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24476 (eval "$ac_link") 2>conftest.er1
24478 grep -v '^ *+' conftest.er1 >conftest.err
24480 cat conftest.err >&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); } &&
24483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24484 { (case "(($ac_try" in
24485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486 *) ac_try_echo=$ac_try;;
24488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489 (eval "$ac_try") 2>&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); }; } &&
24493 { ac_try='test -s conftest$ac_exeext'
24494 { (case "(($ac_try" in
24495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496 *) ac_try_echo=$ac_try;;
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499 (eval "$ac_try") 2>&5
24501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502 (exit $ac_status); }; }; then
24503 ol_cv_pthread_threads=yes
24505 echo "$as_me: failed program was:" >&5
24506 sed 's/^/| /' conftest.$ac_ext >&5
24508 ol_cv_pthread_threads=no
24511 rm -f core conftest.err conftest.$ac_objext \
24512 conftest$ac_exeext conftest.$ac_ext
24514 cat >conftest.$ac_ext <<_ACEOF
24517 cat confdefs.h >>conftest.$ac_ext
24518 cat >>conftest.$ac_ext <<_ACEOF
24519 /* end confdefs.h. */
24521 /* pthread test headers */
24522 #include <pthread.h>
24523 #if HAVE_PTHREADS < 7
24527 #define NULL (void*)0
24530 static void *task(p)
24533 return (void *) (p == NULL);
24537 int main(argc, argv)
24542 /* pthread test function */
24543 #ifndef PTHREAD_CREATE_DETACHED
24544 #define PTHREAD_CREATE_DETACHED 1
24548 int detach = PTHREAD_CREATE_DETACHED;
24550 #if HAVE_PTHREADS > 4
24551 /* Final pthreads */
24552 pthread_attr_t attr;
24554 status = pthread_attr_init(&attr);
24555 if( status ) return status;
24557 #if HAVE_PTHREADS < 7
24558 status = pthread_attr_setdetachstate(&attr, &detach);
24559 if( status < 0 ) status = errno;
24561 status = pthread_attr_setdetachstate(&attr, detach);
24563 if( status ) return status;
24564 status = pthread_create( &t, &attr, task, NULL );
24565 #if HAVE_PTHREADS < 7
24566 if( status < 0 ) status = errno;
24568 if( status ) return status;
24570 /* Draft 4 pthreads */
24571 status = pthread_create( &t, pthread_attr_default, task, NULL );
24572 if( status ) return errno;
24574 /* give thread a chance to complete */
24575 /* it should remain joinable and hence detachable */
24578 status = pthread_detach( &t );
24579 if( status ) return errno;
24582 #ifdef HAVE_LINUX_THREADS
24583 pthread_kill_other_threads_np();
24591 rm -f conftest$ac_exeext
24592 if { (ac_try="$ac_link"
24593 case "(($ac_try" in
24594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24595 *) ac_try_echo=$ac_try;;
24597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24598 (eval "$ac_link") 2>&5
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24602 { (case "(($ac_try" in
24603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24604 *) ac_try_echo=$ac_try;;
24606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24607 (eval "$ac_try") 2>&5
24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); }; }; then
24611 ol_cv_pthread_threads=yes
24613 echo "$as_me: program exited with status $ac_status" >&5
24614 echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24617 ( exit $ac_status )
24618 ol_cv_pthread_threads=no
24620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24629 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
24630 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
24632 if test $ol_cv_pthread_threads = yes ; then
24633 ol_link_pthreads="-threads"
24634 ol_link_threads=posix
24639 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
24640 if test "$ol_link_threads" = no ; then
24641 # try -lpthreads -lmach -lexc -lc_r
24642 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
24643 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
24644 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
24645 echo $ECHO_N "(cached) $ECHO_C" >&6
24650 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
24652 if test "$cross_compiling" = yes; then
24653 cat >conftest.$ac_ext <<_ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h. */
24660 /* pthread test headers */
24661 #include <pthread.h>
24662 #if HAVE_PTHREADS < 7
24666 #define NULL (void*)0
24669 static void *task(p)
24672 return (void *) (p == NULL);
24679 /* pthread test function */
24680 #ifndef PTHREAD_CREATE_DETACHED
24681 #define PTHREAD_CREATE_DETACHED 1
24685 int detach = PTHREAD_CREATE_DETACHED;
24687 #if HAVE_PTHREADS > 4
24688 /* Final pthreads */
24689 pthread_attr_t attr;
24691 status = pthread_attr_init(&attr);
24692 if( status ) return status;
24694 #if HAVE_PTHREADS < 7
24695 status = pthread_attr_setdetachstate(&attr, &detach);
24696 if( status < 0 ) status = errno;
24698 status = pthread_attr_setdetachstate(&attr, detach);
24700 if( status ) return status;
24701 status = pthread_create( &t, &attr, task, NULL );
24702 #if HAVE_PTHREADS < 7
24703 if( status < 0 ) status = errno;
24705 if( status ) return status;
24707 /* Draft 4 pthreads */
24708 status = pthread_create( &t, pthread_attr_default, task, NULL );
24709 if( status ) return errno;
24711 /* give thread a chance to complete */
24712 /* it should remain joinable and hence detachable */
24715 status = pthread_detach( &t );
24716 if( status ) return errno;
24719 #ifdef HAVE_LINUX_THREADS
24720 pthread_kill_other_threads_np();
24729 rm -f conftest.$ac_objext conftest$ac_exeext
24730 if { (ac_try="$ac_link"
24731 case "(($ac_try" in
24732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24733 *) ac_try_echo=$ac_try;;
24735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24736 (eval "$ac_link") 2>conftest.er1
24738 grep -v '^ *+' conftest.er1 >conftest.err
24740 cat conftest.err >&5
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); } &&
24743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24744 { (case "(($ac_try" in
24745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24746 *) ac_try_echo=$ac_try;;
24748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24749 (eval "$ac_try") 2>&5
24751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752 (exit $ac_status); }; } &&
24753 { ac_try='test -s conftest$ac_exeext'
24754 { (case "(($ac_try" in
24755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24756 *) ac_try_echo=$ac_try;;
24758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24759 (eval "$ac_try") 2>&5
24761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); }; }; then
24763 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
24765 echo "$as_me: failed program was:" >&5
24766 sed 's/^/| /' conftest.$ac_ext >&5
24768 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
24771 rm -f core conftest.err conftest.$ac_objext \
24772 conftest$ac_exeext conftest.$ac_ext
24774 cat >conftest.$ac_ext <<_ACEOF
24777 cat confdefs.h >>conftest.$ac_ext
24778 cat >>conftest.$ac_ext <<_ACEOF
24779 /* end confdefs.h. */
24781 /* pthread test headers */
24782 #include <pthread.h>
24783 #if HAVE_PTHREADS < 7
24787 #define NULL (void*)0
24790 static void *task(p)
24793 return (void *) (p == NULL);
24797 int main(argc, argv)
24802 /* pthread test function */
24803 #ifndef PTHREAD_CREATE_DETACHED
24804 #define PTHREAD_CREATE_DETACHED 1
24808 int detach = PTHREAD_CREATE_DETACHED;
24810 #if HAVE_PTHREADS > 4
24811 /* Final pthreads */
24812 pthread_attr_t attr;
24814 status = pthread_attr_init(&attr);
24815 if( status ) return status;
24817 #if HAVE_PTHREADS < 7
24818 status = pthread_attr_setdetachstate(&attr, &detach);
24819 if( status < 0 ) status = errno;
24821 status = pthread_attr_setdetachstate(&attr, detach);
24823 if( status ) return status;
24824 status = pthread_create( &t, &attr, task, NULL );
24825 #if HAVE_PTHREADS < 7
24826 if( status < 0 ) status = errno;
24828 if( status ) return status;
24830 /* Draft 4 pthreads */
24831 status = pthread_create( &t, pthread_attr_default, task, NULL );
24832 if( status ) return errno;
24834 /* give thread a chance to complete */
24835 /* it should remain joinable and hence detachable */
24838 status = pthread_detach( &t );
24839 if( status ) return errno;
24842 #ifdef HAVE_LINUX_THREADS
24843 pthread_kill_other_threads_np();
24851 rm -f conftest$ac_exeext
24852 if { (ac_try="$ac_link"
24853 case "(($ac_try" in
24854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24855 *) ac_try_echo=$ac_try;;
24857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24858 (eval "$ac_link") 2>&5
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24862 { (case "(($ac_try" in
24863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864 *) ac_try_echo=$ac_try;;
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867 (eval "$ac_try") 2>&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); }; }; then
24871 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
24873 echo "$as_me: program exited with status $ac_status" >&5
24874 echo "$as_me: failed program was:" >&5
24875 sed 's/^/| /' conftest.$ac_ext >&5
24877 ( exit $ac_status )
24878 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
24880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24889 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
24890 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
24892 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
24893 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
24894 ol_link_threads=posix
24898 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
24899 if test "$ol_link_threads" = no ; then
24900 # try -lpthreads -lmach -lexc
24901 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
24902 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
24903 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
24904 echo $ECHO_N "(cached) $ECHO_C" >&6
24909 LIBS="-lpthreads -lmach -lexc $LIBS"
24911 if test "$cross_compiling" = yes; then
24912 cat >conftest.$ac_ext <<_ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h. */
24919 /* pthread test headers */
24920 #include <pthread.h>
24921 #if HAVE_PTHREADS < 7
24925 #define NULL (void*)0
24928 static void *task(p)
24931 return (void *) (p == NULL);
24938 /* pthread test function */
24939 #ifndef PTHREAD_CREATE_DETACHED
24940 #define PTHREAD_CREATE_DETACHED 1
24944 int detach = PTHREAD_CREATE_DETACHED;
24946 #if HAVE_PTHREADS > 4
24947 /* Final pthreads */
24948 pthread_attr_t attr;
24950 status = pthread_attr_init(&attr);
24951 if( status ) return status;
24953 #if HAVE_PTHREADS < 7
24954 status = pthread_attr_setdetachstate(&attr, &detach);
24955 if( status < 0 ) status = errno;
24957 status = pthread_attr_setdetachstate(&attr, detach);
24959 if( status ) return status;
24960 status = pthread_create( &t, &attr, task, NULL );
24961 #if HAVE_PTHREADS < 7
24962 if( status < 0 ) status = errno;
24964 if( status ) return status;
24966 /* Draft 4 pthreads */
24967 status = pthread_create( &t, pthread_attr_default, task, NULL );
24968 if( status ) return errno;
24970 /* give thread a chance to complete */
24971 /* it should remain joinable and hence detachable */
24974 status = pthread_detach( &t );
24975 if( status ) return errno;
24978 #ifdef HAVE_LINUX_THREADS
24979 pthread_kill_other_threads_np();
24988 rm -f conftest.$ac_objext conftest$ac_exeext
24989 if { (ac_try="$ac_link"
24990 case "(($ac_try" in
24991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24992 *) ac_try_echo=$ac_try;;
24994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24995 (eval "$ac_link") 2>conftest.er1
24997 grep -v '^ *+' conftest.er1 >conftest.err
24999 cat conftest.err >&5
25000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); } &&
25002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25003 { (case "(($ac_try" in
25004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25005 *) ac_try_echo=$ac_try;;
25007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25008 (eval "$ac_try") 2>&5
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); }; } &&
25012 { ac_try='test -s conftest$ac_exeext'
25013 { (case "(($ac_try" in
25014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25015 *) ac_try_echo=$ac_try;;
25017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25018 (eval "$ac_try") 2>&5
25020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021 (exit $ac_status); }; }; then
25022 ol_cv_pthread_lpthreads_lmach_lexc=yes
25024 echo "$as_me: failed program was:" >&5
25025 sed 's/^/| /' conftest.$ac_ext >&5
25027 ol_cv_pthread_lpthreads_lmach_lexc=no
25030 rm -f core conftest.err conftest.$ac_objext \
25031 conftest$ac_exeext conftest.$ac_ext
25033 cat >conftest.$ac_ext <<_ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h. */
25040 /* pthread test headers */
25041 #include <pthread.h>
25042 #if HAVE_PTHREADS < 7
25046 #define NULL (void*)0
25049 static void *task(p)
25052 return (void *) (p == NULL);
25056 int main(argc, argv)
25061 /* pthread test function */
25062 #ifndef PTHREAD_CREATE_DETACHED
25063 #define PTHREAD_CREATE_DETACHED 1
25067 int detach = PTHREAD_CREATE_DETACHED;
25069 #if HAVE_PTHREADS > 4
25070 /* Final pthreads */
25071 pthread_attr_t attr;
25073 status = pthread_attr_init(&attr);
25074 if( status ) return status;
25076 #if HAVE_PTHREADS < 7
25077 status = pthread_attr_setdetachstate(&attr, &detach);
25078 if( status < 0 ) status = errno;
25080 status = pthread_attr_setdetachstate(&attr, detach);
25082 if( status ) return status;
25083 status = pthread_create( &t, &attr, task, NULL );
25084 #if HAVE_PTHREADS < 7
25085 if( status < 0 ) status = errno;
25087 if( status ) return status;
25089 /* Draft 4 pthreads */
25090 status = pthread_create( &t, pthread_attr_default, task, NULL );
25091 if( status ) return errno;
25093 /* give thread a chance to complete */
25094 /* it should remain joinable and hence detachable */
25097 status = pthread_detach( &t );
25098 if( status ) return errno;
25101 #ifdef HAVE_LINUX_THREADS
25102 pthread_kill_other_threads_np();
25110 rm -f conftest$ac_exeext
25111 if { (ac_try="$ac_link"
25112 case "(($ac_try" in
25113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25114 *) ac_try_echo=$ac_try;;
25116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25117 (eval "$ac_link") 2>&5
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25121 { (case "(($ac_try" in
25122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25123 *) ac_try_echo=$ac_try;;
25125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25126 (eval "$ac_try") 2>&5
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); }; }; then
25130 ol_cv_pthread_lpthreads_lmach_lexc=yes
25132 echo "$as_me: program exited with status $ac_status" >&5
25133 echo "$as_me: failed program was:" >&5
25134 sed 's/^/| /' conftest.$ac_ext >&5
25136 ( exit $ac_status )
25137 ol_cv_pthread_lpthreads_lmach_lexc=no
25139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25148 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
25149 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
25151 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
25152 ol_link_pthreads="-lpthreads -lmach -lexc"
25153 ol_link_threads=posix
25157 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
25158 if test "$ol_link_threads" = no ; then
25159 # try -lpthreads -lexc
25160 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
25161 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
25162 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
25163 echo $ECHO_N "(cached) $ECHO_C" >&6
25168 LIBS="-lpthreads -lexc $LIBS"
25170 if test "$cross_compiling" = yes; then
25171 cat >conftest.$ac_ext <<_ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h. */
25178 /* pthread test headers */
25179 #include <pthread.h>
25180 #if HAVE_PTHREADS < 7
25184 #define NULL (void*)0
25187 static void *task(p)
25190 return (void *) (p == NULL);
25197 /* pthread test function */
25198 #ifndef PTHREAD_CREATE_DETACHED
25199 #define PTHREAD_CREATE_DETACHED 1
25203 int detach = PTHREAD_CREATE_DETACHED;
25205 #if HAVE_PTHREADS > 4
25206 /* Final pthreads */
25207 pthread_attr_t attr;
25209 status = pthread_attr_init(&attr);
25210 if( status ) return status;
25212 #if HAVE_PTHREADS < 7
25213 status = pthread_attr_setdetachstate(&attr, &detach);
25214 if( status < 0 ) status = errno;
25216 status = pthread_attr_setdetachstate(&attr, detach);
25218 if( status ) return status;
25219 status = pthread_create( &t, &attr, task, NULL );
25220 #if HAVE_PTHREADS < 7
25221 if( status < 0 ) status = errno;
25223 if( status ) return status;
25225 /* Draft 4 pthreads */
25226 status = pthread_create( &t, pthread_attr_default, task, NULL );
25227 if( status ) return errno;
25229 /* give thread a chance to complete */
25230 /* it should remain joinable and hence detachable */
25233 status = pthread_detach( &t );
25234 if( status ) return errno;
25237 #ifdef HAVE_LINUX_THREADS
25238 pthread_kill_other_threads_np();
25247 rm -f conftest.$ac_objext conftest$ac_exeext
25248 if { (ac_try="$ac_link"
25249 case "(($ac_try" in
25250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251 *) ac_try_echo=$ac_try;;
25253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25254 (eval "$ac_link") 2>conftest.er1
25256 grep -v '^ *+' conftest.er1 >conftest.err
25258 cat conftest.err >&5
25259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); } &&
25261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25262 { (case "(($ac_try" in
25263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25264 *) ac_try_echo=$ac_try;;
25266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25267 (eval "$ac_try") 2>&5
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); }; } &&
25271 { ac_try='test -s conftest$ac_exeext'
25272 { (case "(($ac_try" in
25273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25274 *) ac_try_echo=$ac_try;;
25276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25277 (eval "$ac_try") 2>&5
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); }; }; then
25281 ol_cv_pthread_lpthreads_lexc=yes
25283 echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.$ac_ext >&5
25286 ol_cv_pthread_lpthreads_lexc=no
25289 rm -f core conftest.err conftest.$ac_objext \
25290 conftest$ac_exeext conftest.$ac_ext
25292 cat >conftest.$ac_ext <<_ACEOF
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h. */
25299 /* pthread test headers */
25300 #include <pthread.h>
25301 #if HAVE_PTHREADS < 7
25305 #define NULL (void*)0
25308 static void *task(p)
25311 return (void *) (p == NULL);
25315 int main(argc, argv)
25320 /* pthread test function */
25321 #ifndef PTHREAD_CREATE_DETACHED
25322 #define PTHREAD_CREATE_DETACHED 1
25326 int detach = PTHREAD_CREATE_DETACHED;
25328 #if HAVE_PTHREADS > 4
25329 /* Final pthreads */
25330 pthread_attr_t attr;
25332 status = pthread_attr_init(&attr);
25333 if( status ) return status;
25335 #if HAVE_PTHREADS < 7
25336 status = pthread_attr_setdetachstate(&attr, &detach);
25337 if( status < 0 ) status = errno;
25339 status = pthread_attr_setdetachstate(&attr, detach);
25341 if( status ) return status;
25342 status = pthread_create( &t, &attr, task, NULL );
25343 #if HAVE_PTHREADS < 7
25344 if( status < 0 ) status = errno;
25346 if( status ) return status;
25348 /* Draft 4 pthreads */
25349 status = pthread_create( &t, pthread_attr_default, task, NULL );
25350 if( status ) return errno;
25352 /* give thread a chance to complete */
25353 /* it should remain joinable and hence detachable */
25356 status = pthread_detach( &t );
25357 if( status ) return errno;
25360 #ifdef HAVE_LINUX_THREADS
25361 pthread_kill_other_threads_np();
25369 rm -f conftest$ac_exeext
25370 if { (ac_try="$ac_link"
25371 case "(($ac_try" in
25372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25373 *) ac_try_echo=$ac_try;;
25375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25376 (eval "$ac_link") 2>&5
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25380 { (case "(($ac_try" in
25381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25382 *) ac_try_echo=$ac_try;;
25384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25385 (eval "$ac_try") 2>&5
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); }; }; then
25389 ol_cv_pthread_lpthreads_lexc=yes
25391 echo "$as_me: program exited with status $ac_status" >&5
25392 echo "$as_me: failed program was:" >&5
25393 sed 's/^/| /' conftest.$ac_ext >&5
25395 ( exit $ac_status )
25396 ol_cv_pthread_lpthreads_lexc=no
25398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25407 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
25408 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
25410 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
25411 ol_link_pthreads="-lpthreads -lexc"
25412 ol_link_threads=posix
25417 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
25418 if test "$ol_link_threads" = no ; then
25420 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
25421 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
25422 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
25423 echo $ECHO_N "(cached) $ECHO_C" >&6
25428 LIBS="-lpthreads $LIBS"
25430 if test "$cross_compiling" = yes; then
25431 cat >conftest.$ac_ext <<_ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h. */
25438 /* pthread test headers */
25439 #include <pthread.h>
25440 #if HAVE_PTHREADS < 7
25444 #define NULL (void*)0
25447 static void *task(p)
25450 return (void *) (p == NULL);
25457 /* pthread test function */
25458 #ifndef PTHREAD_CREATE_DETACHED
25459 #define PTHREAD_CREATE_DETACHED 1
25463 int detach = PTHREAD_CREATE_DETACHED;
25465 #if HAVE_PTHREADS > 4
25466 /* Final pthreads */
25467 pthread_attr_t attr;
25469 status = pthread_attr_init(&attr);
25470 if( status ) return status;
25472 #if HAVE_PTHREADS < 7
25473 status = pthread_attr_setdetachstate(&attr, &detach);
25474 if( status < 0 ) status = errno;
25476 status = pthread_attr_setdetachstate(&attr, detach);
25478 if( status ) return status;
25479 status = pthread_create( &t, &attr, task, NULL );
25480 #if HAVE_PTHREADS < 7
25481 if( status < 0 ) status = errno;
25483 if( status ) return status;
25485 /* Draft 4 pthreads */
25486 status = pthread_create( &t, pthread_attr_default, task, NULL );
25487 if( status ) return errno;
25489 /* give thread a chance to complete */
25490 /* it should remain joinable and hence detachable */
25493 status = pthread_detach( &t );
25494 if( status ) return errno;
25497 #ifdef HAVE_LINUX_THREADS
25498 pthread_kill_other_threads_np();
25507 rm -f conftest.$ac_objext conftest$ac_exeext
25508 if { (ac_try="$ac_link"
25509 case "(($ac_try" in
25510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25511 *) ac_try_echo=$ac_try;;
25513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25514 (eval "$ac_link") 2>conftest.er1
25516 grep -v '^ *+' conftest.er1 >conftest.err
25518 cat conftest.err >&5
25519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520 (exit $ac_status); } &&
25521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25522 { (case "(($ac_try" in
25523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524 *) ac_try_echo=$ac_try;;
25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527 (eval "$ac_try") 2>&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }; } &&
25531 { ac_try='test -s conftest$ac_exeext'
25532 { (case "(($ac_try" in
25533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25534 *) ac_try_echo=$ac_try;;
25536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25537 (eval "$ac_try") 2>&5
25539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540 (exit $ac_status); }; }; then
25541 ol_cv_pthread_lib_lpthreads=yes
25543 echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25546 ol_cv_pthread_lib_lpthreads=no
25549 rm -f core conftest.err conftest.$ac_objext \
25550 conftest$ac_exeext conftest.$ac_ext
25552 cat >conftest.$ac_ext <<_ACEOF
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h. */
25559 /* pthread test headers */
25560 #include <pthread.h>
25561 #if HAVE_PTHREADS < 7
25565 #define NULL (void*)0
25568 static void *task(p)
25571 return (void *) (p == NULL);
25575 int main(argc, argv)
25580 /* pthread test function */
25581 #ifndef PTHREAD_CREATE_DETACHED
25582 #define PTHREAD_CREATE_DETACHED 1
25586 int detach = PTHREAD_CREATE_DETACHED;
25588 #if HAVE_PTHREADS > 4
25589 /* Final pthreads */
25590 pthread_attr_t attr;
25592 status = pthread_attr_init(&attr);
25593 if( status ) return status;
25595 #if HAVE_PTHREADS < 7
25596 status = pthread_attr_setdetachstate(&attr, &detach);
25597 if( status < 0 ) status = errno;
25599 status = pthread_attr_setdetachstate(&attr, detach);
25601 if( status ) return status;
25602 status = pthread_create( &t, &attr, task, NULL );
25603 #if HAVE_PTHREADS < 7
25604 if( status < 0 ) status = errno;
25606 if( status ) return status;
25608 /* Draft 4 pthreads */
25609 status = pthread_create( &t, pthread_attr_default, task, NULL );
25610 if( status ) return errno;
25612 /* give thread a chance to complete */
25613 /* it should remain joinable and hence detachable */
25616 status = pthread_detach( &t );
25617 if( status ) return errno;
25620 #ifdef HAVE_LINUX_THREADS
25621 pthread_kill_other_threads_np();
25629 rm -f conftest$ac_exeext
25630 if { (ac_try="$ac_link"
25631 case "(($ac_try" in
25632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25633 *) ac_try_echo=$ac_try;;
25635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25636 (eval "$ac_link") 2>&5
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25640 { (case "(($ac_try" in
25641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642 *) ac_try_echo=$ac_try;;
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645 (eval "$ac_try") 2>&5
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); }; }; then
25649 ol_cv_pthread_lib_lpthreads=yes
25651 echo "$as_me: program exited with status $ac_status" >&5
25652 echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25655 ( exit $ac_status )
25656 ol_cv_pthread_lib_lpthreads=no
25658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25667 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
25668 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
25670 if test $ol_cv_pthread_lib_lpthreads = yes ; then
25671 ol_link_pthreads="-lpthreads"
25672 ol_link_threads=posix
25677 if test $ol_link_threads != no ; then
25678 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
25680 save_CPPFLAGS="$CPPFLAGS"
25682 LIBS="$LTHREAD_LIBS $LIBS"
25687 for ac_func in sched_yield pthread_yield thr_yield
25689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25693 echo $ECHO_N "(cached) $ECHO_C" >&6
25695 cat >conftest.$ac_ext <<_ACEOF
25698 cat confdefs.h >>conftest.$ac_ext
25699 cat >>conftest.$ac_ext <<_ACEOF
25700 /* end confdefs.h. */
25701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25703 #define $ac_func innocuous_$ac_func
25705 /* System header to define __stub macros and hopefully few prototypes,
25706 which can conflict with char $ac_func (); below.
25707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25708 <limits.h> exists even on freestanding compilers. */
25711 # include <limits.h>
25713 # include <assert.h>
25718 /* Override any GCC internal prototype to avoid an error.
25719 Use char because int might match the return type of a GCC
25720 builtin and then its argument prototype would still apply. */
25725 /* The GNU C library defines this for functions which it implements
25726 to always fail with ENOSYS. Some functions are actually named
25727 something starting with __ and the normal name is an alias. */
25728 #if defined __stub_$ac_func || defined __stub___$ac_func
25735 return $ac_func ();
25740 rm -f conftest.$ac_objext conftest$ac_exeext
25741 if { (ac_try="$ac_link"
25742 case "(($ac_try" in
25743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25744 *) ac_try_echo=$ac_try;;
25746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25747 (eval "$ac_link") 2>conftest.er1
25749 grep -v '^ *+' conftest.er1 >conftest.err
25751 cat conftest.err >&5
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } &&
25754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25755 { (case "(($ac_try" in
25756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25757 *) ac_try_echo=$ac_try;;
25759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25760 (eval "$ac_try") 2>&5
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); }; } &&
25764 { ac_try='test -s conftest$ac_exeext'
25765 { (case "(($ac_try" in
25766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25767 *) ac_try_echo=$ac_try;;
25769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25770 (eval "$ac_try") 2>&5
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); }; }; then
25774 eval "$as_ac_var=yes"
25776 echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25779 eval "$as_ac_var=no"
25782 rm -f core conftest.err conftest.$ac_objext \
25783 conftest$ac_exeext conftest.$ac_ext
25785 ac_res=`eval echo '${'$as_ac_var'}'`
25786 { echo "$as_me:$LINENO: result: $ac_res" >&5
25787 echo "${ECHO_T}$ac_res" >&6; }
25788 if test `eval echo '${'$as_ac_var'}'` = yes; then
25789 cat >>confdefs.h <<_ACEOF
25790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25797 if test $ac_cv_func_sched_yield = no &&
25798 test $ac_cv_func_pthread_yield = no &&
25799 test $ac_cv_func_thr_yield = no ; then
25800 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
25801 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
25802 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
25803 echo $ECHO_N "(cached) $ECHO_C" >&6
25805 ac_check_lib_save_LIBS=$LIBS
25807 cat >conftest.$ac_ext <<_ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h. */
25814 /* Override any GCC internal prototype to avoid an error.
25815 Use char because int might match the return type of a GCC
25816 builtin and then its argument prototype would still apply. */
25820 char sched_yield ();
25824 return sched_yield ();
25829 rm -f conftest.$ac_objext conftest$ac_exeext
25830 if { (ac_try="$ac_link"
25831 case "(($ac_try" in
25832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25833 *) ac_try_echo=$ac_try;;
25835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25836 (eval "$ac_link") 2>conftest.er1
25838 grep -v '^ *+' conftest.er1 >conftest.err
25840 cat conftest.err >&5
25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); } &&
25843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25844 { (case "(($ac_try" in
25845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25846 *) ac_try_echo=$ac_try;;
25848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25849 (eval "$ac_try") 2>&5
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; } &&
25853 { ac_try='test -s conftest$ac_exeext'
25854 { (case "(($ac_try" in
25855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25856 *) ac_try_echo=$ac_try;;
25858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25859 (eval "$ac_try") 2>&5
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); }; }; then
25863 ac_cv_lib_rt_sched_yield=yes
25865 echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25868 ac_cv_lib_rt_sched_yield=no
25871 rm -f core conftest.err conftest.$ac_objext \
25872 conftest$ac_exeext conftest.$ac_ext
25873 LIBS=$ac_check_lib_save_LIBS
25875 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
25876 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
25877 if test $ac_cv_lib_rt_sched_yield = yes; then
25878 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
25880 cat >>confdefs.h <<\_ACEOF
25881 #define HAVE_SCHED_YIELD 1
25884 ac_cv_func_sched_yield=yes
25886 ac_cv_func_sched_yield=no
25890 if test $ac_cv_func_sched_yield = no &&
25891 test $ac_cv_func_pthread_yield = no &&
25892 test "$ac_cv_func_thr_yield" = no ; then
25893 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
25894 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
25898 for ac_func in pthread_kill
25900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25904 echo $ECHO_N "(cached) $ECHO_C" >&6
25906 cat >conftest.$ac_ext <<_ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h. */
25912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25914 #define $ac_func innocuous_$ac_func
25916 /* System header to define __stub macros and hopefully few prototypes,
25917 which can conflict with char $ac_func (); below.
25918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25919 <limits.h> exists even on freestanding compilers. */
25922 # include <limits.h>
25924 # include <assert.h>
25929 /* Override any GCC internal prototype to avoid an error.
25930 Use char because int might match the return type of a GCC
25931 builtin and then its argument prototype would still apply. */
25936 /* The GNU C library defines this for functions which it implements
25937 to always fail with ENOSYS. Some functions are actually named
25938 something starting with __ and the normal name is an alias. */
25939 #if defined __stub_$ac_func || defined __stub___$ac_func
25946 return $ac_func ();
25951 rm -f conftest.$ac_objext conftest$ac_exeext
25952 if { (ac_try="$ac_link"
25953 case "(($ac_try" in
25954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955 *) ac_try_echo=$ac_try;;
25957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25958 (eval "$ac_link") 2>conftest.er1
25960 grep -v '^ *+' conftest.er1 >conftest.err
25962 cat conftest.err >&5
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); } &&
25965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25966 { (case "(($ac_try" in
25967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25968 *) ac_try_echo=$ac_try;;
25970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25971 (eval "$ac_try") 2>&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; } &&
25975 { ac_try='test -s conftest$ac_exeext'
25976 { (case "(($ac_try" in
25977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25978 *) ac_try_echo=$ac_try;;
25980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25981 (eval "$ac_try") 2>&5
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); }; }; then
25985 eval "$as_ac_var=yes"
25987 echo "$as_me: failed program was:" >&5
25988 sed 's/^/| /' conftest.$ac_ext >&5
25990 eval "$as_ac_var=no"
25993 rm -f core conftest.err conftest.$ac_objext \
25994 conftest$ac_exeext conftest.$ac_ext
25996 ac_res=`eval echo '${'$as_ac_var'}'`
25997 { echo "$as_me:$LINENO: result: $ac_res" >&5
25998 echo "${ECHO_T}$ac_res" >&6; }
25999 if test `eval echo '${'$as_ac_var'}'` = yes; then
26000 cat >>confdefs.h <<_ACEOF
26001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26008 { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
26009 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
26010 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
26011 echo $ECHO_N "(cached) $ECHO_C" >&6
26014 cat >conftest.$ac_ext <<_ACEOF
26017 cat confdefs.h >>conftest.$ac_ext
26018 cat >>conftest.$ac_ext <<_ACEOF
26019 /* end confdefs.h. */
26021 #include <pthread.h>
26022 pthread_rwlock_t rwlock;
26027 pthread_rwlock_destroy(&rwlock);
26032 rm -f conftest.$ac_objext conftest$ac_exeext
26033 if { (ac_try="$ac_link"
26034 case "(($ac_try" in
26035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036 *) ac_try_echo=$ac_try;;
26038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26039 (eval "$ac_link") 2>conftest.er1
26041 grep -v '^ *+' conftest.er1 >conftest.err
26043 cat conftest.err >&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); } &&
26046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26047 { (case "(($ac_try" in
26048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26049 *) ac_try_echo=$ac_try;;
26051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26052 (eval "$ac_try") 2>&5
26054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055 (exit $ac_status); }; } &&
26056 { ac_try='test -s conftest$ac_exeext'
26057 { (case "(($ac_try" in
26058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26059 *) ac_try_echo=$ac_try;;
26061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26062 (eval "$ac_try") 2>&5
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); }; }; then
26066 ol_cv_func_pthread_rwlock_destroy=yes
26068 echo "$as_me: failed program was:" >&5
26069 sed 's/^/| /' conftest.$ac_ext >&5
26071 ol_cv_func_pthread_rwlock_destroy=no
26074 rm -f core conftest.err conftest.$ac_objext \
26075 conftest$ac_exeext conftest.$ac_ext
26078 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
26079 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
26080 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
26082 cat >>confdefs.h <<\_ACEOF
26083 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
26088 { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
26089 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
26090 if test "${ol_cv_func_pthread_detach+set}" = set; then
26091 echo $ECHO_N "(cached) $ECHO_C" >&6
26094 cat >conftest.$ac_ext <<_ACEOF
26097 cat confdefs.h >>conftest.$ac_ext
26098 cat >>conftest.$ac_ext <<_ACEOF
26099 /* end confdefs.h. */
26101 #include <pthread.h>
26103 #define NULL (void*)0
26109 pthread_detach(NULL);
26114 rm -f conftest.$ac_objext conftest$ac_exeext
26115 if { (ac_try="$ac_link"
26116 case "(($ac_try" in
26117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26118 *) ac_try_echo=$ac_try;;
26120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26121 (eval "$ac_link") 2>conftest.er1
26123 grep -v '^ *+' conftest.er1 >conftest.err
26125 cat conftest.err >&5
26126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127 (exit $ac_status); } &&
26128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26129 { (case "(($ac_try" in
26130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26131 *) ac_try_echo=$ac_try;;
26133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26134 (eval "$ac_try") 2>&5
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); }; } &&
26138 { ac_try='test -s conftest$ac_exeext'
26139 { (case "(($ac_try" in
26140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26141 *) ac_try_echo=$ac_try;;
26143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26144 (eval "$ac_try") 2>&5
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); }; }; then
26148 ol_cv_func_pthread_detach=yes
26150 echo "$as_me: failed program was:" >&5
26151 sed 's/^/| /' conftest.$ac_ext >&5
26153 ol_cv_func_pthread_detach=no
26156 rm -f core conftest.err conftest.$ac_objext \
26157 conftest$ac_exeext conftest.$ac_ext
26160 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
26161 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
26163 if test $ol_cv_func_pthread_detach = no ; then
26164 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
26165 echo "$as_me: error: could not locate pthread_detach()" >&2;}
26166 { (exit 1); exit 1; }; }
26170 cat >>confdefs.h <<\_ACEOF
26171 #define HAVE_PTHREAD_DETACH 1
26180 pthread_setconcurrency \
26181 pthread_getconcurrency \
26182 thr_setconcurrency \
26183 thr_getconcurrency \
26186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26190 echo $ECHO_N "(cached) $ECHO_C" >&6
26192 cat >conftest.$ac_ext <<_ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h. */
26198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26200 #define $ac_func innocuous_$ac_func
26202 /* System header to define __stub macros and hopefully few prototypes,
26203 which can conflict with char $ac_func (); below.
26204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26205 <limits.h> exists even on freestanding compilers. */
26208 # include <limits.h>
26210 # include <assert.h>
26215 /* Override any GCC internal prototype to avoid an error.
26216 Use char because int might match the return type of a GCC
26217 builtin and then its argument prototype would still apply. */
26222 /* The GNU C library defines this for functions which it implements
26223 to always fail with ENOSYS. Some functions are actually named
26224 something starting with __ and the normal name is an alias. */
26225 #if defined __stub_$ac_func || defined __stub___$ac_func
26232 return $ac_func ();
26237 rm -f conftest.$ac_objext conftest$ac_exeext
26238 if { (ac_try="$ac_link"
26239 case "(($ac_try" in
26240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26241 *) ac_try_echo=$ac_try;;
26243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26244 (eval "$ac_link") 2>conftest.er1
26246 grep -v '^ *+' conftest.er1 >conftest.err
26248 cat conftest.err >&5
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); } &&
26251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26252 { (case "(($ac_try" in
26253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26254 *) ac_try_echo=$ac_try;;
26256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26257 (eval "$ac_try") 2>&5
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); }; } &&
26261 { ac_try='test -s conftest$ac_exeext'
26262 { (case "(($ac_try" in
26263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26264 *) ac_try_echo=$ac_try;;
26266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26267 (eval "$ac_try") 2>&5
26269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); }; }; then
26271 eval "$as_ac_var=yes"
26273 echo "$as_me: failed program was:" >&5
26274 sed 's/^/| /' conftest.$ac_ext >&5
26276 eval "$as_ac_var=no"
26279 rm -f core conftest.err conftest.$ac_objext \
26280 conftest$ac_exeext conftest.$ac_ext
26282 ac_res=`eval echo '${'$as_ac_var'}'`
26283 { echo "$as_me:$LINENO: result: $ac_res" >&5
26284 echo "${ECHO_T}$ac_res" >&6; }
26285 if test `eval echo '${'$as_ac_var'}'` = yes; then
26286 cat >>confdefs.h <<_ACEOF
26287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26296 for ac_func in pthread_kill_other_threads_np
26298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26302 echo $ECHO_N "(cached) $ECHO_C" >&6
26304 cat >conftest.$ac_ext <<_ACEOF
26307 cat confdefs.h >>conftest.$ac_ext
26308 cat >>conftest.$ac_ext <<_ACEOF
26309 /* end confdefs.h. */
26310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26312 #define $ac_func innocuous_$ac_func
26314 /* System header to define __stub macros and hopefully few prototypes,
26315 which can conflict with char $ac_func (); below.
26316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26317 <limits.h> exists even on freestanding compilers. */
26320 # include <limits.h>
26322 # include <assert.h>
26327 /* Override any GCC internal prototype to avoid an error.
26328 Use char because int might match the return type of a GCC
26329 builtin and then its argument prototype would still apply. */
26334 /* The GNU C library defines this for functions which it implements
26335 to always fail with ENOSYS. Some functions are actually named
26336 something starting with __ and the normal name is an alias. */
26337 #if defined __stub_$ac_func || defined __stub___$ac_func
26344 return $ac_func ();
26349 rm -f conftest.$ac_objext conftest$ac_exeext
26350 if { (ac_try="$ac_link"
26351 case "(($ac_try" in
26352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26353 *) ac_try_echo=$ac_try;;
26355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26356 (eval "$ac_link") 2>conftest.er1
26358 grep -v '^ *+' conftest.er1 >conftest.err
26360 cat conftest.err >&5
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); } &&
26363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26364 { (case "(($ac_try" in
26365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26366 *) ac_try_echo=$ac_try;;
26368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26369 (eval "$ac_try") 2>&5
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); }; } &&
26373 { ac_try='test -s conftest$ac_exeext'
26374 { (case "(($ac_try" in
26375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26376 *) ac_try_echo=$ac_try;;
26378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26379 (eval "$ac_try") 2>&5
26381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382 (exit $ac_status); }; }; then
26383 eval "$as_ac_var=yes"
26385 echo "$as_me: failed program was:" >&5
26386 sed 's/^/| /' conftest.$ac_ext >&5
26388 eval "$as_ac_var=no"
26391 rm -f core conftest.err conftest.$ac_objext \
26392 conftest$ac_exeext conftest.$ac_ext
26394 ac_res=`eval echo '${'$as_ac_var'}'`
26395 { echo "$as_me:$LINENO: result: $ac_res" >&5
26396 echo "${ECHO_T}$ac_res" >&6; }
26397 if test `eval echo '${'$as_ac_var'}'` = yes; then
26398 cat >>confdefs.h <<_ACEOF
26399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26405 { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
26406 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
26407 if test "${ol_cv_sys_linux_threads+set}" = set; then
26408 echo $ECHO_N "(cached) $ECHO_C" >&6
26410 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
26412 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
26413 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
26418 { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
26419 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
26420 if test "${ol_cv_linux_threads+set}" = set; then
26421 echo $ECHO_N "(cached) $ECHO_C" >&6
26424 if test $ol_cv_header_linux_threads = yes &&
26425 test $ol_cv_sys_linux_threads = yes; then
26426 ol_cv_linux_threads=yes
26427 elif test $ol_cv_header_linux_threads = no &&
26428 test $ol_cv_sys_linux_threads = no; then
26429 ol_cv_linux_threads=no
26431 ol_cv_linux_threads=error
26435 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
26436 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
26439 if test $ol_cv_linux_threads = error; then
26440 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
26441 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
26442 { (exit 1); exit 1; }; };
26445 { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
26446 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
26447 if test "${ol_cv_pthread_create_works+set}" = set; then
26448 echo $ECHO_N "(cached) $ECHO_C" >&6
26451 if test "$cross_compiling" = yes; then
26452 ol_cv_pthread_create_works=yes
26454 cat >conftest.$ac_ext <<_ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h. */
26461 /* pthread test headers */
26462 #include <pthread.h>
26463 #if HAVE_PTHREADS < 7
26467 #define NULL (void*)0
26470 static void *task(p)
26473 return (void *) (p == NULL);
26477 int main(argc, argv)
26482 /* pthread test function */
26483 #ifndef PTHREAD_CREATE_DETACHED
26484 #define PTHREAD_CREATE_DETACHED 1
26488 int detach = PTHREAD_CREATE_DETACHED;
26490 #if HAVE_PTHREADS > 4
26491 /* Final pthreads */
26492 pthread_attr_t attr;
26494 status = pthread_attr_init(&attr);
26495 if( status ) return status;
26497 #if HAVE_PTHREADS < 7
26498 status = pthread_attr_setdetachstate(&attr, &detach);
26499 if( status < 0 ) status = errno;
26501 status = pthread_attr_setdetachstate(&attr, detach);
26503 if( status ) return status;
26504 status = pthread_create( &t, &attr, task, NULL );
26505 #if HAVE_PTHREADS < 7
26506 if( status < 0 ) status = errno;
26508 if( status ) return status;
26510 /* Draft 4 pthreads */
26511 status = pthread_create( &t, pthread_attr_default, task, NULL );
26512 if( status ) return errno;
26514 /* give thread a chance to complete */
26515 /* it should remain joinable and hence detachable */
26518 status = pthread_detach( &t );
26519 if( status ) return errno;
26522 #ifdef HAVE_LINUX_THREADS
26523 pthread_kill_other_threads_np();
26531 rm -f conftest$ac_exeext
26532 if { (ac_try="$ac_link"
26533 case "(($ac_try" in
26534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26535 *) ac_try_echo=$ac_try;;
26537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26538 (eval "$ac_link") 2>&5
26540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26542 { (case "(($ac_try" in
26543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26544 *) ac_try_echo=$ac_try;;
26546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26547 (eval "$ac_try") 2>&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; }; then
26551 ol_cv_pthread_create_works=yes
26553 echo "$as_me: program exited with status $ac_status" >&5
26554 echo "$as_me: failed program was:" >&5
26555 sed 's/^/| /' conftest.$ac_ext >&5
26557 ( exit $ac_status )
26558 ol_cv_pthread_create_works=no
26560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26565 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
26566 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
26568 if test $ol_cv_pthread_create_works = no ; then
26569 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
26570 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
26571 { (exit 1); exit 1; }; }
26574 ol_replace_broken_yield=no
26576 if test $ol_replace_broken_yield = yes ; then
26578 cat >>confdefs.h <<\_ACEOF
26579 #define REPLACE_BROKEN_YIELD 1
26584 if test $ol_with_yielding_select = auto ; then
26585 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
26586 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
26587 if test "${ol_cv_pthread_select_yields+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26591 if test "$cross_compiling" = yes; then
26592 ol_cv_pthread_select_yields=cross
26594 cat >conftest.$ac_ext <<_ACEOF
26597 cat confdefs.h >>conftest.$ac_ext
26598 cat >>conftest.$ac_ext <<_ACEOF
26599 /* end confdefs.h. */
26601 #include <sys/types.h>
26602 #include <sys/time.h>
26603 #include <unistd.h>
26604 #include <pthread.h>
26606 #define NULL (void*) 0
26609 static int fildes[2];
26611 static void *task(p)
26623 FD_SET(fildes[0], &rfds);
26625 /* we're not interested in any fds */
26626 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
26633 exit(0); /* if we exit here, the select blocked the whole process */
26636 int main(argc, argv)
26642 /* create a pipe to select */
26643 if(pipe(&fildes[0])) {
26648 #ifdef HAVE_PTHREAD_SETCONCURRENCY
26649 (void) pthread_setconcurrency(2);
26651 #ifdef HAVE_THR_SETCONCURRENCY
26652 /* Set Solaris LWP concurrency to 2 */
26653 thr_setconcurrency(2);
26657 #if HAVE_PTHREADS < 6
26658 pthread_create(&t, pthread_attr_default, task, NULL);
26660 pthread_create(&t, NULL, task, NULL);
26663 /* make sure task runs first */
26664 #ifdef HAVE_THR_YIELD
26666 #elif defined( HAVE_SCHED_YIELD )
26668 #elif defined( HAVE_PTHREAD_YIELD )
26675 rm -f conftest$ac_exeext
26676 if { (ac_try="$ac_link"
26677 case "(($ac_try" in
26678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679 *) ac_try_echo=$ac_try;;
26681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682 (eval "$ac_link") 2>&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26686 { (case "(($ac_try" in
26687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26688 *) ac_try_echo=$ac_try;;
26690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26691 (eval "$ac_try") 2>&5
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); }; }; then
26695 ol_cv_pthread_select_yields=no
26697 echo "$as_me: program exited with status $ac_status" >&5
26698 echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26701 ( exit $ac_status )
26702 ol_cv_pthread_select_yields=yes
26704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26709 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
26710 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
26712 if test $ol_cv_pthread_select_yields = cross ; then
26713 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
26714 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
26715 { (exit 1); exit 1; }; }
26718 if test $ol_cv_pthread_select_yields = yes ; then
26719 ol_with_yielding_select=yes
26723 CPPFLAGS="$save_CPPFLAGS"
26726 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
26727 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
26728 { (exit 1); exit 1; }; }
26732 if test $ol_with_threads = posix ; then
26733 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
26734 echo "$as_me: error: could not locate POSIX Threads" >&2;}
26735 { (exit 1); exit 1; }; }
26740 case $ol_with_threads in auto | yes | mach)
26744 for ac_header in mach/cthreads.h cthreads.h
26746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26751 echo $ECHO_N "(cached) $ECHO_C" >&6
26753 ac_res=`eval echo '${'$as_ac_Header'}'`
26754 { echo "$as_me:$LINENO: result: $ac_res" >&5
26755 echo "${ECHO_T}$ac_res" >&6; }
26757 # Is the header compilable?
26758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26760 cat >conftest.$ac_ext <<_ACEOF
26763 cat confdefs.h >>conftest.$ac_ext
26764 cat >>conftest.$ac_ext <<_ACEOF
26765 /* end confdefs.h. */
26766 $ac_includes_default
26767 #include <$ac_header>
26769 rm -f conftest.$ac_objext
26770 if { (ac_try="$ac_compile"
26771 case "(($ac_try" in
26772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26773 *) ac_try_echo=$ac_try;;
26775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26776 (eval "$ac_compile") 2>conftest.er1
26778 grep -v '^ *+' conftest.er1 >conftest.err
26780 cat conftest.err >&5
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); } &&
26783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26784 { (case "(($ac_try" in
26785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26786 *) ac_try_echo=$ac_try;;
26788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26789 (eval "$ac_try") 2>&5
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); }; } &&
26793 { ac_try='test -s conftest.$ac_objext'
26794 { (case "(($ac_try" in
26795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26796 *) ac_try_echo=$ac_try;;
26798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26799 (eval "$ac_try") 2>&5
26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); }; }; then
26803 ac_header_compiler=yes
26805 echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26808 ac_header_compiler=no
26811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26813 echo "${ECHO_T}$ac_header_compiler" >&6; }
26815 # Is the header present?
26816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26818 cat >conftest.$ac_ext <<_ACEOF
26821 cat confdefs.h >>conftest.$ac_ext
26822 cat >>conftest.$ac_ext <<_ACEOF
26823 /* end confdefs.h. */
26824 #include <$ac_header>
26826 if { (ac_try="$ac_cpp conftest.$ac_ext"
26827 case "(($ac_try" in
26828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26829 *) ac_try_echo=$ac_try;;
26831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26834 grep -v '^ *+' conftest.er1 >conftest.err
26836 cat conftest.err >&5
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); } >/dev/null; then
26839 if test -s conftest.err; then
26840 ac_cpp_err=$ac_c_preproc_warn_flag
26841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26848 if test -z "$ac_cpp_err"; then
26849 ac_header_preproc=yes
26851 echo "$as_me: failed program was:" >&5
26852 sed 's/^/| /' conftest.$ac_ext >&5
26854 ac_header_preproc=no
26857 rm -f conftest.err conftest.$ac_ext
26858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26859 echo "${ECHO_T}$ac_header_preproc" >&6; }
26861 # So? What about this header?
26862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26868 ac_header_preproc=yes
26871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26884 ## --------------------------------------------- ##
26885 ## Report this to <http://www.openldap.org/its/> ##
26886 ## --------------------------------------------- ##
26888 ) | sed "s/^/$as_me: WARNING: /" >&2
26891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26896 eval "$as_ac_Header=\$ac_header_preproc"
26898 ac_res=`eval echo '${'$as_ac_Header'}'`
26899 { echo "$as_me:$LINENO: result: $ac_res" >&5
26900 echo "${ECHO_T}$ac_res" >&6; }
26903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26904 cat >>confdefs.h <<_ACEOF
26905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26912 if test $ac_cv_header_mach_cthreads_h = yes ; then
26913 ol_with_threads=found
26915 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
26916 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
26917 if test "${ac_cv_func_cthread_fork+set}" = set; then
26918 echo $ECHO_N "(cached) $ECHO_C" >&6
26920 cat >conftest.$ac_ext <<_ACEOF
26923 cat confdefs.h >>conftest.$ac_ext
26924 cat >>conftest.$ac_ext <<_ACEOF
26925 /* end confdefs.h. */
26926 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
26927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26928 #define cthread_fork innocuous_cthread_fork
26930 /* System header to define __stub macros and hopefully few prototypes,
26931 which can conflict with char cthread_fork (); below.
26932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26933 <limits.h> exists even on freestanding compilers. */
26936 # include <limits.h>
26938 # include <assert.h>
26941 #undef cthread_fork
26943 /* Override any GCC internal prototype to avoid an error.
26944 Use char because int might match the return type of a GCC
26945 builtin and then its argument prototype would still apply. */
26949 char cthread_fork ();
26950 /* The GNU C library defines this for functions which it implements
26951 to always fail with ENOSYS. Some functions are actually named
26952 something starting with __ and the normal name is an alias. */
26953 #if defined __stub_cthread_fork || defined __stub___cthread_fork
26960 return cthread_fork ();
26965 rm -f conftest.$ac_objext conftest$ac_exeext
26966 if { (ac_try="$ac_link"
26967 case "(($ac_try" in
26968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26969 *) ac_try_echo=$ac_try;;
26971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26972 (eval "$ac_link") 2>conftest.er1
26974 grep -v '^ *+' conftest.er1 >conftest.err
26976 cat conftest.err >&5
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); } &&
26979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26980 { (case "(($ac_try" in
26981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26982 *) ac_try_echo=$ac_try;;
26984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26985 (eval "$ac_try") 2>&5
26987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988 (exit $ac_status); }; } &&
26989 { ac_try='test -s conftest$ac_exeext'
26990 { (case "(($ac_try" in
26991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992 *) ac_try_echo=$ac_try;;
26994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26995 (eval "$ac_try") 2>&5
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); }; }; then
26999 ac_cv_func_cthread_fork=yes
27001 echo "$as_me: failed program was:" >&5
27002 sed 's/^/| /' conftest.$ac_ext >&5
27004 ac_cv_func_cthread_fork=no
27007 rm -f core conftest.err conftest.$ac_objext \
27008 conftest$ac_exeext conftest.$ac_ext
27010 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
27011 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
27012 if test $ac_cv_func_cthread_fork = yes; then
27013 ol_link_threads=yes
27017 if test $ol_link_threads = no ; then
27018 { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
27019 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
27020 if test "${ol_cv_cthread_all_load+set}" = set; then
27021 echo $ECHO_N "(cached) $ECHO_C" >&6
27025 LIBS="-all_load $LIBS"
27026 cat >conftest.$ac_ext <<_ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h. */
27032 #include <mach/cthreads.h>
27037 cthread_fork((void *)0, (void *)0);
27043 rm -f conftest.$ac_objext conftest$ac_exeext
27044 if { (ac_try="$ac_link"
27045 case "(($ac_try" in
27046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047 *) ac_try_echo=$ac_try;;
27049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050 (eval "$ac_link") 2>conftest.er1
27052 grep -v '^ *+' conftest.er1 >conftest.err
27054 cat conftest.err >&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); } &&
27057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27058 { (case "(($ac_try" in
27059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27060 *) ac_try_echo=$ac_try;;
27062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27063 (eval "$ac_try") 2>&5
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); }; } &&
27067 { ac_try='test -s conftest$ac_exeext'
27068 { (case "(($ac_try" in
27069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27070 *) ac_try_echo=$ac_try;;
27072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27073 (eval "$ac_try") 2>&5
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); }; }; then
27077 ol_cv_cthread_all_load=yes
27079 echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27082 ol_cv_cthread_all_load=no
27085 rm -f core conftest.err conftest.$ac_objext \
27086 conftest$ac_exeext conftest.$ac_ext
27090 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
27091 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
27093 if test $ol_cv_cthread_all_load = yes ; then
27094 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
27095 ol_link_threads=mach
27096 ol_with_threads=found
27100 elif test $ac_cv_header_cthreads_h = yes ; then
27102 ol_with_threads=found
27105 LIBS="$LIBS -lthreads"
27106 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
27107 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
27108 if test "${ac_cv_func_cthread_fork+set}" = set; then
27109 echo $ECHO_N "(cached) $ECHO_C" >&6
27111 cat >conftest.$ac_ext <<_ACEOF
27114 cat confdefs.h >>conftest.$ac_ext
27115 cat >>conftest.$ac_ext <<_ACEOF
27116 /* end confdefs.h. */
27117 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
27118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27119 #define cthread_fork innocuous_cthread_fork
27121 /* System header to define __stub macros and hopefully few prototypes,
27122 which can conflict with char cthread_fork (); below.
27123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27124 <limits.h> exists even on freestanding compilers. */
27127 # include <limits.h>
27129 # include <assert.h>
27132 #undef cthread_fork
27134 /* Override any GCC internal prototype to avoid an error.
27135 Use char because int might match the return type of a GCC
27136 builtin and then its argument prototype would still apply. */
27140 char cthread_fork ();
27141 /* The GNU C library defines this for functions which it implements
27142 to always fail with ENOSYS. Some functions are actually named
27143 something starting with __ and the normal name is an alias. */
27144 #if defined __stub_cthread_fork || defined __stub___cthread_fork
27151 return cthread_fork ();
27156 rm -f conftest.$ac_objext conftest$ac_exeext
27157 if { (ac_try="$ac_link"
27158 case "(($ac_try" in
27159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160 *) ac_try_echo=$ac_try;;
27162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27163 (eval "$ac_link") 2>conftest.er1
27165 grep -v '^ *+' conftest.er1 >conftest.err
27167 cat conftest.err >&5
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); } &&
27170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27171 { (case "(($ac_try" in
27172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173 *) ac_try_echo=$ac_try;;
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176 (eval "$ac_try") 2>&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); }; } &&
27180 { ac_try='test -s conftest$ac_exeext'
27181 { (case "(($ac_try" in
27182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27183 *) ac_try_echo=$ac_try;;
27185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27186 (eval "$ac_try") 2>&5
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); }; }; then
27190 ac_cv_func_cthread_fork=yes
27192 echo "$as_me: failed program was:" >&5
27193 sed 's/^/| /' conftest.$ac_ext >&5
27195 ac_cv_func_cthread_fork=no
27198 rm -f core conftest.err conftest.$ac_objext \
27199 conftest$ac_exeext conftest.$ac_ext
27201 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
27202 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
27203 if test $ac_cv_func_cthread_fork = yes; then
27204 ol_link_threads=yes
27209 if test $ol_link_threads = yes ; then
27210 LTHREAD_LIBS="-lthreads"
27211 ol_link_threads=mach
27212 ol_with_threads=found
27214 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
27215 echo "$as_me: error: could not link with Mach CThreads" >&2;}
27216 { (exit 1); exit 1; }; }
27219 elif test $ol_with_threads = mach ; then
27220 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
27221 echo "$as_me: error: could not locate Mach CThreads" >&2;}
27222 { (exit 1); exit 1; }; }
27225 if test $ol_link_threads = mach ; then
27227 cat >>confdefs.h <<\_ACEOF
27228 #define HAVE_MACH_CTHREADS 1
27231 elif test $ol_with_threads = found ; then
27232 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
27233 echo "$as_me: error: could not link with Mach CThreads" >&2;}
27234 { (exit 1); exit 1; }; }
27239 case $ol_with_threads in auto | yes | pth)
27242 for ac_header in pth.h
27244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27249 echo $ECHO_N "(cached) $ECHO_C" >&6
27251 ac_res=`eval echo '${'$as_ac_Header'}'`
27252 { echo "$as_me:$LINENO: result: $ac_res" >&5
27253 echo "${ECHO_T}$ac_res" >&6; }
27255 # Is the header compilable?
27256 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27258 cat >conftest.$ac_ext <<_ACEOF
27261 cat confdefs.h >>conftest.$ac_ext
27262 cat >>conftest.$ac_ext <<_ACEOF
27263 /* end confdefs.h. */
27264 $ac_includes_default
27265 #include <$ac_header>
27267 rm -f conftest.$ac_objext
27268 if { (ac_try="$ac_compile"
27269 case "(($ac_try" in
27270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27271 *) ac_try_echo=$ac_try;;
27273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27274 (eval "$ac_compile") 2>conftest.er1
27276 grep -v '^ *+' conftest.er1 >conftest.err
27278 cat conftest.err >&5
27279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280 (exit $ac_status); } &&
27281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27282 { (case "(($ac_try" in
27283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284 *) ac_try_echo=$ac_try;;
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287 (eval "$ac_try") 2>&5
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); }; } &&
27291 { ac_try='test -s conftest.$ac_objext'
27292 { (case "(($ac_try" in
27293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27294 *) ac_try_echo=$ac_try;;
27296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27297 (eval "$ac_try") 2>&5
27299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300 (exit $ac_status); }; }; then
27301 ac_header_compiler=yes
27303 echo "$as_me: failed program was:" >&5
27304 sed 's/^/| /' conftest.$ac_ext >&5
27306 ac_header_compiler=no
27309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27311 echo "${ECHO_T}$ac_header_compiler" >&6; }
27313 # Is the header present?
27314 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27316 cat >conftest.$ac_ext <<_ACEOF
27319 cat confdefs.h >>conftest.$ac_ext
27320 cat >>conftest.$ac_ext <<_ACEOF
27321 /* end confdefs.h. */
27322 #include <$ac_header>
27324 if { (ac_try="$ac_cpp conftest.$ac_ext"
27325 case "(($ac_try" in
27326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27327 *) ac_try_echo=$ac_try;;
27329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27332 grep -v '^ *+' conftest.er1 >conftest.err
27334 cat conftest.err >&5
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); } >/dev/null; then
27337 if test -s conftest.err; then
27338 ac_cpp_err=$ac_c_preproc_warn_flag
27339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27346 if test -z "$ac_cpp_err"; then
27347 ac_header_preproc=yes
27349 echo "$as_me: failed program was:" >&5
27350 sed 's/^/| /' conftest.$ac_ext >&5
27352 ac_header_preproc=no
27355 rm -f conftest.err conftest.$ac_ext
27356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27357 echo "${ECHO_T}$ac_header_preproc" >&6; }
27359 # So? What about this header?
27360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27362 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27366 ac_header_preproc=yes
27369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27372 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27373 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27374 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27375 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27376 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27379 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27380 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27382 ## --------------------------------------------- ##
27383 ## Report this to <http://www.openldap.org/its/> ##
27384 ## --------------------------------------------- ##
27386 ) | sed "s/^/$as_me: WARNING: /" >&2
27389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27392 echo $ECHO_N "(cached) $ECHO_C" >&6
27394 eval "$as_ac_Header=\$ac_header_preproc"
27396 ac_res=`eval echo '${'$as_ac_Header'}'`
27397 { echo "$as_me:$LINENO: result: $ac_res" >&5
27398 echo "${ECHO_T}$ac_res" >&6; }
27401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27402 cat >>confdefs.h <<_ACEOF
27403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27411 if test $ac_cv_header_pth_h = yes ; then
27412 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
27413 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
27414 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
27415 echo $ECHO_N "(cached) $ECHO_C" >&6
27417 ac_check_lib_save_LIBS=$LIBS
27419 cat >conftest.$ac_ext <<_ACEOF
27422 cat confdefs.h >>conftest.$ac_ext
27423 cat >>conftest.$ac_ext <<_ACEOF
27424 /* end confdefs.h. */
27426 /* Override any GCC internal prototype to avoid an error.
27427 Use char because int might match the return type of a GCC
27428 builtin and then its argument prototype would still apply. */
27432 char pth_version ();
27436 return pth_version ();
27441 rm -f conftest.$ac_objext conftest$ac_exeext
27442 if { (ac_try="$ac_link"
27443 case "(($ac_try" in
27444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27445 *) ac_try_echo=$ac_try;;
27447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27448 (eval "$ac_link") 2>conftest.er1
27450 grep -v '^ *+' conftest.er1 >conftest.err
27452 cat conftest.err >&5
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); } &&
27455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27456 { (case "(($ac_try" in
27457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27458 *) ac_try_echo=$ac_try;;
27460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27461 (eval "$ac_try") 2>&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); }; } &&
27465 { ac_try='test -s conftest$ac_exeext'
27466 { (case "(($ac_try" in
27467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468 *) ac_try_echo=$ac_try;;
27470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471 (eval "$ac_try") 2>&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); }; }; then
27475 ac_cv_lib_pth_pth_version=yes
27477 echo "$as_me: failed program was:" >&5
27478 sed 's/^/| /' conftest.$ac_ext >&5
27480 ac_cv_lib_pth_pth_version=no
27483 rm -f core conftest.err conftest.$ac_objext \
27484 conftest$ac_exeext conftest.$ac_ext
27485 LIBS=$ac_check_lib_save_LIBS
27487 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
27488 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
27489 if test $ac_cv_lib_pth_pth_version = yes; then
27496 if test $have_pth = yes ; then
27498 cat >>confdefs.h <<\_ACEOF
27499 #define HAVE_GNU_PTH 1
27502 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
27503 ol_link_threads=pth
27504 ol_with_threads=found
27506 if test $ol_with_yielding_select = auto ; then
27507 ol_with_yielding_select=yes
27514 case $ol_with_threads in auto | yes | lwp)
27518 for ac_header in thread.h synch.h
27520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27525 echo $ECHO_N "(cached) $ECHO_C" >&6
27527 ac_res=`eval echo '${'$as_ac_Header'}'`
27528 { echo "$as_me:$LINENO: result: $ac_res" >&5
27529 echo "${ECHO_T}$ac_res" >&6; }
27531 # Is the header compilable?
27532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27534 cat >conftest.$ac_ext <<_ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h. */
27540 $ac_includes_default
27541 #include <$ac_header>
27543 rm -f conftest.$ac_objext
27544 if { (ac_try="$ac_compile"
27545 case "(($ac_try" in
27546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547 *) ac_try_echo=$ac_try;;
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550 (eval "$ac_compile") 2>conftest.er1
27552 grep -v '^ *+' conftest.er1 >conftest.err
27554 cat conftest.err >&5
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); } &&
27557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27558 { (case "(($ac_try" in
27559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560 *) ac_try_echo=$ac_try;;
27562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563 (eval "$ac_try") 2>&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); }; } &&
27567 { ac_try='test -s conftest.$ac_objext'
27568 { (case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_try") 2>&5
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; }; then
27577 ac_header_compiler=yes
27579 echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.$ac_ext >&5
27582 ac_header_compiler=no
27585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27587 echo "${ECHO_T}$ac_header_compiler" >&6; }
27589 # Is the header present?
27590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27592 cat >conftest.$ac_ext <<_ACEOF
27595 cat confdefs.h >>conftest.$ac_ext
27596 cat >>conftest.$ac_ext <<_ACEOF
27597 /* end confdefs.h. */
27598 #include <$ac_header>
27600 if { (ac_try="$ac_cpp conftest.$ac_ext"
27601 case "(($ac_try" in
27602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27603 *) ac_try_echo=$ac_try;;
27605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27608 grep -v '^ *+' conftest.er1 >conftest.err
27610 cat conftest.err >&5
27611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612 (exit $ac_status); } >/dev/null; then
27613 if test -s conftest.err; then
27614 ac_cpp_err=$ac_c_preproc_warn_flag
27615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27622 if test -z "$ac_cpp_err"; then
27623 ac_header_preproc=yes
27625 echo "$as_me: failed program was:" >&5
27626 sed 's/^/| /' conftest.$ac_ext >&5
27628 ac_header_preproc=no
27631 rm -f conftest.err conftest.$ac_ext
27632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27633 echo "${ECHO_T}$ac_header_preproc" >&6; }
27635 # So? What about this header?
27636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27642 ac_header_preproc=yes
27645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27658 ## --------------------------------------------- ##
27659 ## Report this to <http://www.openldap.org/its/> ##
27660 ## --------------------------------------------- ##
27662 ) | sed "s/^/$as_me: WARNING: /" >&2
27665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27668 echo $ECHO_N "(cached) $ECHO_C" >&6
27670 eval "$as_ac_Header=\$ac_header_preproc"
27672 ac_res=`eval echo '${'$as_ac_Header'}'`
27673 { echo "$as_me:$LINENO: result: $ac_res" >&5
27674 echo "${ECHO_T}$ac_res" >&6; }
27677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27678 cat >>confdefs.h <<_ACEOF
27679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27686 if test $ac_cv_header_thread_h = yes &&
27687 test $ac_cv_header_synch_h = yes ; then
27688 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
27689 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
27690 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
27691 echo $ECHO_N "(cached) $ECHO_C" >&6
27693 ac_check_lib_save_LIBS=$LIBS
27694 LIBS="-lthread $LIBS"
27695 cat >conftest.$ac_ext <<_ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h. */
27702 /* Override any GCC internal prototype to avoid an error.
27703 Use char because int might match the return type of a GCC
27704 builtin and then its argument prototype would still apply. */
27708 char thr_create ();
27712 return thr_create ();
27717 rm -f conftest.$ac_objext conftest$ac_exeext
27718 if { (ac_try="$ac_link"
27719 case "(($ac_try" in
27720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721 *) ac_try_echo=$ac_try;;
27723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724 (eval "$ac_link") 2>conftest.er1
27726 grep -v '^ *+' conftest.er1 >conftest.err
27728 cat conftest.err >&5
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); } &&
27731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27732 { (case "(($ac_try" in
27733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27734 *) ac_try_echo=$ac_try;;
27736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27737 (eval "$ac_try") 2>&5
27739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740 (exit $ac_status); }; } &&
27741 { ac_try='test -s conftest$ac_exeext'
27742 { (case "(($ac_try" in
27743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27744 *) ac_try_echo=$ac_try;;
27746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27747 (eval "$ac_try") 2>&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); }; }; then
27751 ac_cv_lib_thread_thr_create=yes
27753 echo "$as_me: failed program was:" >&5
27754 sed 's/^/| /' conftest.$ac_ext >&5
27756 ac_cv_lib_thread_thr_create=no
27759 rm -f core conftest.err conftest.$ac_objext \
27760 conftest$ac_exeext conftest.$ac_ext
27761 LIBS=$ac_check_lib_save_LIBS
27763 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
27764 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
27765 if test $ac_cv_lib_thread_thr_create = yes; then
27772 if test $have_thr = yes ; then
27774 cat >>confdefs.h <<\_ACEOF
27778 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
27779 ol_link_threads=thr
27781 if test $ol_with_yielding_select = auto ; then
27782 ol_with_yielding_select=yes
27788 thr_setconcurrency \
27789 thr_getconcurrency \
27792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27796 echo $ECHO_N "(cached) $ECHO_C" >&6
27798 cat >conftest.$ac_ext <<_ACEOF
27801 cat confdefs.h >>conftest.$ac_ext
27802 cat >>conftest.$ac_ext <<_ACEOF
27803 /* end confdefs.h. */
27804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27806 #define $ac_func innocuous_$ac_func
27808 /* System header to define __stub macros and hopefully few prototypes,
27809 which can conflict with char $ac_func (); below.
27810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27811 <limits.h> exists even on freestanding compilers. */
27814 # include <limits.h>
27816 # include <assert.h>
27821 /* Override any GCC internal prototype to avoid an error.
27822 Use char because int might match the return type of a GCC
27823 builtin and then its argument prototype would still apply. */
27828 /* The GNU C library defines this for functions which it implements
27829 to always fail with ENOSYS. Some functions are actually named
27830 something starting with __ and the normal name is an alias. */
27831 #if defined __stub_$ac_func || defined __stub___$ac_func
27838 return $ac_func ();
27843 rm -f conftest.$ac_objext conftest$ac_exeext
27844 if { (ac_try="$ac_link"
27845 case "(($ac_try" in
27846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27847 *) ac_try_echo=$ac_try;;
27849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27850 (eval "$ac_link") 2>conftest.er1
27852 grep -v '^ *+' conftest.er1 >conftest.err
27854 cat conftest.err >&5
27855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); } &&
27857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27858 { (case "(($ac_try" in
27859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27860 *) ac_try_echo=$ac_try;;
27862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27863 (eval "$ac_try") 2>&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); }; } &&
27867 { ac_try='test -s conftest$ac_exeext'
27868 { (case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_try") 2>&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; }; then
27877 eval "$as_ac_var=yes"
27879 echo "$as_me: failed program was:" >&5
27880 sed 's/^/| /' conftest.$ac_ext >&5
27882 eval "$as_ac_var=no"
27885 rm -f core conftest.err conftest.$ac_objext \
27886 conftest$ac_exeext conftest.$ac_ext
27888 ac_res=`eval echo '${'$as_ac_var'}'`
27889 { echo "$as_me:$LINENO: result: $ac_res" >&5
27890 echo "${ECHO_T}$ac_res" >&6; }
27891 if test `eval echo '${'$as_ac_var'}'` = yes; then
27892 cat >>confdefs.h <<_ACEOF
27893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27903 for ac_header in lwp/lwp.h
27905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
27912 ac_res=`eval echo '${'$as_ac_Header'}'`
27913 { echo "$as_me:$LINENO: result: $ac_res" >&5
27914 echo "${ECHO_T}$ac_res" >&6; }
27916 # Is the header compilable?
27917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27919 cat >conftest.$ac_ext <<_ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h. */
27925 $ac_includes_default
27926 #include <$ac_header>
27928 rm -f conftest.$ac_objext
27929 if { (ac_try="$ac_compile"
27930 case "(($ac_try" in
27931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27932 *) ac_try_echo=$ac_try;;
27934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27935 (eval "$ac_compile") 2>conftest.er1
27937 grep -v '^ *+' conftest.er1 >conftest.err
27939 cat conftest.err >&5
27940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941 (exit $ac_status); } &&
27942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27943 { (case "(($ac_try" in
27944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27945 *) ac_try_echo=$ac_try;;
27947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27948 (eval "$ac_try") 2>&5
27950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951 (exit $ac_status); }; } &&
27952 { ac_try='test -s conftest.$ac_objext'
27953 { (case "(($ac_try" in
27954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27955 *) ac_try_echo=$ac_try;;
27957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27958 (eval "$ac_try") 2>&5
27960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); }; }; then
27962 ac_header_compiler=yes
27964 echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27967 ac_header_compiler=no
27970 rm -f core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
27986 case "(($ac_try" in
27987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988 *) ac_try_echo=$ac_try;;
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27993 grep -v '^ *+' conftest.er1 >conftest.err
27995 cat conftest.err >&5
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); } >/dev/null; then
27998 if test -s conftest.err; then
27999 ac_cpp_err=$ac_c_preproc_warn_flag
28000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28007 if test -z "$ac_cpp_err"; then
28008 ac_header_preproc=yes
28010 echo "$as_me: failed program was:" >&5
28011 sed 's/^/| /' conftest.$ac_ext >&5
28013 ac_header_preproc=no
28016 rm -f conftest.err conftest.$ac_ext
28017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28018 echo "${ECHO_T}$ac_header_preproc" >&6; }
28020 # So? What about this header?
28021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28027 ac_header_preproc=yes
28030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28043 ## --------------------------------------------- ##
28044 ## Report this to <http://www.openldap.org/its/> ##
28045 ## --------------------------------------------- ##
28047 ) | sed "s/^/$as_me: WARNING: /" >&2
28050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28053 echo $ECHO_N "(cached) $ECHO_C" >&6
28055 eval "$as_ac_Header=\$ac_header_preproc"
28057 ac_res=`eval echo '${'$as_ac_Header'}'`
28058 { echo "$as_me:$LINENO: result: $ac_res" >&5
28059 echo "${ECHO_T}$ac_res" >&6; }
28062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28063 cat >>confdefs.h <<_ACEOF
28064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28071 if test $ac_cv_header_lwp_lwp_h = yes ; then
28072 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
28073 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
28074 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
28075 echo $ECHO_N "(cached) $ECHO_C" >&6
28077 ac_check_lib_save_LIBS=$LIBS
28079 cat >conftest.$ac_ext <<_ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h. */
28086 /* Override any GCC internal prototype to avoid an error.
28087 Use char because int might match the return type of a GCC
28088 builtin and then its argument prototype would still apply. */
28092 char lwp_create ();
28096 return lwp_create ();
28101 rm -f conftest.$ac_objext conftest$ac_exeext
28102 if { (ac_try="$ac_link"
28103 case "(($ac_try" in
28104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105 *) ac_try_echo=$ac_try;;
28107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28108 (eval "$ac_link") 2>conftest.er1
28110 grep -v '^ *+' conftest.er1 >conftest.err
28112 cat conftest.err >&5
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); } &&
28115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28116 { (case "(($ac_try" in
28117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118 *) ac_try_echo=$ac_try;;
28120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121 (eval "$ac_try") 2>&5
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; } &&
28125 { ac_try='test -s conftest$ac_exeext'
28126 { (case "(($ac_try" in
28127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28128 *) ac_try_echo=$ac_try;;
28130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28131 (eval "$ac_try") 2>&5
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); }; }; then
28135 ac_cv_lib_lwp_lwp_create=yes
28137 echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28140 ac_cv_lib_lwp_lwp_create=no
28143 rm -f core conftest.err conftest.$ac_objext \
28144 conftest$ac_exeext conftest.$ac_ext
28145 LIBS=$ac_check_lib_save_LIBS
28147 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
28148 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
28149 if test $ac_cv_lib_lwp_lwp_create = yes; then
28156 if test $have_lwp = yes ; then
28158 cat >>confdefs.h <<\_ACEOF
28162 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
28163 ol_link_threads=lwp
28165 if test $ol_with_yielding_select = auto ; then
28166 ol_with_yielding_select=no
28173 if test $ol_with_yielding_select = yes ; then
28175 cat >>confdefs.h <<\_ACEOF
28176 #define HAVE_YIELDING_SELECT 1
28181 if test $ol_with_threads = manual ; then
28182 ol_link_threads=yes
28184 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
28185 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
28189 for ac_header in pthread.h sched.h
28191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28196 echo $ECHO_N "(cached) $ECHO_C" >&6
28198 ac_res=`eval echo '${'$as_ac_Header'}'`
28199 { echo "$as_me:$LINENO: result: $ac_res" >&5
28200 echo "${ECHO_T}$ac_res" >&6; }
28202 # Is the header compilable?
28203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28205 cat >conftest.$ac_ext <<_ACEOF
28208 cat confdefs.h >>conftest.$ac_ext
28209 cat >>conftest.$ac_ext <<_ACEOF
28210 /* end confdefs.h. */
28211 $ac_includes_default
28212 #include <$ac_header>
28214 rm -f conftest.$ac_objext
28215 if { (ac_try="$ac_compile"
28216 case "(($ac_try" in
28217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218 *) ac_try_echo=$ac_try;;
28220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28221 (eval "$ac_compile") 2>conftest.er1
28223 grep -v '^ *+' conftest.er1 >conftest.err
28225 cat conftest.err >&5
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } &&
28228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28229 { (case "(($ac_try" in
28230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231 *) ac_try_echo=$ac_try;;
28233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28234 (eval "$ac_try") 2>&5
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); }; } &&
28238 { ac_try='test -s conftest.$ac_objext'
28239 { (case "(($ac_try" in
28240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241 *) ac_try_echo=$ac_try;;
28243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244 (eval "$ac_try") 2>&5
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); }; }; then
28248 ac_header_compiler=yes
28250 echo "$as_me: failed program was:" >&5
28251 sed 's/^/| /' conftest.$ac_ext >&5
28253 ac_header_compiler=no
28256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28258 echo "${ECHO_T}$ac_header_compiler" >&6; }
28260 # Is the header present?
28261 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28263 cat >conftest.$ac_ext <<_ACEOF
28266 cat confdefs.h >>conftest.$ac_ext
28267 cat >>conftest.$ac_ext <<_ACEOF
28268 /* end confdefs.h. */
28269 #include <$ac_header>
28271 if { (ac_try="$ac_cpp conftest.$ac_ext"
28272 case "(($ac_try" in
28273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274 *) ac_try_echo=$ac_try;;
28276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28279 grep -v '^ *+' conftest.er1 >conftest.err
28281 cat conftest.err >&5
28282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); } >/dev/null; then
28284 if test -s conftest.err; then
28285 ac_cpp_err=$ac_c_preproc_warn_flag
28286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28293 if test -z "$ac_cpp_err"; then
28294 ac_header_preproc=yes
28296 echo "$as_me: failed program was:" >&5
28297 sed 's/^/| /' conftest.$ac_ext >&5
28299 ac_header_preproc=no
28302 rm -f conftest.err conftest.$ac_ext
28303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28304 echo "${ECHO_T}$ac_header_preproc" >&6; }
28306 # So? What about this header?
28307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28313 ac_header_preproc=yes
28316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28329 ## --------------------------------------------- ##
28330 ## Report this to <http://www.openldap.org/its/> ##
28331 ## --------------------------------------------- ##
28333 ) | sed "s/^/$as_me: WARNING: /" >&2
28336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28339 echo $ECHO_N "(cached) $ECHO_C" >&6
28341 eval "$as_ac_Header=\$ac_header_preproc"
28343 ac_res=`eval echo '${'$as_ac_Header'}'`
28344 { echo "$as_me:$LINENO: result: $ac_res" >&5
28345 echo "${ECHO_T}$ac_res" >&6; }
28348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28349 cat >>confdefs.h <<_ACEOF
28350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28359 for ac_func in sched_yield pthread_yield
28361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28365 echo $ECHO_N "(cached) $ECHO_C" >&6
28367 cat >conftest.$ac_ext <<_ACEOF
28370 cat confdefs.h >>conftest.$ac_ext
28371 cat >>conftest.$ac_ext <<_ACEOF
28372 /* end confdefs.h. */
28373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28375 #define $ac_func innocuous_$ac_func
28377 /* System header to define __stub macros and hopefully few prototypes,
28378 which can conflict with char $ac_func (); below.
28379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28380 <limits.h> exists even on freestanding compilers. */
28383 # include <limits.h>
28385 # include <assert.h>
28390 /* Override any GCC internal prototype to avoid an error.
28391 Use char because int might match the return type of a GCC
28392 builtin and then its argument prototype would still apply. */
28397 /* The GNU C library defines this for functions which it implements
28398 to always fail with ENOSYS. Some functions are actually named
28399 something starting with __ and the normal name is an alias. */
28400 #if defined __stub_$ac_func || defined __stub___$ac_func
28407 return $ac_func ();
28412 rm -f conftest.$ac_objext conftest$ac_exeext
28413 if { (ac_try="$ac_link"
28414 case "(($ac_try" in
28415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416 *) ac_try_echo=$ac_try;;
28418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419 (eval "$ac_link") 2>conftest.er1
28421 grep -v '^ *+' conftest.er1 >conftest.err
28423 cat conftest.err >&5
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); } &&
28426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28427 { (case "(($ac_try" in
28428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429 *) ac_try_echo=$ac_try;;
28431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432 (eval "$ac_try") 2>&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; } &&
28436 { ac_try='test -s conftest$ac_exeext'
28437 { (case "(($ac_try" in
28438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28439 *) ac_try_echo=$ac_try;;
28441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28442 (eval "$ac_try") 2>&5
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); }; }; then
28446 eval "$as_ac_var=yes"
28448 echo "$as_me: failed program was:" >&5
28449 sed 's/^/| /' conftest.$ac_ext >&5
28451 eval "$as_ac_var=no"
28454 rm -f core conftest.err conftest.$ac_objext \
28455 conftest$ac_exeext conftest.$ac_ext
28457 ac_res=`eval echo '${'$as_ac_var'}'`
28458 { echo "$as_me:$LINENO: result: $ac_res" >&5
28459 echo "${ECHO_T}$ac_res" >&6; }
28460 if test `eval echo '${'$as_ac_var'}'` = yes; then
28461 cat >>confdefs.h <<_ACEOF
28462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28469 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
28470 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
28471 if test "${ol_cv_header_linux_threads+set}" = set; then
28472 echo $ECHO_N "(cached) $ECHO_C" >&6
28474 cat >conftest.$ac_ext <<_ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h. */
28480 #include <pthread.h>
28482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28483 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
28484 ol_cv_header_linux_threads=yes
28486 ol_cv_header_linux_threads=no
28492 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
28493 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
28494 if test $ol_cv_header_linux_threads = yes; then
28496 cat >>confdefs.h <<\_ACEOF
28497 #define HAVE_LINUX_THREADS 1
28504 for ac_header in mach/cthreads.h
28506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28511 echo $ECHO_N "(cached) $ECHO_C" >&6
28513 ac_res=`eval echo '${'$as_ac_Header'}'`
28514 { echo "$as_me:$LINENO: result: $ac_res" >&5
28515 echo "${ECHO_T}$ac_res" >&6; }
28517 # Is the header compilable?
28518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28520 cat >conftest.$ac_ext <<_ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h. */
28526 $ac_includes_default
28527 #include <$ac_header>
28529 rm -f conftest.$ac_objext
28530 if { (ac_try="$ac_compile"
28531 case "(($ac_try" in
28532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533 *) ac_try_echo=$ac_try;;
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_compile") 2>conftest.er1
28538 grep -v '^ *+' conftest.er1 >conftest.err
28540 cat conftest.err >&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } &&
28543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28544 { (case "(($ac_try" in
28545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28546 *) ac_try_echo=$ac_try;;
28548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28549 (eval "$ac_try") 2>&5
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); }; } &&
28553 { ac_try='test -s conftest.$ac_objext'
28554 { (case "(($ac_try" in
28555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28556 *) ac_try_echo=$ac_try;;
28558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28559 (eval "$ac_try") 2>&5
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); }; }; then
28563 ac_header_compiler=yes
28565 echo "$as_me: failed program was:" >&5
28566 sed 's/^/| /' conftest.$ac_ext >&5
28568 ac_header_compiler=no
28571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28573 echo "${ECHO_T}$ac_header_compiler" >&6; }
28575 # Is the header present?
28576 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28578 cat >conftest.$ac_ext <<_ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h. */
28584 #include <$ac_header>
28586 if { (ac_try="$ac_cpp conftest.$ac_ext"
28587 case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28594 grep -v '^ *+' conftest.er1 >conftest.err
28596 cat conftest.err >&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } >/dev/null; then
28599 if test -s conftest.err; then
28600 ac_cpp_err=$ac_c_preproc_warn_flag
28601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28608 if test -z "$ac_cpp_err"; then
28609 ac_header_preproc=yes
28611 echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28614 ac_header_preproc=no
28617 rm -f conftest.err conftest.$ac_ext
28618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28619 echo "${ECHO_T}$ac_header_preproc" >&6; }
28621 # So? What about this header?
28622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28628 ac_header_preproc=yes
28631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28644 ## --------------------------------------------- ##
28645 ## Report this to <http://www.openldap.org/its/> ##
28646 ## --------------------------------------------- ##
28648 ) | sed "s/^/$as_me: WARNING: /" >&2
28651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28654 echo $ECHO_N "(cached) $ECHO_C" >&6
28656 eval "$as_ac_Header=\$ac_header_preproc"
28658 ac_res=`eval echo '${'$as_ac_Header'}'`
28659 { echo "$as_me:$LINENO: result: $ac_res" >&5
28660 echo "${ECHO_T}$ac_res" >&6; }
28663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28664 cat >>confdefs.h <<_ACEOF
28665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28673 for ac_header in lwp/lwp.h
28675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28680 echo $ECHO_N "(cached) $ECHO_C" >&6
28682 ac_res=`eval echo '${'$as_ac_Header'}'`
28683 { echo "$as_me:$LINENO: result: $ac_res" >&5
28684 echo "${ECHO_T}$ac_res" >&6; }
28686 # Is the header compilable?
28687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28689 cat >conftest.$ac_ext <<_ACEOF
28692 cat confdefs.h >>conftest.$ac_ext
28693 cat >>conftest.$ac_ext <<_ACEOF
28694 /* end confdefs.h. */
28695 $ac_includes_default
28696 #include <$ac_header>
28698 rm -f conftest.$ac_objext
28699 if { (ac_try="$ac_compile"
28700 case "(($ac_try" in
28701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28702 *) ac_try_echo=$ac_try;;
28704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28705 (eval "$ac_compile") 2>conftest.er1
28707 grep -v '^ *+' conftest.er1 >conftest.err
28709 cat conftest.err >&5
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); } &&
28712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28713 { (case "(($ac_try" in
28714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28715 *) ac_try_echo=$ac_try;;
28717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28718 (eval "$ac_try") 2>&5
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; } &&
28722 { ac_try='test -s conftest.$ac_objext'
28723 { (case "(($ac_try" in
28724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725 *) ac_try_echo=$ac_try;;
28727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28728 (eval "$ac_try") 2>&5
28730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731 (exit $ac_status); }; }; then
28732 ac_header_compiler=yes
28734 echo "$as_me: failed program was:" >&5
28735 sed 's/^/| /' conftest.$ac_ext >&5
28737 ac_header_compiler=no
28740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28742 echo "${ECHO_T}$ac_header_compiler" >&6; }
28744 # Is the header present?
28745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28747 cat >conftest.$ac_ext <<_ACEOF
28750 cat confdefs.h >>conftest.$ac_ext
28751 cat >>conftest.$ac_ext <<_ACEOF
28752 /* end confdefs.h. */
28753 #include <$ac_header>
28755 if { (ac_try="$ac_cpp conftest.$ac_ext"
28756 case "(($ac_try" in
28757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28758 *) ac_try_echo=$ac_try;;
28760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28763 grep -v '^ *+' conftest.er1 >conftest.err
28765 cat conftest.err >&5
28766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767 (exit $ac_status); } >/dev/null; then
28768 if test -s conftest.err; then
28769 ac_cpp_err=$ac_c_preproc_warn_flag
28770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28777 if test -z "$ac_cpp_err"; then
28778 ac_header_preproc=yes
28780 echo "$as_me: failed program was:" >&5
28781 sed 's/^/| /' conftest.$ac_ext >&5
28783 ac_header_preproc=no
28786 rm -f conftest.err conftest.$ac_ext
28787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28788 echo "${ECHO_T}$ac_header_preproc" >&6; }
28790 # So? What about this header?
28791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28797 ac_header_preproc=yes
28800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28813 ## --------------------------------------------- ##
28814 ## Report this to <http://www.openldap.org/its/> ##
28815 ## --------------------------------------------- ##
28817 ) | sed "s/^/$as_me: WARNING: /" >&2
28820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28823 echo $ECHO_N "(cached) $ECHO_C" >&6
28825 eval "$as_ac_Header=\$ac_header_preproc"
28827 ac_res=`eval echo '${'$as_ac_Header'}'`
28828 { echo "$as_me:$LINENO: result: $ac_res" >&5
28829 echo "${ECHO_T}$ac_res" >&6; }
28832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28833 cat >>confdefs.h <<_ACEOF
28834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28843 for ac_header in thread.h synch.h
28845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28850 echo $ECHO_N "(cached) $ECHO_C" >&6
28852 ac_res=`eval echo '${'$as_ac_Header'}'`
28853 { echo "$as_me:$LINENO: result: $ac_res" >&5
28854 echo "${ECHO_T}$ac_res" >&6; }
28856 # Is the header compilable?
28857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28859 cat >conftest.$ac_ext <<_ACEOF
28862 cat confdefs.h >>conftest.$ac_ext
28863 cat >>conftest.$ac_ext <<_ACEOF
28864 /* end confdefs.h. */
28865 $ac_includes_default
28866 #include <$ac_header>
28868 rm -f conftest.$ac_objext
28869 if { (ac_try="$ac_compile"
28870 case "(($ac_try" in
28871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872 *) ac_try_echo=$ac_try;;
28874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875 (eval "$ac_compile") 2>conftest.er1
28877 grep -v '^ *+' conftest.er1 >conftest.err
28879 cat conftest.err >&5
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); } &&
28882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28883 { (case "(($ac_try" in
28884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885 *) ac_try_echo=$ac_try;;
28887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888 (eval "$ac_try") 2>&5
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); }; } &&
28892 { ac_try='test -s conftest.$ac_objext'
28893 { (case "(($ac_try" in
28894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28895 *) ac_try_echo=$ac_try;;
28897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28898 (eval "$ac_try") 2>&5
28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); }; }; then
28902 ac_header_compiler=yes
28904 echo "$as_me: failed program was:" >&5
28905 sed 's/^/| /' conftest.$ac_ext >&5
28907 ac_header_compiler=no
28910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28912 echo "${ECHO_T}$ac_header_compiler" >&6; }
28914 # Is the header present?
28915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28917 cat >conftest.$ac_ext <<_ACEOF
28920 cat confdefs.h >>conftest.$ac_ext
28921 cat >>conftest.$ac_ext <<_ACEOF
28922 /* end confdefs.h. */
28923 #include <$ac_header>
28925 if { (ac_try="$ac_cpp conftest.$ac_ext"
28926 case "(($ac_try" in
28927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928 *) ac_try_echo=$ac_try;;
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28933 grep -v '^ *+' conftest.er1 >conftest.err
28935 cat conftest.err >&5
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); } >/dev/null; then
28938 if test -s conftest.err; then
28939 ac_cpp_err=$ac_c_preproc_warn_flag
28940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28947 if test -z "$ac_cpp_err"; then
28948 ac_header_preproc=yes
28950 echo "$as_me: failed program was:" >&5
28951 sed 's/^/| /' conftest.$ac_ext >&5
28953 ac_header_preproc=no
28956 rm -f conftest.err conftest.$ac_ext
28957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28958 echo "${ECHO_T}$ac_header_preproc" >&6; }
28960 # So? What about this header?
28961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28967 ac_header_preproc=yes
28970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28977 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28983 ## --------------------------------------------- ##
28984 ## Report this to <http://www.openldap.org/its/> ##
28985 ## --------------------------------------------- ##
28987 ) | sed "s/^/$as_me: WARNING: /" >&2
28990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28993 echo $ECHO_N "(cached) $ECHO_C" >&6
28995 eval "$as_ac_Header=\$ac_header_preproc"
28997 ac_res=`eval echo '${'$as_ac_Header'}'`
28998 { echo "$as_me:$LINENO: result: $ac_res" >&5
28999 echo "${ECHO_T}$ac_res" >&6; }
29002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29003 cat >>confdefs.h <<_ACEOF
29004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29013 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
29014 cat >>confdefs.h <<\_ACEOF
29015 #define REENTRANT 1
29018 cat >>confdefs.h <<\_ACEOF
29019 #define _REENTRANT 1
29022 cat >>confdefs.h <<\_ACEOF
29023 #define THREAD_SAFE 1
29026 cat >>confdefs.h <<\_ACEOF
29027 #define _THREAD_SAFE 1
29030 cat >>confdefs.h <<\_ACEOF
29031 #define THREADSAFE 1
29034 cat >>confdefs.h <<\_ACEOF
29035 #define _THREADSAFE 1
29038 cat >>confdefs.h <<\_ACEOF
29039 #define _SGI_MP_SOURCE 1
29043 { echo "$as_me:$LINENO: checking for thread specific errno" >&5
29044 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
29045 if test "${ol_cv_errno_thread_specific+set}" = set; then
29046 echo $ECHO_N "(cached) $ECHO_C" >&6
29049 cat >conftest.$ac_ext <<_ACEOF
29052 cat confdefs.h >>conftest.$ac_ext
29053 cat >>conftest.$ac_ext <<_ACEOF
29054 /* end confdefs.h. */
29064 rm -f conftest.$ac_objext conftest$ac_exeext
29065 if { (ac_try="$ac_link"
29066 case "(($ac_try" in
29067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29068 *) ac_try_echo=$ac_try;;
29070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29071 (eval "$ac_link") 2>conftest.er1
29073 grep -v '^ *+' conftest.er1 >conftest.err
29075 cat conftest.err >&5
29076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29077 (exit $ac_status); } &&
29078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29079 { (case "(($ac_try" in
29080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29081 *) ac_try_echo=$ac_try;;
29083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29084 (eval "$ac_try") 2>&5
29086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087 (exit $ac_status); }; } &&
29088 { ac_try='test -s conftest$ac_exeext'
29089 { (case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094 (eval "$ac_try") 2>&5
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); }; }; then
29098 ol_cv_errno_thread_specific=yes
29100 echo "$as_me: failed program was:" >&5
29101 sed 's/^/| /' conftest.$ac_ext >&5
29103 ol_cv_errno_thread_specific=no
29106 rm -f core conftest.err conftest.$ac_objext \
29107 conftest$ac_exeext conftest.$ac_ext
29110 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
29111 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
29113 { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
29114 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
29115 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
29116 echo $ECHO_N "(cached) $ECHO_C" >&6
29119 cat >conftest.$ac_ext <<_ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h. */
29134 rm -f conftest.$ac_objext conftest$ac_exeext
29135 if { (ac_try="$ac_link"
29136 case "(($ac_try" in
29137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138 *) ac_try_echo=$ac_try;;
29140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141 (eval "$ac_link") 2>conftest.er1
29143 grep -v '^ *+' conftest.er1 >conftest.err
29145 cat conftest.err >&5
29146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147 (exit $ac_status); } &&
29148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29149 { (case "(($ac_try" in
29150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151 *) ac_try_echo=$ac_try;;
29153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154 (eval "$ac_try") 2>&5
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); }; } &&
29158 { ac_try='test -s conftest$ac_exeext'
29159 { (case "(($ac_try" in
29160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29161 *) ac_try_echo=$ac_try;;
29163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29164 (eval "$ac_try") 2>&5
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); }; }; then
29168 ol_cv_h_errno_thread_specific=yes
29170 echo "$as_me: failed program was:" >&5
29171 sed 's/^/| /' conftest.$ac_ext >&5
29173 ol_cv_h_errno_thread_specific=no
29176 rm -f core conftest.err conftest.$ac_objext \
29177 conftest$ac_exeext conftest.$ac_ext
29180 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
29181 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
29183 if test $ol_cv_errno_thread_specific != yes ||
29184 test $ol_cv_h_errno_thread_specific != yes ; then
29185 LIBS="$LTHREAD_LIBS $LIBS"
29191 if test $ol_link_threads = no ; then
29192 if test $ol_with_threads = yes ; then
29193 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
29194 echo "$as_me: error: no suitable thread support" >&2;}
29195 { (exit 1); exit 1; }; }
29198 if test $ol_with_threads = auto ; then
29199 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
29200 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
29205 cat >>confdefs.h <<\_ACEOF
29206 #define NO_THREADS 1
29215 if test $ol_link_threads != no ; then
29217 cat >>confdefs.h <<\_ACEOF
29218 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
29228 gethostbyname_r gethostbyaddr_r \
29231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29235 echo $ECHO_N "(cached) $ECHO_C" >&6
29237 cat >conftest.$ac_ext <<_ACEOF
29240 cat confdefs.h >>conftest.$ac_ext
29241 cat >>conftest.$ac_ext <<_ACEOF
29242 /* end confdefs.h. */
29243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29245 #define $ac_func innocuous_$ac_func
29247 /* System header to define __stub macros and hopefully few prototypes,
29248 which can conflict with char $ac_func (); below.
29249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29250 <limits.h> exists even on freestanding compilers. */
29253 # include <limits.h>
29255 # include <assert.h>
29260 /* Override any GCC internal prototype to avoid an error.
29261 Use char because int might match the return type of a GCC
29262 builtin and then its argument prototype would still apply. */
29267 /* The GNU C library defines this for functions which it implements
29268 to always fail with ENOSYS. Some functions are actually named
29269 something starting with __ and the normal name is an alias. */
29270 #if defined __stub_$ac_func || defined __stub___$ac_func
29277 return $ac_func ();
29282 rm -f conftest.$ac_objext conftest$ac_exeext
29283 if { (ac_try="$ac_link"
29284 case "(($ac_try" in
29285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29286 *) ac_try_echo=$ac_try;;
29288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29289 (eval "$ac_link") 2>conftest.er1
29291 grep -v '^ *+' conftest.er1 >conftest.err
29293 cat conftest.err >&5
29294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295 (exit $ac_status); } &&
29296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29297 { (case "(($ac_try" in
29298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299 *) ac_try_echo=$ac_try;;
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302 (eval "$ac_try") 2>&5
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); }; } &&
29306 { ac_try='test -s conftest$ac_exeext'
29307 { (case "(($ac_try" in
29308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309 *) ac_try_echo=$ac_try;;
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312 (eval "$ac_try") 2>&5
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); }; }; then
29316 eval "$as_ac_var=yes"
29318 echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29321 eval "$as_ac_var=no"
29324 rm -f core conftest.err conftest.$ac_objext \
29325 conftest$ac_exeext conftest.$ac_ext
29327 ac_res=`eval echo '${'$as_ac_var'}'`
29328 { echo "$as_me:$LINENO: result: $ac_res" >&5
29329 echo "${ECHO_T}$ac_res" >&6; }
29330 if test `eval echo '${'$as_ac_var'}'` = yes; then
29331 cat >>confdefs.h <<_ACEOF
29332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29339 if test "$ac_cv_func_ctime_r" = no ; then
29340 ol_cv_func_ctime_r_nargs=0
29342 { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
29343 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
29344 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
29345 echo $ECHO_N "(cached) $ECHO_C" >&6
29347 cat >conftest.$ac_ext <<_ACEOF
29350 cat confdefs.h >>conftest.$ac_ext
29351 cat >>conftest.$ac_ext <<_ACEOF
29352 /* end confdefs.h. */
29357 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
29362 rm -f conftest.$ac_objext
29363 if { (ac_try="$ac_compile"
29364 case "(($ac_try" in
29365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29366 *) ac_try_echo=$ac_try;;
29368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29369 (eval "$ac_compile") 2>conftest.er1
29371 grep -v '^ *+' conftest.er1 >conftest.err
29373 cat conftest.err >&5
29374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375 (exit $ac_status); } &&
29376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29377 { (case "(($ac_try" in
29378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379 *) ac_try_echo=$ac_try;;
29381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382 (eval "$ac_try") 2>&5
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); }; } &&
29386 { ac_try='test -s conftest.$ac_objext'
29387 { (case "(($ac_try" in
29388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29389 *) ac_try_echo=$ac_try;;
29391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29392 (eval "$ac_try") 2>&5
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); }; }; then
29396 ol_cv_func_ctime_r_nargs3=yes
29398 echo "$as_me: failed program was:" >&5
29399 sed 's/^/| /' conftest.$ac_ext >&5
29401 ol_cv_func_ctime_r_nargs3=no
29404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29406 cat >conftest.$ac_ext <<_ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h. */
29416 time_t ti; char *buffer; ctime_r(&ti,buffer);
29421 rm -f conftest.$ac_objext
29422 if { (ac_try="$ac_compile"
29423 case "(($ac_try" in
29424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29425 *) ac_try_echo=$ac_try;;
29427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29428 (eval "$ac_compile") 2>conftest.er1
29430 grep -v '^ *+' conftest.er1 >conftest.err
29432 cat conftest.err >&5
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); } &&
29435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29436 { (case "(($ac_try" in
29437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29438 *) ac_try_echo=$ac_try;;
29440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29441 (eval "$ac_try") 2>&5
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); }; } &&
29445 { ac_try='test -s conftest.$ac_objext'
29446 { (case "(($ac_try" in
29447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29448 *) ac_try_echo=$ac_try;;
29450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29451 (eval "$ac_try") 2>&5
29453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454 (exit $ac_status); }; }; then
29455 ol_cv_func_ctime_r_nargs2=yes
29457 echo "$as_me: failed program was:" >&5
29458 sed 's/^/| /' conftest.$ac_ext >&5
29460 ol_cv_func_ctime_r_nargs2=no
29463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29465 if test $ol_cv_func_ctime_r_nargs3 = yes &&
29466 test $ol_cv_func_ctime_r_nargs2 = no ; then
29468 ol_cv_func_ctime_r_nargs=3
29470 elif test $ol_cv_func_ctime_r_nargs3 = no &&
29471 test $ol_cv_func_ctime_r_nargs2 = yes ; then
29473 ol_cv_func_ctime_r_nargs=2
29476 ol_cv_func_ctime_r_nargs=0
29480 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
29481 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
29483 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
29485 cat >>confdefs.h <<_ACEOF
29486 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
29493 if test "$ac_cv_func_gethostbyname_r" = yes ; then
29494 { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
29495 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
29496 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
29497 echo $ECHO_N "(cached) $ECHO_C" >&6
29499 cat >conftest.$ac_ext <<_ACEOF
29502 cat confdefs.h >>conftest.$ac_ext
29503 cat >>conftest.$ac_ext <<_ACEOF
29504 /* end confdefs.h. */
29505 #include <sys/types.h>
29506 #include <sys/socket.h>
29507 #include <netinet/in.h>
29509 #define BUFSIZE (sizeof(struct hostent)+10)
29513 struct hostent hent; char buffer[BUFSIZE];
29514 int bufsize=BUFSIZE;int h_errno;
29515 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
29516 buffer, bufsize, &h_errno);
29521 rm -f conftest.$ac_objext
29522 if { (ac_try="$ac_compile"
29523 case "(($ac_try" in
29524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29525 *) ac_try_echo=$ac_try;;
29527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29528 (eval "$ac_compile") 2>conftest.er1
29530 grep -v '^ *+' conftest.er1 >conftest.err
29532 cat conftest.err >&5
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); } &&
29535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29536 { (case "(($ac_try" in
29537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29538 *) ac_try_echo=$ac_try;;
29540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29541 (eval "$ac_try") 2>&5
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); }; } &&
29545 { ac_try='test -s conftest.$ac_objext'
29546 { (case "(($ac_try" in
29547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29548 *) ac_try_echo=$ac_try;;
29550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29551 (eval "$ac_try") 2>&5
29553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554 (exit $ac_status); }; }; then
29555 ol_cv_func_gethostbyname_r_nargs5=yes
29557 echo "$as_me: failed program was:" >&5
29558 sed 's/^/| /' conftest.$ac_ext >&5
29560 ol_cv_func_gethostbyname_r_nargs5=no
29563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29565 cat >conftest.$ac_ext <<_ACEOF
29568 cat confdefs.h >>conftest.$ac_ext
29569 cat >>conftest.$ac_ext <<_ACEOF
29570 /* end confdefs.h. */
29571 #include <sys/types.h>
29572 #include <sys/socket.h>
29573 #include <netinet/in.h>
29575 #define BUFSIZE (sizeof(struct hostent)+10)
29579 struct hostent hent;struct hostent *rhent;
29580 char buffer[BUFSIZE];
29581 int bufsize=BUFSIZE;int h_errno;
29582 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
29588 rm -f conftest.$ac_objext
29589 if { (ac_try="$ac_compile"
29590 case "(($ac_try" in
29591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29592 *) ac_try_echo=$ac_try;;
29594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29595 (eval "$ac_compile") 2>conftest.er1
29597 grep -v '^ *+' conftest.er1 >conftest.err
29599 cat conftest.err >&5
29600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601 (exit $ac_status); } &&
29602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29603 { (case "(($ac_try" in
29604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29605 *) ac_try_echo=$ac_try;;
29607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29608 (eval "$ac_try") 2>&5
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); }; } &&
29612 { ac_try='test -s conftest.$ac_objext'
29613 { (case "(($ac_try" in
29614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29615 *) ac_try_echo=$ac_try;;
29617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29618 (eval "$ac_try") 2>&5
29620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621 (exit $ac_status); }; }; then
29622 ol_cv_func_gethostbyname_r_nargs6=yes
29624 echo "$as_me: failed program was:" >&5
29625 sed 's/^/| /' conftest.$ac_ext >&5
29627 ol_cv_func_gethostbyname_r_nargs6=no
29630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29632 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
29633 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
29635 ol_cv_func_gethostbyname_r_nargs=5
29637 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
29638 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
29640 ol_cv_func_gethostbyname_r_nargs=6
29643 ol_cv_func_gethostbyname_r_nargs=0
29647 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
29648 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
29649 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
29651 cat >>confdefs.h <<_ACEOF
29652 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
29658 ol_cv_func_gethostbyname_r_nargs=0
29661 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
29662 { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
29663 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
29664 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
29665 echo $ECHO_N "(cached) $ECHO_C" >&6
29667 cat >conftest.$ac_ext <<_ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h. */
29673 #include <sys/types.h>
29674 #include <sys/socket.h>
29675 #include <netinet/in.h>
29677 #define BUFSIZE (sizeof(struct hostent)+10)
29681 struct hostent hent; char buffer[BUFSIZE];
29682 struct in_addr add;
29683 size_t alen=sizeof(struct in_addr);
29684 int bufsize=BUFSIZE;int h_errno;
29685 (void)gethostbyaddr_r( (void *)&(add.s_addr),
29686 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
29691 rm -f conftest.$ac_objext
29692 if { (ac_try="$ac_compile"
29693 case "(($ac_try" in
29694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29695 *) ac_try_echo=$ac_try;;
29697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29698 (eval "$ac_compile") 2>conftest.er1
29700 grep -v '^ *+' conftest.er1 >conftest.err
29702 cat conftest.err >&5
29703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704 (exit $ac_status); } &&
29705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29706 { (case "(($ac_try" in
29707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708 *) ac_try_echo=$ac_try;;
29710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711 (eval "$ac_try") 2>&5
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); }; } &&
29715 { ac_try='test -s conftest.$ac_objext'
29716 { (case "(($ac_try" in
29717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718 *) ac_try_echo=$ac_try;;
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721 (eval "$ac_try") 2>&5
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; }; then
29725 ol_cv_func_gethostbyaddr_r_nargs7=yes
29727 echo "$as_me: failed program was:" >&5
29728 sed 's/^/| /' conftest.$ac_ext >&5
29730 ol_cv_func_gethostbyaddr_r_nargs7=no
29733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29735 cat >conftest.$ac_ext <<_ACEOF
29738 cat confdefs.h >>conftest.$ac_ext
29739 cat >>conftest.$ac_ext <<_ACEOF
29740 /* end confdefs.h. */
29741 #include <sys/types.h>
29742 #include <sys/socket.h>
29743 #include <netinet/in.h>
29745 #define BUFSIZE (sizeof(struct hostent)+10)
29749 struct hostent hent;
29750 struct hostent *rhent; char buffer[BUFSIZE];
29751 struct in_addr add;
29752 size_t alen=sizeof(struct in_addr);
29753 int bufsize=BUFSIZE;int h_errno;
29754 (void)gethostbyaddr_r( (void *)&(add.s_addr),
29755 alen, AF_INET, &hent, buffer, bufsize,
29761 rm -f conftest.$ac_objext
29762 if { (ac_try="$ac_compile"
29763 case "(($ac_try" in
29764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29765 *) ac_try_echo=$ac_try;;
29767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29768 (eval "$ac_compile") 2>conftest.er1
29770 grep -v '^ *+' conftest.er1 >conftest.err
29772 cat conftest.err >&5
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); } &&
29775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29776 { (case "(($ac_try" in
29777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29778 *) ac_try_echo=$ac_try;;
29780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29781 (eval "$ac_try") 2>&5
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); }; } &&
29785 { ac_try='test -s conftest.$ac_objext'
29786 { (case "(($ac_try" in
29787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29788 *) ac_try_echo=$ac_try;;
29790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29791 (eval "$ac_try") 2>&5
29793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); }; }; then
29795 ol_cv_func_gethostbyaddr_r_nargs8=yes
29797 echo "$as_me: failed program was:" >&5
29798 sed 's/^/| /' conftest.$ac_ext >&5
29800 ol_cv_func_gethostbyaddr_r_nargs8=no
29803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29805 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
29806 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
29808 ol_cv_func_gethostbyaddr_r_nargs=7
29810 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
29811 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
29813 ol_cv_func_gethostbyaddr_r_nargs=8
29816 ol_cv_func_gethostbyaddr_r_nargs=0
29820 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
29821 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
29822 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
29824 cat >>confdefs.h <<_ACEOF
29825 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
29831 ol_cv_func_gethostbyaddr_r_nargs=0
29836 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
29837 ol_cv_berkeley_db=no
29839 for ac_header in db.h
29841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29846 echo $ECHO_N "(cached) $ECHO_C" >&6
29848 ac_res=`eval echo '${'$as_ac_Header'}'`
29849 { echo "$as_me:$LINENO: result: $ac_res" >&5
29850 echo "${ECHO_T}$ac_res" >&6; }
29852 # Is the header compilable?
29853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29855 cat >conftest.$ac_ext <<_ACEOF
29858 cat confdefs.h >>conftest.$ac_ext
29859 cat >>conftest.$ac_ext <<_ACEOF
29860 /* end confdefs.h. */
29861 $ac_includes_default
29862 #include <$ac_header>
29864 rm -f conftest.$ac_objext
29865 if { (ac_try="$ac_compile"
29866 case "(($ac_try" in
29867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29868 *) ac_try_echo=$ac_try;;
29870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29871 (eval "$ac_compile") 2>conftest.er1
29873 grep -v '^ *+' conftest.er1 >conftest.err
29875 cat conftest.err >&5
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); } &&
29878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29879 { (case "(($ac_try" in
29880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29881 *) ac_try_echo=$ac_try;;
29883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29884 (eval "$ac_try") 2>&5
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); }; } &&
29888 { ac_try='test -s conftest.$ac_objext'
29889 { (case "(($ac_try" in
29890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29891 *) ac_try_echo=$ac_try;;
29893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29894 (eval "$ac_try") 2>&5
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); }; }; then
29898 ac_header_compiler=yes
29900 echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29903 ac_header_compiler=no
29906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29908 echo "${ECHO_T}$ac_header_compiler" >&6; }
29910 # Is the header present?
29911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29913 cat >conftest.$ac_ext <<_ACEOF
29916 cat confdefs.h >>conftest.$ac_ext
29917 cat >>conftest.$ac_ext <<_ACEOF
29918 /* end confdefs.h. */
29919 #include <$ac_header>
29921 if { (ac_try="$ac_cpp conftest.$ac_ext"
29922 case "(($ac_try" in
29923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29924 *) ac_try_echo=$ac_try;;
29926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29929 grep -v '^ *+' conftest.er1 >conftest.err
29931 cat conftest.err >&5
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); } >/dev/null; then
29934 if test -s conftest.err; then
29935 ac_cpp_err=$ac_c_preproc_warn_flag
29936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29943 if test -z "$ac_cpp_err"; then
29944 ac_header_preproc=yes
29946 echo "$as_me: failed program was:" >&5
29947 sed 's/^/| /' conftest.$ac_ext >&5
29949 ac_header_preproc=no
29952 rm -f conftest.err conftest.$ac_ext
29953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29954 echo "${ECHO_T}$ac_header_preproc" >&6; }
29956 # So? What about this header?
29957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29963 ac_header_preproc=yes
29966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29973 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29979 ## --------------------------------------------- ##
29980 ## Report this to <http://www.openldap.org/its/> ##
29981 ## --------------------------------------------- ##
29983 ) | sed "s/^/$as_me: WARNING: /" >&2
29986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29989 echo $ECHO_N "(cached) $ECHO_C" >&6
29991 eval "$as_ac_Header=\$ac_header_preproc"
29993 ac_res=`eval echo '${'$as_ac_Header'}'`
29994 { echo "$as_me:$LINENO: result: $ac_res" >&5
29995 echo "${ECHO_T}$ac_res" >&6; }
29998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29999 cat >>confdefs.h <<_ACEOF
30000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30007 if test $ac_cv_header_db_h = yes; then
30010 { echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
30011 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6; }
30012 if test "${ol_cv_bdb_major+set}" = set; then
30013 echo $ECHO_N "(cached) $ECHO_C" >&6
30017 if test $ol_cv_bdb_major = 0 ; then
30018 cat >conftest.$ac_ext <<_ACEOF
30021 cat confdefs.h >>conftest.$ac_ext
30022 cat >>conftest.$ac_ext <<_ACEOF
30023 /* end confdefs.h. */
30026 #ifndef DB_VERSION_MAJOR
30027 # define DB_VERSION_MAJOR 1
30029 #if DB_VERSION_MAJOR == 4
30034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30035 $EGREP "__db_version" >/dev/null 2>&1; then
30043 if test $ol_cv_bdb_major = 0 ; then
30044 cat >conftest.$ac_ext <<_ACEOF
30047 cat confdefs.h >>conftest.$ac_ext
30048 cat >>conftest.$ac_ext <<_ACEOF
30049 /* end confdefs.h. */
30052 #ifndef DB_VERSION_MAJOR
30053 # define DB_VERSION_MAJOR 1
30055 #if DB_VERSION_MAJOR == 3
30060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30061 $EGREP "__db_version" >/dev/null 2>&1; then
30069 if test $ol_cv_bdb_major = 0 ; then
30070 cat >conftest.$ac_ext <<_ACEOF
30073 cat confdefs.h >>conftest.$ac_ext
30074 cat >>conftest.$ac_ext <<_ACEOF
30075 /* end confdefs.h. */
30078 #ifndef DB_VERSION_MAJOR
30079 # define DB_VERSION_MAJOR 1
30081 #if DB_VERSION_MAJOR == 2
30086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30087 $EGREP "__db_version" >/dev/null 2>&1; then
30095 if test $ol_cv_bdb_major = 0 ; then
30096 cat >conftest.$ac_ext <<_ACEOF
30099 cat confdefs.h >>conftest.$ac_ext
30100 cat >>conftest.$ac_ext <<_ACEOF
30101 /* end confdefs.h. */
30104 #ifndef DB_VERSION_MAJOR
30105 # define DB_VERSION_MAJOR 1
30107 #if DB_VERSION_MAJOR == 1
30112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30113 $EGREP "__db_version" >/dev/null 2>&1; then
30122 if test $ol_cv_bdb_major = 0 ; then
30123 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
30124 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
30125 { (exit 1); exit 1; }; }
30129 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
30130 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
30132 { echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
30133 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6; }
30134 if test "${ol_cv_bdb_minor+set}" = set; then
30135 echo $ECHO_N "(cached) $ECHO_C" >&6
30139 if test $ol_cv_bdb_minor = 0 ; then
30140 cat >conftest.$ac_ext <<_ACEOF
30143 cat confdefs.h >>conftest.$ac_ext
30144 cat >>conftest.$ac_ext <<_ACEOF
30145 /* end confdefs.h. */
30148 #ifndef DB_VERSION_MINOR
30149 # define DB_VERSION_MINOR 0
30151 #if DB_VERSION_MINOR == 9
30156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30157 $EGREP "__db_version" >/dev/null 2>&1; then
30165 if test $ol_cv_bdb_minor = 0 ; then
30166 cat >conftest.$ac_ext <<_ACEOF
30169 cat confdefs.h >>conftest.$ac_ext
30170 cat >>conftest.$ac_ext <<_ACEOF
30171 /* end confdefs.h. */
30174 #ifndef DB_VERSION_MINOR
30175 # define DB_VERSION_MINOR 0
30177 #if DB_VERSION_MINOR == 8
30182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30183 $EGREP "__db_version" >/dev/null 2>&1; then
30191 if test $ol_cv_bdb_minor = 0 ; then
30192 cat >conftest.$ac_ext <<_ACEOF
30195 cat confdefs.h >>conftest.$ac_ext
30196 cat >>conftest.$ac_ext <<_ACEOF
30197 /* end confdefs.h. */
30200 #ifndef DB_VERSION_MINOR
30201 # define DB_VERSION_MINOR 0
30203 #if DB_VERSION_MINOR == 7
30208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30209 $EGREP "__db_version" >/dev/null 2>&1; then
30217 if test $ol_cv_bdb_minor = 0 ; then
30218 cat >conftest.$ac_ext <<_ACEOF
30221 cat confdefs.h >>conftest.$ac_ext
30222 cat >>conftest.$ac_ext <<_ACEOF
30223 /* end confdefs.h. */
30226 #ifndef DB_VERSION_MINOR
30227 # define DB_VERSION_MINOR 0
30229 #if DB_VERSION_MINOR == 6
30234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30235 $EGREP "__db_version" >/dev/null 2>&1; then
30243 if test $ol_cv_bdb_minor = 0 ; then
30244 cat >conftest.$ac_ext <<_ACEOF
30247 cat confdefs.h >>conftest.$ac_ext
30248 cat >>conftest.$ac_ext <<_ACEOF
30249 /* end confdefs.h. */
30252 #ifndef DB_VERSION_MINOR
30253 # define DB_VERSION_MINOR 0
30255 #if DB_VERSION_MINOR == 5
30260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30261 $EGREP "__db_version" >/dev/null 2>&1; then
30269 if test $ol_cv_bdb_minor = 0 ; then
30270 cat >conftest.$ac_ext <<_ACEOF
30273 cat confdefs.h >>conftest.$ac_ext
30274 cat >>conftest.$ac_ext <<_ACEOF
30275 /* end confdefs.h. */
30278 #ifndef DB_VERSION_MINOR
30279 # define DB_VERSION_MINOR 0
30281 #if DB_VERSION_MINOR == 4
30286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30287 $EGREP "__db_version" >/dev/null 2>&1; then
30295 if test $ol_cv_bdb_minor = 0 ; then
30296 cat >conftest.$ac_ext <<_ACEOF
30299 cat confdefs.h >>conftest.$ac_ext
30300 cat >>conftest.$ac_ext <<_ACEOF
30301 /* end confdefs.h. */
30304 #ifndef DB_VERSION_MINOR
30305 # define DB_VERSION_MINOR 0
30307 #if DB_VERSION_MINOR == 3
30312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30313 $EGREP "__db_version" >/dev/null 2>&1; then
30321 if test $ol_cv_bdb_minor = 0 ; then
30322 cat >conftest.$ac_ext <<_ACEOF
30325 cat confdefs.h >>conftest.$ac_ext
30326 cat >>conftest.$ac_ext <<_ACEOF
30327 /* end confdefs.h. */
30330 #ifndef DB_VERSION_MINOR
30331 # define DB_VERSION_MINOR 0
30333 #if DB_VERSION_MINOR == 2
30338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30339 $EGREP "__db_version" >/dev/null 2>&1; then
30347 if test $ol_cv_bdb_minor = 0 ; then
30348 cat >conftest.$ac_ext <<_ACEOF
30351 cat confdefs.h >>conftest.$ac_ext
30352 cat >>conftest.$ac_ext <<_ACEOF
30353 /* end confdefs.h. */
30356 #ifndef DB_VERSION_MINOR
30357 # define DB_VERSION_MINOR 0
30359 #if DB_VERSION_MINOR == 1
30364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30365 $EGREP "__db_version" >/dev/null 2>&1; then
30375 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
30376 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
30378 if test $ol_cv_bdb_major = 4 ; then
30379 if test $ol_cv_bdb_minor = 5 ; then
30380 if test $ol_cv_lib_db = no ; then
30381 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
30382 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6; }
30383 if test "${ol_cv_db_db45+set}" = set; then
30384 echo $ECHO_N "(cached) $ECHO_C" >&6
30389 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30391 cat >conftest.$ac_ext <<_ACEOF
30394 cat confdefs.h >>conftest.$ac_ext
30395 cat >>conftest.$ac_ext <<_ACEOF
30396 /* end confdefs.h. */
30398 #ifdef HAVE_DB_185_H
30399 # include <db_185.h>
30404 #ifndef DB_VERSION_MAJOR
30405 # define DB_VERSION_MAJOR 1
30409 #define NULL ((void*)0)
30416 #if DB_VERSION_MAJOR > 1
30419 int major, minor, patch;
30421 version = db_version( &major, &minor, &patch );
30423 if( major != DB_VERSION_MAJOR ||
30424 minor < DB_VERSION_MINOR )
30426 printf("Berkeley DB version mismatch\n"
30427 "\theader: %s\n\tlibrary: %s\n",
30428 DB_VERSION_STRING, version);
30434 #if DB_VERSION_MAJOR > 2
30435 db_env_create( NULL, 0 );
30436 #elif DB_VERSION_MAJOR > 1
30437 db_appexit( NULL );
30439 (void) dbopen( NULL, 0, 0, 0, NULL);
30446 rm -f conftest.$ac_objext conftest$ac_exeext
30447 if { (ac_try="$ac_link"
30448 case "(($ac_try" in
30449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450 *) ac_try_echo=$ac_try;;
30452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453 (eval "$ac_link") 2>conftest.er1
30455 grep -v '^ *+' conftest.er1 >conftest.err
30457 cat conftest.err >&5
30458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 (exit $ac_status); } &&
30460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30461 { (case "(($ac_try" in
30462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463 *) ac_try_echo=$ac_try;;
30465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466 (eval "$ac_try") 2>&5
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); }; } &&
30470 { ac_try='test -s conftest$ac_exeext'
30471 { (case "(($ac_try" in
30472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30473 *) ac_try_echo=$ac_try;;
30475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30476 (eval "$ac_try") 2>&5
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); }; }; then
30482 echo "$as_me: failed program was:" >&5
30483 sed 's/^/| /' conftest.$ac_ext >&5
30488 rm -f core conftest.err conftest.$ac_objext \
30489 conftest$ac_exeext conftest.$ac_ext
30494 { echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
30495 echo "${ECHO_T}$ol_cv_db_db45" >&6; }
30497 if test $ol_cv_db_db45 = yes ; then
30498 ol_cv_lib_db=-ldb45
30502 if test $ol_cv_lib_db = no ; then
30503 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
30504 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6; }
30505 if test "${ol_cv_db_db_45+set}" = set; then
30506 echo $ECHO_N "(cached) $ECHO_C" >&6
30511 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30513 cat >conftest.$ac_ext <<_ACEOF
30516 cat confdefs.h >>conftest.$ac_ext
30517 cat >>conftest.$ac_ext <<_ACEOF
30518 /* end confdefs.h. */
30520 #ifdef HAVE_DB_185_H
30521 # include <db_185.h>
30526 #ifndef DB_VERSION_MAJOR
30527 # define DB_VERSION_MAJOR 1
30531 #define NULL ((void*)0)
30538 #if DB_VERSION_MAJOR > 1
30541 int major, minor, patch;
30543 version = db_version( &major, &minor, &patch );
30545 if( major != DB_VERSION_MAJOR ||
30546 minor < DB_VERSION_MINOR )
30548 printf("Berkeley DB version mismatch\n"
30549 "\theader: %s\n\tlibrary: %s\n",
30550 DB_VERSION_STRING, version);
30556 #if DB_VERSION_MAJOR > 2
30557 db_env_create( NULL, 0 );
30558 #elif DB_VERSION_MAJOR > 1
30559 db_appexit( NULL );
30561 (void) dbopen( NULL, 0, 0, 0, NULL);
30568 rm -f conftest.$ac_objext conftest$ac_exeext
30569 if { (ac_try="$ac_link"
30570 case "(($ac_try" in
30571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30572 *) ac_try_echo=$ac_try;;
30574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30575 (eval "$ac_link") 2>conftest.er1
30577 grep -v '^ *+' conftest.er1 >conftest.err
30579 cat conftest.err >&5
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); } &&
30582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30583 { (case "(($ac_try" in
30584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585 *) ac_try_echo=$ac_try;;
30587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30588 (eval "$ac_try") 2>&5
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); }; } &&
30592 { ac_try='test -s conftest$ac_exeext'
30593 { (case "(($ac_try" in
30594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30595 *) ac_try_echo=$ac_try;;
30597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30598 (eval "$ac_try") 2>&5
30600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601 (exit $ac_status); }; }; then
30604 echo "$as_me: failed program was:" >&5
30605 sed 's/^/| /' conftest.$ac_ext >&5
30610 rm -f core conftest.err conftest.$ac_objext \
30611 conftest$ac_exeext conftest.$ac_ext
30616 { echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
30617 echo "${ECHO_T}$ol_cv_db_db_45" >&6; }
30619 if test $ol_cv_db_db_45 = yes ; then
30620 ol_cv_lib_db=-ldb-45
30624 if test $ol_cv_lib_db = no ; then
30625 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
30626 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6; }
30627 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
30628 echo $ECHO_N "(cached) $ECHO_C" >&6
30633 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30635 cat >conftest.$ac_ext <<_ACEOF
30638 cat confdefs.h >>conftest.$ac_ext
30639 cat >>conftest.$ac_ext <<_ACEOF
30640 /* end confdefs.h. */
30642 #ifdef HAVE_DB_185_H
30643 # include <db_185.h>
30648 #ifndef DB_VERSION_MAJOR
30649 # define DB_VERSION_MAJOR 1
30653 #define NULL ((void*)0)
30660 #if DB_VERSION_MAJOR > 1
30663 int major, minor, patch;
30665 version = db_version( &major, &minor, &patch );
30667 if( major != DB_VERSION_MAJOR ||
30668 minor < DB_VERSION_MINOR )
30670 printf("Berkeley DB version mismatch\n"
30671 "\theader: %s\n\tlibrary: %s\n",
30672 DB_VERSION_STRING, version);
30678 #if DB_VERSION_MAJOR > 2
30679 db_env_create( NULL, 0 );
30680 #elif DB_VERSION_MAJOR > 1
30681 db_appexit( NULL );
30683 (void) dbopen( NULL, 0, 0, 0, NULL);
30690 rm -f conftest.$ac_objext conftest$ac_exeext
30691 if { (ac_try="$ac_link"
30692 case "(($ac_try" in
30693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30694 *) ac_try_echo=$ac_try;;
30696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30697 (eval "$ac_link") 2>conftest.er1
30699 grep -v '^ *+' conftest.er1 >conftest.err
30701 cat conftest.err >&5
30702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703 (exit $ac_status); } &&
30704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30705 { (case "(($ac_try" in
30706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30707 *) ac_try_echo=$ac_try;;
30709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30710 (eval "$ac_try") 2>&5
30712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713 (exit $ac_status); }; } &&
30714 { ac_try='test -s conftest$ac_exeext'
30715 { (case "(($ac_try" in
30716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717 *) ac_try_echo=$ac_try;;
30719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720 (eval "$ac_try") 2>&5
30722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30723 (exit $ac_status); }; }; then
30724 ol_cv_db_db_4_dot_5=yes
30726 echo "$as_me: failed program was:" >&5
30727 sed 's/^/| /' conftest.$ac_ext >&5
30729 ol_cv_db_db_4_dot_5=no
30732 rm -f core conftest.err conftest.$ac_objext \
30733 conftest$ac_exeext conftest.$ac_ext
30738 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
30739 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6; }
30741 if test $ol_cv_db_db_4_dot_5 = yes ; then
30742 ol_cv_lib_db=-ldb-4.5
30746 if test $ol_cv_lib_db = no ; then
30747 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
30748 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6; }
30749 if test "${ol_cv_db_db_4_5+set}" = set; then
30750 echo $ECHO_N "(cached) $ECHO_C" >&6
30755 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30757 cat >conftest.$ac_ext <<_ACEOF
30760 cat confdefs.h >>conftest.$ac_ext
30761 cat >>conftest.$ac_ext <<_ACEOF
30762 /* end confdefs.h. */
30764 #ifdef HAVE_DB_185_H
30765 # include <db_185.h>
30770 #ifndef DB_VERSION_MAJOR
30771 # define DB_VERSION_MAJOR 1
30775 #define NULL ((void*)0)
30782 #if DB_VERSION_MAJOR > 1
30785 int major, minor, patch;
30787 version = db_version( &major, &minor, &patch );
30789 if( major != DB_VERSION_MAJOR ||
30790 minor < DB_VERSION_MINOR )
30792 printf("Berkeley DB version mismatch\n"
30793 "\theader: %s\n\tlibrary: %s\n",
30794 DB_VERSION_STRING, version);
30800 #if DB_VERSION_MAJOR > 2
30801 db_env_create( NULL, 0 );
30802 #elif DB_VERSION_MAJOR > 1
30803 db_appexit( NULL );
30805 (void) dbopen( NULL, 0, 0, 0, NULL);
30812 rm -f conftest.$ac_objext conftest$ac_exeext
30813 if { (ac_try="$ac_link"
30814 case "(($ac_try" in
30815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816 *) ac_try_echo=$ac_try;;
30818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819 (eval "$ac_link") 2>conftest.er1
30821 grep -v '^ *+' conftest.er1 >conftest.err
30823 cat conftest.err >&5
30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825 (exit $ac_status); } &&
30826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30827 { (case "(($ac_try" in
30828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30829 *) ac_try_echo=$ac_try;;
30831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30832 (eval "$ac_try") 2>&5
30834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835 (exit $ac_status); }; } &&
30836 { ac_try='test -s conftest$ac_exeext'
30837 { (case "(($ac_try" in
30838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30839 *) ac_try_echo=$ac_try;;
30841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30842 (eval "$ac_try") 2>&5
30844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30845 (exit $ac_status); }; }; then
30846 ol_cv_db_db_4_5=yes
30848 echo "$as_me: failed program was:" >&5
30849 sed 's/^/| /' conftest.$ac_ext >&5
30854 rm -f core conftest.err conftest.$ac_objext \
30855 conftest$ac_exeext conftest.$ac_ext
30860 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
30861 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6; }
30863 if test $ol_cv_db_db_4_5 = yes ; then
30864 ol_cv_lib_db=-ldb-4-5
30868 elif test $ol_cv_bdb_minor = 4 ; then
30869 if test $ol_cv_lib_db = no ; then
30870 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
30871 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6; }
30872 if test "${ol_cv_db_db44+set}" = set; then
30873 echo $ECHO_N "(cached) $ECHO_C" >&6
30878 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30880 cat >conftest.$ac_ext <<_ACEOF
30883 cat confdefs.h >>conftest.$ac_ext
30884 cat >>conftest.$ac_ext <<_ACEOF
30885 /* end confdefs.h. */
30887 #ifdef HAVE_DB_185_H
30888 # include <db_185.h>
30893 #ifndef DB_VERSION_MAJOR
30894 # define DB_VERSION_MAJOR 1
30898 #define NULL ((void*)0)
30905 #if DB_VERSION_MAJOR > 1
30908 int major, minor, patch;
30910 version = db_version( &major, &minor, &patch );
30912 if( major != DB_VERSION_MAJOR ||
30913 minor < DB_VERSION_MINOR )
30915 printf("Berkeley DB version mismatch\n"
30916 "\theader: %s\n\tlibrary: %s\n",
30917 DB_VERSION_STRING, version);
30923 #if DB_VERSION_MAJOR > 2
30924 db_env_create( NULL, 0 );
30925 #elif DB_VERSION_MAJOR > 1
30926 db_appexit( NULL );
30928 (void) dbopen( NULL, 0, 0, 0, NULL);
30935 rm -f conftest.$ac_objext conftest$ac_exeext
30936 if { (ac_try="$ac_link"
30937 case "(($ac_try" in
30938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30939 *) ac_try_echo=$ac_try;;
30941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30942 (eval "$ac_link") 2>conftest.er1
30944 grep -v '^ *+' conftest.er1 >conftest.err
30946 cat conftest.err >&5
30947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948 (exit $ac_status); } &&
30949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30950 { (case "(($ac_try" in
30951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30952 *) ac_try_echo=$ac_try;;
30954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30955 (eval "$ac_try") 2>&5
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); }; } &&
30959 { ac_try='test -s conftest$ac_exeext'
30960 { (case "(($ac_try" in
30961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30962 *) ac_try_echo=$ac_try;;
30964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30965 (eval "$ac_try") 2>&5
30967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968 (exit $ac_status); }; }; then
30971 echo "$as_me: failed program was:" >&5
30972 sed 's/^/| /' conftest.$ac_ext >&5
30977 rm -f core conftest.err conftest.$ac_objext \
30978 conftest$ac_exeext conftest.$ac_ext
30983 { echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
30984 echo "${ECHO_T}$ol_cv_db_db44" >&6; }
30986 if test $ol_cv_db_db44 = yes ; then
30987 ol_cv_lib_db=-ldb44
30991 if test $ol_cv_lib_db = no ; then
30992 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
30993 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6; }
30994 if test "${ol_cv_db_db_44+set}" = set; then
30995 echo $ECHO_N "(cached) $ECHO_C" >&6
31000 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31002 cat >conftest.$ac_ext <<_ACEOF
31005 cat confdefs.h >>conftest.$ac_ext
31006 cat >>conftest.$ac_ext <<_ACEOF
31007 /* end confdefs.h. */
31009 #ifdef HAVE_DB_185_H
31010 # include <db_185.h>
31015 #ifndef DB_VERSION_MAJOR
31016 # define DB_VERSION_MAJOR 1
31020 #define NULL ((void*)0)
31027 #if DB_VERSION_MAJOR > 1
31030 int major, minor, patch;
31032 version = db_version( &major, &minor, &patch );
31034 if( major != DB_VERSION_MAJOR ||
31035 minor < DB_VERSION_MINOR )
31037 printf("Berkeley DB version mismatch\n"
31038 "\theader: %s\n\tlibrary: %s\n",
31039 DB_VERSION_STRING, version);
31045 #if DB_VERSION_MAJOR > 2
31046 db_env_create( NULL, 0 );
31047 #elif DB_VERSION_MAJOR > 1
31048 db_appexit( NULL );
31050 (void) dbopen( NULL, 0, 0, 0, NULL);
31057 rm -f conftest.$ac_objext conftest$ac_exeext
31058 if { (ac_try="$ac_link"
31059 case "(($ac_try" in
31060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061 *) ac_try_echo=$ac_try;;
31063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064 (eval "$ac_link") 2>conftest.er1
31066 grep -v '^ *+' conftest.er1 >conftest.err
31068 cat conftest.err >&5
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); } &&
31071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31072 { (case "(($ac_try" in
31073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31074 *) ac_try_echo=$ac_try;;
31076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31077 (eval "$ac_try") 2>&5
31079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080 (exit $ac_status); }; } &&
31081 { ac_try='test -s conftest$ac_exeext'
31082 { (case "(($ac_try" in
31083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31084 *) ac_try_echo=$ac_try;;
31086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31087 (eval "$ac_try") 2>&5
31089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090 (exit $ac_status); }; }; then
31093 echo "$as_me: failed program was:" >&5
31094 sed 's/^/| /' conftest.$ac_ext >&5
31099 rm -f core conftest.err conftest.$ac_objext \
31100 conftest$ac_exeext conftest.$ac_ext
31105 { echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31106 echo "${ECHO_T}$ol_cv_db_db_44" >&6; }
31108 if test $ol_cv_db_db_44 = yes ; then
31109 ol_cv_lib_db=-ldb-44
31113 if test $ol_cv_lib_db = no ; then
31114 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31115 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6; }
31116 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31117 echo $ECHO_N "(cached) $ECHO_C" >&6
31122 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31124 cat >conftest.$ac_ext <<_ACEOF
31127 cat confdefs.h >>conftest.$ac_ext
31128 cat >>conftest.$ac_ext <<_ACEOF
31129 /* end confdefs.h. */
31131 #ifdef HAVE_DB_185_H
31132 # include <db_185.h>
31137 #ifndef DB_VERSION_MAJOR
31138 # define DB_VERSION_MAJOR 1
31142 #define NULL ((void*)0)
31149 #if DB_VERSION_MAJOR > 1
31152 int major, minor, patch;
31154 version = db_version( &major, &minor, &patch );
31156 if( major != DB_VERSION_MAJOR ||
31157 minor < DB_VERSION_MINOR )
31159 printf("Berkeley DB version mismatch\n"
31160 "\theader: %s\n\tlibrary: %s\n",
31161 DB_VERSION_STRING, version);
31167 #if DB_VERSION_MAJOR > 2
31168 db_env_create( NULL, 0 );
31169 #elif DB_VERSION_MAJOR > 1
31170 db_appexit( NULL );
31172 (void) dbopen( NULL, 0, 0, 0, NULL);
31179 rm -f conftest.$ac_objext conftest$ac_exeext
31180 if { (ac_try="$ac_link"
31181 case "(($ac_try" in
31182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31183 *) ac_try_echo=$ac_try;;
31185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31186 (eval "$ac_link") 2>conftest.er1
31188 grep -v '^ *+' conftest.er1 >conftest.err
31190 cat conftest.err >&5
31191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31192 (exit $ac_status); } &&
31193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31194 { (case "(($ac_try" in
31195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31196 *) ac_try_echo=$ac_try;;
31198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31199 (eval "$ac_try") 2>&5
31201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202 (exit $ac_status); }; } &&
31203 { ac_try='test -s conftest$ac_exeext'
31204 { (case "(($ac_try" in
31205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31206 *) ac_try_echo=$ac_try;;
31208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31209 (eval "$ac_try") 2>&5
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); }; }; then
31213 ol_cv_db_db_4_dot_4=yes
31215 echo "$as_me: failed program was:" >&5
31216 sed 's/^/| /' conftest.$ac_ext >&5
31218 ol_cv_db_db_4_dot_4=no
31221 rm -f core conftest.err conftest.$ac_objext \
31222 conftest$ac_exeext conftest.$ac_ext
31227 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
31228 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6; }
31230 if test $ol_cv_db_db_4_dot_4 = yes ; then
31231 ol_cv_lib_db=-ldb-4.4
31235 if test $ol_cv_lib_db = no ; then
31236 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
31237 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6; }
31238 if test "${ol_cv_db_db_4_4+set}" = set; then
31239 echo $ECHO_N "(cached) $ECHO_C" >&6
31244 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31246 cat >conftest.$ac_ext <<_ACEOF
31249 cat confdefs.h >>conftest.$ac_ext
31250 cat >>conftest.$ac_ext <<_ACEOF
31251 /* end confdefs.h. */
31253 #ifdef HAVE_DB_185_H
31254 # include <db_185.h>
31259 #ifndef DB_VERSION_MAJOR
31260 # define DB_VERSION_MAJOR 1
31264 #define NULL ((void*)0)
31271 #if DB_VERSION_MAJOR > 1
31274 int major, minor, patch;
31276 version = db_version( &major, &minor, &patch );
31278 if( major != DB_VERSION_MAJOR ||
31279 minor < DB_VERSION_MINOR )
31281 printf("Berkeley DB version mismatch\n"
31282 "\theader: %s\n\tlibrary: %s\n",
31283 DB_VERSION_STRING, version);
31289 #if DB_VERSION_MAJOR > 2
31290 db_env_create( NULL, 0 );
31291 #elif DB_VERSION_MAJOR > 1
31292 db_appexit( NULL );
31294 (void) dbopen( NULL, 0, 0, 0, NULL);
31301 rm -f conftest.$ac_objext conftest$ac_exeext
31302 if { (ac_try="$ac_link"
31303 case "(($ac_try" in
31304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31305 *) ac_try_echo=$ac_try;;
31307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31308 (eval "$ac_link") 2>conftest.er1
31310 grep -v '^ *+' conftest.er1 >conftest.err
31312 cat conftest.err >&5
31313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); } &&
31315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31316 { (case "(($ac_try" in
31317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31318 *) ac_try_echo=$ac_try;;
31320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31321 (eval "$ac_try") 2>&5
31323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324 (exit $ac_status); }; } &&
31325 { ac_try='test -s conftest$ac_exeext'
31326 { (case "(($ac_try" in
31327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31328 *) ac_try_echo=$ac_try;;
31330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31331 (eval "$ac_try") 2>&5
31333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334 (exit $ac_status); }; }; then
31335 ol_cv_db_db_4_4=yes
31337 echo "$as_me: failed program was:" >&5
31338 sed 's/^/| /' conftest.$ac_ext >&5
31343 rm -f core conftest.err conftest.$ac_objext \
31344 conftest$ac_exeext conftest.$ac_ext
31349 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
31350 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6; }
31352 if test $ol_cv_db_db_4_4 = yes ; then
31353 ol_cv_lib_db=-ldb-4-4
31357 elif test $ol_cv_bdb_minor = 3 ; then
31358 if test $ol_cv_lib_db = no ; then
31359 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
31360 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6; }
31361 if test "${ol_cv_db_db43+set}" = set; then
31362 echo $ECHO_N "(cached) $ECHO_C" >&6
31367 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31369 cat >conftest.$ac_ext <<_ACEOF
31372 cat confdefs.h >>conftest.$ac_ext
31373 cat >>conftest.$ac_ext <<_ACEOF
31374 /* end confdefs.h. */
31376 #ifdef HAVE_DB_185_H
31377 # include <db_185.h>
31382 #ifndef DB_VERSION_MAJOR
31383 # define DB_VERSION_MAJOR 1
31387 #define NULL ((void*)0)
31394 #if DB_VERSION_MAJOR > 1
31397 int major, minor, patch;
31399 version = db_version( &major, &minor, &patch );
31401 if( major != DB_VERSION_MAJOR ||
31402 minor < DB_VERSION_MINOR )
31404 printf("Berkeley DB version mismatch\n"
31405 "\theader: %s\n\tlibrary: %s\n",
31406 DB_VERSION_STRING, version);
31412 #if DB_VERSION_MAJOR > 2
31413 db_env_create( NULL, 0 );
31414 #elif DB_VERSION_MAJOR > 1
31415 db_appexit( NULL );
31417 (void) dbopen( NULL, 0, 0, 0, NULL);
31424 rm -f conftest.$ac_objext conftest$ac_exeext
31425 if { (ac_try="$ac_link"
31426 case "(($ac_try" in
31427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31428 *) ac_try_echo=$ac_try;;
31430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31431 (eval "$ac_link") 2>conftest.er1
31433 grep -v '^ *+' conftest.er1 >conftest.err
31435 cat conftest.err >&5
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); } &&
31438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31439 { (case "(($ac_try" in
31440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441 *) ac_try_echo=$ac_try;;
31443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444 (eval "$ac_try") 2>&5
31446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447 (exit $ac_status); }; } &&
31448 { ac_try='test -s conftest$ac_exeext'
31449 { (case "(($ac_try" in
31450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31451 *) ac_try_echo=$ac_try;;
31453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31454 (eval "$ac_try") 2>&5
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); }; }; then
31460 echo "$as_me: failed program was:" >&5
31461 sed 's/^/| /' conftest.$ac_ext >&5
31466 rm -f core conftest.err conftest.$ac_objext \
31467 conftest$ac_exeext conftest.$ac_ext
31472 { echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
31473 echo "${ECHO_T}$ol_cv_db_db43" >&6; }
31475 if test $ol_cv_db_db43 = yes ; then
31476 ol_cv_lib_db=-ldb43
31480 if test $ol_cv_lib_db = no ; then
31481 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
31482 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6; }
31483 if test "${ol_cv_db_db_43+set}" = set; then
31484 echo $ECHO_N "(cached) $ECHO_C" >&6
31489 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31491 cat >conftest.$ac_ext <<_ACEOF
31494 cat confdefs.h >>conftest.$ac_ext
31495 cat >>conftest.$ac_ext <<_ACEOF
31496 /* end confdefs.h. */
31498 #ifdef HAVE_DB_185_H
31499 # include <db_185.h>
31504 #ifndef DB_VERSION_MAJOR
31505 # define DB_VERSION_MAJOR 1
31509 #define NULL ((void*)0)
31516 #if DB_VERSION_MAJOR > 1
31519 int major, minor, patch;
31521 version = db_version( &major, &minor, &patch );
31523 if( major != DB_VERSION_MAJOR ||
31524 minor < DB_VERSION_MINOR )
31526 printf("Berkeley DB version mismatch\n"
31527 "\theader: %s\n\tlibrary: %s\n",
31528 DB_VERSION_STRING, version);
31534 #if DB_VERSION_MAJOR > 2
31535 db_env_create( NULL, 0 );
31536 #elif DB_VERSION_MAJOR > 1
31537 db_appexit( NULL );
31539 (void) dbopen( NULL, 0, 0, 0, NULL);
31546 rm -f conftest.$ac_objext conftest$ac_exeext
31547 if { (ac_try="$ac_link"
31548 case "(($ac_try" in
31549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31550 *) ac_try_echo=$ac_try;;
31552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31553 (eval "$ac_link") 2>conftest.er1
31555 grep -v '^ *+' conftest.er1 >conftest.err
31557 cat conftest.err >&5
31558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559 (exit $ac_status); } &&
31560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31561 { (case "(($ac_try" in
31562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31563 *) ac_try_echo=$ac_try;;
31565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31566 (eval "$ac_try") 2>&5
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); }; } &&
31570 { ac_try='test -s conftest$ac_exeext'
31571 { (case "(($ac_try" in
31572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31573 *) ac_try_echo=$ac_try;;
31575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31576 (eval "$ac_try") 2>&5
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); }; }; then
31582 echo "$as_me: failed program was:" >&5
31583 sed 's/^/| /' conftest.$ac_ext >&5
31588 rm -f core conftest.err conftest.$ac_objext \
31589 conftest$ac_exeext conftest.$ac_ext
31594 { echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
31595 echo "${ECHO_T}$ol_cv_db_db_43" >&6; }
31597 if test $ol_cv_db_db_43 = yes ; then
31598 ol_cv_lib_db=-ldb-43
31602 if test $ol_cv_lib_db = no ; then
31603 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
31604 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6; }
31605 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
31606 echo $ECHO_N "(cached) $ECHO_C" >&6
31611 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31613 cat >conftest.$ac_ext <<_ACEOF
31616 cat confdefs.h >>conftest.$ac_ext
31617 cat >>conftest.$ac_ext <<_ACEOF
31618 /* end confdefs.h. */
31620 #ifdef HAVE_DB_185_H
31621 # include <db_185.h>
31626 #ifndef DB_VERSION_MAJOR
31627 # define DB_VERSION_MAJOR 1
31631 #define NULL ((void*)0)
31638 #if DB_VERSION_MAJOR > 1
31641 int major, minor, patch;
31643 version = db_version( &major, &minor, &patch );
31645 if( major != DB_VERSION_MAJOR ||
31646 minor < DB_VERSION_MINOR )
31648 printf("Berkeley DB version mismatch\n"
31649 "\theader: %s\n\tlibrary: %s\n",
31650 DB_VERSION_STRING, version);
31656 #if DB_VERSION_MAJOR > 2
31657 db_env_create( NULL, 0 );
31658 #elif DB_VERSION_MAJOR > 1
31659 db_appexit( NULL );
31661 (void) dbopen( NULL, 0, 0, 0, NULL);
31668 rm -f conftest.$ac_objext conftest$ac_exeext
31669 if { (ac_try="$ac_link"
31670 case "(($ac_try" in
31671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31672 *) ac_try_echo=$ac_try;;
31674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31675 (eval "$ac_link") 2>conftest.er1
31677 grep -v '^ *+' conftest.er1 >conftest.err
31679 cat conftest.err >&5
31680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681 (exit $ac_status); } &&
31682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31683 { (case "(($ac_try" in
31684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31685 *) ac_try_echo=$ac_try;;
31687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31688 (eval "$ac_try") 2>&5
31690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31691 (exit $ac_status); }; } &&
31692 { ac_try='test -s conftest$ac_exeext'
31693 { (case "(($ac_try" in
31694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31695 *) ac_try_echo=$ac_try;;
31697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31698 (eval "$ac_try") 2>&5
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); }; }; then
31702 ol_cv_db_db_4_dot_3=yes
31704 echo "$as_me: failed program was:" >&5
31705 sed 's/^/| /' conftest.$ac_ext >&5
31707 ol_cv_db_db_4_dot_3=no
31710 rm -f core conftest.err conftest.$ac_objext \
31711 conftest$ac_exeext conftest.$ac_ext
31716 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
31717 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6; }
31719 if test $ol_cv_db_db_4_dot_3 = yes ; then
31720 ol_cv_lib_db=-ldb-4.3
31724 if test $ol_cv_lib_db = no ; then
31725 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
31726 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6; }
31727 if test "${ol_cv_db_db_4_3+set}" = set; then
31728 echo $ECHO_N "(cached) $ECHO_C" >&6
31733 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31735 cat >conftest.$ac_ext <<_ACEOF
31738 cat confdefs.h >>conftest.$ac_ext
31739 cat >>conftest.$ac_ext <<_ACEOF
31740 /* end confdefs.h. */
31742 #ifdef HAVE_DB_185_H
31743 # include <db_185.h>
31748 #ifndef DB_VERSION_MAJOR
31749 # define DB_VERSION_MAJOR 1
31753 #define NULL ((void*)0)
31760 #if DB_VERSION_MAJOR > 1
31763 int major, minor, patch;
31765 version = db_version( &major, &minor, &patch );
31767 if( major != DB_VERSION_MAJOR ||
31768 minor < DB_VERSION_MINOR )
31770 printf("Berkeley DB version mismatch\n"
31771 "\theader: %s\n\tlibrary: %s\n",
31772 DB_VERSION_STRING, version);
31778 #if DB_VERSION_MAJOR > 2
31779 db_env_create( NULL, 0 );
31780 #elif DB_VERSION_MAJOR > 1
31781 db_appexit( NULL );
31783 (void) dbopen( NULL, 0, 0, 0, NULL);
31790 rm -f conftest.$ac_objext conftest$ac_exeext
31791 if { (ac_try="$ac_link"
31792 case "(($ac_try" in
31793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31794 *) ac_try_echo=$ac_try;;
31796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31797 (eval "$ac_link") 2>conftest.er1
31799 grep -v '^ *+' conftest.er1 >conftest.err
31801 cat conftest.err >&5
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); } &&
31804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31805 { (case "(($ac_try" in
31806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31807 *) ac_try_echo=$ac_try;;
31809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31810 (eval "$ac_try") 2>&5
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); }; } &&
31814 { ac_try='test -s conftest$ac_exeext'
31815 { (case "(($ac_try" in
31816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817 *) ac_try_echo=$ac_try;;
31819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820 (eval "$ac_try") 2>&5
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); }; }; then
31824 ol_cv_db_db_4_3=yes
31826 echo "$as_me: failed program was:" >&5
31827 sed 's/^/| /' conftest.$ac_ext >&5
31832 rm -f core conftest.err conftest.$ac_objext \
31833 conftest$ac_exeext conftest.$ac_ext
31838 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
31839 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6; }
31841 if test $ol_cv_db_db_4_3 = yes ; then
31842 ol_cv_lib_db=-ldb-4-3
31846 elif test $ol_cv_bdb_minor = 2 ; then
31847 if test $ol_cv_lib_db = no ; then
31848 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
31849 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6; }
31850 if test "${ol_cv_db_db42+set}" = set; then
31851 echo $ECHO_N "(cached) $ECHO_C" >&6
31856 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31858 cat >conftest.$ac_ext <<_ACEOF
31861 cat confdefs.h >>conftest.$ac_ext
31862 cat >>conftest.$ac_ext <<_ACEOF
31863 /* end confdefs.h. */
31865 #ifdef HAVE_DB_185_H
31866 # include <db_185.h>
31871 #ifndef DB_VERSION_MAJOR
31872 # define DB_VERSION_MAJOR 1
31876 #define NULL ((void*)0)
31883 #if DB_VERSION_MAJOR > 1
31886 int major, minor, patch;
31888 version = db_version( &major, &minor, &patch );
31890 if( major != DB_VERSION_MAJOR ||
31891 minor < DB_VERSION_MINOR )
31893 printf("Berkeley DB version mismatch\n"
31894 "\theader: %s\n\tlibrary: %s\n",
31895 DB_VERSION_STRING, version);
31901 #if DB_VERSION_MAJOR > 2
31902 db_env_create( NULL, 0 );
31903 #elif DB_VERSION_MAJOR > 1
31904 db_appexit( NULL );
31906 (void) dbopen( NULL, 0, 0, 0, NULL);
31913 rm -f conftest.$ac_objext conftest$ac_exeext
31914 if { (ac_try="$ac_link"
31915 case "(($ac_try" in
31916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31917 *) ac_try_echo=$ac_try;;
31919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31920 (eval "$ac_link") 2>conftest.er1
31922 grep -v '^ *+' conftest.er1 >conftest.err
31924 cat conftest.err >&5
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926 (exit $ac_status); } &&
31927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31928 { (case "(($ac_try" in
31929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31930 *) ac_try_echo=$ac_try;;
31932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31933 (eval "$ac_try") 2>&5
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); }; } &&
31937 { ac_try='test -s conftest$ac_exeext'
31938 { (case "(($ac_try" in
31939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_try") 2>&5
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); }; }; then
31949 echo "$as_me: failed program was:" >&5
31950 sed 's/^/| /' conftest.$ac_ext >&5
31955 rm -f core conftest.err conftest.$ac_objext \
31956 conftest$ac_exeext conftest.$ac_ext
31961 { echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
31962 echo "${ECHO_T}$ol_cv_db_db42" >&6; }
31964 if test $ol_cv_db_db42 = yes ; then
31965 ol_cv_lib_db=-ldb42
31969 if test $ol_cv_lib_db = no ; then
31970 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
31971 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6; }
31972 if test "${ol_cv_db_db_42+set}" = set; then
31973 echo $ECHO_N "(cached) $ECHO_C" >&6
31978 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31980 cat >conftest.$ac_ext <<_ACEOF
31983 cat confdefs.h >>conftest.$ac_ext
31984 cat >>conftest.$ac_ext <<_ACEOF
31985 /* end confdefs.h. */
31987 #ifdef HAVE_DB_185_H
31988 # include <db_185.h>
31993 #ifndef DB_VERSION_MAJOR
31994 # define DB_VERSION_MAJOR 1
31998 #define NULL ((void*)0)
32005 #if DB_VERSION_MAJOR > 1
32008 int major, minor, patch;
32010 version = db_version( &major, &minor, &patch );
32012 if( major != DB_VERSION_MAJOR ||
32013 minor < DB_VERSION_MINOR )
32015 printf("Berkeley DB version mismatch\n"
32016 "\theader: %s\n\tlibrary: %s\n",
32017 DB_VERSION_STRING, version);
32023 #if DB_VERSION_MAJOR > 2
32024 db_env_create( NULL, 0 );
32025 #elif DB_VERSION_MAJOR > 1
32026 db_appexit( NULL );
32028 (void) dbopen( NULL, 0, 0, 0, NULL);
32035 rm -f conftest.$ac_objext conftest$ac_exeext
32036 if { (ac_try="$ac_link"
32037 case "(($ac_try" in
32038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32039 *) ac_try_echo=$ac_try;;
32041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32042 (eval "$ac_link") 2>conftest.er1
32044 grep -v '^ *+' conftest.er1 >conftest.err
32046 cat conftest.err >&5
32047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048 (exit $ac_status); } &&
32049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32050 { (case "(($ac_try" in
32051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32052 *) ac_try_echo=$ac_try;;
32054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32055 (eval "$ac_try") 2>&5
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); }; } &&
32059 { ac_try='test -s conftest$ac_exeext'
32060 { (case "(($ac_try" in
32061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062 *) ac_try_echo=$ac_try;;
32064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065 (eval "$ac_try") 2>&5
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; }; then
32071 echo "$as_me: failed program was:" >&5
32072 sed 's/^/| /' conftest.$ac_ext >&5
32077 rm -f core conftest.err conftest.$ac_objext \
32078 conftest$ac_exeext conftest.$ac_ext
32083 { echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32084 echo "${ECHO_T}$ol_cv_db_db_42" >&6; }
32086 if test $ol_cv_db_db_42 = yes ; then
32087 ol_cv_lib_db=-ldb-42
32091 if test $ol_cv_lib_db = no ; then
32092 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32093 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6; }
32094 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32095 echo $ECHO_N "(cached) $ECHO_C" >&6
32100 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32102 cat >conftest.$ac_ext <<_ACEOF
32105 cat confdefs.h >>conftest.$ac_ext
32106 cat >>conftest.$ac_ext <<_ACEOF
32107 /* end confdefs.h. */
32109 #ifdef HAVE_DB_185_H
32110 # include <db_185.h>
32115 #ifndef DB_VERSION_MAJOR
32116 # define DB_VERSION_MAJOR 1
32120 #define NULL ((void*)0)
32127 #if DB_VERSION_MAJOR > 1
32130 int major, minor, patch;
32132 version = db_version( &major, &minor, &patch );
32134 if( major != DB_VERSION_MAJOR ||
32135 minor < DB_VERSION_MINOR )
32137 printf("Berkeley DB version mismatch\n"
32138 "\theader: %s\n\tlibrary: %s\n",
32139 DB_VERSION_STRING, version);
32145 #if DB_VERSION_MAJOR > 2
32146 db_env_create( NULL, 0 );
32147 #elif DB_VERSION_MAJOR > 1
32148 db_appexit( NULL );
32150 (void) dbopen( NULL, 0, 0, 0, NULL);
32157 rm -f conftest.$ac_objext conftest$ac_exeext
32158 if { (ac_try="$ac_link"
32159 case "(($ac_try" in
32160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161 *) ac_try_echo=$ac_try;;
32163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164 (eval "$ac_link") 2>conftest.er1
32166 grep -v '^ *+' conftest.er1 >conftest.err
32168 cat conftest.err >&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); } &&
32171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32172 { (case "(($ac_try" in
32173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174 *) ac_try_echo=$ac_try;;
32176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177 (eval "$ac_try") 2>&5
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); }; } &&
32181 { ac_try='test -s conftest$ac_exeext'
32182 { (case "(($ac_try" in
32183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32184 *) ac_try_echo=$ac_try;;
32186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32187 (eval "$ac_try") 2>&5
32189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32190 (exit $ac_status); }; }; then
32191 ol_cv_db_db_4_dot_2=yes
32193 echo "$as_me: failed program was:" >&5
32194 sed 's/^/| /' conftest.$ac_ext >&5
32196 ol_cv_db_db_4_dot_2=no
32199 rm -f core conftest.err conftest.$ac_objext \
32200 conftest$ac_exeext conftest.$ac_ext
32205 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32206 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6; }
32208 if test $ol_cv_db_db_4_dot_2 = yes ; then
32209 ol_cv_lib_db=-ldb-4.2
32213 if test $ol_cv_lib_db = no ; then
32214 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32215 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6; }
32216 if test "${ol_cv_db_db_4_2+set}" = set; then
32217 echo $ECHO_N "(cached) $ECHO_C" >&6
32222 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32224 cat >conftest.$ac_ext <<_ACEOF
32227 cat confdefs.h >>conftest.$ac_ext
32228 cat >>conftest.$ac_ext <<_ACEOF
32229 /* end confdefs.h. */
32231 #ifdef HAVE_DB_185_H
32232 # include <db_185.h>
32237 #ifndef DB_VERSION_MAJOR
32238 # define DB_VERSION_MAJOR 1
32242 #define NULL ((void*)0)
32249 #if DB_VERSION_MAJOR > 1
32252 int major, minor, patch;
32254 version = db_version( &major, &minor, &patch );
32256 if( major != DB_VERSION_MAJOR ||
32257 minor < DB_VERSION_MINOR )
32259 printf("Berkeley DB version mismatch\n"
32260 "\theader: %s\n\tlibrary: %s\n",
32261 DB_VERSION_STRING, version);
32267 #if DB_VERSION_MAJOR > 2
32268 db_env_create( NULL, 0 );
32269 #elif DB_VERSION_MAJOR > 1
32270 db_appexit( NULL );
32272 (void) dbopen( NULL, 0, 0, 0, NULL);
32279 rm -f conftest.$ac_objext conftest$ac_exeext
32280 if { (ac_try="$ac_link"
32281 case "(($ac_try" in
32282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32283 *) ac_try_echo=$ac_try;;
32285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286 (eval "$ac_link") 2>conftest.er1
32288 grep -v '^ *+' conftest.er1 >conftest.err
32290 cat conftest.err >&5
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); } &&
32293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32294 { (case "(($ac_try" in
32295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32296 *) ac_try_echo=$ac_try;;
32298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32299 (eval "$ac_try") 2>&5
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); }; } &&
32303 { ac_try='test -s conftest$ac_exeext'
32304 { (case "(($ac_try" in
32305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306 *) ac_try_echo=$ac_try;;
32308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309 (eval "$ac_try") 2>&5
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; }; then
32313 ol_cv_db_db_4_2=yes
32315 echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.$ac_ext >&5
32321 rm -f core conftest.err conftest.$ac_objext \
32322 conftest$ac_exeext conftest.$ac_ext
32327 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32328 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6; }
32330 if test $ol_cv_db_db_4_2 = yes ; then
32331 ol_cv_lib_db=-ldb-4-2
32335 elif test $ol_cv_bdb_minor = 1 ; then
32336 if test $ol_cv_lib_db = no ; then
32337 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32338 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6; }
32339 if test "${ol_cv_db_db41+set}" = set; then
32340 echo $ECHO_N "(cached) $ECHO_C" >&6
32345 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32347 cat >conftest.$ac_ext <<_ACEOF
32350 cat confdefs.h >>conftest.$ac_ext
32351 cat >>conftest.$ac_ext <<_ACEOF
32352 /* end confdefs.h. */
32354 #ifdef HAVE_DB_185_H
32355 # include <db_185.h>
32360 #ifndef DB_VERSION_MAJOR
32361 # define DB_VERSION_MAJOR 1
32365 #define NULL ((void*)0)
32372 #if DB_VERSION_MAJOR > 1
32375 int major, minor, patch;
32377 version = db_version( &major, &minor, &patch );
32379 if( major != DB_VERSION_MAJOR ||
32380 minor < DB_VERSION_MINOR )
32382 printf("Berkeley DB version mismatch\n"
32383 "\theader: %s\n\tlibrary: %s\n",
32384 DB_VERSION_STRING, version);
32390 #if DB_VERSION_MAJOR > 2
32391 db_env_create( NULL, 0 );
32392 #elif DB_VERSION_MAJOR > 1
32393 db_appexit( NULL );
32395 (void) dbopen( NULL, 0, 0, 0, NULL);
32402 rm -f conftest.$ac_objext conftest$ac_exeext
32403 if { (ac_try="$ac_link"
32404 case "(($ac_try" in
32405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406 *) ac_try_echo=$ac_try;;
32408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409 (eval "$ac_link") 2>conftest.er1
32411 grep -v '^ *+' conftest.er1 >conftest.err
32413 cat conftest.err >&5
32414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415 (exit $ac_status); } &&
32416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32417 { (case "(($ac_try" in
32418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32419 *) ac_try_echo=$ac_try;;
32421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32422 (eval "$ac_try") 2>&5
32424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425 (exit $ac_status); }; } &&
32426 { ac_try='test -s conftest$ac_exeext'
32427 { (case "(($ac_try" in
32428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32429 *) ac_try_echo=$ac_try;;
32431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32432 (eval "$ac_try") 2>&5
32434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32435 (exit $ac_status); }; }; then
32438 echo "$as_me: failed program was:" >&5
32439 sed 's/^/| /' conftest.$ac_ext >&5
32444 rm -f core conftest.err conftest.$ac_objext \
32445 conftest$ac_exeext conftest.$ac_ext
32450 { echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
32451 echo "${ECHO_T}$ol_cv_db_db41" >&6; }
32453 if test $ol_cv_db_db41 = yes ; then
32454 ol_cv_lib_db=-ldb41
32458 if test $ol_cv_lib_db = no ; then
32459 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
32460 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6; }
32461 if test "${ol_cv_db_db_41+set}" = set; then
32462 echo $ECHO_N "(cached) $ECHO_C" >&6
32467 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32469 cat >conftest.$ac_ext <<_ACEOF
32472 cat confdefs.h >>conftest.$ac_ext
32473 cat >>conftest.$ac_ext <<_ACEOF
32474 /* end confdefs.h. */
32476 #ifdef HAVE_DB_185_H
32477 # include <db_185.h>
32482 #ifndef DB_VERSION_MAJOR
32483 # define DB_VERSION_MAJOR 1
32487 #define NULL ((void*)0)
32494 #if DB_VERSION_MAJOR > 1
32497 int major, minor, patch;
32499 version = db_version( &major, &minor, &patch );
32501 if( major != DB_VERSION_MAJOR ||
32502 minor < DB_VERSION_MINOR )
32504 printf("Berkeley DB version mismatch\n"
32505 "\theader: %s\n\tlibrary: %s\n",
32506 DB_VERSION_STRING, version);
32512 #if DB_VERSION_MAJOR > 2
32513 db_env_create( NULL, 0 );
32514 #elif DB_VERSION_MAJOR > 1
32515 db_appexit( NULL );
32517 (void) dbopen( NULL, 0, 0, 0, NULL);
32524 rm -f conftest.$ac_objext conftest$ac_exeext
32525 if { (ac_try="$ac_link"
32526 case "(($ac_try" in
32527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32528 *) ac_try_echo=$ac_try;;
32530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32531 (eval "$ac_link") 2>conftest.er1
32533 grep -v '^ *+' conftest.er1 >conftest.err
32535 cat conftest.err >&5
32536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537 (exit $ac_status); } &&
32538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32539 { (case "(($ac_try" in
32540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32541 *) ac_try_echo=$ac_try;;
32543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32544 (eval "$ac_try") 2>&5
32546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32547 (exit $ac_status); }; } &&
32548 { ac_try='test -s conftest$ac_exeext'
32549 { (case "(($ac_try" in
32550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32551 *) ac_try_echo=$ac_try;;
32553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32554 (eval "$ac_try") 2>&5
32556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557 (exit $ac_status); }; }; then
32560 echo "$as_me: failed program was:" >&5
32561 sed 's/^/| /' conftest.$ac_ext >&5
32566 rm -f core conftest.err conftest.$ac_objext \
32567 conftest$ac_exeext conftest.$ac_ext
32572 { echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
32573 echo "${ECHO_T}$ol_cv_db_db_41" >&6; }
32575 if test $ol_cv_db_db_41 = yes ; then
32576 ol_cv_lib_db=-ldb-41
32580 if test $ol_cv_lib_db = no ; then
32581 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
32582 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6; }
32583 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
32584 echo $ECHO_N "(cached) $ECHO_C" >&6
32589 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32591 cat >conftest.$ac_ext <<_ACEOF
32594 cat confdefs.h >>conftest.$ac_ext
32595 cat >>conftest.$ac_ext <<_ACEOF
32596 /* end confdefs.h. */
32598 #ifdef HAVE_DB_185_H
32599 # include <db_185.h>
32604 #ifndef DB_VERSION_MAJOR
32605 # define DB_VERSION_MAJOR 1
32609 #define NULL ((void*)0)
32616 #if DB_VERSION_MAJOR > 1
32619 int major, minor, patch;
32621 version = db_version( &major, &minor, &patch );
32623 if( major != DB_VERSION_MAJOR ||
32624 minor < DB_VERSION_MINOR )
32626 printf("Berkeley DB version mismatch\n"
32627 "\theader: %s\n\tlibrary: %s\n",
32628 DB_VERSION_STRING, version);
32634 #if DB_VERSION_MAJOR > 2
32635 db_env_create( NULL, 0 );
32636 #elif DB_VERSION_MAJOR > 1
32637 db_appexit( NULL );
32639 (void) dbopen( NULL, 0, 0, 0, NULL);
32646 rm -f conftest.$ac_objext conftest$ac_exeext
32647 if { (ac_try="$ac_link"
32648 case "(($ac_try" in
32649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650 *) ac_try_echo=$ac_try;;
32652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32653 (eval "$ac_link") 2>conftest.er1
32655 grep -v '^ *+' conftest.er1 >conftest.err
32657 cat conftest.err >&5
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); } &&
32660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32661 { (case "(($ac_try" in
32662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32663 *) ac_try_echo=$ac_try;;
32665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32666 (eval "$ac_try") 2>&5
32668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669 (exit $ac_status); }; } &&
32670 { ac_try='test -s conftest$ac_exeext'
32671 { (case "(($ac_try" in
32672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32673 *) ac_try_echo=$ac_try;;
32675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32676 (eval "$ac_try") 2>&5
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); }; }; then
32680 ol_cv_db_db_4_dot_1=yes
32682 echo "$as_me: failed program was:" >&5
32683 sed 's/^/| /' conftest.$ac_ext >&5
32685 ol_cv_db_db_4_dot_1=no
32688 rm -f core conftest.err conftest.$ac_objext \
32689 conftest$ac_exeext conftest.$ac_ext
32694 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
32695 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6; }
32697 if test $ol_cv_db_db_4_dot_1 = yes ; then
32698 ol_cv_lib_db=-ldb-4.1
32702 if test $ol_cv_lib_db = no ; then
32703 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
32704 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6; }
32705 if test "${ol_cv_db_db_4_1+set}" = set; then
32706 echo $ECHO_N "(cached) $ECHO_C" >&6
32711 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32713 cat >conftest.$ac_ext <<_ACEOF
32716 cat confdefs.h >>conftest.$ac_ext
32717 cat >>conftest.$ac_ext <<_ACEOF
32718 /* end confdefs.h. */
32720 #ifdef HAVE_DB_185_H
32721 # include <db_185.h>
32726 #ifndef DB_VERSION_MAJOR
32727 # define DB_VERSION_MAJOR 1
32731 #define NULL ((void*)0)
32738 #if DB_VERSION_MAJOR > 1
32741 int major, minor, patch;
32743 version = db_version( &major, &minor, &patch );
32745 if( major != DB_VERSION_MAJOR ||
32746 minor < DB_VERSION_MINOR )
32748 printf("Berkeley DB version mismatch\n"
32749 "\theader: %s\n\tlibrary: %s\n",
32750 DB_VERSION_STRING, version);
32756 #if DB_VERSION_MAJOR > 2
32757 db_env_create( NULL, 0 );
32758 #elif DB_VERSION_MAJOR > 1
32759 db_appexit( NULL );
32761 (void) dbopen( NULL, 0, 0, 0, NULL);
32768 rm -f conftest.$ac_objext conftest$ac_exeext
32769 if { (ac_try="$ac_link"
32770 case "(($ac_try" in
32771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32772 *) ac_try_echo=$ac_try;;
32774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32775 (eval "$ac_link") 2>conftest.er1
32777 grep -v '^ *+' conftest.er1 >conftest.err
32779 cat conftest.err >&5
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); } &&
32782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32783 { (case "(($ac_try" in
32784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32785 *) ac_try_echo=$ac_try;;
32787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32788 (eval "$ac_try") 2>&5
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); }; } &&
32792 { ac_try='test -s conftest$ac_exeext'
32793 { (case "(($ac_try" in
32794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795 *) ac_try_echo=$ac_try;;
32797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798 (eval "$ac_try") 2>&5
32800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); }; }; then
32802 ol_cv_db_db_4_1=yes
32804 echo "$as_me: failed program was:" >&5
32805 sed 's/^/| /' conftest.$ac_ext >&5
32810 rm -f core conftest.err conftest.$ac_objext \
32811 conftest$ac_exeext conftest.$ac_ext
32816 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
32817 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6; }
32819 if test $ol_cv_db_db_4_1 = yes ; then
32820 ol_cv_lib_db=-ldb-4-1
32825 if test $ol_cv_lib_db = no ; then
32826 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
32827 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
32828 if test "${ol_cv_db_db_4+set}" = set; then
32829 echo $ECHO_N "(cached) $ECHO_C" >&6
32834 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32836 cat >conftest.$ac_ext <<_ACEOF
32839 cat confdefs.h >>conftest.$ac_ext
32840 cat >>conftest.$ac_ext <<_ACEOF
32841 /* end confdefs.h. */
32843 #ifdef HAVE_DB_185_H
32844 # include <db_185.h>
32849 #ifndef DB_VERSION_MAJOR
32850 # define DB_VERSION_MAJOR 1
32854 #define NULL ((void*)0)
32861 #if DB_VERSION_MAJOR > 1
32864 int major, minor, patch;
32866 version = db_version( &major, &minor, &patch );
32868 if( major != DB_VERSION_MAJOR ||
32869 minor < DB_VERSION_MINOR )
32871 printf("Berkeley DB version mismatch\n"
32872 "\theader: %s\n\tlibrary: %s\n",
32873 DB_VERSION_STRING, version);
32879 #if DB_VERSION_MAJOR > 2
32880 db_env_create( NULL, 0 );
32881 #elif DB_VERSION_MAJOR > 1
32882 db_appexit( NULL );
32884 (void) dbopen( NULL, 0, 0, 0, NULL);
32891 rm -f conftest.$ac_objext conftest$ac_exeext
32892 if { (ac_try="$ac_link"
32893 case "(($ac_try" in
32894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32895 *) ac_try_echo=$ac_try;;
32897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32898 (eval "$ac_link") 2>conftest.er1
32900 grep -v '^ *+' conftest.er1 >conftest.err
32902 cat conftest.err >&5
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); } &&
32905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32906 { (case "(($ac_try" in
32907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32908 *) ac_try_echo=$ac_try;;
32910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32911 (eval "$ac_try") 2>&5
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); }; } &&
32915 { ac_try='test -s conftest$ac_exeext'
32916 { (case "(($ac_try" in
32917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32918 *) ac_try_echo=$ac_try;;
32920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32921 (eval "$ac_try") 2>&5
32923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924 (exit $ac_status); }; }; then
32927 echo "$as_me: failed program was:" >&5
32928 sed 's/^/| /' conftest.$ac_ext >&5
32933 rm -f core conftest.err conftest.$ac_objext \
32934 conftest$ac_exeext conftest.$ac_ext
32939 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
32940 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
32942 if test $ol_cv_db_db_4 = yes ; then
32943 ol_cv_lib_db=-ldb-4
32947 if test $ol_cv_lib_db = no ; then
32948 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
32949 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
32950 if test "${ol_cv_db_db4+set}" = set; then
32951 echo $ECHO_N "(cached) $ECHO_C" >&6
32956 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32958 cat >conftest.$ac_ext <<_ACEOF
32961 cat confdefs.h >>conftest.$ac_ext
32962 cat >>conftest.$ac_ext <<_ACEOF
32963 /* end confdefs.h. */
32965 #ifdef HAVE_DB_185_H
32966 # include <db_185.h>
32971 #ifndef DB_VERSION_MAJOR
32972 # define DB_VERSION_MAJOR 1
32976 #define NULL ((void*)0)
32983 #if DB_VERSION_MAJOR > 1
32986 int major, minor, patch;
32988 version = db_version( &major, &minor, &patch );
32990 if( major != DB_VERSION_MAJOR ||
32991 minor < DB_VERSION_MINOR )
32993 printf("Berkeley DB version mismatch\n"
32994 "\theader: %s\n\tlibrary: %s\n",
32995 DB_VERSION_STRING, version);
33001 #if DB_VERSION_MAJOR > 2
33002 db_env_create( NULL, 0 );
33003 #elif DB_VERSION_MAJOR > 1
33004 db_appexit( NULL );
33006 (void) dbopen( NULL, 0, 0, 0, NULL);
33013 rm -f conftest.$ac_objext conftest$ac_exeext
33014 if { (ac_try="$ac_link"
33015 case "(($ac_try" in
33016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33017 *) ac_try_echo=$ac_try;;
33019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33020 (eval "$ac_link") 2>conftest.er1
33022 grep -v '^ *+' conftest.er1 >conftest.err
33024 cat conftest.err >&5
33025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026 (exit $ac_status); } &&
33027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33028 { (case "(($ac_try" in
33029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33030 *) ac_try_echo=$ac_try;;
33032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33033 (eval "$ac_try") 2>&5
33035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036 (exit $ac_status); }; } &&
33037 { ac_try='test -s conftest$ac_exeext'
33038 { (case "(($ac_try" in
33039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33040 *) ac_try_echo=$ac_try;;
33042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33043 (eval "$ac_try") 2>&5
33045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046 (exit $ac_status); }; }; then
33049 echo "$as_me: failed program was:" >&5
33050 sed 's/^/| /' conftest.$ac_ext >&5
33055 rm -f core conftest.err conftest.$ac_objext \
33056 conftest$ac_exeext conftest.$ac_ext
33061 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33062 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
33064 if test $ol_cv_db_db4 = yes ; then
33069 if test $ol_cv_lib_db = no ; then
33070 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33071 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
33072 if test "${ol_cv_db_db+set}" = set; then
33073 echo $ECHO_N "(cached) $ECHO_C" >&6
33078 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33080 cat >conftest.$ac_ext <<_ACEOF
33083 cat confdefs.h >>conftest.$ac_ext
33084 cat >>conftest.$ac_ext <<_ACEOF
33085 /* end confdefs.h. */
33087 #ifdef HAVE_DB_185_H
33088 # include <db_185.h>
33093 #ifndef DB_VERSION_MAJOR
33094 # define DB_VERSION_MAJOR 1
33098 #define NULL ((void*)0)
33105 #if DB_VERSION_MAJOR > 1
33108 int major, minor, patch;
33110 version = db_version( &major, &minor, &patch );
33112 if( major != DB_VERSION_MAJOR ||
33113 minor < DB_VERSION_MINOR )
33115 printf("Berkeley DB version mismatch\n"
33116 "\theader: %s\n\tlibrary: %s\n",
33117 DB_VERSION_STRING, version);
33123 #if DB_VERSION_MAJOR > 2
33124 db_env_create( NULL, 0 );
33125 #elif DB_VERSION_MAJOR > 1
33126 db_appexit( NULL );
33128 (void) dbopen( NULL, 0, 0, 0, NULL);
33135 rm -f conftest.$ac_objext conftest$ac_exeext
33136 if { (ac_try="$ac_link"
33137 case "(($ac_try" in
33138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33139 *) ac_try_echo=$ac_try;;
33141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33142 (eval "$ac_link") 2>conftest.er1
33144 grep -v '^ *+' conftest.er1 >conftest.err
33146 cat conftest.err >&5
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); } &&
33149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33150 { (case "(($ac_try" in
33151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33152 *) ac_try_echo=$ac_try;;
33154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33155 (eval "$ac_try") 2>&5
33157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158 (exit $ac_status); }; } &&
33159 { ac_try='test -s conftest$ac_exeext'
33160 { (case "(($ac_try" in
33161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33162 *) ac_try_echo=$ac_try;;
33164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33165 (eval "$ac_try") 2>&5
33167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168 (exit $ac_status); }; }; then
33171 echo "$as_me: failed program was:" >&5
33172 sed 's/^/| /' conftest.$ac_ext >&5
33177 rm -f core conftest.err conftest.$ac_objext \
33178 conftest$ac_exeext conftest.$ac_ext
33183 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33184 echo "${ECHO_T}$ol_cv_db_db" >&6; }
33186 if test $ol_cv_db_db = yes ; then
33192 elif test $ol_cv_bdb_major = 3 ; then
33193 if test $ol_cv_lib_db = no ; then
33194 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33195 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6; }
33196 if test "${ol_cv_db_db3+set}" = set; then
33197 echo $ECHO_N "(cached) $ECHO_C" >&6
33202 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33204 cat >conftest.$ac_ext <<_ACEOF
33207 cat confdefs.h >>conftest.$ac_ext
33208 cat >>conftest.$ac_ext <<_ACEOF
33209 /* end confdefs.h. */
33211 #ifdef HAVE_DB_185_H
33212 # include <db_185.h>
33217 #ifndef DB_VERSION_MAJOR
33218 # define DB_VERSION_MAJOR 1
33222 #define NULL ((void*)0)
33229 #if DB_VERSION_MAJOR > 1
33232 int major, minor, patch;
33234 version = db_version( &major, &minor, &patch );
33236 if( major != DB_VERSION_MAJOR ||
33237 minor < DB_VERSION_MINOR )
33239 printf("Berkeley DB version mismatch\n"
33240 "\theader: %s\n\tlibrary: %s\n",
33241 DB_VERSION_STRING, version);
33247 #if DB_VERSION_MAJOR > 2
33248 db_env_create( NULL, 0 );
33249 #elif DB_VERSION_MAJOR > 1
33250 db_appexit( NULL );
33252 (void) dbopen( NULL, 0, 0, 0, NULL);
33259 rm -f conftest.$ac_objext conftest$ac_exeext
33260 if { (ac_try="$ac_link"
33261 case "(($ac_try" in
33262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33263 *) ac_try_echo=$ac_try;;
33265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33266 (eval "$ac_link") 2>conftest.er1
33268 grep -v '^ *+' conftest.er1 >conftest.err
33270 cat conftest.err >&5
33271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272 (exit $ac_status); } &&
33273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33274 { (case "(($ac_try" in
33275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33276 *) ac_try_echo=$ac_try;;
33278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33279 (eval "$ac_try") 2>&5
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); }; } &&
33283 { ac_try='test -s conftest$ac_exeext'
33284 { (case "(($ac_try" in
33285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33286 *) ac_try_echo=$ac_try;;
33288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33289 (eval "$ac_try") 2>&5
33291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292 (exit $ac_status); }; }; then
33295 echo "$as_me: failed program was:" >&5
33296 sed 's/^/| /' conftest.$ac_ext >&5
33301 rm -f core conftest.err conftest.$ac_objext \
33302 conftest$ac_exeext conftest.$ac_ext
33307 { echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33308 echo "${ECHO_T}$ol_cv_db_db3" >&6; }
33310 if test $ol_cv_db_db3 = yes ; then
33315 if test $ol_cv_lib_db = no ; then
33316 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33317 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6; }
33318 if test "${ol_cv_db_db_3+set}" = set; then
33319 echo $ECHO_N "(cached) $ECHO_C" >&6
33324 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33326 cat >conftest.$ac_ext <<_ACEOF
33329 cat confdefs.h >>conftest.$ac_ext
33330 cat >>conftest.$ac_ext <<_ACEOF
33331 /* end confdefs.h. */
33333 #ifdef HAVE_DB_185_H
33334 # include <db_185.h>
33339 #ifndef DB_VERSION_MAJOR
33340 # define DB_VERSION_MAJOR 1
33344 #define NULL ((void*)0)
33351 #if DB_VERSION_MAJOR > 1
33354 int major, minor, patch;
33356 version = db_version( &major, &minor, &patch );
33358 if( major != DB_VERSION_MAJOR ||
33359 minor < DB_VERSION_MINOR )
33361 printf("Berkeley DB version mismatch\n"
33362 "\theader: %s\n\tlibrary: %s\n",
33363 DB_VERSION_STRING, version);
33369 #if DB_VERSION_MAJOR > 2
33370 db_env_create( NULL, 0 );
33371 #elif DB_VERSION_MAJOR > 1
33372 db_appexit( NULL );
33374 (void) dbopen( NULL, 0, 0, 0, NULL);
33381 rm -f conftest.$ac_objext conftest$ac_exeext
33382 if { (ac_try="$ac_link"
33383 case "(($ac_try" in
33384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385 *) ac_try_echo=$ac_try;;
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388 (eval "$ac_link") 2>conftest.er1
33390 grep -v '^ *+' conftest.er1 >conftest.err
33392 cat conftest.err >&5
33393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394 (exit $ac_status); } &&
33395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33396 { (case "(($ac_try" in
33397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33398 *) ac_try_echo=$ac_try;;
33400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33401 (eval "$ac_try") 2>&5
33403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404 (exit $ac_status); }; } &&
33405 { ac_try='test -s conftest$ac_exeext'
33406 { (case "(($ac_try" in
33407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33408 *) ac_try_echo=$ac_try;;
33410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33411 (eval "$ac_try") 2>&5
33413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414 (exit $ac_status); }; }; then
33417 echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.$ac_ext >&5
33423 rm -f core conftest.err conftest.$ac_objext \
33424 conftest$ac_exeext conftest.$ac_ext
33429 { echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33430 echo "${ECHO_T}$ol_cv_db_db_3" >&6; }
33432 if test $ol_cv_db_db_3 = yes ; then
33433 ol_cv_lib_db=-ldb-3
33438 elif test $ol_cv_bdb_major = 2 ; then
33439 if test $ol_cv_lib_db = no ; then
33440 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33441 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6; }
33442 if test "${ol_cv_db_db2+set}" = set; then
33443 echo $ECHO_N "(cached) $ECHO_C" >&6
33448 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33450 cat >conftest.$ac_ext <<_ACEOF
33453 cat confdefs.h >>conftest.$ac_ext
33454 cat >>conftest.$ac_ext <<_ACEOF
33455 /* end confdefs.h. */
33457 #ifdef HAVE_DB_185_H
33458 # include <db_185.h>
33463 #ifndef DB_VERSION_MAJOR
33464 # define DB_VERSION_MAJOR 1
33468 #define NULL ((void*)0)
33475 #if DB_VERSION_MAJOR > 1
33478 int major, minor, patch;
33480 version = db_version( &major, &minor, &patch );
33482 if( major != DB_VERSION_MAJOR ||
33483 minor < DB_VERSION_MINOR )
33485 printf("Berkeley DB version mismatch\n"
33486 "\theader: %s\n\tlibrary: %s\n",
33487 DB_VERSION_STRING, version);
33493 #if DB_VERSION_MAJOR > 2
33494 db_env_create( NULL, 0 );
33495 #elif DB_VERSION_MAJOR > 1
33496 db_appexit( NULL );
33498 (void) dbopen( NULL, 0, 0, 0, NULL);
33505 rm -f conftest.$ac_objext conftest$ac_exeext
33506 if { (ac_try="$ac_link"
33507 case "(($ac_try" in
33508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33509 *) ac_try_echo=$ac_try;;
33511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33512 (eval "$ac_link") 2>conftest.er1
33514 grep -v '^ *+' conftest.er1 >conftest.err
33516 cat conftest.err >&5
33517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 (exit $ac_status); } &&
33519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33520 { (case "(($ac_try" in
33521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33522 *) ac_try_echo=$ac_try;;
33524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33525 (eval "$ac_try") 2>&5
33527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528 (exit $ac_status); }; } &&
33529 { ac_try='test -s conftest$ac_exeext'
33530 { (case "(($ac_try" in
33531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33532 *) ac_try_echo=$ac_try;;
33534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33535 (eval "$ac_try") 2>&5
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); }; }; then
33541 echo "$as_me: failed program was:" >&5
33542 sed 's/^/| /' conftest.$ac_ext >&5
33547 rm -f core conftest.err conftest.$ac_objext \
33548 conftest$ac_exeext conftest.$ac_ext
33553 { echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
33554 echo "${ECHO_T}$ol_cv_db_db2" >&6; }
33556 if test $ol_cv_db_db2 = yes ; then
33561 if test $ol_cv_lib_db = no ; then
33562 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
33563 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6; }
33564 if test "${ol_cv_db_db_2+set}" = set; then
33565 echo $ECHO_N "(cached) $ECHO_C" >&6
33570 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33572 cat >conftest.$ac_ext <<_ACEOF
33575 cat confdefs.h >>conftest.$ac_ext
33576 cat >>conftest.$ac_ext <<_ACEOF
33577 /* end confdefs.h. */
33579 #ifdef HAVE_DB_185_H
33580 # include <db_185.h>
33585 #ifndef DB_VERSION_MAJOR
33586 # define DB_VERSION_MAJOR 1
33590 #define NULL ((void*)0)
33597 #if DB_VERSION_MAJOR > 1
33600 int major, minor, patch;
33602 version = db_version( &major, &minor, &patch );
33604 if( major != DB_VERSION_MAJOR ||
33605 minor < DB_VERSION_MINOR )
33607 printf("Berkeley DB version mismatch\n"
33608 "\theader: %s\n\tlibrary: %s\n",
33609 DB_VERSION_STRING, version);
33615 #if DB_VERSION_MAJOR > 2
33616 db_env_create( NULL, 0 );
33617 #elif DB_VERSION_MAJOR > 1
33618 db_appexit( NULL );
33620 (void) dbopen( NULL, 0, 0, 0, NULL);
33627 rm -f conftest.$ac_objext conftest$ac_exeext
33628 if { (ac_try="$ac_link"
33629 case "(($ac_try" in
33630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33631 *) ac_try_echo=$ac_try;;
33633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33634 (eval "$ac_link") 2>conftest.er1
33636 grep -v '^ *+' conftest.er1 >conftest.err
33638 cat conftest.err >&5
33639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640 (exit $ac_status); } &&
33641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33642 { (case "(($ac_try" in
33643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33644 *) ac_try_echo=$ac_try;;
33646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33647 (eval "$ac_try") 2>&5
33649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650 (exit $ac_status); }; } &&
33651 { ac_try='test -s conftest$ac_exeext'
33652 { (case "(($ac_try" in
33653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33654 *) ac_try_echo=$ac_try;;
33656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33657 (eval "$ac_try") 2>&5
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; }; then
33663 echo "$as_me: failed program was:" >&5
33664 sed 's/^/| /' conftest.$ac_ext >&5
33669 rm -f core conftest.err conftest.$ac_objext \
33670 conftest$ac_exeext conftest.$ac_ext
33675 { echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
33676 echo "${ECHO_T}$ol_cv_db_db_2" >&6; }
33678 if test $ol_cv_db_db_2 = yes ; then
33679 ol_cv_lib_db=-ldb-2
33684 elif test $ol_cv_bdb_major = 1 ; then
33685 if test $ol_cv_lib_db = no ; then
33686 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
33687 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6; }
33688 if test "${ol_cv_db_db1+set}" = set; then
33689 echo $ECHO_N "(cached) $ECHO_C" >&6
33694 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33696 cat >conftest.$ac_ext <<_ACEOF
33699 cat confdefs.h >>conftest.$ac_ext
33700 cat >>conftest.$ac_ext <<_ACEOF
33701 /* end confdefs.h. */
33703 #ifdef HAVE_DB_185_H
33704 # include <db_185.h>
33709 #ifndef DB_VERSION_MAJOR
33710 # define DB_VERSION_MAJOR 1
33714 #define NULL ((void*)0)
33721 #if DB_VERSION_MAJOR > 1
33724 int major, minor, patch;
33726 version = db_version( &major, &minor, &patch );
33728 if( major != DB_VERSION_MAJOR ||
33729 minor < DB_VERSION_MINOR )
33731 printf("Berkeley DB version mismatch\n"
33732 "\theader: %s\n\tlibrary: %s\n",
33733 DB_VERSION_STRING, version);
33739 #if DB_VERSION_MAJOR > 2
33740 db_env_create( NULL, 0 );
33741 #elif DB_VERSION_MAJOR > 1
33742 db_appexit( NULL );
33744 (void) dbopen( NULL, 0, 0, 0, NULL);
33751 rm -f conftest.$ac_objext conftest$ac_exeext
33752 if { (ac_try="$ac_link"
33753 case "(($ac_try" in
33754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33755 *) ac_try_echo=$ac_try;;
33757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33758 (eval "$ac_link") 2>conftest.er1
33760 grep -v '^ *+' conftest.er1 >conftest.err
33762 cat conftest.err >&5
33763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764 (exit $ac_status); } &&
33765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33766 { (case "(($ac_try" in
33767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33768 *) ac_try_echo=$ac_try;;
33770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33771 (eval "$ac_try") 2>&5
33773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33774 (exit $ac_status); }; } &&
33775 { ac_try='test -s conftest$ac_exeext'
33776 { (case "(($ac_try" in
33777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33778 *) ac_try_echo=$ac_try;;
33780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33781 (eval "$ac_try") 2>&5
33783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784 (exit $ac_status); }; }; then
33787 echo "$as_me: failed program was:" >&5
33788 sed 's/^/| /' conftest.$ac_ext >&5
33793 rm -f core conftest.err conftest.$ac_objext \
33794 conftest$ac_exeext conftest.$ac_ext
33799 { echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
33800 echo "${ECHO_T}$ol_cv_db_db1" >&6; }
33802 if test $ol_cv_db_db1 = yes ; then
33807 if test $ol_cv_lib_db = no ; then
33808 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
33809 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6; }
33810 if test "${ol_cv_db_db_1+set}" = set; then
33811 echo $ECHO_N "(cached) $ECHO_C" >&6
33816 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33818 cat >conftest.$ac_ext <<_ACEOF
33821 cat confdefs.h >>conftest.$ac_ext
33822 cat >>conftest.$ac_ext <<_ACEOF
33823 /* end confdefs.h. */
33825 #ifdef HAVE_DB_185_H
33826 # include <db_185.h>
33831 #ifndef DB_VERSION_MAJOR
33832 # define DB_VERSION_MAJOR 1
33836 #define NULL ((void*)0)
33843 #if DB_VERSION_MAJOR > 1
33846 int major, minor, patch;
33848 version = db_version( &major, &minor, &patch );
33850 if( major != DB_VERSION_MAJOR ||
33851 minor < DB_VERSION_MINOR )
33853 printf("Berkeley DB version mismatch\n"
33854 "\theader: %s\n\tlibrary: %s\n",
33855 DB_VERSION_STRING, version);
33861 #if DB_VERSION_MAJOR > 2
33862 db_env_create( NULL, 0 );
33863 #elif DB_VERSION_MAJOR > 1
33864 db_appexit( NULL );
33866 (void) dbopen( NULL, 0, 0, 0, NULL);
33873 rm -f conftest.$ac_objext conftest$ac_exeext
33874 if { (ac_try="$ac_link"
33875 case "(($ac_try" in
33876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33877 *) ac_try_echo=$ac_try;;
33879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33880 (eval "$ac_link") 2>conftest.er1
33882 grep -v '^ *+' conftest.er1 >conftest.err
33884 cat conftest.err >&5
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); } &&
33887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33888 { (case "(($ac_try" in
33889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33890 *) ac_try_echo=$ac_try;;
33892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33893 (eval "$ac_try") 2>&5
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); }; } &&
33897 { ac_try='test -s conftest$ac_exeext'
33898 { (case "(($ac_try" in
33899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33900 *) ac_try_echo=$ac_try;;
33902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33903 (eval "$ac_try") 2>&5
33905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33906 (exit $ac_status); }; }; then
33909 echo "$as_me: failed program was:" >&5
33910 sed 's/^/| /' conftest.$ac_ext >&5
33915 rm -f core conftest.err conftest.$ac_objext \
33916 conftest$ac_exeext conftest.$ac_ext
33921 { echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
33922 echo "${ECHO_T}$ol_cv_db_db_1" >&6; }
33924 if test $ol_cv_db_db_1 = yes ; then
33925 ol_cv_lib_db=-ldb-1
33930 if test $ol_cv_lib_db = no ; then
33931 { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
33932 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
33933 if test "${ol_cv_db_none+set}" = set; then
33934 echo $ECHO_N "(cached) $ECHO_C" >&6
33939 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33941 cat >conftest.$ac_ext <<_ACEOF
33944 cat confdefs.h >>conftest.$ac_ext
33945 cat >>conftest.$ac_ext <<_ACEOF
33946 /* end confdefs.h. */
33948 #ifdef HAVE_DB_185_H
33949 # include <db_185.h>
33954 #ifndef DB_VERSION_MAJOR
33955 # define DB_VERSION_MAJOR 1
33959 #define NULL ((void*)0)
33966 #if DB_VERSION_MAJOR > 1
33969 int major, minor, patch;
33971 version = db_version( &major, &minor, &patch );
33973 if( major != DB_VERSION_MAJOR ||
33974 minor < DB_VERSION_MINOR )
33976 printf("Berkeley DB version mismatch\n"
33977 "\theader: %s\n\tlibrary: %s\n",
33978 DB_VERSION_STRING, version);
33984 #if DB_VERSION_MAJOR > 2
33985 db_env_create( NULL, 0 );
33986 #elif DB_VERSION_MAJOR > 1
33987 db_appexit( NULL );
33989 (void) dbopen( NULL, 0, 0, 0, NULL);
33996 rm -f conftest.$ac_objext conftest$ac_exeext
33997 if { (ac_try="$ac_link"
33998 case "(($ac_try" in
33999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000 *) ac_try_echo=$ac_try;;
34002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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" || test ! -s conftest.err'
34011 { (case "(($ac_try" in
34012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34013 *) ac_try_echo=$ac_try;;
34015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34016 (eval "$ac_try") 2>&5
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); }; } &&
34020 { ac_try='test -s conftest$ac_exeext'
34021 { (case "(($ac_try" in
34022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34023 *) ac_try_echo=$ac_try;;
34025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34026 (eval "$ac_try") 2>&5
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; }; then
34032 echo "$as_me: failed program was:" >&5
34033 sed 's/^/| /' conftest.$ac_ext >&5
34038 rm -f core conftest.err conftest.$ac_objext \
34039 conftest$ac_exeext conftest.$ac_ext
34044 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34045 echo "${ECHO_T}$ol_cv_db_none" >&6; }
34047 if test $ol_cv_db_none = yes ; then
34053 if test "$ol_cv_lib_db" != no ; then
34054 ol_cv_berkeley_db=yes
34055 { echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34056 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6; }
34057 if test "${ol_cv_berkeley_db_version+set}" = set; then
34058 echo $ECHO_N "(cached) $ECHO_C" >&6
34062 LIBS="$LTHREAD_LIBS $LIBS"
34063 if test $ol_cv_lib_db != yes ; then
34064 LIBS="$ol_cv_lib_db $LIBS"
34067 if test "$cross_compiling" = yes; then
34068 ol_cv_berkeley_db_version=cross
34070 cat >conftest.$ac_ext <<_ACEOF
34073 cat confdefs.h >>conftest.$ac_ext
34074 cat >>conftest.$ac_ext <<_ACEOF
34075 /* end confdefs.h. */
34077 #ifdef HAVE_DB_185_H
34082 #ifndef DB_VERSION_MAJOR
34083 # define DB_VERSION_MAJOR 1
34086 #define NULL ((void *)0)
34090 #if DB_VERSION_MAJOR > 1
34092 int major, minor, patch;
34094 version = db_version( &major, &minor, &patch );
34096 if( major != DB_VERSION_MAJOR ||
34097 minor != DB_VERSION_MINOR ||
34098 patch != DB_VERSION_PATCH )
34100 printf("Berkeley DB version mismatch\n"
34101 "\theader: %s\n\tlibrary: %s\n",
34102 DB_VERSION_STRING, version);
34110 rm -f conftest$ac_exeext
34111 if { (ac_try="$ac_link"
34112 case "(($ac_try" in
34113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34114 *) ac_try_echo=$ac_try;;
34116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34117 (eval "$ac_link") 2>&5
34119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34121 { (case "(($ac_try" in
34122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34123 *) ac_try_echo=$ac_try;;
34125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34126 (eval "$ac_try") 2>&5
34128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129 (exit $ac_status); }; }; then
34130 ol_cv_berkeley_db_version=yes
34132 echo "$as_me: program exited with status $ac_status" >&5
34133 echo "$as_me: failed program was:" >&5
34134 sed 's/^/| /' conftest.$ac_ext >&5
34136 ( exit $ac_status )
34137 ol_cv_berkeley_db_version=no
34139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34147 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34148 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
34150 if test $ol_cv_berkeley_db_version = no ; then
34151 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34152 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34153 { (exit 1); exit 1; }; }
34156 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34157 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
34158 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34159 echo $ECHO_N "(cached) $ECHO_C" >&6
34163 LIBS="$LTHREAD_LIBS $LIBS"
34164 if test $ol_cv_lib_db != yes ; then
34165 LIBS="$ol_cv_lib_db $LIBS"
34168 if test "$cross_compiling" = yes; then
34169 ol_cv_berkeley_db_thread=cross
34171 cat >conftest.$ac_ext <<_ACEOF
34174 cat confdefs.h >>conftest.$ac_ext
34175 cat >>conftest.$ac_ext <<_ACEOF
34176 /* end confdefs.h. */
34178 #ifdef HAVE_DB_185_H
34184 #define NULL ((void *)0)
34189 u_int32_t flags = DB_CREATE |
34195 #if DB_VERSION_MAJOR > 2
34196 DB_ENV *env = NULL;
34198 rc = db_env_create( &env, 0 );
34200 flags |= DB_INIT_MPOOL;
34201 #ifdef DB_MPOOL_PRIVATE
34202 flags |= DB_MPOOL_PRIVATE;
34206 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34210 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34211 rc = env->open( env, NULL, flags, 0 );
34213 rc = env->open( env, NULL, NULL, flags, 0 );
34217 rc = env->close( env, 0 );
34221 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34227 memset( &env, '\0', sizeof(env) );
34229 rc = db_appinit( NULL, NULL, &env, flags );
34232 db_appexit( &env );
34235 unlink("__db_mpool.share");
34236 unlink("__db_lock.share");
34242 rm -f conftest$ac_exeext
34243 if { (ac_try="$ac_link"
34244 case "(($ac_try" in
34245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34246 *) ac_try_echo=$ac_try;;
34248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34249 (eval "$ac_link") 2>&5
34251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34253 { (case "(($ac_try" in
34254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34255 *) ac_try_echo=$ac_try;;
34257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34258 (eval "$ac_try") 2>&5
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); }; }; then
34262 ol_cv_berkeley_db_thread=yes
34264 echo "$as_me: program exited with status $ac_status" >&5
34265 echo "$as_me: failed program was:" >&5
34266 sed 's/^/| /' conftest.$ac_ext >&5
34268 ( exit $ac_status )
34269 ol_cv_berkeley_db_thread=no
34271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34279 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34280 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
34282 if test $ol_cv_berkeley_db_thread != no ; then
34284 cat >>confdefs.h <<\_ACEOF
34285 #define HAVE_BERKELEY_DB_THREAD 1
34294 if test $ol_cv_berkeley_db = no ; then
34295 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34296 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34297 { (exit 1); exit 1; }; }
34301 cat >>confdefs.h <<\_ACEOF
34302 #define HAVE_BERKELEY_DB 1
34306 if test $ol_cv_lib_db != yes ; then
34307 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
34310 { echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34311 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6; }
34312 if test "${ol_cv_bdb_compat+set}" = set; then
34313 echo $ECHO_N "(cached) $ECHO_C" >&6
34316 cat >conftest.$ac_ext <<_ACEOF
34319 cat confdefs.h >>conftest.$ac_ext
34320 cat >>conftest.$ac_ext <<_ACEOF
34321 /* end confdefs.h. */
34325 /* this check could be improved */
34326 #ifndef DB_VERSION_MAJOR
34327 # define DB_VERSION_MAJOR 1
34329 #ifndef DB_VERSION_MINOR
34330 # define DB_VERSION_MINOR 0
34333 /* require 4.2 or later, but exclude 4.3 */
34334 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
34335 __db_version_compat
34339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34340 $EGREP "__db_version_compat" >/dev/null 2>&1; then
34341 ol_cv_bdb_compat=yes
34343 ol_cv_bdb_compat=no
34348 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34349 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
34352 if test $ol_cv_bdb_compat != yes ; then
34353 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34354 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34355 { (exit 1); exit 1; }; }
34358 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
34364 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
34365 BUILD_LIBS_DYNAMIC=shared
34367 cat >>confdefs.h <<\_ACEOF
34368 #define LDAP_LIBS_DYNAMIC 1
34373 BUILD_LIBS_DYNAMIC=static
34377 if test $ol_enable_wrappers != no ; then
34379 for ac_header in tcpd.h
34381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34386 echo $ECHO_N "(cached) $ECHO_C" >&6
34388 ac_res=`eval echo '${'$as_ac_Header'}'`
34389 { echo "$as_me:$LINENO: result: $ac_res" >&5
34390 echo "${ECHO_T}$ac_res" >&6; }
34392 # Is the header compilable?
34393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34395 cat >conftest.$ac_ext <<_ACEOF
34398 cat confdefs.h >>conftest.$ac_ext
34399 cat >>conftest.$ac_ext <<_ACEOF
34400 /* end confdefs.h. */
34401 $ac_includes_default
34402 #include <$ac_header>
34404 rm -f conftest.$ac_objext
34405 if { (ac_try="$ac_compile"
34406 case "(($ac_try" in
34407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34408 *) ac_try_echo=$ac_try;;
34410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34411 (eval "$ac_compile") 2>conftest.er1
34413 grep -v '^ *+' conftest.er1 >conftest.err
34415 cat conftest.err >&5
34416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34417 (exit $ac_status); } &&
34418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34419 { (case "(($ac_try" in
34420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34421 *) ac_try_echo=$ac_try;;
34423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34424 (eval "$ac_try") 2>&5
34426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34427 (exit $ac_status); }; } &&
34428 { ac_try='test -s conftest.$ac_objext'
34429 { (case "(($ac_try" in
34430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34431 *) ac_try_echo=$ac_try;;
34433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34434 (eval "$ac_try") 2>&5
34436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437 (exit $ac_status); }; }; then
34438 ac_header_compiler=yes
34440 echo "$as_me: failed program was:" >&5
34441 sed 's/^/| /' conftest.$ac_ext >&5
34443 ac_header_compiler=no
34446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34448 echo "${ECHO_T}$ac_header_compiler" >&6; }
34450 # Is the header present?
34451 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34453 cat >conftest.$ac_ext <<_ACEOF
34456 cat confdefs.h >>conftest.$ac_ext
34457 cat >>conftest.$ac_ext <<_ACEOF
34458 /* end confdefs.h. */
34459 #include <$ac_header>
34461 if { (ac_try="$ac_cpp conftest.$ac_ext"
34462 case "(($ac_try" in
34463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34464 *) ac_try_echo=$ac_try;;
34466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34469 grep -v '^ *+' conftest.er1 >conftest.err
34471 cat conftest.err >&5
34472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34473 (exit $ac_status); } >/dev/null; then
34474 if test -s conftest.err; then
34475 ac_cpp_err=$ac_c_preproc_warn_flag
34476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34483 if test -z "$ac_cpp_err"; then
34484 ac_header_preproc=yes
34486 echo "$as_me: failed program was:" >&5
34487 sed 's/^/| /' conftest.$ac_ext >&5
34489 ac_header_preproc=no
34492 rm -f conftest.err conftest.$ac_ext
34493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34494 echo "${ECHO_T}$ac_header_preproc" >&6; }
34496 # So? What about this header?
34497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34503 ac_header_preproc=yes
34506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34519 ## --------------------------------------------- ##
34520 ## Report this to <http://www.openldap.org/its/> ##
34521 ## --------------------------------------------- ##
34523 ) | sed "s/^/$as_me: WARNING: /" >&2
34526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34529 echo $ECHO_N "(cached) $ECHO_C" >&6
34531 eval "$as_ac_Header=\$ac_header_preproc"
34533 ac_res=`eval echo '${'$as_ac_Header'}'`
34534 { echo "$as_me:$LINENO: result: $ac_res" >&5
34535 echo "${ECHO_T}$ac_res" >&6; }
34538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34539 cat >>confdefs.h <<_ACEOF
34540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34543 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
34544 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
34546 LIBS="$LIBS -lwrap"
34547 cat >conftest.$ac_ext <<_ACEOF
34550 cat confdefs.h >>conftest.$ac_ext
34551 cat >>conftest.$ac_ext <<_ACEOF
34552 /* end confdefs.h. */
34555 int allow_severity = 0;
34556 int deny_severity = 0;
34558 struct request_info *req;
34570 rm -f conftest.$ac_objext conftest$ac_exeext
34571 if { (ac_try="$ac_link"
34572 case "(($ac_try" in
34573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34574 *) ac_try_echo=$ac_try;;
34576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34577 (eval "$ac_link") 2>conftest.er1
34579 grep -v '^ *+' conftest.er1 >conftest.err
34581 cat conftest.err >&5
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); } &&
34584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34585 { (case "(($ac_try" in
34586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34587 *) ac_try_echo=$ac_try;;
34589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34590 (eval "$ac_try") 2>&5
34592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593 (exit $ac_status); }; } &&
34594 { ac_try='test -s conftest$ac_exeext'
34595 { (case "(($ac_try" in
34596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34597 *) ac_try_echo=$ac_try;;
34599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34600 (eval "$ac_try") 2>&5
34602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34603 (exit $ac_status); }; }; then
34604 { echo "$as_me:$LINENO: result: -lwrap" >&5
34605 echo "${ECHO_T}-lwrap" >&6; }
34609 echo "$as_me: failed program was:" >&5
34610 sed 's/^/| /' conftest.$ac_ext >&5
34614 cat >conftest.$ac_ext <<_ACEOF
34617 cat confdefs.h >>conftest.$ac_ext
34618 cat >>conftest.$ac_ext <<_ACEOF
34619 /* end confdefs.h. */
34622 int allow_severity = 0;
34623 int deny_severity = 0;
34625 struct request_info *req;
34637 rm -f conftest.$ac_objext conftest$ac_exeext
34638 if { (ac_try="$ac_link"
34639 case "(($ac_try" in
34640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34641 *) ac_try_echo=$ac_try;;
34643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34644 (eval "$ac_link") 2>conftest.er1
34646 grep -v '^ *+' conftest.er1 >conftest.err
34648 cat conftest.err >&5
34649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650 (exit $ac_status); } &&
34651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34652 { (case "(($ac_try" in
34653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34654 *) ac_try_echo=$ac_try;;
34656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34657 (eval "$ac_try") 2>&5
34659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660 (exit $ac_status); }; } &&
34661 { ac_try='test -s conftest$ac_exeext'
34662 { (case "(($ac_try" in
34663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34664 *) ac_try_echo=$ac_try;;
34666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34667 (eval "$ac_try") 2>&5
34669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670 (exit $ac_status); }; }; then
34671 { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
34672 echo "${ECHO_T}-lwrap -lnsl" >&6; }
34674 LIBS="$save_LIBS -lnsl"
34676 echo "$as_me: failed program was:" >&5
34677 sed 's/^/| /' conftest.$ac_ext >&5
34680 { echo "$as_me:$LINENO: result: no" >&5
34681 echo "${ECHO_T}no" >&6; }
34686 rm -f core conftest.err conftest.$ac_objext \
34687 conftest$ac_exeext conftest.$ac_ext
34690 rm -f core conftest.err conftest.$ac_objext \
34691 conftest$ac_exeext conftest.$ac_ext
34699 if test $have_wrappers = yes ; then
34701 cat >>confdefs.h <<\_ACEOF
34702 #define HAVE_TCPD 1
34706 elif test $ol_enable_wrappers = yes ; then
34707 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
34708 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
34709 { (exit 1); exit 1; }; }
34711 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
34712 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
34717 if test $ol_enable_syslog != no ; then
34718 { echo "$as_me:$LINENO: checking for openlog" >&5
34719 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
34720 if test "${ac_cv_func_openlog+set}" = set; then
34721 echo $ECHO_N "(cached) $ECHO_C" >&6
34723 cat >conftest.$ac_ext <<_ACEOF
34726 cat confdefs.h >>conftest.$ac_ext
34727 cat >>conftest.$ac_ext <<_ACEOF
34728 /* end confdefs.h. */
34729 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
34730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34731 #define openlog innocuous_openlog
34733 /* System header to define __stub macros and hopefully few prototypes,
34734 which can conflict with char openlog (); below.
34735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34736 <limits.h> exists even on freestanding compilers. */
34739 # include <limits.h>
34741 # include <assert.h>
34746 /* Override any GCC internal prototype to avoid an error.
34747 Use char because int might match the return type of a GCC
34748 builtin and then its argument prototype would still apply. */
34753 /* The GNU C library defines this for functions which it implements
34754 to always fail with ENOSYS. Some functions are actually named
34755 something starting with __ and the normal name is an alias. */
34756 #if defined __stub_openlog || defined __stub___openlog
34768 rm -f conftest.$ac_objext conftest$ac_exeext
34769 if { (ac_try="$ac_link"
34770 case "(($ac_try" in
34771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34772 *) ac_try_echo=$ac_try;;
34774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34775 (eval "$ac_link") 2>conftest.er1
34777 grep -v '^ *+' conftest.er1 >conftest.err
34779 cat conftest.err >&5
34780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34781 (exit $ac_status); } &&
34782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34783 { (case "(($ac_try" in
34784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34785 *) ac_try_echo=$ac_try;;
34787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34788 (eval "$ac_try") 2>&5
34790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791 (exit $ac_status); }; } &&
34792 { ac_try='test -s conftest$ac_exeext'
34793 { (case "(($ac_try" in
34794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34795 *) ac_try_echo=$ac_try;;
34797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34798 (eval "$ac_try") 2>&5
34800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34801 (exit $ac_status); }; }; then
34802 ac_cv_func_openlog=yes
34804 echo "$as_me: failed program was:" >&5
34805 sed 's/^/| /' conftest.$ac_ext >&5
34807 ac_cv_func_openlog=no
34810 rm -f core conftest.err conftest.$ac_objext \
34811 conftest$ac_exeext conftest.$ac_ext
34813 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
34814 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
34816 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
34817 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
34818 echo "$as_me: error: could not find syslog" >&2;}
34819 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
34821 ol_enable_syslog=$ac_cv_func_openlog
34825 if test $ol_enable_sql != no ; then
34828 for ac_header in sql.h sqlext.h
34830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34835 echo $ECHO_N "(cached) $ECHO_C" >&6
34837 ac_res=`eval echo '${'$as_ac_Header'}'`
34838 { echo "$as_me:$LINENO: result: $ac_res" >&5
34839 echo "${ECHO_T}$ac_res" >&6; }
34841 # Is the header compilable?
34842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34844 cat >conftest.$ac_ext <<_ACEOF
34847 cat confdefs.h >>conftest.$ac_ext
34848 cat >>conftest.$ac_ext <<_ACEOF
34849 /* end confdefs.h. */
34850 $ac_includes_default
34851 #include <$ac_header>
34853 rm -f conftest.$ac_objext
34854 if { (ac_try="$ac_compile"
34855 case "(($ac_try" in
34856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34857 *) ac_try_echo=$ac_try;;
34859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34860 (eval "$ac_compile") 2>conftest.er1
34862 grep -v '^ *+' conftest.er1 >conftest.err
34864 cat conftest.err >&5
34865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34866 (exit $ac_status); } &&
34867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34868 { (case "(($ac_try" in
34869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34870 *) ac_try_echo=$ac_try;;
34872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34873 (eval "$ac_try") 2>&5
34875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34876 (exit $ac_status); }; } &&
34877 { ac_try='test -s conftest.$ac_objext'
34878 { (case "(($ac_try" in
34879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34880 *) ac_try_echo=$ac_try;;
34882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34883 (eval "$ac_try") 2>&5
34885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886 (exit $ac_status); }; }; then
34887 ac_header_compiler=yes
34889 echo "$as_me: failed program was:" >&5
34890 sed 's/^/| /' conftest.$ac_ext >&5
34892 ac_header_compiler=no
34895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34897 echo "${ECHO_T}$ac_header_compiler" >&6; }
34899 # Is the header present?
34900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34902 cat >conftest.$ac_ext <<_ACEOF
34905 cat confdefs.h >>conftest.$ac_ext
34906 cat >>conftest.$ac_ext <<_ACEOF
34907 /* end confdefs.h. */
34908 #include <$ac_header>
34910 if { (ac_try="$ac_cpp conftest.$ac_ext"
34911 case "(($ac_try" in
34912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34913 *) ac_try_echo=$ac_try;;
34915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34918 grep -v '^ *+' conftest.er1 >conftest.err
34920 cat conftest.err >&5
34921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); } >/dev/null; then
34923 if test -s conftest.err; then
34924 ac_cpp_err=$ac_c_preproc_warn_flag
34925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34932 if test -z "$ac_cpp_err"; then
34933 ac_header_preproc=yes
34935 echo "$as_me: failed program was:" >&5
34936 sed 's/^/| /' conftest.$ac_ext >&5
34938 ac_header_preproc=no
34941 rm -f conftest.err conftest.$ac_ext
34942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34943 echo "${ECHO_T}$ac_header_preproc" >&6; }
34945 # So? What about this header?
34946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34952 ac_header_preproc=yes
34955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34968 ## --------------------------------------------- ##
34969 ## Report this to <http://www.openldap.org/its/> ##
34970 ## --------------------------------------------- ##
34972 ) | sed "s/^/$as_me: WARNING: /" >&2
34975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34978 echo $ECHO_N "(cached) $ECHO_C" >&6
34980 eval "$as_ac_Header=\$ac_header_preproc"
34982 ac_res=`eval echo '${'$as_ac_Header'}'`
34983 { echo "$as_me:$LINENO: result: $ac_res" >&5
34984 echo "${ECHO_T}$ac_res" >&6; }
34987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34988 cat >>confdefs.h <<_ACEOF
34989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34994 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
34995 echo "$as_me: error: could not locate SQL headers" >&2;}
34996 { (exit 1); exit 1; }; }
35004 LIBS="$LTHREAD_LIBS"
35006 if test $ol_with_odbc = auto ; then
35007 ol_with_odbc="iodbc unixodbc"
35010 for odbc in $ol_with_odbc ; do
35011 if test $ol_link_sql = no ; then
35014 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
35015 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
35016 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
35017 echo $ECHO_N "(cached) $ECHO_C" >&6
35019 ac_check_lib_save_LIBS=$LIBS
35020 LIBS="-liodbc $LIBS"
35021 cat >conftest.$ac_ext <<_ACEOF
35024 cat confdefs.h >>conftest.$ac_ext
35025 cat >>conftest.$ac_ext <<_ACEOF
35026 /* end confdefs.h. */
35028 /* Override any GCC internal prototype to avoid an error.
35029 Use char because int might match the return type of a GCC
35030 builtin and then its argument prototype would still apply. */
35034 char SQLDriverConnect ();
35038 return SQLDriverConnect ();
35043 rm -f conftest.$ac_objext conftest$ac_exeext
35044 if { (ac_try="$ac_link"
35045 case "(($ac_try" in
35046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35047 *) ac_try_echo=$ac_try;;
35049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35050 (eval "$ac_link") 2>conftest.er1
35052 grep -v '^ *+' conftest.er1 >conftest.err
35054 cat conftest.err >&5
35055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056 (exit $ac_status); } &&
35057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35058 { (case "(($ac_try" in
35059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35060 *) ac_try_echo=$ac_try;;
35062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35063 (eval "$ac_try") 2>&5
35065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066 (exit $ac_status); }; } &&
35067 { ac_try='test -s conftest$ac_exeext'
35068 { (case "(($ac_try" in
35069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35070 *) ac_try_echo=$ac_try;;
35072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35073 (eval "$ac_try") 2>&5
35075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076 (exit $ac_status); }; }; then
35077 ac_cv_lib_iodbc_SQLDriverConnect=yes
35079 echo "$as_me: failed program was:" >&5
35080 sed 's/^/| /' conftest.$ac_ext >&5
35082 ac_cv_lib_iodbc_SQLDriverConnect=no
35085 rm -f core conftest.err conftest.$ac_objext \
35086 conftest$ac_exeext conftest.$ac_ext
35087 LIBS=$ac_check_lib_save_LIBS
35089 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
35090 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
35091 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
35097 if test $have_iodbc = yes ; then
35098 ol_link_sql="-liodbc"
35103 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
35104 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
35105 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
35106 echo $ECHO_N "(cached) $ECHO_C" >&6
35108 ac_check_lib_save_LIBS=$LIBS
35109 LIBS="-lodbc $LIBS"
35110 cat >conftest.$ac_ext <<_ACEOF
35113 cat confdefs.h >>conftest.$ac_ext
35114 cat >>conftest.$ac_ext <<_ACEOF
35115 /* end confdefs.h. */
35117 /* Override any GCC internal prototype to avoid an error.
35118 Use char because int might match the return type of a GCC
35119 builtin and then its argument prototype would still apply. */
35123 char SQLDriverConnect ();
35127 return SQLDriverConnect ();
35132 rm -f conftest.$ac_objext conftest$ac_exeext
35133 if { (ac_try="$ac_link"
35134 case "(($ac_try" in
35135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35136 *) ac_try_echo=$ac_try;;
35138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35139 (eval "$ac_link") 2>conftest.er1
35141 grep -v '^ *+' conftest.er1 >conftest.err
35143 cat conftest.err >&5
35144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145 (exit $ac_status); } &&
35146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35147 { (case "(($ac_try" in
35148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35149 *) ac_try_echo=$ac_try;;
35151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35152 (eval "$ac_try") 2>&5
35154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35155 (exit $ac_status); }; } &&
35156 { ac_try='test -s conftest$ac_exeext'
35157 { (case "(($ac_try" in
35158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35159 *) ac_try_echo=$ac_try;;
35161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35162 (eval "$ac_try") 2>&5
35164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165 (exit $ac_status); }; }; then
35166 ac_cv_lib_odbc_SQLDriverConnect=yes
35168 echo "$as_me: failed program was:" >&5
35169 sed 's/^/| /' conftest.$ac_ext >&5
35171 ac_cv_lib_odbc_SQLDriverConnect=no
35174 rm -f core conftest.err conftest.$ac_objext \
35175 conftest$ac_exeext conftest.$ac_ext
35176 LIBS=$ac_check_lib_save_LIBS
35178 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
35179 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
35180 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
35186 if test $have_odbc = yes ; then
35187 ol_link_sql="-lodbc"
35192 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
35193 echo "$as_me: error: unknown ODBC library" >&2;}
35194 { (exit 1); exit 1; }; }
35202 if test $ol_link_sql != no ; then
35203 SLAPD_SQL_LIBS="$ol_link_sql"
35205 elif test $ol_enable_sql != auto ; then
35206 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
35207 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
35208 { (exit 1); exit 1; }; }
35214 for ac_header in unicode/utypes.h
35216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35221 echo $ECHO_N "(cached) $ECHO_C" >&6
35223 ac_res=`eval echo '${'$as_ac_Header'}'`
35224 { echo "$as_me:$LINENO: result: $ac_res" >&5
35225 echo "${ECHO_T}$ac_res" >&6; }
35227 # Is the header compilable?
35228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35230 cat >conftest.$ac_ext <<_ACEOF
35233 cat confdefs.h >>conftest.$ac_ext
35234 cat >>conftest.$ac_ext <<_ACEOF
35235 /* end confdefs.h. */
35236 $ac_includes_default
35237 #include <$ac_header>
35239 rm -f conftest.$ac_objext
35240 if { (ac_try="$ac_compile"
35241 case "(($ac_try" in
35242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35243 *) ac_try_echo=$ac_try;;
35245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35246 (eval "$ac_compile") 2>conftest.er1
35248 grep -v '^ *+' conftest.er1 >conftest.err
35250 cat conftest.err >&5
35251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252 (exit $ac_status); } &&
35253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35254 { (case "(($ac_try" in
35255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35256 *) ac_try_echo=$ac_try;;
35258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35259 (eval "$ac_try") 2>&5
35261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262 (exit $ac_status); }; } &&
35263 { ac_try='test -s conftest.$ac_objext'
35264 { (case "(($ac_try" in
35265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35266 *) ac_try_echo=$ac_try;;
35268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35269 (eval "$ac_try") 2>&5
35271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272 (exit $ac_status); }; }; then
35273 ac_header_compiler=yes
35275 echo "$as_me: failed program was:" >&5
35276 sed 's/^/| /' conftest.$ac_ext >&5
35278 ac_header_compiler=no
35281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35283 echo "${ECHO_T}$ac_header_compiler" >&6; }
35285 # Is the header present?
35286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35288 cat >conftest.$ac_ext <<_ACEOF
35291 cat confdefs.h >>conftest.$ac_ext
35292 cat >>conftest.$ac_ext <<_ACEOF
35293 /* end confdefs.h. */
35294 #include <$ac_header>
35296 if { (ac_try="$ac_cpp conftest.$ac_ext"
35297 case "(($ac_try" in
35298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35299 *) ac_try_echo=$ac_try;;
35301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35304 grep -v '^ *+' conftest.er1 >conftest.err
35306 cat conftest.err >&5
35307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308 (exit $ac_status); } >/dev/null; then
35309 if test -s conftest.err; then
35310 ac_cpp_err=$ac_c_preproc_warn_flag
35311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35318 if test -z "$ac_cpp_err"; then
35319 ac_header_preproc=yes
35321 echo "$as_me: failed program was:" >&5
35322 sed 's/^/| /' conftest.$ac_ext >&5
35324 ac_header_preproc=no
35327 rm -f conftest.err conftest.$ac_ext
35328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35329 echo "${ECHO_T}$ac_header_preproc" >&6; }
35331 # So? What about this header?
35332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35338 ac_header_preproc=yes
35341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35354 ## --------------------------------------------- ##
35355 ## Report this to <http://www.openldap.org/its/> ##
35356 ## --------------------------------------------- ##
35358 ) | sed "s/^/$as_me: WARNING: /" >&2
35361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35364 echo $ECHO_N "(cached) $ECHO_C" >&6
35366 eval "$as_ac_Header=\$ac_header_preproc"
35368 ac_res=`eval echo '${'$as_ac_Header'}'`
35369 { echo "$as_me:$LINENO: result: $ac_res" >&5
35370 echo "${ECHO_T}$ac_res" >&6; }
35373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35374 cat >>confdefs.h <<_ACEOF
35375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35382 if test $ac_cv_header_unicode_utypes_h = yes ; then
35383 OL_ICULIBS="-licuuc -licudata"
35385 { echo "$as_me:$LINENO: checking for ICU libraries" >&5
35386 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
35387 if test "${ol_cv_lib_icu+set}" = set; then
35388 echo $ECHO_N "(cached) $ECHO_C" >&6
35392 LIBS="$OL_ICULIBS $LIBS"
35393 cat >conftest.$ac_ext <<_ACEOF
35396 cat confdefs.h >>conftest.$ac_ext
35397 cat >>conftest.$ac_ext <<_ACEOF
35398 /* end confdefs.h. */
35400 #include <unicode/utypes.h>
35406 (void) u_errorName(0);
35412 rm -f conftest.$ac_objext conftest$ac_exeext
35413 if { (ac_try="$ac_link"
35414 case "(($ac_try" in
35415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35416 *) ac_try_echo=$ac_try;;
35418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35419 (eval "$ac_link") 2>conftest.er1
35421 grep -v '^ *+' conftest.er1 >conftest.err
35423 cat conftest.err >&5
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); } &&
35426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35427 { (case "(($ac_try" in
35428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35429 *) ac_try_echo=$ac_try;;
35431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35432 (eval "$ac_try") 2>&5
35434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435 (exit $ac_status); }; } &&
35436 { ac_try='test -s conftest$ac_exeext'
35437 { (case "(($ac_try" in
35438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35439 *) ac_try_echo=$ac_try;;
35441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35442 (eval "$ac_try") 2>&5
35444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445 (exit $ac_status); }; }; then
35448 echo "$as_me: failed program was:" >&5
35449 sed 's/^/| /' conftest.$ac_ext >&5
35454 rm -f core conftest.err conftest.$ac_objext \
35455 conftest$ac_exeext conftest.$ac_ext
35459 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
35460 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
35462 if test $ol_cv_lib_icu != no ; then
35463 ol_icu="$OL_ICULIBS"
35465 cat >>confdefs.h <<\_ACEOF
35472 if test "$ol_icu" = no ; then
35473 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
35474 echo "$as_me: WARNING: ICU not available" >&2;}
35481 if test $ol_with_cyrus_sasl != no ; then
35484 for ac_header in sasl/sasl.h sasl.h
35486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35491 echo $ECHO_N "(cached) $ECHO_C" >&6
35493 ac_res=`eval echo '${'$as_ac_Header'}'`
35494 { echo "$as_me:$LINENO: result: $ac_res" >&5
35495 echo "${ECHO_T}$ac_res" >&6; }
35497 # Is the header compilable?
35498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35500 cat >conftest.$ac_ext <<_ACEOF
35503 cat confdefs.h >>conftest.$ac_ext
35504 cat >>conftest.$ac_ext <<_ACEOF
35505 /* end confdefs.h. */
35506 $ac_includes_default
35507 #include <$ac_header>
35509 rm -f conftest.$ac_objext
35510 if { (ac_try="$ac_compile"
35511 case "(($ac_try" in
35512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35513 *) ac_try_echo=$ac_try;;
35515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35516 (eval "$ac_compile") 2>conftest.er1
35518 grep -v '^ *+' conftest.er1 >conftest.err
35520 cat conftest.err >&5
35521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522 (exit $ac_status); } &&
35523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35524 { (case "(($ac_try" in
35525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35526 *) ac_try_echo=$ac_try;;
35528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35529 (eval "$ac_try") 2>&5
35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532 (exit $ac_status); }; } &&
35533 { ac_try='test -s conftest.$ac_objext'
35534 { (case "(($ac_try" in
35535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35536 *) ac_try_echo=$ac_try;;
35538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35539 (eval "$ac_try") 2>&5
35541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542 (exit $ac_status); }; }; then
35543 ac_header_compiler=yes
35545 echo "$as_me: failed program was:" >&5
35546 sed 's/^/| /' conftest.$ac_ext >&5
35548 ac_header_compiler=no
35551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35553 echo "${ECHO_T}$ac_header_compiler" >&6; }
35555 # Is the header present?
35556 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35558 cat >conftest.$ac_ext <<_ACEOF
35561 cat confdefs.h >>conftest.$ac_ext
35562 cat >>conftest.$ac_ext <<_ACEOF
35563 /* end confdefs.h. */
35564 #include <$ac_header>
35566 if { (ac_try="$ac_cpp conftest.$ac_ext"
35567 case "(($ac_try" in
35568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35569 *) ac_try_echo=$ac_try;;
35571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35574 grep -v '^ *+' conftest.er1 >conftest.err
35576 cat conftest.err >&5
35577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578 (exit $ac_status); } >/dev/null; then
35579 if test -s conftest.err; then
35580 ac_cpp_err=$ac_c_preproc_warn_flag
35581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35588 if test -z "$ac_cpp_err"; then
35589 ac_header_preproc=yes
35591 echo "$as_me: failed program was:" >&5
35592 sed 's/^/| /' conftest.$ac_ext >&5
35594 ac_header_preproc=no
35597 rm -f conftest.err conftest.$ac_ext
35598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35599 echo "${ECHO_T}$ac_header_preproc" >&6; }
35601 # So? What about this header?
35602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35608 ac_header_preproc=yes
35611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35624 ## --------------------------------------------- ##
35625 ## Report this to <http://www.openldap.org/its/> ##
35626 ## --------------------------------------------- ##
35628 ) | sed "s/^/$as_me: WARNING: /" >&2
35631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35634 echo $ECHO_N "(cached) $ECHO_C" >&6
35636 eval "$as_ac_Header=\$ac_header_preproc"
35638 ac_res=`eval echo '${'$as_ac_Header'}'`
35639 { echo "$as_me:$LINENO: result: $ac_res" >&5
35640 echo "${ECHO_T}$ac_res" >&6; }
35643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35644 cat >>confdefs.h <<_ACEOF
35645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35653 if test $ac_cv_header_sasl_sasl_h = yes ||
35654 test $ac_cv_header_sasl_h = yes; then
35655 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
35656 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
35657 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
35658 echo $ECHO_N "(cached) $ECHO_C" >&6
35660 ac_check_lib_save_LIBS=$LIBS
35661 LIBS="-lsasl2 $LIBS"
35662 cat >conftest.$ac_ext <<_ACEOF
35665 cat confdefs.h >>conftest.$ac_ext
35666 cat >>conftest.$ac_ext <<_ACEOF
35667 /* end confdefs.h. */
35669 /* Override any GCC internal prototype to avoid an error.
35670 Use char because int might match the return type of a GCC
35671 builtin and then its argument prototype would still apply. */
35675 char sasl_client_init ();
35679 return sasl_client_init ();
35684 rm -f conftest.$ac_objext conftest$ac_exeext
35685 if { (ac_try="$ac_link"
35686 case "(($ac_try" in
35687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35688 *) ac_try_echo=$ac_try;;
35690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35691 (eval "$ac_link") 2>conftest.er1
35693 grep -v '^ *+' conftest.er1 >conftest.err
35695 cat conftest.err >&5
35696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 (exit $ac_status); } &&
35698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35699 { (case "(($ac_try" in
35700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35701 *) ac_try_echo=$ac_try;;
35703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35704 (eval "$ac_try") 2>&5
35706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35707 (exit $ac_status); }; } &&
35708 { ac_try='test -s conftest$ac_exeext'
35709 { (case "(($ac_try" in
35710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35711 *) ac_try_echo=$ac_try;;
35713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35714 (eval "$ac_try") 2>&5
35716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717 (exit $ac_status); }; }; then
35718 ac_cv_lib_sasl2_sasl_client_init=yes
35720 echo "$as_me: failed program was:" >&5
35721 sed 's/^/| /' conftest.$ac_ext >&5
35723 ac_cv_lib_sasl2_sasl_client_init=no
35726 rm -f core conftest.err conftest.$ac_objext \
35727 conftest$ac_exeext conftest.$ac_ext
35728 LIBS=$ac_check_lib_save_LIBS
35730 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
35731 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
35732 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
35733 ol_link_sasl="-lsasl2"
35735 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
35736 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
35737 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
35738 echo $ECHO_N "(cached) $ECHO_C" >&6
35740 ac_check_lib_save_LIBS=$LIBS
35741 LIBS="-lsasl $LIBS"
35742 cat >conftest.$ac_ext <<_ACEOF
35745 cat confdefs.h >>conftest.$ac_ext
35746 cat >>conftest.$ac_ext <<_ACEOF
35747 /* end confdefs.h. */
35749 /* Override any GCC internal prototype to avoid an error.
35750 Use char because int might match the return type of a GCC
35751 builtin and then its argument prototype would still apply. */
35755 char sasl_client_init ();
35759 return sasl_client_init ();
35764 rm -f conftest.$ac_objext conftest$ac_exeext
35765 if { (ac_try="$ac_link"
35766 case "(($ac_try" in
35767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35768 *) ac_try_echo=$ac_try;;
35770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35771 (eval "$ac_link") 2>conftest.er1
35773 grep -v '^ *+' conftest.er1 >conftest.err
35775 cat conftest.err >&5
35776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777 (exit $ac_status); } &&
35778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35779 { (case "(($ac_try" in
35780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35781 *) ac_try_echo=$ac_try;;
35783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35784 (eval "$ac_try") 2>&5
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); }; } &&
35788 { ac_try='test -s conftest$ac_exeext'
35789 { (case "(($ac_try" in
35790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35791 *) ac_try_echo=$ac_try;;
35793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35794 (eval "$ac_try") 2>&5
35796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35797 (exit $ac_status); }; }; then
35798 ac_cv_lib_sasl_sasl_client_init=yes
35800 echo "$as_me: failed program was:" >&5
35801 sed 's/^/| /' conftest.$ac_ext >&5
35803 ac_cv_lib_sasl_sasl_client_init=no
35806 rm -f core conftest.err conftest.$ac_objext \
35807 conftest$ac_exeext conftest.$ac_ext
35808 LIBS=$ac_check_lib_save_LIBS
35810 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
35811 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
35812 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
35813 ol_link_sasl="-lsasl"
35820 if test $ol_link_sasl = no ; then
35821 if test $ol_with_cyrus_sasl != auto ; then
35822 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
35823 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
35824 { (exit 1); exit 1; }; }
35826 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
35827 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
35828 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35829 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35830 if test $ol_link_tls = no ; then
35831 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35832 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35836 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
35837 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
35838 if test "${ol_cv_sasl_compat+set}" = set; then
35839 echo $ECHO_N "(cached) $ECHO_C" >&6
35842 cat >conftest.$ac_ext <<_ACEOF
35845 cat confdefs.h >>conftest.$ac_ext
35846 cat >>conftest.$ac_ext <<_ACEOF
35847 /* end confdefs.h. */
35849 #ifdef HAVE_SASL_SASL_H
35850 #include <sasl/sasl.h>
35855 /* Require 2.1.15+ */
35856 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
35857 char *__sasl_compat = "2.2+ or better okay (we guess)";
35858 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
35859 && SASL_VERSION_STEP >=15
35860 char *__sasl_compat = "2.1.15+ or better okay";
35864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35865 $EGREP "__sasl_compat" >/dev/null 2>&1; then
35866 ol_cv_sasl_compat=yes
35868 ol_cv_sasl_compat=no
35873 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
35874 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
35876 if test $ol_cv_sasl_compat = no ; then
35878 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
35879 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
35880 { (exit 1); exit 1; }; }
35884 cat >>confdefs.h <<\_ACEOF
35885 #define HAVE_CYRUS_SASL 1
35888 SASL_LIBS="$ol_link_sasl"
35889 if test $ol_enable_spasswd != no ; then
35890 ol_link_spasswd=yes
35893 ac_save_LIBS="$LIBS"
35894 LIBS="$LIBS $ol_link_sasl"
35895 { echo "$as_me:$LINENO: checking for sasl_version" >&5
35896 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
35897 if test "${ac_cv_func_sasl_version+set}" = set; then
35898 echo $ECHO_N "(cached) $ECHO_C" >&6
35900 cat >conftest.$ac_ext <<_ACEOF
35903 cat confdefs.h >>conftest.$ac_ext
35904 cat >>conftest.$ac_ext <<_ACEOF
35905 /* end confdefs.h. */
35906 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
35907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35908 #define sasl_version innocuous_sasl_version
35910 /* System header to define __stub macros and hopefully few prototypes,
35911 which can conflict with char sasl_version (); below.
35912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35913 <limits.h> exists even on freestanding compilers. */
35916 # include <limits.h>
35918 # include <assert.h>
35921 #undef sasl_version
35923 /* Override any GCC internal prototype to avoid an error.
35924 Use char because int might match the return type of a GCC
35925 builtin and then its argument prototype would still apply. */
35929 char sasl_version ();
35930 /* The GNU C library defines this for functions which it implements
35931 to always fail with ENOSYS. Some functions are actually named
35932 something starting with __ and the normal name is an alias. */
35933 #if defined __stub_sasl_version || defined __stub___sasl_version
35940 return sasl_version ();
35945 rm -f conftest.$ac_objext conftest$ac_exeext
35946 if { (ac_try="$ac_link"
35947 case "(($ac_try" in
35948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35949 *) ac_try_echo=$ac_try;;
35951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35952 (eval "$ac_link") 2>conftest.er1
35954 grep -v '^ *+' conftest.er1 >conftest.err
35956 cat conftest.err >&5
35957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958 (exit $ac_status); } &&
35959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35960 { (case "(($ac_try" in
35961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35962 *) ac_try_echo=$ac_try;;
35964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35965 (eval "$ac_try") 2>&5
35967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968 (exit $ac_status); }; } &&
35969 { ac_try='test -s conftest$ac_exeext'
35970 { (case "(($ac_try" in
35971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35972 *) ac_try_echo=$ac_try;;
35974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35975 (eval "$ac_try") 2>&5
35977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35978 (exit $ac_status); }; }; then
35979 ac_cv_func_sasl_version=yes
35981 echo "$as_me: failed program was:" >&5
35982 sed 's/^/| /' conftest.$ac_ext >&5
35984 ac_cv_func_sasl_version=no
35987 rm -f core conftest.err conftest.$ac_objext \
35988 conftest$ac_exeext conftest.$ac_ext
35990 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
35991 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
35992 if test $ac_cv_func_sasl_version = yes; then
35994 cat >>confdefs.h <<\_ACEOF
35995 #define HAVE_SASL_VERSION 1
36000 LIBS="$ac_save_LIBS"
36006 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
36007 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
36008 if test $ol_link_tls = no ; then
36009 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
36010 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
36014 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
36016 if test -r /dev/urandom ; then
36017 dev="/dev/urandom";
36018 elif test -r /idev/urandom ; then
36019 dev="/idev/urandom";
36020 elif test -r /dev/srandom ; then
36021 dev="/dev/srandom";
36022 elif test -r /dev/random ; then
36024 elif test -r /idev/random ; then
36025 dev="/idev/random";
36028 if test $dev != no ; then
36030 cat >>confdefs.h <<_ACEOF
36031 #define URANDOM_DEVICE "$dev"
36038 if test $ol_with_fetch != no ; then
36040 LIBS="-lfetch -lcom_err $LIBS"
36041 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
36042 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
36043 if test "${ol_cv_lib_fetch+set}" = set; then
36044 echo $ECHO_N "(cached) $ECHO_C" >&6
36047 cat >conftest.$ac_ext <<_ACEOF
36050 cat confdefs.h >>conftest.$ac_ext
36051 cat >>conftest.$ac_ext <<_ACEOF
36052 /* end confdefs.h. */
36054 #include <sys/param.h>
36060 struct url *u = fetchParseURL("file:///");
36065 rm -f conftest.$ac_objext conftest$ac_exeext
36066 if { (ac_try="$ac_link"
36067 case "(($ac_try" in
36068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36069 *) ac_try_echo=$ac_try;;
36071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36072 (eval "$ac_link") 2>conftest.er1
36074 grep -v '^ *+' conftest.er1 >conftest.err
36076 cat conftest.err >&5
36077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078 (exit $ac_status); } &&
36079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36080 { (case "(($ac_try" in
36081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36082 *) ac_try_echo=$ac_try;;
36084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36085 (eval "$ac_try") 2>&5
36087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36088 (exit $ac_status); }; } &&
36089 { ac_try='test -s conftest$ac_exeext'
36090 { (case "(($ac_try" in
36091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36092 *) ac_try_echo=$ac_try;;
36094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36095 (eval "$ac_try") 2>&5
36097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098 (exit $ac_status); }; }; then
36099 ol_cv_lib_fetch=yes
36101 echo "$as_me: failed program was:" >&5
36102 sed 's/^/| /' conftest.$ac_ext >&5
36107 rm -f core conftest.err conftest.$ac_objext \
36108 conftest$ac_exeext conftest.$ac_ext
36110 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
36111 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
36113 if test $ol_cv_lib_fetch != no ; then
36114 ol_link_fetch="-lfetch -lcom_err"
36116 cat >>confdefs.h <<\_ACEOF
36117 #define HAVE_FETCH 1
36123 if test $ol_cv_lib_fetch != no ; then
36124 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
36125 ol_link_fetch=freebsd
36127 elif test $ol_with_fetch != auto ; then
36128 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
36129 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
36130 { (exit 1); exit 1; }; }
36134 if test $ol_enable_crypt != no ; then
36136 LIBS="$TLS_LIBS $LIBS"
36138 { echo "$as_me:$LINENO: checking for crypt" >&5
36139 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
36140 if test "${ac_cv_func_crypt+set}" = set; then
36141 echo $ECHO_N "(cached) $ECHO_C" >&6
36143 cat >conftest.$ac_ext <<_ACEOF
36146 cat confdefs.h >>conftest.$ac_ext
36147 cat >>conftest.$ac_ext <<_ACEOF
36148 /* end confdefs.h. */
36149 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
36150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36151 #define crypt innocuous_crypt
36153 /* System header to define __stub macros and hopefully few prototypes,
36154 which can conflict with char crypt (); below.
36155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36156 <limits.h> exists even on freestanding compilers. */
36159 # include <limits.h>
36161 # include <assert.h>
36166 /* Override any GCC internal prototype to avoid an error.
36167 Use char because int might match the return type of a GCC
36168 builtin and then its argument prototype would still apply. */
36173 /* The GNU C library defines this for functions which it implements
36174 to always fail with ENOSYS. Some functions are actually named
36175 something starting with __ and the normal name is an alias. */
36176 #if defined __stub_crypt || defined __stub___crypt
36188 rm -f conftest.$ac_objext conftest$ac_exeext
36189 if { (ac_try="$ac_link"
36190 case "(($ac_try" in
36191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36192 *) ac_try_echo=$ac_try;;
36194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36195 (eval "$ac_link") 2>conftest.er1
36197 grep -v '^ *+' conftest.er1 >conftest.err
36199 cat conftest.err >&5
36200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36201 (exit $ac_status); } &&
36202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36203 { (case "(($ac_try" in
36204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36205 *) ac_try_echo=$ac_try;;
36207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36208 (eval "$ac_try") 2>&5
36210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211 (exit $ac_status); }; } &&
36212 { ac_try='test -s conftest$ac_exeext'
36213 { (case "(($ac_try" in
36214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36215 *) ac_try_echo=$ac_try;;
36217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36218 (eval "$ac_try") 2>&5
36220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36221 (exit $ac_status); }; }; then
36222 ac_cv_func_crypt=yes
36224 echo "$as_me: failed program was:" >&5
36225 sed 's/^/| /' conftest.$ac_ext >&5
36227 ac_cv_func_crypt=no
36230 rm -f core conftest.err conftest.$ac_objext \
36231 conftest$ac_exeext conftest.$ac_ext
36233 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
36234 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
36235 if test $ac_cv_func_crypt = yes; then
36240 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
36241 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
36242 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
36243 echo $ECHO_N "(cached) $ECHO_C" >&6
36245 ac_check_lib_save_LIBS=$LIBS
36246 LIBS="-lcrypt $LIBS"
36247 cat >conftest.$ac_ext <<_ACEOF
36250 cat confdefs.h >>conftest.$ac_ext
36251 cat >>conftest.$ac_ext <<_ACEOF
36252 /* end confdefs.h. */
36254 /* Override any GCC internal prototype to avoid an error.
36255 Use char because int might match the return type of a GCC
36256 builtin and then its argument prototype would still apply. */
36269 rm -f conftest.$ac_objext conftest$ac_exeext
36270 if { (ac_try="$ac_link"
36271 case "(($ac_try" in
36272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36273 *) ac_try_echo=$ac_try;;
36275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36276 (eval "$ac_link") 2>conftest.er1
36278 grep -v '^ *+' conftest.er1 >conftest.err
36280 cat conftest.err >&5
36281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282 (exit $ac_status); } &&
36283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36284 { (case "(($ac_try" in
36285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36286 *) ac_try_echo=$ac_try;;
36288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36289 (eval "$ac_try") 2>&5
36291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292 (exit $ac_status); }; } &&
36293 { ac_try='test -s conftest$ac_exeext'
36294 { (case "(($ac_try" in
36295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36296 *) ac_try_echo=$ac_try;;
36298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36299 (eval "$ac_try") 2>&5
36301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302 (exit $ac_status); }; }; then
36303 ac_cv_lib_crypt_crypt=yes
36305 echo "$as_me: failed program was:" >&5
36306 sed 's/^/| /' conftest.$ac_ext >&5
36308 ac_cv_lib_crypt_crypt=no
36311 rm -f core conftest.err conftest.$ac_objext \
36312 conftest$ac_exeext conftest.$ac_ext
36313 LIBS=$ac_check_lib_save_LIBS
36315 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
36316 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
36317 if test $ac_cv_lib_crypt_crypt = yes; then
36318 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
36329 if test $have_crypt = yes ; then
36331 cat >>confdefs.h <<\_ACEOF
36332 #define HAVE_CRYPT 1
36336 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
36337 echo "$as_me: WARNING: could not find crypt" >&2;}
36338 if test $ol_enable_crypt = yes ; then
36339 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
36340 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
36341 { (exit 1); exit 1; }; }
36344 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
36345 echo "$as_me: WARNING: disabling crypt support" >&2;}
36350 if test $ol_enable_proctitle != no ; then
36351 { echo "$as_me:$LINENO: checking for setproctitle" >&5
36352 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
36353 if test "${ac_cv_func_setproctitle+set}" = set; then
36354 echo $ECHO_N "(cached) $ECHO_C" >&6
36356 cat >conftest.$ac_ext <<_ACEOF
36359 cat confdefs.h >>conftest.$ac_ext
36360 cat >>conftest.$ac_ext <<_ACEOF
36361 /* end confdefs.h. */
36362 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
36363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36364 #define setproctitle innocuous_setproctitle
36366 /* System header to define __stub macros and hopefully few prototypes,
36367 which can conflict with char setproctitle (); below.
36368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36369 <limits.h> exists even on freestanding compilers. */
36372 # include <limits.h>
36374 # include <assert.h>
36377 #undef setproctitle
36379 /* Override any GCC internal prototype to avoid an error.
36380 Use char because int might match the return type of a GCC
36381 builtin and then its argument prototype would still apply. */
36385 char setproctitle ();
36386 /* The GNU C library defines this for functions which it implements
36387 to always fail with ENOSYS. Some functions are actually named
36388 something starting with __ and the normal name is an alias. */
36389 #if defined __stub_setproctitle || defined __stub___setproctitle
36396 return setproctitle ();
36401 rm -f conftest.$ac_objext conftest$ac_exeext
36402 if { (ac_try="$ac_link"
36403 case "(($ac_try" in
36404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36405 *) ac_try_echo=$ac_try;;
36407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36408 (eval "$ac_link") 2>conftest.er1
36410 grep -v '^ *+' conftest.er1 >conftest.err
36412 cat conftest.err >&5
36413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414 (exit $ac_status); } &&
36415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36416 { (case "(($ac_try" in
36417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36418 *) ac_try_echo=$ac_try;;
36420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36421 (eval "$ac_try") 2>&5
36423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36424 (exit $ac_status); }; } &&
36425 { ac_try='test -s conftest$ac_exeext'
36426 { (case "(($ac_try" in
36427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36428 *) ac_try_echo=$ac_try;;
36430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36431 (eval "$ac_try") 2>&5
36433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36434 (exit $ac_status); }; }; then
36435 ac_cv_func_setproctitle=yes
36437 echo "$as_me: failed program was:" >&5
36438 sed 's/^/| /' conftest.$ac_ext >&5
36440 ac_cv_func_setproctitle=no
36443 rm -f core conftest.err conftest.$ac_objext \
36444 conftest$ac_exeext conftest.$ac_ext
36446 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
36447 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
36448 if test $ac_cv_func_setproctitle = yes; then
36449 have_setproctitle=yes
36452 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
36453 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
36454 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
36455 echo $ECHO_N "(cached) $ECHO_C" >&6
36457 ac_check_lib_save_LIBS=$LIBS
36458 LIBS="-lutil $LIBS"
36459 cat >conftest.$ac_ext <<_ACEOF
36462 cat confdefs.h >>conftest.$ac_ext
36463 cat >>conftest.$ac_ext <<_ACEOF
36464 /* end confdefs.h. */
36466 /* Override any GCC internal prototype to avoid an error.
36467 Use char because int might match the return type of a GCC
36468 builtin and then its argument prototype would still apply. */
36472 char setproctitle ();
36476 return setproctitle ();
36481 rm -f conftest.$ac_objext conftest$ac_exeext
36482 if { (ac_try="$ac_link"
36483 case "(($ac_try" in
36484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36485 *) ac_try_echo=$ac_try;;
36487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36488 (eval "$ac_link") 2>conftest.er1
36490 grep -v '^ *+' conftest.er1 >conftest.err
36492 cat conftest.err >&5
36493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494 (exit $ac_status); } &&
36495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36496 { (case "(($ac_try" in
36497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36498 *) ac_try_echo=$ac_try;;
36500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36501 (eval "$ac_try") 2>&5
36503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504 (exit $ac_status); }; } &&
36505 { ac_try='test -s conftest$ac_exeext'
36506 { (case "(($ac_try" in
36507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36508 *) ac_try_echo=$ac_try;;
36510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36511 (eval "$ac_try") 2>&5
36513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36514 (exit $ac_status); }; }; then
36515 ac_cv_lib_util_setproctitle=yes
36517 echo "$as_me: failed program was:" >&5
36518 sed 's/^/| /' conftest.$ac_ext >&5
36520 ac_cv_lib_util_setproctitle=no
36523 rm -f core conftest.err conftest.$ac_objext \
36524 conftest$ac_exeext conftest.$ac_ext
36525 LIBS=$ac_check_lib_save_LIBS
36527 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
36528 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
36529 if test $ac_cv_lib_util_setproctitle = yes; then
36530 have_setproctitle=yes
36531 LUTIL_LIBS="$LUTIL_LIBS -lutil"
36533 have_setproctitle=no
36534 case " $LIBOBJS " in
36535 *" setproctitle.$ac_objext "* ) ;;
36536 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
36540 LIBSRCS="$LIBSRCS setproctitle.c"
36546 if test $have_setproctitle = yes ; then
36548 cat >>confdefs.h <<\_ACEOF
36549 #define HAVE_SETPROCTITLE 1
36555 if test $ol_enable_slp != no ; then
36557 for ac_header in slp.h
36559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36564 echo $ECHO_N "(cached) $ECHO_C" >&6
36566 ac_res=`eval echo '${'$as_ac_Header'}'`
36567 { echo "$as_me:$LINENO: result: $ac_res" >&5
36568 echo "${ECHO_T}$ac_res" >&6; }
36570 # Is the header compilable?
36571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36573 cat >conftest.$ac_ext <<_ACEOF
36576 cat confdefs.h >>conftest.$ac_ext
36577 cat >>conftest.$ac_ext <<_ACEOF
36578 /* end confdefs.h. */
36579 $ac_includes_default
36580 #include <$ac_header>
36582 rm -f conftest.$ac_objext
36583 if { (ac_try="$ac_compile"
36584 case "(($ac_try" in
36585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36586 *) ac_try_echo=$ac_try;;
36588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36589 (eval "$ac_compile") 2>conftest.er1
36591 grep -v '^ *+' conftest.er1 >conftest.err
36593 cat conftest.err >&5
36594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36595 (exit $ac_status); } &&
36596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36597 { (case "(($ac_try" in
36598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36599 *) ac_try_echo=$ac_try;;
36601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36602 (eval "$ac_try") 2>&5
36604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605 (exit $ac_status); }; } &&
36606 { ac_try='test -s conftest.$ac_objext'
36607 { (case "(($ac_try" in
36608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36609 *) ac_try_echo=$ac_try;;
36611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36612 (eval "$ac_try") 2>&5
36614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36615 (exit $ac_status); }; }; then
36616 ac_header_compiler=yes
36618 echo "$as_me: failed program was:" >&5
36619 sed 's/^/| /' conftest.$ac_ext >&5
36621 ac_header_compiler=no
36624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36626 echo "${ECHO_T}$ac_header_compiler" >&6; }
36628 # Is the header present?
36629 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36631 cat >conftest.$ac_ext <<_ACEOF
36634 cat confdefs.h >>conftest.$ac_ext
36635 cat >>conftest.$ac_ext <<_ACEOF
36636 /* end confdefs.h. */
36637 #include <$ac_header>
36639 if { (ac_try="$ac_cpp conftest.$ac_ext"
36640 case "(($ac_try" in
36641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36642 *) ac_try_echo=$ac_try;;
36644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36647 grep -v '^ *+' conftest.er1 >conftest.err
36649 cat conftest.err >&5
36650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651 (exit $ac_status); } >/dev/null; then
36652 if test -s conftest.err; then
36653 ac_cpp_err=$ac_c_preproc_warn_flag
36654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36661 if test -z "$ac_cpp_err"; then
36662 ac_header_preproc=yes
36664 echo "$as_me: failed program was:" >&5
36665 sed 's/^/| /' conftest.$ac_ext >&5
36667 ac_header_preproc=no
36670 rm -f conftest.err conftest.$ac_ext
36671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36672 echo "${ECHO_T}$ac_header_preproc" >&6; }
36674 # So? What about this header?
36675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36681 ac_header_preproc=yes
36684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36691 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36697 ## --------------------------------------------- ##
36698 ## Report this to <http://www.openldap.org/its/> ##
36699 ## --------------------------------------------- ##
36701 ) | sed "s/^/$as_me: WARNING: /" >&2
36704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36707 echo $ECHO_N "(cached) $ECHO_C" >&6
36709 eval "$as_ac_Header=\$ac_header_preproc"
36711 ac_res=`eval echo '${'$as_ac_Header'}'`
36712 { echo "$as_me:$LINENO: result: $ac_res" >&5
36713 echo "${ECHO_T}$ac_res" >&6; }
36716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36717 cat >>confdefs.h <<_ACEOF
36718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36726 if test $ac_cv_header_slp_h = yes ; then
36727 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
36728 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
36729 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
36730 echo $ECHO_N "(cached) $ECHO_C" >&6
36732 ac_check_lib_save_LIBS=$LIBS
36734 cat >conftest.$ac_ext <<_ACEOF
36737 cat confdefs.h >>conftest.$ac_ext
36738 cat >>conftest.$ac_ext <<_ACEOF
36739 /* end confdefs.h. */
36741 /* Override any GCC internal prototype to avoid an error.
36742 Use char because int might match the return type of a GCC
36743 builtin and then its argument prototype would still apply. */
36756 rm -f conftest.$ac_objext conftest$ac_exeext
36757 if { (ac_try="$ac_link"
36758 case "(($ac_try" in
36759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36760 *) ac_try_echo=$ac_try;;
36762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36763 (eval "$ac_link") 2>conftest.er1
36765 grep -v '^ *+' conftest.er1 >conftest.err
36767 cat conftest.err >&5
36768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769 (exit $ac_status); } &&
36770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36771 { (case "(($ac_try" in
36772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36773 *) ac_try_echo=$ac_try;;
36775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36776 (eval "$ac_try") 2>&5
36778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36779 (exit $ac_status); }; } &&
36780 { ac_try='test -s conftest$ac_exeext'
36781 { (case "(($ac_try" in
36782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36783 *) ac_try_echo=$ac_try;;
36785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36786 (eval "$ac_try") 2>&5
36788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789 (exit $ac_status); }; }; then
36790 ac_cv_lib_slp_SLPOpen=yes
36792 echo "$as_me: failed program was:" >&5
36793 sed 's/^/| /' conftest.$ac_ext >&5
36795 ac_cv_lib_slp_SLPOpen=no
36798 rm -f core conftest.err conftest.$ac_objext \
36799 conftest$ac_exeext conftest.$ac_ext
36800 LIBS=$ac_check_lib_save_LIBS
36802 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
36803 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
36804 if test $ac_cv_lib_slp_SLPOpen = yes; then
36810 if test $have_slp = yes ; then
36812 cat >>confdefs.h <<\_ACEOF
36816 SLAPD_SLP_LIBS=-lslp
36819 elif test $ol_enable_slp = yes ; then
36820 { { echo "$as_me:$LINENO: error: SLP not found" >&5
36821 echo "$as_me: error: SLP not found" >&2;}
36822 { (exit 1); exit 1; }; }
36827 { echo "$as_me:$LINENO: checking for mode_t" >&5
36828 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
36829 if test "${ac_cv_type_mode_t+set}" = set; then
36830 echo $ECHO_N "(cached) $ECHO_C" >&6
36832 cat >conftest.$ac_ext <<_ACEOF
36835 cat confdefs.h >>conftest.$ac_ext
36836 cat >>conftest.$ac_ext <<_ACEOF
36837 /* end confdefs.h. */
36838 $ac_includes_default
36839 typedef mode_t ac__type_new_;
36843 if ((ac__type_new_ *) 0)
36845 if (sizeof (ac__type_new_))
36851 rm -f conftest.$ac_objext
36852 if { (ac_try="$ac_compile"
36853 case "(($ac_try" in
36854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36855 *) ac_try_echo=$ac_try;;
36857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36858 (eval "$ac_compile") 2>conftest.er1
36860 grep -v '^ *+' conftest.er1 >conftest.err
36862 cat conftest.err >&5
36863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36864 (exit $ac_status); } &&
36865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36866 { (case "(($ac_try" in
36867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36868 *) ac_try_echo=$ac_try;;
36870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36871 (eval "$ac_try") 2>&5
36873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874 (exit $ac_status); }; } &&
36875 { ac_try='test -s conftest.$ac_objext'
36876 { (case "(($ac_try" in
36877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36878 *) ac_try_echo=$ac_try;;
36880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36881 (eval "$ac_try") 2>&5
36883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36884 (exit $ac_status); }; }; then
36885 ac_cv_type_mode_t=yes
36887 echo "$as_me: failed program was:" >&5
36888 sed 's/^/| /' conftest.$ac_ext >&5
36890 ac_cv_type_mode_t=no
36893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36895 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36896 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
36897 if test $ac_cv_type_mode_t = yes; then
36901 cat >>confdefs.h <<_ACEOF
36907 { echo "$as_me:$LINENO: checking for off_t" >&5
36908 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
36909 if test "${ac_cv_type_off_t+set}" = set; then
36910 echo $ECHO_N "(cached) $ECHO_C" >&6
36912 cat >conftest.$ac_ext <<_ACEOF
36915 cat confdefs.h >>conftest.$ac_ext
36916 cat >>conftest.$ac_ext <<_ACEOF
36917 /* end confdefs.h. */
36918 $ac_includes_default
36919 typedef off_t ac__type_new_;
36923 if ((ac__type_new_ *) 0)
36925 if (sizeof (ac__type_new_))
36931 rm -f conftest.$ac_objext
36932 if { (ac_try="$ac_compile"
36933 case "(($ac_try" in
36934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36935 *) ac_try_echo=$ac_try;;
36937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36938 (eval "$ac_compile") 2>conftest.er1
36940 grep -v '^ *+' conftest.er1 >conftest.err
36942 cat conftest.err >&5
36943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944 (exit $ac_status); } &&
36945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36946 { (case "(($ac_try" in
36947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36948 *) ac_try_echo=$ac_try;;
36950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36951 (eval "$ac_try") 2>&5
36953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954 (exit $ac_status); }; } &&
36955 { ac_try='test -s conftest.$ac_objext'
36956 { (case "(($ac_try" in
36957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36958 *) ac_try_echo=$ac_try;;
36960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36961 (eval "$ac_try") 2>&5
36963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36964 (exit $ac_status); }; }; then
36965 ac_cv_type_off_t=yes
36967 echo "$as_me: failed program was:" >&5
36968 sed 's/^/| /' conftest.$ac_ext >&5
36970 ac_cv_type_off_t=no
36973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36975 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36976 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
36977 if test $ac_cv_type_off_t = yes; then
36981 cat >>confdefs.h <<_ACEOF
36987 { echo "$as_me:$LINENO: checking for pid_t" >&5
36988 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
36989 if test "${ac_cv_type_pid_t+set}" = set; then
36990 echo $ECHO_N "(cached) $ECHO_C" >&6
36992 cat >conftest.$ac_ext <<_ACEOF
36995 cat confdefs.h >>conftest.$ac_ext
36996 cat >>conftest.$ac_ext <<_ACEOF
36997 /* end confdefs.h. */
36998 $ac_includes_default
36999 typedef pid_t ac__type_new_;
37003 if ((ac__type_new_ *) 0)
37005 if (sizeof (ac__type_new_))
37011 rm -f conftest.$ac_objext
37012 if { (ac_try="$ac_compile"
37013 case "(($ac_try" in
37014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37015 *) ac_try_echo=$ac_try;;
37017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37018 (eval "$ac_compile") 2>conftest.er1
37020 grep -v '^ *+' conftest.er1 >conftest.err
37022 cat conftest.err >&5
37023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37024 (exit $ac_status); } &&
37025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37026 { (case "(($ac_try" in
37027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37028 *) ac_try_echo=$ac_try;;
37030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37031 (eval "$ac_try") 2>&5
37033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37034 (exit $ac_status); }; } &&
37035 { ac_try='test -s conftest.$ac_objext'
37036 { (case "(($ac_try" in
37037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37038 *) ac_try_echo=$ac_try;;
37040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37041 (eval "$ac_try") 2>&5
37043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044 (exit $ac_status); }; }; then
37045 ac_cv_type_pid_t=yes
37047 echo "$as_me: failed program was:" >&5
37048 sed 's/^/| /' conftest.$ac_ext >&5
37050 ac_cv_type_pid_t=no
37053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37055 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37056 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
37057 if test $ac_cv_type_pid_t = yes; then
37061 cat >>confdefs.h <<_ACEOF
37067 { echo "$as_me:$LINENO: checking for ssize_t" >&5
37068 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
37069 if test "${ac_cv_type_ssize_t+set}" = set; then
37070 echo $ECHO_N "(cached) $ECHO_C" >&6
37072 cat >conftest.$ac_ext <<_ACEOF
37075 cat confdefs.h >>conftest.$ac_ext
37076 cat >>conftest.$ac_ext <<_ACEOF
37077 /* end confdefs.h. */
37078 $ac_includes_default
37079 typedef ssize_t ac__type_new_;
37083 if ((ac__type_new_ *) 0)
37085 if (sizeof (ac__type_new_))
37091 rm -f conftest.$ac_objext
37092 if { (ac_try="$ac_compile"
37093 case "(($ac_try" in
37094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37095 *) ac_try_echo=$ac_try;;
37097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37098 (eval "$ac_compile") 2>conftest.er1
37100 grep -v '^ *+' conftest.er1 >conftest.err
37102 cat conftest.err >&5
37103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37104 (exit $ac_status); } &&
37105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37106 { (case "(($ac_try" in
37107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37108 *) ac_try_echo=$ac_try;;
37110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37111 (eval "$ac_try") 2>&5
37113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37114 (exit $ac_status); }; } &&
37115 { ac_try='test -s conftest.$ac_objext'
37116 { (case "(($ac_try" in
37117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37118 *) ac_try_echo=$ac_try;;
37120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37121 (eval "$ac_try") 2>&5
37123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37124 (exit $ac_status); }; }; then
37125 ac_cv_type_ssize_t=yes
37127 echo "$as_me: failed program was:" >&5
37128 sed 's/^/| /' conftest.$ac_ext >&5
37130 ac_cv_type_ssize_t=no
37133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37135 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37136 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
37137 if test $ac_cv_type_ssize_t = yes; then
37141 cat >>confdefs.h <<_ACEOF
37142 #define ssize_t signed int
37147 { echo "$as_me:$LINENO: checking for caddr_t" >&5
37148 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
37149 if test "${ac_cv_type_caddr_t+set}" = set; then
37150 echo $ECHO_N "(cached) $ECHO_C" >&6
37152 cat >conftest.$ac_ext <<_ACEOF
37155 cat confdefs.h >>conftest.$ac_ext
37156 cat >>conftest.$ac_ext <<_ACEOF
37157 /* end confdefs.h. */
37158 $ac_includes_default
37159 typedef caddr_t ac__type_new_;
37163 if ((ac__type_new_ *) 0)
37165 if (sizeof (ac__type_new_))
37171 rm -f conftest.$ac_objext
37172 if { (ac_try="$ac_compile"
37173 case "(($ac_try" in
37174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37175 *) ac_try_echo=$ac_try;;
37177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37178 (eval "$ac_compile") 2>conftest.er1
37180 grep -v '^ *+' conftest.er1 >conftest.err
37182 cat conftest.err >&5
37183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37184 (exit $ac_status); } &&
37185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37186 { (case "(($ac_try" in
37187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37188 *) ac_try_echo=$ac_try;;
37190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37191 (eval "$ac_try") 2>&5
37193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194 (exit $ac_status); }; } &&
37195 { ac_try='test -s conftest.$ac_objext'
37196 { (case "(($ac_try" in
37197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37198 *) ac_try_echo=$ac_try;;
37200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37201 (eval "$ac_try") 2>&5
37203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37204 (exit $ac_status); }; }; then
37205 ac_cv_type_caddr_t=yes
37207 echo "$as_me: failed program was:" >&5
37208 sed 's/^/| /' conftest.$ac_ext >&5
37210 ac_cv_type_caddr_t=no
37213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37215 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
37216 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
37217 if test $ac_cv_type_caddr_t = yes; then
37221 cat >>confdefs.h <<_ACEOF
37222 #define caddr_t char *
37227 { echo "$as_me:$LINENO: checking for size_t" >&5
37228 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
37229 if test "${ac_cv_type_size_t+set}" = set; then
37230 echo $ECHO_N "(cached) $ECHO_C" >&6
37232 cat >conftest.$ac_ext <<_ACEOF
37235 cat confdefs.h >>conftest.$ac_ext
37236 cat >>conftest.$ac_ext <<_ACEOF
37237 /* end confdefs.h. */
37238 $ac_includes_default
37239 typedef size_t ac__type_new_;
37243 if ((ac__type_new_ *) 0)
37245 if (sizeof (ac__type_new_))
37251 rm -f conftest.$ac_objext
37252 if { (ac_try="$ac_compile"
37253 case "(($ac_try" in
37254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37255 *) ac_try_echo=$ac_try;;
37257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37258 (eval "$ac_compile") 2>conftest.er1
37260 grep -v '^ *+' conftest.er1 >conftest.err
37262 cat conftest.err >&5
37263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37264 (exit $ac_status); } &&
37265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37266 { (case "(($ac_try" in
37267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37268 *) ac_try_echo=$ac_try;;
37270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37271 (eval "$ac_try") 2>&5
37273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274 (exit $ac_status); }; } &&
37275 { ac_try='test -s conftest.$ac_objext'
37276 { (case "(($ac_try" in
37277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37278 *) ac_try_echo=$ac_try;;
37280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37281 (eval "$ac_try") 2>&5
37283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37284 (exit $ac_status); }; }; then
37285 ac_cv_type_size_t=yes
37287 echo "$as_me: failed program was:" >&5
37288 sed 's/^/| /' conftest.$ac_ext >&5
37290 ac_cv_type_size_t=no
37293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37295 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37296 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
37297 if test $ac_cv_type_size_t = yes; then
37301 cat >>confdefs.h <<_ACEOF
37302 #define size_t unsigned
37308 { echo "$as_me:$LINENO: checking for long long" >&5
37309 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
37310 if test "${ac_cv_type_long_long+set}" = set; then
37311 echo $ECHO_N "(cached) $ECHO_C" >&6
37313 cat >conftest.$ac_ext <<_ACEOF
37316 cat confdefs.h >>conftest.$ac_ext
37317 cat >>conftest.$ac_ext <<_ACEOF
37318 /* end confdefs.h. */
37319 $ac_includes_default
37320 typedef long long ac__type_new_;
37324 if ((ac__type_new_ *) 0)
37326 if (sizeof (ac__type_new_))
37332 rm -f conftest.$ac_objext
37333 if { (ac_try="$ac_compile"
37334 case "(($ac_try" in
37335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37336 *) ac_try_echo=$ac_try;;
37338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37339 (eval "$ac_compile") 2>conftest.er1
37341 grep -v '^ *+' conftest.er1 >conftest.err
37343 cat conftest.err >&5
37344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37345 (exit $ac_status); } &&
37346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37347 { (case "(($ac_try" in
37348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37349 *) ac_try_echo=$ac_try;;
37351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37352 (eval "$ac_try") 2>&5
37354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355 (exit $ac_status); }; } &&
37356 { ac_try='test -s conftest.$ac_objext'
37357 { (case "(($ac_try" in
37358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37359 *) ac_try_echo=$ac_try;;
37361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37362 (eval "$ac_try") 2>&5
37364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37365 (exit $ac_status); }; }; then
37366 ac_cv_type_long_long=yes
37368 echo "$as_me: failed program was:" >&5
37369 sed 's/^/| /' conftest.$ac_ext >&5
37371 ac_cv_type_long_long=no
37374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37376 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37377 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
37378 if test $ac_cv_type_long_long = yes; then
37380 cat >>confdefs.h <<_ACEOF
37381 #define HAVE_LONG_LONG 1
37387 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37388 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
37389 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37390 echo $ECHO_N "(cached) $ECHO_C" >&6
37392 cat >conftest.$ac_ext <<_ACEOF
37395 cat confdefs.h >>conftest.$ac_ext
37396 cat >>conftest.$ac_ext <<_ACEOF
37397 /* end confdefs.h. */
37398 $ac_includes_default
37399 typedef ptrdiff_t ac__type_new_;
37403 if ((ac__type_new_ *) 0)
37405 if (sizeof (ac__type_new_))
37411 rm -f conftest.$ac_objext
37412 if { (ac_try="$ac_compile"
37413 case "(($ac_try" in
37414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37415 *) ac_try_echo=$ac_try;;
37417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37418 (eval "$ac_compile") 2>conftest.er1
37420 grep -v '^ *+' conftest.er1 >conftest.err
37422 cat conftest.err >&5
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); } &&
37425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37426 { (case "(($ac_try" in
37427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37428 *) ac_try_echo=$ac_try;;
37430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37431 (eval "$ac_try") 2>&5
37433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37434 (exit $ac_status); }; } &&
37435 { ac_try='test -s conftest.$ac_objext'
37436 { (case "(($ac_try" in
37437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37438 *) ac_try_echo=$ac_try;;
37440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37441 (eval "$ac_try") 2>&5
37443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444 (exit $ac_status); }; }; then
37445 ac_cv_type_ptrdiff_t=yes
37447 echo "$as_me: failed program was:" >&5
37448 sed 's/^/| /' conftest.$ac_ext >&5
37450 ac_cv_type_ptrdiff_t=no
37453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37455 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37456 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
37457 if test $ac_cv_type_ptrdiff_t = yes; then
37459 cat >>confdefs.h <<_ACEOF
37460 #define HAVE_PTRDIFF_T 1
37467 { echo "$as_me:$LINENO: checking for socklen_t" >&5
37468 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
37469 if test "${ac_cv_type_socklen_t+set}" = set; then
37470 echo $ECHO_N "(cached) $ECHO_C" >&6
37472 cat >conftest.$ac_ext <<_ACEOF
37475 cat confdefs.h >>conftest.$ac_ext
37476 cat >>conftest.$ac_ext <<_ACEOF
37477 /* end confdefs.h. */
37478 $ac_includes_default
37479 #ifdef HAVE_SYS_SOCKET_H
37480 #include <sys/socket.h>
37484 typedef socklen_t ac__type_new_;
37488 if ((ac__type_new_ *) 0)
37490 if (sizeof (ac__type_new_))
37496 rm -f conftest.$ac_objext
37497 if { (ac_try="$ac_compile"
37498 case "(($ac_try" in
37499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37500 *) ac_try_echo=$ac_try;;
37502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37503 (eval "$ac_compile") 2>conftest.er1
37505 grep -v '^ *+' conftest.er1 >conftest.err
37507 cat conftest.err >&5
37508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37509 (exit $ac_status); } &&
37510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37511 { (case "(($ac_try" in
37512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37513 *) ac_try_echo=$ac_try;;
37515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37516 (eval "$ac_try") 2>&5
37518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37519 (exit $ac_status); }; } &&
37520 { ac_try='test -s conftest.$ac_objext'
37521 { (case "(($ac_try" in
37522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37523 *) ac_try_echo=$ac_try;;
37525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37526 (eval "$ac_try") 2>&5
37528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37529 (exit $ac_status); }; }; then
37530 ac_cv_type_socklen_t=yes
37532 echo "$as_me: failed program was:" >&5
37533 sed 's/^/| /' conftest.$ac_ext >&5
37535 ac_cv_type_socklen_t=no
37538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37540 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37541 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
37542 if test $ac_cv_type_socklen_t = yes; then
37546 cat >>confdefs.h <<_ACEOF
37547 #define socklen_t int
37553 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37554 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
37555 if test "${ac_cv_type_signal+set}" = set; then
37556 echo $ECHO_N "(cached) $ECHO_C" >&6
37558 cat >conftest.$ac_ext <<_ACEOF
37561 cat confdefs.h >>conftest.$ac_ext
37562 cat >>conftest.$ac_ext <<_ACEOF
37563 /* end confdefs.h. */
37564 #include <sys/types.h>
37565 #include <signal.h>
37570 return *(signal (0, 0)) (0) == 1;
37575 rm -f conftest.$ac_objext
37576 if { (ac_try="$ac_compile"
37577 case "(($ac_try" in
37578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37579 *) ac_try_echo=$ac_try;;
37581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37582 (eval "$ac_compile") 2>conftest.er1
37584 grep -v '^ *+' conftest.er1 >conftest.err
37586 cat conftest.err >&5
37587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37588 (exit $ac_status); } &&
37589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37590 { (case "(($ac_try" in
37591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37592 *) ac_try_echo=$ac_try;;
37594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37595 (eval "$ac_try") 2>&5
37597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598 (exit $ac_status); }; } &&
37599 { ac_try='test -s conftest.$ac_objext'
37600 { (case "(($ac_try" in
37601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37602 *) ac_try_echo=$ac_try;;
37604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37605 (eval "$ac_try") 2>&5
37607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37608 (exit $ac_status); }; }; then
37609 ac_cv_type_signal=int
37611 echo "$as_me: failed program was:" >&5
37612 sed 's/^/| /' conftest.$ac_ext >&5
37614 ac_cv_type_signal=void
37617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37619 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37620 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
37622 cat >>confdefs.h <<_ACEOF
37623 #define RETSIGTYPE $ac_cv_type_signal
37628 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
37629 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
37630 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
37631 echo $ECHO_N "(cached) $ECHO_C" >&6
37633 cat >conftest.$ac_ext <<_ACEOF
37636 cat confdefs.h >>conftest.$ac_ext
37637 cat >>conftest.$ac_ext <<_ACEOF
37638 /* end confdefs.h. */
37639 $ac_includes_default
37640 #include <signal.h>
37643 typedef sig_atomic_t ac__type_new_;
37647 if ((ac__type_new_ *) 0)
37649 if (sizeof (ac__type_new_))
37655 rm -f conftest.$ac_objext
37656 if { (ac_try="$ac_compile"
37657 case "(($ac_try" in
37658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37659 *) ac_try_echo=$ac_try;;
37661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37662 (eval "$ac_compile") 2>conftest.er1
37664 grep -v '^ *+' conftest.er1 >conftest.err
37666 cat conftest.err >&5
37667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37668 (exit $ac_status); } &&
37669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37670 { (case "(($ac_try" in
37671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37672 *) ac_try_echo=$ac_try;;
37674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37675 (eval "$ac_try") 2>&5
37677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678 (exit $ac_status); }; } &&
37679 { ac_try='test -s conftest.$ac_objext'
37680 { (case "(($ac_try" in
37681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37682 *) ac_try_echo=$ac_try;;
37684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37685 (eval "$ac_try") 2>&5
37687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37688 (exit $ac_status); }; }; then
37689 ac_cv_type_sig_atomic_t=yes
37691 echo "$as_me: failed program was:" >&5
37692 sed 's/^/| /' conftest.$ac_ext >&5
37694 ac_cv_type_sig_atomic_t=no
37697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37699 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
37700 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
37701 if test $ac_cv_type_sig_atomic_t = yes; then
37705 cat >>confdefs.h <<_ACEOF
37706 #define sig_atomic_t int
37712 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37713 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
37714 if test "${ac_cv_type_uid_t+set}" = set; then
37715 echo $ECHO_N "(cached) $ECHO_C" >&6
37717 cat >conftest.$ac_ext <<_ACEOF
37720 cat confdefs.h >>conftest.$ac_ext
37721 cat >>conftest.$ac_ext <<_ACEOF
37722 /* end confdefs.h. */
37723 #include <sys/types.h>
37726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37727 $EGREP "uid_t" >/dev/null 2>&1; then
37728 ac_cv_type_uid_t=yes
37730 ac_cv_type_uid_t=no
37735 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37736 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
37737 if test $ac_cv_type_uid_t = no; then
37739 cat >>confdefs.h <<\_ACEOF
37744 cat >>confdefs.h <<\_ACEOF
37751 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37752 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
37753 if test "${ac_cv_header_time+set}" = set; then
37754 echo $ECHO_N "(cached) $ECHO_C" >&6
37756 cat >conftest.$ac_ext <<_ACEOF
37759 cat confdefs.h >>conftest.$ac_ext
37760 cat >>conftest.$ac_ext <<_ACEOF
37761 /* end confdefs.h. */
37762 #include <sys/types.h>
37763 #include <sys/time.h>
37769 if ((struct tm *) 0)
37775 rm -f conftest.$ac_objext
37776 if { (ac_try="$ac_compile"
37777 case "(($ac_try" in
37778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37779 *) ac_try_echo=$ac_try;;
37781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37782 (eval "$ac_compile") 2>conftest.er1
37784 grep -v '^ *+' conftest.er1 >conftest.err
37786 cat conftest.err >&5
37787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788 (exit $ac_status); } &&
37789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37790 { (case "(($ac_try" in
37791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37792 *) ac_try_echo=$ac_try;;
37794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37795 (eval "$ac_try") 2>&5
37797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37798 (exit $ac_status); }; } &&
37799 { ac_try='test -s conftest.$ac_objext'
37800 { (case "(($ac_try" in
37801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37802 *) ac_try_echo=$ac_try;;
37804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37805 (eval "$ac_try") 2>&5
37807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37808 (exit $ac_status); }; }; then
37809 ac_cv_header_time=yes
37811 echo "$as_me: failed program was:" >&5
37812 sed 's/^/| /' conftest.$ac_ext >&5
37814 ac_cv_header_time=no
37817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37819 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37820 echo "${ECHO_T}$ac_cv_header_time" >&6; }
37821 if test $ac_cv_header_time = yes; then
37823 cat >>confdefs.h <<\_ACEOF
37824 #define TIME_WITH_SYS_TIME 1
37829 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
37830 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
37831 if test "${ac_cv_struct_tm+set}" = set; then
37832 echo $ECHO_N "(cached) $ECHO_C" >&6
37834 cat >conftest.$ac_ext <<_ACEOF
37837 cat confdefs.h >>conftest.$ac_ext
37838 cat >>conftest.$ac_ext <<_ACEOF
37839 /* end confdefs.h. */
37840 #include <sys/types.h>
37846 struct tm *tp; tp->tm_sec;
37851 rm -f conftest.$ac_objext
37852 if { (ac_try="$ac_compile"
37853 case "(($ac_try" in
37854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37855 *) ac_try_echo=$ac_try;;
37857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37858 (eval "$ac_compile") 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" || test ! -s conftest.err'
37866 { (case "(($ac_try" in
37867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37868 *) ac_try_echo=$ac_try;;
37870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37871 (eval "$ac_try") 2>&5
37873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37874 (exit $ac_status); }; } &&
37875 { ac_try='test -s conftest.$ac_objext'
37876 { (case "(($ac_try" in
37877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37878 *) ac_try_echo=$ac_try;;
37880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37881 (eval "$ac_try") 2>&5
37883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37884 (exit $ac_status); }; }; then
37885 ac_cv_struct_tm=time.h
37887 echo "$as_me: failed program was:" >&5
37888 sed 's/^/| /' conftest.$ac_ext >&5
37890 ac_cv_struct_tm=sys/time.h
37893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37895 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37896 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
37897 if test $ac_cv_struct_tm = sys/time.h; then
37899 cat >>confdefs.h <<\_ACEOF
37900 #define TM_IN_SYS_TIME 1
37905 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37906 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
37907 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37908 echo $ECHO_N "(cached) $ECHO_C" >&6
37910 cat >conftest.$ac_ext <<_ACEOF
37913 cat confdefs.h >>conftest.$ac_ext
37914 cat >>conftest.$ac_ext <<_ACEOF
37915 /* end confdefs.h. */
37916 $ac_includes_default
37920 static struct stat ac_aggr;
37921 if (ac_aggr.st_blksize)
37927 rm -f conftest.$ac_objext
37928 if { (ac_try="$ac_compile"
37929 case "(($ac_try" in
37930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37931 *) ac_try_echo=$ac_try;;
37933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37934 (eval "$ac_compile") 2>conftest.er1
37936 grep -v '^ *+' conftest.er1 >conftest.err
37938 cat conftest.err >&5
37939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37940 (exit $ac_status); } &&
37941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37942 { (case "(($ac_try" in
37943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37944 *) ac_try_echo=$ac_try;;
37946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37947 (eval "$ac_try") 2>&5
37949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950 (exit $ac_status); }; } &&
37951 { ac_try='test -s conftest.$ac_objext'
37952 { (case "(($ac_try" in
37953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37954 *) ac_try_echo=$ac_try;;
37956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37957 (eval "$ac_try") 2>&5
37959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37960 (exit $ac_status); }; }; then
37961 ac_cv_member_struct_stat_st_blksize=yes
37963 echo "$as_me: failed program was:" >&5
37964 sed 's/^/| /' conftest.$ac_ext >&5
37966 cat >conftest.$ac_ext <<_ACEOF
37969 cat confdefs.h >>conftest.$ac_ext
37970 cat >>conftest.$ac_ext <<_ACEOF
37971 /* end confdefs.h. */
37972 $ac_includes_default
37976 static struct stat ac_aggr;
37977 if (sizeof ac_aggr.st_blksize)
37983 rm -f conftest.$ac_objext
37984 if { (ac_try="$ac_compile"
37985 case "(($ac_try" in
37986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37987 *) ac_try_echo=$ac_try;;
37989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37990 (eval "$ac_compile") 2>conftest.er1
37992 grep -v '^ *+' conftest.er1 >conftest.err
37994 cat conftest.err >&5
37995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37996 (exit $ac_status); } &&
37997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37998 { (case "(($ac_try" in
37999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38000 *) ac_try_echo=$ac_try;;
38002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38003 (eval "$ac_try") 2>&5
38005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38006 (exit $ac_status); }; } &&
38007 { ac_try='test -s conftest.$ac_objext'
38008 { (case "(($ac_try" in
38009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38010 *) ac_try_echo=$ac_try;;
38012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38013 (eval "$ac_try") 2>&5
38015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38016 (exit $ac_status); }; }; then
38017 ac_cv_member_struct_stat_st_blksize=yes
38019 echo "$as_me: failed program was:" >&5
38020 sed 's/^/| /' conftest.$ac_ext >&5
38022 ac_cv_member_struct_stat_st_blksize=no
38025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38030 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
38031 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
38032 if test $ac_cv_member_struct_stat_st_blksize = yes; then
38034 cat >>confdefs.h <<_ACEOF
38035 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
38041 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
38042 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
38043 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
38044 echo $ECHO_N "(cached) $ECHO_C" >&6
38046 cat >conftest.$ac_ext <<_ACEOF
38049 cat confdefs.h >>conftest.$ac_ext
38050 cat >>conftest.$ac_ext <<_ACEOF
38051 /* end confdefs.h. */
38052 $ac_includes_default
38058 static struct passwd ac_aggr;
38059 if (ac_aggr.pw_gecos)
38065 rm -f conftest.$ac_objext
38066 if { (ac_try="$ac_compile"
38067 case "(($ac_try" in
38068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38069 *) ac_try_echo=$ac_try;;
38071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38072 (eval "$ac_compile") 2>conftest.er1
38074 grep -v '^ *+' conftest.er1 >conftest.err
38076 cat conftest.err >&5
38077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078 (exit $ac_status); } &&
38079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38080 { (case "(($ac_try" in
38081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38082 *) ac_try_echo=$ac_try;;
38084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38085 (eval "$ac_try") 2>&5
38087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38088 (exit $ac_status); }; } &&
38089 { ac_try='test -s conftest.$ac_objext'
38090 { (case "(($ac_try" in
38091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38092 *) ac_try_echo=$ac_try;;
38094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38095 (eval "$ac_try") 2>&5
38097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38098 (exit $ac_status); }; }; then
38099 ac_cv_member_struct_passwd_pw_gecos=yes
38101 echo "$as_me: failed program was:" >&5
38102 sed 's/^/| /' conftest.$ac_ext >&5
38104 cat >conftest.$ac_ext <<_ACEOF
38107 cat confdefs.h >>conftest.$ac_ext
38108 cat >>conftest.$ac_ext <<_ACEOF
38109 /* end confdefs.h. */
38110 $ac_includes_default
38116 static struct passwd ac_aggr;
38117 if (sizeof ac_aggr.pw_gecos)
38123 rm -f conftest.$ac_objext
38124 if { (ac_try="$ac_compile"
38125 case "(($ac_try" in
38126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38127 *) ac_try_echo=$ac_try;;
38129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38130 (eval "$ac_compile") 2>conftest.er1
38132 grep -v '^ *+' conftest.er1 >conftest.err
38134 cat conftest.err >&5
38135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136 (exit $ac_status); } &&
38137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38138 { (case "(($ac_try" in
38139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38140 *) ac_try_echo=$ac_try;;
38142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38143 (eval "$ac_try") 2>&5
38145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38146 (exit $ac_status); }; } &&
38147 { ac_try='test -s conftest.$ac_objext'
38148 { (case "(($ac_try" in
38149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38150 *) ac_try_echo=$ac_try;;
38152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38153 (eval "$ac_try") 2>&5
38155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38156 (exit $ac_status); }; }; then
38157 ac_cv_member_struct_passwd_pw_gecos=yes
38159 echo "$as_me: failed program was:" >&5
38160 sed 's/^/| /' conftest.$ac_ext >&5
38162 ac_cv_member_struct_passwd_pw_gecos=no
38165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38170 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
38171 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
38172 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
38174 cat >>confdefs.h <<_ACEOF
38175 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
38181 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
38182 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
38183 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
38184 echo $ECHO_N "(cached) $ECHO_C" >&6
38186 cat >conftest.$ac_ext <<_ACEOF
38189 cat confdefs.h >>conftest.$ac_ext
38190 cat >>conftest.$ac_ext <<_ACEOF
38191 /* end confdefs.h. */
38192 $ac_includes_default
38198 static struct passwd ac_aggr;
38199 if (ac_aggr.pw_passwd)
38205 rm -f conftest.$ac_objext
38206 if { (ac_try="$ac_compile"
38207 case "(($ac_try" in
38208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38209 *) ac_try_echo=$ac_try;;
38211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38212 (eval "$ac_compile") 2>conftest.er1
38214 grep -v '^ *+' conftest.er1 >conftest.err
38216 cat conftest.err >&5
38217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38218 (exit $ac_status); } &&
38219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38220 { (case "(($ac_try" in
38221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38222 *) ac_try_echo=$ac_try;;
38224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38225 (eval "$ac_try") 2>&5
38227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38228 (exit $ac_status); }; } &&
38229 { ac_try='test -s conftest.$ac_objext'
38230 { (case "(($ac_try" in
38231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38232 *) ac_try_echo=$ac_try;;
38234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38235 (eval "$ac_try") 2>&5
38237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238 (exit $ac_status); }; }; then
38239 ac_cv_member_struct_passwd_pw_passwd=yes
38241 echo "$as_me: failed program was:" >&5
38242 sed 's/^/| /' conftest.$ac_ext >&5
38244 cat >conftest.$ac_ext <<_ACEOF
38247 cat confdefs.h >>conftest.$ac_ext
38248 cat >>conftest.$ac_ext <<_ACEOF
38249 /* end confdefs.h. */
38250 $ac_includes_default
38256 static struct passwd ac_aggr;
38257 if (sizeof ac_aggr.pw_passwd)
38263 rm -f conftest.$ac_objext
38264 if { (ac_try="$ac_compile"
38265 case "(($ac_try" in
38266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38267 *) ac_try_echo=$ac_try;;
38269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38270 (eval "$ac_compile") 2>conftest.er1
38272 grep -v '^ *+' conftest.er1 >conftest.err
38274 cat conftest.err >&5
38275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38276 (exit $ac_status); } &&
38277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38278 { (case "(($ac_try" in
38279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38280 *) ac_try_echo=$ac_try;;
38282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38283 (eval "$ac_try") 2>&5
38285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38286 (exit $ac_status); }; } &&
38287 { ac_try='test -s conftest.$ac_objext'
38288 { (case "(($ac_try" in
38289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38290 *) ac_try_echo=$ac_try;;
38292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38293 (eval "$ac_try") 2>&5
38295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296 (exit $ac_status); }; }; then
38297 ac_cv_member_struct_passwd_pw_passwd=yes
38299 echo "$as_me: failed program was:" >&5
38300 sed 's/^/| /' conftest.$ac_ext >&5
38302 ac_cv_member_struct_passwd_pw_passwd=no
38305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38310 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
38311 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
38312 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
38314 cat >>confdefs.h <<_ACEOF
38315 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
38322 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
38323 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
38324 if test "${ol_cv_c_upper_lower+set}" = set; then
38325 echo $ECHO_N "(cached) $ECHO_C" >&6
38328 if test "$cross_compiling" = yes; then
38329 ol_cv_c_upper_lower=safe
38331 cat >conftest.$ac_ext <<_ACEOF
38334 cat confdefs.h >>conftest.$ac_ext
38335 cat >>conftest.$ac_ext <<_ACEOF
38336 /* end confdefs.h. */
38341 if ('C' == toupper('C'))
38347 rm -f conftest$ac_exeext
38348 if { (ac_try="$ac_link"
38349 case "(($ac_try" in
38350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38351 *) ac_try_echo=$ac_try;;
38353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38354 (eval "$ac_link") 2>&5
38356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38358 { (case "(($ac_try" in
38359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38360 *) ac_try_echo=$ac_try;;
38362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38363 (eval "$ac_try") 2>&5
38365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366 (exit $ac_status); }; }; then
38367 ol_cv_c_upper_lower=no
38369 echo "$as_me: program exited with status $ac_status" >&5
38370 echo "$as_me: failed program was:" >&5
38371 sed 's/^/| /' conftest.$ac_ext >&5
38373 ( exit $ac_status )
38374 ol_cv_c_upper_lower=yes
38376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38381 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
38382 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
38383 if test $ol_cv_c_upper_lower != no ; then
38385 cat >>confdefs.h <<\_ACEOF
38386 #define C_UPPER_LOWER 1
38391 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38392 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
38393 if test "${ac_cv_c_const+set}" = set; then
38394 echo $ECHO_N "(cached) $ECHO_C" >&6
38396 cat >conftest.$ac_ext <<_ACEOF
38399 cat confdefs.h >>conftest.$ac_ext
38400 cat >>conftest.$ac_ext <<_ACEOF
38401 /* end confdefs.h. */
38406 /* FIXME: Include the comments suggested by Paul. */
38407 #ifndef __cplusplus
38408 /* Ultrix mips cc rejects this. */
38409 typedef int charset[2];
38411 /* SunOS 4.1.1 cc rejects this. */
38412 char const *const *ccp;
38414 /* NEC SVR4.0.2 mips cc rejects this. */
38415 struct point {int x, y;};
38416 static struct point const zero = {0,0};
38417 /* AIX XL C 1.02.0.0 rejects this.
38418 It does not let you subtract one const X* pointer from another in
38419 an arm of an if-expression whose if-part is not a constant
38421 const char *g = "string";
38422 ccp = &g + (g ? g-g : 0);
38423 /* HPUX 7.0 cc rejects these. */
38426 ccp = (char const *const *) p;
38427 { /* SCO 3.2v4 cc rejects this. */
38429 char const *s = 0 ? (char *) 0 : (char const *) 0;
38434 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
38435 int x[] = {25, 17};
38436 const int *foo = &x[0];
38439 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38440 typedef const int *iptr;
38444 { /* AIX XL C 1.02.0.0 rejects this saying
38445 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38446 struct s { int j; const int *ap[3]; };
38447 struct s *b; b->j = 5;
38449 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38450 const int foo = 10;
38451 if (!foo) return 0;
38453 return !x[0] && !zero.x;
38460 rm -f conftest.$ac_objext
38461 if { (ac_try="$ac_compile"
38462 case "(($ac_try" in
38463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38464 *) ac_try_echo=$ac_try;;
38466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38467 (eval "$ac_compile") 2>conftest.er1
38469 grep -v '^ *+' conftest.er1 >conftest.err
38471 cat conftest.err >&5
38472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38473 (exit $ac_status); } &&
38474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38475 { (case "(($ac_try" in
38476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38477 *) ac_try_echo=$ac_try;;
38479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38480 (eval "$ac_try") 2>&5
38482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38483 (exit $ac_status); }; } &&
38484 { ac_try='test -s conftest.$ac_objext'
38485 { (case "(($ac_try" in
38486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38487 *) ac_try_echo=$ac_try;;
38489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38490 (eval "$ac_try") 2>&5
38492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493 (exit $ac_status); }; }; then
38496 echo "$as_me: failed program was:" >&5
38497 sed 's/^/| /' conftest.$ac_ext >&5
38502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38504 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38505 echo "${ECHO_T}$ac_cv_c_const" >&6; }
38506 if test $ac_cv_c_const = no; then
38508 cat >>confdefs.h <<\_ACEOF
38514 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
38515 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
38516 if test "${ol_cv_c_volatile+set}" = set; then
38517 echo $ECHO_N "(cached) $ECHO_C" >&6
38519 cat >conftest.$ac_ext <<_ACEOF
38522 cat confdefs.h >>conftest.$ac_ext
38523 cat >>conftest.$ac_ext <<_ACEOF
38524 /* end confdefs.h. */
38529 volatile int a; int * volatile b = x ? &y : &z;
38530 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
38536 rm -f conftest.$ac_objext
38537 if { (ac_try="$ac_compile"
38538 case "(($ac_try" in
38539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38540 *) ac_try_echo=$ac_try;;
38542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38543 (eval "$ac_compile") 2>conftest.er1
38545 grep -v '^ *+' conftest.er1 >conftest.err
38547 cat conftest.err >&5
38548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38549 (exit $ac_status); } &&
38550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38551 { (case "(($ac_try" in
38552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38553 *) ac_try_echo=$ac_try;;
38555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38556 (eval "$ac_try") 2>&5
38558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559 (exit $ac_status); }; } &&
38560 { ac_try='test -s conftest.$ac_objext'
38561 { (case "(($ac_try" in
38562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38563 *) ac_try_echo=$ac_try;;
38565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38566 (eval "$ac_try") 2>&5
38568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38569 (exit $ac_status); }; }; then
38570 ol_cv_c_volatile=yes
38572 echo "$as_me: failed program was:" >&5
38573 sed 's/^/| /' conftest.$ac_ext >&5
38575 ol_cv_c_volatile=no
38578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38580 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
38581 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
38582 if test $ol_cv_c_volatile = yes; then
38586 cat >>confdefs.h <<\_ACEOF
38593 if test $cross_compiling = yes ; then
38594 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
38595 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
38597 cat >>confdefs.h <<\_ACEOF
38598 #define CROSS_COMPILING 1
38602 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
38603 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
38604 if test "${ac_cv_c_bigendian+set}" = set; then
38605 echo $ECHO_N "(cached) $ECHO_C" >&6
38607 # See if sys/param.h defines the BYTE_ORDER macro.
38608 cat >conftest.$ac_ext <<_ACEOF
38611 cat confdefs.h >>conftest.$ac_ext
38612 cat >>conftest.$ac_ext <<_ACEOF
38613 /* end confdefs.h. */
38614 #include <sys/types.h>
38615 #include <sys/param.h>
38620 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
38621 bogus endian macros
38628 rm -f conftest.$ac_objext
38629 if { (ac_try="$ac_compile"
38630 case "(($ac_try" in
38631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38632 *) ac_try_echo=$ac_try;;
38634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38635 (eval "$ac_compile") 2>conftest.er1
38637 grep -v '^ *+' conftest.er1 >conftest.err
38639 cat conftest.err >&5
38640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38641 (exit $ac_status); } &&
38642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38643 { (case "(($ac_try" in
38644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38645 *) ac_try_echo=$ac_try;;
38647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38648 (eval "$ac_try") 2>&5
38650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38651 (exit $ac_status); }; } &&
38652 { ac_try='test -s conftest.$ac_objext'
38653 { (case "(($ac_try" in
38654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38655 *) ac_try_echo=$ac_try;;
38657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38658 (eval "$ac_try") 2>&5
38660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38661 (exit $ac_status); }; }; then
38662 # It does; now see whether it defined to BIG_ENDIAN or not.
38663 cat >conftest.$ac_ext <<_ACEOF
38666 cat confdefs.h >>conftest.$ac_ext
38667 cat >>conftest.$ac_ext <<_ACEOF
38668 /* end confdefs.h. */
38669 #include <sys/types.h>
38670 #include <sys/param.h>
38675 #if BYTE_ORDER != BIG_ENDIAN
38683 rm -f conftest.$ac_objext
38684 if { (ac_try="$ac_compile"
38685 case "(($ac_try" in
38686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38687 *) ac_try_echo=$ac_try;;
38689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38690 (eval "$ac_compile") 2>conftest.er1
38692 grep -v '^ *+' conftest.er1 >conftest.err
38694 cat conftest.err >&5
38695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38696 (exit $ac_status); } &&
38697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38698 { (case "(($ac_try" in
38699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38700 *) ac_try_echo=$ac_try;;
38702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38703 (eval "$ac_try") 2>&5
38705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38706 (exit $ac_status); }; } &&
38707 { ac_try='test -s conftest.$ac_objext'
38708 { (case "(($ac_try" in
38709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38710 *) ac_try_echo=$ac_try;;
38712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38713 (eval "$ac_try") 2>&5
38715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38716 (exit $ac_status); }; }; then
38717 ac_cv_c_bigendian=yes
38719 echo "$as_me: failed program was:" >&5
38720 sed 's/^/| /' conftest.$ac_ext >&5
38722 ac_cv_c_bigendian=no
38725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38727 echo "$as_me: failed program was:" >&5
38728 sed 's/^/| /' conftest.$ac_ext >&5
38730 # It does not; compile a test program.
38731 if test "$cross_compiling" = yes; then
38732 # try to guess the endianness by grepping values into an object file
38733 ac_cv_c_bigendian=unknown
38734 cat >conftest.$ac_ext <<_ACEOF
38737 cat confdefs.h >>conftest.$ac_ext
38738 cat >>conftest.$ac_ext <<_ACEOF
38739 /* end confdefs.h. */
38740 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38741 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38742 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
38743 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38744 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38745 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
38749 _ascii (); _ebcdic ();
38754 rm -f conftest.$ac_objext
38755 if { (ac_try="$ac_compile"
38756 case "(($ac_try" in
38757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38758 *) ac_try_echo=$ac_try;;
38760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38761 (eval "$ac_compile") 2>conftest.er1
38763 grep -v '^ *+' conftest.er1 >conftest.err
38765 cat conftest.err >&5
38766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38767 (exit $ac_status); } &&
38768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38769 { (case "(($ac_try" in
38770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38771 *) ac_try_echo=$ac_try;;
38773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38774 (eval "$ac_try") 2>&5
38776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38777 (exit $ac_status); }; } &&
38778 { ac_try='test -s conftest.$ac_objext'
38779 { (case "(($ac_try" in
38780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38781 *) ac_try_echo=$ac_try;;
38783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38784 (eval "$ac_try") 2>&5
38786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38787 (exit $ac_status); }; }; then
38788 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
38789 ac_cv_c_bigendian=yes
38791 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38792 if test "$ac_cv_c_bigendian" = unknown; then
38793 ac_cv_c_bigendian=no
38795 # finding both strings is unlikely to happen, but who knows?
38796 ac_cv_c_bigendian=unknown
38800 echo "$as_me: failed program was:" >&5
38801 sed 's/^/| /' conftest.$ac_ext >&5
38806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38808 cat >conftest.$ac_ext <<_ACEOF
38811 cat confdefs.h >>conftest.$ac_ext
38812 cat >>conftest.$ac_ext <<_ACEOF
38813 /* end confdefs.h. */
38814 $ac_includes_default
38819 /* Are we little or big endian? From Harbison&Steele. */
38823 char c[sizeof (long int)];
38826 return u.c[sizeof (long int) - 1] == 1;
38832 rm -f conftest$ac_exeext
38833 if { (ac_try="$ac_link"
38834 case "(($ac_try" in
38835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38836 *) ac_try_echo=$ac_try;;
38838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38839 (eval "$ac_link") 2>&5
38841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38843 { (case "(($ac_try" in
38844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38845 *) ac_try_echo=$ac_try;;
38847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38848 (eval "$ac_try") 2>&5
38850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38851 (exit $ac_status); }; }; then
38852 ac_cv_c_bigendian=no
38854 echo "$as_me: program exited with status $ac_status" >&5
38855 echo "$as_me: failed program was:" >&5
38856 sed 's/^/| /' conftest.$ac_ext >&5
38858 ( exit $ac_status )
38859 ac_cv_c_bigendian=yes
38861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38869 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
38870 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
38871 case $ac_cv_c_bigendian in
38874 cat >>confdefs.h <<\_ACEOF
38875 #define WORDS_BIGENDIAN 1
38881 { { echo "$as_me:$LINENO: error: unknown endianness
38882 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
38883 echo "$as_me: error: unknown endianness
38884 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
38885 { (exit 1); exit 1; }; } ;;
38890 { echo "$as_me:$LINENO: checking for short" >&5
38891 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
38892 if test "${ac_cv_type_short+set}" = set; then
38893 echo $ECHO_N "(cached) $ECHO_C" >&6
38895 cat >conftest.$ac_ext <<_ACEOF
38898 cat confdefs.h >>conftest.$ac_ext
38899 cat >>conftest.$ac_ext <<_ACEOF
38900 /* end confdefs.h. */
38901 $ac_includes_default
38902 typedef short ac__type_new_;
38906 if ((ac__type_new_ *) 0)
38908 if (sizeof (ac__type_new_))
38914 rm -f conftest.$ac_objext
38915 if { (ac_try="$ac_compile"
38916 case "(($ac_try" in
38917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38918 *) ac_try_echo=$ac_try;;
38920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38921 (eval "$ac_compile") 2>conftest.er1
38923 grep -v '^ *+' conftest.er1 >conftest.err
38925 cat conftest.err >&5
38926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38927 (exit $ac_status); } &&
38928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38929 { (case "(($ac_try" in
38930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38931 *) ac_try_echo=$ac_try;;
38933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38934 (eval "$ac_try") 2>&5
38936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38937 (exit $ac_status); }; } &&
38938 { ac_try='test -s conftest.$ac_objext'
38939 { (case "(($ac_try" in
38940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38941 *) ac_try_echo=$ac_try;;
38943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38944 (eval "$ac_try") 2>&5
38946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38947 (exit $ac_status); }; }; then
38948 ac_cv_type_short=yes
38950 echo "$as_me: failed program was:" >&5
38951 sed 's/^/| /' conftest.$ac_ext >&5
38953 ac_cv_type_short=no
38956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38958 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
38959 echo "${ECHO_T}$ac_cv_type_short" >&6; }
38961 { echo "$as_me:$LINENO: checking size of short" >&5
38962 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
38963 if test "${ac_cv_sizeof_short+set}" = set; then
38964 echo $ECHO_N "(cached) $ECHO_C" >&6
38966 if test "$ac_cv_type_short" = yes; then
38967 # The cast to long int works around a bug in the HP C Compiler
38968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38970 # This bug is HP SR number 8606223364.
38971 if test "$cross_compiling" = yes; then
38972 # Depending upon the size, compute the lo and hi bounds.
38973 cat >conftest.$ac_ext <<_ACEOF
38976 cat confdefs.h >>conftest.$ac_ext
38977 cat >>conftest.$ac_ext <<_ACEOF
38978 /* end confdefs.h. */
38979 $ac_includes_default
38980 typedef short ac__type_sizeof_;
38984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
38991 rm -f conftest.$ac_objext
38992 if { (ac_try="$ac_compile"
38993 case "(($ac_try" in
38994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38995 *) ac_try_echo=$ac_try;;
38997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38998 (eval "$ac_compile") 2>conftest.er1
39000 grep -v '^ *+' conftest.er1 >conftest.err
39002 cat conftest.err >&5
39003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39004 (exit $ac_status); } &&
39005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39006 { (case "(($ac_try" in
39007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39008 *) ac_try_echo=$ac_try;;
39010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39011 (eval "$ac_try") 2>&5
39013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014 (exit $ac_status); }; } &&
39015 { ac_try='test -s conftest.$ac_objext'
39016 { (case "(($ac_try" in
39017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39018 *) ac_try_echo=$ac_try;;
39020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39021 (eval "$ac_try") 2>&5
39023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39024 (exit $ac_status); }; }; then
39027 cat >conftest.$ac_ext <<_ACEOF
39030 cat confdefs.h >>conftest.$ac_ext
39031 cat >>conftest.$ac_ext <<_ACEOF
39032 /* end confdefs.h. */
39033 $ac_includes_default
39034 typedef short ac__type_sizeof_;
39038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
39045 rm -f conftest.$ac_objext
39046 if { (ac_try="$ac_compile"
39047 case "(($ac_try" in
39048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39049 *) ac_try_echo=$ac_try;;
39051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39052 (eval "$ac_compile") 2>conftest.er1
39054 grep -v '^ *+' conftest.er1 >conftest.err
39056 cat conftest.err >&5
39057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39058 (exit $ac_status); } &&
39059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39060 { (case "(($ac_try" in
39061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39062 *) ac_try_echo=$ac_try;;
39064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39065 (eval "$ac_try") 2>&5
39067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39068 (exit $ac_status); }; } &&
39069 { ac_try='test -s conftest.$ac_objext'
39070 { (case "(($ac_try" in
39071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39072 *) ac_try_echo=$ac_try;;
39074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39075 (eval "$ac_try") 2>&5
39077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078 (exit $ac_status); }; }; then
39079 ac_hi=$ac_mid; break
39081 echo "$as_me: failed program was:" >&5
39082 sed 's/^/| /' conftest.$ac_ext >&5
39084 ac_lo=`expr $ac_mid + 1`
39085 if test $ac_lo -le $ac_mid; then
39089 ac_mid=`expr 2 '*' $ac_mid + 1`
39092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39095 echo "$as_me: failed program was:" >&5
39096 sed 's/^/| /' conftest.$ac_ext >&5
39098 cat >conftest.$ac_ext <<_ACEOF
39101 cat confdefs.h >>conftest.$ac_ext
39102 cat >>conftest.$ac_ext <<_ACEOF
39103 /* end confdefs.h. */
39104 $ac_includes_default
39105 typedef short ac__type_sizeof_;
39109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
39116 rm -f conftest.$ac_objext
39117 if { (ac_try="$ac_compile"
39118 case "(($ac_try" in
39119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39120 *) ac_try_echo=$ac_try;;
39122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39123 (eval "$ac_compile") 2>conftest.er1
39125 grep -v '^ *+' conftest.er1 >conftest.err
39127 cat conftest.err >&5
39128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39129 (exit $ac_status); } &&
39130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39131 { (case "(($ac_try" in
39132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39133 *) ac_try_echo=$ac_try;;
39135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39136 (eval "$ac_try") 2>&5
39138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39139 (exit $ac_status); }; } &&
39140 { ac_try='test -s conftest.$ac_objext'
39141 { (case "(($ac_try" in
39142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39143 *) ac_try_echo=$ac_try;;
39145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39146 (eval "$ac_try") 2>&5
39148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39149 (exit $ac_status); }; }; then
39152 cat >conftest.$ac_ext <<_ACEOF
39155 cat confdefs.h >>conftest.$ac_ext
39156 cat >>conftest.$ac_ext <<_ACEOF
39157 /* end confdefs.h. */
39158 $ac_includes_default
39159 typedef short ac__type_sizeof_;
39163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
39170 rm -f conftest.$ac_objext
39171 if { (ac_try="$ac_compile"
39172 case "(($ac_try" in
39173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39174 *) ac_try_echo=$ac_try;;
39176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39177 (eval "$ac_compile") 2>conftest.er1
39179 grep -v '^ *+' conftest.er1 >conftest.err
39181 cat conftest.err >&5
39182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39183 (exit $ac_status); } &&
39184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39185 { (case "(($ac_try" in
39186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39187 *) ac_try_echo=$ac_try;;
39189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39190 (eval "$ac_try") 2>&5
39192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39193 (exit $ac_status); }; } &&
39194 { ac_try='test -s conftest.$ac_objext'
39195 { (case "(($ac_try" in
39196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39197 *) ac_try_echo=$ac_try;;
39199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39200 (eval "$ac_try") 2>&5
39202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39203 (exit $ac_status); }; }; then
39204 ac_lo=$ac_mid; break
39206 echo "$as_me: failed program was:" >&5
39207 sed 's/^/| /' conftest.$ac_ext >&5
39209 ac_hi=`expr '(' $ac_mid ')' - 1`
39210 if test $ac_mid -le $ac_hi; then
39214 ac_mid=`expr 2 '*' $ac_mid`
39217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39220 echo "$as_me: failed program was:" >&5
39221 sed 's/^/| /' conftest.$ac_ext >&5
39226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39230 # Binary search between lo and hi bounds.
39231 while test "x$ac_lo" != "x$ac_hi"; do
39232 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39233 cat >conftest.$ac_ext <<_ACEOF
39236 cat confdefs.h >>conftest.$ac_ext
39237 cat >>conftest.$ac_ext <<_ACEOF
39238 /* end confdefs.h. */
39239 $ac_includes_default
39240 typedef short ac__type_sizeof_;
39244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
39251 rm -f conftest.$ac_objext
39252 if { (ac_try="$ac_compile"
39253 case "(($ac_try" in
39254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39255 *) ac_try_echo=$ac_try;;
39257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39258 (eval "$ac_compile") 2>conftest.er1
39260 grep -v '^ *+' conftest.er1 >conftest.err
39262 cat conftest.err >&5
39263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39264 (exit $ac_status); } &&
39265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39266 { (case "(($ac_try" in
39267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39268 *) ac_try_echo=$ac_try;;
39270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39271 (eval "$ac_try") 2>&5
39273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39274 (exit $ac_status); }; } &&
39275 { ac_try='test -s conftest.$ac_objext'
39276 { (case "(($ac_try" in
39277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39278 *) ac_try_echo=$ac_try;;
39280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39281 (eval "$ac_try") 2>&5
39283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284 (exit $ac_status); }; }; then
39287 echo "$as_me: failed program was:" >&5
39288 sed 's/^/| /' conftest.$ac_ext >&5
39290 ac_lo=`expr '(' $ac_mid ')' + 1`
39293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39296 ?*) ac_cv_sizeof_short=$ac_lo;;
39297 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
39298 See \`config.log' for more details." >&5
39299 echo "$as_me: error: cannot compute sizeof (short)
39300 See \`config.log' for more details." >&2;}
39301 { (exit 77); exit 77; }; } ;;
39304 cat >conftest.$ac_ext <<_ACEOF
39307 cat confdefs.h >>conftest.$ac_ext
39308 cat >>conftest.$ac_ext <<_ACEOF
39309 /* end confdefs.h. */
39310 $ac_includes_default
39311 typedef short ac__type_sizeof_;
39312 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
39313 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
39315 #include <stdlib.h>
39320 FILE *f = fopen ("conftest.val", "w");
39323 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
39325 long int i = longval ();
39326 if (i != ((long int) (sizeof (ac__type_sizeof_))))
39328 fprintf (f, "%ld\n", i);
39332 unsigned long int i = ulongval ();
39333 if (i != ((long int) (sizeof (ac__type_sizeof_))))
39335 fprintf (f, "%lu\n", i);
39337 return ferror (f) || fclose (f) != 0;
39343 rm -f conftest$ac_exeext
39344 if { (ac_try="$ac_link"
39345 case "(($ac_try" in
39346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39347 *) ac_try_echo=$ac_try;;
39349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39350 (eval "$ac_link") 2>&5
39352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39354 { (case "(($ac_try" in
39355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39356 *) ac_try_echo=$ac_try;;
39358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39359 (eval "$ac_try") 2>&5
39361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39362 (exit $ac_status); }; }; then
39363 ac_cv_sizeof_short=`cat conftest.val`
39365 echo "$as_me: program exited with status $ac_status" >&5
39366 echo "$as_me: failed program was:" >&5
39367 sed 's/^/| /' conftest.$ac_ext >&5
39369 ( exit $ac_status )
39370 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
39371 See \`config.log' for more details." >&5
39372 echo "$as_me: error: cannot compute sizeof (short)
39373 See \`config.log' for more details." >&2;}
39374 { (exit 77); exit 77; }; }
39376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39380 ac_cv_sizeof_short=0
39383 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
39384 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
39385 cat >>confdefs.h <<_ACEOF
39386 #define SIZEOF_SHORT $ac_cv_sizeof_short
39390 { echo "$as_me:$LINENO: checking for int" >&5
39391 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
39392 if test "${ac_cv_type_int+set}" = set; then
39393 echo $ECHO_N "(cached) $ECHO_C" >&6
39395 cat >conftest.$ac_ext <<_ACEOF
39398 cat confdefs.h >>conftest.$ac_ext
39399 cat >>conftest.$ac_ext <<_ACEOF
39400 /* end confdefs.h. */
39401 $ac_includes_default
39402 typedef int ac__type_new_;
39406 if ((ac__type_new_ *) 0)
39408 if (sizeof (ac__type_new_))
39414 rm -f conftest.$ac_objext
39415 if { (ac_try="$ac_compile"
39416 case "(($ac_try" in
39417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39418 *) ac_try_echo=$ac_try;;
39420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39421 (eval "$ac_compile") 2>conftest.er1
39423 grep -v '^ *+' conftest.er1 >conftest.err
39425 cat conftest.err >&5
39426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39427 (exit $ac_status); } &&
39428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39429 { (case "(($ac_try" in
39430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39431 *) ac_try_echo=$ac_try;;
39433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39434 (eval "$ac_try") 2>&5
39436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39437 (exit $ac_status); }; } &&
39438 { ac_try='test -s conftest.$ac_objext'
39439 { (case "(($ac_try" in
39440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39441 *) ac_try_echo=$ac_try;;
39443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39444 (eval "$ac_try") 2>&5
39446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39447 (exit $ac_status); }; }; then
39450 echo "$as_me: failed program was:" >&5
39451 sed 's/^/| /' conftest.$ac_ext >&5
39456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39458 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
39459 echo "${ECHO_T}$ac_cv_type_int" >&6; }
39461 { echo "$as_me:$LINENO: checking size of int" >&5
39462 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
39463 if test "${ac_cv_sizeof_int+set}" = set; then
39464 echo $ECHO_N "(cached) $ECHO_C" >&6
39466 if test "$ac_cv_type_int" = yes; then
39467 # The cast to long int works around a bug in the HP C Compiler
39468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39470 # This bug is HP SR number 8606223364.
39471 if test "$cross_compiling" = yes; then
39472 # Depending upon the size, compute the lo and hi bounds.
39473 cat >conftest.$ac_ext <<_ACEOF
39476 cat confdefs.h >>conftest.$ac_ext
39477 cat >>conftest.$ac_ext <<_ACEOF
39478 /* end confdefs.h. */
39479 $ac_includes_default
39480 typedef int ac__type_sizeof_;
39484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
39491 rm -f conftest.$ac_objext
39492 if { (ac_try="$ac_compile"
39493 case "(($ac_try" in
39494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39495 *) ac_try_echo=$ac_try;;
39497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39498 (eval "$ac_compile") 2>conftest.er1
39500 grep -v '^ *+' conftest.er1 >conftest.err
39502 cat conftest.err >&5
39503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39504 (exit $ac_status); } &&
39505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39506 { (case "(($ac_try" in
39507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39508 *) ac_try_echo=$ac_try;;
39510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39511 (eval "$ac_try") 2>&5
39513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39514 (exit $ac_status); }; } &&
39515 { ac_try='test -s conftest.$ac_objext'
39516 { (case "(($ac_try" in
39517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39518 *) ac_try_echo=$ac_try;;
39520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39521 (eval "$ac_try") 2>&5
39523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524 (exit $ac_status); }; }; then
39527 cat >conftest.$ac_ext <<_ACEOF
39530 cat confdefs.h >>conftest.$ac_ext
39531 cat >>conftest.$ac_ext <<_ACEOF
39532 /* end confdefs.h. */
39533 $ac_includes_default
39534 typedef int ac__type_sizeof_;
39538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
39545 rm -f conftest.$ac_objext
39546 if { (ac_try="$ac_compile"
39547 case "(($ac_try" in
39548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39549 *) ac_try_echo=$ac_try;;
39551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39552 (eval "$ac_compile") 2>conftest.er1
39554 grep -v '^ *+' conftest.er1 >conftest.err
39556 cat conftest.err >&5
39557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39558 (exit $ac_status); } &&
39559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39560 { (case "(($ac_try" in
39561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39562 *) ac_try_echo=$ac_try;;
39564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39565 (eval "$ac_try") 2>&5
39567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39568 (exit $ac_status); }; } &&
39569 { ac_try='test -s conftest.$ac_objext'
39570 { (case "(($ac_try" in
39571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39572 *) ac_try_echo=$ac_try;;
39574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39575 (eval "$ac_try") 2>&5
39577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39578 (exit $ac_status); }; }; then
39579 ac_hi=$ac_mid; break
39581 echo "$as_me: failed program was:" >&5
39582 sed 's/^/| /' conftest.$ac_ext >&5
39584 ac_lo=`expr $ac_mid + 1`
39585 if test $ac_lo -le $ac_mid; then
39589 ac_mid=`expr 2 '*' $ac_mid + 1`
39592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39595 echo "$as_me: failed program was:" >&5
39596 sed 's/^/| /' conftest.$ac_ext >&5
39598 cat >conftest.$ac_ext <<_ACEOF
39601 cat confdefs.h >>conftest.$ac_ext
39602 cat >>conftest.$ac_ext <<_ACEOF
39603 /* end confdefs.h. */
39604 $ac_includes_default
39605 typedef int ac__type_sizeof_;
39609 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
39616 rm -f conftest.$ac_objext
39617 if { (ac_try="$ac_compile"
39618 case "(($ac_try" in
39619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39620 *) ac_try_echo=$ac_try;;
39622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39623 (eval "$ac_compile") 2>conftest.er1
39625 grep -v '^ *+' conftest.er1 >conftest.err
39627 cat conftest.err >&5
39628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39629 (exit $ac_status); } &&
39630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39631 { (case "(($ac_try" in
39632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39633 *) ac_try_echo=$ac_try;;
39635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39636 (eval "$ac_try") 2>&5
39638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39639 (exit $ac_status); }; } &&
39640 { ac_try='test -s conftest.$ac_objext'
39641 { (case "(($ac_try" in
39642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39643 *) ac_try_echo=$ac_try;;
39645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39646 (eval "$ac_try") 2>&5
39648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39649 (exit $ac_status); }; }; then
39652 cat >conftest.$ac_ext <<_ACEOF
39655 cat confdefs.h >>conftest.$ac_ext
39656 cat >>conftest.$ac_ext <<_ACEOF
39657 /* end confdefs.h. */
39658 $ac_includes_default
39659 typedef int ac__type_sizeof_;
39663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
39670 rm -f conftest.$ac_objext
39671 if { (ac_try="$ac_compile"
39672 case "(($ac_try" in
39673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39674 *) ac_try_echo=$ac_try;;
39676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39677 (eval "$ac_compile") 2>conftest.er1
39679 grep -v '^ *+' conftest.er1 >conftest.err
39681 cat conftest.err >&5
39682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39683 (exit $ac_status); } &&
39684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39685 { (case "(($ac_try" in
39686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39687 *) ac_try_echo=$ac_try;;
39689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39690 (eval "$ac_try") 2>&5
39692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39693 (exit $ac_status); }; } &&
39694 { ac_try='test -s conftest.$ac_objext'
39695 { (case "(($ac_try" in
39696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39697 *) ac_try_echo=$ac_try;;
39699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39700 (eval "$ac_try") 2>&5
39702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703 (exit $ac_status); }; }; then
39704 ac_lo=$ac_mid; break
39706 echo "$as_me: failed program was:" >&5
39707 sed 's/^/| /' conftest.$ac_ext >&5
39709 ac_hi=`expr '(' $ac_mid ')' - 1`
39710 if test $ac_mid -le $ac_hi; then
39714 ac_mid=`expr 2 '*' $ac_mid`
39717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39720 echo "$as_me: failed program was:" >&5
39721 sed 's/^/| /' conftest.$ac_ext >&5
39726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39730 # Binary search between lo and hi bounds.
39731 while test "x$ac_lo" != "x$ac_hi"; do
39732 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39733 cat >conftest.$ac_ext <<_ACEOF
39736 cat confdefs.h >>conftest.$ac_ext
39737 cat >>conftest.$ac_ext <<_ACEOF
39738 /* end confdefs.h. */
39739 $ac_includes_default
39740 typedef int ac__type_sizeof_;
39744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
39751 rm -f conftest.$ac_objext
39752 if { (ac_try="$ac_compile"
39753 case "(($ac_try" in
39754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39755 *) ac_try_echo=$ac_try;;
39757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39758 (eval "$ac_compile") 2>conftest.er1
39760 grep -v '^ *+' conftest.er1 >conftest.err
39762 cat conftest.err >&5
39763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39764 (exit $ac_status); } &&
39765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39766 { (case "(($ac_try" in
39767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39768 *) ac_try_echo=$ac_try;;
39770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39771 (eval "$ac_try") 2>&5
39773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774 (exit $ac_status); }; } &&
39775 { ac_try='test -s conftest.$ac_objext'
39776 { (case "(($ac_try" in
39777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39778 *) ac_try_echo=$ac_try;;
39780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39781 (eval "$ac_try") 2>&5
39783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784 (exit $ac_status); }; }; then
39787 echo "$as_me: failed program was:" >&5
39788 sed 's/^/| /' conftest.$ac_ext >&5
39790 ac_lo=`expr '(' $ac_mid ')' + 1`
39793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39796 ?*) ac_cv_sizeof_int=$ac_lo;;
39797 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
39798 See \`config.log' for more details." >&5
39799 echo "$as_me: error: cannot compute sizeof (int)
39800 See \`config.log' for more details." >&2;}
39801 { (exit 77); exit 77; }; } ;;
39804 cat >conftest.$ac_ext <<_ACEOF
39807 cat confdefs.h >>conftest.$ac_ext
39808 cat >>conftest.$ac_ext <<_ACEOF
39809 /* end confdefs.h. */
39810 $ac_includes_default
39811 typedef int ac__type_sizeof_;
39812 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
39813 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
39815 #include <stdlib.h>
39820 FILE *f = fopen ("conftest.val", "w");
39823 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
39825 long int i = longval ();
39826 if (i != ((long int) (sizeof (ac__type_sizeof_))))
39828 fprintf (f, "%ld\n", i);
39832 unsigned long int i = ulongval ();
39833 if (i != ((long int) (sizeof (ac__type_sizeof_))))
39835 fprintf (f, "%lu\n", i);
39837 return ferror (f) || fclose (f) != 0;
39843 rm -f conftest$ac_exeext
39844 if { (ac_try="$ac_link"
39845 case "(($ac_try" in
39846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39847 *) ac_try_echo=$ac_try;;
39849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39850 (eval "$ac_link") 2>&5
39852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39854 { (case "(($ac_try" in
39855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39856 *) ac_try_echo=$ac_try;;
39858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39859 (eval "$ac_try") 2>&5
39861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39862 (exit $ac_status); }; }; then
39863 ac_cv_sizeof_int=`cat conftest.val`
39865 echo "$as_me: program exited with status $ac_status" >&5
39866 echo "$as_me: failed program was:" >&5
39867 sed 's/^/| /' conftest.$ac_ext >&5
39869 ( exit $ac_status )
39870 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
39871 See \`config.log' for more details." >&5
39872 echo "$as_me: error: cannot compute sizeof (int)
39873 See \`config.log' for more details." >&2;}
39874 { (exit 77); exit 77; }; }
39876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39883 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
39884 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
39885 cat >>confdefs.h <<_ACEOF
39886 #define SIZEOF_INT $ac_cv_sizeof_int
39890 { echo "$as_me:$LINENO: checking for long" >&5
39891 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
39892 if test "${ac_cv_type_long+set}" = set; then
39893 echo $ECHO_N "(cached) $ECHO_C" >&6
39895 cat >conftest.$ac_ext <<_ACEOF
39898 cat confdefs.h >>conftest.$ac_ext
39899 cat >>conftest.$ac_ext <<_ACEOF
39900 /* end confdefs.h. */
39901 $ac_includes_default
39902 typedef long ac__type_new_;
39906 if ((ac__type_new_ *) 0)
39908 if (sizeof (ac__type_new_))
39914 rm -f conftest.$ac_objext
39915 if { (ac_try="$ac_compile"
39916 case "(($ac_try" in
39917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39918 *) ac_try_echo=$ac_try;;
39920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39921 (eval "$ac_compile") 2>conftest.er1
39923 grep -v '^ *+' conftest.er1 >conftest.err
39925 cat conftest.err >&5
39926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39927 (exit $ac_status); } &&
39928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39929 { (case "(($ac_try" in
39930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39931 *) ac_try_echo=$ac_try;;
39933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39934 (eval "$ac_try") 2>&5
39936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39937 (exit $ac_status); }; } &&
39938 { ac_try='test -s conftest.$ac_objext'
39939 { (case "(($ac_try" in
39940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39941 *) ac_try_echo=$ac_try;;
39943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39944 (eval "$ac_try") 2>&5
39946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39947 (exit $ac_status); }; }; then
39948 ac_cv_type_long=yes
39950 echo "$as_me: failed program was:" >&5
39951 sed 's/^/| /' conftest.$ac_ext >&5
39956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39958 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
39959 echo "${ECHO_T}$ac_cv_type_long" >&6; }
39961 { echo "$as_me:$LINENO: checking size of long" >&5
39962 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
39963 if test "${ac_cv_sizeof_long+set}" = set; then
39964 echo $ECHO_N "(cached) $ECHO_C" >&6
39966 if test "$ac_cv_type_long" = yes; then
39967 # The cast to long int works around a bug in the HP C Compiler
39968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39970 # This bug is HP SR number 8606223364.
39971 if test "$cross_compiling" = yes; then
39972 # Depending upon the size, compute the lo and hi bounds.
39973 cat >conftest.$ac_ext <<_ACEOF
39976 cat confdefs.h >>conftest.$ac_ext
39977 cat >>conftest.$ac_ext <<_ACEOF
39978 /* end confdefs.h. */
39979 $ac_includes_default
39980 typedef long ac__type_sizeof_;
39984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
39991 rm -f conftest.$ac_objext
39992 if { (ac_try="$ac_compile"
39993 case "(($ac_try" in
39994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39995 *) ac_try_echo=$ac_try;;
39997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39998 (eval "$ac_compile") 2>conftest.er1
40000 grep -v '^ *+' conftest.er1 >conftest.err
40002 cat conftest.err >&5
40003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40004 (exit $ac_status); } &&
40005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40006 { (case "(($ac_try" in
40007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40008 *) ac_try_echo=$ac_try;;
40010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40011 (eval "$ac_try") 2>&5
40013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014 (exit $ac_status); }; } &&
40015 { ac_try='test -s conftest.$ac_objext'
40016 { (case "(($ac_try" in
40017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40018 *) ac_try_echo=$ac_try;;
40020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40021 (eval "$ac_try") 2>&5
40023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40024 (exit $ac_status); }; }; then
40027 cat >conftest.$ac_ext <<_ACEOF
40030 cat confdefs.h >>conftest.$ac_ext
40031 cat >>conftest.$ac_ext <<_ACEOF
40032 /* end confdefs.h. */
40033 $ac_includes_default
40034 typedef long ac__type_sizeof_;
40038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
40045 rm -f conftest.$ac_objext
40046 if { (ac_try="$ac_compile"
40047 case "(($ac_try" in
40048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40049 *) ac_try_echo=$ac_try;;
40051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40052 (eval "$ac_compile") 2>conftest.er1
40054 grep -v '^ *+' conftest.er1 >conftest.err
40056 cat conftest.err >&5
40057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40058 (exit $ac_status); } &&
40059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40060 { (case "(($ac_try" in
40061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40062 *) ac_try_echo=$ac_try;;
40064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40065 (eval "$ac_try") 2>&5
40067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40068 (exit $ac_status); }; } &&
40069 { ac_try='test -s conftest.$ac_objext'
40070 { (case "(($ac_try" in
40071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40072 *) ac_try_echo=$ac_try;;
40074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40075 (eval "$ac_try") 2>&5
40077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40078 (exit $ac_status); }; }; then
40079 ac_hi=$ac_mid; break
40081 echo "$as_me: failed program was:" >&5
40082 sed 's/^/| /' conftest.$ac_ext >&5
40084 ac_lo=`expr $ac_mid + 1`
40085 if test $ac_lo -le $ac_mid; then
40089 ac_mid=`expr 2 '*' $ac_mid + 1`
40092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40095 echo "$as_me: failed program was:" >&5
40096 sed 's/^/| /' conftest.$ac_ext >&5
40098 cat >conftest.$ac_ext <<_ACEOF
40101 cat confdefs.h >>conftest.$ac_ext
40102 cat >>conftest.$ac_ext <<_ACEOF
40103 /* end confdefs.h. */
40104 $ac_includes_default
40105 typedef long ac__type_sizeof_;
40109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
40116 rm -f conftest.$ac_objext
40117 if { (ac_try="$ac_compile"
40118 case "(($ac_try" in
40119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40120 *) ac_try_echo=$ac_try;;
40122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40123 (eval "$ac_compile") 2>conftest.er1
40125 grep -v '^ *+' conftest.er1 >conftest.err
40127 cat conftest.err >&5
40128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40129 (exit $ac_status); } &&
40130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40131 { (case "(($ac_try" in
40132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40133 *) ac_try_echo=$ac_try;;
40135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40136 (eval "$ac_try") 2>&5
40138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40139 (exit $ac_status); }; } &&
40140 { ac_try='test -s conftest.$ac_objext'
40141 { (case "(($ac_try" in
40142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40143 *) ac_try_echo=$ac_try;;
40145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40146 (eval "$ac_try") 2>&5
40148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149 (exit $ac_status); }; }; then
40152 cat >conftest.$ac_ext <<_ACEOF
40155 cat confdefs.h >>conftest.$ac_ext
40156 cat >>conftest.$ac_ext <<_ACEOF
40157 /* end confdefs.h. */
40158 $ac_includes_default
40159 typedef long ac__type_sizeof_;
40163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
40170 rm -f conftest.$ac_objext
40171 if { (ac_try="$ac_compile"
40172 case "(($ac_try" in
40173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40174 *) ac_try_echo=$ac_try;;
40176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40177 (eval "$ac_compile") 2>conftest.er1
40179 grep -v '^ *+' conftest.er1 >conftest.err
40181 cat conftest.err >&5
40182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40183 (exit $ac_status); } &&
40184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40185 { (case "(($ac_try" in
40186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40187 *) ac_try_echo=$ac_try;;
40189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40190 (eval "$ac_try") 2>&5
40192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40193 (exit $ac_status); }; } &&
40194 { ac_try='test -s conftest.$ac_objext'
40195 { (case "(($ac_try" in
40196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40197 *) ac_try_echo=$ac_try;;
40199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40200 (eval "$ac_try") 2>&5
40202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40203 (exit $ac_status); }; }; then
40204 ac_lo=$ac_mid; break
40206 echo "$as_me: failed program was:" >&5
40207 sed 's/^/| /' conftest.$ac_ext >&5
40209 ac_hi=`expr '(' $ac_mid ')' - 1`
40210 if test $ac_mid -le $ac_hi; then
40214 ac_mid=`expr 2 '*' $ac_mid`
40217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40220 echo "$as_me: failed program was:" >&5
40221 sed 's/^/| /' conftest.$ac_ext >&5
40226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40230 # Binary search between lo and hi bounds.
40231 while test "x$ac_lo" != "x$ac_hi"; do
40232 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40233 cat >conftest.$ac_ext <<_ACEOF
40236 cat confdefs.h >>conftest.$ac_ext
40237 cat >>conftest.$ac_ext <<_ACEOF
40238 /* end confdefs.h. */
40239 $ac_includes_default
40240 typedef long ac__type_sizeof_;
40244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
40251 rm -f conftest.$ac_objext
40252 if { (ac_try="$ac_compile"
40253 case "(($ac_try" in
40254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40255 *) ac_try_echo=$ac_try;;
40257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40258 (eval "$ac_compile") 2>conftest.er1
40260 grep -v '^ *+' conftest.er1 >conftest.err
40262 cat conftest.err >&5
40263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40264 (exit $ac_status); } &&
40265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40266 { (case "(($ac_try" in
40267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40268 *) ac_try_echo=$ac_try;;
40270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40271 (eval "$ac_try") 2>&5
40273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40274 (exit $ac_status); }; } &&
40275 { ac_try='test -s conftest.$ac_objext'
40276 { (case "(($ac_try" in
40277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40278 *) ac_try_echo=$ac_try;;
40280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40281 (eval "$ac_try") 2>&5
40283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40284 (exit $ac_status); }; }; then
40287 echo "$as_me: failed program was:" >&5
40288 sed 's/^/| /' conftest.$ac_ext >&5
40290 ac_lo=`expr '(' $ac_mid ')' + 1`
40293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40296 ?*) ac_cv_sizeof_long=$ac_lo;;
40297 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
40298 See \`config.log' for more details." >&5
40299 echo "$as_me: error: cannot compute sizeof (long)
40300 See \`config.log' for more details." >&2;}
40301 { (exit 77); exit 77; }; } ;;
40304 cat >conftest.$ac_ext <<_ACEOF
40307 cat confdefs.h >>conftest.$ac_ext
40308 cat >>conftest.$ac_ext <<_ACEOF
40309 /* end confdefs.h. */
40310 $ac_includes_default
40311 typedef long ac__type_sizeof_;
40312 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
40313 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
40315 #include <stdlib.h>
40320 FILE *f = fopen ("conftest.val", "w");
40323 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
40325 long int i = longval ();
40326 if (i != ((long int) (sizeof (ac__type_sizeof_))))
40328 fprintf (f, "%ld\n", i);
40332 unsigned long int i = ulongval ();
40333 if (i != ((long int) (sizeof (ac__type_sizeof_))))
40335 fprintf (f, "%lu\n", i);
40337 return ferror (f) || fclose (f) != 0;
40343 rm -f conftest$ac_exeext
40344 if { (ac_try="$ac_link"
40345 case "(($ac_try" in
40346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40347 *) ac_try_echo=$ac_try;;
40349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40350 (eval "$ac_link") 2>&5
40352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40354 { (case "(($ac_try" in
40355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40356 *) ac_try_echo=$ac_try;;
40358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40359 (eval "$ac_try") 2>&5
40361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40362 (exit $ac_status); }; }; then
40363 ac_cv_sizeof_long=`cat conftest.val`
40365 echo "$as_me: program exited with status $ac_status" >&5
40366 echo "$as_me: failed program was:" >&5
40367 sed 's/^/| /' conftest.$ac_ext >&5
40369 ( exit $ac_status )
40370 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
40371 See \`config.log' for more details." >&5
40372 echo "$as_me: error: cannot compute sizeof (long)
40373 See \`config.log' for more details." >&2;}
40374 { (exit 77); exit 77; }; }
40376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40380 ac_cv_sizeof_long=0
40383 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
40384 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
40385 cat >>confdefs.h <<_ACEOF
40386 #define SIZEOF_LONG $ac_cv_sizeof_long
40390 { echo "$as_me:$LINENO: checking for long long" >&5
40391 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
40392 if test "${ac_cv_type_long_long+set}" = set; then
40393 echo $ECHO_N "(cached) $ECHO_C" >&6
40395 cat >conftest.$ac_ext <<_ACEOF
40398 cat confdefs.h >>conftest.$ac_ext
40399 cat >>conftest.$ac_ext <<_ACEOF
40400 /* end confdefs.h. */
40401 $ac_includes_default
40402 typedef long long ac__type_new_;
40406 if ((ac__type_new_ *) 0)
40408 if (sizeof (ac__type_new_))
40414 rm -f conftest.$ac_objext
40415 if { (ac_try="$ac_compile"
40416 case "(($ac_try" in
40417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40418 *) ac_try_echo=$ac_try;;
40420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40421 (eval "$ac_compile") 2>conftest.er1
40423 grep -v '^ *+' conftest.er1 >conftest.err
40425 cat conftest.err >&5
40426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40427 (exit $ac_status); } &&
40428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40429 { (case "(($ac_try" in
40430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40431 *) ac_try_echo=$ac_try;;
40433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40434 (eval "$ac_try") 2>&5
40436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40437 (exit $ac_status); }; } &&
40438 { ac_try='test -s conftest.$ac_objext'
40439 { (case "(($ac_try" in
40440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40441 *) ac_try_echo=$ac_try;;
40443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40444 (eval "$ac_try") 2>&5
40446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40447 (exit $ac_status); }; }; then
40448 ac_cv_type_long_long=yes
40450 echo "$as_me: failed program was:" >&5
40451 sed 's/^/| /' conftest.$ac_ext >&5
40453 ac_cv_type_long_long=no
40456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40458 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
40459 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
40461 { echo "$as_me:$LINENO: checking size of long long" >&5
40462 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
40463 if test "${ac_cv_sizeof_long_long+set}" = set; then
40464 echo $ECHO_N "(cached) $ECHO_C" >&6
40466 if test "$ac_cv_type_long_long" = yes; then
40467 # The cast to long int works around a bug in the HP C Compiler
40468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40470 # This bug is HP SR number 8606223364.
40471 if test "$cross_compiling" = yes; then
40472 # Depending upon the size, compute the lo and hi bounds.
40473 cat >conftest.$ac_ext <<_ACEOF
40476 cat confdefs.h >>conftest.$ac_ext
40477 cat >>conftest.$ac_ext <<_ACEOF
40478 /* end confdefs.h. */
40479 $ac_includes_default
40480 typedef long long ac__type_sizeof_;
40484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
40491 rm -f conftest.$ac_objext
40492 if { (ac_try="$ac_compile"
40493 case "(($ac_try" in
40494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40495 *) ac_try_echo=$ac_try;;
40497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40498 (eval "$ac_compile") 2>conftest.er1
40500 grep -v '^ *+' conftest.er1 >conftest.err
40502 cat conftest.err >&5
40503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40504 (exit $ac_status); } &&
40505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40506 { (case "(($ac_try" in
40507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40508 *) ac_try_echo=$ac_try;;
40510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40511 (eval "$ac_try") 2>&5
40513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40514 (exit $ac_status); }; } &&
40515 { ac_try='test -s conftest.$ac_objext'
40516 { (case "(($ac_try" in
40517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40518 *) ac_try_echo=$ac_try;;
40520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40521 (eval "$ac_try") 2>&5
40523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40524 (exit $ac_status); }; }; then
40527 cat >conftest.$ac_ext <<_ACEOF
40530 cat confdefs.h >>conftest.$ac_ext
40531 cat >>conftest.$ac_ext <<_ACEOF
40532 /* end confdefs.h. */
40533 $ac_includes_default
40534 typedef long long ac__type_sizeof_;
40538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
40545 rm -f conftest.$ac_objext
40546 if { (ac_try="$ac_compile"
40547 case "(($ac_try" in
40548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40549 *) ac_try_echo=$ac_try;;
40551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40552 (eval "$ac_compile") 2>conftest.er1
40554 grep -v '^ *+' conftest.er1 >conftest.err
40556 cat conftest.err >&5
40557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40558 (exit $ac_status); } &&
40559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40560 { (case "(($ac_try" in
40561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40562 *) ac_try_echo=$ac_try;;
40564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40565 (eval "$ac_try") 2>&5
40567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40568 (exit $ac_status); }; } &&
40569 { ac_try='test -s conftest.$ac_objext'
40570 { (case "(($ac_try" in
40571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40572 *) ac_try_echo=$ac_try;;
40574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40575 (eval "$ac_try") 2>&5
40577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40578 (exit $ac_status); }; }; then
40579 ac_hi=$ac_mid; break
40581 echo "$as_me: failed program was:" >&5
40582 sed 's/^/| /' conftest.$ac_ext >&5
40584 ac_lo=`expr $ac_mid + 1`
40585 if test $ac_lo -le $ac_mid; then
40589 ac_mid=`expr 2 '*' $ac_mid + 1`
40592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40595 echo "$as_me: failed program was:" >&5
40596 sed 's/^/| /' conftest.$ac_ext >&5
40598 cat >conftest.$ac_ext <<_ACEOF
40601 cat confdefs.h >>conftest.$ac_ext
40602 cat >>conftest.$ac_ext <<_ACEOF
40603 /* end confdefs.h. */
40604 $ac_includes_default
40605 typedef long long ac__type_sizeof_;
40609 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
40616 rm -f conftest.$ac_objext
40617 if { (ac_try="$ac_compile"
40618 case "(($ac_try" in
40619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40620 *) ac_try_echo=$ac_try;;
40622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40623 (eval "$ac_compile") 2>conftest.er1
40625 grep -v '^ *+' conftest.er1 >conftest.err
40627 cat conftest.err >&5
40628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40629 (exit $ac_status); } &&
40630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40631 { (case "(($ac_try" in
40632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40633 *) ac_try_echo=$ac_try;;
40635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40636 (eval "$ac_try") 2>&5
40638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40639 (exit $ac_status); }; } &&
40640 { ac_try='test -s conftest.$ac_objext'
40641 { (case "(($ac_try" in
40642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40643 *) ac_try_echo=$ac_try;;
40645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40646 (eval "$ac_try") 2>&5
40648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40649 (exit $ac_status); }; }; then
40652 cat >conftest.$ac_ext <<_ACEOF
40655 cat confdefs.h >>conftest.$ac_ext
40656 cat >>conftest.$ac_ext <<_ACEOF
40657 /* end confdefs.h. */
40658 $ac_includes_default
40659 typedef long long ac__type_sizeof_;
40663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
40670 rm -f conftest.$ac_objext
40671 if { (ac_try="$ac_compile"
40672 case "(($ac_try" in
40673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40674 *) ac_try_echo=$ac_try;;
40676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40677 (eval "$ac_compile") 2>conftest.er1
40679 grep -v '^ *+' conftest.er1 >conftest.err
40681 cat conftest.err >&5
40682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40683 (exit $ac_status); } &&
40684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40685 { (case "(($ac_try" in
40686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40687 *) ac_try_echo=$ac_try;;
40689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40690 (eval "$ac_try") 2>&5
40692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40693 (exit $ac_status); }; } &&
40694 { ac_try='test -s conftest.$ac_objext'
40695 { (case "(($ac_try" in
40696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40697 *) ac_try_echo=$ac_try;;
40699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40700 (eval "$ac_try") 2>&5
40702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703 (exit $ac_status); }; }; then
40704 ac_lo=$ac_mid; break
40706 echo "$as_me: failed program was:" >&5
40707 sed 's/^/| /' conftest.$ac_ext >&5
40709 ac_hi=`expr '(' $ac_mid ')' - 1`
40710 if test $ac_mid -le $ac_hi; then
40714 ac_mid=`expr 2 '*' $ac_mid`
40717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40720 echo "$as_me: failed program was:" >&5
40721 sed 's/^/| /' conftest.$ac_ext >&5
40726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40730 # Binary search between lo and hi bounds.
40731 while test "x$ac_lo" != "x$ac_hi"; do
40732 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40733 cat >conftest.$ac_ext <<_ACEOF
40736 cat confdefs.h >>conftest.$ac_ext
40737 cat >>conftest.$ac_ext <<_ACEOF
40738 /* end confdefs.h. */
40739 $ac_includes_default
40740 typedef long long ac__type_sizeof_;
40744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
40751 rm -f conftest.$ac_objext
40752 if { (ac_try="$ac_compile"
40753 case "(($ac_try" in
40754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40755 *) ac_try_echo=$ac_try;;
40757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40758 (eval "$ac_compile") 2>conftest.er1
40760 grep -v '^ *+' conftest.er1 >conftest.err
40762 cat conftest.err >&5
40763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40764 (exit $ac_status); } &&
40765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40766 { (case "(($ac_try" in
40767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40768 *) ac_try_echo=$ac_try;;
40770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40771 (eval "$ac_try") 2>&5
40773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40774 (exit $ac_status); }; } &&
40775 { ac_try='test -s conftest.$ac_objext'
40776 { (case "(($ac_try" in
40777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40778 *) ac_try_echo=$ac_try;;
40780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40781 (eval "$ac_try") 2>&5
40783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40784 (exit $ac_status); }; }; then
40787 echo "$as_me: failed program was:" >&5
40788 sed 's/^/| /' conftest.$ac_ext >&5
40790 ac_lo=`expr '(' $ac_mid ')' + 1`
40793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40796 ?*) ac_cv_sizeof_long_long=$ac_lo;;
40797 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
40798 See \`config.log' for more details." >&5
40799 echo "$as_me: error: cannot compute sizeof (long long)
40800 See \`config.log' for more details." >&2;}
40801 { (exit 77); exit 77; }; } ;;
40804 cat >conftest.$ac_ext <<_ACEOF
40807 cat confdefs.h >>conftest.$ac_ext
40808 cat >>conftest.$ac_ext <<_ACEOF
40809 /* end confdefs.h. */
40810 $ac_includes_default
40811 typedef long long ac__type_sizeof_;
40812 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
40813 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
40815 #include <stdlib.h>
40820 FILE *f = fopen ("conftest.val", "w");
40823 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
40825 long int i = longval ();
40826 if (i != ((long int) (sizeof (ac__type_sizeof_))))
40828 fprintf (f, "%ld\n", i);
40832 unsigned long int i = ulongval ();
40833 if (i != ((long int) (sizeof (ac__type_sizeof_))))
40835 fprintf (f, "%lu\n", i);
40837 return ferror (f) || fclose (f) != 0;
40843 rm -f conftest$ac_exeext
40844 if { (ac_try="$ac_link"
40845 case "(($ac_try" in
40846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40847 *) ac_try_echo=$ac_try;;
40849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40850 (eval "$ac_link") 2>&5
40852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40854 { (case "(($ac_try" in
40855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40856 *) ac_try_echo=$ac_try;;
40858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40859 (eval "$ac_try") 2>&5
40861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40862 (exit $ac_status); }; }; then
40863 ac_cv_sizeof_long_long=`cat conftest.val`
40865 echo "$as_me: program exited with status $ac_status" >&5
40866 echo "$as_me: failed program was:" >&5
40867 sed 's/^/| /' conftest.$ac_ext >&5
40869 ( exit $ac_status )
40870 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
40871 See \`config.log' for more details." >&5
40872 echo "$as_me: error: cannot compute sizeof (long long)
40873 See \`config.log' for more details." >&2;}
40874 { (exit 77); exit 77; }; }
40876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40880 ac_cv_sizeof_long_long=0
40883 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
40884 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
40885 cat >>confdefs.h <<_ACEOF
40886 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
40890 { echo "$as_me:$LINENO: checking for wchar_t" >&5
40891 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
40892 if test "${ac_cv_type_wchar_t+set}" = set; then
40893 echo $ECHO_N "(cached) $ECHO_C" >&6
40895 cat >conftest.$ac_ext <<_ACEOF
40898 cat confdefs.h >>conftest.$ac_ext
40899 cat >>conftest.$ac_ext <<_ACEOF
40900 /* end confdefs.h. */
40901 $ac_includes_default
40902 typedef wchar_t ac__type_new_;
40906 if ((ac__type_new_ *) 0)
40908 if (sizeof (ac__type_new_))
40914 rm -f conftest.$ac_objext
40915 if { (ac_try="$ac_compile"
40916 case "(($ac_try" in
40917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40918 *) ac_try_echo=$ac_try;;
40920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40921 (eval "$ac_compile") 2>conftest.er1
40923 grep -v '^ *+' conftest.er1 >conftest.err
40925 cat conftest.err >&5
40926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40927 (exit $ac_status); } &&
40928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40929 { (case "(($ac_try" in
40930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40931 *) ac_try_echo=$ac_try;;
40933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40934 (eval "$ac_try") 2>&5
40936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40937 (exit $ac_status); }; } &&
40938 { ac_try='test -s conftest.$ac_objext'
40939 { (case "(($ac_try" in
40940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40941 *) ac_try_echo=$ac_try;;
40943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40944 (eval "$ac_try") 2>&5
40946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40947 (exit $ac_status); }; }; then
40948 ac_cv_type_wchar_t=yes
40950 echo "$as_me: failed program was:" >&5
40951 sed 's/^/| /' conftest.$ac_ext >&5
40953 ac_cv_type_wchar_t=no
40956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40958 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
40959 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
40961 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
40962 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
40963 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
40964 echo $ECHO_N "(cached) $ECHO_C" >&6
40966 if test "$ac_cv_type_wchar_t" = yes; then
40967 # The cast to long int works around a bug in the HP C Compiler
40968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40970 # This bug is HP SR number 8606223364.
40971 if test "$cross_compiling" = yes; then
40972 # Depending upon the size, compute the lo and hi bounds.
40973 cat >conftest.$ac_ext <<_ACEOF
40976 cat confdefs.h >>conftest.$ac_ext
40977 cat >>conftest.$ac_ext <<_ACEOF
40978 /* end confdefs.h. */
40979 $ac_includes_default
40980 typedef wchar_t ac__type_sizeof_;
40984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
40991 rm -f conftest.$ac_objext
40992 if { (ac_try="$ac_compile"
40993 case "(($ac_try" in
40994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40995 *) ac_try_echo=$ac_try;;
40997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40998 (eval "$ac_compile") 2>conftest.er1
41000 grep -v '^ *+' conftest.er1 >conftest.err
41002 cat conftest.err >&5
41003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41004 (exit $ac_status); } &&
41005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41006 { (case "(($ac_try" in
41007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41008 *) ac_try_echo=$ac_try;;
41010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41011 (eval "$ac_try") 2>&5
41013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41014 (exit $ac_status); }; } &&
41015 { ac_try='test -s conftest.$ac_objext'
41016 { (case "(($ac_try" in
41017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41018 *) ac_try_echo=$ac_try;;
41020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41021 (eval "$ac_try") 2>&5
41023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41024 (exit $ac_status); }; }; then
41027 cat >conftest.$ac_ext <<_ACEOF
41030 cat confdefs.h >>conftest.$ac_ext
41031 cat >>conftest.$ac_ext <<_ACEOF
41032 /* end confdefs.h. */
41033 $ac_includes_default
41034 typedef wchar_t ac__type_sizeof_;
41038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
41045 rm -f conftest.$ac_objext
41046 if { (ac_try="$ac_compile"
41047 case "(($ac_try" in
41048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41049 *) ac_try_echo=$ac_try;;
41051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41052 (eval "$ac_compile") 2>conftest.er1
41054 grep -v '^ *+' conftest.er1 >conftest.err
41056 cat conftest.err >&5
41057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41058 (exit $ac_status); } &&
41059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41060 { (case "(($ac_try" in
41061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41062 *) ac_try_echo=$ac_try;;
41064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41065 (eval "$ac_try") 2>&5
41067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068 (exit $ac_status); }; } &&
41069 { ac_try='test -s conftest.$ac_objext'
41070 { (case "(($ac_try" in
41071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41072 *) ac_try_echo=$ac_try;;
41074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41075 (eval "$ac_try") 2>&5
41077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078 (exit $ac_status); }; }; then
41079 ac_hi=$ac_mid; break
41081 echo "$as_me: failed program was:" >&5
41082 sed 's/^/| /' conftest.$ac_ext >&5
41084 ac_lo=`expr $ac_mid + 1`
41085 if test $ac_lo -le $ac_mid; then
41089 ac_mid=`expr 2 '*' $ac_mid + 1`
41092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41095 echo "$as_me: failed program was:" >&5
41096 sed 's/^/| /' conftest.$ac_ext >&5
41098 cat >conftest.$ac_ext <<_ACEOF
41101 cat confdefs.h >>conftest.$ac_ext
41102 cat >>conftest.$ac_ext <<_ACEOF
41103 /* end confdefs.h. */
41104 $ac_includes_default
41105 typedef wchar_t ac__type_sizeof_;
41109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
41116 rm -f conftest.$ac_objext
41117 if { (ac_try="$ac_compile"
41118 case "(($ac_try" in
41119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41120 *) ac_try_echo=$ac_try;;
41122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41123 (eval "$ac_compile") 2>conftest.er1
41125 grep -v '^ *+' conftest.er1 >conftest.err
41127 cat conftest.err >&5
41128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41129 (exit $ac_status); } &&
41130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41131 { (case "(($ac_try" in
41132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41133 *) ac_try_echo=$ac_try;;
41135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41136 (eval "$ac_try") 2>&5
41138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41139 (exit $ac_status); }; } &&
41140 { ac_try='test -s conftest.$ac_objext'
41141 { (case "(($ac_try" in
41142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41143 *) ac_try_echo=$ac_try;;
41145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41146 (eval "$ac_try") 2>&5
41148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41149 (exit $ac_status); }; }; then
41152 cat >conftest.$ac_ext <<_ACEOF
41155 cat confdefs.h >>conftest.$ac_ext
41156 cat >>conftest.$ac_ext <<_ACEOF
41157 /* end confdefs.h. */
41158 $ac_includes_default
41159 typedef wchar_t ac__type_sizeof_;
41163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
41170 rm -f conftest.$ac_objext
41171 if { (ac_try="$ac_compile"
41172 case "(($ac_try" in
41173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41174 *) ac_try_echo=$ac_try;;
41176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41177 (eval "$ac_compile") 2>conftest.er1
41179 grep -v '^ *+' conftest.er1 >conftest.err
41181 cat conftest.err >&5
41182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41183 (exit $ac_status); } &&
41184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41185 { (case "(($ac_try" in
41186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41187 *) ac_try_echo=$ac_try;;
41189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41190 (eval "$ac_try") 2>&5
41192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41193 (exit $ac_status); }; } &&
41194 { ac_try='test -s conftest.$ac_objext'
41195 { (case "(($ac_try" in
41196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41197 *) ac_try_echo=$ac_try;;
41199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41200 (eval "$ac_try") 2>&5
41202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41203 (exit $ac_status); }; }; then
41204 ac_lo=$ac_mid; break
41206 echo "$as_me: failed program was:" >&5
41207 sed 's/^/| /' conftest.$ac_ext >&5
41209 ac_hi=`expr '(' $ac_mid ')' - 1`
41210 if test $ac_mid -le $ac_hi; then
41214 ac_mid=`expr 2 '*' $ac_mid`
41217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41220 echo "$as_me: failed program was:" >&5
41221 sed 's/^/| /' conftest.$ac_ext >&5
41226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41230 # Binary search between lo and hi bounds.
41231 while test "x$ac_lo" != "x$ac_hi"; do
41232 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41233 cat >conftest.$ac_ext <<_ACEOF
41236 cat confdefs.h >>conftest.$ac_ext
41237 cat >>conftest.$ac_ext <<_ACEOF
41238 /* end confdefs.h. */
41239 $ac_includes_default
41240 typedef wchar_t ac__type_sizeof_;
41244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
41251 rm -f conftest.$ac_objext
41252 if { (ac_try="$ac_compile"
41253 case "(($ac_try" in
41254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41255 *) ac_try_echo=$ac_try;;
41257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41258 (eval "$ac_compile") 2>conftest.er1
41260 grep -v '^ *+' conftest.er1 >conftest.err
41262 cat conftest.err >&5
41263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41264 (exit $ac_status); } &&
41265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41266 { (case "(($ac_try" in
41267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41268 *) ac_try_echo=$ac_try;;
41270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41271 (eval "$ac_try") 2>&5
41273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274 (exit $ac_status); }; } &&
41275 { ac_try='test -s conftest.$ac_objext'
41276 { (case "(($ac_try" in
41277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41278 *) ac_try_echo=$ac_try;;
41280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41281 (eval "$ac_try") 2>&5
41283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41284 (exit $ac_status); }; }; then
41287 echo "$as_me: failed program was:" >&5
41288 sed 's/^/| /' conftest.$ac_ext >&5
41290 ac_lo=`expr '(' $ac_mid ')' + 1`
41293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41296 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
41297 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
41298 See \`config.log' for more details." >&5
41299 echo "$as_me: error: cannot compute sizeof (wchar_t)
41300 See \`config.log' for more details." >&2;}
41301 { (exit 77); exit 77; }; } ;;
41304 cat >conftest.$ac_ext <<_ACEOF
41307 cat confdefs.h >>conftest.$ac_ext
41308 cat >>conftest.$ac_ext <<_ACEOF
41309 /* end confdefs.h. */
41310 $ac_includes_default
41311 typedef wchar_t ac__type_sizeof_;
41312 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
41313 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
41315 #include <stdlib.h>
41320 FILE *f = fopen ("conftest.val", "w");
41323 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
41325 long int i = longval ();
41326 if (i != ((long int) (sizeof (ac__type_sizeof_))))
41328 fprintf (f, "%ld\n", i);
41332 unsigned long int i = ulongval ();
41333 if (i != ((long int) (sizeof (ac__type_sizeof_))))
41335 fprintf (f, "%lu\n", i);
41337 return ferror (f) || fclose (f) != 0;
41343 rm -f conftest$ac_exeext
41344 if { (ac_try="$ac_link"
41345 case "(($ac_try" in
41346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41347 *) ac_try_echo=$ac_try;;
41349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41350 (eval "$ac_link") 2>&5
41352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41354 { (case "(($ac_try" in
41355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41356 *) ac_try_echo=$ac_try;;
41358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41359 (eval "$ac_try") 2>&5
41361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41362 (exit $ac_status); }; }; then
41363 ac_cv_sizeof_wchar_t=`cat conftest.val`
41365 echo "$as_me: program exited with status $ac_status" >&5
41366 echo "$as_me: failed program was:" >&5
41367 sed 's/^/| /' conftest.$ac_ext >&5
41369 ( exit $ac_status )
41370 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
41371 See \`config.log' for more details." >&5
41372 echo "$as_me: error: cannot compute sizeof (wchar_t)
41373 See \`config.log' for more details." >&2;}
41374 { (exit 77); exit 77; }; }
41376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41380 ac_cv_sizeof_wchar_t=0
41383 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
41384 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
41385 cat >>confdefs.h <<_ACEOF
41386 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
41391 if test "$ac_cv_sizeof_int" -lt 4 ; then
41392 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
41393 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
41396 cat >>confdefs.h <<\_ACEOF
41397 #define LBER_INT_T long
41402 cat >>confdefs.h <<\_ACEOF
41403 #define LBER_INT_T int
41409 cat >>confdefs.h <<\_ACEOF
41410 #define LBER_LEN_T long
41414 cat >>confdefs.h <<\_ACEOF
41415 #define LBER_SOCKET_T int
41419 cat >>confdefs.h <<\_ACEOF
41420 #define LBER_TAG_T long
41424 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
41425 if test $ac_cv_sizeof_long_long -gt 4 ; then
41426 ol_with_mp=longlong
41428 cat >>confdefs.h <<\_ACEOF
41429 #define USE_MP_LONG_LONG 1
41432 elif test $ol_with_mp = longlong ; then
41433 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
41434 echo "$as_me: error: long long unusable for multiple precision" >&2;}
41435 { (exit 1); exit 1; }; }
41438 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
41439 if test $ac_cv_sizeof_long -gt 4 ; then
41442 cat >>confdefs.h <<\_ACEOF
41443 #define USE_MP_LONG 1
41446 elif test $ol_with_mp = long ; then
41447 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
41448 echo "$as_me: error: long unusable for multiple precision" >&2;}
41449 { (exit 1); exit 1; }; }
41452 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
41454 for ac_header in openssl/bn.h
41456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41461 echo $ECHO_N "(cached) $ECHO_C" >&6
41463 ac_res=`eval echo '${'$as_ac_Header'}'`
41464 { echo "$as_me:$LINENO: result: $ac_res" >&5
41465 echo "${ECHO_T}$ac_res" >&6; }
41467 # Is the header compilable?
41468 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41470 cat >conftest.$ac_ext <<_ACEOF
41473 cat confdefs.h >>conftest.$ac_ext
41474 cat >>conftest.$ac_ext <<_ACEOF
41475 /* end confdefs.h. */
41476 $ac_includes_default
41477 #include <$ac_header>
41479 rm -f conftest.$ac_objext
41480 if { (ac_try="$ac_compile"
41481 case "(($ac_try" in
41482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41483 *) ac_try_echo=$ac_try;;
41485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41486 (eval "$ac_compile") 2>conftest.er1
41488 grep -v '^ *+' conftest.er1 >conftest.err
41490 cat conftest.err >&5
41491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41492 (exit $ac_status); } &&
41493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41494 { (case "(($ac_try" in
41495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41496 *) ac_try_echo=$ac_try;;
41498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41499 (eval "$ac_try") 2>&5
41501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41502 (exit $ac_status); }; } &&
41503 { ac_try='test -s conftest.$ac_objext'
41504 { (case "(($ac_try" in
41505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41506 *) ac_try_echo=$ac_try;;
41508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41509 (eval "$ac_try") 2>&5
41511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41512 (exit $ac_status); }; }; then
41513 ac_header_compiler=yes
41515 echo "$as_me: failed program was:" >&5
41516 sed 's/^/| /' conftest.$ac_ext >&5
41518 ac_header_compiler=no
41521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41523 echo "${ECHO_T}$ac_header_compiler" >&6; }
41525 # Is the header present?
41526 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41528 cat >conftest.$ac_ext <<_ACEOF
41531 cat confdefs.h >>conftest.$ac_ext
41532 cat >>conftest.$ac_ext <<_ACEOF
41533 /* end confdefs.h. */
41534 #include <$ac_header>
41536 if { (ac_try="$ac_cpp conftest.$ac_ext"
41537 case "(($ac_try" in
41538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41539 *) ac_try_echo=$ac_try;;
41541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41544 grep -v '^ *+' conftest.er1 >conftest.err
41546 cat conftest.err >&5
41547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41548 (exit $ac_status); } >/dev/null; then
41549 if test -s conftest.err; then
41550 ac_cpp_err=$ac_c_preproc_warn_flag
41551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41558 if test -z "$ac_cpp_err"; then
41559 ac_header_preproc=yes
41561 echo "$as_me: failed program was:" >&5
41562 sed 's/^/| /' conftest.$ac_ext >&5
41564 ac_header_preproc=no
41567 rm -f conftest.err conftest.$ac_ext
41568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41569 echo "${ECHO_T}$ac_header_preproc" >&6; }
41571 # So? What about this header?
41572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41578 ac_header_preproc=yes
41581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41588 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41594 ## --------------------------------------------- ##
41595 ## Report this to <http://www.openldap.org/its/> ##
41596 ## --------------------------------------------- ##
41598 ) | sed "s/^/$as_me: WARNING: /" >&2
41601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41604 echo $ECHO_N "(cached) $ECHO_C" >&6
41606 eval "$as_ac_Header=\$ac_header_preproc"
41608 ac_res=`eval echo '${'$as_ac_Header'}'`
41609 { echo "$as_me:$LINENO: result: $ac_res" >&5
41610 echo "${ECHO_T}$ac_res" >&6; }
41613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41614 cat >>confdefs.h <<_ACEOF
41615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41623 for ac_header in openssl/crypto.h
41625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41630 echo $ECHO_N "(cached) $ECHO_C" >&6
41632 ac_res=`eval echo '${'$as_ac_Header'}'`
41633 { echo "$as_me:$LINENO: result: $ac_res" >&5
41634 echo "${ECHO_T}$ac_res" >&6; }
41636 # Is the header compilable?
41637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41639 cat >conftest.$ac_ext <<_ACEOF
41642 cat confdefs.h >>conftest.$ac_ext
41643 cat >>conftest.$ac_ext <<_ACEOF
41644 /* end confdefs.h. */
41645 $ac_includes_default
41646 #include <$ac_header>
41648 rm -f conftest.$ac_objext
41649 if { (ac_try="$ac_compile"
41650 case "(($ac_try" in
41651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41652 *) ac_try_echo=$ac_try;;
41654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41655 (eval "$ac_compile") 2>conftest.er1
41657 grep -v '^ *+' conftest.er1 >conftest.err
41659 cat conftest.err >&5
41660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41661 (exit $ac_status); } &&
41662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41663 { (case "(($ac_try" in
41664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41665 *) ac_try_echo=$ac_try;;
41667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41668 (eval "$ac_try") 2>&5
41670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41671 (exit $ac_status); }; } &&
41672 { ac_try='test -s conftest.$ac_objext'
41673 { (case "(($ac_try" in
41674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41675 *) ac_try_echo=$ac_try;;
41677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41678 (eval "$ac_try") 2>&5
41680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41681 (exit $ac_status); }; }; then
41682 ac_header_compiler=yes
41684 echo "$as_me: failed program was:" >&5
41685 sed 's/^/| /' conftest.$ac_ext >&5
41687 ac_header_compiler=no
41690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41692 echo "${ECHO_T}$ac_header_compiler" >&6; }
41694 # Is the header present?
41695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41697 cat >conftest.$ac_ext <<_ACEOF
41700 cat confdefs.h >>conftest.$ac_ext
41701 cat >>conftest.$ac_ext <<_ACEOF
41702 /* end confdefs.h. */
41703 #include <$ac_header>
41705 if { (ac_try="$ac_cpp conftest.$ac_ext"
41706 case "(($ac_try" in
41707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41708 *) ac_try_echo=$ac_try;;
41710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41713 grep -v '^ *+' conftest.er1 >conftest.err
41715 cat conftest.err >&5
41716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41717 (exit $ac_status); } >/dev/null; then
41718 if test -s conftest.err; then
41719 ac_cpp_err=$ac_c_preproc_warn_flag
41720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41727 if test -z "$ac_cpp_err"; then
41728 ac_header_preproc=yes
41730 echo "$as_me: failed program was:" >&5
41731 sed 's/^/| /' conftest.$ac_ext >&5
41733 ac_header_preproc=no
41736 rm -f conftest.err conftest.$ac_ext
41737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41738 echo "${ECHO_T}$ac_header_preproc" >&6; }
41740 # So? What about this header?
41741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41747 ac_header_preproc=yes
41750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41763 ## --------------------------------------------- ##
41764 ## Report this to <http://www.openldap.org/its/> ##
41765 ## --------------------------------------------- ##
41767 ) | sed "s/^/$as_me: WARNING: /" >&2
41770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41773 echo $ECHO_N "(cached) $ECHO_C" >&6
41775 eval "$as_ac_Header=\$ac_header_preproc"
41777 ac_res=`eval echo '${'$as_ac_Header'}'`
41778 { echo "$as_me:$LINENO: result: $ac_res" >&5
41779 echo "${ECHO_T}$ac_res" >&6; }
41782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41783 cat >>confdefs.h <<_ACEOF
41784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41791 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
41792 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
41793 test "$ol_with_tls" = "found" ; then
41796 cat >>confdefs.h <<\_ACEOF
41797 #define USE_MP_BIGNUM 1
41800 elif test $ol_with_mp = bignum ; then
41801 { { echo "$as_me:$LINENO: error: bignum not available" >&5
41802 echo "$as_me: error: bignum not available" >&2;}
41803 { (exit 1); exit 1; }; }
41806 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
41808 for ac_header in gmp.h
41810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41815 echo $ECHO_N "(cached) $ECHO_C" >&6
41817 ac_res=`eval echo '${'$as_ac_Header'}'`
41818 { echo "$as_me:$LINENO: result: $ac_res" >&5
41819 echo "${ECHO_T}$ac_res" >&6; }
41821 # Is the header compilable?
41822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41824 cat >conftest.$ac_ext <<_ACEOF
41827 cat confdefs.h >>conftest.$ac_ext
41828 cat >>conftest.$ac_ext <<_ACEOF
41829 /* end confdefs.h. */
41830 $ac_includes_default
41831 #include <$ac_header>
41833 rm -f conftest.$ac_objext
41834 if { (ac_try="$ac_compile"
41835 case "(($ac_try" in
41836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41837 *) ac_try_echo=$ac_try;;
41839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41840 (eval "$ac_compile") 2>conftest.er1
41842 grep -v '^ *+' conftest.er1 >conftest.err
41844 cat conftest.err >&5
41845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846 (exit $ac_status); } &&
41847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41848 { (case "(($ac_try" in
41849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41850 *) ac_try_echo=$ac_try;;
41852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41853 (eval "$ac_try") 2>&5
41855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41856 (exit $ac_status); }; } &&
41857 { ac_try='test -s conftest.$ac_objext'
41858 { (case "(($ac_try" in
41859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41860 *) ac_try_echo=$ac_try;;
41862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41863 (eval "$ac_try") 2>&5
41865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41866 (exit $ac_status); }; }; then
41867 ac_header_compiler=yes
41869 echo "$as_me: failed program was:" >&5
41870 sed 's/^/| /' conftest.$ac_ext >&5
41872 ac_header_compiler=no
41875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41877 echo "${ECHO_T}$ac_header_compiler" >&6; }
41879 # Is the header present?
41880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41882 cat >conftest.$ac_ext <<_ACEOF
41885 cat confdefs.h >>conftest.$ac_ext
41886 cat >>conftest.$ac_ext <<_ACEOF
41887 /* end confdefs.h. */
41888 #include <$ac_header>
41890 if { (ac_try="$ac_cpp conftest.$ac_ext"
41891 case "(($ac_try" in
41892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41893 *) ac_try_echo=$ac_try;;
41895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41898 grep -v '^ *+' conftest.er1 >conftest.err
41900 cat conftest.err >&5
41901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902 (exit $ac_status); } >/dev/null; then
41903 if test -s conftest.err; then
41904 ac_cpp_err=$ac_c_preproc_warn_flag
41905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41912 if test -z "$ac_cpp_err"; then
41913 ac_header_preproc=yes
41915 echo "$as_me: failed program was:" >&5
41916 sed 's/^/| /' conftest.$ac_ext >&5
41918 ac_header_preproc=no
41921 rm -f conftest.err conftest.$ac_ext
41922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41923 echo "${ECHO_T}$ac_header_preproc" >&6; }
41925 # So? What about this header?
41926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41932 ac_header_preproc=yes
41935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41948 ## --------------------------------------------- ##
41949 ## Report this to <http://www.openldap.org/its/> ##
41950 ## --------------------------------------------- ##
41952 ) | sed "s/^/$as_me: WARNING: /" >&2
41955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41958 echo $ECHO_N "(cached) $ECHO_C" >&6
41960 eval "$as_ac_Header=\$ac_header_preproc"
41962 ac_res=`eval echo '${'$as_ac_Header'}'`
41963 { echo "$as_me:$LINENO: result: $ac_res" >&5
41964 echo "${ECHO_T}$ac_res" >&6; }
41967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41968 cat >>confdefs.h <<_ACEOF
41969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41977 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
41978 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
41979 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
41980 echo $ECHO_N "(cached) $ECHO_C" >&6
41982 ac_check_lib_save_LIBS=$LIBS
41984 cat >conftest.$ac_ext <<_ACEOF
41987 cat confdefs.h >>conftest.$ac_ext
41988 cat >>conftest.$ac_ext <<_ACEOF
41989 /* end confdefs.h. */
41991 /* Override any GCC internal prototype to avoid an error.
41992 Use char because int might match the return type of a GCC
41993 builtin and then its argument prototype would still apply. */
41997 char __gmpz_add_ui ();
42001 return __gmpz_add_ui ();
42006 rm -f conftest.$ac_objext conftest$ac_exeext
42007 if { (ac_try="$ac_link"
42008 case "(($ac_try" in
42009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42010 *) ac_try_echo=$ac_try;;
42012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42013 (eval "$ac_link") 2>conftest.er1
42015 grep -v '^ *+' conftest.er1 >conftest.err
42017 cat conftest.err >&5
42018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42019 (exit $ac_status); } &&
42020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42021 { (case "(($ac_try" in
42022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42023 *) ac_try_echo=$ac_try;;
42025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42026 (eval "$ac_try") 2>&5
42028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42029 (exit $ac_status); }; } &&
42030 { ac_try='test -s conftest$ac_exeext'
42031 { (case "(($ac_try" in
42032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42033 *) ac_try_echo=$ac_try;;
42035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42036 (eval "$ac_try") 2>&5
42038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42039 (exit $ac_status); }; }; then
42040 ac_cv_lib_gmp___gmpz_add_ui=yes
42042 echo "$as_me: failed program was:" >&5
42043 sed 's/^/| /' conftest.$ac_ext >&5
42045 ac_cv_lib_gmp___gmpz_add_ui=no
42048 rm -f core conftest.err conftest.$ac_objext \
42049 conftest$ac_exeext conftest.$ac_ext
42050 LIBS=$ac_check_lib_save_LIBS
42052 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
42053 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
42054 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
42055 cat >>confdefs.h <<_ACEOF
42056 #define HAVE_LIBGMP 1
42063 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
42065 cat >>confdefs.h <<\_ACEOF
42066 #define USE_MP_GMP 1
42070 elif test $ol_with_mp = gmp ; then
42071 { { echo "$as_me:$LINENO: error: gmp not available" >&5
42072 echo "$as_me: error: gmp not available" >&2;}
42073 { (exit 1); exit 1; }; }
42076 if test $ol_with_mp = auto ; then
42080 { echo "$as_me:$LINENO: checking for working memcmp" >&5
42081 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
42082 if test "${ac_cv_func_memcmp_working+set}" = set; then
42083 echo $ECHO_N "(cached) $ECHO_C" >&6
42085 if test "$cross_compiling" = yes; then
42086 ac_cv_func_memcmp_working=no
42088 cat >conftest.$ac_ext <<_ACEOF
42091 cat confdefs.h >>conftest.$ac_ext
42092 cat >>conftest.$ac_ext <<_ACEOF
42093 /* end confdefs.h. */
42094 $ac_includes_default
42099 /* Some versions of memcmp are not 8-bit clean. */
42100 char c0 = '\100', c1 = '\200', c2 = '\201';
42101 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42104 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42105 or more and with at least one buffer not starting on a 4-byte boundary.
42106 William Lewis provided this test program. */
42111 for (i = 0; i < 4; i++)
42115 strcpy (a, "--------01111111");
42116 strcpy (b, "--------10000000");
42117 if (memcmp (a, b, 16) >= 0)
42127 rm -f conftest$ac_exeext
42128 if { (ac_try="$ac_link"
42129 case "(($ac_try" in
42130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42131 *) ac_try_echo=$ac_try;;
42133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42134 (eval "$ac_link") 2>&5
42136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42138 { (case "(($ac_try" in
42139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42140 *) ac_try_echo=$ac_try;;
42142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42143 (eval "$ac_try") 2>&5
42145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42146 (exit $ac_status); }; }; then
42147 ac_cv_func_memcmp_working=yes
42149 echo "$as_me: program exited with status $ac_status" >&5
42150 echo "$as_me: failed program was:" >&5
42151 sed 's/^/| /' conftest.$ac_ext >&5
42153 ( exit $ac_status )
42154 ac_cv_func_memcmp_working=no
42156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42161 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42162 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
42163 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
42164 *" memcmp.$ac_objext "* ) ;;
42165 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
42171 if test $ac_cv_func_memcmp_working = no ; then
42173 cat >>confdefs.h <<\_ACEOF
42174 #define NEED_MEMCMP_REPLACEMENT 1
42180 for ac_func in strftime
42182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42186 echo $ECHO_N "(cached) $ECHO_C" >&6
42188 cat >conftest.$ac_ext <<_ACEOF
42191 cat confdefs.h >>conftest.$ac_ext
42192 cat >>conftest.$ac_ext <<_ACEOF
42193 /* end confdefs.h. */
42194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42196 #define $ac_func innocuous_$ac_func
42198 /* System header to define __stub macros and hopefully few prototypes,
42199 which can conflict with char $ac_func (); below.
42200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42201 <limits.h> exists even on freestanding compilers. */
42204 # include <limits.h>
42206 # include <assert.h>
42211 /* Override any GCC internal prototype to avoid an error.
42212 Use char because int might match the return type of a GCC
42213 builtin and then its argument prototype would still apply. */
42218 /* The GNU C library defines this for functions which it implements
42219 to always fail with ENOSYS. Some functions are actually named
42220 something starting with __ and the normal name is an alias. */
42221 #if defined __stub_$ac_func || defined __stub___$ac_func
42228 return $ac_func ();
42233 rm -f conftest.$ac_objext conftest$ac_exeext
42234 if { (ac_try="$ac_link"
42235 case "(($ac_try" in
42236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42237 *) ac_try_echo=$ac_try;;
42239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42240 (eval "$ac_link") 2>conftest.er1
42242 grep -v '^ *+' conftest.er1 >conftest.err
42244 cat conftest.err >&5
42245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42246 (exit $ac_status); } &&
42247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42248 { (case "(($ac_try" in
42249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42250 *) ac_try_echo=$ac_try;;
42252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42253 (eval "$ac_try") 2>&5
42255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42256 (exit $ac_status); }; } &&
42257 { ac_try='test -s conftest$ac_exeext'
42258 { (case "(($ac_try" in
42259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42260 *) ac_try_echo=$ac_try;;
42262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42263 (eval "$ac_try") 2>&5
42265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42266 (exit $ac_status); }; }; then
42267 eval "$as_ac_var=yes"
42269 echo "$as_me: failed program was:" >&5
42270 sed 's/^/| /' conftest.$ac_ext >&5
42272 eval "$as_ac_var=no"
42275 rm -f core conftest.err conftest.$ac_objext \
42276 conftest$ac_exeext conftest.$ac_ext
42278 ac_res=`eval echo '${'$as_ac_var'}'`
42279 { echo "$as_me:$LINENO: result: $ac_res" >&5
42280 echo "${ECHO_T}$ac_res" >&6; }
42281 if test `eval echo '${'$as_ac_var'}'` = yes; then
42282 cat >>confdefs.h <<_ACEOF
42283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42287 # strftime is in -lintl on SCO UNIX.
42288 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42289 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
42290 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42291 echo $ECHO_N "(cached) $ECHO_C" >&6
42293 ac_check_lib_save_LIBS=$LIBS
42294 LIBS="-lintl $LIBS"
42295 cat >conftest.$ac_ext <<_ACEOF
42298 cat confdefs.h >>conftest.$ac_ext
42299 cat >>conftest.$ac_ext <<_ACEOF
42300 /* end confdefs.h. */
42302 /* Override any GCC internal prototype to avoid an error.
42303 Use char because int might match the return type of a GCC
42304 builtin and then its argument prototype would still apply. */
42312 return strftime ();
42317 rm -f conftest.$ac_objext conftest$ac_exeext
42318 if { (ac_try="$ac_link"
42319 case "(($ac_try" in
42320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42321 *) ac_try_echo=$ac_try;;
42323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42324 (eval "$ac_link") 2>conftest.er1
42326 grep -v '^ *+' conftest.er1 >conftest.err
42328 cat conftest.err >&5
42329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42330 (exit $ac_status); } &&
42331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42332 { (case "(($ac_try" in
42333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42334 *) ac_try_echo=$ac_try;;
42336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42337 (eval "$ac_try") 2>&5
42339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42340 (exit $ac_status); }; } &&
42341 { ac_try='test -s conftest$ac_exeext'
42342 { (case "(($ac_try" in
42343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42344 *) ac_try_echo=$ac_try;;
42346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42347 (eval "$ac_try") 2>&5
42349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42350 (exit $ac_status); }; }; then
42351 ac_cv_lib_intl_strftime=yes
42353 echo "$as_me: failed program was:" >&5
42354 sed 's/^/| /' conftest.$ac_ext >&5
42356 ac_cv_lib_intl_strftime=no
42359 rm -f core conftest.err conftest.$ac_objext \
42360 conftest$ac_exeext conftest.$ac_ext
42361 LIBS=$ac_check_lib_save_LIBS
42363 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42364 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
42365 if test $ac_cv_lib_intl_strftime = yes; then
42366 cat >>confdefs.h <<\_ACEOF
42367 #define HAVE_STRFTIME 1
42370 LIBS="-lintl $LIBS"
42377 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
42378 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
42379 if test "${ol_cv_func_inet_aton+set}" = set; then
42380 echo $ECHO_N "(cached) $ECHO_C" >&6
42382 cat >conftest.$ac_ext <<_ACEOF
42385 cat confdefs.h >>conftest.$ac_ext
42386 cat >>conftest.$ac_ext <<_ACEOF
42387 /* end confdefs.h. */
42389 #ifdef HAVE_SYS_TYPES_H
42390 # include <sys/types.h>
42392 #ifdef HAVE_SYS_SOCKET_H
42393 # include <sys/socket.h>
42394 # ifdef HAVE_SYS_SELECT_H
42395 # include <sys/select.h>
42397 # include <netinet/in.h>
42398 # ifdef HAVE_ARPA_INET_H
42399 # include <arpa/inet.h>
42407 int rc = inet_aton( "255.255.255.255", &in );
42412 rm -f conftest.$ac_objext conftest$ac_exeext
42413 if { (ac_try="$ac_link"
42414 case "(($ac_try" in
42415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42416 *) ac_try_echo=$ac_try;;
42418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42419 (eval "$ac_link") 2>conftest.er1
42421 grep -v '^ *+' conftest.er1 >conftest.err
42423 cat conftest.err >&5
42424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42425 (exit $ac_status); } &&
42426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42427 { (case "(($ac_try" in
42428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42429 *) ac_try_echo=$ac_try;;
42431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42432 (eval "$ac_try") 2>&5
42434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42435 (exit $ac_status); }; } &&
42436 { ac_try='test -s conftest$ac_exeext'
42437 { (case "(($ac_try" in
42438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42439 *) ac_try_echo=$ac_try;;
42441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42442 (eval "$ac_try") 2>&5
42444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42445 (exit $ac_status); }; }; then
42446 ol_cv_func_inet_aton=yes
42448 echo "$as_me: failed program was:" >&5
42449 sed 's/^/| /' conftest.$ac_ext >&5
42451 ol_cv_func_inet_aton=no
42454 rm -f core conftest.err conftest.$ac_objext \
42455 conftest$ac_exeext conftest.$ac_ext
42457 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42458 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
42459 if test $ol_cv_func_inet_aton != no; then
42461 cat >>confdefs.h <<\_ACEOF
42462 #define HAVE_INET_ATON 1
42468 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
42469 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
42470 if test "${ac_cv_func__spawnlp+set}" = set; then
42471 echo $ECHO_N "(cached) $ECHO_C" >&6
42473 cat >conftest.$ac_ext <<_ACEOF
42476 cat confdefs.h >>conftest.$ac_ext
42477 cat >>conftest.$ac_ext <<_ACEOF
42478 /* end confdefs.h. */
42479 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42481 #define _spawnlp innocuous__spawnlp
42483 /* System header to define __stub macros and hopefully few prototypes,
42484 which can conflict with char _spawnlp (); below.
42485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42486 <limits.h> exists even on freestanding compilers. */
42489 # include <limits.h>
42491 # include <assert.h>
42496 /* Override any GCC internal prototype to avoid an error.
42497 Use char because int might match the return type of a GCC
42498 builtin and then its argument prototype would still apply. */
42503 /* The GNU C library defines this for functions which it implements
42504 to always fail with ENOSYS. Some functions are actually named
42505 something starting with __ and the normal name is an alias. */
42506 #if defined __stub__spawnlp || defined __stub____spawnlp
42513 return _spawnlp ();
42518 rm -f conftest.$ac_objext conftest$ac_exeext
42519 if { (ac_try="$ac_link"
42520 case "(($ac_try" in
42521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42522 *) ac_try_echo=$ac_try;;
42524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42525 (eval "$ac_link") 2>conftest.er1
42527 grep -v '^ *+' conftest.er1 >conftest.err
42529 cat conftest.err >&5
42530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42531 (exit $ac_status); } &&
42532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42533 { (case "(($ac_try" in
42534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42535 *) ac_try_echo=$ac_try;;
42537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42538 (eval "$ac_try") 2>&5
42540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42541 (exit $ac_status); }; } &&
42542 { ac_try='test -s conftest$ac_exeext'
42543 { (case "(($ac_try" in
42544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42545 *) ac_try_echo=$ac_try;;
42547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42548 (eval "$ac_try") 2>&5
42550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42551 (exit $ac_status); }; }; then
42552 ac_cv_func__spawnlp=yes
42554 echo "$as_me: failed program was:" >&5
42555 sed 's/^/| /' conftest.$ac_ext >&5
42557 ac_cv_func__spawnlp=no
42560 rm -f core conftest.err conftest.$ac_objext \
42561 conftest$ac_exeext conftest.$ac_ext
42563 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42564 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
42565 if test $ac_cv_func__spawnlp = yes; then
42567 cat >>confdefs.h <<\_ACEOF
42568 #define HAVE_SPAWNLP 1
42574 { echo "$as_me:$LINENO: checking for _snprintf" >&5
42575 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
42576 if test "${ac_cv_func__snprintf+set}" = set; then
42577 echo $ECHO_N "(cached) $ECHO_C" >&6
42579 cat >conftest.$ac_ext <<_ACEOF
42582 cat confdefs.h >>conftest.$ac_ext
42583 cat >>conftest.$ac_ext <<_ACEOF
42584 /* end confdefs.h. */
42585 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42587 #define _snprintf innocuous__snprintf
42589 /* System header to define __stub macros and hopefully few prototypes,
42590 which can conflict with char _snprintf (); below.
42591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42592 <limits.h> exists even on freestanding compilers. */
42595 # include <limits.h>
42597 # include <assert.h>
42602 /* Override any GCC internal prototype to avoid an error.
42603 Use char because int might match the return type of a GCC
42604 builtin and then its argument prototype would still apply. */
42609 /* The GNU C library defines this for functions which it implements
42610 to always fail with ENOSYS. Some functions are actually named
42611 something starting with __ and the normal name is an alias. */
42612 #if defined __stub__snprintf || defined __stub____snprintf
42619 return _snprintf ();
42624 rm -f conftest.$ac_objext conftest$ac_exeext
42625 if { (ac_try="$ac_link"
42626 case "(($ac_try" in
42627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42628 *) ac_try_echo=$ac_try;;
42630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42631 (eval "$ac_link") 2>conftest.er1
42633 grep -v '^ *+' conftest.er1 >conftest.err
42635 cat conftest.err >&5
42636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42637 (exit $ac_status); } &&
42638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42639 { (case "(($ac_try" in
42640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42641 *) ac_try_echo=$ac_try;;
42643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42644 (eval "$ac_try") 2>&5
42646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42647 (exit $ac_status); }; } &&
42648 { ac_try='test -s conftest$ac_exeext'
42649 { (case "(($ac_try" in
42650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42651 *) ac_try_echo=$ac_try;;
42653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42654 (eval "$ac_try") 2>&5
42656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42657 (exit $ac_status); }; }; then
42658 ac_cv_func__snprintf=yes
42660 echo "$as_me: failed program was:" >&5
42661 sed 's/^/| /' conftest.$ac_ext >&5
42663 ac_cv_func__snprintf=no
42666 rm -f core conftest.err conftest.$ac_objext \
42667 conftest$ac_exeext conftest.$ac_ext
42669 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42670 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
42671 if test $ac_cv_func__snprintf = yes; then
42672 ac_cv_func_snprintf=yes
42674 cat >>confdefs.h <<\_ACEOF
42675 #define snprintf _snprintf
42682 { echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42683 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6; }
42684 if test "${ac_cv_func__vsnprintf+set}" = set; then
42685 echo $ECHO_N "(cached) $ECHO_C" >&6
42687 cat >conftest.$ac_ext <<_ACEOF
42690 cat confdefs.h >>conftest.$ac_ext
42691 cat >>conftest.$ac_ext <<_ACEOF
42692 /* end confdefs.h. */
42693 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42695 #define _vsnprintf innocuous__vsnprintf
42697 /* System header to define __stub macros and hopefully few prototypes,
42698 which can conflict with char _vsnprintf (); below.
42699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42700 <limits.h> exists even on freestanding compilers. */
42703 # include <limits.h>
42705 # include <assert.h>
42710 /* Override any GCC internal prototype to avoid an error.
42711 Use char because int might match the return type of a GCC
42712 builtin and then its argument prototype would still apply. */
42716 char _vsnprintf ();
42717 /* The GNU C library defines this for functions which it implements
42718 to always fail with ENOSYS. Some functions are actually named
42719 something starting with __ and the normal name is an alias. */
42720 #if defined __stub__vsnprintf || defined __stub____vsnprintf
42727 return _vsnprintf ();
42732 rm -f conftest.$ac_objext conftest$ac_exeext
42733 if { (ac_try="$ac_link"
42734 case "(($ac_try" in
42735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42736 *) ac_try_echo=$ac_try;;
42738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42739 (eval "$ac_link") 2>conftest.er1
42741 grep -v '^ *+' conftest.er1 >conftest.err
42743 cat conftest.err >&5
42744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42745 (exit $ac_status); } &&
42746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42747 { (case "(($ac_try" in
42748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42749 *) ac_try_echo=$ac_try;;
42751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42752 (eval "$ac_try") 2>&5
42754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42755 (exit $ac_status); }; } &&
42756 { ac_try='test -s conftest$ac_exeext'
42757 { (case "(($ac_try" in
42758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42759 *) ac_try_echo=$ac_try;;
42761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42762 (eval "$ac_try") 2>&5
42764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42765 (exit $ac_status); }; }; then
42766 ac_cv_func__vsnprintf=yes
42768 echo "$as_me: failed program was:" >&5
42769 sed 's/^/| /' conftest.$ac_ext >&5
42771 ac_cv_func__vsnprintf=no
42774 rm -f core conftest.err conftest.$ac_objext \
42775 conftest$ac_exeext conftest.$ac_ext
42777 { echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42778 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6; }
42779 if test $ac_cv_func__vsnprintf = yes; then
42780 ac_cv_func_vsnprintf=yes
42782 cat >>confdefs.h <<\_ACEOF
42783 #define vsnprintf _vsnprintf
42791 for ac_func in vprintf
42793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42797 echo $ECHO_N "(cached) $ECHO_C" >&6
42799 cat >conftest.$ac_ext <<_ACEOF
42802 cat confdefs.h >>conftest.$ac_ext
42803 cat >>conftest.$ac_ext <<_ACEOF
42804 /* end confdefs.h. */
42805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42807 #define $ac_func innocuous_$ac_func
42809 /* System header to define __stub macros and hopefully few prototypes,
42810 which can conflict with char $ac_func (); below.
42811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42812 <limits.h> exists even on freestanding compilers. */
42815 # include <limits.h>
42817 # include <assert.h>
42822 /* Override any GCC internal prototype to avoid an error.
42823 Use char because int might match the return type of a GCC
42824 builtin and then its argument prototype would still apply. */
42829 /* The GNU C library defines this for functions which it implements
42830 to always fail with ENOSYS. Some functions are actually named
42831 something starting with __ and the normal name is an alias. */
42832 #if defined __stub_$ac_func || defined __stub___$ac_func
42839 return $ac_func ();
42844 rm -f conftest.$ac_objext conftest$ac_exeext
42845 if { (ac_try="$ac_link"
42846 case "(($ac_try" in
42847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42848 *) ac_try_echo=$ac_try;;
42850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42851 (eval "$ac_link") 2>conftest.er1
42853 grep -v '^ *+' conftest.er1 >conftest.err
42855 cat conftest.err >&5
42856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42857 (exit $ac_status); } &&
42858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42859 { (case "(($ac_try" in
42860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42861 *) ac_try_echo=$ac_try;;
42863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42864 (eval "$ac_try") 2>&5
42866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42867 (exit $ac_status); }; } &&
42868 { ac_try='test -s conftest$ac_exeext'
42869 { (case "(($ac_try" in
42870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42871 *) ac_try_echo=$ac_try;;
42873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42874 (eval "$ac_try") 2>&5
42876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42877 (exit $ac_status); }; }; then
42878 eval "$as_ac_var=yes"
42880 echo "$as_me: failed program was:" >&5
42881 sed 's/^/| /' conftest.$ac_ext >&5
42883 eval "$as_ac_var=no"
42886 rm -f core conftest.err conftest.$ac_objext \
42887 conftest$ac_exeext conftest.$ac_ext
42889 ac_res=`eval echo '${'$as_ac_var'}'`
42890 { echo "$as_me:$LINENO: result: $ac_res" >&5
42891 echo "${ECHO_T}$ac_res" >&6; }
42892 if test `eval echo '${'$as_ac_var'}'` = yes; then
42893 cat >>confdefs.h <<_ACEOF
42894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42897 { echo "$as_me:$LINENO: checking for _doprnt" >&5
42898 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
42899 if test "${ac_cv_func__doprnt+set}" = set; then
42900 echo $ECHO_N "(cached) $ECHO_C" >&6
42902 cat >conftest.$ac_ext <<_ACEOF
42905 cat confdefs.h >>conftest.$ac_ext
42906 cat >>conftest.$ac_ext <<_ACEOF
42907 /* end confdefs.h. */
42908 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
42909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42910 #define _doprnt innocuous__doprnt
42912 /* System header to define __stub macros and hopefully few prototypes,
42913 which can conflict with char _doprnt (); below.
42914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42915 <limits.h> exists even on freestanding compilers. */
42918 # include <limits.h>
42920 # include <assert.h>
42925 /* Override any GCC internal prototype to avoid an error.
42926 Use char because int might match the return type of a GCC
42927 builtin and then its argument prototype would still apply. */
42932 /* The GNU C library defines this for functions which it implements
42933 to always fail with ENOSYS. Some functions are actually named
42934 something starting with __ and the normal name is an alias. */
42935 #if defined __stub__doprnt || defined __stub____doprnt
42947 rm -f conftest.$ac_objext conftest$ac_exeext
42948 if { (ac_try="$ac_link"
42949 case "(($ac_try" in
42950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42951 *) ac_try_echo=$ac_try;;
42953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42954 (eval "$ac_link") 2>conftest.er1
42956 grep -v '^ *+' conftest.er1 >conftest.err
42958 cat conftest.err >&5
42959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42960 (exit $ac_status); } &&
42961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42962 { (case "(($ac_try" in
42963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42964 *) ac_try_echo=$ac_try;;
42966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42967 (eval "$ac_try") 2>&5
42969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42970 (exit $ac_status); }; } &&
42971 { ac_try='test -s conftest$ac_exeext'
42972 { (case "(($ac_try" in
42973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42974 *) ac_try_echo=$ac_try;;
42976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42977 (eval "$ac_try") 2>&5
42979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42980 (exit $ac_status); }; }; then
42981 ac_cv_func__doprnt=yes
42983 echo "$as_me: failed program was:" >&5
42984 sed 's/^/| /' conftest.$ac_ext >&5
42986 ac_cv_func__doprnt=no
42989 rm -f core conftest.err conftest.$ac_objext \
42990 conftest$ac_exeext conftest.$ac_ext
42992 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
42993 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
42994 if test $ac_cv_func__doprnt = yes; then
42996 cat >>confdefs.h <<\_ACEOF
42997 #define HAVE_DOPRNT 1
43007 if test $ac_cv_func_vprintf = yes ; then
43010 for ac_func in snprintf vsnprintf
43012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43016 echo $ECHO_N "(cached) $ECHO_C" >&6
43018 cat >conftest.$ac_ext <<_ACEOF
43021 cat confdefs.h >>conftest.$ac_ext
43022 cat >>conftest.$ac_ext <<_ACEOF
43023 /* end confdefs.h. */
43024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43026 #define $ac_func innocuous_$ac_func
43028 /* System header to define __stub macros and hopefully few prototypes,
43029 which can conflict with char $ac_func (); below.
43030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43031 <limits.h> exists even on freestanding compilers. */
43034 # include <limits.h>
43036 # include <assert.h>
43041 /* Override any GCC internal prototype to avoid an error.
43042 Use char because int might match the return type of a GCC
43043 builtin and then its argument prototype would still apply. */
43048 /* The GNU C library defines this for functions which it implements
43049 to always fail with ENOSYS. Some functions are actually named
43050 something starting with __ and the normal name is an alias. */
43051 #if defined __stub_$ac_func || defined __stub___$ac_func
43058 return $ac_func ();
43063 rm -f conftest.$ac_objext conftest$ac_exeext
43064 if { (ac_try="$ac_link"
43065 case "(($ac_try" in
43066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43067 *) ac_try_echo=$ac_try;;
43069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43070 (eval "$ac_link") 2>conftest.er1
43072 grep -v '^ *+' conftest.er1 >conftest.err
43074 cat conftest.err >&5
43075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43076 (exit $ac_status); } &&
43077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43078 { (case "(($ac_try" in
43079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43080 *) ac_try_echo=$ac_try;;
43082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43083 (eval "$ac_try") 2>&5
43085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43086 (exit $ac_status); }; } &&
43087 { ac_try='test -s conftest$ac_exeext'
43088 { (case "(($ac_try" in
43089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43090 *) ac_try_echo=$ac_try;;
43092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43093 (eval "$ac_try") 2>&5
43095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43096 (exit $ac_status); }; }; then
43097 eval "$as_ac_var=yes"
43099 echo "$as_me: failed program was:" >&5
43100 sed 's/^/| /' conftest.$ac_ext >&5
43102 eval "$as_ac_var=no"
43105 rm -f core conftest.err conftest.$ac_objext \
43106 conftest$ac_exeext conftest.$ac_ext
43108 ac_res=`eval echo '${'$as_ac_var'}'`
43109 { echo "$as_me:$LINENO: result: $ac_res" >&5
43110 echo "${ECHO_T}$ac_res" >&6; }
43111 if test `eval echo '${'$as_ac_var'}'` = yes; then
43112 cat >>confdefs.h <<_ACEOF
43113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43238 echo $ECHO_N "(cached) $ECHO_C" >&6
43240 cat >conftest.$ac_ext <<_ACEOF
43243 cat confdefs.h >>conftest.$ac_ext
43244 cat >>conftest.$ac_ext <<_ACEOF
43245 /* end confdefs.h. */
43246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43248 #define $ac_func innocuous_$ac_func
43250 /* System header to define __stub macros and hopefully few prototypes,
43251 which can conflict with char $ac_func (); below.
43252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43253 <limits.h> exists even on freestanding compilers. */
43256 # include <limits.h>
43258 # include <assert.h>
43263 /* Override any GCC internal prototype to avoid an error.
43264 Use char because int might match the return type of a GCC
43265 builtin and then its argument prototype would still apply. */
43270 /* The GNU C library defines this for functions which it implements
43271 to always fail with ENOSYS. Some functions are actually named
43272 something starting with __ and the normal name is an alias. */
43273 #if defined __stub_$ac_func || defined __stub___$ac_func
43280 return $ac_func ();
43285 rm -f conftest.$ac_objext conftest$ac_exeext
43286 if { (ac_try="$ac_link"
43287 case "(($ac_try" in
43288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43289 *) ac_try_echo=$ac_try;;
43291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43292 (eval "$ac_link") 2>conftest.er1
43294 grep -v '^ *+' conftest.er1 >conftest.err
43296 cat conftest.err >&5
43297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43298 (exit $ac_status); } &&
43299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43300 { (case "(($ac_try" in
43301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43302 *) ac_try_echo=$ac_try;;
43304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43305 (eval "$ac_try") 2>&5
43307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43308 (exit $ac_status); }; } &&
43309 { ac_try='test -s conftest$ac_exeext'
43310 { (case "(($ac_try" in
43311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43312 *) ac_try_echo=$ac_try;;
43314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43315 (eval "$ac_try") 2>&5
43317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43318 (exit $ac_status); }; }; then
43319 eval "$as_ac_var=yes"
43321 echo "$as_me: failed program was:" >&5
43322 sed 's/^/| /' conftest.$ac_ext >&5
43324 eval "$as_ac_var=no"
43327 rm -f core conftest.err conftest.$ac_objext \
43328 conftest$ac_exeext conftest.$ac_ext
43330 ac_res=`eval echo '${'$as_ac_var'}'`
43331 { echo "$as_me:$LINENO: result: $ac_res" >&5
43332 echo "${ECHO_T}$ac_res" >&6; }
43333 if test `eval echo '${'$as_ac_var'}'` = yes; then
43334 cat >>confdefs.h <<_ACEOF
43335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43344 for ac_func in getopt getpeereid
43346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43350 echo $ECHO_N "(cached) $ECHO_C" >&6
43352 cat >conftest.$ac_ext <<_ACEOF
43355 cat confdefs.h >>conftest.$ac_ext
43356 cat >>conftest.$ac_ext <<_ACEOF
43357 /* end confdefs.h. */
43358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43360 #define $ac_func innocuous_$ac_func
43362 /* System header to define __stub macros and hopefully few prototypes,
43363 which can conflict with char $ac_func (); below.
43364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43365 <limits.h> exists even on freestanding compilers. */
43368 # include <limits.h>
43370 # include <assert.h>
43375 /* Override any GCC internal prototype to avoid an error.
43376 Use char because int might match the return type of a GCC
43377 builtin and then its argument prototype would still apply. */
43382 /* The GNU C library defines this for functions which it implements
43383 to always fail with ENOSYS. Some functions are actually named
43384 something starting with __ and the normal name is an alias. */
43385 #if defined __stub_$ac_func || defined __stub___$ac_func
43392 return $ac_func ();
43397 rm -f conftest.$ac_objext conftest$ac_exeext
43398 if { (ac_try="$ac_link"
43399 case "(($ac_try" in
43400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43401 *) ac_try_echo=$ac_try;;
43403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43404 (eval "$ac_link") 2>conftest.er1
43406 grep -v '^ *+' conftest.er1 >conftest.err
43408 cat conftest.err >&5
43409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43410 (exit $ac_status); } &&
43411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43412 { (case "(($ac_try" in
43413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43414 *) ac_try_echo=$ac_try;;
43416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43417 (eval "$ac_try") 2>&5
43419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43420 (exit $ac_status); }; } &&
43421 { ac_try='test -s conftest$ac_exeext'
43422 { (case "(($ac_try" in
43423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43424 *) ac_try_echo=$ac_try;;
43426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43427 (eval "$ac_try") 2>&5
43429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43430 (exit $ac_status); }; }; then
43431 eval "$as_ac_var=yes"
43433 echo "$as_me: failed program was:" >&5
43434 sed 's/^/| /' conftest.$ac_ext >&5
43436 eval "$as_ac_var=no"
43439 rm -f core conftest.err conftest.$ac_objext \
43440 conftest$ac_exeext conftest.$ac_ext
43442 ac_res=`eval echo '${'$as_ac_var'}'`
43443 { echo "$as_me:$LINENO: result: $ac_res" >&5
43444 echo "${ECHO_T}$ac_res" >&6; }
43445 if test `eval echo '${'$as_ac_var'}'` = yes; then
43446 cat >>confdefs.h <<_ACEOF
43447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43451 case " $LIBOBJS " in
43452 *" $ac_func.$ac_objext "* ) ;;
43453 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
43462 if test "$ac_cv_func_getopt" != yes; then
43463 LIBSRCS="$LIBSRCS getopt.c"
43466 if test "$ac_cv_func_getpeereid" != yes; then
43468 for ac_func in getpeerucred
43470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43474 echo $ECHO_N "(cached) $ECHO_C" >&6
43476 cat >conftest.$ac_ext <<_ACEOF
43479 cat confdefs.h >>conftest.$ac_ext
43480 cat >>conftest.$ac_ext <<_ACEOF
43481 /* end confdefs.h. */
43482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43484 #define $ac_func innocuous_$ac_func
43486 /* System header to define __stub macros and hopefully few prototypes,
43487 which can conflict with char $ac_func (); below.
43488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43489 <limits.h> exists even on freestanding compilers. */
43492 # include <limits.h>
43494 # include <assert.h>
43499 /* Override any GCC internal prototype to avoid an error.
43500 Use char because int might match the return type of a GCC
43501 builtin and then its argument prototype would still apply. */
43506 /* The GNU C library defines this for functions which it implements
43507 to always fail with ENOSYS. Some functions are actually named
43508 something starting with __ and the normal name is an alias. */
43509 #if defined __stub_$ac_func || defined __stub___$ac_func
43516 return $ac_func ();
43521 rm -f conftest.$ac_objext conftest$ac_exeext
43522 if { (ac_try="$ac_link"
43523 case "(($ac_try" in
43524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43525 *) ac_try_echo=$ac_try;;
43527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43528 (eval "$ac_link") 2>conftest.er1
43530 grep -v '^ *+' conftest.er1 >conftest.err
43532 cat conftest.err >&5
43533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43534 (exit $ac_status); } &&
43535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43536 { (case "(($ac_try" in
43537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43538 *) ac_try_echo=$ac_try;;
43540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43541 (eval "$ac_try") 2>&5
43543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43544 (exit $ac_status); }; } &&
43545 { ac_try='test -s conftest$ac_exeext'
43546 { (case "(($ac_try" in
43547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43548 *) ac_try_echo=$ac_try;;
43550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43551 (eval "$ac_try") 2>&5
43553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43554 (exit $ac_status); }; }; then
43555 eval "$as_ac_var=yes"
43557 echo "$as_me: failed program was:" >&5
43558 sed 's/^/| /' conftest.$ac_ext >&5
43560 eval "$as_ac_var=no"
43563 rm -f core conftest.err conftest.$ac_objext \
43564 conftest$ac_exeext conftest.$ac_ext
43566 ac_res=`eval echo '${'$as_ac_var'}'`
43567 { echo "$as_me:$LINENO: result: $ac_res" >&5
43568 echo "${ECHO_T}$ac_res" >&6; }
43569 if test `eval echo '${'$as_ac_var'}'` = yes; then
43570 cat >>confdefs.h <<_ACEOF
43571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43577 if test "$ac_cv_func_getpeerucred" != yes ; then
43578 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43579 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
43580 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43581 echo $ECHO_N "(cached) $ECHO_C" >&6
43583 cat >conftest.$ac_ext <<_ACEOF
43586 cat confdefs.h >>conftest.$ac_ext
43587 cat >>conftest.$ac_ext <<_ACEOF
43588 /* end confdefs.h. */
43589 $ac_includes_default
43590 #ifdef HAVE_SYS_SOCKET_H
43591 #include <sys/socket.h>
43597 static struct msghdr ac_aggr;
43598 if (ac_aggr.msg_accrightslen)
43604 rm -f conftest.$ac_objext
43605 if { (ac_try="$ac_compile"
43606 case "(($ac_try" in
43607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43608 *) ac_try_echo=$ac_try;;
43610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43611 (eval "$ac_compile") 2>conftest.er1
43613 grep -v '^ *+' conftest.er1 >conftest.err
43615 cat conftest.err >&5
43616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43617 (exit $ac_status); } &&
43618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43619 { (case "(($ac_try" in
43620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43621 *) ac_try_echo=$ac_try;;
43623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43624 (eval "$ac_try") 2>&5
43626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43627 (exit $ac_status); }; } &&
43628 { ac_try='test -s conftest.$ac_objext'
43629 { (case "(($ac_try" in
43630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43631 *) ac_try_echo=$ac_try;;
43633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43634 (eval "$ac_try") 2>&5
43636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43637 (exit $ac_status); }; }; then
43638 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43640 echo "$as_me: failed program was:" >&5
43641 sed 's/^/| /' conftest.$ac_ext >&5
43643 cat >conftest.$ac_ext <<_ACEOF
43646 cat confdefs.h >>conftest.$ac_ext
43647 cat >>conftest.$ac_ext <<_ACEOF
43648 /* end confdefs.h. */
43649 $ac_includes_default
43650 #ifdef HAVE_SYS_SOCKET_H
43651 #include <sys/socket.h>
43657 static struct msghdr ac_aggr;
43658 if (sizeof ac_aggr.msg_accrightslen)
43664 rm -f conftest.$ac_objext
43665 if { (ac_try="$ac_compile"
43666 case "(($ac_try" in
43667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43668 *) ac_try_echo=$ac_try;;
43670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43671 (eval "$ac_compile") 2>conftest.er1
43673 grep -v '^ *+' conftest.er1 >conftest.err
43675 cat conftest.err >&5
43676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43677 (exit $ac_status); } &&
43678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43679 { (case "(($ac_try" in
43680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43681 *) ac_try_echo=$ac_try;;
43683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43684 (eval "$ac_try") 2>&5
43686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687 (exit $ac_status); }; } &&
43688 { ac_try='test -s conftest.$ac_objext'
43689 { (case "(($ac_try" in
43690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43691 *) ac_try_echo=$ac_try;;
43693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43694 (eval "$ac_try") 2>&5
43696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43697 (exit $ac_status); }; }; then
43698 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43700 echo "$as_me: failed program was:" >&5
43701 sed 's/^/| /' conftest.$ac_ext >&5
43703 ac_cv_member_struct_msghdr_msg_accrightslen=no
43706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43711 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43712 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
43713 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43715 cat >>confdefs.h <<_ACEOF
43716 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43722 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43723 { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43724 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
43725 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43726 echo $ECHO_N "(cached) $ECHO_C" >&6
43728 cat >conftest.$ac_ext <<_ACEOF
43731 cat confdefs.h >>conftest.$ac_ext
43732 cat >>conftest.$ac_ext <<_ACEOF
43733 /* end confdefs.h. */
43734 $ac_includes_default
43735 #ifdef HAVE_SYS_SOCKET_H
43736 #include <sys/socket.h>
43742 static struct msghdr ac_aggr;
43743 if (ac_aggr.msg_control)
43749 rm -f conftest.$ac_objext
43750 if { (ac_try="$ac_compile"
43751 case "(($ac_try" in
43752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43753 *) ac_try_echo=$ac_try;;
43755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43756 (eval "$ac_compile") 2>conftest.er1
43758 grep -v '^ *+' conftest.er1 >conftest.err
43760 cat conftest.err >&5
43761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43762 (exit $ac_status); } &&
43763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43764 { (case "(($ac_try" in
43765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43766 *) ac_try_echo=$ac_try;;
43768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43769 (eval "$ac_try") 2>&5
43771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43772 (exit $ac_status); }; } &&
43773 { ac_try='test -s conftest.$ac_objext'
43774 { (case "(($ac_try" in
43775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43776 *) ac_try_echo=$ac_try;;
43778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43779 (eval "$ac_try") 2>&5
43781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43782 (exit $ac_status); }; }; then
43783 ac_cv_member_struct_msghdr_msg_control=yes
43785 echo "$as_me: failed program was:" >&5
43786 sed 's/^/| /' conftest.$ac_ext >&5
43788 cat >conftest.$ac_ext <<_ACEOF
43791 cat confdefs.h >>conftest.$ac_ext
43792 cat >>conftest.$ac_ext <<_ACEOF
43793 /* end confdefs.h. */
43794 $ac_includes_default
43795 #ifdef HAVE_SYS_SOCKET_H
43796 #include <sys/socket.h>
43802 static struct msghdr ac_aggr;
43803 if (sizeof ac_aggr.msg_control)
43809 rm -f conftest.$ac_objext
43810 if { (ac_try="$ac_compile"
43811 case "(($ac_try" in
43812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43813 *) ac_try_echo=$ac_try;;
43815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43816 (eval "$ac_compile") 2>conftest.er1
43818 grep -v '^ *+' conftest.er1 >conftest.err
43820 cat conftest.err >&5
43821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43822 (exit $ac_status); } &&
43823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43824 { (case "(($ac_try" in
43825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43826 *) ac_try_echo=$ac_try;;
43828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43829 (eval "$ac_try") 2>&5
43831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43832 (exit $ac_status); }; } &&
43833 { ac_try='test -s conftest.$ac_objext'
43834 { (case "(($ac_try" in
43835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43836 *) ac_try_echo=$ac_try;;
43838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43839 (eval "$ac_try") 2>&5
43841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43842 (exit $ac_status); }; }; then
43843 ac_cv_member_struct_msghdr_msg_control=yes
43845 echo "$as_me: failed program was:" >&5
43846 sed 's/^/| /' conftest.$ac_ext >&5
43848 ac_cv_member_struct_msghdr_msg_control=no
43851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43856 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43857 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
43858 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43860 cat >>confdefs.h <<_ACEOF
43861 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43868 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
43869 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
43870 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
43871 echo $ECHO_N "(cached) $ECHO_C" >&6
43873 cat >conftest.$ac_ext <<_ACEOF
43876 cat confdefs.h >>conftest.$ac_ext
43877 cat >>conftest.$ac_ext <<_ACEOF
43878 /* end confdefs.h. */
43879 $ac_includes_default
43883 static struct stat ac_aggr;
43884 if (ac_aggr.st_fstype)
43890 rm -f conftest.$ac_objext
43891 if { (ac_try="$ac_compile"
43892 case "(($ac_try" in
43893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43894 *) ac_try_echo=$ac_try;;
43896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43897 (eval "$ac_compile") 2>conftest.er1
43899 grep -v '^ *+' conftest.er1 >conftest.err
43901 cat conftest.err >&5
43902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43903 (exit $ac_status); } &&
43904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43905 { (case "(($ac_try" in
43906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43907 *) ac_try_echo=$ac_try;;
43909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43910 (eval "$ac_try") 2>&5
43912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43913 (exit $ac_status); }; } &&
43914 { ac_try='test -s conftest.$ac_objext'
43915 { (case "(($ac_try" in
43916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43917 *) ac_try_echo=$ac_try;;
43919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43920 (eval "$ac_try") 2>&5
43922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43923 (exit $ac_status); }; }; then
43924 ac_cv_member_struct_stat_st_fstype=yes
43926 echo "$as_me: failed program was:" >&5
43927 sed 's/^/| /' conftest.$ac_ext >&5
43929 cat >conftest.$ac_ext <<_ACEOF
43932 cat confdefs.h >>conftest.$ac_ext
43933 cat >>conftest.$ac_ext <<_ACEOF
43934 /* end confdefs.h. */
43935 $ac_includes_default
43939 static struct stat ac_aggr;
43940 if (sizeof ac_aggr.st_fstype)
43946 rm -f conftest.$ac_objext
43947 if { (ac_try="$ac_compile"
43948 case "(($ac_try" in
43949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43950 *) ac_try_echo=$ac_try;;
43952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43953 (eval "$ac_compile") 2>conftest.er1
43955 grep -v '^ *+' conftest.er1 >conftest.err
43957 cat conftest.err >&5
43958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43959 (exit $ac_status); } &&
43960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43961 { (case "(($ac_try" in
43962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43963 *) ac_try_echo=$ac_try;;
43965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43966 (eval "$ac_try") 2>&5
43968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43969 (exit $ac_status); }; } &&
43970 { ac_try='test -s conftest.$ac_objext'
43971 { (case "(($ac_try" in
43972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43973 *) ac_try_echo=$ac_try;;
43975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43976 (eval "$ac_try") 2>&5
43978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43979 (exit $ac_status); }; }; then
43980 ac_cv_member_struct_stat_st_fstype=yes
43982 echo "$as_me: failed program was:" >&5
43983 sed 's/^/| /' conftest.$ac_ext >&5
43985 ac_cv_member_struct_stat_st_fstype=no
43988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43993 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
43994 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
43995 if test $ac_cv_member_struct_stat_st_fstype = yes; then
43997 cat >>confdefs.h <<_ACEOF
43998 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
44003 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
44004 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
44005 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
44006 echo $ECHO_N "(cached) $ECHO_C" >&6
44008 cat >conftest.$ac_ext <<_ACEOF
44011 cat confdefs.h >>conftest.$ac_ext
44012 cat >>conftest.$ac_ext <<_ACEOF
44013 /* end confdefs.h. */
44014 $ac_includes_default
44018 static struct stat ac_aggr;
44019 if (ac_aggr.st_vfstype)
44025 rm -f conftest.$ac_objext
44026 if { (ac_try="$ac_compile"
44027 case "(($ac_try" in
44028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44029 *) ac_try_echo=$ac_try;;
44031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44032 (eval "$ac_compile") 2>conftest.er1
44034 grep -v '^ *+' conftest.er1 >conftest.err
44036 cat conftest.err >&5
44037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44038 (exit $ac_status); } &&
44039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44040 { (case "(($ac_try" in
44041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44042 *) ac_try_echo=$ac_try;;
44044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44045 (eval "$ac_try") 2>&5
44047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44048 (exit $ac_status); }; } &&
44049 { ac_try='test -s conftest.$ac_objext'
44050 { (case "(($ac_try" in
44051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44052 *) ac_try_echo=$ac_try;;
44054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44055 (eval "$ac_try") 2>&5
44057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44058 (exit $ac_status); }; }; then
44059 ac_cv_member_struct_stat_st_vfstype=yes
44061 echo "$as_me: failed program was:" >&5
44062 sed 's/^/| /' conftest.$ac_ext >&5
44064 cat >conftest.$ac_ext <<_ACEOF
44067 cat confdefs.h >>conftest.$ac_ext
44068 cat >>conftest.$ac_ext <<_ACEOF
44069 /* end confdefs.h. */
44070 $ac_includes_default
44074 static struct stat ac_aggr;
44075 if (sizeof ac_aggr.st_vfstype)
44081 rm -f conftest.$ac_objext
44082 if { (ac_try="$ac_compile"
44083 case "(($ac_try" in
44084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44085 *) ac_try_echo=$ac_try;;
44087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44088 (eval "$ac_compile") 2>conftest.er1
44090 grep -v '^ *+' conftest.er1 >conftest.err
44092 cat conftest.err >&5
44093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44094 (exit $ac_status); } &&
44095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44096 { (case "(($ac_try" in
44097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44098 *) ac_try_echo=$ac_try;;
44100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44101 (eval "$ac_try") 2>&5
44103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44104 (exit $ac_status); }; } &&
44105 { ac_try='test -s conftest.$ac_objext'
44106 { (case "(($ac_try" in
44107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44108 *) ac_try_echo=$ac_try;;
44110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44111 (eval "$ac_try") 2>&5
44113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44114 (exit $ac_status); }; }; then
44115 ac_cv_member_struct_stat_st_vfstype=yes
44117 echo "$as_me: failed program was:" >&5
44118 sed 's/^/| /' conftest.$ac_ext >&5
44120 ac_cv_member_struct_stat_st_vfstype=no
44123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44128 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
44129 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
44130 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
44132 cat >>confdefs.h <<_ACEOF
44133 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
44139 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
44140 cat >conftest.$ac_ext <<_ACEOF
44141 struct stat st; char *ptr=st.st_fstype;
44143 rm -f conftest.$ac_objext
44144 if { (ac_try="$ac_compile"
44145 case "(($ac_try" in
44146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44147 *) ac_try_echo=$ac_try;;
44149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44150 (eval "$ac_compile") 2>conftest.er1
44152 grep -v '^ *+' conftest.er1 >conftest.err
44154 cat conftest.err >&5
44155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44156 (exit $ac_status); } &&
44157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44158 { (case "(($ac_try" in
44159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44160 *) ac_try_echo=$ac_try;;
44162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44163 (eval "$ac_try") 2>&5
44165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44166 (exit $ac_status); }; } &&
44167 { ac_try='test -s conftest.$ac_objext'
44168 { (case "(($ac_try" in
44169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44170 *) ac_try_echo=$ac_try;;
44172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44173 (eval "$ac_try") 2>&5
44175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44176 (exit $ac_status); }; }; then
44178 cat >>confdefs.h <<\_ACEOF
44179 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
44183 echo "$as_me: failed program was:" >&5
44184 sed 's/^/| /' conftest.$ac_ext >&5
44187 cat >>confdefs.h <<\_ACEOF
44188 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
44193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44196 LIBSRCS="$LIBSRCS getpeereid.c"
44199 if test "$ac_cv_func_snprintf" != yes ||
44200 test "$ac_cv_func_vsnprintf" != yes; then
44201 if test "$ac_cv_func_snprintf" != yes; then
44203 cat >>confdefs.h <<\_ACEOF
44204 #define snprintf ber_pvt_snprintf
44208 if test "$ac_cv_func_vsnprintf" != yes; then
44210 cat >>confdefs.h <<\_ACEOF
44211 #define vsnprintf ber_pvt_vsnprintf
44218 if test "$ol_enable_slapi" != no ; then
44220 for ac_header in ltdl.h
44222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44227 echo $ECHO_N "(cached) $ECHO_C" >&6
44229 ac_res=`eval echo '${'$as_ac_Header'}'`
44230 { echo "$as_me:$LINENO: result: $ac_res" >&5
44231 echo "${ECHO_T}$ac_res" >&6; }
44233 # Is the header compilable?
44234 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
44235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
44236 cat >conftest.$ac_ext <<_ACEOF
44239 cat confdefs.h >>conftest.$ac_ext
44240 cat >>conftest.$ac_ext <<_ACEOF
44241 /* end confdefs.h. */
44242 $ac_includes_default
44243 #include <$ac_header>
44245 rm -f conftest.$ac_objext
44246 if { (ac_try="$ac_compile"
44247 case "(($ac_try" in
44248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44249 *) ac_try_echo=$ac_try;;
44251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44252 (eval "$ac_compile") 2>conftest.er1
44254 grep -v '^ *+' conftest.er1 >conftest.err
44256 cat conftest.err >&5
44257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44258 (exit $ac_status); } &&
44259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44260 { (case "(($ac_try" in
44261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44262 *) ac_try_echo=$ac_try;;
44264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44265 (eval "$ac_try") 2>&5
44267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44268 (exit $ac_status); }; } &&
44269 { ac_try='test -s conftest.$ac_objext'
44270 { (case "(($ac_try" in
44271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44272 *) ac_try_echo=$ac_try;;
44274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44275 (eval "$ac_try") 2>&5
44277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44278 (exit $ac_status); }; }; then
44279 ac_header_compiler=yes
44281 echo "$as_me: failed program was:" >&5
44282 sed 's/^/| /' conftest.$ac_ext >&5
44284 ac_header_compiler=no
44287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44289 echo "${ECHO_T}$ac_header_compiler" >&6; }
44291 # Is the header present?
44292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
44293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
44294 cat >conftest.$ac_ext <<_ACEOF
44297 cat confdefs.h >>conftest.$ac_ext
44298 cat >>conftest.$ac_ext <<_ACEOF
44299 /* end confdefs.h. */
44300 #include <$ac_header>
44302 if { (ac_try="$ac_cpp conftest.$ac_ext"
44303 case "(($ac_try" in
44304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44305 *) ac_try_echo=$ac_try;;
44307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44310 grep -v '^ *+' conftest.er1 >conftest.err
44312 cat conftest.err >&5
44313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44314 (exit $ac_status); } >/dev/null; then
44315 if test -s conftest.err; then
44316 ac_cpp_err=$ac_c_preproc_warn_flag
44317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44324 if test -z "$ac_cpp_err"; then
44325 ac_header_preproc=yes
44327 echo "$as_me: failed program was:" >&5
44328 sed 's/^/| /' conftest.$ac_ext >&5
44330 ac_header_preproc=no
44333 rm -f conftest.err conftest.$ac_ext
44334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44335 echo "${ECHO_T}$ac_header_preproc" >&6; }
44337 # So? What about this header?
44338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44344 ac_header_preproc=yes
44347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44360 ## --------------------------------------------- ##
44361 ## Report this to <http://www.openldap.org/its/> ##
44362 ## --------------------------------------------- ##
44364 ) | sed "s/^/$as_me: WARNING: /" >&2
44367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44370 echo $ECHO_N "(cached) $ECHO_C" >&6
44372 eval "$as_ac_Header=\$ac_header_preproc"
44374 ac_res=`eval echo '${'$as_ac_Header'}'`
44375 { echo "$as_me:$LINENO: result: $ac_res" >&5
44376 echo "${ECHO_T}$ac_res" >&6; }
44379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44380 cat >>confdefs.h <<_ACEOF
44381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44389 if test $ac_cv_header_ltdl_h != yes ; then
44390 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44391 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44392 { (exit 1); exit 1; }; }
44394 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44395 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
44396 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44397 echo $ECHO_N "(cached) $ECHO_C" >&6
44399 ac_check_lib_save_LIBS=$LIBS
44400 LIBS="-lltdl $LIBS"
44401 cat >conftest.$ac_ext <<_ACEOF
44404 cat confdefs.h >>conftest.$ac_ext
44405 cat >>conftest.$ac_ext <<_ACEOF
44406 /* end confdefs.h. */
44408 /* Override any GCC internal prototype to avoid an error.
44409 Use char because int might match the return type of a GCC
44410 builtin and then its argument prototype would still apply. */
44418 return lt_dlinit ();
44423 rm -f conftest.$ac_objext conftest$ac_exeext
44424 if { (ac_try="$ac_link"
44425 case "(($ac_try" in
44426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44427 *) ac_try_echo=$ac_try;;
44429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44430 (eval "$ac_link") 2>conftest.er1
44432 grep -v '^ *+' conftest.er1 >conftest.err
44434 cat conftest.err >&5
44435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44436 (exit $ac_status); } &&
44437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44438 { (case "(($ac_try" in
44439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44440 *) ac_try_echo=$ac_try;;
44442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44443 (eval "$ac_try") 2>&5
44445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44446 (exit $ac_status); }; } &&
44447 { ac_try='test -s conftest$ac_exeext'
44448 { (case "(($ac_try" in
44449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44450 *) ac_try_echo=$ac_try;;
44452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44453 (eval "$ac_try") 2>&5
44455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44456 (exit $ac_status); }; }; then
44457 ac_cv_lib_ltdl_lt_dlinit=yes
44459 echo "$as_me: failed program was:" >&5
44460 sed 's/^/| /' conftest.$ac_ext >&5
44462 ac_cv_lib_ltdl_lt_dlinit=no
44465 rm -f core conftest.err conftest.$ac_objext \
44466 conftest$ac_exeext conftest.$ac_ext
44467 LIBS=$ac_check_lib_save_LIBS
44469 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44470 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
44471 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44474 LIBSLAPI=libslapi.a
44475 LIBSLAPITOOLS=../libslapi.a
44477 cat >>confdefs.h <<\_ACEOF
44478 #define HAVE_LIBLTDL 1
44483 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44484 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44485 { (exit 1); exit 1; }; }
44490 cat >>confdefs.h <<\_ACEOF
44491 #define LDAP_SLAPI 1
44496 if test "$ol_enable_debug" != no ; then
44497 if test "$ol_enable_debug" = traditional; then
44499 cat >>confdefs.h <<\_ACEOF
44500 #define OLD_DEBUG 1
44505 cat >>confdefs.h <<\_ACEOF
44506 #define LDAP_DEBUG 1
44510 if test "$ol_enable_syslog" = yes ; then
44512 cat >>confdefs.h <<\_ACEOF
44513 #define LDAP_SYSLOG 1
44517 if test "$ol_enable_proctitle" != no ; then
44519 cat >>confdefs.h <<\_ACEOF
44520 #define LDAP_PROCTITLE 1
44524 if test "$ol_enable_referrals" != no ; then
44526 cat >>confdefs.h <<\_ACEOF
44527 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44531 if test "$ol_enable_local" != no; then
44533 cat >>confdefs.h <<\_ACEOF
44534 #define LDAP_PF_LOCAL 1
44538 if test "$ol_link_ipv6" != no; then
44540 cat >>confdefs.h <<\_ACEOF
44541 #define LDAP_PF_INET6 1
44545 if test "$ol_enable_cleartext" != no ; then
44547 cat >>confdefs.h <<\_ACEOF
44548 #define SLAPD_CLEARTEXT 1
44552 if test "$ol_enable_crypt" != no ; then
44554 cat >>confdefs.h <<\_ACEOF
44555 #define SLAPD_CRYPT 1
44559 if test "$ol_link_spasswd" != no ; then
44561 cat >>confdefs.h <<\_ACEOF
44562 #define SLAPD_SPASSWD 1
44566 if test "$ol_enable_rlookups" != no ; then
44568 cat >>confdefs.h <<\_ACEOF
44569 #define SLAPD_RLOOKUPS 1
44573 if test "$ol_enable_aci" != no ; then
44574 if test $ol_enable_dynacl = no ; then
44575 ol_enable_dynacl=yes
44576 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44577 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44579 if test "$ol_enable_aci" = mod ; then
44580 MFLAG=SLAPD_MOD_DYNAMIC
44581 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44582 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44583 { (exit 1); exit 1; }; }
44585 MFLAG=SLAPD_MOD_STATIC
44587 WITH_ACI_ENABLED=$ol_enable_aci
44589 cat >>confdefs.h <<_ACEOF
44590 #define SLAPD_ACI_ENABLED $MFLAG
44594 WITH_ACI_ENABLED=no
44596 if test "$ol_enable_dynacl" != no ; then
44598 cat >>confdefs.h <<\_ACEOF
44599 #define SLAP_DYNACL 1
44604 if test "$ol_link_modules" != no ; then
44606 cat >>confdefs.h <<\_ACEOF
44607 #define SLAPD_MODULES 1
44611 SLAPD_MODULES_LDFLAGS="-dlopen self"
44615 cat >>confdefs.h <<\_ACEOF
44616 #define SLAPD_MOD_STATIC 1
44620 cat >>confdefs.h <<\_ACEOF
44621 #define SLAPD_MOD_DYNAMIC 2
44625 if test "$ol_enable_monitor" != no ; then
44627 BUILD_MONITOR=$ol_enable_monitor
44628 if test "$ol_enable_monitor" = mod ; then
44629 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44630 MFLAG=SLAPD_MOD_DYNAMIC
44632 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44633 MFLAG=SLAPD_MOD_STATIC
44636 cat >>confdefs.h <<_ACEOF
44637 #define SLAPD_MONITOR $MFLAG
44642 if test "$ol_enable_bdb" != no ; then
44644 BUILD_BDB=$ol_enable_bdb
44645 if test "$ol_enable_bdb" = mod ; then
44646 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44647 MFLAG=SLAPD_MOD_DYNAMIC
44649 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44650 MFLAG=SLAPD_MOD_STATIC
44653 cat >>confdefs.h <<_ACEOF
44654 #define SLAPD_BDB $MFLAG
44659 if test "$ol_enable_dnssrv" != no ; then
44661 BUILD_DNSSRV=$ol_enable_dnssrv
44662 if test "$ol_enable_dnssrv" = mod ; then
44663 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44664 MFLAG=SLAPD_MOD_DYNAMIC
44666 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44667 MFLAG=SLAPD_MOD_STATIC
44670 cat >>confdefs.h <<_ACEOF
44671 #define SLAPD_DNSSRV $MFLAG
44676 if test "$ol_enable_hdb" != no ; then
44678 BUILD_HDB=$ol_enable_hdb
44679 if test "$ol_enable_hdb" = mod ; then
44680 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44681 MFLAG=SLAPD_MOD_DYNAMIC
44683 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44684 MFLAG=SLAPD_MOD_STATIC
44687 cat >>confdefs.h <<_ACEOF
44688 #define SLAPD_HDB $MFLAG
44693 if test "$ol_enable_ldap" != no ; then
44695 BUILD_LDAP=$ol_enable_ldap
44696 if test "$ol_enable_ldap" = mod ; then
44697 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44698 MFLAG=SLAPD_MOD_DYNAMIC
44700 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44701 MFLAG=SLAPD_MOD_STATIC
44704 cat >>confdefs.h <<_ACEOF
44705 #define SLAPD_LDAP $MFLAG
44710 if test "$ol_enable_meta" != no ; then
44712 BUILD_META=$ol_enable_meta
44714 if test "$ol_enable_meta" = mod ; then
44715 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44716 MFLAG=SLAPD_MOD_DYNAMIC
44718 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44719 MFLAG=SLAPD_MOD_STATIC
44722 cat >>confdefs.h <<_ACEOF
44723 #define SLAPD_META $MFLAG
44728 if test "$ol_enable_null" != no ; then
44730 BUILD_NULL=$ol_enable_null
44731 if test "$ol_enable_null" = mod ; then
44732 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44733 MFLAG=SLAPD_MOD_DYNAMIC
44735 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44736 MFLAG=SLAPD_MOD_STATIC
44739 cat >>confdefs.h <<_ACEOF
44740 #define SLAPD_NULL $MFLAG
44745 if test "$ol_enable_passwd" != no ; then
44747 BUILD_PASSWD=$ol_enable_passwd
44748 if test "$ol_enable_passwd" = mod ; then
44749 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44750 MFLAG=SLAPD_MOD_DYNAMIC
44752 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44753 MFLAG=SLAPD_MOD_STATIC
44756 cat >>confdefs.h <<_ACEOF
44757 #define SLAPD_PASSWD $MFLAG
44762 if test "$ol_link_perl" != no ; then
44764 BUILD_PERL=$ol_enable_perl
44765 if test "$ol_enable_perl" = mod ; then
44766 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44767 MFLAG=SLAPD_MOD_DYNAMIC
44769 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44770 MFLAG=SLAPD_MOD_STATIC
44773 cat >>confdefs.h <<_ACEOF
44774 #define SLAPD_PERL $MFLAG
44779 if test "$ol_enable_relay" != no ; then
44781 BUILD_RELAY=$ol_enable_relay
44782 if test "$ol_enable_relay" = mod ; then
44783 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44784 MFLAG=SLAPD_MOD_DYNAMIC
44786 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44787 MFLAG=SLAPD_MOD_STATIC
44790 cat >>confdefs.h <<_ACEOF
44791 #define SLAPD_RELAY $MFLAG
44796 if test "$ol_enable_shell" != no ; then
44797 if test "$ol_link_threads" != no ; then
44798 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44799 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44802 BUILD_SHELL=$ol_enable_shell
44803 if test "$ol_enable_shell" = mod ; then
44804 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44805 MFLAG=SLAPD_MOD_DYNAMIC
44807 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44808 MFLAG=SLAPD_MOD_STATIC
44811 cat >>confdefs.h <<_ACEOF
44812 #define SLAPD_SHELL $MFLAG
44817 if test "$ol_link_sql" != no ; then
44819 BUILD_SQL=$ol_enable_sql
44820 if test "$ol_enable_sql" = mod; then
44821 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44822 MFLAG=SLAPD_MOD_DYNAMIC
44824 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44825 MFLAG=SLAPD_MOD_STATIC
44828 cat >>confdefs.h <<_ACEOF
44829 #define SLAPD_SQL $MFLAG
44834 if test "$ol_enable_accesslog" != no ; then
44835 BUILD_ACCESSLOG=$ol_enable_accesslog
44836 if test "$ol_enable_accesslog" = mod ; then
44837 MFLAG=SLAPD_MOD_DYNAMIC
44838 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44840 MFLAG=SLAPD_MOD_STATIC
44841 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44844 cat >>confdefs.h <<_ACEOF
44845 #define SLAPD_OVER_ACCESSLOG $MFLAG
44850 if test "$ol_enable_auditlog" != no ; then
44851 BUILD_AUDITLOG=$ol_enable_auditlog
44852 if test "$ol_enable_auditlog" = mod ; then
44853 MFLAG=SLAPD_MOD_DYNAMIC
44854 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
44856 MFLAG=SLAPD_MOD_STATIC
44857 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
44860 cat >>confdefs.h <<_ACEOF
44861 #define SLAPD_OVER_AUDITLOG $MFLAG
44866 if test "$ol_enable_constraint" != no ; then
44867 BUILD_CONSTRAINT=$ol_enable_constraint
44868 if test "$ol_enable_constraint" = mod ; then
44869 MFLAG=SLAPD_MOD_DYNAMIC
44870 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
44872 MFLAG=SLAPD_MOD_STATIC
44873 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
44876 cat >>confdefs.h <<_ACEOF
44877 #define SLAPD_OVER_CONSTRAINT $MFLAG
44882 if test "$ol_enable_dds" != no ; then
44883 BUILD_DDS=$ol_enable_dds
44884 if test "$ol_enable_dds" = mod ; then
44885 MFLAG=SLAPD_MOD_DYNAMIC
44886 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
44888 MFLAG=SLAPD_MOD_STATIC
44889 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
44892 cat >>confdefs.h <<_ACEOF
44893 #define SLAPD_OVER_DDS $MFLAG
44898 if test "$ol_enable_dyngroup" != no ; then
44899 BUILD_DYNGROUP=$ol_enable_dyngroup
44900 if test "$ol_enable_dyngroup" = mod ; then
44901 MFLAG=SLAPD_MOD_DYNAMIC
44902 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44904 MFLAG=SLAPD_MOD_STATIC
44905 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44908 cat >>confdefs.h <<_ACEOF
44909 #define SLAPD_OVER_DYNGROUP $MFLAG
44914 if test "$ol_enable_dynlist" != no ; then
44915 BUILD_DYNLIST=$ol_enable_dynlist
44916 if test "$ol_enable_dynlist" = mod ; then
44917 MFLAG=SLAPD_MOD_DYNAMIC
44918 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44920 MFLAG=SLAPD_MOD_STATIC
44921 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44924 cat >>confdefs.h <<_ACEOF
44925 #define SLAPD_OVER_DYNLIST $MFLAG
44930 if test "$ol_enable_ppolicy" != no ; then
44931 BUILD_PPOLICY=$ol_enable_ppolicy
44932 if test "$ol_enable_ppolicy" = mod ; then
44933 MFLAG=SLAPD_MOD_DYNAMIC
44934 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44936 MFLAG=SLAPD_MOD_STATIC
44937 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44940 cat >>confdefs.h <<_ACEOF
44941 #define SLAPD_OVER_PPOLICY $MFLAG
44946 if test "$ol_enable_proxycache" != no ; then
44947 BUILD_PROXYCACHE=$ol_enable_proxycache
44948 if test "$ol_enable_proxycache" = mod ; then
44949 MFLAG=SLAPD_MOD_DYNAMIC
44950 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44952 MFLAG=SLAPD_MOD_STATIC
44953 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44956 cat >>confdefs.h <<_ACEOF
44957 #define SLAPD_OVER_PROXYCACHE $MFLAG
44962 if test "$ol_enable_refint" != no ; then
44963 BUILD_REFINT=$ol_enable_refint
44964 if test "$ol_enable_refint" = mod ; then
44965 MFLAG=SLAPD_MOD_DYNAMIC
44966 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44968 MFLAG=SLAPD_MOD_STATIC
44969 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44972 cat >>confdefs.h <<_ACEOF
44973 #define SLAPD_OVER_REFINT $MFLAG
44978 if test "$ol_enable_retcode" != no ; then
44979 BUILD_RETCODE=$ol_enable_retcode
44980 if test "$ol_enable_retcode" = mod ; then
44981 MFLAG=SLAPD_MOD_DYNAMIC
44982 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44984 MFLAG=SLAPD_MOD_STATIC
44985 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44988 cat >>confdefs.h <<_ACEOF
44989 #define SLAPD_OVER_RETCODE $MFLAG
44994 if test "$ol_enable_rwm" != no ; then
44996 BUILD_RWM=$ol_enable_rwm
44997 if test "$ol_enable_rwm" = mod ; then
44998 MFLAG=SLAPD_MOD_DYNAMIC
44999 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
45001 MFLAG=SLAPD_MOD_STATIC
45002 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
45005 cat >>confdefs.h <<_ACEOF
45006 #define SLAPD_OVER_RWM $MFLAG
45011 if test "$ol_enable_seqmod" != no ; then
45012 BUILD_SEQMOD=$ol_enable_seqmod
45013 if test "$ol_enable_seqmod" = mod ; then
45014 MFLAG=SLAPD_MOD_DYNAMIC
45015 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
45017 MFLAG=SLAPD_MOD_STATIC
45018 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
45021 cat >>confdefs.h <<_ACEOF
45022 #define SLAPD_OVER_SEQMOD $MFLAG
45027 if test "$ol_enable_syncprov" != no ; then
45028 BUILD_SYNCPROV=$ol_enable_syncprov
45029 if test "$ol_enable_syncprov" = mod ; then
45030 MFLAG=SLAPD_MOD_DYNAMIC
45031 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
45033 MFLAG=SLAPD_MOD_STATIC
45034 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
45037 cat >>confdefs.h <<_ACEOF
45038 #define SLAPD_OVER_SYNCPROV $MFLAG
45043 if test "$ol_enable_translucent" != no ; then
45044 BUILD_TRANSLUCENT=$ol_enable_translucent
45045 if test "$ol_enable_translucent" = mod ; then
45046 MFLAG=SLAPD_MOD_DYNAMIC
45047 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
45049 MFLAG=SLAPD_MOD_STATIC
45050 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
45053 cat >>confdefs.h <<_ACEOF
45054 #define SLAPD_OVER_TRANSLUCENT $MFLAG
45059 if test "$ol_enable_unique" != no ; then
45060 BUILD_UNIQUE=$ol_enable_unique
45061 if test "$ol_enable_unique" = mod ; then
45062 MFLAG=SLAPD_MOD_DYNAMIC
45063 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
45065 MFLAG=SLAPD_MOD_STATIC
45066 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
45069 cat >>confdefs.h <<_ACEOF
45070 #define SLAPD_OVER_UNIQUE $MFLAG
45075 if test "$ol_enable_valsort" != no ; then
45076 BUILD_VALSORT=$ol_enable_valsort
45077 if test "$ol_enable_valsort" = mod ; then
45078 MFLAG=SLAPD_MOD_DYNAMIC
45079 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
45081 MFLAG=SLAPD_MOD_STATIC
45082 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
45085 cat >>confdefs.h <<_ACEOF
45086 #define SLAPD_OVER_VALSORT $MFLAG
45091 if test "$ol_enable_rewrite" != no ; then
45093 cat >>confdefs.h <<\_ACEOF
45094 #define ENABLE_REWRITE 1
45100 if test "$ol_enable_slapi" != no ; then
45102 cat >>confdefs.h <<\_ACEOF
45103 #define ENABLE_SLAPI 1
45107 SLAPD_SLAPI_DEPEND=libslapi.a
45112 if test "$ac_cv_mingw32" = yes ; then
45114 SLAPD_MODULES_LDFLAGS=
45201 # Check whether --with-xxinstall was given.
45202 if test "${with_xxinstall+set}" = set; then
45203 withval=$with_xxinstall;
45208 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-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 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"
45211 ac_config_commands="$ac_config_commands default"
45215 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45216 # Let make expand exec_prefix.
45217 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45219 DEFS=-DHAVE_CONFIG_H
45223 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45224 # 1. Remove the extension, and $U if already installed.
45225 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45226 ac_i=`echo "$ac_i" | sed "$ac_script"`
45227 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
45228 # will be set to the directory where LIBOBJS objects are built.
45229 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45230 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
45232 LIBOBJS=$ac_libobjs
45234 LTLIBOBJS=$ac_ltlibobjs
45237 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45238 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
45239 Usually this means the macro was only invoked conditionally." >&5
45240 echo "$as_me: error: conditional \"AMDEP\" was never defined.
45241 Usually this means the macro was only invoked conditionally." >&2;}
45242 { (exit 1); exit 1; }; }
45244 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45245 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45246 Usually this means the macro was only invoked conditionally." >&5
45247 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45248 Usually this means the macro was only invoked conditionally." >&2;}
45249 { (exit 1); exit 1; }; }
45251 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45252 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45253 Usually this means the macro was only invoked conditionally." >&5
45254 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45255 Usually this means the macro was only invoked conditionally." >&2;}
45256 { (exit 1); exit 1; }; }
45259 : ${CONFIG_STATUS=./config.status}
45260 ac_clean_files_save=$ac_clean_files
45261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45262 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45263 echo "$as_me: creating $CONFIG_STATUS" >&6;}
45264 cat >$CONFIG_STATUS <<_ACEOF
45266 # Generated by $as_me.
45267 # Run this file to recreate the current configuration.
45268 # Compiler output produced by configure, useful for debugging
45269 # configure, is in config.log if it exists.
45272 ac_cs_recheck=false
45274 SHELL=\${CONFIG_SHELL-$SHELL}
45277 cat >>$CONFIG_STATUS <<\_ACEOF
45278 ## --------------------- ##
45279 ## M4sh Initialization. ##
45280 ## --------------------- ##
45282 # Be Bourne compatible
45283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45286 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45287 # is contrary to our usage. Disable this feature.
45288 alias -g '${1+"$@"}'='"$@"'
45289 setopt NO_GLOB_SUBST
45291 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
45293 BIN_SH=xpg4; export BIN_SH # for Tru64
45294 DUALCASE=1; export DUALCASE # for MKS sh
45298 # Avoid depending upon Character Ranges.
45299 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45300 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45301 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45302 as_cr_digits='0123456789'
45303 as_cr_alnum=$as_cr_Letters$as_cr_digits
45305 # The user is always right.
45306 if test "${PATH_SEPARATOR+set}" != set; then
45307 echo "#! /bin/sh" >conf$$.sh
45308 echo "exit 0" >>conf$$.sh
45310 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45318 # Support unset when possible.
45319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45327 # We need space, tab and new line, in precisely that order. Quoting is
45328 # there to prevent editors from complaining about space-tab.
45329 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45330 # splitting by setting IFS to empty value.)
45335 # Find who we are. Look in the path if we contain no directory separator.
45337 *[\\/]* ) as_myself=$0 ;;
45338 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45339 for as_dir in $PATH
45342 test -z "$as_dir" && as_dir=.
45343 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45349 # We did not find ourselves, most probably we were run as `sh COMMAND'
45350 # in which case we are not to be found in the path.
45351 if test "x$as_myself" = x; then
45354 if test ! -f "$as_myself"; then
45355 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45356 { (exit 1); exit 1; }
45359 # Work around bugs in pre-3.0 UWIN ksh.
45360 for as_var in ENV MAIL MAILPATH
45361 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
45369 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45370 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45371 LC_TELEPHONE LC_TIME
45373 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45374 eval $as_var=C; export $as_var
45376 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
45380 # Required to use basename.
45381 if expr a : '\(a\)' >/dev/null 2>&1 &&
45382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
45388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45389 as_basename=basename
45395 # Name of the executable.
45396 as_me=`$as_basename -- "$0" ||
45397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45398 X"$0" : 'X\(//\)$' \| \
45399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45401 sed '/^.*\/\([^/][^/]*\)\/*$/{
45420 as_lineno_1=$LINENO
45421 as_lineno_2=$LINENO
45422 test "x$as_lineno_1" != "x$as_lineno_2" &&
45423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
45425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45426 # uniformly replaced by the line number. The first 'sed' inserts a
45427 # line-number line after each line using $LINENO; the second 'sed'
45428 # does the real work. The second script uses 'N' to pair each
45429 # line-number line with the line containing $LINENO, and appends
45430 # trailing '-' during substitution so that $LINENO is not a special
45431 # case at line end.
45432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45433 # scripts with optimization help from Paolo Bonzini. Blame Lee
45434 # E. McMahon (1931-1989) for sed's syntax. :-)
45446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
45449 ' >$as_me.lineno &&
45450 chmod +x "$as_me.lineno" ||
45451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
45452 { (exit 1); exit 1; }; }
45454 # Don't try to exec as it changes $[0], causing all sort of problems
45455 # (the dirname of $[0] is not the place where we might find the
45456 # original and so on. Autoconf is especially sensitive to this).
45457 . "./$as_me.lineno"
45458 # Exit status is that of the last command.
45463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45469 ECHO_C= ECHO_N= ECHO_T=
45470 case `echo -n x` in
45472 case `echo 'x\c'` in
45473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
45480 if expr a : '\(a\)' >/dev/null 2>&1 &&
45481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
45487 rm -f conf$$ conf$$.exe conf$$.file
45488 if test -d conf$$.dir; then
45489 rm -f conf$$.dir/conf$$.file
45495 if ln -s conf$$.file conf$$ 2>/dev/null; then
45497 # ... but there are two gotchas:
45498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45500 # In both cases, we have to default to `cp -p'.
45501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45503 elif ln conf$$.file conf$$ 2>/dev/null; then
45508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45509 rmdir conf$$.dir 2>/dev/null
45511 if mkdir -p . 2>/dev/null; then
45514 test -d ./-p && rmdir ./-p
45518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
45519 # systems may use methods other than mode bits to determine executability.
45520 cat >conf$$.file <<_ASEOF
45524 chmod +x conf$$.file
45525 if test -x conf$$.file >/dev/null 2>&1; then
45526 as_executable_p="test -x"
45532 # Sed expression to map a string onto a valid CPP name.
45533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45535 # Sed expression to map a string onto a valid variable name.
45536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45541 # Save the log message, to keep $[0] and so on meaningful, and to
45542 # report actual input values of CONFIG_FILES etc. instead of their
45543 # values after options handling.
45545 This file was extended by $as_me, which was
45546 generated by GNU Autoconf 2.60. Invocation command line was
45548 CONFIG_FILES = $CONFIG_FILES
45549 CONFIG_HEADERS = $CONFIG_HEADERS
45550 CONFIG_LINKS = $CONFIG_LINKS
45551 CONFIG_COMMANDS = $CONFIG_COMMANDS
45554 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45559 cat >>$CONFIG_STATUS <<_ACEOF
45560 # Files that config.status was made for.
45561 config_files="$ac_config_files"
45562 config_headers="$ac_config_headers"
45563 config_commands="$ac_config_commands"
45567 cat >>$CONFIG_STATUS <<\_ACEOF
45569 \`$as_me' instantiates files from templates according to the
45570 current configuration.
45572 Usage: $0 [OPTIONS] [FILE]...
45574 -h, --help print this help, then exit
45575 -V, --version print version number, then exit
45576 -q, --quiet do not print progress messages
45577 -d, --debug don't remove temporary files
45578 --recheck update $as_me by reconfiguring in the same conditions
45579 --file=FILE[:TEMPLATE]
45580 instantiate the configuration file FILE
45581 --header=FILE[:TEMPLATE]
45582 instantiate the configuration header FILE
45584 Configuration files:
45587 Configuration headers:
45590 Configuration commands:
45593 Report bugs to <bug-autoconf@gnu.org>."
45596 cat >>$CONFIG_STATUS <<_ACEOF
45599 configured by $0, generated by GNU Autoconf 2.60,
45600 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
45602 Copyright (C) 2006 Free Software Foundation, Inc.
45603 This config.status script is free software; the Free Software Foundation
45604 gives unlimited permission to copy, distribute and modify it."
45611 cat >>$CONFIG_STATUS <<\_ACEOF
45612 # If no file are specified by the user, then we need to provide default
45613 # value. By we need to know if files were specified by the user.
45619 ac_option=`expr "X$1" : 'X\([^=]*\)='`
45620 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45631 # Handling of the options.
45632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45634 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45635 echo "$ac_cs_version"; exit ;;
45636 --debug | --debu | --deb | --de | --d | -d )
45638 --file | --fil | --fi | --f )
45640 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45641 ac_need_defaults=false;;
45642 --header | --heade | --head | --hea )
45644 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45645 ac_need_defaults=false;;
45647 # Conflict between --help and --header
45648 { echo "$as_me: error: ambiguous option: $1
45649 Try \`$0 --help' for more information." >&2
45650 { (exit 1); exit 1; }; };;
45651 --help | --hel | -h )
45652 echo "$ac_cs_usage"; exit ;;
45653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45654 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45657 # This is an error.
45658 -*) { echo "$as_me: error: unrecognized option: $1
45659 Try \`$0 --help' for more information." >&2
45660 { (exit 1); exit 1; }; } ;;
45662 *) ac_config_targets="$ac_config_targets $1"
45663 ac_need_defaults=false ;;
45669 ac_configure_extra_args=
45671 if $ac_cs_silent; then
45673 ac_configure_extra_args="$ac_configure_extra_args --silent"
45677 cat >>$CONFIG_STATUS <<_ACEOF
45678 if \$ac_cs_recheck; then
45679 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45680 CONFIG_SHELL=$SHELL
45681 export CONFIG_SHELL
45682 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45686 cat >>$CONFIG_STATUS <<\_ACEOF
45690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45691 ## Running $as_me. ##
45697 cat >>$CONFIG_STATUS <<_ACEOF
45701 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45703 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45704 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45709 cat >>$CONFIG_STATUS <<\_ACEOF
45711 # Handling of arguments.
45712 for ac_config_target in $ac_config_targets
45714 case $ac_config_target in
45715 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45716 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45717 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45718 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45719 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45720 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45721 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45722 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45723 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45724 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45725 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45726 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45727 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45728 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45729 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45730 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45731 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45732 "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" ;;
45733 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45734 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45735 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45736 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45737 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45738 "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" ;;
45739 "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" ;;
45740 "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" ;;
45741 "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" ;;
45742 "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" ;;
45743 "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" ;;
45744 "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" ;;
45745 "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" ;;
45746 "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" ;;
45747 "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" ;;
45748 "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" ;;
45749 "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" ;;
45750 "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" ;;
45751 "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" ;;
45752 "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" ;;
45753 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45754 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45755 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45756 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45757 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45759 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45760 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45761 { (exit 1); exit 1; }; };;
45766 # If the user did not use the arguments to specify the items to instantiate,
45767 # then the envvar interface is used. Set only those that are not.
45768 # We use the long form for the default assignment because of an extremely
45769 # bizarre bug on SunOS 4.1.3.
45770 if $ac_need_defaults; then
45771 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45772 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45773 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45776 # Have a temporary directory for convenience. Make it in the build tree
45777 # simply because there is no reason against having it here, and in addition,
45778 # creating and moving files from /tmp can sometimes cause problems.
45779 # Hook for its removal unless debugging.
45780 # Note that there is a small window in which the directory will not be cleaned:
45781 # after its creation but before its name has been assigned to `$tmp'.
45785 trap 'exit_status=$?
45786 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45788 trap '{ (exit 1); exit 1; }' 1 2 13 15
45790 # Create a (secure) tmp directory for tmp files.
45793 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45794 test -n "$tmp" && test -d "$tmp"
45797 tmp=./conf$$-$RANDOM
45798 (umask 077 && mkdir "$tmp")
45801 echo "$me: cannot create a temporary directory in ." >&2
45802 { (exit 1); exit 1; }
45806 # Set up the sed scripts for CONFIG_FILES section.
45809 # No need to generate the scripts if there are no CONFIG_FILES.
45810 # This happens for instance when ./config.status config.h
45811 if test -n "$CONFIG_FILES"; then
45818 for ac_last_try in false false false false false :; do
45819 cat >conf$$subs.sed <<_ACEOF
45820 SHELL!$SHELL$ac_delim
45821 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45822 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45823 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45824 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45825 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45826 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45827 exec_prefix!$exec_prefix$ac_delim
45828 prefix!$prefix$ac_delim
45829 program_transform_name!$program_transform_name$ac_delim
45830 bindir!$bindir$ac_delim
45831 sbindir!$sbindir$ac_delim
45832 libexecdir!$libexecdir$ac_delim
45833 datarootdir!$datarootdir$ac_delim
45834 datadir!$datadir$ac_delim
45835 sysconfdir!$sysconfdir$ac_delim
45836 sharedstatedir!$sharedstatedir$ac_delim
45837 localstatedir!$localstatedir$ac_delim
45838 includedir!$includedir$ac_delim
45839 oldincludedir!$oldincludedir$ac_delim
45840 docdir!$docdir$ac_delim
45841 infodir!$infodir$ac_delim
45842 htmldir!$htmldir$ac_delim
45843 dvidir!$dvidir$ac_delim
45844 pdfdir!$pdfdir$ac_delim
45845 psdir!$psdir$ac_delim
45846 libdir!$libdir$ac_delim
45847 localedir!$localedir$ac_delim
45848 mandir!$mandir$ac_delim
45849 DEFS!$DEFS$ac_delim
45850 ECHO_C!$ECHO_C$ac_delim
45851 ECHO_N!$ECHO_N$ac_delim
45852 ECHO_T!$ECHO_T$ac_delim
45853 LIBS!$LIBS$ac_delim
45854 build_alias!$build_alias$ac_delim
45855 host_alias!$host_alias$ac_delim
45856 target_alias!$target_alias$ac_delim
45857 build!$build$ac_delim
45858 build_cpu!$build_cpu$ac_delim
45859 build_vendor!$build_vendor$ac_delim
45860 build_os!$build_os$ac_delim
45861 host!$host$ac_delim
45862 host_cpu!$host_cpu$ac_delim
45863 host_vendor!$host_vendor$ac_delim
45864 host_os!$host_os$ac_delim
45865 target!$target$ac_delim
45866 target_cpu!$target_cpu$ac_delim
45867 target_vendor!$target_vendor$ac_delim
45868 target_os!$target_os$ac_delim
45869 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45870 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45871 INSTALL_DATA!$INSTALL_DATA$ac_delim
45872 CYGPATH_W!$CYGPATH_W$ac_delim
45873 PACKAGE!$PACKAGE$ac_delim
45874 VERSION!$VERSION$ac_delim
45875 ACLOCAL!$ACLOCAL$ac_delim
45876 AUTOCONF!$AUTOCONF$ac_delim
45877 AUTOMAKE!$AUTOMAKE$ac_delim
45878 AUTOHEADER!$AUTOHEADER$ac_delim
45879 MAKEINFO!$MAKEINFO$ac_delim
45880 install_sh!$install_sh$ac_delim
45881 STRIP!$STRIP$ac_delim
45882 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
45883 mkdir_p!$mkdir_p$ac_delim
45885 SET_MAKE!$SET_MAKE$ac_delim
45886 am__leading_dot!$am__leading_dot$ac_delim
45887 AMTAR!$AMTAR$ac_delim
45888 am__tar!$am__tar$ac_delim
45889 am__untar!$am__untar$ac_delim
45890 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
45891 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
45892 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
45893 top_builddir!$top_builddir$ac_delim
45894 ldap_subdir!$ldap_subdir$ac_delim
45897 CFLAGS!$CFLAGS$ac_delim
45898 LDFLAGS!$LDFLAGS$ac_delim
45899 CPPFLAGS!$CPPFLAGS$ac_delim
45900 ac_ct_CC!$ac_ct_CC$ac_delim
45901 EXEEXT!$EXEEXT$ac_delim
45902 OBJEXT!$OBJEXT$ac_delim
45903 DEPDIR!$DEPDIR$ac_delim
45904 am__include!$am__include$ac_delim
45905 am__quote!$am__quote$ac_delim
45906 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
45907 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
45908 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
45909 CCDEPMODE!$CCDEPMODE$ac_delim
45910 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
45911 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
45912 GREP!$GREP$ac_delim
45913 EGREP!$EGREP$ac_delim
45914 LN_S!$LN_S$ac_delim
45915 ECHO!$ECHO$ac_delim
45916 RANLIB!$RANLIB$ac_delim
45919 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45921 elif $ac_last_try; then
45922 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45923 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45924 { (exit 1); exit 1; }; }
45926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45930 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45931 if test -n "$ac_eof"; then
45932 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45933 ac_eof=`expr $ac_eof + 1`
45936 cat >>$CONFIG_STATUS <<_ACEOF
45937 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45941 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45942 s/^/s,@/; s/!/@,|#_!!_#|/
45945 s/'"$ac_delim"'$/,g/; t
45947 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45948 ' >>$CONFIG_STATUS <conf$$subs.sed
45949 rm -f conf$$subs.sed
45950 cat >>$CONFIG_STATUS <<_ACEOF
45956 for ac_last_try in false false false false false :; do
45957 cat >conf$$subs.sed <<_ACEOF
45958 DLLTOOL!$DLLTOOL$ac_delim
45960 OBJDUMP!$OBJDUMP$ac_delim
45962 LIBTOOL!$LIBTOOL$ac_delim
45963 PERLBIN!$PERLBIN$ac_delim
45964 OL_MKDEP!$OL_MKDEP$ac_delim
45965 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
45966 LTSTATIC!$LTSTATIC$ac_delim
45967 LIBOBJS!$LIBOBJS$ac_delim
45968 LIBSRCS!$LIBSRCS$ac_delim
45969 PLAT!$PLAT$ac_delim
45970 WITH_SASL!$WITH_SASL$ac_delim
45971 WITH_TLS!$WITH_TLS$ac_delim
45972 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
45973 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
45974 BUILD_THREAD!$BUILD_THREAD$ac_delim
45975 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
45976 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
45977 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
45978 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
45979 BUILD_BDB!$BUILD_BDB$ac_delim
45980 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
45981 BUILD_HDB!$BUILD_HDB$ac_delim
45982 BUILD_LDAP!$BUILD_LDAP$ac_delim
45983 BUILD_META!$BUILD_META$ac_delim
45984 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
45985 BUILD_NULL!$BUILD_NULL$ac_delim
45986 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
45987 BUILD_RELAY!$BUILD_RELAY$ac_delim
45988 BUILD_PERL!$BUILD_PERL$ac_delim
45989 BUILD_SHELL!$BUILD_SHELL$ac_delim
45990 BUILD_SQL!$BUILD_SQL$ac_delim
45991 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
45992 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
45993 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
45994 BUILD_DDS!$BUILD_DDS$ac_delim
45995 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
45996 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
45997 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
45998 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
45999 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
46000 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
46001 BUILD_REFINT!$BUILD_REFINT$ac_delim
46002 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
46003 BUILD_RWM!$BUILD_RWM$ac_delim
46004 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
46005 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
46006 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
46007 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
46008 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
46009 LDAP_LIBS!$LDAP_LIBS$ac_delim
46010 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
46011 BDB_LIBS!$BDB_LIBS$ac_delim
46012 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
46013 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
46014 WRAP_LIBS!$WRAP_LIBS$ac_delim
46015 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
46016 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
46017 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
46018 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
46019 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
46020 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
46021 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
46022 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
46023 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
46024 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
46025 KRB4_LIBS!$KRB4_LIBS$ac_delim
46026 KRB5_LIBS!$KRB5_LIBS$ac_delim
46027 SASL_LIBS!$SASL_LIBS$ac_delim
46028 TLS_LIBS!$TLS_LIBS$ac_delim
46029 MODULES_LIBS!$MODULES_LIBS$ac_delim
46030 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
46031 LIBSLAPI!$LIBSLAPI$ac_delim
46032 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
46033 AUTH_LIBS!$AUTH_LIBS$ac_delim
46034 ICU_LIBS!$ICU_LIBS$ac_delim
46035 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
46036 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
46037 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
46038 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
46039 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
46040 LTLIBOBJS!$LTLIBOBJS$ac_delim
46043 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
46045 elif $ac_last_try; then
46046 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46047 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46048 { (exit 1); exit 1; }; }
46050 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46054 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46055 if test -n "$ac_eof"; then
46056 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46057 ac_eof=`expr $ac_eof + 1`
46060 cat >>$CONFIG_STATUS <<_ACEOF
46061 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
46062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
46065 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46066 s/^/s,@/; s/!/@,|#_!!_#|/
46069 s/'"$ac_delim"'$/,g/; t
46071 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46072 ' >>$CONFIG_STATUS <conf$$subs.sed
46073 rm -f conf$$subs.sed
46074 cat >>$CONFIG_STATUS <<_ACEOF
46081 # VPATH may cause trouble with some makes, so we remove $(srcdir),
46082 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46083 # trailing colons and then remove the whole line if VPATH becomes empty
46084 # (actually we leave an empty line to preserve line numbers).
46085 if test "x$srcdir" = x.; then
46086 ac_vpsub='/^[ ]*VPATH[ ]*=/{
46087 s/:*\$(srcdir):*/:/
46088 s/:*\${srcdir}:*/:/
46090 s/^\([^=]*=[ ]*\):*/\1/
46096 cat >>$CONFIG_STATUS <<\_ACEOF
46097 fi # test -n "$CONFIG_FILES"
46100 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
46103 :[FHLC]) ac_mode=$ac_tag; continue;;
46105 case $ac_mode$ac_tag in
46107 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
46108 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
46109 { (exit 1); exit 1; }; };;
46110 :[FH]-) ac_tag=-:-;;
46111 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46128 -) ac_f="$tmp/stdin";;
46129 *) # Look for the file first in the build tree, then in the source tree
46130 # (if the path is not absolute). The absolute path cannot be DOS-style,
46131 # because $ac_f cannot contain `:'.
46135 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46137 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
46138 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
46139 { (exit 1); exit 1; }; };;
46141 ac_file_inputs="$ac_file_inputs $ac_f"
46144 # Let's still pretend it is `configure' which instantiates (i.e., don't
46145 # use $as_me), people would be surprised to read:
46146 # /* config.h. Generated by config.status. */
46147 configure_input="Generated from "`IFS=:
46148 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
46149 if test x"$ac_file" != x-; then
46150 configure_input="$ac_file. $configure_input"
46151 { echo "$as_me:$LINENO: creating $ac_file" >&5
46152 echo "$as_me: creating $ac_file" >&6;}
46156 *:-:* | *:-) cat >"$tmp/stdin";;
46161 ac_dir=`$as_dirname -- "$ac_file" ||
46162 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46163 X"$ac_file" : 'X\(//\)[^/]' \| \
46164 X"$ac_file" : 'X\(//\)$' \| \
46165 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46171 /^X\(\/\/\)[^/].*/{
46186 -*) as_dir=./$as_dir;;
46188 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
46192 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
46193 *) as_qdir=$as_dir;;
46195 as_dirs="'$as_qdir' $as_dirs"
46196 as_dir=`$as_dirname -- "$as_dir" ||
46197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46198 X"$as_dir" : 'X\(//\)[^/]' \| \
46199 X"$as_dir" : 'X\(//\)$' \| \
46200 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46206 /^X\(\/\/\)[^/].*/{
46219 test -d "$as_dir" && break
46221 test -z "$as_dirs" || eval "mkdir $as_dirs"
46222 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
46223 echo "$as_me: error: cannot create directory $as_dir" >&2;}
46224 { (exit 1); exit 1; }; }; }
46228 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46230 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46231 # A ".." for each directory in $ac_dir_suffix.
46232 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
46233 case $ac_top_builddir_sub in
46234 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46235 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46238 ac_abs_top_builddir=$ac_pwd
46239 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46240 # for backward compatibility:
46241 ac_top_builddir=$ac_top_build_prefix
46244 .) # We are building in place.
46246 ac_top_srcdir=$ac_top_builddir_sub
46247 ac_abs_top_srcdir=$ac_pwd ;;
46248 [\\/]* | ?:[\\/]* ) # Absolute name.
46249 ac_srcdir=$srcdir$ac_dir_suffix;
46250 ac_top_srcdir=$srcdir
46251 ac_abs_top_srcdir=$srcdir ;;
46252 *) # Relative name.
46253 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46254 ac_top_srcdir=$ac_top_build_prefix$srcdir
46255 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46257 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46267 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46268 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46272 cat >>$CONFIG_STATUS <<\_ACEOF
46273 # If the template does not know about datarootdir, expand it.
46274 # FIXME: This hack should be removed a few years after 2.60.
46275 ac_datarootdir_hack=; ac_datarootdir_seen=
46277 case `sed -n '/datarootdir/ {
46286 ' $ac_file_inputs` in
46287 *datarootdir*) ac_datarootdir_seen=yes;;
46288 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46289 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46290 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46292 cat >>$CONFIG_STATUS <<_ACEOF
46293 ac_datarootdir_hack='
46294 s&@datadir@&$datadir&g
46295 s&@docdir@&$docdir&g
46296 s&@infodir@&$infodir&g
46297 s&@localedir@&$localedir&g
46298 s&@mandir@&$mandir&g
46299 s&\\\${datarootdir}&$datarootdir&g' ;;
46303 # Neutralize VPATH when `$srcdir' = `.'.
46304 # Shell code in configure.ac might set extrasub.
46305 # FIXME: do we really want to maintain this feature?
46306 cat >>$CONFIG_STATUS <<_ACEOF
46310 cat >>$CONFIG_STATUS <<\_ACEOF
46312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46313 s&@configure_input@&$configure_input&;t t
46314 s&@top_builddir@&$ac_top_builddir_sub&;t t
46315 s&@srcdir@&$ac_srcdir&;t t
46316 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46317 s&@top_srcdir@&$ac_top_srcdir&;t t
46318 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46319 s&@builddir@&$ac_builddir&;t t
46320 s&@abs_builddir@&$ac_abs_builddir&;t t
46321 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46322 s&@INSTALL@&$ac_INSTALL&;t t
46323 $ac_datarootdir_hack
46324 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
46326 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46327 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
46328 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
46329 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46330 which seems to be undefined. Please make sure it is defined." >&5
46331 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46332 which seems to be undefined. Please make sure it is defined." >&2;}
46336 -) cat "$tmp/out"; rm -f "$tmp/out";;
46337 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
46346 # Transform confdefs.h into a sed script `conftest.defines', that
46347 # substitutes the proper values into config.h.in to produce config.h.
46348 rm -f conftest.defines conftest.tail
46349 # First, append a space to every undef/define line, to ease matching.
46350 echo 's/$/ /' >conftest.defines
46351 # Then, protect against being on the right side of a sed subst, or in
46352 # an unquoted here document, in config.status. If some macros were
46353 # called several times there might be several #defines for the same
46354 # symbol, which is useless. But do not sort them, since the last
46355 # AC_DEFINE must be honored.
46356 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46357 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
46358 # NAME is the cpp macro being defined, VALUE is the value it is being given.
46359 # PARAMS is the parameter list in the macro definition--in most cases, it's
46360 # just an empty string.
46361 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
46362 ac_dB='\\)[ (].*,\\1define\\2'
46370 s/^[ ]*#[ ]*define[ ][ ]*//
46375 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
46376 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
46377 ' >>conftest.defines
46379 # Remove the space that was appended to ease matching.
46380 # Then replace #undef with comments. This is necessary, for
46381 # example, in the case of _POSIX_SOURCE, which is predefined and required
46382 # on some systems where configure will not decide to define it.
46383 # (The regexp can be short, since the line contains either #define or #undef.)
46385 s,^[ #]*u.*,/* & */,' >>conftest.defines
46387 # Break up conftest.defines:
46388 ac_max_sed_lines=50
46390 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
46391 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
46392 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
46394 ac_in='$ac_file_inputs'
46395 ac_out='"$tmp/out1"'
46396 ac_nxt='"$tmp/out2"'
46400 # Write a here document:
46401 cat >>$CONFIG_STATUS <<_ACEOF
46402 # First, check the format of the line:
46403 cat >"\$tmp/defines.sed" <<\\CEOF
46404 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
46405 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
46409 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
46411 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
46412 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
46413 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
46414 grep . conftest.tail >/dev/null || break
46415 rm -f conftest.defines
46416 mv conftest.tail conftest.defines
46418 rm -f conftest.defines conftest.tail
46420 echo "ac_result=$ac_in" >>$CONFIG_STATUS
46421 cat >>$CONFIG_STATUS <<\_ACEOF
46422 if test x"$ac_file" != x-; then
46423 echo "/* $configure_input */" >"$tmp/config.h"
46424 cat "$ac_result" >>"$tmp/config.h"
46425 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
46426 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46427 echo "$as_me: $ac_file is unchanged" >&6;}
46430 mv "$tmp/config.h" $ac_file
46433 echo "/* $configure_input */"
46437 # Compute $ac_file's index in $config_headers.
46439 for _am_header in $config_headers :; do
46440 case $_am_header in
46441 $ac_file | $ac_file:* )
46444 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46447 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
46448 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46449 X$ac_file : 'X\(//\)[^/]' \| \
46450 X$ac_file : 'X\(//\)$' \| \
46451 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
46453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46457 /^X\(\/\/\)[^/].*/{
46469 s/.*/./; q'`/stamp-h$_am_stamp_count
46472 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
46473 echo "$as_me: executing $ac_file commands" >&6;}
46478 case $ac_file$ac_mode in
46479 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46480 # Strip MF so we end up with the name of the file.
46481 mf=`echo "$mf" | sed -e 's/:.*$//'`
46482 # Check whether this is an Automake generated Makefile or not.
46483 # We used to match only the files named `Makefile.in', but
46484 # some people rename them; so instead we look at the file content.
46485 # Grep'ing the first line is not enough: some people post-process
46486 # each Makefile.in and add a new line on top of each file to say so.
46487 # So let's grep whole file.
46488 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46489 dirpart=`$as_dirname -- "$mf" ||
46490 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46491 X"$mf" : 'X\(//\)[^/]' \| \
46492 X"$mf" : 'X\(//\)$' \| \
46493 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
46495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46499 /^X\(\/\/\)[^/].*/{
46515 # Extract the definition of DEPDIR, am__include, and am__quote
46516 # from the Makefile without running `make'.
46517 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46518 test -z "$DEPDIR" && continue
46519 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46520 test -z "am__include" && continue
46521 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46522 # When using ansi2knr, U may be empty or an underscore; expand it
46523 U=`sed -n 's/^U = //p' < "$mf"`
46524 # Find all dependency output files, they are included files with
46525 # $(DEPDIR) in their names. We invoke sed twice because it is the
46526 # simplest approach to changing $(DEPDIR) to its actual value in the
46528 for file in `sed -n "
46529 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46530 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46531 # Make sure the directory exists.
46532 test -f "$dirpart/$file" && continue
46533 fdir=`$as_dirname -- "$file" ||
46534 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46535 X"$file" : 'X\(//\)[^/]' \| \
46536 X"$file" : 'X\(//\)$' \| \
46537 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
46539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46543 /^X\(\/\/\)[^/].*/{
46556 { as_dir=$dirpart/$fdir
46558 -*) as_dir=./$as_dir;;
46560 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
46564 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
46565 *) as_qdir=$as_dir;;
46567 as_dirs="'$as_qdir' $as_dirs"
46568 as_dir=`$as_dirname -- "$as_dir" ||
46569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46570 X"$as_dir" : 'X\(//\)[^/]' \| \
46571 X"$as_dir" : 'X\(//\)$' \| \
46572 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46578 /^X\(\/\/\)[^/].*/{
46591 test -d "$as_dir" && break
46593 test -z "$as_dirs" || eval "mkdir $as_dirs"
46594 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
46595 echo "$as_me: error: cannot create directory $as_dir" >&2;}
46596 { (exit 1); exit 1; }; }; }
46597 # echo "creating $dirpart/$file"
46598 echo '# dummy' > "$dirpart/$file"
46605 BACKENDSC="servers/slapd/backends.c"
46606 echo "Making $BACKENDSC"
46608 cat > $BACKENDSC << ENDX
46609 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46611 * Copyright 1998-2007 The OpenLDAP Foundation.
46612 * All rights reserved.
46614 * Redistribution and use in source and binary forms, with or without
46615 * modification, are permitted only as authorized by the OpenLDAP
46618 * A copy of this license is available in the file LICENSE in the
46619 * top-level directory of the distribution or, alternatively, at
46620 * <http://www.OpenLDAP.org/license.html>.
46622 /* This file is automatically generated by configure; please do not edit. */
46624 #include "portable.h"
46628 if test "${STATIC_BACKENDS}"; then
46629 for b in config ${STATIC_BACKENDS}; do
46630 bb=`echo "${b}" | sed -e 's/back-//'`
46631 cat >> $BACKENDSC << ENDX
46632 extern BI_init ${bb}_back_initialize;
46636 cat >> $BACKENDSC << ENDX
46638 BackendInfo slap_binfo[] = {
46641 for b in config ${STATIC_BACKENDS}; do
46642 bb=`echo "${b}" | sed -e 's/back-//'`
46643 echo " Add ${bb} ..."
46644 cat >> $BACKENDSC << ENDX
46645 { "${bb}", ${bb}_back_initialize },
46649 cat >> $BACKENDSC << ENDX
46653 /* end of generated file */
46656 OVERLAYSC="servers/slapd/overlays/statover.c"
46657 echo "Making $OVERLAYSC"
46659 cat > $OVERLAYSC << ENDX
46660 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46662 * Copyright 1998-2007 The OpenLDAP Foundation.
46663 * All rights reserved.
46665 * Redistribution and use in source and binary forms, with or without
46666 * modification, are permitted only as authorized by the OpenLDAP
46669 * A copy of this license is available in the file LICENSE in the
46670 * top-level directory of the distribution or, alternatively, at
46671 * <http://www.OpenLDAP.org/license.html>.
46673 /* This file is automatically generated by configure; please do not edit. */
46675 #include "portable.h"
46679 if test "${STATIC_OVERLAYS}"; then
46680 for o in ${STATIC_OVERLAYS}; do
46681 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46682 cat >> $OVERLAYSC << ENDX
46683 extern OV_init ${oo}_initialize;
46688 cat >> $OVERLAYSC << ENDX
46690 OverlayInit slap_oinfo[] = {
46693 if test "${STATIC_OVERLAYS}"; then
46694 for o in ${STATIC_OVERLAYS}; do
46695 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46696 echo " Add ${oo} ..."
46697 cat >> $OVERLAYSC << ENDX
46698 { "${oo}", ${oo}_initialize },
46703 cat >> $OVERLAYSC << ENDX
46707 /* end of generated file */
46710 echo Please run \"make depend\" to build dependencies
46717 { (exit 0); exit 0; }
46719 chmod +x $CONFIG_STATUS
46720 ac_clean_files=$ac_clean_files_save
46723 # configure is writing to config.log, and then calls config.status.
46724 # config.status does its own redirection, appending to config.log.
46725 # Unfortunately, on DOS this fails, as config.log is still kept open
46726 # by configure, so config.status won't be able to write to it; its
46727 # output is simply discarded. So we exec the FD to /dev/null,
46728 # effectively closing config.log, so it can be properly (re)opened and
46729 # appended to by config.status. When coming back to configure, we
46730 # need to make the FD available again.
46731 if test "$no_create" != yes; then
46733 ac_config_status_args=
46734 test "$silent" = yes &&
46735 ac_config_status_args="$ac_config_status_args --quiet"
46737 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46739 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46740 # would make configure fail if this is the last instruction.
46741 $ac_cs_success || { (exit 1); exit 1; }